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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
60ac344aef658d62c29c39e7dbf9c4503d91c8d9 | Java | Nuix/Nx | /Nx/src/main/java/com/nuix/innovation/enginewrapper/NuixLicenseFeaturesLogger.java | UTF-8 | 3,874 | 2.34375 | 2 | [
"CC-BY-2.5",
"Apache-2.0"
] | permissive | package com.nuix.innovation.enginewrapper;
import nuix.Licence;
import nuix.LicenceProperties;
import nuix.engine.AvailableLicence;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.StringJoiner;
/***
* Helper class for logging what features are present on a given ... | true |
5d0c9f359bff8f7313c061730d95d3b668cae2fd | Java | PerrySetGo/spark-file-upload | /src/main/java/UploadExample.java | UTF-8 | 2,182 | 2.6875 | 3 | [
"Apache-2.0"
] | permissive | import spark.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.nio.file.*;
import static spark.Spark.*;
import static spark.debug.DebugScreen.*;
public class UploadExample {
public static void main(String[] args) {
enableDebugScreen();
File uploadDir = new File... | true |
32dcd3a47f90128fe67afd99c77fbb45b9a2957f | Java | configrd/configrd-core | /src/main/java/io/configrd/core/processor/PropertiesProcessor.java | UTF-8 | 2,235 | 2.703125 | 3 | [
"Apache-2.0"
] | permissive | package io.configrd.core.processor;
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.HashMap;
import java.util.Map;
import java.util.Properties;
import io.configrd.core.util.StringUtils;
publi... | true |
7df770652932bc8a9d1baf7fdec959513da9d52b | Java | jaysu-github/PAT | /PAT/结构_01.java | WINDOWS-1252 | 714 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | package BASE;
import java.util.Scanner;
public class ṹ_01 {
public static void main(String[] args) {
Scanner cin = new Scanner(System.in);
String s1 = cin.next();
String[] s1s = s1.split("/");
String s2 = cin.next();
String[] s2s = s2.split("/");
if ((double) Integer.valueOf(s1s[0]) / Integer.valueOf(s... | true |
4aaf199b4f8fda40cca3e120ec433928623d2468 | Java | hanjoongcho/springboot-testbed | /src/main/java/io/github/hanjoongcho/ckeditor/CKEditorController.java | UTF-8 | 3,411 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package io.github.hanjoongcho.ckeditor;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
imp... | true |
171f0fbdf9848002256e91d9b4b82bae737344b4 | Java | mloine/mloine-design | /src/main/java/com/mloine/thread/threadutil/UseCyclicBarrier.java | UTF-8 | 1,769 | 3.140625 | 3 | [] | no_license | package com.mloine.thread.threadutil;
import com.mloine.tools.SleepTools;
import java.util.Random;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.CyclicBarrier;
/**
* @Author mloine
* @Description CyclicBarrier 多个线程处理的结果 需要额外处理 在执行下一步 可以使用CyclicBarrier
*
* 多个业务线程需要协... | true |
7a8e490afe98595487485ddefd1e5469ed01baff | Java | huybq886/ball | /src/game/Program.java | UTF-8 | 791 | 2.4375 | 2 | [] | no_license | package game;
import com.google.gson.Gson;
import game.maps.Layer;
import game.maps.Map;
import game.utils.Utils;
import javax.swing.*;
import java.awt.*;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
public class Program {
public static void main(String[] args) {
Gam... | true |
4cffff3941130d73660d140282ec705117826913 | Java | Leonidsalaur/medical-representatives | /MedRep_EJB2Client/ejbModule/com/leosal/medrepear/dtolist/DTOlist.java | UTF-8 | 708 | 2.203125 | 2 | [] | no_license | package com.leosal.medrepear.dtolist;
import java.io.Serializable;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement(name="dtos")
@XmlAc... | true |
acba8a16057f7563cbdf4c9b1ac68d93bdfed48b | Java | CoderZK/android-kayouhui | /SocialShare/app/src/main/java/com/kyh/app/ui/TestActivity.java | UTF-8 | 725 | 2.015625 | 2 | [] | no_license | package com.kyh.app.ui;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import com.kyh.app.R;
import com.kyh.app.utils.NotificationsUtils;
public class TestActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle save... | true |
7b9894aa03edfd943779b261fc75e7ef2700a39c | Java | mvlach-maker/MyDrinkingPal | /GuestFragment.java | UTF-8 | 3,418 | 2.28125 | 2 | [] | no_license | package com.example.mydrinkingpal;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.RadioGroup;
i... | true |
34403b539e736897cacab3d1a61ababdc98035ba | Java | GabrielJospin/Study | /Pessoas/Comparador.java | UTF-8 | 71 | 1.617188 | 2 | [] | no_license | interface Comparador{
boolean compara(NoProfessor a, NoProfessor b);
} | true |
b47a3588af4257324455160a9337c148e84e02e7 | Java | serkansorman/Data-Structures-And-Algorithms-Homeworks | /HW5/HW5/src/Q2/RecursiveChainingHashSet.java | UTF-8 | 9,092 | 3.421875 | 3 | [] | no_license | package Q2;
import java.security.InvalidParameterException;
import java.util.LinkedList;
import java.util.Queue;
/**
* chaining hash tablosu recursive olarak implement edilir.
* @param <E> key
*/
public class RecursiveChainingHashSet<E> implements HashSet<E> {
private Entry<E,E>[] table;
priv... | true |
f495ea6d95bf30f4cb6a587c9745748868ad70ca | Java | shen101/DailyProject | /GlassCodesLauncher/src/com/shen/fragment/PhoneDialPadFragment.java | UTF-8 | 1,904 | 2.0625 | 2 | [] | no_license | package com.shen.fragment;
import com.shen.activityfragmentdemo.BaseFragment;
import com.shen.activityfragmentdemo.R;
import com.shen.utils.GlassUtils;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
impor... | true |
e6ad6d925f7f0dbc19d6c722a0eafb71b6d32e3b | Java | leei8/Biblioteca_app | /src/vista/FormularioPrestamo.java | UTF-8 | 3,908 | 2.265625 | 2 | [] | no_license | package vista;
import java.awt.BorderLayout;
import java.awt.FlowLayout;
import java.util.ArrayList;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import controlador.ControladorPrestamo;
import modelo.Libro;
import modelo.Socio;... | true |
4d0ac3347ca392b35aa22611713a5fa881e8a294 | Java | fropen/usaco | /src/ride.java | UTF-8 | 940 | 3.15625 | 3 | [] | no_license | /*
ID: your_id_here
LANG: JAVA
PROG: ride
*/
import java.io.*;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.StringTokenizer;
class ride {
static List<String> arrangements = new ArrayList<>();
public static void main(String[] args) throws IOException {
... | true |
40fc738a63a77506eb2157550be2d67c279b8039 | Java | haslphi/grip | /grip/src/at/jku/se/grip/beans/Robot.java | UTF-8 | 2,024 | 2.40625 | 2 | [
"Apache-2.0"
] | permissive | package at.jku.se.grip.beans;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import at.jku.se.grip.enums.UpdateType;
import at.jku.se.grip.ui.events.IBeanCUDEvent;
import lombok.AllArgsConstructor;
import lombok.Ge... | true |
8c1b287bb5cca85bab7377439114cfddbc984323 | Java | Chesstory/Chesstory | /src/echecs/Position.java | UTF-8 | 1,215 | 3.765625 | 4 | [] | no_license | package echecs;
/**
* Represents a position ; The intersection of two points. Ease the use of class
* Deplacement, etc.
*
* @author Acevedo Roman and Guillemot Baptiste, based on Delepoulle Samuel's
* code.
*/
public class Position {
private int x, y;
/**
* Lonely constructor.
*
* @param x
* ... | true |
6acbc452db5186ce2c83f05203c7f274f7eceec8 | Java | rahuljavavns/JavaCodecamp | /src/javacodecamp/figurestwo.java | UTF-8 | 342 | 2.390625 | 2 | [
"MIT"
] | permissive |
package javacodecamp;
/**
*
* @author rakesh
*/
public class figurestwo{
public static void main(String[] args) {
int n=4;
for(int i=1;i<=n;i++)
{
for(int k=1;k<=2*i-1;k++)
System.out.print("*");
System.out.println();
... | true |
3511ab8f4fa8af6fdb87ca602079d4e9580891d7 | Java | yuri0x7c1/uxcrm | /uxcrm-ofbiz/generated-entity/src/main/java/org/apache/ofbiz/product/inventory/InventoryItemLabelAppl.java | UTF-8 | 2,265 | 2.15625 | 2 | [
"Apache-2.0"
] | permissive | package org.apache.ofbiz.product.inventory;
import lombok.experimental.FieldNameConstants;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import java.sql.Timestamp;
import org.apache.ofbiz.entity.GenericValue;
import java.util.List;
import java.util.ArrayList;
/**
* Inventory Item Label App... | true |
5323ab6461774c5bc90a41e3d19daece68353be0 | Java | gautamceg/java8-features | /src/main/java/com/example/core/Test1.java | UTF-8 | 625 | 3.1875 | 3 | [] | no_license | package com.example.core;
import java.util.*;
public class Test1 {
public static void main(String[] args) {
AA a1 = new AA();
a1.name = "coffee";
AA a2 = new AA();
a2.name = "tea";
TreeSet set = new TreeSet();
set.add(a1); set.add(a2);
Iterator itr = set.it... | true |
2bb26750b366ad12e5101013cf93418fadb87ad3 | Java | Ramya-QC/GitDemo | /src/com/tradeleaves/marketplace/testcases/uicheckonpages/Run_UICheckOnStaticPages.java | UTF-8 | 2,874 | 1.992188 | 2 | [] | no_license | package com.tradeleaves.marketplace.testcases.uicheckonpages;
import java.awt.AWTException;
import java.io.File;
import java.io.IOException;
import java.sql.SQLException;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.openqa.seleni... | true |
07a8e1ae657b55f0a1e8552c3c304ace622efe71 | Java | MaoWenChen/codeInterview | /coding/src/leetCode/test/Leet94.java | UTF-8 | 748 | 3.09375 | 3 | [] | no_license | package leetCode.test;
import java.util.ArrayList;
import java.util.List;
import java.util.Stack;
public class Leet94 {
public List<Integer> inorderTraversal(TreeNode root) {
List<Integer> list = new ArrayList<>();
Stack<TreeNode> stack = new Stack<>();
while (root != null || !stack.isEmpty()) {
if (root !... | true |
66acb22f87a0e19feb1a7f419d41b99d0b329ac9 | Java | NiklausTxt/BeSuper1102 | /src/main/java/com/txt/BeSuper1102/command/impl/SignupCommand.java | UTF-8 | 1,853 | 2.921875 | 3 | [] | no_license | package com.txt.BeSuper1102.command.impl;
import java.util.regex.Pattern;
import com.txt.BeSuper1102.command.SystemCommand;
import com.txt.BeSuper1102.mapping.dao.PlayerDao;
import com.txt.BeSuper1102.pojo.Player;
import com.txt.BeSuper1102.util.Console;
public class SignupCommand extends SystemCommand {
@Override
... | true |
c459ba66f3412fecfc68316245c5b4d9403f83da | Java | megarazor/INIAD_3 | /SoftwareEngineering/lectures2/Circle.java | UTF-8 | 1,276 | 3.59375 | 4 | [] | no_license | public class Circle {
double radius;
String color;
int pointX;
int pointY;
public Circle(){
radius= 1.0;
color= "red";
pointX= 0;
pointY= 0;
}
public Circle(double radius){
this.radius= radius;
color= "red";
pointX= 0;
pointY= 0... | true |
e556db7ed9fe65fbfa3b008f00113d4b778ab05c | Java | MrZeRo2000/rainments-wss | /src/main/java/com/romanpulov/rainmentswss/entitymapper/PaymentObjectDTOMapper.java | UTF-8 | 1,124 | 2.546875 | 3 | [] | no_license | package com.romanpulov.rainmentswss.entitymapper;
import com.romanpulov.rainmentswss.dto.PaymentObjectDTO;
import com.romanpulov.rainmentswss.entity.PaymentObject;
import org.springframework.stereotype.Component;
@Component
public class PaymentObjectDTOMapper implements EntityDTOMapper <PaymentObject, PaymentO... | true |
d3767154efb2d4ea8549ce9db1fabf53d13a66b4 | Java | jenkinsci/scm-manager-plugin | /src/test/java/com/cloudogu/scmmanager/scm/ScmManagerGitRepositoryBrowserTest.java | UTF-8 | 4,556 | 2.078125 | 2 | [
"MIT"
] | permissive | package com.cloudogu.scmmanager.scm;
import hudson.plugins.git.GitChangeSet;
import hudson.scm.EditType;
import org.junit.Before;
import org.junit.Test;
import java.io.IOException;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.when... | true |
88040dbf934f4e9c012c28898652abc49d7ddab2 | Java | sentervip/bleApp | /app/src/main/java/com/phy/app/activity/OTAActivity.java | UTF-8 | 9,129 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | package com.phy.app.activity;
import android.Manifest;
import android.bluetooth.BluetoothDevice;
import android.os.Build;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import android.view.View;
import android.widget.AdapterView;
... | true |
ab2e23893c6ebd91459a867b0d51189feac64c78 | Java | emilianbold/netbeans-releases | /autoupdate.services/libsrc/org/netbeans/updater/ModuleUpdate.java | UTF-8 | 10,123 | 1.742188 | 2 | [] | no_license | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2011 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are su... | true |
4c0570090d633e9eb428f6c5366fb34e071b662b | Java | shahidaLucky/TeamSparkleSquareToRun | /Facebook/src/test/java/HomePage/Uploading.java | UTF-8 | 850 | 1.671875 | 2 | [] | no_license | package HomePage;
import base.CommonAPI;
import org.testng.annotations.Test;
/**
* Created by Shahida Lucky on 5/14/2016.
*/
public class Uploading extends CommonAPI {
@Test
public void testFileUpload() throws InterruptedException {
typeByCss("#email", "shahidalus@yahoo.com");
typeByCss("#pa... | true |
adcfe5910b1273e4bd87e1ffdcdde1fc974570bb | Java | ImpendingDoom28/medicine-project | /src/main/java/ru/itis/medicineproject/services/TopicService.java | UTF-8 | 396 | 1.984375 | 2 | [] | no_license | package ru.itis.medicineproject.services;
import ru.itis.medicineproject.model.Topic;
import java.util.List;
import java.util.Optional;
public interface TopicService {
List<String> addTopic(String name, Long authorId);
void deleteTopic(String name);
Optional<Topic> findTopicByName(String name);
L... | true |
e6d4390f778e5fdf9ef4dc08d71402434b573580 | Java | wovert/JavaTutorials | /javase/src/com/wovert/javase/objects/DemoObjects.java | UTF-8 | 704 | 3.578125 | 4 | [] | no_license | package com.wovert.javase.objects;
import com.wovert.javase.collection.Student;
import java.util.Objects;
public class DemoObjects {
public static void main(String[] args) throws CloneNotSupportedException {
Student s = new Student();
s = null;
String result = Objects.toString(s, "随便写一个")... | true |
f4fc54f16274ec71fcdf995c8ac538c24522fc1c | Java | cakemail/wrapper-java | /CakeBench/src/cakebench/CakeBenchView.java | UTF-8 | 40,634 | 2.046875 | 2 | [] | no_license | /*
* CakeBenchView.java
*/
package cakebench;
import com.cakemail.api.*;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.eve... | true |
0afb4b64f1dc256bb301880cd397bc4dfe7a4986 | Java | LauraDupuis/SeminarPigHive | /Documents/Présentation 2017/dataGenerator/src/main/java/metier/GlobalStat.java | UTF-8 | 13,557 | 2.09375 | 2 | [] | no_license | package metier;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.lang.management.ManagementFactory;
import java.lang.management.ThreadMXBean;
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.text.SimpleDateFormat;... | true |
f0319bda14ebf4f33942575c4a6fa3edc78bc575 | Java | BigSerj/Android_HomeWorks | /MyApplication/data/src/main/java/com/android/bigserj/data/net/RestService.java | UTF-8 | 3,244 | 2.28125 | 2 | [] | no_license | package com.android.bigserj.data.net;
import com.android.bigserj.data.entity.AccessTokenData;
import com.android.bigserj.data.entity.Profile;
import com.android.bigserj.data.entity.RegisterData;
import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import java.util.List;
import java.util.concurrent.TimeUni... | true |
71f39512c8db8bcf9c8a5258335f80d65712d3a9 | Java | wolrdprogrammer9823/RecyclerViewDemo | /app/src/main/java/com/wolfsea/recyclerviewdemo/defineview/ChildRecyclerView.java | UTF-8 | 4,366 | 2.546875 | 3 | [] | no_license | package com.wolfsea.recyclerviewdemo.defineview;
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.view.View;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.recyclerview.widget.GridLayoutM... | true |
3c929bcbdd335ddbc607cc925c60c794ec29c2ab | Java | Simek/expo | /android/versioned-abis/expoview-abi44_0_0/src/main/java/abi44_0_0/expo/modules/core/interfaces/ReactActivityLifecycleListener.java | UTF-8 | 371 | 1.75 | 2 | [
"BSD-3-Clause",
"MIT",
"Apache-2.0"
] | permissive | package abi44_0_0.expo.modules.core.interfaces;
import android.app.Activity;
import android.os.Bundle;
public interface ReactActivityLifecycleListener {
default void onCreate(Activity activity, Bundle savedInstanceState) {}
default void onResume(Activity activity) {}
default void onPause(Activity activity) {}... | true |
a7a0e6302b992502c637a846e9b88ccf0a0338d7 | Java | jokewwww/boot02 | /filter/src/main/java/com/joker/application/FilterApplication2.java | UTF-8 | 1,248 | 2.109375 | 2 | [] | no_license | package com.joker.application;
import com.joker.filter.SecondFilter;
import com.joker.servlet.SecondServlet;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties;
import org.sp... | true |
c3a0966092beec7092ee023c7c555e48117d2e98 | Java | 125964590/spring-boot-start-base | /user-center-start-2.0/src/main/java/com/ht/base/module/dto/LoginRequest.java | UTF-8 | 361 | 1.65625 | 2 | [] | no_license | package com.ht.base.module.dto;
import lombok.Builder;
import lombok.Data;
/**
* @author zhengyi
* @date 2018/9/6 9:12 PM
**/
@Data
@Builder
public class LoginRequest {
public final static String USERNAME_STRING = "username";
public final static String PASSWORD_STRING = "password";
private String us... | true |
5905366d7593276e5207d23896cf72cd9e1c7cdb | Java | at6198/ODMS | /Branch.java | UTF-8 | 7,336 | 2.765625 | 3 | [] | no_license | import java.awt.event.*;
import java.sql.*;
import javax.swing.*;
import java.awt.*;
public class Branch{
static private JLabel heading, organSelect, kidney, liver, lung, heart, pancreas, intestine,kidneyVal, liverVal, lungVal, heartVal, pancreasVal, intestineVal;
static private JButton withdrawWithdraw... | true |
530cf97324f43cf57ee14cc076ec83a335ab1871 | Java | the-maldridge/CS2336 | /inClass/week2/TestOverloading.java | UTF-8 | 393 | 3.34375 | 3 | [
"MIT"
] | permissive |
public class TestOverloading {
public static void main(String[] args) {
OverloadA a = new OverloadA();
a.p(10);
a.p(10.0);
}
}
class OverloadB {
public void p(double i) {
System.out.println(i * 2);
}
}
class OverloadA extends OverloadB {
// This method overloads the method i... | true |
0c553ff898b59ec02dfa1519136ccb43a55d5747 | Java | javakf/wee0-api | /src/main/java/wee0/log/LoggerFactory.java | UTF-8 | 1,980 | 2.515625 | 3 | [
"Apache-2.0"
] | permissive | /**
* Copyright (c) 2016-2022, wee0.com.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicabl... | true |
f4b162686a36976c0b8cb1aca39df824a262175b | Java | bellmit/Ch_study2_seaco | /tp-proxy/src/main/java/com/tp/proxy/bse/FrontCategoryLogProxy.java | UTF-8 | 623 | 1.992188 | 2 | [] | no_license | package com.tp.proxy.bse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.tp.model.bse.FrontCategoryLog;
import com.tp.proxy.BaseProxy;
import com.tp.service.IBaseService;
import com.tp.service.bse.IFrontCategoryLogService;
/**
* 前台类目操作日志表代理层
... | true |
dd6677b10130fb27650f02fb6beba70a075cd1fc | Java | myoldfycy318/sdk_server | /common/src/main/java/com/dome/sdkserver/util/MyThreadExecutor.java | UTF-8 | 682 | 2.625 | 3 | [] | no_license | package com.dome.sdkserver.util;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import org.springframework.beans.factory.InitializingBean;
public class MyThreadExecutor implements InitializingBean{
private static MyThreadExecutor instance;
private ExecutorService executor;
... | true |
2acb1d7dff93c36d4158c8e45f4b28f791586841 | Java | amefan/renwen | /renwen_article/src/main/java/com/afan/article/pojo/Share.java | UTF-8 | 2,042 | 1.953125 | 2 | [] | no_license | package com.afan.article.pojo;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;
/**
* article实体类
* @author afan
*
*/
@Entity
@Table(name="tb_share")
public class Share implements Serializable{
@Id
private String id... | true |
1975bef13cbe7498c0194f2c8d3f7a363fa34555 | Java | 15999931101/StrutsExam8837 | /src/main/java/com/hand/action/LoginAction.java | UTF-8 | 1,657 | 2.265625 | 2 | [] | no_license | package com.hand.action;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.servlet.http.HttpServletRequest;
import org.apache.struts2.ServletActionContext;
import com.opensymphony.xwork2.ActionSupport;
public class LoginAction {
pr... | true |
c7fde2de2e1b701ba4e7f8897c0d326018cd20e6 | Java | iotacecil/algLearn | /src/main/java/niuke/wangyi/clock2019.java | UTF-8 | 858 | 2.875 | 3 | [] | no_license | //package niuke.wangyi;
//
//import java.util.Scanner;
//
//public class clock2019 {
// public static void main(String[] args) {
// Scanner sc = new Scanner(System.in);
// int n = sc.nextInt();
// for (int i = 0; i <n ; i++) {
// System.out.println(sc.next());
//
// }
// }
/... | true |
be5290bd5195a79cc3b10d4be8d51f4b710653ea | Java | zkshen/EDC | /Test/src/main/java/edc/test/page2/ControlFragment.java | UTF-8 | 19,469 | 1.664063 | 2 | [] | no_license | package edc.test.page2;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGattCharacteristic;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content... | true |
29ad8b7b4c2f61a9c5a01ae989851096e13f99f1 | Java | qlack/QLACK-Java | /QLACK-Fuse/qlack-fuse-audit/src/main/java/com/eurodyn/qlack/fuse/audit/service/AuditLevelService.java | UTF-8 | 3,499 | 2.515625 | 3 | [] | no_license | package com.eurodyn.qlack.fuse.audit.service;
import com.eurodyn.qlack.common.exception.QAlreadyExistsException;
import com.eurodyn.qlack.fuse.audit.dto.AuditLevelDTO;
import com.eurodyn.qlack.fuse.audit.mapper.AuditLevelMapper;
import com.eurodyn.qlack.fuse.audit.model.AuditLevel;
import com.eurodyn.qlack.fuse.audit... | true |
70b2d814894abebaa8eef0601393684d39db2fd5 | Java | tinyfight/ld_app | /consumer/src/main/java/com/autodesk/shejijia/consumer/personalcenter/designer/fragment/BidSuccessFragment.java | UTF-8 | 1,764 | 1.992188 | 2 | [] | no_license | package com.autodesk.shejijia.consumer.personalcenter.designer.fragment;
import android.view.View;
import com.autodesk.shejijia.consumer.R;
import com.autodesk.shejijia.consumer.personalcenter.designer.entity.MyBidBean;
import com.autodesk.shejijia.shared.components.common.utility.UIUtils;
import com.autodesk.shejiji... | true |
2fa2cb2074fa5a515c25d1d9df9fa5c6998795f9 | Java | Surendra-Kuppuraj/oliver-bookshop | /src/main/author-services/com/oliver/serviceUtil/DozerConfigurationImpl.java | UTF-8 | 451 | 1.882813 | 2 | [] | no_license | /**
*
*/
package com.oliver.serviceUtil;
import java.util.ArrayList;
import java.util.List;
import org.dozer.DozerBeanMapper;
import org.dozer.Mapper;
/**
* @author Surendra
*
*/
public class DozerConfigurationImpl implements DozerConfiguration {
public Mapper createMappingConfiguration... | true |
e99210f25a5108b1cb541351416b1e89730819fe | Java | Minkyuk188/monitor-tool | /src/main/java/cmg/org/monitor/module/server/MonitorGwtServiceImpl.java | UTF-8 | 10,646 | 1.820313 | 2 | [] | no_license | package cmg.org.monitor.module.server;
import java.util.ArrayList;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import cmg.org.monitor.dao.AlertDao;
import cmg.org.monitor.dao.CpuDAO;
import cmg.org.monitor.dao.FileSystemDAO;
import cmg.org.monitor.dao.JvmDAO;
imp... | true |
a4c9e8641256075c6014b752b34bc3b892660be0 | Java | svanandkumar/Connect_360_Release1 | /WCM_MDM_SONAMA_DB2_14June2018_2/auth/src/main/java/com/initiate/client/Memaddr.java | UTF-8 | 7,719 | 1.890625 | 2 | [
"MIT"
] | permissive |
package com.initiate.client;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for memaddr complex type.
*
* <p>The following schema fragment specifies the expected content contained within t... | true |
6792fd4c1eb569a79ea85f49445a0325aec23cd1 | Java | mahbodkh/searchengin | /src/main/java/app/engine/search/error/NotFoundCommandException.java | UTF-8 | 605 | 2.546875 | 3 | [] | no_license | package app.engine.search.error;
/**
* Created by Ebrahim with ❤️ on 30 September 2019.
*/
public class NotFoundCommandException {
private final static String SAMPLE_EXCEPTION = "Please Enter the true Command: ";
public NotFoundCommandException() {
System.err.println(SAMPLE_EXCEPTION);
}
... | true |
91391dc103d6ab550b80d2881c6207bd8a2edb7f | Java | testmasterhn/CucumberStarter | /src/test/java/common/MailReader.java | UTF-8 | 4,737 | 2.5 | 2 | [] | no_license | package common;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Date;
import java.util.Properties;
import javax.mail.Address;
import javax.mail.FetchProfile;
import javax.mail.Flags;
import javax.mail.Folder;
import javax.mail.Message;
import javax.mail.Mes... | true |
78eac3937bc481f2b84a70b31a4c523fcbc1a6b8 | Java | kofyou/PersonalProject-Java | /221801214/src/Lib.java | UTF-8 | 7,037 | 3.0625 | 3 | [] | no_license |
import java.io.*;
import java.nio.charset.Charset;
import java.util.*;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Lib {
String inputFileName;
String outputFileName;
Map<String,Integer> wordMap;
ArrayList<Map.Entry<String,Integer>> arrayList1;
int char_count;
i... | true |
ff79dc6cb119ac13461940670076a7f20ab677dd | Java | liangkai/map-knowledgebase | /src/main/java/com/neuralnoise/map/service/map/newsletter/NewsletterService.java | UTF-8 | 277 | 1.867188 | 2 | [] | no_license | package com.neuralnoise.map.service.map.newsletter;
import java.util.List;
import com.neuralnoise.map.model.map.newsletter.Subscription;
public interface NewsletterService {
public Subscription create(Subscription subscription);
public List<Subscription> getAll();
}
| true |
f499fe127caa923e008ac945e1c61e9ce08b57a3 | Java | algostructures/JavaPractice | /simple/Cartisian.java | UTF-8 | 1,429 | 3.671875 | 4 | [] | no_license | /* Distance between two cartisian points*/
import java.util.Scanner;
import java.lang.Math;
class Cartisian{
private double x;
private double y;
Cartisian(){}
Cartisian(double a, double b ){
x = a;
y = b;
}
void Dis(Cartisian c1, Cartisian c2){
double d = Math.sqrt(((c2.x-c1.x)*(c2.x-c1.x))+((c2.y-c1.y)... | true |
34dcf65b7e45b111f14e4ad367f695f04608a278 | Java | Snow02203835/JavaCode | /LeetCode/src/code/P0412.java | UTF-8 | 702 | 3.421875 | 3 | [] | no_license | package code;
import java.util.ArrayList;
import java.util.List;
/**
* Fizz Buzz
* @author snow
* @since 2021/10/13 14:50
*/
public class P0412 {
public List<String> fizzBuzz(int n) {
boolean three, five;
List<String> answer = new ArrayList<>(n);
for (int i = 1; i <= n; i++) {
... | true |
564198264f37a3e167997ac08337396853681ae7 | Java | franck-noahk/UU220MobileDeviceProgramming | /app/src/main/java/com/noahfranck/criminallaw/CrimeActivity.java | UTF-8 | 1,882 | 2.625 | 3 | [] | no_license | package com.noahfranck.criminallaw;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
public class CrimeActivity extends SingleFragmentActivity {
/* OLD METHOD BEFORE ABSTRACTION
@Override
protected void... | true |
0c86a69b01d27d9d8a400b8a7e0ba197f44fbafe | Java | Wechat-Group/WxJava | /weixin-java-cp/src/main/java/me/chanjar/weixin/cp/bean/external/WxCpUserExternalGroupChatInfo.java | UTF-8 | 3,687 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package me.chanjar.weixin.cp.bean.external;
import com.google.gson.annotations.SerializedName;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.bean.WxCpBaseResp;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;
import java.io.Serializable;
import java.util.List;
/**
* The type Wx cp us... | true |
d12d9b6671833f7ece1fcccb9f55aa76f83e6745 | Java | ioanacrant/algorithms | /Implementations/HashTableImplementation.java | UTF-8 | 1,321 | 3.34375 | 3 | [] | no_license | class Entry{
int key;
float value;
Entry next;
Entry(int k, float v){
key=k;
value=v;
next=null;
}
}
class HashTable{
private float load;
private Entry[] table;
private int size;
public HashTable(){
table = new Entry[128];
for (int i=0;i<128;i... | true |
ef79e89729aab70b2832a16cad420735605dc43f | Java | Indirali/xijing | /xijing-service/src/main/java/com/showtime/xijing/service/RecruitInfoService.java | UTF-8 | 1,102 | 1.96875 | 2 | [] | no_license | package com.showtime.xijing.service;
import com.showtime.xijing.entity.RecruitInfo;
import com.showtime.xijing.repository.RecruitInfoRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* Create with IntelliJ IDEA
* Use... | true |
f9d0d9650d7ffa07a05a24c63de61c8503a44691 | Java | jorge-lsb/jorge-barbosa-01201087-3s-c2 | /ac2/src/main/java/br/com/bandtec/ac2/controller/LutadorController.java | UTF-8 | 3,362 | 2.171875 | 2 | [] | no_license | package br.com.bandtec.ac2.controller;
import br.com.bandtec.ac2.entity.Luta;
import br.com.bandtec.ac2.entity.Lutador;
import br.com.bandtec.ac2.repository.LutadorRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.b... | true |
3ab37a867a51c286fb5fd2c502dbd9762d6a7c02 | Java | gityalvarez/tecnobedelias-backend | /tecnobedelias/src/main/java/com/proyecto/tecnobedelias/service/impl/RolServiceImpl.java | UTF-8 | 640 | 2.125 | 2 | [] | no_license | package com.proyecto.tecnobedelias.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.proyecto.tecnobedelias.persistence.model.Rol;
import com.proyecto.tecnobedelias.persistence.repository.RolRepository... | true |
ead0dd3fba6c3010f36db7fe17b4f73e9115a2b6 | Java | Valentin9003/Java | /Java Fundamentals/ArraysЬndMethods-MoreExercises/src/com/company/ArrayStatistics.java | UTF-8 | 1,053 | 3.671875 | 4 | [
"Apache-2.0"
] | permissive | package com.company;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class ArrayStatistics {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in))... | true |
fc726ef054a87155774e6a87be5314450da29a27 | Java | yeazdani/JobResume-Backend-Spring | /src/main/java/com/onlineResume/app/models/JobPost.java | UTF-8 | 1,263 | 2.09375 | 2 | [] | no_license | package com.onlineResume.app.models;
public class JobPost {
private String job_title;
private String company_name;
private String location;
private String job_type;
private String deadline;
private String job_details;
private String publish_date;
public String getJob_title() {
ret... | true |
10dc4ef572985ae12b8a2712aee9dbe184a648d5 | Java | CarlosRobertoMedeiros/study-jpa-completo | /study-ecommerce/src/test/java/com/roberto/ecommerce/conhecendooentitymanager/ListenersTest.java | UTF-8 | 1,407 | 2.328125 | 2 | [] | no_license | package com.roberto.ecommerce.conhecendooentitymanager;
import com.roberto.ecommerce.EntityManagerTest;
import com.roberto.ecommerce.model.Cliente;
import com.roberto.ecommerce.model.Pedido;
import com.roberto.ecommerce.model.Produto;
import com.roberto.ecommerce.model.StatusPedido;
import org.junit.Assert;
import org... | true |
746aa3f3b6587265a16d51083285c081d94fc615 | Java | jsf2184/exercises | /src/main/java/com/jsf2184/dnb/io/input/LineReader.java | UTF-8 | 713 | 2.75 | 3 | [] | no_license | package com.jsf2184.dnb.io.input;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
public class LineReader {
String fileName;
BufferedReader bufferedReader;
public LineReader(String fileName) {
this.fileName = fileName;
... | true |
87f3a404e235f37d36eb2a8b8f7b55817f8bac25 | Java | chenjxJava/zookeeper | /src/main/java/com/chenjx/utils/ZkUtils.java | UTF-8 | 1,379 | 2.4375 | 2 | [] | no_license | package com.chenjx.utils;
import com.chenjx.config.ZkConfig;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
import org.apache.zookeeper.ZooKeeper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframewor... | true |
9e7b03465ced228118bec42950a3f903c660220c | Java | murdererhuan/MVP_Retrofit_RxJava | /app/src/main/java/com/huan/mvp_retrofit_rxjava_example/retrofix/ProgressSubscriber.java | UTF-8 | 2,331 | 2.515625 | 3 | [] | no_license | package com.huan.mvp_retrofit_rxjava_example.retrofix;
import android.content.Context;
import android.util.Log;
import android.widget.Toast;
import java.net.ConnectException;
import java.net.SocketTimeoutException;
import rx.Subscriber;
public class ProgressSubscriber<T> extends Subscriber<T> implements ProgressCan... | true |
7ea7f1e57e34eb90db8901bf7486d0e674960855 | Java | anubhatiwari/quandl | /src/quandl/pageobjects/quandlHomePage.java | UTF-8 | 5,485 | 2 | 2 | [] | no_license | package quandl.pageobjects;
import java.util.List;
import java.util.Set;
import org.junit.Assert;
import org.openqa.selenium.By;
import org.openqa.selenium.NoSuchElementException;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.... | true |
68e0ef51318616a027e31865a2edf73496a7a89a | Java | charygao/springBootTemplet | /src/main/java/com/cyj/spring/common/utils/TuLingUtil.java | UTF-8 | 3,768 | 2.15625 | 2 | [] | no_license | package com.cyj.spring.common.utils;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.cyj.spring.common.utils.comment.HttpUtil;
import com.cyj.spring.system.model.reboot.tuling.TuLingDTO;
import java.util.HashMap;
import java.util.Map;
/**
... | true |
e06d815221b8d9528d11f8cce473d28ef22c1645 | Java | Balraaj/Windows-Programming | /Java/IntelliJ/DP/src/OneAway.java | UTF-8 | 2,296 | 4 | 4 | [] | no_license | /**
* Created by Balraj on 28-Jan-18.
*
* Given two strings check if they are one edit away. (CTCI 1.5)
*/
public class OneAway
{
private static boolean checkOneAway(String str1, String str2)
{
if(str1.length()==str2.length())
{
return checkOneReplace(str1,str2);
}
... | true |
9b89e3fad240221fd60de8482af9f83040cc713e | Java | flywind2/joeis | /src/irvine/oeis/a002/A002828.java | UTF-8 | 996 | 2.890625 | 3 | [] | no_license | package irvine.oeis.a002;
import irvine.math.z.Z;
import irvine.oeis.Sequence;
import irvine.oeis.a000.A000290;
import irvine.oeis.a000.A000415;
import irvine.oeis.a000.A000419;
/**
* A002828 Least number of squares that add up to <code>n</code>.
* @author Sean A. Irvine
*/
public class A002828 implements Sequence... | true |
62128c7a5f0c3c87d306155bfa96981e55fe1b0d | Java | caibinglong1987/roamApp-studio | /app/src/main/java/com/roamtech/telephony/roamapp/util/OrderUtil.java | UTF-8 | 1,840 | 2.515625 | 3 | [] | no_license | package com.roamtech.telephony.roamapp.util;
import android.content.Context;
import com.roamtech.telephony.roamapp.R;
/**
* Created by long
* on 2016/9/30 12:39
* 订单 操作类
*/
public class OrderUtil {
private Context context;
public OrderUtil(Context context) {
this.context = context;
}
/... | true |
598cdad47c9689cc38e1d4396fdb8ddaad2b4a6f | Java | Doyeon-Lee/News-Android-App | /app/src/main/java/com/example/myapplication/ViewNewsActivity.java | UTF-8 | 4,830 | 2.359375 | 2 | [] | no_license | package com.example.myapplication;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import android.widget.ImageView;
public class V... | true |
c769e5064989a666e9f5b683bc928aa966754f07 | Java | ntrinh139/360group1 | /src/tests/ParkTest.java | UTF-8 | 3,325 | 3.09375 | 3 | [] | no_license | /*
* TCSS 360: Group 1
* Assignment: Deliverable 2
*/
package tests;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNotEquals;
import org.junit.Test;
import model.Park;
/**
* Test suite for {@link Park}.
* <p>Getters are not tested ... | true |
c9dd4312b0125ed34f071dca317ea73fd26e3e0f | Java | DouglasWJ/aggregate | /src/main/java/org/opendatakit/aggregate/format/table/FragmentedCsvFormatter.java | UTF-8 | 7,173 | 1.726563 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2010 University of Washington
*
* 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 ... | true |
f3eb1400a4897bb81a0d70878157723447208858 | Java | dannuclear/laboratory | /backend/src/main/java/ru/bisoft/laboratory/domain/SampleDepartmentEmployee.java | UTF-8 | 927 | 2.203125 | 2 | [] | no_license | package ru.bisoft.laboratory.domain;
import lombok.*;
import javax.persistence.*;
import static javax.persistence.GenerationType.SEQUENCE;
@Entity
@Table(name = "SAMPLE_DEPARTMENT_EMPLOYEE")
@Getter
@Setter
@NoArgsConstructor
@Builder
@AllArgsConstructor
public class SampleDepartmentEmployee extends CustomEntity {
... | true |
95bda111fb27d77c4d3ed06c95cf4b5ab0c7464a | Java | bstansberry/undertow | /core/src/main/java/io/undertow/websockets/client/WebSocketClientHandshake.java | UTF-8 | 1,088 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package io.undertow.websockets.client;
import io.undertow.websockets.core.WebSocketChannel;
import io.undertow.websockets.core.WebSocketVersion;
import org.xnio.Pool;
import org.xnio.StreamConnection;
import org.xnio.http.HandshakeChecker;
import java.net.URI;
import java.nio.ByteBuffer;
import java.util.Map;
/**
*... | true |
0e2f76a84dfbebd9e94b0349b7c09e9b469a27cc | Java | OrgSmells/codehaus-mule-git | /branches/mule-2.x-MULE-3706/modules/scripting/src/main/java/org/mule/module/scripting/config/ScriptComponentDefinitionParser.java | UTF-8 | 815 | 1.515625 | 2 | [] | no_license | /*
* $Id$
* --------------------------------------------------------------------------------------
* Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com
*
* The software in this package is published under the terms of the CPAL v1.0
* license, a copy of which has been included with this... | true |
bbc8679d747e7a3b14652b7f6b7ab5a23130d63a | Java | TopoVV/Accessory-Compatibility-Evaluator | /src/main/java/com/topov/accessorycompatibility/extractor/EkatalogSpecificationExtractor.java | UTF-8 | 1,688 | 2.359375 | 2 | [] | no_license | package com.topov.accessorycompatibility.extractor;
import com.topov.accessorycompatibility.client.HardwareDom;
import com.topov.accessorycompatibility.client.JsoupClient;
import com.topov.accessorycompatibility.parser.HardwareParsingStrategy;
import com.topov.accessorycompatibility.parser.SpecificationGeneralizer;
im... | true |
55a83b0e7158e3a6f68fe1e58dbccaacab2f0f20 | Java | saurabhaggarwal3911/flyingbasket | /src/main/java/com/entity/UserProductTransacationDetailEntity.java | UTF-8 | 2,112 | 2.203125 | 2 | [] | no_license | package com.entity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name = "User_Product_Transacation_Detail")
public class UserPro... | true |
f09cebd94e57f2935af5a099bd006ba054b29559 | Java | yoanihsan/uassister | /src/uaspraktikumsister/ExtendThread.java | UTF-8 | 711 | 3.125 | 3 | [] | no_license | package uaspraktikumsister;
//sudah diedit oleh chaniago
public class ExtendThread extends Thread {
int threadNumber;
public ExtendThread(int num) {
threadNumber = num;
}
public void run() {
System.out.println("I'm thread number : "+threadNumber);
try {
Thread.sleep(10000);
}catch (InterruptedExcep... | true |
bf24e1f3f87c66aa920c018984e2bce05e3cfd62 | Java | bro1/web2epub | /src/lj/epub/stuff/StuffSite.java | UTF-8 | 5,144 | 2.0625 | 2 | [] | no_license | package lj.epub.stuff;
import java.io.IOException;
import java.net.URL;
import java.text.SimpleDateFormat;
import java.util.GregorianCalendar;
import java.util.List;
import lj.epub.sd.SiteSkeleton;
import lj.utils.epub.EpubUtils;
import lj.utils.filter.RegexpFilter;
import lj.utils.filter.SimpleLinkInformationProduce... | true |
85f1607225d1942038da12124ec2718f062ca842 | Java | lionleaf/Liongrid-Game-Engine | /Liongrid Game Engine/src/com/liongrid/gameengine/tools/LVector2Int.java | UTF-8 | 2,423 | 3.203125 | 3 | [] | no_license | package com.liongrid.gameengine.tools;
public class LVector2Int {
public int x;
public int y;
public static final LVector2Int ZERO = new LVector2Int(0, 0);
public LVector2Int() {
super();
}
public LVector2Int(int xValue, int yValue) {
set(xValue, yValue... | true |
c19a3655763a0bf57b62d7a065529bca65fdfb8d | Java | P79N6A/icse_20_user_study | /methods/Method_1006931.java | UTF-8 | 215 | 2.125 | 2 | [] | no_license | @Override public BufferedReader create(Resource resource,String encoding) throws UnsupportedEncodingException, IOException {
return new BufferedReader(new InputStreamReader(resource.getInputStream(),encoding));
}
| true |
ca894aebe1a3fc3c6e59fae9746b24d573719530 | Java | amirsalaheldin/Pitfall | /core/src/com/demoversion/pitfall/Sprites/Birds.java | UTF-8 | 3,185 | 2.5625 | 3 | [] | no_license |
package com.demoversion.pitfall.Sprites;
import com.badlogic.gdx.graphics.g2d.Animation;
import com.badlogic.gdx.graphics.g2d.Sprite;
import com.badlogic.gdx.graphics.g2d.TextureRegion;
import com.badlogic.gdx.physics.box2d.Body;
import com.badlogic.gdx.physics.box2d.BodyDef;
... | true |
e740d7bfb1465df3f8b8bfb382ef3b728cdd4aa7 | Java | dorsin555/coupons-backend | /coupons3.0/src/main/java/Coupons/entities/Company.java | UTF-8 | 1,822 | 2.53125 | 3 | [] | no_license | package Coupons.entities;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import com.f... | true |
7e3b4281c5aa910a970e3fd6b0b8896076e98bce | Java | felipebelucena/Friendly-Match-Scout | /src/org/cesar/fmsl/ui/MatchAdapter.java | UTF-8 | 1,332 | 2.3125 | 2 | [] | no_license | package org.cesar.fmsl.ui;
import java.util.List;
import org.cesar.fmsl.models.Player;
import org.cesar.lfbl.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;
... | true |
22abf3ea2cc365b3d68c199d4f68a0338f1dbd69 | Java | raghujanardhan/TestEngine | /TestEngine/src/testengine/subject/dao/SubjectInterface.java | UTF-8 | 251 | 1.914063 | 2 | [] | no_license | package testengine.subject.dao;
import java.util.ArrayList;
import testengine.beans.SubjectInfo;
public interface SubjectInterface {
public int addSubject(SubjectInfo subjectInfo);
public ArrayList<SubjectInfo> getSubjectList();
}
| true |
55b67937acc7662a53c8163b3a4773016e870c0f | Java | chybisaumaksim/Task3 | /src/exercise3/RingArea.java | UTF-8 | 365 | 3.609375 | 4 | [] | no_license | package exercise3;
public class RingArea {
public static void main(String[] args) {
double r1 = 12;
double r2 = 10;
System.out.printf("The area of the ring is %.3f", findTheRingArea(r1, r2));
}
private static double findTheRingArea(double r1, double r2) {
return Math.PI * ... | true |
a70ffe95241b7a9b940b9733754e7ce0e4b01f23 | Java | ImYellowFish/STSStarBreakerMod | /src/main/java/StarBreakerMod/minions/cards/KakaCarnageCard.java | UTF-8 | 3,717 | 1.890625 | 2 | [
"MIT"
] | permissive | package StarBreakerMod.minions.cards;
import StarBreakerMod.minions.BaseFriendlyKaka;
import StarBreakerMod.patches.AbstractCardEnumPatches;
import com.badlogic.gdx.graphics.Color;
import com.megacrit.cardcrawl.actions.AbstractGameAction;
import com.megacrit.cardcrawl.actions.animations.VFXAction;
import com.megacrit.... | true |
035462b01a1624f50e2c6caa8496003d28e4d776 | Java | helyoubi/git | /Scopiom-REST-Client/src/fr/datasyscom/scopiom/restclient/agency/AgencyClient.java | ISO-8859-1 | 5,956 | 2.609375 | 3 | [] | no_license | package fr.datasyscom.scopiom.restclient.agency;
import java.util.List;
import javax.ws.rs.core.MediaType;
import fr.datasyscom.pome.exception.ValidationException;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.GenericType;
import com.sun.jersey.api.client.WebResource;
import com.s... | true |
d58598dff913d2ce522fa14f70c5659cef42fa96 | Java | minseokism/Algorithm | /baekjoonJudge/num2000/Num2562.java | UTF-8 | 1,377 | 4 | 4 | [] | no_license | /*
[2562 문제] 최대값
문제 - 9개의 서로 다른 자연수가 주어질 때, 이들 중 최대값을 찾고 그 최대값이 몇 번째 수인지를 구하는 프로그램을 작성하시오.
예를 들어, 서로 다른 9개의 자연수
3, 29, 38, 12, 57, 74, 40, 85, 61
이 주어지면, 이들 중 최대값은 85이고, 이 값은 8번째 수이다.
입력 - 첫 째 줄부터 아홉 번째 줄까지 한 줄에 하나의 자연수가 주어진다. 주어지는 자연수는 100 보다 작다.
출력 - 첫째 줄에 최대값을 출력하고, 둘째 줄에 최대값이 몇 번... | true |
850a3bc5c39ddaa482d6f63a9970a554cd4a8167 | Java | adityaverma998/keepnotestep2 | /src/main/java/com/stackroute/keepnote/config/ApplicationContextConfig.java | UTF-8 | 2,568 | 2.15625 | 2 | [] | no_license | package com.stackroute.keepnote.config;
import java.util.Properties;
import javax.sql.DataSource;
import org.apache.commons.dbcp2.BasicDataSource;
import org.hibernate.SessionFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springfram... | true |
732cacb26c6f7596571d1c96323950c576026594 | Java | Astanislav1990/ALKHANOV_JAVA | /Tasks/Task22/src/ALKHANOV/Bicycle.java | UTF-8 | 415 | 3.125 | 3 | [] | no_license | package ALKHANOV;
/**
* Created by Админ on 07.02.2019.
*/
public class Bicycle extends Transport implements GroundTransport {
public Bicycle(String regnumber, int speed, String name) {
super(regnumber, speed, name);
}
@Override
public void go() {
System.out.println(getName() + getSp... | true |
235e74c4b8e87bf22411fc7835c26f6cf4600a36 | Java | lucenarenato/biblia-ccb | /app/src/main/java/com/cubolabs/bibliaofflinearc/data/Book.java | UTF-8 | 1,389 | 2.015625 | 2 | [
"MIT"
] | permissive | package com.cubolabs.bibliaofflinearc.data;
import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Property;
@Entity(nameInDb = "books")
public class Book {
@Id
@Property(nam... | true |
eed77572d328bdfcf321137add435633419bdff5 | Java | kacpermajczak/Javeloper-2021-Competition | /src/com/example/weather/MailProviderUsingMailer.java | UTF-8 | 174 | 1.640625 | 2 | [] | no_license | package com.example.weather;
final class MailProviderUsingMailer implements MailProvider {
@Override
public void sendMail(Weather weather) {
//todo
}
}
| true |
eab673c9bf189317dd726c2f9fe8e50799c514f5 | Java | atlassian/hazelcast | /hazelcast-client/src/test/java/com/hazelcast/client/cache/ClientManagerTest.java | UTF-8 | 4,014 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... | true |