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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
71d91eff317677c56ae44dbaadad38da65c1b0ae | Java | ow2-proactive/prestocloud-tosca-interpreter | /src/main/java/prestocloud/btrplace/precedingRunning/CPrecedingRunning.java | UTF-8 | 2,452 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package prestocloud.btrplace.precedingRunning;
import com.google.common.collect.Sets;
import org.btrplace.model.Instance;
import org.btrplace.model.Model;
import org.btrplace.model.VM;
import org.btrplace.scheduler.SchedulerException;
import org.btrplace.scheduler.choco.Parameters;
import org.btrplace.scheduler.choco.... | true |
5fb8556c269603e4c431fcbd8302e822a95cd518 | Java | kamashiwo/vedu | /propaganda/src/main/java/com/datang/olv/propaganda/overview/HistoryFragment.java | UTF-8 | 2,300 | 2.03125 | 2 | [] | no_license | package com.datang.olv.propaganda.overview;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.ListView;
import ... | true |
d97b6cfd0b2188113187755f22441a35a283a06c | Java | Stars-shining/AllTestDemo | /java/lyp/com/text/Incetence/Fruit.java | UTF-8 | 125 | 2.078125 | 2 | [] | no_license | package lyp.com.text.Incetence;
/**
* Created by lyp on 2019/3/3.
*/
public interface Fruit {
void eat();
}
| true |
21487cfeec5ec02e64d724ffd806a9139de67dd2 | Java | veraueda/ecommerce-api | /Backend/ecommerce-checkout-api/src/main/java/com/tijolocwb/ecommerce/checkout/config/StreamingConfig.java | UTF-8 | 461 | 1.546875 | 2 | [] | no_license | package com.tijolocwb.ecommerce.checkout.config;
import com.tijolocwb.ecommerce.checkout.streaming.CheckoutCreatedSource;
import com.tijolocwb.ecommerce.checkout.streaming.PaymentPaidSink;
import org.springframework.cloud.stream.annotation.EnableBinding;
import org.springframework.context.annotation.Configuration;
@C... | true |
9a30ebcc8f2b3a2149c09351b7041f4aa08b7075 | Java | StevenNdaye/solid-principles-session | /src/main/java/ocp/example2/fixed/SizeFilterSpecification.java | UTF-8 | 654 | 3.15625 | 3 | [
"MIT"
] | permissive | package ocp.example2.fixed;
import java.util.ArrayList;
import java.util.List;
public class SizeFilterSpecification extends ProductFilterSpecification {
private ProductSize productSize;
public SizeFilterSpecification(ProductSize productSize) {
this.productSize = productSize;
}
@Override
... | true |
864abfe2d83e55825cd53a4836d999e94c242478 | Java | qwertzdenek/logicnet | /src/main/java/pia/servlet/ImageServlet.java | UTF-8 | 1,464 | 2.25 | 2 | [
"Apache-2.0"
] | permissive | package pia.servlet;
import pia.beans.ImageService;
import pia.dao.AccountDao;
import pia.dao.JPADAO;
import javax.ejb.EJB;
import javax.inject.Inject;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
impor... | true |
1fcd2efcbd037ecaab50c231b710b7753a751dc7 | Java | Belousov-EA/university | /Физкультура/ВДНХ/VelnessBMSTU_v1.2b_apkpure.com_source_from_JADX/com/google/android/gms/internal/zzedr.java | UTF-8 | 683 | 1.625 | 2 | [] | no_license | package com.google.android.gms.internal;
import java.util.List;
final class zzedr implements zzeff {
private /* synthetic */ zzedn zzmti;
private /* synthetic */ List zzmtm;
zzedr(zzedn com_google_android_gms_internal_zzedn, List list) {
this.zzmti = com_google_android_gms_internal_zzedn;
... | true |
9ce65d2a02d6dd81140db7622a010c45ec7f263f | Java | baovuong/listing-scales | /src/test/java/com/vuongideas/listingscales/gen/DataGenerationTest.java | UTF-8 | 1,116 | 2.078125 | 2 | [] | no_license | package com.vuongideas.listingscales.gen;
import static org.junit.Assert.assertTrue;
import java.util.Collection;
import com.vuongideas.listingscales.model.MusicScale;
import com.vuongideas.listingscales.repository.MusicScaleRepository;
import com.vuongideas.listingscales.util.ScaleExtractor;
import org.junit.Test;... | true |
0b2a685488a2f59c7e24b95d0c0c3c57409920fd | Java | rain206/gitRainey | /cp130/src/main/java/app/UserInterface.java | UTF-8 | 3,769 | 2.953125 | 3 | [] | no_license | package app;
import edu.uw.ext.framework.account.AccountException;
import edu.uw.ext.framework.account.AccountManager;
import edu.uw.ext.framework.dao.AccountDao;
import edu.uw.raineyck.account.AccountManagerImpl;
import edu.uw.raineyck.dao.AccountDaoImpl;
import javafx.application.Application;
import javafx.event.Act... | true |
b058426873d5cb1f8a782e1fc9d1b0960728d0ac | Java | kcw88225/java-spring-mvc-helloworld | /src/main/java/com/in28minutes/service/UserService.java | UTF-8 | 1,195 | 2.203125 | 2 | [] | no_license | package com.in28minutes.service;
import java.util.List;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.in28minutes.dto.UserDetails;
impor... | true |
5b9b09ccd9d24d070329479c356e0871befd0019 | Java | FlixKo/PopularMoviesApp | /app/src/main/java/com/example/popularmoviesapp/utilities/FetchMoviesFromNetwork.java | UTF-8 | 2,737 | 2.4375 | 2 | [
"MIT"
] | permissive | package com.example.popularmoviesapp.utilities;
import android.content.Context;
import android.util.Log;
import com.example.popularmoviesapp.database.MovieDatabase;
import com.example.popularmoviesapp.models.Movie;
import org.json.JSONException;
import java.io.IOException;
import java.net.URL;
import java.util.List... | true |
f91fa086862a011a839e8a3100b48a8c538d1a33 | Java | Sam062/WebServices | /JJ_1D_Collections/src/main/java/base/Student.java | UTF-8 | 289 | 1.804688 | 2 | [] | no_license | package base;
import java.util.List;
import java.util.Set;
import lombok.Data;
@Data
public class Student {
private Integer sid;
private String sname;
private Double sfee;
private List<Integer> marks;
private Set<String> sub;
private String[] grades;
}
| true |
7a17001619edac0fc47aa759170b169a31a8c611 | Java | soulyana/Animal | /src/me/soulyana/SaberToothTiger.java | UTF-8 | 764 | 3 | 3 | [] | no_license | package me.soulyana;
public class SaberToothTiger extends Animal {
private String name;
public SaberToothTiger() {
System.out.println("A saber tooth tiger is generated at Umberalla Corp.");
}
@Override
public String getName() {
return name;
}
@Override
public void set... | true |
c74ab4708da061e0f39cca5b4933a106e7ce32a3 | Java | zhuzhu123ayzheng/ManagePlantfrom-SSH | /src/main/java/com/haifeiWu/action/PHCSMP_Personal_Check_Action.java | UTF-8 | 4,402 | 2.09375 | 2 | [] | no_license | package com.haifeiWu.action;
import java.util.ArrayList;
import java.util.List;
import org.apache.log4j.Logger;
import org.joda.time.DateTime;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
... | true |
6131e9bff14b22a081b80077fa4c873dfdd4f2c1 | Java | mihai1git/S3Bills | /src/main/java/com/amazonaws/local/mihai/s3bills/GetBillsVersions.java | UTF-8 | 3,429 | 1.890625 | 2 | [] | no_license | package com.amazonaws.local.mihai.s3bills;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
import jav... | true |
c7ffdb8d857b596c02e15bc53351bdd07c8680bc | Java | alder1/pod-Point | /src/test/java/steps/CheckOutSteps.java | UTF-8 | 1,870 | 2.21875 | 2 | [] | no_license | package steps;
import base.Base;
import base.CurrentPageContext;
import com.aventstack.extentreports.GherkinKeyword;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import org.junit.Assert;
import pages.CheckOutPage;
import utilities.ExtentReport;
public class Ch... | true |
545d81cc3a37c9a7f48bb332cac7a0058d44d488 | Java | KyungPyo/AppropriateBGM | /app/src/main/java/com/kp/appropriatebgm/favoritebgm/SelectBgmActivity.java | UTF-8 | 9,775 | 1.992188 | 2 | [] | no_license | package com.kp.appropriatebgm.favoritebgm;
import android.content.Intent;
import android.media.AudioManager;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.KeyEvent;
... | true |
eb842ebc263e2dea93fd7a2a5ace7fec78ea765f | Java | jianghan200/wxsrc6.6.7 | /app/src/main/java/com/tencent/liteav/muxer/a.java | UTF-8 | 812 | 1.609375 | 2 | [] | no_license | package com.tencent.liteav.muxer;
import android.media.MediaFormat;
public abstract interface a
{
public abstract int a();
public abstract void a(MediaFormat paramMediaFormat);
public abstract void a(String paramString);
public abstract void a(byte[] paramArrayOfByte, int paramInt1, int paramInt2, lo... | true |
cb34c9c8ec8acd4fe46bac288820c59b23a2bb6d | Java | kannankamal767/watsupupdate | /Kamal/src/facebook/BMW.java | UTF-8 | 735 | 3.171875 | 3 | [] | no_license | package facebook;
public class BMW implements Car{
@Override
public void start() {
System.out.println("Bmw--Started");
}
@Override
public void stop() {
System.out.println("Bmw--stopped");
}
@Override
public void refuel() {
System.out.println("Bmw--refueled");
}
//BMW clas... | true |
bfa1b897677edf813e65f2b9cb7410d549c0f10f | Java | 12bme/springfield | /src/test/java/com/u2ware/springfield/service/test1/ExtendsBean.java | UTF-8 | 514 | 1.820313 | 2 | [
"Apache-2.0"
] | permissive | package com.u2ware.springfield.service.test1;
import javax.persistence.Entity;
import javax.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import com.u2ware.springfield.config.Springfield;
@Springfield(topLevelMa... | true |
d270293556017c4319fe30597439554b3eda51de | Java | vyman/EsCtLaIyPhSuEi | /StayEclipse/src/main/java/com/indi/stay/service/StayService.java | UTF-8 | 281 | 2.0625 | 2 | [] | no_license | package com.indi.stay.service;
import java.util.List;
import com.indi.stay.domain.Stay;
public interface StayService {
void persist(Stay transientInstance);
List<Stay> findAllOrderedByRating();
public Stay findById(int id);
public Stay merge(Stay detachedInstance);
}
| true |
8e805a608bdd7a92a7d98d560a7c9a87f1a574b0 | Java | virtual-repository/comet-mapping-format | /comet-mapping-format/src/test/java/org/fao/fi/comet/mapping/model/test/support/mock/GenericTermMappingDataMock.java | UTF-8 | 6,265 | 1.710938 | 2 | [] | no_license | /**
* (C) 2014 by FAO / UN (project: comet-mapping-format)
*/
package org.fao.fi.comet.mapping.model.test.support.mock;
import static org.fao.fi.comet.mapping.dsl.DataProviderDSL.provider;
import static org.fao.fi.comet.mapping.dsl.MappingContributionDSL.matcher;
import static org.fao.fi.comet.mapping.dsl.Map... | true |
d8f80ba708a96c8470d946e548cd91e5fdc39dff | Java | arun-singh-bisht/BPCorrect | /app/src/main/java/com/protechgene/android/bpconnect/deviceManager/iHealthbp3l/BP3L.java | UTF-8 | 11,808 | 1.984375 | 2 | [] | no_license | package com.protechgene.android.bpconnect.deviceManager.iHealthbp3l;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import android.util.Log;
import com.ihealth.communication.control.Bp3lControl;
import com.ihealth.communication.control.BpProfile;
import com.ihealth.commun... | true |
8a39a443c4a812d6afb8367bb9e68cb5ae43b7cf | Java | hanqunfeng/spring-cloud | /oauth2-jwt/src/main/java/org/pyf/oauth2/jwt/Oauth2JwtApplication.java | UTF-8 | 756 | 1.75 | 2 | [] | no_license | package org.pyf.oauth2.jwt;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframewo... | true |
71b972942b7c9201f51eae2febf8e01b1c60be25 | Java | K3RMADEC/tsd-web | /backend/src/main/java/com/rgallego/web/controllers/UserController.java | UTF-8 | 2,064 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.rgallego.web.controllers;
import com.rgallego.web.bean.UserBean;
import com.rgallego.web.documents.UserDocument;
import com.rgallego.web.repositories.UserRepository;
import com.rgallego.web.security.JwtTokenProvider;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.spring... | true |
6b7b9fb1546a0cf6b448f050d786a26bcc0fe735 | Java | Nazukin-Dmitry/T-Systems_school | /src/main/java/com/tsystems/nazukin/logiweb/controller/trucks/TrucksEditAction.java | UTF-8 | 3,498 | 2.390625 | 2 | [] | no_license | package com.tsystems.nazukin.logiweb.controller.trucks;
import com.tsystems.nazukin.logiweb.customexceptions.TruckAllreadyUsedException;
import com.tsystems.nazukin.logiweb.model.entity.TruckEntity;
import com.tsystems.nazukin.logiweb.model.enums.TruckState;
import com.tsystems.nazukin.logiweb.service.TruckService;
im... | true |
e078a7d09a1cd04a3f1bcf02bc8d3be5ee023bec | Java | xiaoyanjing0203/java | /src/com/duotai/E15.java | UTF-8 | 483 | 3.34375 | 3 | [] | no_license | package com.duotai;
interface Animal{
void shout();
}
class Dog implements Animal{
@Override
public void shout() {
System.out.println("wangwang········");
}
}
class Cat implements Animal{
@Override
public void shout() {
System.out.println("miaomiao········");
}
}
public clas... | true |
bc6fa652fd1dba96e500e2a36d9a762dd89f8cef | Java | devxpy/daa_lab | /src/KnapsackGreedy.java | UTF-8 | 1,738 | 3.5625 | 4 | [] | no_license | public class KnapsackGreedy {
int[] items = {2, 15, 24};
int[] weights = {15, 10, 18};
int[] profits = {24, 15, 25};
int capacity = 20;
int n = items.length;
int[] ratios = new int[n];
float[] result = new float[n];
void swap(int i, int j) {
for (int[] array : new int[][]{items... | true |
3f80d26750c71537773bb4125942e04a72670f93 | Java | Lirulian/simple-shop | /src/edu/gdut/shoppingmall/business/ebi/UserEBI.java | UTF-8 | 239 | 1.859375 | 2 | [] | no_license | package edu.gdut.shoppingmall.business.ebi;
import edu.gdut.shoppingmall.vo.UserModel;
public interface UserEBI {
boolean createUser(UserModel um);
boolean updateUser(UserModel um);
UserModel findUser(String name);
}
| true |
fb9d48475d57d3600969157924c7ad6591dfec35 | Java | corejavamc/WhileLoops | /src/GuessNumber.java | UTF-8 | 1,123 | 4.5 | 4 | [] | no_license | /*
* I'm thinking about a number. Guess it. If you've ever played that game of some version
* of it then you're ready for the next assignment. The computer will "pick" a number.
* Actually, you'll program one in the code.
* Create a number-guessing game using a while loop. The loop will allow a user to guess
* unt... | true |
3d773131da2a8c6445d52861c891eb5f66bad0a9 | Java | rauftababilov/library | /be/src/main/java/com/andersen/library/services/user/impl/Role.java | UTF-8 | 403 | 2 | 2 | [] | no_license | package com.andersen.library.services.user.impl;
import com.andersen.library.security.PredefinedRole;
import lombok.Data;
import org.hibernate.annotations.Immutable;
import javax.persistence.*;
@Entity
@Table(name = "role")
@Immutable
@Data
class Role {
@Id
private Long id;
@Enumerated(EnumType.STRING)... | true |
c8a9d57e71d548c0bcf10cb9b955e1c77451f64b | Java | lorenzodegiorgi/jackson-vulnerability | /Jackson-exploits/src/main/java/Jackson/JacksonDemo/scripten.java | UTF-8 | 436 | 1.703125 | 2 | [
"MIT"
] | permissive | package Jackson.JacksonDemo;
import java.io.IOException;
import java.sql.SQLException;
import ch.qos.logback.core.db.DriverManagerConnectionSource;
public class scripten {
public scripten() throws SQLException, IOException, InterruptedException {
Runtime r = Runtime.getRuntime();
Process p = r.exec("/bin/bash... | true |
8c81fd08bd49d09a3185445fea96ffc49834096c | Java | megrumble/AutowiredM6Summative | /src/main/java/com/autowired/service/ServiceLayer.java | UTF-8 | 8,319 | 2.390625 | 2 | [] | no_license | package com.autowired.service;
import com.autowired.dao.CustomerDao;
import com.autowired.dao.InvoiceDao;
import com.autowired.dao.InvoiceItemDao;
import com.autowired.dao.ItemDao;
import com.autowired.model.Customer;
import com.autowired.model.Invoice;
import com.autowired.model.InvoiceItem;
import com.autowired.mode... | true |
3f693dd0b47ca5a517c5b92d4d5eb7fbbcff370b | Java | sronca/sic | /sidi-app-ptof/src/main/java/it/istruzione/ptof/beans/FabbisognoPostiSostegnoIIGradoItem.java | UTF-8 | 1,335 | 2.09375 | 2 | [] | no_license | package it.istruzione.ptof.beans;
public class FabbisognoPostiSostegnoIIGradoItem extends BaseDTO {
/**
*
*/
private static final long serialVersionUID = 1L;
private Integer postiSostegnoPrimoTriennio;
private Integer postiSostegnoSecondoTriennio;
private Integer postiSostegnoTerzoTriennio;
... | true |
c1afe28fda60a2a8ac3fa6595cd0385a582c05f7 | Java | GDW1/APCSA | /lab1005SentenceBuilder/SentenceRunner.java | UTF-8 | 326 | 2.46875 | 2 | [] | no_license |
/**
* Write a description of class SentenceRunner here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class SentenceRunner extends SentenceBuilder
{
public static void main(){
SentenceBuilder build = new SentenceBuilder();
System.out.println(build.getSentence());
... | true |
6218c6c0f6a824a0a2807e0dfc4d99360aef0072 | Java | kenuosec/Decompiled-Whatsapp | /com/google/bd.java | UTF-8 | 287 | 1.585938 | 2 | [] | no_license | package com.google;
import java.util.Locale;
final class bd extends aX {
bd() {
}
public void a(eE eEVar, Locale locale) {
eEVar.b(locale == null ? null : locale.toString());
}
public void a(eE eEVar, Object obj) {
a(eEVar, (Locale) obj);
}
}
| true |
4b71941201c60b1b1588fcc3f2717feabf4a8707 | Java | xiaoyanzhuo/openvx_sample | /sample/bindings/java/src/org/khronos/openvx/Scalar.java | UTF-8 | 1,872 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2012-2017 The Khronos Group Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applica... | true |
9139c2751b309ec44aeec6734242aae9de6a7d76 | Java | Learning-Ant/SPRING0914 | /jspstudy/workspace/MyHome/src/command/bbs/BBSUpdateCommand.java | UTF-8 | 1,307 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package command.bbs;
import java.io.PrintWriter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import common.PathNRedirect;
import dao.BBSDao;
import dto.BBSDto;
public class BBSUpdateCommand implements BBSCommand {
@Override
public PathNRedirect execute(HttpServlet... | true |
14918e5fb9b7288edd29d201dfde72da9d27449b | Java | jacob8730/muser | /Muser/src/main/java/com/kor/muser/service/QnaService.java | UTF-8 | 583 | 1.796875 | 2 | [] | no_license | package com.kor.muser.service;
import java.util.List;
import com.kor.muser.dto.QnA_Board;
public interface QnaService {
public int SelectCount(String Search, String Searchtext);
// QnA 게시판 리스트
public List<QnA_Board> QnaBoardList(int start, int end, String Search, String Searchtext);
// QNA 글쓰기
... | true |
43a5c55d798385d2d90a0d1a4bc7bfa4b2057154 | Java | mariakolesova/OOP | /java/src/second/ThreadDispatcher.java | UTF-8 | 1,081 | 3.125 | 3 | [] | no_license | package second;
import java.util.HashSet;
public class ThreadDispatcher {
private HashSet<Thread> currentThreads;
private ThreadMonitor monitor;
private static ThreadDispatcher instance;
public synchronized static ThreadDispatcher getInstance() {
if (instance == null)
instance... | true |
0efe4f3e26f746c2c9d455c928763b02c4efe3e9 | Java | Exia4117/Algorithms4 | /src/chapter1/chapter1_1/ex14.java | UTF-8 | 445 | 3.5 | 4 | [] | no_license | package chapter1.chapter1_1;
public class ex14 {
//编写一个静态方法lg(),接受一个整型参数N,返回不大于log2N的最大整数,不要使用Math库
public static int lg(int N) {
int n = 1, count = 0;
while (n <= N) {
n *= 2;
count++;
}
return count - 1;
}
public static void main(String[] args... | true |
255b8c31699a82080bb5e7367c0af819691c1d6d | Java | irems-internship-2020/projects | /Zetocha Bianca/Address Book JPA/src/Address/Book/Views/LabelProviderAddress.java | UTF-8 | 1,128 | 2.609375 | 3 | [] | no_license | package Address.Book.Views;
import java.util.List;
import org.eclipse.jface.viewers.TableViewerColumn;
import addressBook.tableviewer.model.Address;
import addressBook.tableviewer.model.Contact;
public class LabelProviderAddress extends LabelProvider {
public LabelProviderAddress(List<TableViewerColumn> columnList)... | true |
801ce8b1f35b0b0624f2d43046e1a1706f5af6a1 | Java | mohddanishali/corejavaproject | /JavaLogicalProject/src/com/mypack/GetDataByExternalUrl.java | UTF-8 | 1,881 | 2.71875 | 3 | [] | no_license | package com.mypack;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.util.List;
import org.apa... | true |
521249be1404d3d6b33f2dec56c6a4f28c22bbd0 | Java | lcl100/leetcode-learning | /src/第876题_链表的中间结点/解法3/Solution.java | UTF-8 | 1,636 | 4.25 | 4 | [] | no_license | package 第876题_链表的中间结点.解法3;
class ListNode {
int val;
ListNode next;
ListNode(int x) {
val = x;
}
}
public class Solution {
public ListNode middleNode(ListNode head) {
// ListNode first = head.next;// 首结点
// 特别注意:该题在leetcode中是没有头结点的,即head就是首结点,所以要改用下面这行代码
ListNode f... | true |
a1d1d1f2402040304217b784e37f29041430a2ac | Java | Leomii/design-pattern | /src/main/java/com/leomii/design/pattern/other/business/delegate/BusinessDelegate.java | UTF-8 | 480 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package com.leomii.design.pattern.other.business.delegate;
public class BusinessDelegate {
private BusinessLookUp lookupService = new BusinessLookUp();
private BusinessService businessService;
private String serviceType;
public void setServiceType(String serviceType){
this.serviceType = servic... | true |
d79aa6a4b4ddb5bc72782a5edc8ae90fd7fc343d | Java | MinimalSoft/BU_Android | /app/src/main/java/com/MinimalSoft/BUniversitaria/Utilities/EntriesValidator.java | UTF-8 | 2,295 | 2.859375 | 3 | [] | no_license | package com.MinimalSoft.BUniversitaria.Utilities;
import org.apache.commons.validator.routines.EmailValidator;
import java.text.ParseException;
import java.text.SimpleDateFormat;
public class EntriesValidator {
private final String PHONE_REGEX = "^(([(]?(\\d{2,4})[)]?)|(\\d{2,4})|([+1-9]+\\d{1,2}))?[-\\s]?(\\d{2... | true |
1fa9e7672ae789485b60629f02dd5b4716e712a2 | Java | Johanavh06/MalvaradoSoftV2 | /netbeans/MAlvaradoSoftModel/src/pe/edu/pucp/inf/MAlvaradoSoft/model/bean/Workshop.java | UTF-8 | 1,632 | 2.546875 | 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 pe.edu.pucp.inf.MAlvaradoSoft.model.bean;
/**
*
* @author alulab14
*/
public class Workshop {
private int i... | true |
e9f9a19a234aef56be1c688bfc9ad15e0829fa4d | Java | t0HiiBwn/CoolapkRelease | /sources/com/tencent/beacon/core/a/d.java | UTF-8 | 3,443 | 1.890625 | 2 | [] | no_license | package com.tencent.beacon.core.a;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import com.tencent.beacon.core.a.b;
import com.tencent.beacon.core.d.b... | true |
50ec7ca27100ea325c9b191fd4e7b45e7afe80a3 | Java | mdonkers/Jenkins-AppDynamics-Plugin | /src/main/java/nl/codecentric/jenkins/appd/util/LocalMessages.java | UTF-8 | 807 | 2.3125 | 2 | [
"MIT"
] | permissive | package nl.codecentric.jenkins.appd.util;
import java.util.ResourceBundle;
/**
* Class provides access to the Messages {@link ResourceBundle} and hides initialization of the
* properties file.
*/
public enum LocalMessages {
PROJECTACTION_DISPLAYNAME("AppDynamicsProjectAction.DisplayName"),
BUILDACTION_DISPLAY... | true |
83fdaf3d00a234790c43736c57f5143cef08299e | Java | MarcosPedraza/servidor_java | /src/java/wsDatos/WSDDatosSOAP.java | UTF-8 | 4,190 | 2.515625 | 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 wsDatos;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import com.google.gson.Gson;
impo... | true |
ab06ab89dd8f05308dcd8a35c89ae4636f90f2e2 | Java | Quintor/blockchain-performance-testing-tool | /performance-testing-tool/api/src/main/java/nl/quintor/blockchain/ptt/api/messages/SendTransactionMessage.java | UTF-8 | 896 | 2.46875 | 2 | [
"Apache-2.0"
] | permissive | package nl.quintor.blockchain.ptt.api.messages;
/**
* A Message class for communicating between actors
* <b>Sent by</b> a test runner
* <b>Received by</b> a Blockchain Provider
* <b>Used for</b> signaling the blockchain provider to send a transaction to the network
* <b>Response</b> After a transaction is confir... | true |
a58645ed6747cbc2260e9171157593c10b6d93d8 | Java | zhuo0921/LockerRobot-final | /src/test/java/com/tw/LockerTest.java | UTF-8 | 1,526 | 2.734375 | 3 | [] | no_license | package com.tw;
import com.tw.exception.InvalidTicketException;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
public class LockerTest {
@Rule
public ExpectedException expected... | true |
e06fe77e682c85d37fec66a2e6636b9006a98554 | Java | ttpai/ttpai-mybatis | /ttpai-mybatis-autoconfigure/ttpai-mybatis-autoconfigure-datasource/src/main/java/com/ttpai/framework/mybatis/autoconfigure/datasource/choose/MyBatisAutoConfigurationImporter.java | UTF-8 | 893 | 2.03125 | 2 | [] | permissive | package com.ttpai.framework.mybatis.autoconfigure.datasource.choose;
import com.ttpai.framework.mybatis.autoconfigure.common.condition.ConditionalOnBeanCount;
import org.mybatis.spring.boot.autoconfigure.MybatisAutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureAfter;
import org.springframew... | true |
1074e37a194559be950c3547a9f02d17992a2cac | Java | Vinrithi/RapidClipse-and-Vaadin | /src/com/company/myproject1/ui/domain/Bill.java | UTF-8 | 3,314 | 2.578125 | 3 | [] | no_license | package com.company.myproject1.ui.domain;
import java.util.Date;
/*
* Created by ochomoswill on 3/3/2017.
*/
public class Bill {
//"SELECT `id`, `property_id`, `unit_id`, `month`, `year`, `previous_water_reading`, `current_water_reading`, `water_bill`, `service_charge`, `date_recorded`, `biling_status... | true |
06e08472730721e513641802b970b11d6c9d3759 | Java | MassAdobe/java-serve | /gateway-test-service-spring/src/main/java/com/massadobe/means/demo/dao/DataDictMapper.java | UTF-8 | 319 | 1.5625 | 2 | [] | no_license | package com.massadobe.means.demo.dao;
import com.massadobe.means.demo.entity.DataDict;
import com.massadobe.means.demo.tk.mybatis.MyMapper;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
@Repository
@Mapper
public interface DataDictMapper extends MyMapper<DataDict> {
} | true |
3fd20228adffe2d21020720e396d40d79c9e99d1 | Java | mchekini/ss2i | /SS2I/src/main/java/com/mehdi/DAO/DeveloppeurDAOImpl.java | UTF-8 | 2,047 | 2.390625 | 2 | [] | no_license | package com.mehdi.DAO;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.Session;
import org.hibernate.Transaction;
import com.mehdi.beans.Developpeur;
import com.mehdi.beans.Societe;
import com.mehdi.ss2i.HibernateUtil;
public class DeveloppeurDAOImpl implements DeveloppeurDAO {
@Override
... | true |
d2e04dd846d4a0b63102ec938cc9de0c98264603 | Java | lump/pjl | /src/net/lump/print/jetdirect/pjl/commands/StatusMessage.java | UTF-8 | 678 | 2.703125 | 3 | [] | no_license | package net.lump.print.jetdirect.pjl.commands;
import net.lump.print.jetdirect.pjl.enums.CommandNames;
/**
* The STMSG command prompts the printer to display the specified
* message, go offline, and return a status message indicating which
* key the operator pressed to return the printer online. Use this
* comman... | true |
355c3d8a7b66cbb498233e7109a1f66dbc4ce475 | Java | jvillegasn/StudentAccount | /StudentAccount.java | UTF-8 | 4,523 | 2.984375 | 3 | [] | no_license |
import java.util.Scanner;
// methods for a single student account, after log in
public class StudentAccount implements StudentConstants {
private static Scanner sc = new Scanner(System.in);
private static StudentDAO stdDAO = StudentFactory.getStudentDAO();
public static void showAccount(Student user) {... | true |
bceb8d1ea8aa39945900d8ee50e8e6c4d03705f9 | Java | eastperson/programmers_practice | /src/BiggestSquare.java | UTF-8 | 487 | 3.25 | 3 | [] | no_license | import java.util.Arrays;
public class BiggestSquare {
public static void main(String[] args) {
Solution solution = new Solution();
int[] d = {2,2,3,3};
System.out.println(solution.solution(d,5));
}
}
class BiggestSquareSolution
{
public int solution(int [][]board)
{
in... | true |
de0d0407631ebae4e7b637ad47e96881b07052d6 | Java | liwei19911215/JdbcTest | /src/liwei/ProxyFactory.java | UTF-8 | 196 | 1.742188 | 2 | [] | no_license | package liwei;
public class ProxyFactory {
private ProxyFactory(){
}
public static ConnManagerProxy getconnManagerProxy() throws Exception{
return ConnManagerProxy.ConnManagerProxy;
}
}
| true |
97159a5fa4215f6e0a5013188db0264ab700f791 | Java | incoding/api-usage | /src/main/java/com/javaapi/test/buisness/exception/exceptionusage/catchorder/Client.java | UTF-8 | 449 | 2.5 | 2 | [] | no_license | package com.javaapi.test.buisness.exception.exceptionusage.catchorder;
import org.junit.Test;
public class Client {
@Test
public void testCatchOrder() throws Exception {
try {
throw new RuntimeException("nihao");
}
catch (RuntimeException r) {
System.out.println("catch Runtime");
System.out.println(... | true |
a4f85c79b8e89d82f91950b06099cb0d9cba8cd6 | Java | hungvu193/Premierleaguenews | /app/src/main/java/com/thelazyman193/premierleaguenews/model/detailfixture/Result.java | UTF-8 | 722 | 1.695313 | 2 | [] | no_license |
package com.thelazyman193.premierleaguenews.model.detailfixture;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Result {
@SerializedName("goalsHomeTeam")
@Expose
private Object goalsHomeTeam;
@SerializedName("goalsAwayTeam")
@Expose
... | true |
edc17f8cda623329454d9763801ec9df1c09c365 | Java | atillaozder/solitaire | /solitaire/src/solitaire/Tableau.java | UTF-8 | 779 | 3.203125 | 3 | [] | no_license | package solitaire;
import java.awt.Dimension;
import java.awt.Graphics;
public final class Tableau extends Pile {
public Tableau(Solitaire game) {
super(game);
}
public Tableau(Solitaire game, int baseCard) {
super(game, baseCard);
}
@Override
protected void insertLast(Card ... | true |
0470251ccaf25758218f7445060a8144f18e0256 | Java | geodan89/recipeapp | /src/main/java/geo/springframework/recipeapp/services/UnitOfMeasureServiceImpl.java | UTF-8 | 1,475 | 2.40625 | 2 | [] | no_license | package geo.springframework.recipeapp.services;
import geo.springframework.recipeapp.command.UnitOfMeasureCommand;
import geo.springframework.recipeapp.converters.UnitOfMeasureToUnitOfMeasureCommand;
import geo.springframework.recipeapp.domain.UnitOfMeasure;
import geo.springframework.recipeapp.repositories.UnitOfMeas... | true |
c06a302f0dee286421591233da3a5775a9eedb40 | Java | cdoloriert/SpringBootMicroserviceMyPlant | /src/main/java/com/cd/plantdiary/enterprise/service/SpecimenService.java | UTF-8 | 2,040 | 2.171875 | 2 | [] | no_license | package com.cd.plantdiary.enterprise.service;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
import org.springfr... | true |
42521af92e14ae7142a560795c5aa6c24edb1ff7 | Java | douniaHas/designPatternsJava | /src/main/java/behavioral/Interpreter/TerminalExpression.java | UTF-8 | 565 | 3.3125 | 3 | [] | no_license | package behavioral.Interpreter;
import java.util.StringTokenizer;
public class TerminalExpression implements Expression {
private final String data;
public TerminalExpression(String data) {
this.data = data;
}
@Override
public boolean interpret(String message) {
StringTokenizer ... | true |
8c839db5ae8edc6f9b81de6e623b6eb1bab7f70c | Java | napdoi1234/spring-mvc | /src/main/java/com/nguyencongvan/service/IcategoryService.java | UTF-8 | 294 | 1.71875 | 2 | [] | no_license | package com.nguyencongvan.service;
import org.springframework.data.domain.Pageable;
import com.nguyencongvan.dto.CategoryDTO;
import com.nguyencongvan.entity.CategoryEntity;
public interface IcategoryService {
CategoryDTO findAll(Pageable pageable);
CategoryEntity findById(Long id);
}
| true |
9c21077bfe513c40b70580e39c9ca84f6c6aab46 | Java | sofianeouni/SimulationZigbeeAutoOrgFireDetection1 | /SimulatorZigbeeForestFireDetection/src/TheTime.java | UTF-8 | 1,093 | 3.140625 | 3 | [] | no_license | import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.Shape;
import java.awt.geom.Ellipse2D;
public class TheTime {
double t;
int Days;
int Hours;
int Minutes;
int Seconds;
TheTime(){
}
TheTime (double t){
Time_co... | true |
7a82cc420c41d061cbd155a9e7c7a33653f1a23a | Java | M-yanagitani/blog_system | /src/models/Follow.java | UTF-8 | 1,898 | 2.296875 | 2 | [] | no_license | package models;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQueries;
import javax.p... | true |
6d8f34335ca4f571f8a7ef1cfe4536a7ad29025b | Java | sunyymq/sarrs | /app/src/main/java/com/chaojishipin/sarrs/thirdparty/DataDecrypt.java | UTF-8 | 1,564 | 2.5 | 2 | [] | no_license | package com.chaojishipin.sarrs.thirdparty;
import javax.crypto.Cipher;
import javax.crypto.spec.SecretKeySpec;
import android.text.TextUtils;
import android.util.Base64;
public class DataDecrypt {
public static String decrypt(String ciphertext) {
if (TextUtils.isEmpty(ciphertext)) {
return... | true |
0ce04986898331ec995514770aab816cd69fe669 | Java | hboyina-nisum-com/nisum-recruitment-portal | /src/test/functional/com/nisum/employee/ref/admin/AdminSkillsetTest.java | UTF-8 | 2,504 | 1.96875 | 2 | [] | no_license | package com.nisum.employee.ref.admin;
import org.junit.Assert;
import org.junit.Test;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import com.nisum.employee.ref.login.LoginPageTest;
public class AdminSkil... | true |
31228a7c2ecb8c25d81b330a61f05b43a9bdf1ca | Java | wenchaoweng/GradleDemo | /app/src/main/java/com/example/wwc/gradledemo/di/ActivityBindingModule.java | UTF-8 | 487 | 1.867188 | 2 | [] | no_license | package com.example.wwc.gradledemo.di;
import com.example.wwc.gradledemo.ui.activity.LoginActivity;
import com.example.wwc.gradledemo.ui.activity.SplashActivity;
import dagger.Module;
import dagger.android.ContributesAndroidInjector;
@Module
public abstract class ActivityBindingModule {
@ActivityScoped
@Contr... | true |
d291801edca978913f4dc1d8f73717a53b7f263e | Java | Guillaume961/Spellmonger | /src/main/java/edu/insightr/spellmonger/model/cards/SkinStrengthening.java | UTF-8 | 1,702 | 3.0625 | 3 | [
"MIT"
] | permissive | package edu.insightr.spellmonger.model.cards;
import edu.insightr.spellmonger.model.Player;
import javafx.scene.image.Image;
public class SkinStrengthening extends Rituol {
private String effectDescription = "Skin Strengthening - Gives +1 HP to all your creatures on board";
private boolean bonus;
publi... | true |
5864dc5e42f647e856c0b6d4776a118c1bcea299 | Java | SamJ16/UWork_Backend | /src/Member/Display.java | UTF-8 | 437 | 2.40625 | 2 | [] | no_license | package Member;
import javax.swing.*;
public class Display {
public static void main(String[] args) {
JFrame frame = new JFrame("UWork");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(900,900);
JButton button1 = new JButton("Navigation Bar");
JButton button2 = new JButton("Announceme... | true |
4d893a2d184d2f938f84d4c30e77e257c1f90c26 | Java | MarioEcheve/lo-digital-backend-prod-gcp | /src/test/java/com/lodigital/domain/UsuarioLibroPerfilTest.java | UTF-8 | 888 | 2.203125 | 2 | [] | no_license | package com.lodigital.domain;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
import com.lodigital.web.rest.TestUtil;
public class UsuarioLibroPerfilTest {
@Test
public void equalsVerifier() throws Exception {
TestUtil.equalsVerifier(UsuarioLibroPerfil.cla... | true |
2875fa007ac5bd0ce25e674f02bbcbf938f266f1 | Java | MuratDonmez841/issue-management | /deneme/src/main/java/com/cakestudios/deneme/dto/UserDto.java | UTF-8 | 340 | 1.976563 | 2 | [] | no_license | package com.cakestudios.deneme.dto;
import com.cakestudios.deneme.entity.IssureStatus;
import java.util.Date;
public class UserDto {
private Long id;
private String nameSurname;
public UserDto() {
}
public UserDto(Long id, String nameSurname) {
this.id = id;
this.nameSurname = n... | true |
347dcab0673b58d38cbd7157c4a291abf34d1243 | Java | mageshmage/JhipsterJWT | /src/test/java/io/github/jhipster/application/web/rest/UVBrandResourceIntTest.java | UTF-8 | 10,897 | 2.078125 | 2 | [] | no_license | package io.github.jhipster.application.web.rest;
import io.github.jhipster.application.JhipsterJwtApp;
import io.github.jhipster.application.domain.UVBrand;
import io.github.jhipster.application.repository.UVBrandRepository;
import io.github.jhipster.application.service.dto.UVBrandDTO;
import io.github.jhipster.appli... | true |
438dc9581d3020fdcebb54441c7572ac61dd2384 | Java | KowsalyaAarohi10/Cucumber | /Poly/src/org/met/Detectloop.java | UTF-8 | 727 | 3.046875 | 3 | [] | no_license | package org.met;
public class Detectloop {
public static void main(String[] args) {
private static Node head;
private static class Node{
private int value;
private Node next;
Node(int value){
this.value=value;
}
public void addtoList(Node node) {
if(head==nul... | true |
2039b7304469cc17269e66bec44a8ad9e36798aa | Java | DangeloID/android_labs_rw | /Multithreading/src/com/example/multithreading/MainActivity.java | UTF-8 | 3,560 | 2.4375 | 2 | [] | no_license | package com.example.multithreading;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.Button;
import android.widget.ListView;
import android.app.Activity;
public class MainActivity extends Activity {
private static class AsyncA... | true |
0b63a2dbea775838d56cc6bdc52ebdec05bff807 | Java | tim08/clientsCrm | /src/main/java/com/example/demo/MainController.java | UTF-8 | 2,475 | 2.21875 | 2 | [] | no_license | package com.example.demo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import org.spri... | true |
5f8a07cf1e44782ac3898bb501f9fc2747e6a037 | Java | branthragan/vending-machine | /src/main/java/com/branthragan/vending_machine/state/HasFundsStateImpl.java | UTF-8 | 2,058 | 2.828125 | 3 | [] | no_license | package com.branthragan.vending_machine.state;
import com.branthragan.vending_machine.inventory.InventoryItem;
import com.branthragan.vending_machine.log.TransactionLog;
import com.branthragan.vending_machine.machine.VendingMachine;
public class HasFundsStateImpl implements VendingState {
private static final St... | true |
c732067bb50788302f7cad95615d7215c4e079fb | Java | tsuzcx/qq_apk | /com.tencent.mm/classes.jar/com/tencent/mm/protocal/protobuf/dkb.java | UTF-8 | 2,862 | 1.671875 | 2 | [] | no_license | package com.tencent.mm.protocal.protobuf;
import com.tencent.matrix.trace.core.AppMethodBeat;
public final class dkb
extends com.tencent.mm.bx.a
{
public int aaPU;
public String devicename;
public String devicetype;
public String uuid;
public final int op(int paramInt, Object... paramVarArg... | true |
5a6e77a232b82f54673c01e223f7241c5215b8fc | Java | lxr1827991/spring-boot-api | /src/main/java/com/vesus/springbootoauth2/repository/SysUserRepository.java | UTF-8 | 303 | 2.09375 | 2 | [] | no_license | package com.vesus.springbootoauth2.repository;
import com.vesus.springbootoauth2.model.SysUser;
import org.springframework.stereotype.Repository;
@Repository
public class SysUserRepository {
public SysUser getUserByName( String name) {
System.out.println(name);
return null;
}
}
| true |
23d2c6e971c58ad35af9e02338ddf35e75c1344b | Java | evalchev98/HyperQuiz | /src/main/java/HyperQuiz/service/QuestionService.java | UTF-8 | 339 | 1.859375 | 2 | [] | no_license | package HyperQuiz.service;
import java.util.List;
import HyperQuiz.entities.Question;
import HyperQuiz.models.binding.QuestionDTO;
public interface QuestionService {
Question createQuestion(QuestionDTO questionDTO);
List<Question> findAllQuestions();
void deleteQuestion(String id);
Question findQuestionB... | true |
73db8fde6c3d16b99a273b200ac7708792840254 | Java | moutainhigh/server-5 | /erp_wms/scm-dao/src/main/java/com/need/dao/api/ops/OpsTopicDAO.java | UTF-8 | 340 | 1.851563 | 2 | [] | no_license | package com.need.dao.api.ops;
import com.need.domain.po.api.ops.OpsTopicPO;
import com.need.domain.po.bops.ops.BopsOpsTopic;
public interface OpsTopicDAO {
void insertTopic(BopsOpsTopic topic);
void deleteApiTopic(String topicId);
void updateByPrimaryKeySelective(BopsOpsTopic bopsOpsTopic);
OpsTopicPO getByI... | true |
9691c399e68ceed0082be57616fd9083a3646520 | Java | JackenLiu/AndroidRepositories | /UiHigherDemo/src/main/java/com/uihigherdemo/xfermode/XferModeTestActivity.java | UTF-8 | 1,314 | 2.046875 | 2 | [] | no_license | package com.uihigherdemo.xfermode;
import androidx.annotation.RequiresApi;
import androidx.appcompat.app.AppCompatActivity;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Build;
import android.os.Bundle;
import android.os.SystemClock;
import android.util.Log;
import com.uihi... | true |
83f25fbc85a4eeb85ea1900881e6a20ba1870d9f | Java | xuelianhan/basic-algos | /src/main/java/cn/edu/pku/pattern/parser/ParserFactory.java | UTF-8 | 303 | 2.5 | 2 | [] | no_license | package cn.edu.pku.pattern.parser;
public class ParserFactory {
public static Parser getParser() {
return new MyParser();
}
public static void main(String[] args) {
String userInput = "a";
ParserFactory.getParser().findAction(userInput).doSomething();
}
}
| true |
5bbc844a2ce26ff997f3885fc76537b5879c85ae | Java | cftber/JavaPractices | /Practices/core/src/main/java/com/tgzhao/core/test/LoggerTest.java | UTF-8 | 443 | 2.15625 | 2 | [] | no_license | package com.tgzhao.core.test;
import org.apache.log4j.Logger;
/**
* Created by tgzhao on 2016/5/8.
* log4j demo
*/
public class LoggerTest {
static final Logger logger = Logger.getLogger(LoggerTest.class);
public static void main(String[] args) {
logger.info("info message");
logger.trace("t... | true |
beefd93e6c7d243eb1fb500564e6e354b7ea81c2 | Java | visualkhh/book-visualkhh | /it/xml/xml소설같은xml/novelxml_src/17_SAAJ_Client_Programming/SAAJClient/src/SAAJClient.java | UHC | 2,013 | 2.9375 | 3 | [] | no_license | /**
SAAJ ̿ؼ SOAP ۼϰ ̿ϴ Ŭ̾Ʈ
**/
import javax.xml.soap.*;
public class SAAJClient {
public static void main(String args[]) throws Exception {
String xsdNamespaceURI = "http://www.w3.org/2001/XMLSchema";
String xsiNamespaceURI = "http://www.w3.org/2001/XMLSchema-instance";
String encNamespaceURI = "http:/... | true |
fd87c12a1d09f0b42b718c17b7205ab92179ba08 | Java | hzr958/myProjects | /scmv6/web-v8pub/src/main/java/com/smate/web/v8pub/service/sns/homepage/RepresentPubServiceImpl.java | UTF-8 | 7,227 | 1.789063 | 2 | [] | no_license | package com.smate.web.v8pub.service.sns.homepage;
import java.io.IOException;
import java.lang.reflect.InvocationTargetException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.lang3.S... | true |
a6f0d46b92ca0de81709c96124718e2433d47785 | Java | jay-nanduri/teamcity-matrix-build-plugin | /teamcity-rest-client/src/main/java/com/presidentio/teamcity/rest/dto/File.java | UTF-8 | 5,719 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive |
package com.presidentio.teamcity.rest.dto;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for file complex type.
*
* <p>The following schema fragment sp... | true |
147e9609261e6f053383e88eea6b1e8796932bac | Java | GeeksRoad/threadpool4j | /src/cn/aofeng/threadpool4j/job/AbstractJob.java | UTF-8 | 1,559 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | package cn.aofeng.threadpool4j.job;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.concurrent.atomic.AtomicBoolean;
import cn.aofeng.common4j.ILifeCycle;
/**
* 抽象job类。
*
* @author <a href="mailto:aofengblog@163.com">聂勇</a>
*/
pu... | true |
dd22c1887d7f4d4a284a16cb8c04a0d3c98f6304 | Java | wgf666/shop | /shop-web/cart-web/src/main/java/cart/web/controller/ShopCartController.java | UTF-8 | 5,115 | 2.203125 | 2 | [] | no_license | package cart.web.controller;
import cart.web.serivce.IShopCartService;
import constant.CookieConstant;
import dto.ResultBean;
import entity.TUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframe... | true |
fc31532b12c983166557b1522f7760a8e5397ca7 | Java | paumoreno26/PruebaNuvu | /src/main/java/com/pruebanuvu/service/ClientesImpl.java | UTF-8 | 2,812 | 2.390625 | 2 | [] | no_license | package com.pruebanuvu.service;
import java.io.BufferedWriter;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;
import org.springframework.stereotype.Se... | true |
6d31af12a7b6ac92a4b194ceb347f0c058882baa | Java | chenchenccc/tour | /TourManager/src/com/tour/service/impl/TmCustomerGroupServiceImpl.java | UTF-8 | 3,298 | 2.1875 | 2 | [] | no_license | package com.tour.service.impl;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import com.tour.dao.ifc.TmCustomerGroupDAO;
import com.tour.model.TmCustomerGroup;
import com.tour.model.TmCustomerGroupExample;
import com.tour.model.TmCustomerGroupExample.Criteria;
import com.tour.service... | true |
09c8652e055e7ea931063b2cd0e7bb6c2b021e46 | Java | zhugeqing/PhoneInfo | /app/src/main/java/com/example/administrator/phoneinfo/MRGridLayer.java | UTF-8 | 9,880 | 2 | 2 | [] | no_license | package com.example.administrator.phoneinfo;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.util.ArrayList;
import java.util.List;
/**
* Created by Administrator on 2017/3/7.
*/
public class MRGridLayer {
public List<MRGrid> mrGridCol... | true |
7290f24a9131eb57a075c7dd0623e05459d32c36 | Java | zcc888/Java9Source | /java.base/jdk/internal/misc/JavaLangRefAccess.java | UTF-8 | 667 | 1.953125 | 2 | [] | no_license | /*
* Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package jdk.internal.misc;
public interface JavaLangRefAccess {
/**
* Wait for progress in {... | true |
a86156c12807e099de2dd2881bddc61130527de8 | Java | oyjy2018/lz-scf | /scfcloud-system/src/main/java/com/zhjs/scfcloud/system/service/impl/CommentServiceImpl.java | UTF-8 | 1,161 | 1.875 | 2 | [] | no_license | package com.zhjs.scfcloud.system.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zhjs.scfcloud.model.entity.Comment;
import com.zhjs.scfcloud.model.mapper.CommentMapper;
import com.zhjs.scfcloud.model.vo.CommentVO;
import com.zhjs.scfcloud.system.service.CommentService;
imp... | true |
6c91a2aac12a44440b03b0f4e367066784f61d36 | Java | parroyoc/quiz4kids | /back/src/main/java/com/q4k/factories/ArithmeticQuestionFactory.java | UTF-8 | 912 | 2.890625 | 3 | [] | no_license | package com.q4k.factories;
import com.q4k.Question;
public class ArithmeticQuestionFactory implements IQuestionFactory {
@Override
public Question generateQuestion(int level) {
StringBuilder html = new StringBuilder("<div class='arithmetic'>");
html.append("<p class='number'>15</p>")
.append("<p c... | true |
bffdc6a14bdfdb0b8c1bc11eed1d637dfd124b8b | Java | theMesmerist/paprikapp | /paprikapp_son/app/src/main/java/com/example/paprikapp_new/employee_menu.java | UTF-8 | 7,666 | 1.984375 | 2 | [] | no_license | package com.example.paprikapp_new;
import androidx.appcompat.app.AppCompatActivity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageButton;
import android... | true |