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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b3a10b408b740566537d3f442baba3e954c605ac | Java | sauterle-byteleaf/graphql-jvm-client-example | /product-client-java-kotlin/src/main/java/de/byteleaf/microservice/product/control/ProductService.java | UTF-8 | 841 | 2.171875 | 2 | [] | no_license | package de.byteleaf.microservice.product.control;
import de.byteleaf.microservice.product.client.ProductClient;
import de.byteleaf.microservice.product.entity.Product;
import org.modelmapper.ModelMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
impo... | true |
44fd334fc39da9e2edf02d7e71d86dcdfc7033cb | Java | gitter-badger/LanternServer | /src/main/java/org/lanternpowered/server/world/LanternWorldCreationSettingsBuilder.java | UTF-8 | 12,477 | 1.515625 | 2 | [
"MIT"
] | permissive | /*
* This file is part of LanternServer, licensed under the MIT License (MIT).
*
* Copyright (c) LanternPowered <https://github.com/LanternPowered>
* Copyright (c) Contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (... | true |
ed53e76a9dd054349feedfab7ad83639549b3066 | Java | adessoSE/excel2Jira | /src/test/java/de/adesso/excel2jira/jira/JiraIssueJsonSerializerTest.java | UTF-8 | 4,193 | 2.609375 | 3 | [] | no_license | package de.adesso.excel2jira.jira;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import de.adesso.excel2jira.jira.domain.JiraIssue;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import java.util.Arrays;
import static org.j... | true |
338e1d1aeb08773260fab984de4d2c53a225a37d | Java | JxJxJxM/springboot-test | /src/main/java/com/jxjxjxm/apptest/model/Job.java | UTF-8 | 442 | 2.28125 | 2 | [] | no_license | package com.jxjxjxm.apptest.model;
public class Job{
private String title;
private JobDescription description;
public String getTitle(){
return title;
}
public JobDescription getDescription(){
return description;
}
public void setTitle(String title) {
this.title =... | true |
8c262acab66e7bdee5094fae43f0d3abba813bcf | Java | shady0x7CB/Algorithms | /site/filestructure/sort/Sort.java | UTF-8 | 1,952 | 3.3125 | 3 | [] | no_license | package eg.edu.alexu.csd.filestructure.sort;
import java.util.ArrayList;
public class Sort<T extends Comparable<T>> implements ISort<T> {
@Override
public IHeap<T> heapSort(ArrayList<T> unordered) {
Heap<T> heap = new Heap<T>();
heap.build(unordered);
for (int i = heap.size(); i > 1; i--) {
heap.swap(hea... | true |
446adae55136ffac3b13c0cb5127a4e4547a56cb | Java | webpercher/aSaaS | /src/test/java/payroll_AnnualAdj_Calculation/ID431.java | UTF-8 | 34,224 | 1.9375 | 2 | [] | no_license | package payroll_AnnualAdj_Calculation;
import org.junit.*;
import org.openqa.selenium.*;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.Select;
import org.openqa.selenium.support.ui.WebDriverWait;
import com.asaas.test.selenium.TestBase;
import com.asaas.test.util.Cli... | true |
f62b246d0b80c52550067fe8f3f7a3dd265d4647 | Java | kakarrot/kandota | /library_mvp/src/main/java/com/liuguangqiang/android/mvp/Presenter.java | UTF-8 | 1,699 | 2.65625 | 3 | [] | no_license | package com.liuguangqiang.android.mvp;
/**
* Created by Eric on 15/5/8.
*/
public abstract class Presenter<U extends BaseUi<UC>, UC> {
private boolean isAttachedUi = false;
public Presenter() {
}
public Presenter(U ui) {
this.mUi = ui;
}
private OnUiAttachedListener onUiAttachedLi... | true |
bf3da2a5720e6272dee2d94657e8fb2ad0c4ecb5 | Java | nobrowning/word2vec-server | /src/main/java/com/dcg/word2vecserver/view/Link.java | UTF-8 | 1,206 | 2.890625 | 3 | [] | no_license | package com.dcg.word2vecserver.view;
import lombok.Data;
/**
* @author duchenguang
* @date 19-6-21
*/
@Data
public class Link {
private String source;
private String target;
private Float weight;
public Link() {
}
public Link(String source, String target) {
this.source = source;
this.targe... | true |
9ee504831a19d6645645946c8f3a7f4b23aacbf1 | Java | kieronh123/Java-date-class-and-tests | /src/comp2931/cwk1/Date.java | UTF-8 | 7,074 | 3.703125 | 4 | [] | no_license | package comp2931.cwk1;
import java.util.Calendar;
import java.util.GregorianCalendar;
import java.text.SimpleDateFormat;
/**
* Simple representation of a date.
*
* @author Kieron Hushon
*/
public class Date
{
private static final int MAX_DAYS_PER_MONTH = 31;
private static final int MONTHS_PER_YEAR = 12;
... | true |
661e8e8c37b5ac41033d1d865c99c4b87b428979 | Java | wozent/badstudentbackend | /src/main/java/badstudent/mappings/山东省/济南市/济南区/济南区Mappings.java | UTF-8 | 486 | 1.992188 | 2 | [] | no_license | package badstudent.mappings.山东省.济南市.济南区;
import badstudent.mappings.MappingBase;
public class 济南区Mappings extends MappingBase {
@Override
protected void initMappings() {
subAreaMappings.put("山东大学",null);
subAreaMappings.put("济南大学",null);
subAreaMappings.put("山东建筑大学",null);
sub... | true |
85a90e560aeeff3ac647400fc8d22314743d0ec8 | Java | tallyhawley/level-3-module-5 | /src/data_structures/LongChipCompetition.java | UTF-8 | 1,220 | 3.875 | 4 | [] | no_license | package data_structures;
import java.util.ArrayList;
import java.util.Random;
public class LongChipCompetition {
/**
* The Beatles are eating lunch and playing a game to see who has the longest
* chip. (In England, french fries are called "chips".) * Find the Beatle with
* the longest chip. You may not edit th... | true |
61c15538843d589cb9923852ef1763363ef0f163 | Java | 76hao/76hao | /demo/src/main/java/com/example/demo/beans/User.java | UTF-8 | 379 | 1.640625 | 2 | [] | no_license | package com.example.demo.beans;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @Author An_J1ng
* @Date 2020/1/14 -6:48
*/
@AllArgsConstructor
@NoArgsConstructor
@Data
public class User {
/**
*
*/
private Integer id;
/**
*
*/
private Stri... | true |
ae7ce7a9b6919281b888731fd9f098c6b4cd64c4 | Java | Justin-mario/Cohort-6-IDE | /src/TDD/Kata2.java | UTF-8 | 991 | 3.359375 | 3 | [] | no_license | package TDD;
public class Kata2 {
public static int getMaximum(int[] arrays) {
int maximumNumber = arrays[0];
int counter = 0;
while(counter < arrays.length){
if(arrays[counter] > maximumNumber){
maximumNumber = arrays[counter];
}
counter++;
}
... | true |
d80fd51db94200f3b361b42ea92f63389efc4b58 | Java | prashanthkumarchilukamari/CoreJavaPractice | /src/pc/corejava/collections/WeekHashMapSample.java | UTF-8 | 630 | 2.84375 | 3 | [] | no_license | package pc.corejava.collections;
import java.util.Map;
import java.util.WeakHashMap;
public class WeekHashMapSample {
public static void main(String[] args) {
// Map<Employee, String> weakHashMapObj = new HashMap<Employee, String>();
Map<Employee, String> weakHashMapObj = new WeakHashMap<Employ... | true |
821534f4959a8e9589547660418c6d0c6339b3f3 | Java | dobidugi/drawMind | /src/Server/design/MainDesign.java | UTF-8 | 2,259 | 2.484375 | 2 | [
"MIT"
] | permissive | package Server.design;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import javax.swing.JScrollPane;
import javax.swing.JFrame;
import Server.core.socket.ServerController;
import Server.design.maindesigncomponents.*;
public class MainDesign {
private JFrame frame;
private Startbtn startbtn;
... | true |
81dd4d13f82f13317bca6cf52449368998028be5 | Java | Trojmans/RealTime | /src/nl/trojmans/realtime/RealTimePacketAdapter.java | UTF-8 | 1,561 | 2.484375 | 2 | [] | no_license | package nl.trojmans.realtime;
import org.bukkit.entity.Player;
import com.comphenix.protocol.PacketType;
import com.comphenix.protocol.ProtocolLibrary;
import com.comphenix.protocol.events.PacketAdapter;
import com.comphenix.protocol.events.PacketContainer;
import com.comphenix.protocol.events.PacketEvent;
public cl... | true |
0a60b51712ea801765db0ba37d366e5fdbbb4491 | Java | wedtlcy/ssm-cms | /src/main/java/com/wip/config/MyMVCConfig.java | UTF-8 | 3,673 | 2.015625 | 2 | [] | no_license | /**
* Created by IntelliJ IDEA.
* User: Kyrie
* DateTime: 2018/7/19 9:20
**/
package com.wip.config;
import org.apache.commons.dbcp.BasicDataSource;
import org.mybatis.spring.SqlSessionFactoryBean;
import org.mybatis.spring.mapper.MapperScannerConfigurer;
import org.springframework.context.annotation.Bean;
import ... | true |
4aa694ee1b5babc8fbcc2d8dfcaa7c58e09686df | Java | synergytrainings/design-patterns-c4 | /arpine/visitor/src/com/company/builder/model/UpdateQuery.java | UTF-8 | 1,508 | 2.71875 | 3 | [] | no_license | package com.company.builder.model;
import java.util.Map;
import com.company.builder.Query;
import com.company.builder.util.StringBulderHelper;
/**
* Created by arpine on 12/4/17.
*/
public class UpdateQuery
implements Query {
private String table;
private Map<String, String> values;
private Map<String, String... | true |
9e6d3f76301c87150380f55bf4e6d5eefbe5af8d | Java | veriktig/scandium | /old-external/jna/contrib/platform/test/com/sun/jna/platform/win32/VariantTest.java | UTF-8 | 13,405 | 2.234375 | 2 | [
"Apache-2.0",
"LGPL-2.1-only",
"LGPL-2.1-or-later",
"LicenseRef-scancode-commercial-license",
"LicenseRef-scancode-proprietary-license",
"LGPL-2.0-or-later",
"BSD-3-Clause",
"BSD-2-Clause"
] | permissive | package com.sun.jna.platform.win32;
import junit.framework.TestCase;
import com.sun.jna.platform.win32.OaIdl.DATE;
import com.sun.jna.platform.win32.OaIdl.SAFEARRAY;
import com.sun.jna.platform.win32.OaIdl.VARIANT_BOOL;
import com.sun.jna.platform.win32.Variant.VARIANT;
import com.sun.jna.platform.win32.WTypes.BSTR;
... | true |
05acdb83a70475455f72b2be6de0fd9f9f4bb7d2 | Java | markliuliu/LeetCode | /src/Q242/ValidAnagram.java | UTF-8 | 989 | 3.390625 | 3 | [] | no_license | package Q242;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class ValidAnagram {
public boolean isAnagram(String s, String t) {
char[] sc = s.toCharArray();
char[] tc = t.toCharArray();
Map<Character, Integer> map = new HashMap<Character, Integer>();
... | true |
213d72d1e774e7d4840b98afbe9eb7e2f21e046d | Java | JuanM97/ProgrammingContests | /COJ/Java/V10/P1020_RockPaperScissorsTournament.java | UTF-8 | 3,383 | 2.859375 | 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 V10;
/**
*
* @author JuanManuel
*/
import java.io.PrintWriter;
import java.io.InputStreamReader;
import java.util.Scanner... | true |
8d9cc051b65c8cf3c102ebb0b7f7504d1f469fcb | Java | camila-santos-ferreira/java-exercicios | /Exercícios - 07.07/05 - Patinete.java | ISO-8859-1 | 1,464 | 3.234375 | 3 | [] | no_license | package br.com.generation.exercicios0707;
/*Crie uma classe patinete e apresente os atributos e mtodos referentes esta classe, em seguida crie um objeto patinete, defina as instancias deste objeto e apresente as informaes deste objeto no console.*/
public class Patinete {
// Atributos
private String marca;
priva... | true |
8fd315de65e7a2d1cae38044591b52841388890c | Java | Kuchto47/CustomTimeAlarm | /app/src/main/java/com/project/pv239/customtimealarm/database/DatabaseProvider.java | UTF-8 | 503 | 2.265625 | 2 | [] | no_license | package com.project.pv239.customtimealarm.database;
import android.arch.persistence.room.Room;
import com.project.pv239.customtimealarm.App;
public class DatabaseProvider {
private static AppDatabase appDatabase = null;
private static String DB_NAME = "alarm.db";
public static AppDatabase getDatabase(){... | true |
85fcbb3607bba9f2e17e0382c8969f01183eb2a3 | Java | HoopRockStar/HikeFinderApp | /endpoint-libs/libhikeendpoint-v1/hikeendpoint/hikeendpoint-v1-generated-source/com/hikefinderapp/entity/hikeendpoint/model/Hike.java | UTF-8 | 13,767 | 1.679688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under t... | true |
e2426d57aac9e400699b54f3f4fe8162bff70c40 | Java | Seng-Jik/RayTracerInJava | /runner/RenderRunner.java | UTF-8 | 1,474 | 2.859375 | 3 | [] | no_license | package runner;
import java.util.Random;
import java.awt.Graphics;
import raytracer.*;
public class RenderRunner {
private RenderWorker[] workers;
private MasterImage masterImage;
private int selectedWorker;
public RenderRunner(int width, int height, Frustum frustum, Scene scene) {
masterImag... | true |
5b85202b4e11d466cde4f8932bc02f9a9292a084 | Java | lipengming/async-event | /async-event-core/src/main/java/com/cubbery/event/retry/Lease.java | UTF-8 | 1,701 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (c) 2015, www.cubbery.com. All rights reserved.
*/
package com.cubbery.event.retry;
import java.io.Serializable;
import java.util.Date;
public class Lease implements Serializable {
//主键
private long id;
//修改时间(master最后续租期时间)
private Date modifiedTime;
//创建时间
pri... | true |
10f6aa5272648f44b3518dab4a9391f984ebc40b | Java | suReZj/coFood | /app/src/main/java/sure/co_food/Fragment/HomeFragment.java | UTF-8 | 8,786 | 1.726563 | 2 | [] | no_license | package sure.co_food.Fragment;
import android.Manifest;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import android.support.annotation.Nullable;
import android.support.v4.app.Act... | true |
b81b7e6c5397081cf88fd4660b07134b0f3ec2d5 | Java | yuzzzuy/pdftoword | /src/main/java/com/pdfutil/pdftoword/PdftowordApplication.java | UTF-8 | 4,427 | 2.625 | 3 | [] | no_license | package com.pdfutil.pdftoword;
import net.coobird.thumbnailator.Thumbnails;
import org.apache.pdfbox.cos.COSName;
import org.apache.pdfbox.pdmodel.PDDocument;
import org.apache.pdfbox.pdmodel.PDPage;
import org.apache.pdfbox.pdmodel.PDResources;
import org.apache.pdfbox.pdmodel.graphics.image.PDImageXObject;
import or... | true |
7a1bac2745a07b9e84ae3b44914e9d3abd431c33 | Java | aditipcancode/CONCEPTOOPS | /src/Person/Person.java | UTF-8 | 520 | 3.046875 | 3 | [] | no_license | package Person;
public class Person {
private String name;
private Brain brain;
public Person() {
System.out.println("CONSTRUCTOR RUNNING");
}
public Person(String name) {
this.name=name;
//System.out.println(name);
Brain brain=new Brain();
}
public ... | true |
d24fa62613fdfce8a58f947322c05393adfe1bb1 | Java | vassileiosdermentzis/Triangulation-of-2D-plane | /eucledianPlace/PanelHandler.java | UTF-8 | 322 | 2.3125 | 2 | [] | no_license | package eucledianPlace;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
/**
*
* @author Dermentzis Vassileios
*/
public interface PanelHandler extends MouseListener{
public void setNextHandlerInChain(PanelHandler nextInChain);
@Override
public void mousePressed(... | true |
ae2eaaf74912f0e4699b903caaf21585fae8f709 | Java | fzheng/codejam | /codejam/2015R1A/Problem1/MushroomMonster.java | UTF-8 | 1,518 | 3.3125 | 3 | [
"MIT"
] | permissive | public class MushroomMonster {
void solution(Scanner sc, PrintWriter pw) {
/**
* for integer:
* x = sc.nextInt();
* for long:
* x = sc.nextLong();
* for double:
* x = Double.parseDouble(sc.next());
* for charArray:
* x = sc.next().toCharArray();
**/
... | true |
9c5c529239bbdb066a3168e83dc922b583dae151 | Java | m-sonaligupta/TestingFingerSpeedGame | /app/src/main/java/com/guptasonali/testingfingerspeedgame/MainActivity.java | UTF-8 | 6,986 | 2.59375 | 3 | [] | no_license | package com.guptasonali.testingfingerspeedgame;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import android.content.DialogInterface;
import android.os.Bundle;
import android.os.CountDownTimer;
import android.view.Menu;
import android.v... | true |
dab07f3e8dd531ea84eba644839346afea44f5a4 | Java | srinath-narra/DiscountProductDetails | /src/main/java/com/discounts/discountsprice/dataconverter/ProductDataConverter.java | UTF-8 | 4,155 | 2.5625 | 3 | [] | no_license | package com.discounts.discountsprice.dataconverter;
import java.util.Optional;
import java.util.stream.Collectors;
import org.springframework.stereotype.Component;
import com.discounts.discountsprice.domain.ColorSwatch;
import com.discounts.discountsprice.domain.Price;
import com.discounts.discountsprice.domain.Prod... | true |
8309c763d8f2e0017783273f5a2ab7ee5f431ac9 | Java | panwars87/java-projects | /hadoop-projects/kafka-api/src/main/java/com/exp/learning/kafka_api/ConsumerAPI.java | UTF-8 | 2,727 | 2.515625 | 3 | [] | no_license | package com.exp.learning.kafka_api;
import org.apache.kafka.clients.consumer.ConsumerRebalanceListener;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;
import org.apache.kafka.clients.consumer.KafkaConsumer;
import org.apache.kafka.clients.producer.Pro... | true |
b1a9dfbdd0065efee4d6fc95e0de2eac65555043 | Java | musaugurlu/TestFramework | /src/main/java/utils/SuiteListener.java | UTF-8 | 2,278 | 2.015625 | 2 | [
"MIT"
] | permissive | package main.java.utils;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.OutputType;
import org.openqa.selenium.TakesScreenshot;
import org.testng.IAnnotationTransformer;
import org.testng.ITestContext;
import org.testng.ITestListener;
import org.testng.ITestResult;
import org.testng.annotations.ITe... | true |
64104ef90e3535d71cca274473c47c14cb05e37a | Java | lichao2018/AndroidApp | /scan/src/main/java/com/lc/scan/adapter/IBaseAdapter.java | UTF-8 | 195 | 1.835938 | 2 | [] | no_license | package com.lc.scan.adapter;
/**
* Created by lichao on 2018/1/11.
*/
public interface IBaseAdapter<T> {
void updateDatas(T datas);
void addDatas(T datas);
void clearDatas();
}
| true |
e41536a9ecd080ebb108f15e03672cde35e11b40 | Java | yukunkun/CubeWare-Android | /app/src/main/java/cube/ware/ui/login/LoginContract.java | UTF-8 | 985 | 2.453125 | 2 | [
"MIT"
] | permissive | package cube.ware.ui.login;
import android.content.Context;
import com.common.mvp.base.BasePresenter;
import com.common.mvp.base.BaseView;
/**
* 登录契约类,MVP规范
*
* @author LiuFeng
* @date 2018-7-16
*/
public interface LoginContract {
/**
* Activity将实现的回调接口
*/
interface View extends BaseView {
... | true |
fd02f3ec3e37b7c559a3c83ab6965ad99ebd34c4 | Java | wangyeming/tinysou-java | /src/com/tinysou/help/AutoComplete.java | UTF-8 | 1,971 | 2.453125 | 2 | [
"MIT"
] | permissive | package com.tinysou.help;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONObject;
public class AutoComplete {
protected String authToken = new String();
protected String engineName = new String();
protected String collectionName = new String(... | true |
a1df8edbef073a5228056cfcbc757af0b298fdef | Java | alexandreaquiles/fj22-ingressos-exercicios-modularizacao | /fj22-ingressos-package-by-feature/src/main/java/br/com/caelum/ingresso/core/domain/SalaRepository.java | UTF-8 | 208 | 1.8125 | 2 | [] | no_license | package br.com.caelum.ingresso.core.domain;
import java.util.List;
public interface SalaRepository {
Sala findOne(Integer id);
void save(Sala sala);
List<Sala> findAll();
void delete(Integer id);
} | true |
1e5b348632879785ba6024853907bedc889b5f90 | Java | Gravitonic/javaclass | /chapter5/methodsWorksheet5/GradeStatistics.java | UTF-8 | 1,748 | 4.03125 | 4 | [] | no_license | /*
* Programmer: Dylan Yang
* Date: November 1, 2017
* Purpose: to calculate the average, minimum, and maximum values of user-inputted grades
*/
import java.util.Scanner;
public class GradeStatistics {
static Scanner in = new Scanner(System.in);
public static void main(String[] args) {
int students;
Sy... | true |
095f2a8bb7d4469be85b0ccbdfc8390968d0d226 | Java | qingguoguo/ImitatePractice | /app/src/main/java/com/qgg/practice/MainActivity.java | UTF-8 | 1,954 | 1.6875 | 2 | [] | no_license | package com.qgg.practice;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import com.bumptech.glide.Glide;
import com.qgg.practice.retrofitdemo.RetrofitTestActivity;
public class MainActivity extends ... | true |
817a7d24f1dab0b9bec6632f8f32dab6372b5cab | Java | TheFlash98/Pogame | /app/src/main/java/com/example/sarthak/pogame/PollingActivity.java | UTF-8 | 2,146 | 2.234375 | 2 | [] | no_license | package com.example.sarthak.pogame;
import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.TextView;
import com.squareup.okhttp.Callback;
import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.Res... | true |
303362a681a5299aaaa89ec1778fa5c03b572003 | Java | optimiJH/CS625-AI-Final-Project | /src/ga_evolution/BasicPolygon.java | UTF-8 | 4,037 | 3.375 | 3 | [] | no_license | package ga_evolution;
import java.util.ArrayList;
import java.util.Random;
import org.opencv.core.Point;
import org.opencv.core.Scalar;
public class BasicPolygon {
final static int POLY_MIN_POINTS = 3;
final static int POLY_MAX_POINTS = 5;
final static int POLYGONS = 20;
private static final int OFFSET = 10;
S... | true |
2ae6ce3da867f8b2f94712d042316094e35d359d | Java | 3rdstage/exercise3 | /thirdstage.exercise.drools/src/test/java/thirdstage/exercise/drools/RulesTest.java | UTF-8 | 1,357 | 2.375 | 2 | [] | no_license | package thirdstage.exercise.drools;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.BeforeAll;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.junit.platform.runner.JUnitPlatform;
import org.junit.runner.RunWith;
import org.kie.api.KieServices;
import org.k... | true |
a4bb39afade93f959130f1832d168bdfc002f7a0 | Java | jaxrtech/FRC2016 | /src/org/usfirst/frc5293/subsystems/util/MecanumDrive.java | UTF-8 | 10,280 | 2.390625 | 2 | [] | no_license | /*----------------------------------------------------------------------------*/
/* Copyright (c) FIRST 2008-2012. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... | true |
d626a4b1391891a98e76ce9977e281154fd41659 | Java | radhikasrinivasan8/Go-Merida | /Sandbox/Generating Diamonds/MyWorld.java | UTF-8 | 1,681 | 3.03125 | 3 | [] | no_license | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class MyWorld here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class MyWorld extends World
{
/**
* Constructor for objects of class MyWorld.
*
*/
... | true |
5d8e21241a0457e97c91799c17e998cc35ff639f | Java | gpeFC/seminario_prog_dos | /perceptronMulticapa/RedNeuronal.java | UTF-8 | 6,665 | 2.96875 | 3 | [] | no_license | /******************************************************************************
* Seminario de Programacion I
* Emanuel GP
*
* Proyecto: Red Neuronal Artificial Perceptron
******************************************************************************/
// Clase: RedNeuronal
import java.util.ArrayList;
public cl... | true |
0f003c6a8b13bf157f746ac2aa9b741aeac469a1 | Java | zhuyuqiang2017/demo | /demo-mybatis/src/main/java/top/selfhelp/ArticleMapper.java | UTF-8 | 136 | 1.617188 | 2 | [] | no_license | package top.selfhelp;
import java.util.Map;
/**
* @author zhuyuqiang
*/
public interface ArticleMapper {
Map selectArticle();
}
| true |
1e5d43463db713c038bed39d6d5343e517bb64b8 | Java | guidanoli/inf1306 | /Project-01/src/main/java/gvrp/Main.java | UTF-8 | 15,742 | 2.125 | 2 | [
"MIT"
] | permissive | package gvrp;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.Scanner;
import jav... | true |
d6f4c151aaefe9a0f116fef665b8cf156749f3af | Java | angelcastro2/SedentApp | /app/src/main/java/com/sedentapp/sedentapp/sedentapp/InicioFragment.java | UTF-8 | 10,595 | 2.015625 | 2 | [] | no_license | package com.sedentapp.sedentapp.sedentapp;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.Uri;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManage... | true |
b346f2df039f720e5aa8cb60fbb8c81dd254b6b2 | Java | Robothy/exunion | /exunion-service-binance/src/main/java/com/robothy/exunion/binance/handler/BinanceApiExceptionHandler.java | UTF-8 | 1,333 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package com.robothy.exunion.binance.handler;
import com.binance.api.client.BinanceApiError;
import com.binance.api.client.exception.BinanceApiException;
import com.robothy.exunion.rest.Result;
import com.robothy.exunion.rest.spi.ExchangeServiceExceptionHandler;
import java.util.Collections;
import java.util.Set;
/**... | true |
06fc451726a421b869eee298f7aa037b6cd2a01f | Java | the-bug/quarkus-multi-module | /business-b/src/main/java/org/my/group/b/ServiceB.java | UTF-8 | 402 | 2.375 | 2 | [
"MIT"
] | permissive | package org.my.group.b;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Inject;
import org.my.group.ServiceA;
/**
* this class can be injected in the web module
*
* @author Jonas Scholz (jonas@die-honigwanderer.de)
*
*/
@ApplicationScoped
public class ServiceB {
@Inject
ServiceA servi... | true |
3390688e0683b75f83dbf501eb0bd58dd3bbd168 | Java | K-Hanna/PharmacyApp | /src/main/java/Pharmacy/storage/ReceiptStorageImpl.java | UTF-8 | 1,800 | 2.921875 | 3 | [] | no_license | package Pharmacy.storage;
import Pharmacy.type.Receipt;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.ArrayList;
import java.util.List;
public class ReceiptStorageImpl implements ReceiptStorage {
private Lis... | true |
1f38640e4c45494a40b4d047b80cc05bdb6a19ef | Java | msqr/matte | /matte-web/src-ma1/magoffin/matt/ma/util/WorkScheduler.java | UTF-8 | 4,500 | 2.796875 | 3 | [] | no_license | /* ===================================================================
* WorkScheduler.java
*
* Copyright (c) 2002 Matt Magoffin.
*
* 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 Software Foundation; eit... | true |
9c0ccfcff3e8a19c714fa6e575f1447fedaf4f93 | Java | amruth006/adf-samples-master | /src/DynamicPoplistForAngelo/ViewController/src/test/view/bug5930745/Bug5930745WorkaroundBindingDefFactoryImpl.java | UTF-8 | 2,070 | 1.789063 | 2 | [
"UPL-1.0",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /* Copyright 2010, 2017, Oracle and/or its affiliates. All rights reserved. */
package test.view.bug5930745;
import oracle.adf.model.binding.DCDefBase;
import oracle.adfinternal.view.faces.model.binding.FacesCtrlActionDef;
import oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsDef;
import oracle.adfin... | true |
b0ff49684e13cbcd61bfe96c5acf5e74d9e33124 | Java | SalahMerzoug/recherech_information_n-gramme | /src/ui/UiController.java | UTF-8 | 11,099 | 1.609375 | 2 | [] | no_license | package ui;
import IR.ML;
import IR.doc;
import IR.resulta;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXComboBox;
import com.jfoenix.controls.JFXTextField;
import java.io.IOException;
import java.util.ArrayList;
import javafx.event.ActionEvent;
import javafx.scene.control.Label;
import javafx... | true |
479eefb7c0528374479ff2975f6a571ac8ce9a2a | Java | luocaca/Rebate | /integralmanagement/src/main/java/com/just/integralmanagement/IntegralDetailActivity.java | UTF-8 | 5,054 | 1.859375 | 2 | [] | no_license | package com.just.integralmanagement;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.MenuItem;
import androidx.annotation.Nullable;
import androidx.appcompat.app.ActionBar;
import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
imp... | true |
02104b984ee97c957138a8a0bec7cf584afded6d | Java | nithish-repo/Selenium-Codes | /SeCheckbox.java | UTF-8 | 1,292 | 2.640625 | 3 | [] | no_license | package week2day1;
import java.util.List;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
public class SeCheckbox {
public static void main(String[] args) throws Exception {
System.setProperty("webdriver.chrome.driver", "./driv... | true |
6c9c523daf38cce3229cde361f37cfb8e5af5630 | Java | RubenLopezMompean/ejercicios_de_java | /Capitulo05/C05Ejercicio22.java | UTF-8 | 634 | 4 | 4 | [] | no_license | /**
* Ejercicio 22
* Muestra por pantalla todos los números primos entre 2 y 100, ambos incluidos.
*
* @author Rubén López Mompeán
*/
public class C05Ejercicio22 {
public static void main(String[] args) {
System.out.print("A continuación se va a mostrar los números primos ");
System.out.println("compre... | true |
9969e54cd2cf1c8f8002cde09f0d29bbd346cf18 | Java | 12security/zoom-android-app | /sources/com/dropbox/core/p005v2/paper/InviteeInfoWithPermissionLevel.java | UTF-8 | 6,742 | 2 | 2 | [] | no_license | package com.dropbox.core.p005v2.paper;
import com.dropbox.core.p005v2.sharing.InviteeInfo;
import com.dropbox.core.stone.StoneDeserializerLogger;
import com.dropbox.core.stone.StructSerializer;
import com.fasterxml.jackson.core.JsonGenerationException;
import com.fasterxml.jackson.core.JsonGenerator;
import com.faster... | true |
009f24371ea96c338dade0931270df94820810b7 | Java | 360Celsius/360CelsiusGitHubLdapAccount | /LdapAccount/app/src/main/java/ldapaccount/celsius/a360/com/ldapaccount/receivers/AttempLoginToAccountServiceResponseReciver.java | UTF-8 | 1,576 | 2.046875 | 2 | [] | no_license | package ldapaccount.celsius.a360.com.ldapaccount.receivers;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import ldapaccount.celsius.a360.com.ldapaccount.constan... | true |
e67ee6086e02535c6b0058a4c5a1404c04d4fbd6 | Java | lxhlangxuhao/spring_cloud | /eureka-user/src/main/java/com/lang/xu/hao/eurekauser/eurekaserver/server/impl/TestServerImpl.java | UTF-8 | 588 | 1.890625 | 2 | [] | no_license | package com.lang.xu.hao.eurekauser.eurekaserver.server.impl;
import com.lang.xu.hao.eurekauser.eurekaserver.annotation.IsTryAgain;
import com.lang.xu.hao.eurekauser.eurekaserver.exception.TryAgainException;
import com.lang.xu.hao.eurekauser.eurekaserver.server.TestServer;
import org.springframework.stereotype.Service;... | true |
82aa4fcafd9c95ab37b4181ee7155417f11b3906 | Java | wuyufei2019/test110 | /src/main/java/com/cczu/model/lydw/listener/MsgThread.java | UTF-8 | 5,869 | 2.046875 | 2 | [] | no_license | package com.cczu.model.lydw.listener;
import com.cczu.model.lydw.entity.LYDW_BJJL;
import com.cczu.model.lydw.entity.Pub_FileTime;
import com.cczu.model.lydw.entity.Pub_FileTimeHis;
import com.cczu.model.lydw.service.LYDW_RydwService;
import com.cczu.model.lydw.service.LYDW_BjjlService;
import com.cczu.websocket.LYDW_... | true |
850a287019df05b12005608a7883bbf8018bcc83 | Java | shamikulamin/server_spring | /CampusConnectServer/src/main/java/com/campusconnect/server/controller/helper/UserHelper.java | UTF-8 | 2,458 | 2.203125 | 2 | [] | no_license | package com.campusconnect.server.controller.helper;
import java.util.List;
import java.util.Set;
import javax.servlet.ServletContext;
import org.json.JSONArray;
import org.json.JSONObject;
import org.springframework.context.ApplicationContext;
import org.springframework.web.context.support.WebApplicationCo... | true |
55d8c9a7ecbff93fce730c304084aebbaf116f1b | Java | Graham84/JuniorJavaAssociate | /OJA_Topic_12/src/StringQuiz.java | UTF-8 | 348 | 3.171875 | 3 | [] | no_license | public class StringQuiz {
public static void main(String [] args) {
String quote = "The sea is an angry dog";
String quote2 = "The sea is an angry dog";
String quote3 = new String("The sea is an angry dog");
System.out.println(quote == quote2);
System.out.println(quote2 == quote3);
System.out.print... | true |
3442af58b2c744bca2618134d1fba9a6a3b4ac4e | Java | chaeyun17/dnd-mentee-3rd-6-repo | /back-end/neighbor_cats/src/test/java/org/dnd3/udongsa/neighborcats/servant/service/ServantServiceTest.java | UTF-8 | 1,591 | 2.125 | 2 | [] | no_license | package org.dnd3.udongsa.neighborcats.servant.service;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.BDDMockito.given;
import org.dnd3.udongsa.neighborcats.security.service.SecurityContextService;
import org.dnd3.udongsa.neighborcats.servant.dto.ServantDto;
import org.dnd3.udongs... | true |
84b4a420efa03b98d6e34d63444d8edf9947af29 | Java | trungdovan87/spring-lab | /spring-hnservice/src/main/java/edu/hanoi/service/model/Group.java | UTF-8 | 702 | 2.3125 | 2 | [] | no_license | package edu.hanoi.service.model;
import javax.persistence.*;
/**
* Created by trungdovan on 12/4/16.
*/
@Entity
@Table(name = "HN_GROUP", uniqueConstraints = {@UniqueConstraint(columnNames = "id")})
public class Group {
private String name;
private Integer id;
@Column(name = "name", nullable = false, l... | true |
41addbb98f21052ac4c3edf25ccef6e09c92d83d | Java | pablo361/Salon | /app/src/main/java/com/example/salon/adapters/adapterClass.java | UTF-8 | 2,640 | 2.328125 | 2 | [] | no_license | package com.example.salon.adapters;
import android.app.Activity;
import android.content.Intent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview... | true |
6df8a98ff6b95480ccfe6a44fdaeba266a8856ec | Java | nylecm/TicTacToe | /src/TicTacToeMainMenu.java | UTF-8 | 1,150 | 3.0625 | 3 | [
"MIT"
] | permissive | import javax.swing.*;
import java.awt.event.ActionListener;
//todo comment TicTacToeMainMenu
class TicTacToeMainMenu extends JFrame {
private final static int WIDTH = 300;
private final static int HEIGHT = 200;
TicTacToeMainMenu() {
createComponents();
}
private void createComponents() {
... | true |
18112bb491f258eae65d05a324c040b79317eeb0 | Java | gravitybear/Pickup | /AndroidProject/Pickup/app/src/main/java/com/pickup/hackvalley/pickup/actors/User.java | UTF-8 | 4,028 | 2.390625 | 2 | [] | no_license | package actors;
import java.util.List;
public class User {
private String username;
private String email;
private String password; // I don't care!! it's not a real app!!
private String fullName;
private String phoneNumber;
private String location;
private String height;
private String weight;
priva... | true |
a9b418d5cf18f4500b1b0bdf312aa4a5ae8c2d33 | Java | Dingtaotao666/sciencsys | /app/src/main/java/cn/com/sciencsys/sciencsys/initsystem/Constants.java | UTF-8 | 3,042 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package cn.com.sciencsys.sciencsys.initsystem;
import android.net.wifi.WifiManager;
public class Constants {
public static class WifiValue{
public static final String SSID = "Elab_AP";
public static final String Password = "20100813";
}
public static class BroadcaseUtilsValue {
pu... | true |
fdbf2c877d9f9db9627e5e804528739f93325e56 | Java | LiZhouYan/logger-util | /src/test/java/com/logger/util/service/LoggerServiceTest.java | UTF-8 | 1,366 | 2.328125 | 2 | [] | no_license | package com.logger.util.service;
import com.logger.util.bean.LoggerLevel;
import com.logger.util.constant.LogLevelConstant;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* @version 1.0
* @Desc 日志服务测试
* @Author zhouguanglin
* @Email zhouguanglin_java@163.com
* @Date 2020/9... | true |
851c8514b181e32627997e85c5b9a6451696b601 | Java | 290932857/web | /src/main/java/com/e6wifi/cmp/common/datasource/DynamicDataSource.java | UTF-8 | 455 | 1.953125 | 2 | [] | no_license | package com.e6wifi.cmp.common.datasource;
import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;
/**
* 动态切换DataSource类入口,继承Spring的AbstractRoutingDataSource类
*
* @author Lijiacheng
*/
public class DynamicDataSource extends AbstractRoutingDataSource {
@Override
protected ... | true |
9634c9a15a5c1f70bab448f52ed0fc566a11e831 | Java | yuvi4715/1712_dec11_jta | /automation/examples/webdriver/src/main/java/com/revature/pom/TestClass2.java | UTF-8 | 1,644 | 2.078125 | 2 | [] | no_license | package com.revature.pom;
import org.testng.annotations.AfterSuite;
import org.testng.annotations.AfterTest;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.BeforeTest;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
import java.io.File;
import org.openqa.sele... | true |
65cf7c854ddbd511c652eec052bac7ace44f3075 | Java | glorypulse/quiz | /leetcode/30-Day_LeetCoding_Challenge/2020/0715/Solution.java | UTF-8 | 616 | 3.09375 | 3 | [] | no_license | class Solution {
public String reverseWords(String s) {
if (s.isEmpty()) return s;
String[] words = s.split(" ", 0);
StringBuilder sb = new StringBuilder();
int minIndex = 0;
while (minIndex < words.length && words[minIndex].isEmpty()) {
minIndex ++;
}
... | true |
118accd5d280a1d9f514f500621871efc0559c7c | Java | rksuthar19/StrutsSpringHibernateDemoProject | /StrutsSpringHibernateDemoProject/videoworld08/src/main/java/com/suthar/rentel/domain/repository/TransactionRepository.java | UTF-8 | 855 | 2.21875 | 2 | [] | no_license | package com.suthar.rentel.domain.repository;
import com.suthar.rentel.domain.model.Customer;
import com.suthar.rentel.domain.model.Transaction;
import com.suthar.rentel.domain.specification.Specification;
import com.suthar.rentel.domain.util.NullObjectAddedException;
import java.util.Collection;
import java.util.Comp... | true |
0a1c978733e927b00ea8d87d9ec41e7dcc59b210 | Java | ValdeciJunior/hibernate | /src/com/junior/PagamentoDAO.java | UTF-8 | 2,975 | 2.21875 | 2 | [] | no_license | package com.junior;
// Generated 18/jan/2019 22:29:22 by Hibernate Tools 4.3.1
import java.io.File;
import java.util.List;
import javax.naming.InitialContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import org.hibernate.Session;
import org.hib... | true |
be25f6d440422f9b23c6c46fef04bb7c76e8aa30 | Java | m0jangles/MVCEarbuds | /JPAEarbuds/src/com/skilldistillery/earbuds/entities/PostDTO.java | UTF-8 | 2,675 | 2.65625 | 3 | [] | no_license | package com.skilldistillery.earbuds.entities;
public class PostDTO {
// fields
private String title;
private String artist;
private String album;
private String albumImage;
private String url;
private String message;
private String genre;
// constructor
public PostDTO() {
}
public String getTitle... | true |
2dfd20dce93752b1f9c2b5b7e602bc8ad902d57c | Java | Hyiran/MyFirstClient | /app/src/main/java/eson/com/myfirstclient/utils/XinWenJson.java | UTF-8 | 6,974 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package eson.com.myfirstclient.utils;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.util.ArrayList;
import java.util.List;
/**
* Created by HP on 2016/8/6.
*/
public class XinWenJson {
public static XinWen_toutiao getdata(String data, int type) {... | true |
bde3c8862b36d54b22c7aacba0fec819747feaef | Java | LucasKhattar/EclipseLucasLvl1 | /src/RobotArmy.java | UTF-8 | 1,043 | 4.09375 | 4 | [] | no_license | public class RobotArmy {
public static void main(String[] asd){
Human human1 = new Human ("Bob");
Human human2 = new Human("Chris");
Robot robot1 = new Robot("Greg", false);
Robot robot2 = new Robot("Jim", false);
Robot robot3 = new Robot("Jeff", false);
Robot robot4 = new Robot("DarthVader", true);
robo... | true |
8f0c35ea80c2f42394e4a582b7f113ab097ab8ae | Java | vchess/Interview-Street | /src/main/java/by/gstu/interviewstreet/service/AnswerService.java | UTF-8 | 602 | 1.953125 | 2 | [] | no_license | package by.gstu.interviewstreet.service;
import by.gstu.interviewstreet.domain.*;
import java.util.List;
import java.util.Map;
public interface AnswerService {
Answer get(int id);
Answer get(Question question, int id);
List<Answer> get(List<Integer> ids);
void saveOrUpdate(Answer answer);
Li... | true |
d9f3e9c9157bd3da0674b7026205b9e87cdbef0d | Java | saurabhharihar/SimpleCalculator | /app/src/main/java/com/example/calcu/MainActivity.java | UTF-8 | 2,142 | 2.71875 | 3 | [] | no_license | package com.example.calcu;
import androidx.appcompat.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
public class MainActivity extends AppCompatActivity {
private Button Add;
private Butto... | true |
10c33819557faf4fa2f64ca257415e27fab367cc | Java | larry6799/faceSDk | /src/main/java/cn/edu/bit/entity/FaceSdkReqBean.java | UTF-8 | 661 | 2 | 2 | [] | no_license | package cn.edu.bit.entity;
/**
* @author zhangrui
* @date 2020-08-25 16:43
*/
public class FaceSdkReqBean {
/**
* 特征值序列号
*/
public String seqNum;
/**
* 特征值
*/
public byte[] feature;
public FaceSdkReqBean(String seqNum, byte[] feature) {
this.seqNum = seqNum;
... | true |
936a7b9fec3efcc7766491fbce25382b1da749d0 | Java | pl-kabaradjian/LocaFilm | /src/locafilm/Main.java | UTF-8 | 1,065 | 2.109375 | 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 locafilm;
import java.util.*;
import java.sql.*;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
i... | true |
27f59498435b04f6597d78bf1f56314558843db9 | Java | isevirtus/teamformation | /src/util/ApachePoiUtil.java | UTF-8 | 2,144 | 2.921875 | 3 | [] | no_license | package util;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import org.apache.commons.lang3.StringUtils;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.... | true |
8fbe9e36ca50a430c85452a5d5cf19ba6065d120 | Java | Csh6/untitled | /src/case02/oo/Item.java | UTF-8 | 895 | 2.65625 | 3 | [] | no_license | package case02.oo;
import case02.buycat.withExceptionHandler.oo.Product;
import lombok.Data;
import java.util.Objects;
@Data
public class Item {
private Product product;
private Integer amount;
public Product getProduct() {
return product;
}
public void setProduct(Product product) {
... | true |
793371e48b1423c8af76b7d13884881533d5bb45 | Java | girija1234567/Hackerrank | /com/mix/problem/Anonymous1.java | UTF-8 | 801 | 3.25 | 3 | [] | no_license | package com.mix.problem;
import java.util.Scanner;
public class Anonymous1 {
public Anonymous1()
{
Thread t = new Thread(new Runnable(){
public void run()
{
Scanner s=new Scanner(System.in);
System.out.println("enter n value");
int n2=s.nextInt();
for(int i=1... | true |
4e9d1dc8f154cc8a07d04cfc896e318e5c29e502 | Java | ZiTian8/coding | /src/leetcode/hard/IsMatch10.java | UTF-8 | 1,814 | 3.6875 | 4 | [] | no_license | /**
* @ClassName IsMatch10
* @Description
* 给你一个字符串 s 和一个字符规律 p,请你来实现一个支持 '.' 和 '*' 的正则表达式匹配。
*
* '.' 匹配任意单个字符
* '*' 匹配零个或多个前面的那一个元素
* 所谓匹配,是要涵盖 整个 字符串 s的,而不是部分字符串。
*
* 说明:
*
* s 可能为空,且只包含从 a-z 的小写字母。
* p 可能为空,且只包含从 a-z 的小写字母,以及字符 . 和 *。
* @Author HAHA
* @Version V1.0.0
* @Date 2019/8/15 13:09
*/
packa... | true |
b7a4fb73a12692c97dd95454b8162f9c15c15a2a | Java | oracle/coherence | /prj/coherence-core/src/main/java/com/tangosol/net/ssl/AbstractCertificateLoader.java | UTF-8 | 4,005 | 2.453125 | 2 | [
"EPL-1.0",
"Classpath-exception-2.0",
"LicenseRef-scancode-unicode",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"LicenseRef-scancode-free-unknown",
"LicenseRef-scancode-protobuf",
"CDDL-1.1",
"W3C",
"APSL-1.0",
"GPL-2.0-only",
"Apache-2.0",
"LicenseRef-scancode-public-domain"... | permissive | /*
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
*
* Licensed under the Universal Permissive License v 1.0 as shown at
* http://oss.oracle.com/licenses/upl.
*/
package com.tangosol.net.ssl;
import com.tangosol.internal.net.ssl.PemReader;
import java.io.Closeable;
import java.io.IOException;
import ja... | true |
76b80d8f30436d179f4614ee50fb2929af1f91f7 | Java | songxingzai/APKAnalyserModules | /TestResult/javasource/com/adobe/creativesdk/foundation/internal/storage/AdobePhotoCollectionsDataSource.java | UTF-8 | 12,591 | 1.625 | 2 | [] | no_license | package com.adobe.creativesdk.foundation.internal.storage;
import com.adobe.creativesdk.foundation.IAdobeGenericCompletionCallback;
import com.adobe.creativesdk.foundation.IAdobeGenericErrorCallback;
import com.adobe.creativesdk.foundation.adobeinternal.cloud.AdobeCloud;
import com.adobe.creativesdk.foundation.interna... | true |
41e3eea3bfde6e570564244bfbd2ddbaa64bed01 | Java | kiko-g/feup-sdis | /labs/lab1/src/Client.java | UTF-8 | 3,993 | 3.265625 | 3 | [] | no_license | import java.net.*;
import java.io.IOException;
import java.util.StringJoiner;
public class Client {
private static int port; // port number
private static String host; // host address
public static void main(String[] args) throws SocketException, UnknownHostException {
if (args.length <... | true |
97a2fb22b79e23c780198ef287142ee94cc51530 | Java | villce/com.vilce.learn | /common/src/main/java/com/vilce/common/model/log/filter/LogFilter.java | UTF-8 | 1,115 | 2.5 | 2 | [] | no_license | package com.vilce.common.model.log.filter;
import ch.qos.logback.classic.Level;
import ch.qos.logback.classic.filter.LevelFilter;
import ch.qos.logback.classic.filter.ThresholdFilter;
import static ch.qos.logback.core.spi.FilterReply.ACCEPT;
import static ch.qos.logback.core.spi.FilterReply.DENY;
/**
* @Description... | true |
25778e0865ed4aed94441ecec162cd644cdeafb6 | Java | liupenny/algorithms | /src/array/MajorityElement/Solution.java | UTF-8 | 2,169 | 3.734375 | 4 | [] | no_license | package array.MajorityElement;
/**
* @author PennyLiu
* @version V1.0
* @Project: leetcode
* @Description: TODO
* @date 2018/12/4
*/
public class Solution {
// public int MoreThanHalfNum_Solution(int [] array) {
// if (array == null || array.length == 0) {
// return 0;
// }
// ... | true |
eb7e3c6c2c0ac6885d1502c4eac574fd15043a58 | Java | luoyongsir/druid | /core/src/test/java/com/alibaba/druid/bvt/sql/oracle/visitor/OracleOutputVisitorTest_PrettyFormat.java | UTF-8 | 1,901 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package com.alibaba.druid.bvt.sql.oracle.visitor;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
import com.alibaba.druid.sql.ast.SQLStatement;
import com.alibaba.druid.sql.dialect.oracle.visitor.OracleOutputVisitor;
import com.alibaba.druid.sql.parser.SQLParserUtils;
import com.alibaba.drui... | true |
d0065d83eb186eb6315292f6e1dd6e93547497ae | Java | dyguests/ChuQuWan | /app/src/main/java/com/fanhl/cqw/ui/base/BaseActivity.java | UTF-8 | 657 | 2.015625 | 2 | [] | no_license | package com.fanhl.cqw.ui.base;
import android.os.Build;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import com.fanhl.cqw.R;
/**
* Created by fanhl on 16/8/30.
*/
public abstract class BaseActivity extends AppCompatActivity {
@Override p... | true |
f72a45802d29eb209ca41476974296ce04d0d7cb | Java | taofeng1994/srb0914 | /alibaba-easyexcel/src/test/java/com/atguigu/easyexcel/ExcelWriteTest.java | UTF-8 | 1,283 | 2.4375 | 2 | [] | no_license | package com.atguigu.easyexcel;
import com.alibaba.excel.EasyExcel;
import com.atguigu.easyexcel.dto.ExcelStudentDTO;
import com.atguigu.easyexcel.listen.ExcelStudentDTOListener;
import jdk.management.resource.internal.inst.SocketOutputStreamRMHooks;
import org.junit.Test;
import java.io.File;
import java.text.Simple... | true |
ae157991559fb98049a029d085aac0b2d14fb356 | Java | wangruihuano/dbsync | /src/main/java/com/acewill/dbsync/common/SqlUtil.java | UTF-8 | 4,140 | 2.453125 | 2 | [] | no_license | package com.acewill.dbsync.common;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.acewill.dbsync.entity.SqlColumn;
import com.acewill.dbsync.entity.SqlIndex;
import com.alibaba.druid.util.StringUtils;
/**
* sql语句处理
* @author Liucl
* @datetime 2016年9月8日 下午6:22:20
... | true |
0d9b7d7b65ffffd6f87e3b689c6ba9c477fa2bde | Java | DexterJohn/Gospel-Library-Android-Espresso- | /build/generated/source/kapt/debug/org/lds/ldssa/ux/tips/pages/tip/TipViewModel_Factory.java | UTF-8 | 1,397 | 2 | 2 | [] | no_license | package org.lds.ldssa.ux.tips.pages.tip;
import dagger.internal.Factory;
import javax.annotation.Generated;
import javax.inject.Provider;
import org.lds.ldssa.model.database.gl.tipviewed.TipViewedManager;
import org.lds.ldssa.model.database.tips.tip.TipManager;
import org.lds.mobile.coroutine.CoroutineContextProvider;... | true |
2e75d64c3cebf5db70a7d3f05d25a7dcf0e5ca0f | Java | prorhap/pia | /src/main/java/net/irhapsody/pia/temp/FancyFrameworkUtil.java | UTF-8 | 308 | 1.828125 | 2 | [] | no_license | package net.irhapsody.pia.temp;
/**
* Created by IntelliJ IDEA.
* User: rhapsody
* Date: 3/6/12
* Time: 12:29 AM
* To change this template use File | Settings | File Templates.
*/
public class FancyFrameworkUtil {
public static String getProperty(){
return"some runtime property";
}
}
| true |
a34d77c05843521f7367858f19d50caf9801eef6 | Java | wkssmile/SiteCrawl | /src/main/java/com/edmi/entity/icorating/ICO_icorating_detail_block_development.java | UTF-8 | 2,828 | 1.84375 | 2 | [] | no_license | package com.edmi.entity.icorating;
import javax.persistence.*;
import java.sql.Timestamp;
/**
* 公司发展 模型
*/
@Entity
@Table(name = "ico_icorating_detail_block_development")
public class ICO_icorating_detail_block_development {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long pk_id;
... | true |