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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
3097f076be3224cecafc1f53faade6637c7a10a4 | Java | theBrownBug/CompetitiveCoding | /src/CodeForcesSolutions/B/CompilationError519B.java | UTF-8 | 3,825 | 3.625 | 4 | [] | no_license | //package CodeForcesSolutions.B;
import java.util.LinkedList;
import java.util.Scanner;
public class CompilationError519B {
public static void merge(int[] array , int left , int right , int middle){
int leftArrSize = middle - left + 1 ;
int rightArrSize = right - middle;
int[] leftArray ... | true |
0a1c35f0696f4ec42ddb519855bafcf74b8933d6 | Java | liuhaosource/OppoFramework | /A1_7_1_1/src/main/java/android/provider/BlockedNumberContract.java | UTF-8 | 8,901 | 1.796875 | 2 | [] | no_license | package android.provider;
import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
/* JADX ERROR: NullPointerException in pass: ReSugarCode
java.lang.NullPointerException
at jadx.core.dex.visitors.ReSugarCode.initClsEnumMap(ReSugarCode.java:159)
at jadx.core.dex.visitors.ReSuga... | true |
2556f0a6596b3ae6c2b71257e3c3b0b0b0c36f0e | Java | stronghwan/yunji | /newApp/src/main/java/com/yunding/news/model/service/impl/YunCommentServiceImpl.java | UTF-8 | 585 | 1.828125 | 2 | [] | no_license | package com.yunding.news.model.service.impl;
import com.yunding.news.model.dao.DaoFactory;
import com.yunding.news.model.pojo.YunComments;
import java.util.List;
/**
* @TODO
* @Author Hao Wan
* @Verison
* @Date2018/5/4-15-30
*/
public class YunCommentServiceImpl extends CommonServiceImpl<YunComments>{
@Over... | true |
588c0ae4125f1bfde92f38fd428c81bb71f4211a | Java | black-ant/case | /case 4.2.4 Spring Security Medium Demo/src/main/java/com/gang/study/pac4j/demo/pac4jlogic/SamlRest.java | UTF-8 | 3,894 | 2.40625 | 2 | [] | no_license | package com.gang.study.pac4j.demo.pac4jlogic;
import org.bouncycastle.x509.X509V3CertificateGenerator;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.FileSystemResource;
im... | true |
9cce87c226b0dd9e089867394e72ba699889794f | Java | ufoet0715/Skeye | /yagout/.svn/pristine/7b/7b47eded36f7a03460d4239c5bc0ff22cbb4284e.svn-base | UTF-8 | 416 | 1.515625 | 2 | [] | no_license | package com.skeye.yagout.biz;
import com.skeye.yagout.util.CommonPage;
import com.skeye.yagout.util.CommonResult;
import java.util.List;
public interface YagoutRawaccountHandledBiz {
void queryRawaccountHandledByPage(CommonPage commonPage);
CommonResult deleteRawaccountHandledByList( List<Integer> ids);... | true |
ada346e51cd10caf3ed0cf8bc041c099ff553389 | Java | beamrolling/TDDExam | /src/test/java/LockerTest.java | UTF-8 | 1,667 | 2.796875 | 3 | [] | no_license | import org.junit.Test;
import static org.junit.Assert.*;
public class LockerTest {
//**Given** 一个S号Locker,有剩余空间
//**When** 存S号包
//**Then** 包成功存入S号Locker中,返回票
@Test
public void should_store_bag_to_s_locker_when_save_s_bag_given_s_locker_has_place() {
Locker locker = new Locker("S",5);
... | true |
97956d2ae731887e179bdf8333efecde93335753 | Java | splitio/java-client | /client/src/main/java/io/split/telemetry/synchronizer/TelemetryInMemorySubmitter.java | UTF-8 | 9,165 | 1.507813 | 2 | [
"Apache-2.0"
] | permissive | package io.split.telemetry.synchronizer;
import com.google.common.annotations.VisibleForTesting;
import io.split.client.SplitClientConfig;
import io.split.client.dtos.UniqueKeys;
import io.split.client.impressions.ImpressionListener;
import io.split.client.impressions.ImpressionsManager;
import io.split.integrations.I... | true |
ac77978407e4c287debec6de71a3123eea844c62 | Java | abhishekjain14/droiduhs | /app/src/main/org/openuhs/UHSXML.java | UTF-8 | 5,517 | 2.125 | 2 | [] | no_license | /*
OpenUHS: Universal Hint System reader.
Copyright (C) 2012 David Millis
The original author can be reached at tvtronix@yahoo.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Softwar... | true |
ab1fb980f62610023364b739e2be6a52a756713f | Java | PrafullJain/TrainingPlacement-Android-Application-using-Mysql-PHP-integration | /TrainingPlacement/app/src/main/java/com/example/abhi/trainingplacement/StudentProfile.java | UTF-8 | 1,777 | 2.140625 | 2 | [] | no_license | package com.example.abhi.trainingplacement;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.TextView;
public class StudentProfile extends AppCompatActivity {
private TextView studname,studem,studregno,studmobno,studaltmobno,studgp... | true |
6ee484e8268e3d78a8383652ec2bba3122bced93 | Java | gaelix98/FantaCalcioUnisa | /FantaFootball/src/gestoreSquadra/InserisciGiocatoreFormazioneServlet.java | WINDOWS-1250 | 4,558 | 2.21875 | 2 | [] | no_license | package gestoreSquadra;
import java.io.IOException;
import java.sql.SQLException;
import java.util.List;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequ... | true |
3938f953188f64ec2b78b4f1d1a600ac7c59c1a5 | Java | aaronk24/Student-Development-Tracker | /sdt/src/org/tg8/sdt/domain/StudentNameComparator.java | UTF-8 | 667 | 3.1875 | 3 | [] | no_license | package org.tg8.sdt.domain;
import java.util.Comparator;
public class StudentNameComparator implements Comparator<Student> {
@Override
public int compare(Student s1, Student s2) {
if (lastNamesAreIdentical(s1, s2)) {
return compareFirstNames(s1, s2);
}
else {
return compareLastNames(s1, s2);
}
}
... | true |
970aa079dcfa92201e3381bca870ad152fb57f25 | Java | narasimha-sai95/ECLIPSE | /Session2/src/session2/SumDemo.java | UTF-8 | 542 | 3.6875 | 4 | [] | no_license | package session2;
class Sum{
int a,b,c;//instance variables can use entire class but local only upto the class
void setValues(int x,int y) //local variables of function or method
{
a=x;
b=y;
c=a+b;
}
void display() {
System.out.println("Sum of two numbers="+c);
}
}
public class SumDemo {
public static v... | true |
206a46439fbb8921d036ac0c748d7a802f554849 | Java | XdyGithub/hbnu-class1808 | /src/cn/hbnu/edu/net/ChatReceive.java | UTF-8 | 1,336 | 3.28125 | 3 | [] | no_license | package cn.hbnu.edu.net;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
/**
* 聊天程序接收端线程
*
* @author 陈迪凯
* @date 2020-11-05 9:01
*/
public class ChatReceive implements Runnable {
private DatagramSocket datagramSocket;
public ChatReceive(DatagramSocket datagram... | true |
59ca718f94e332b06f289e86107e69e961fa20a2 | Java | saurabh-gupta-1008/AutoShop | /SpringBootDatabaseConnectivity/src/main/java/com/dto/CarController.java | UTF-8 | 1,006 | 2.421875 | 2 | [] | no_license | package com.dto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.spring... | true |
cbe2d11b643adb9653f5987a4b1e5517fc5d4376 | Java | berkaykarakoc/ComputerFactoryConsoleApp | /G12_CENG431_HW5/src/business/Cable.java | UTF-8 | 68 | 1.960938 | 2 | [] | no_license | package business;
public enum Cable {
GOLD, SILVER, COPPER
}
| true |
228cca2112ca06abb0945e358c8e3fe80e999998 | Java | Lguerrer31/PruebaNaowee | /Prueba/src/interfaz/Principal.java | UTF-8 | 4,958 | 2.21875 | 2 | [] | no_license | package interfaz;
/**
*
* @author laura
*/
public class Principal extends javax.swing.JFrame {
public Principal() {
initComponents();
}
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents()... | true |
67cce59bba29a9aab11bafb17a23f9d5d280ad8e | Java | Paleksa95/SpringApp | /src/main/java/com/myapp/services/Implementation/UserServiceImplementation.java | UTF-8 | 1,718 | 2.59375 | 3 | [] | no_license | package com.myapp.services.Implementation;
import com.myapp.dao.UserDAO;
import com.myapp.models.Roles;
import com.myapp.models.User;
import com.myapp.services.RolesService;
import com.myapp.services.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.... | true |
bee582e4bf6aa240c775263bf017e9e36f1d820f | Java | wdsoft/taotaoMall | /taotao-manager/taotao-manager-service/src/main/java/net/wdsoft/taotao/service/user/impl/IUserService.java | UTF-8 | 163 | 1.601563 | 2 | [] | no_license | package net.wdsoft.taotao.service.user.impl;
/**
* Created by jwd on 2017/6/22.
*/
public interface IUserService {
public User getUserById(int userId);
}
| true |
d76a26c3e1d52e5cddc9f87d4e8f130d409313fa | Java | rzdp/rabbitmq-basics | /manual-acknowledgement/rabbitmq-consumer-app/src/main/java/com/rzdp/rabbitmqconsumerapp/RabbitmqConfig.java | UTF-8 | 2,721 | 2.25 | 2 | [] | no_license | package com.rzdp.rabbitmqconsumerapp;
import org.springframework.amqp.core.AcknowledgeMode;
import org.springframework.amqp.core.Binding;
import org.springframework.amqp.core.BindingBuilder;
import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.TopicExchange;
import org.springframework.amqp.... | true |
314b1faff437f819161100f8caf1b8936031ece5 | Java | Bekzodjon97/app-sales-system | /src/main/java/bek/dev/appsalessystem/service/AttachmentService.java | UTF-8 | 460 | 1.96875 | 2 | [] | no_license | package bek.dev.appsalessystem.service;
import org.springframework.http.HttpEntity;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public interface AttachmentService {
HttpEntity<String> uploadAttachment(MultipartHt... | true |
8bdd4d8d183ec9d5f68a2c0af0841aecf6d52817 | Java | scribble/scribble.github.io | /src/main/jbake/assets/docs/scribble/modules/core/src/main/java/org/scribble/ast/context/global/GDependencyMap.java | UTF-8 | 403 | 1.804688 | 2 | [
"Apache-2.0"
] | permissive | package org.scribble.ast.context.global;
import org.scribble.ast.context.DependencyMap;
import org.scribble.sesstype.name.GProtocolName;
public class GDependencyMap extends DependencyMap<GProtocolName>
{
protected GDependencyMap(GDependencyMap deps)
{
super(deps);
}
public GDependencyMap()
{
super();
}
@... | true |
9a8496895e697799ad82ba3151b3cae0c45d762a | Java | visallo/vertexium | /core/src/main/java/org/vertexium/event/DeleteEdgeEvent.java | UTF-8 | 853 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | package org.vertexium.event;
import org.vertexium.EdgeElementLocation;
import org.vertexium.Graph;
public class DeleteEdgeEvent extends GraphEvent {
private final EdgeElementLocation edge;
public DeleteEdgeEvent(Graph graph, EdgeElementLocation edge) {
super(graph);
this.edge = edge;
}
... | true |
5c5d1be32a6ac90be50a68d7fd74539f6ea377ce | Java | Lekesoldat/BACkup | /backend/core/src/main/java/backend/core/Person.java | UTF-8 | 1,751 | 3.390625 | 3 | [
"MIT"
] | permissive | package backend.core;
import java.util.ArrayList;
import java.util.UUID;
/**
* The person featured in the drinking session.
*/
public class Person {
private String id;
private String name;
private double weight;
private char gender;
private ArrayList<DrinkingSession> sessions;
/**
* Creation of a ne... | true |
398be50c9d79c66a537c21cdf279f6c599963714 | Java | IgorTribul/running-competition | /src/main/java/ru/geekbrains/running/competition/model/runner/Cat.java | UTF-8 | 853 | 2.65625 | 3 | [] | no_license | package ru.geekbrains.running.competition.model.runner;
public class Cat implements Runner {
private String name;
private int maxLength;
private int maxHeight;
public Cat (String name, int maxLength, int maxHeight) {
this.name = name;
this.maxLength = maxLength;
this.maxHeigh... | true |
1d1cae68b388b8eaa8b97d3a22dee1d536c7b45d | Java | krt1305/coreFramework | /src/main/java/com/testData/TestData.java | UTF-8 | 2,196 | 2.515625 | 3 | [] | no_license | package com.testData;
import io.codearte.jfairy.Fairy;
import io.codearte.jfairy.producer.DateProducer;
import io.codearte.jfairy.producer.net.NetworkProducer;
import io.codearte.jfairy.producer.payment.CreditCard;
import io.codearte.jfairy.producer.person.Person;
import io.codearte.jfairy.producer.text.TextProducer;
... | true |
2a763d0a327d670b24a6385a00fa7a0694bc5ffe | Java | suniljangir/JAVA-LAB | /Day4P1.java | UTF-8 | 391 | 3.375 | 3 | [] | no_license | ///Access modifiers within the class
class Day4P1
{
int A=5;
private int B=10;
public int C=20;
protected int D=30;
public static void main(String args[])
{
Day4P1 obj = new Day4P1();
System.out.println("Default A = "+obj.A);
System.out.println("Private B = "+obj.B);
System.out.println("Public C =... | true |
f6063dcb42e2a23daa215ea1c8394f87969b69ed | Java | yuanfangljy/blsq-upms | /src/main/java/com/blsq/admin/common/dto/MenuTree.java | UTF-8 | 1,730 | 2.046875 | 2 | [] | no_license | package com.blsq.admin.common.dto;
import com.blsq.admin.common.vo.MenuVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;
/**
* @author liujiayi
* @date 2019/22/31
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class MenuTree extends TreeNode {
private String icon;
pr... | true |
7edde6bd43d3a27e049a0c4c3a5b07e7c4d03994 | Java | luz24royaltailor/IPC1-1S2021 | /Unidad 3. Programacion Orientada a Objetos/Clase6/src/clase6/Clase6.java | UTF-8 | 15,897 | 3.734375 | 4 | [] | no_license | package clase6;
// Importamos el Scanner de toda la vida
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.util.Scanner;
/* La situacion ahora es un poco distinta, vamos a ver que nuestra clase main
CLASE MAIN: ES LA CLASE PRINCIPAL DEL PROYECTO
Ahora la vamos a ver como... | true |
6b1557fa69f8c90507bac0ac7416f2a207d5ba0c | Java | alexandraback/datacollection | /solutions_1483485_0/java/wistful/A.java | UTF-8 | 3,773 | 3.15625 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class A {
void solve() throws IOException {
in("A-small-attempt0.in"); out("A-small-attempt0.out");
final String a =
"ejp mysljylc kd kxveddknmc re jsicpdrysi\n" +
"rbcpc ypc rtcsra dkh wyfrepkym veddknkmkrkcd\... | true |
290074c75388986098c4bb60e72d896907f4d433 | Java | Yuexi-Wu/Logistics | /src/com/logistics/controller/customer/CustomerManageServlet.java | UTF-8 | 5,779 | 2.25 | 2 | [] | no_license | package com.logistics.controller.customer;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.logistics.model.po.Customer;
import com.l... | true |
0aaf9dc260fae757db22015228596f2dca5504fc | Java | AndreasFagschlunger/O2Xfs | /at.o2xfs.xfs/src/main/java/at/o2xfs/xfs/pin/WfsPINGetPIN.java | UTF-8 | 4,170 | 1.710938 | 2 | [
"BSD-2-Clause"
] | permissive | /*
* Copyright (c) 2017, Andreas Fagschlunger. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, ... | true |
efa17dd9192ea3e2371b2f9ccd5f3b85f3296f21 | Java | ravishankarahirwar/DingDong | /app/src/main/java/world/best/musicplayer/utils/files/tag/id3/AbstractTag.java | UTF-8 | 1,544 | 3.109375 | 3 | [] | no_license | package world.best.musicplayer.utils.files.tag.id3;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.nio.ByteBuffer;
import java.util.Iterator;
/**
* A tag is term given to a container that holds audio metadata
*/
public abstract class AbstractTag extends AbstractTagItem
{
protected stat... | true |
6b3daf24ab03ec9068688ca765ae3742ae83da72 | Java | Hisoka-HC/hunter | /src/main/java/com/elabel/hospital/service/staff/StaffServiceImpl.java | UTF-8 | 1,116 | 2.1875 | 2 | [] | no_license | package com.elabel.hospital.service.staff;
import com.elabel.hospital.dao.staff.StaffMapper;
import com.elabel.hospital.pojo.staff.Staff;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Service("staffService")
pu... | true |
c6e8ca09dc559122a9a32d3544eb2c19a58a14ff | Java | edward1iao/rabbitmq-learning | /src/main/java/com/edward1iao/rabbitmq/ps/direct/Consumer1.java | UTF-8 | 1,607 | 2.6875 | 3 | [] | no_license | package com.edward1iao.rabbitmq.ps.direct;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
import com.edward1iao.rabbitmq.util.ConnectionUtil;
import com.rabbitmq.client.AMQP.BasicProperties;
import com.rabbitmq.client.Channel;
import com.rabbitmq.client.Connection;
import com.rabbitmq.clien... | true |
c769cce6093d0b087fe7d4bd84a8d9bef78dc001 | Java | iskksinzz/java_barancev | /sandbox/src/main/java/com/bek_qa/java_barancev/PointsMain.java | UTF-8 | 311 | 2.984375 | 3 | [
"Apache-2.0"
] | permissive | package com.bek_qa.java_barancev;
/**
* Created by Bek on 4/9/2017.
*/
public class PointsMain {
public static void main(String[] args) {
Point p1 = new Point(5, 6);
Point p2 = new Point(7, 8.1);
System.out.println("The distance between two points: " + p1.distance(p2));
}
}
| true |
d60fab21b66685c06dc64659d59f8f43df56a004 | Java | marnadir/Graphic-Editor-For-Drawing-Plans-in-LaTeX | /EditorPlanLaTeX/src/PlanPart/OvalCounter.java | UTF-8 | 1,486 | 3.125 | 3 | [] | no_license | package PlanPart;
import java.util.ArrayList;
/**
* Used to store all ovals of the plan.
* @author nadir
* */
public class OvalCounter {
ArrayList<Oval> listOval=new ArrayList<>();
public OvalCounter() {
// TODO Auto-generated constructor stub
}
/*add oval to the list and represent it,if it isnt drawn... | true |
b867bcce8f51bb503346b0f4a3562edbe5c1ae42 | Java | leonelDLV/todo-app-training | /todo-backend/src/main/java/com/umss/todo/common/config/ApplicationSecurityConfig.java | UTF-8 | 2,794 | 2.125 | 2 | [] | no_license | package com.umss.todo.common.config;
import java.util.Arrays;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpMethod;
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManager... | true |
55ad09ba0a79641f8623024fbe3df8d608dbc675 | Java | MonitorDev/monitor | /src/com/rongji/websiteMonitor/persistence/Task.java | UTF-8 | 4,533 | 1.953125 | 2 | [] | no_license | package com.rongji.websiteMonitor.persistence;
import java.util.Date;
public class Task {
private String taskId;
private String taskName;
private String taskSummary;
private String taskPort;
private String taskUsername;
private String taskPassword;
private String taskType;
private String ext1;
private String... | true |
5bd54de85170ab1dcce638916c5acacc7e0eb097 | Java | YousefEbrahim/Twitter-client | /app/src/main/java/com/codex/twitterclient/base/UIBase/AppMainActivity.java | UTF-8 | 6,065 | 2.03125 | 2 | [] | no_license | package com.codex.twitterclient.base.uibase;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import a... | true |
958a825eff9676b373cf4ddbaab2c5367649d4d7 | Java | 17martix/Alto | /app/src/main/java/com/structurecode/alto/Helpers/Utils.java | UTF-8 | 17,782 | 1.726563 | 2 | [] | no_license | package com.structurecode.alto.Helpers;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.bluetooth.BluetoothAdapter;
import android.content.Context;
import android.os.Build;
import android.provider.Settings;
import android.util.Log;
import android.view.View;
import an... | true |
3dfeafe788783aa49d66a7d79a700e6e25865a8a | Java | noarrassam/BestComputerManagment | /Best Computer Managment/Data/RgstrWriter.java | UTF-8 | 111 | 1.796875 | 2 | [] | no_license | package Data;
import Business.RgstrEmp;
public interface RgstrWriter
{
boolean addRgstr(RgstrEmp rgstr);
}
| true |
8144ce82a6d6730b6bdbb26c43016f33445692f7 | Java | sc89703312-org/- | /express-demo-master/server/src/test/java/org/server/usermessagedata/UserMessageDataTest.java | UTF-8 | 1,090 | 2.390625 | 2 | [] | no_license | package org.server.usermessagedata;
public class UserMessageDataTest {
/*
UserMessageDataService_Impl userMessage;
public UserMessageDataTest() {
// TODO Auto-generated constructor stub
try {
userMessage = new UserMessageDataService_Impl();
} catch (RemoteException e) {
// TODO Auto-generated c... | true |
ab1a035b0ef9a2963d183d1818d303d92dfb2a6f | Java | lochness42/makimono | /net.makimono.dictionary.indexer/test/net/makimono/dictionary/converter/KanaConverterTest.java | UTF-8 | 1,622 | 2.71875 | 3 | [] | no_license | package net.makimono.dictionary.converter;
import static org.junit.Assert.*;
import net.makimono.dictionary.converter.KanaConverter;
import org.junit.Test;
public class KanaConverterTest {
private KanaConverter converter = new KanaConverter();
@Test
public void testEmptyHiragana() {
String romaji = converter... | true |
aa7f2d8549694d9d8f257167c57154d5715c4fef | Java | camathieu/storm-asynchbase | /src/main/java/storm/asynchbase/bolt/ExtractKeyValuesBolt.java | UTF-8 | 7,089 | 2.28125 | 2 | [] | no_license | /*
* Charles-Antoine Mathieu <charles-antoine.mathieu@ovh.net>
*/
package storm.asynchbase.bolt;
import backtype.storm.task.OutputCollector;
import backtype.storm.task.TopologyContext;
import backtype.storm.topology.OutputFieldsDeclarer;
import backtype.storm.topology.base.BaseRichBolt;
import backtype.storm.tuple.... | true |
be5318efa21c9a1a683f8d28a0aa15a4dc520c23 | Java | TheExerosisGaming/AndroidServer | /src/main/java/me/exerosis/entity/server/event/packet/SendPacketEvent.java | UTF-8 | 654 | 2.125 | 2 | [] | no_license | package me.exerosis.entity.server.event.packet;
import me.exerosis.entity.server.connection.PlayerConnection;
import me.exerosis.entity.server.packets.Packet;
import me.exerosis.reflection.event.Cancellable;
/**
* Created by The Exerosis on 8/6/2015.
*/
public class SendPacketEvent extends PacketEvent implements Ca... | true |
ebb71b70abbc1b0b24db0985ec9ef17191b39e1b | Java | threerings/getdown | /core/src/main/java/com/threerings/getdown/data/Resource.java | UTF-8 | 11,497 | 2.484375 | 2 | [
"BSD-2-Clause"
] | permissive | //
// Getdown - application installer, patcher and launcher
// Copyright (C) 2004-2018 Getdown authors
// https://github.com/threerings/getdown/blob/master/LICENSE
package com.threerings.getdown.data;
import java.io.*;
import java.net.URL;
import java.security.MessageDigest;
import java.util.*;
import java.util.zip.Z... | true |
474fa160f378bb33082f2564ad8a0ba691d086c4 | Java | A-YoungMan/tourism | /src/main/java/com/oaec/tourism/TourismApplication.java | UTF-8 | 411 | 1.640625 | 2 | [] | no_license | package com.oaec.tourism;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
@MapperScan("com.oaec.tourism.mapper")
public class TourismApplication {
public static void mai... | true |
29c017cccfa82a54c5e5a934c0b8a6ba2552e950 | Java | rolroralra/gof | /src/structural/decorator/example2/NotifierTest.java | UTF-8 | 861 | 2.828125 | 3 | [] | no_license | package structural.decorator.example2;
import org.junit.jupiter.api.Test;
import structural.decorator.example2.impl.EmailNotifierDecorator;
import structural.decorator.example2.impl.KakaoTalkNotifierDecorator;
import structural.decorator.example2.impl.NotifierImpl;
import structural.decorator.example2.impl.SmsNotifier... | true |
1404e3421ef0cd030253a6741d3696796e312af4 | Java | nielswestland/gsohassanmehmet | /src/aex/client/MockEffectenbeurs.java | UTF-8 | 2,136 | 2.5 | 2 | [] | no_license | package aex.client;
import aex.shared.IEffectenBeurs;
import fontyspublisher.IRemotePropertyListener;
import java.rmi.RemoteException;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
/**
* @deprecated
* MockEffectenbeurs (locale effectenbeurs)
* @author Niels Westland
*/
@SuppressWar... | true |
25b9fd25ac61472eb483c107e3a01ac0d5d231dd | Java | supriyasastri/springmvc-handson-padma | /src/main/java/org/springmvc/model/User.java | UTF-8 | 2,333 | 2.875 | 3 | [] | no_license | package org.springmvc.model;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
public class User {
@Size( min = 5, max = 20, message = "User Name must be between 5 and 20 characters in leng... | true |
0561d971cfb4a04a271362019fee3022c578bdfe | Java | darshanhs90/Java-Coding | /src/yelpInterview/_Array08RotateArray.java | UTF-8 | 761 | 3.40625 | 3 | [
"MIT"
] | permissive | package yelpInterview;
import java.util.Arrays;
public class _Array08RotateArray {
public static void main(String a[]){
int[] inputArray = new int[]{1, 2, 3, 4, 5, 6,7};
System.out.println(Arrays.toString(inputArray));
inputArray=rotateArray(inputArray,6);
System.out.println(Arrays.toString(inputArray));
}
... | true |
8656a9453d11a0e6e711e71348bd5e247917aa9a | Java | danmayer/android_travel_calculator | /app/src/main/java/com/mayerdan/travel_app/CreateTripActivity.java | UTF-8 | 1,290 | 2.359375 | 2 | [] | no_license | package com.mayerdan.travel_app;
import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log;
import android.widget.EditText;
import android.widget.Toast;
import com.mayerdan.travel_app.model.Trip;
import com.mayerdan.travel_app.tasks.CreateTripTask;
import butterknife.ButterKnife;
import butter... | true |
361586f073d8bf1e65388a5a603261890ddc2996 | Java | parlad/Relationship-Manager | /Relationship-Management/src/main/java/com/neupane/relationship/API/MailController.java | UTF-8 | 1,467 | 2.203125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.neupane.relationship.API;
import com.neupane.relationship.Helper.Email;
import com.neupane.relationship.system.Controller;... | true |
938189e8e0e25b32d1a96a413653867705a1138e | Java | treegrammer/algo | /algorythm/src/bj/silver4/Main_1002.java | UHC | 1,275 | 3.453125 | 3 | [] | no_license | package bj.silver4;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main_1002 {
public static void main(String[] args) throws Exception {
StringBuilder result = new StringBuilder();
BufferedReader br = new BufferedReader(new InputStreamReader(System... | true |
a2b518a7e78e5bfff76914abf8351d7bad23c7e7 | Java | bigict/glyBranch | /glyBranch/src/main/java/org/eurocarbdb/MolecularFramework/io/iupac/SugarImporterIupacCondenced.java | UTF-8 | 11,268 | 1.796875 | 2 | [] | no_license | /*
* EuroCarbDB, a framework for carbohydrate bioinformatics
*
* Copyright (c) 2006-2009, Eurocarb project, or third-party contributors as
* indicated by the @author tags or express copyright attribution
* statements applied by the authors.
*
* This copyrighted material is made available to anyone wishing t... | true |
a375f388a058b3bd690ceaef231afab9ff0f2cf7 | Java | facundolinlaud/long-ago | /core/src/com/facundolinlaud/supergame/quests/QuestBlackboard.java | UTF-8 | 1,333 | 2.140625 | 2 | [] | no_license | package com.facundolinlaud.supergame.quests;
import com.badlogic.ashley.core.Entity;
import com.facundolinlaud.supergame.behaviortree.PoolableTaskManager;
import com.facundolinlaud.supergame.behaviortree.composites.Blackboard;
import com.facundolinlaud.supergame.managers.world.*;
import com.facundolinlaud.supergame.se... | true |
02ea6c581b2b4c368fd369b90be70d9b14cf327e | Java | mtgooreck/GooreckRepo | /biblioteka/src/test/java/zaawansowana_java/biblioteka/controller/BookDatabaseTest.java | UTF-8 | 3,655 | 2.671875 | 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 zaawansowana_java.biblioteka.controller;
import java.text.ParseException;
import java.util.List;
import org.junit.After;
impo... | true |
150950cc49c9c7dfc7ae7161b34e4c2526d47d2f | Java | geshtop/androidTravelProject | /app/src/main/java/com/geshtop/project/Entity/Convertors.java | UTF-8 | 4,011 | 2.671875 | 3 | [] | no_license | package com.geshtop.project.Entity;
import androidx.room.TypeConverter;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.google.gson.reflect.TypeToken;
import java.lang.reflect.Type;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java... | true |
1daf5739e4e4e6e8270efea20c725d83bb599b98 | Java | RajBasnet/Create_Tree_DataStrcuture | /ITreeChecker.java | UTF-8 | 1,217 | 3.34375 | 3 | [] | no_license | package edu.wmich.CS3310.PA2.RajBasnet;
/**
* This interface is implemented by TreeChecker to use all the methods defined in it.
* @param <T> Represents the generic nature of the tree
*/
public interface ITreeChecker<T> {
/**
* This method checks if the two trees are mirror image of each other or not. ... | true |
8a558a52b6afb651ce2c06d445f4c1c6ccd73542 | Java | pis5430/chapter04 | /src/com/javaex/ex01/ListApp.java | UTF-8 | 1,680 | 4.28125 | 4 | [] | no_license | package com.javaex.ex01;
public class ListApp {
public static void main(String[] args) {
//과제
//사각형은 사각형대로 -- 기존
//원은 원대로 -- 추가
//삼각형은 삼각형대로 -- 추가
// 각각의 List를 만들어서 관리 --> 양이 너무 많아짐 (비효율)
//사각형 관리
System.out.println("====사각형관리====");
RectList rList = new RectList();
Rec... | true |
c45f6ab6aa39010ea80e3b8090542b34fce87102 | Java | k8y1b/OceanProj | /src/ui/controllers/SelectionController.java | UTF-8 | 1,156 | 2.734375 | 3 | [] | no_license | package ui.controllers;
import model.DatabaseConnectionHandler;
import model.TableEntry;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;
import java.util.stream.Collectors;
public class SelectionController extends QueryController {
@Override
void runAction() {
List<Tab... | true |
4a4d36a14af1b5311dee4a1e00cf0bb2597aa929 | Java | ggulRimi/ChatRoom | /Server/src/ServerData.java | UTF-8 | 20,454 | 1.875 | 2 | [] | no_license | import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;
import java.util.HashMap;
import java.util.Iterator;
import java.util.TreeMap;
import java.util.Vector;
import javax.sql.rowset.... | true |
d734cb5f050ad06e6d98423cfbe64ce16db4e546 | Java | ZhaoNingqiang/RefreshLayout | /app/src/main/java/com/ningqiang/pullrefresh/adapter/BaseViewHolder.java | UTF-8 | 494 | 2.203125 | 2 | [] | no_license | package com.ningqiang.pullrefresh.adapter;
import android.support.annotation.IdRes;
import android.support.v7.widget.RecyclerView.ViewHolder;
import android.view.View;
/**
* Create on 2017/7/26/下午2:58
*
* @author 赵凝强
* @version 1.0.0
*/
public class BaseViewHolder extends ViewHolder {
public BaseViewHolder(... | true |
03bc0196988783ebd9f299d52f13f4723efee91f | Java | ssmtariq/image-processing-java | /src/com/ssmtariq/RecolorFlowersSingleThread.java | UTF-8 | 3,340 | 3.265625 | 3 | [] | no_license | package com.ssmtariq;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
public class RecolorFlowersSingleThread {
public static final String SOURCE_FILE = "./resources/many-flowers.jpg";
public static final String DESTINATION_FILE = "./out/many... | true |
cebde34d1b60b973c5e34799f177f6ebf36ffe36 | Java | nuxeo/geronimo-txmanager | /geronimo-transaction/src/test/java/org/apache/geronimo/transaction/manager/AbstractRecoveryTest.java | UTF-8 | 8,508 | 1.984375 | 2 | [
"Apache-2.0"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); yo... | true |
8e104baac5a416f414fd5891b45eb095c868e145 | Java | tizfa/processfast-api | /src/main/java/it/cnr/isti/hlt/processfast/data/PartitionableDataset.java | UTF-8 | 10,692 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | /*
*
* ****************
* Copyright 2015 Tiziano Fagni (tiziano.fagni@isti.cnr.it)
*
* 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
... | true |
4c55f9ba9c969842c0ebb9fbd31c3dffca8e1ab4 | Java | attemper/attemper | /attemper-common/src/main/java/com/github/attemper/common/param/app/project/ProjectInfoSaveParam.java | UTF-8 | 606 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.github.attemper.common.param.app.project;
import com.github.attemper.common.enums.UriType;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;
@Getter
@Setter
@ToString
public class ProjectInfoSaveParam extends ProjectNameParam {
protected ... | true |
20894ea1f7b50a3061ff3e304ede62c405bcc0a4 | Java | mehmetsns/spring_demo2 | /src/main/java/org/example/controller/MyAppController.java | UTF-8 | 863 | 2.015625 | 2 | [] | no_license | package org.example.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.Rest... | true |
2ff9262fa29ba463b233b7b72a4a8b10815e0436 | Java | CLFN99/GSO | /UnittestenTimev2/src/fontys/agenda/Appointment.java | UTF-8 | 1,749 | 3.15625 | 3 | [] | no_license | package fontys.agenda;
import fontys.time.ITimeSpan;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
/**
*
* @author MagicLegend
*
*/
public class Appointment {
private String subject;
private ITimeSpan timeSpan;
private List<Contact> contact... | true |
b6c6e6e0744ad908306432e43f3b338dfb01e796 | Java | liuzhen1025/test-project | /jsonpathstudy/src/test/java/com/gennlife/json/path/DateUtils.java | UTF-8 | 1,362 | 2.515625 | 3 | [] | no_license | /**
* copyRight
*/
package com.gennlife.json.path;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.text.SimpleDateFormat;
import java.util.Date;
/**
* @author liuzhen
* Created by liuzhen.
* Date: 2018/3/13
* Time: 11:44
*/
public class DateUtils {
private static Logger logger = Logge... | true |
0caf70a4ba0aec52620d84d596477805db50fa02 | Java | qiansheng1987/utility | /algorithm/src/main/java/com/qs/sortingAlgorithm/InsertionSort.java | UTF-8 | 1,084 | 3.953125 | 4 | [] | no_license | package com.qs.sortingAlgorithm;
import java.util.Arrays;
/**
* 功能描述 <p>插入排序</p>
* <li>
* 原理:将数据分为两部分,有序部分和无序部分,一开始有序部分包含第一个元素,依次将无序的元素插入到有序部分,
* 直到所有元素有序。插入排序又分为直接插入排序、二分插入排序,链表插入等,这里只讨论直接插入排序,它是稳定的排序算法
* 时间复杂度伟O(n^2)
* </li>
* @author sheng.qian01@ucarinc.com
* @date 2020/7/14 11:26
*/
public class I... | true |
d6ce2e9fb317186441ae7841262e37dfa2a4cda9 | Java | orbeon/saxon-he | /latest9.6/hej/net/sf/saxon/functions/Outermost.java | UTF-8 | 5,384 | 2.34375 | 2 | [] | no_license | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014 Saxonica Limited.
// This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
// If a copy of the MPL was not distributed with this file, You can obtain ... | true |
b5db0c926b5bbf462bbf584e6df19f4d0a2b8c73 | Java | taosense/weixin | /src/main/java/com/xinhuanet/weixin/util/http/Button.java | UTF-8 | 307 | 1.976563 | 2 | [] | no_license | package com.xinhuanet.weixin.util.http;
public class Button implements java.io.Serializable{
private static final long serialVersionUID = -2318600150791718081L;
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
| true |
bd05c8517e8410bb694c7de16c4a17fa1d5440ee | Java | RubyJing/myJavaStudy | /src/main/java/tips/线程例子/使用方式/MyThread.java | UTF-8 | 668 | 3.78125 | 4 | [] | no_license | package tips.线程例子.使用方式;
/**
* 继承Thread类
* 当调用 start() 方法启动一个线程时,虚拟机会将该线程放入就绪队列中等待被调度,当一个线程被调度时会执行该线程的 run() 方法。
* @author RubyJing
* @version 1.0
* @date 2020/8/27 16:05
*/
public class MyThread extends Thread {
@Override
public void run(){
System.out.println("线程启动!");
}
public static v... | true |
2c78c2fd0c93d0887e81ee5764673205c93716db | Java | sunny6142/UP-Education-Board | /4/UP_Education_Board/app/src/main/java/com/example/sunny/up_education_board/dataadd.java | UTF-8 | 959 | 2.265625 | 2 | [] | no_license | package com.example.sunny.up_education_board;
import android.os.Bundle;
import android.widget.EditText;
import com.google.firebase.database.DatabaseReference;
import com.google.firebase.database.FirebaseDatabase;
import java.util.HashMap;
import java.util.Map;
/**
* Created by Sunny on 5/22/2017.
*/
public class... | true |
f14f89f0207e9d10a8e4c5449fd613c13730f8c7 | Java | fabri1983/java2proto2grpc | /src/test/java/org/fabri1983/javagrpc/testutil/ServiceDiscoveryPropertiesFromFile.java | UTF-8 | 1,827 | 2.421875 | 2 | [] | no_license | package org.fabri1983.javagrpc.testutil;
import java.util.Properties;
public class ServiceDiscoveryPropertiesFromFile implements IServiceDiscoveryProperties {
private static final String SERVICE_DISCOVERY_PROPERTIES_FILENAME = "service-discovery-test.properties";
private String consulServiceName;
private String... | true |
ffbc908e4a56fc174541d6acd925e2389876cf87 | Java | KapelY/ThinkingInJava | /src/com/company/generics/coffee/Breve.java | UTF-8 | 96 | 1.546875 | 2 | [] | no_license | package com.company.generics.coffee;
/**
* page 510
*/
public class Breve extends Coffee {
}
| true |
a188e9fbb3c1b4e4fce4d8e678faf8b1c7c4e431 | Java | MrYuguangbao/spring-springmvc | /src/main/java/com/springtest/springaop_11_1/GameMain.java | UTF-8 | 754 | 2.203125 | 2 | [] | no_license | package com.springtest.springaop_11_1;
import com.springtest.profile.People;
/**
* @author admin
* @desc
* @date 2019/7/27 22:54
*/
public class GameMain {
public static void main(String[] args) {
IPeople iPeople = new PeopeoImpl();
Interceptor interceptor = new PeopleInterceptor... | true |
b601c98ae1f86295a3ca3d5030b637ead559e5cf | Java | Nitab/EscuchayAcierta | /app/src/main/java/com/example/android/escuchayacierta/Animales1.java | UTF-8 | 2,554 | 2.078125 | 2 | [] | no_license | package com.example.android.escuchayacierta;
import android.content.Intent;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.RadioButton;
import android.widget.RadioGroup;
import android.widget.Toast;
public cl... | true |
1559463db9386fb26f094808a6fbc272a7c15493 | Java | fjblesa/Conference | /Conference/conference/src/conference/actions/create/event/ActionCreateEvent.java | UTF-8 | 528 | 2.375 | 2 | [] | no_license | package conference.actions.create.event;
import java.util.List;
import conference.entity.event.Event;
/**
* Interface to create Event
*
* @author fblesa
*
*/
public interface ActionCreateEvent{
/**
*
* Method to create Event, receives only one input
*
* @param eventInput
* @return
*/
public Eve... | true |
40a93d9b9cbf3c5a858283fff97dc9606e903095 | Java | BreakOnly/project | /salary_wallet/src/main/java/com/jrmf/taxsettlement/api/service/prepareauthority/QueryOrderQuotaServiceAttachmentDetail.java | UTF-8 | 872 | 1.90625 | 2 | [] | no_license | package com.jrmf.taxsettlement.api.service.prepareauthority;
/**
* @author 种路路
* @create 2019-06-14 10:46
* @desc QueryOrderQuotaServiceAttachment明细
**/
public class QueryOrderQuotaServiceAttachmentDetail {
/**
* 服务公司id
*/
private String transferCorpId;
/**
* 金额
*/
private Strin... | true |
0758aefaac5ecec65c7e4440cb566e64f7ca44f8 | Java | officefloor/Subscription | /server/src/main/java/net/officefloor/app/subscription/store/User.java | UTF-8 | 986 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | package net.officefloor.app.subscription.store;
import java.util.Date;
import java.util.Optional;
import java.util.stream.Stream;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;
import lombok.Data;
import lombok.NoArg... | true |
b44fadb699e9671af53553d68f8db4fd2b3da510 | Java | galihi5/logbooks | /spring/logbook/src/main/java/gaw/logbook/geographic/CountryResource.java | UTF-8 | 864 | 2.234375 | 2 | [] | no_license | package gaw.logbook.geographic;
import java.sql.SQLException;
import java.util.List;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import gaw.logbook.exception.NotFoundException;
... | true |
11a17057f9f2d30e10271aa4c726598b01b0193a | Java | tain198127/lintcode | /mytest/src/main/java/com/danebrown/netty/server/ServerSelectorMultiThreadMain.java | UTF-8 | 14,649 | 2.765625 | 3 | [] | no_license | package com.danebrown.netty.server;
import lombok.extern.log4j.Log4j2;
import java.io.IOException;
import java.net.InetSocketAddress;
import java.nio.ByteBuffer;
import java.nio.channels.Channel;
import java.nio.channels.ClosedChannelException;
import java.nio.channels.SelectionKey;
import java.nio.channels.Selector;... | true |
3ba461f64eb4b3788482b2e30d8814a61e3cc9a6 | Java | shellxx/aiweishe | /waishe1/src/com/waishe/dao/Impl/UserDaoImpl.java | UTF-8 | 4,014 | 2.375 | 2 | [] | no_license | package com.waishe.dao.Impl;
import com.waishe.dao.UserDao;
import com.waishe.domain.Product;
import com.waishe.domain.User;
import com.waishe.utils.C3p0Utils;
import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;
import org.apache.commons.dbutils.handlers.BeanListHandl... | true |
60c49f87f1b8bd5e9e89bd6d9b12328156081afa | Java | Pastor10/app-ws-entrepatas | /src/main/java/app/ws/entrepatas/repository/UsuarioRepository.java | UTF-8 | 1,883 | 1.953125 | 2 | [] | no_license | package app.ws.entrepatas.repository;
import app.ws.entrepatas.model.UsuarioEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springfram... | true |
4633b41d43a35d69424f8c7281e3c5764d7c385d | Java | deepakjd/MilkMan | /main/java/com/comorinland/milkman/customerapp/ConfirmCancelDelivery.java | UTF-8 | 7,526 | 1.90625 | 2 | [] | no_license | /************************************************************************************************
File Name : ConfirmCancelDelivery.java
Purpose : This file implements an expandable list with a button at the bottom called
"Cancel Delivery". The expandable list has two option items. A customer can customer_canc... | true |
97bd2a8ae3382061e67eccc4b52154ddd490fa05 | Java | Dims-M/Proek | /src/hz/poKnigeShilda/Randomm.java | UTF-8 | 4,040 | 3.0625 | 3 | [] | no_license | package hz.poKnigeShilda;
import java.util.Scanner;
/**
* Created by Администратор on 24.10.2016.
*/
public class Randomm {
int hranenie [] = new int[10];
public static void main(String[] args) {
Randomm nandomm = new Randomm();
nandomm.raschetRandom();
}
public void raschetRan... | true |
1b7e6b81724189bb0bf509fc4519ade278f9e9e7 | Java | chrislucas/about-os | /kotlin/about_coroutines/sample-coroutines/src/main/kotlin/sample/ktutorial/ktacademy/tutorial/mutability/package-info.java | UTF-8 | 691 | 2.8125 | 3 | [] | no_license | package sample.ktutorial.ktacademy.tutorial.mutability;
/*
https://kt.academy/article/ek-mutability
Algumas razoes para preferir imutabilidade ao inves de mutabilidade
- Objetos imutaveis sao perfeitos para contrucao de outros objetos, mutaveis ou imutaveis.
Podemis decidir para esses novos objetos os seu... | true |
df0f0d06ead6e2ff2b93a3d0f210bd818833e542 | Java | 1181631922/TestLameJni | /app/src/main/java/cn/edu/sjzc/fanyafeng/testlamejni/util/S.java | UTF-8 | 2,422 | 2.71875 | 3 | [] | no_license | package cn.edu.sjzc.fanyafeng.testlamejni.util;
/**
* System统一管理类
*
* @author 樊亚风
*/
public class S {
private S() {
/* cannot be instantiated */
throw new UnsupportedOperationException("cannot be instantiated");
}
public static boolean isSystem = true;// 是否需要打印bug,可以在application的onCr... | true |
9d1b8fe7442bd6cb6a88792748eba101b49cad2b | Java | WillianZhong/utils | /GenericServiceImpl.java | UTF-8 | 1,654 | 2.859375 | 3 | [] | no_license |
import java.util.List;
/**
* @Description The implementation class of GenericService, other custom
* ServiceImpl, inherits from it, can get common additions,
* deletions, and changes. The unimplemented methods have their own
* implementations. Model : Represents a table in... | true |
40ca909215f37d6e62474387adc2bd9dae7d2e0a | Java | A1621377453/qqmr.parent | /web/src/test/java/com/qingqingmr/qqmr/web/SetTest.java | UTF-8 | 999 | 2.59375 | 3 | [] | no_license | package com.qingqingmr.qqmr.web;
import org.junit.Test;
import java.util.HashSet;
import java.util.LinkedHashSet;
import java.util.Set;
import java.util.TreeSet;
/**
* @author crn
* @datetime 2018-07-23 15:54:01
*/
public class SetTest {
@Test
public void test1(){
Set<String> set = new HashSet<>()... | true |
af83e938f216e1ba5ce7af2d664a46e87ed4ffef | Java | HomeInGuanglunshan/filter.interceptor.listener | /filter.interceptor.listener/src/main/java/filter/interceptor/listener/config/MyWebConfig.java | UTF-8 | 1,676 | 2.171875 | 2 | [] | no_license | package filter.interceptor.listener.config;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.ServletListenerRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.spring... | true |
1399ea0562a42d16b3ca43a950a39b7bd5a7819d | Java | ybw977709134/DaXiangCCe | /DaXiangCe/daXiangCe/src/main/java/com/daxiangce123/android/manager/SensitiveWordGrepManager.java | UTF-8 | 5,395 | 2.296875 | 2 | [] | no_license | package com.daxiangce123.android.manager;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.IntentFilter;
import com.daxiangce123.R;
import com.daxiangce123.android.App;
i... | true |
90699c361bd2940a1f3e67cc9501e83c185a9a86 | Java | gabriellavg/distributed-crawler-with-hadoop | /CrawlerUI/src/java/i14013/servlet/UploadFileServlet.java | UTF-8 | 2,340 | 2.328125 | 2 | [] | no_license | package i14013.servlet;
import i14013.database.Frontier;
import i14013.engine.UrlChecker;
import java.io.IOException;
import java.io.InputStream;
import java.util.Scanner;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servle... | true |
cc0f64888981a362a01eaff2ab6cd65bca131b78 | Java | huangcong/huikang | /src/main/java/com/up72/sys/ActConstants.java | UTF-8 | 610 | 1.601563 | 2 | [] | no_license | package com.up72.sys;
public class ActConstants {
public static final String SESSION_SITE_KEY = "SESSION_SITE_KEY";//登陆session key值
public static final String SESSION_USER_KEY = "SESSION_USER_KEY";//登陆session key值
public static final String SESSION_ROLE_KEY = "SESSION_ROLE_KEY";//登陆session role id值
p... | true |
b737c2630f2b8e7e321864b951222140d975a819 | Java | soniapku/CREC | /unrefactorInstances/elasticsearch/19/cloneInstance2.java | UTF-8 | 795 | 3.203125 | 3 | [] | no_license | public void testRightShift() {
// byte
assertEquals((byte) 15, exec("byte x = 60; x >>= 2; return x;"));
assertEquals((byte) -15, exec("byte x = (byte) -60; x >>= 2; return x;"));
// short
assertEquals((short) 15, exec("short x = 60; x >>= 2; return x;"));
assertEqual... | true |
f41c21f8799bd970a0b2a5c247cfb343a9e70887 | Java | sengeiou/RongYiLife-Java | /src/main/java/com/rysh/module/productCustomize/service/impl/ProductCustomizeCategoryServiceImpl.java | UTF-8 | 2,269 | 2.125 | 2 | [] | no_license | package com.rysh.module.productCustomize.service.impl;
import java.util.Date;
import java.util.List;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.rysh.module.commonService.beans.ParamBean;
import com.rysh.module.productCustomize.beans.ProductCustomizeCategory;
import com.r... | true |
b7d5c859ddc62a6ca0b9fd43cc18b4e0557a4f21 | Java | MarchNineteen/spring-example | /spring-example-es/src/main/java/com/wyb/es/controller/LoginLogController.java | UTF-8 | 5,018 | 2 | 2 | [
"MIT"
] | permissive | /*
* @(#)LoginLogController Created on 2020/3/5
* Copyright (c) 2020 ZDSoft Networks, Inc. All rights reserved.
* $$ Id$$
*/
package com.wyb.es.controller;
import com.wyb.es.dao.LoginLogRepository;
import com.wyb.es.entity.LoginLogDO;
import org.elasticsearch.index.query.QueryBuilder;
import org.elasticsearch.i... | true |
7533b0698421eeac074bb8ceef3b5d4e0e088f6c | Java | suzukihr/ClipAnimation | /app/src/main/java/com/example/clipanimation/animations/ClipAnimation.java | UTF-8 | 219 | 1.898438 | 2 | [
"MIT"
] | permissive | package com.example.clipanimation.animations;
import android.graphics.Path;
/**
* Created by suzukihr on 2016/02/02.
*/
public interface ClipAnimation {
Path createPath(float progress, int width, int height);
}
| true |