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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
980d818fbd2c1b8b8e3a7e44e54a410217d193e5 | Java | aq846908158/eh | /src/main/Java/cn/lcvc/service/ProductService.java | UTF-8 | 11,885 | 2.359375 | 2 | [] | no_license | package cn.lcvc.service;
import cn.lcvc.POJO.Product;
import cn.lcvc.POJO.ProductImg;
import cn.lcvc.POJO.User;
import cn.lcvc.dao.ProductDao;
import cn.lcvc.dao.ProductImgDao;
import cn.lcvc.dao.UserDao;
import cn.lcvc.uitl.JsonResult;
import javafx.scene.chart.PieChart;
import org.springframework.beans.factory.annot... | true |
8db953eca8b2400f57f25692f1237d4f9dfb781a | Java | berten/scimitar | /core/listeners/src/test/java/be/deschutter/scimitar/planetarion/PrefListenerTest.java | UTF-8 | 4,943 | 2.234375 | 2 | [] | no_license | package be.deschutter.scimitar.planetarion;
import be.deschutter.scimitar.security.SecurityHelper;
import be.deschutter.scimitar.user.ScimitarUser;
import be.deschutter.scimitar.planet.Planet;
import be.deschutter.scimitar.planet.PlanetEao;
import be.deschutter.scimitar.user.PrefListener;
import be.deschutter.scimitar... | true |
9740fb6c3408cadad74f13aeb8a9089a6a707178 | Java | dekorateio/dekorate-cli | /src/main/java/io/dekorate/cli/KnativeCmd.java | UTF-8 | 554 | 2 | 2 | [] | no_license | package io.dekorate.cli;
import picocli.CommandLine.Command;
import picocli.CommandLine.Mixin;
@Command(name = "knative", mixinStandardHelpOptions = true, version = "0.1", description = "Generates Knative manifests.")
public class KnativeCmd implements BaseCommand {
@Mixin
MetaOptions meta;
@Mixin
PodOption... | true |
5499628caa630a964c2ac37362cd46edbbe4387d | Java | lassetraberg/4sem | /backend/CommonVehicle/src/main/java/grp4/commonvehicle/domain/repository/IVehicleRepository.java | UTF-8 | 871 | 2.21875 | 2 | [] | no_license | package grp4.commonvehicle.domain.repository;
import grp4.commonvehicle.domain.model.Device;
import grp4.commonvehicle.domain.model.vehicledata.Vehicle;
import java.time.Instant;
import java.util.List;
public interface IVehicleRepository {
boolean addData(String deviceId, short speed, double acceleration, short ... | true |
85c9de3bfd6fdcbc8b637a9d3bccf5459198f44b | Java | samistart/AudioRecordingApp | /AuJava/src/sound/Recorder.java | UTF-8 | 3,781 | 2.859375 | 3 | [] | no_license |
package sound;
import java.io.File;
import java.io.IOException;
import javax.sound.sampled.AudioFileFormat;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.AudioSystem;
import javax.sound.sampled.DataLine;
import javax.sound.sampled.TargetDataLine;
impo... | true |
19d648bec24d023e2949bbc512e5a4e7951366c1 | Java | Jackjet/springboot-chat | /springboot-chat/src/main/java/com/bo/vo/GroupVo.java | UTF-8 | 308 | 1.59375 | 2 | [] | no_license | package com.bo.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor
public class GroupVo {
private Long id;
private Long ownerUid;
private String groupname;
private String avatar;
private String sign;
}
| true |
93c7e47bc264ee12a473203fd0a5b1f5b1e2e32c | Java | RenatoEone/SAPCloudOpportunityManagement | /sap-cloud-opportunity-management/src/org/persistence/CustomerOpportunity.java | UTF-8 | 1,175 | 2.265625 | 2 | [] | no_license | package org.persistence;
import java.io.Serializable;
import javax.persistence.*;
@Entity
@NamedQuery(name = "AllCustomerOpportunities", query = "SELECT co FROM CustomerOpportunity co")
public class CustomerOpportunity implements Serializable {
private static final long serialVersionUID = 1L;
public CustomerOppor... | true |
33b9af7981afa0fcbb9321e21705579691b05d59 | Java | HarryPi/JSF-PaymentSystem | /src/main/java/NavigationConstants/Navigation.java | UTF-8 | 2,453 | 2.25 | 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 NavigationConstants;
import javax.enterprise.context.ApplicationScoped;
import javax.inject.Named;
import javax.inject.Singlet... | true |
623222bea1995e730e7e91ea49635a4fae18497b | Java | mssm199996/CoffeeFactoryAdministrator | /src/MainPackage/PanneauImpressionHistorique.java | UTF-8 | 10,585 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package MainPackage;
import java.awt.Color;
import java.awt.Font;
import javax.swing.BorderFactory;
import javax.swing.JTable;
import javax.swing.border.TitledBorder;
import javax.swing.table.DefaultTableModel;
/**
*
... | true |
b3d3010c625fa4b1a3669998db11a897eca60a2e | Java | SoftHoardersOG/UlltimateGoalNational | /TeamCode/src/main/java/org/firstinspires/ftc/teamcode/Autonomous/MainAutos/Quantum/ExteriorLine/QuantumExteriorBLUE.java | UTF-8 | 1,612 | 1.914063 | 2 | [
"BSD-3-Clause"
] | permissive | package org.firstinspires.ftc.teamcode.Autonomous.MainAutos.Quantum.ExteriorLine;
import com.qualcomm.robotcore.eventloop.opmode.Autonomous;
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode;
import org.firstinspires.ftc.teamcode.Autonomous.AutoCase;
import org.firstinspires.ftc.teamcode.Autonomous.AutoScen... | true |
b89c35f4a6a06fb57f582e5759a11a501a573091 | Java | rafiuzzamanSifat/MavenAutomationSeleniumReport | /mavenAutomationSelenium/src/test/java/com/Excel/RealDataExcel.java | UTF-8 | 3,012 | 2.328125 | 2 | [] | no_license | package com.Excel;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import org.apache.poi.EncryptedDocumentException;
import org.apache.poi.ss.usermodel.Cell;
import org.apache.poi.ss.usermodel.DataFormatter;
import org.apache.poi.ss.usermodel.Row;
import org.apac... | true |
09c9d3cc3d6587c2a5b2f455ab9723047cf080bc | Java | GreenBudgie/MoveOrDieMC | /src/ru/mutator/MutatorManager.java | UTF-8 | 1,532 | 2.265625 | 2 | [] | no_license | package ru.mutator;
import org.bukkit.event.HandlerList;
import org.bukkit.event.Listener;
import java.util.ArrayList;
import java.util.List;
public class MutatorManager implements Listener {
public static Mutator FORCED_MUTATOR = null;
public static boolean FORCE_DISABLE = false;
public static boolean FORCE_SEL... | true |
eb403329002a2752accf98ac855c2ed84d0cce8a | Java | ammar-alee/TabLayout | /TabLayout/app/src/main/java/com/googletabs/rohksin/tablayout/Fragments/Impl/ImageFragment.java | UTF-8 | 1,085 | 2.28125 | 2 | [] | no_license | package com.googletabs.rohksin.tablayout.Fragments.Impl;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import com.googletabs.rohksin.tablayout.Fragments.BasicFragment;
import... | true |
79031e41a0709e236915db0ffa97f6d02900f078 | Java | pkuchc/DesignPattern | /src/CreationalPattern/Builder/Test.java | UTF-8 | 613 | 3 | 3 | [] | no_license | package CreationalPattern.Builder;
//客户端测试
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
//奥迪A6 低配、中配、高配三种车的具体制造者
IBuilder lowCar=new LowEndBuilder();
IBuilder middleCar=new MiddleEndBuilder();
IBuilder HighCar=new HighEndBuilder();
... | true |
2e53035740b35b3ad702df455a07167ef278ef84 | Java | sgholamian/log-aware-clone-detection | /LACCPlus/Camel/1690_1.java | UTF-8 | 1,491 | 2.109375 | 2 | [
"MIT"
] | permissive | //,temp,SameRouteAndContextScopedErrorHandlerIssueTest.java,47,76,temp,RedeliveryErrorHandlerBlockedDelayTest.java,53,74
//,3
public class xxx {
@Override
protected RouteBuilder createRouteBuilder() throws Exception {
return new RouteBuilder() {
@Override
public void configure() ... | true |
22d19040be1e09e81b3cb0eb6cfb691326625677 | Java | xcode126/MyAndroidDemo | /02ProjectFrame/src/main/java/com/xcode126/frame01/FragmentTab03.java | UTF-8 | 326 | 1.984375 | 2 | [] | no_license | package com.xcode126.frame01;
import android.view.View;
/**
* Created by xcode126 on 2016/12/7.
* 第3个Tab的界面
*/
public class FragmentTab03 extends BaseFragment{
@Override
protected View initView() {
View view = View.inflate(mContext, R.layout.fragment_tab03, null);
return view;
}
}
| true |
abf8b3603f332baead5d1cc8ea3124de5f85a1c9 | Java | Glebaster6/rabbits | /Agregator/src/main/java/ae/agregator/messgaing/Queues.java | UTF-8 | 1,287 | 2.109375 | 2 | [] | no_license | package ae.agregator.messgaing;
import org.springframework.amqp.core.Queue;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class Queues {
@Bean
public Queue agregatorToUpdaterQueue(){
return new Queue("agregatorTo... | true |
e2248203f64c5c1a5f8a469e7e9a8edc6931a2bb | Java | ShawMY/WaterAndElectSystem | /java/com/zjgsu/shuidiansys/dao/IUserInfoDao.java | UTF-8 | 947 | 1.804688 | 2 | [] | no_license | package com.zjgsu.shuidiansys.dao;
import com.zjgsu.shuidiansys.pojo.RESTful.DeleteUserInfoReq;
import com.zjgsu.shuidiansys.pojo.RESTful.Id;
import com.zjgsu.shuidiansys.pojo.UserCategory;
import com.zjgsu.shuidiansys.pojo.UserInfo;
import org.apache.ibatis.annotations.Param;
import java.util.List;
import java.util.... | true |
72816573416ca834e92c8683863eb394f6e64eb2 | Java | ortoni/work | /src/main/java/challengeDemo/LearnAlert.java | UTF-8 | 1,320 | 2.375 | 2 | [] | no_license | package challengeDemo;
import java.awt.AWTException;
import java.awt.HeadlessException;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.Toolkit;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import java.util.concurrent.TimeUnit;
import javax.imagei... | true |
df7f925cff0bba2cd6026eb68042e71b699481d7 | Java | raghunaikbadde/FieldViewer | /JobViewer/src/com/jobviewer/provider/JobViewerHelper.java | UTF-8 | 1,363 | 1.992188 | 2 | [] | no_license | package com.jobviewer.provider;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
public class JobViewerHelper extends SQLiteOpenHelper {
public JobViewerHelper(Context context) {
super(context, JobViewerSchema.DATABASE_NAME, null,
... | true |
3405cc0db15ba42a8792ec22205f26f736bcad90 | Java | athidevwork/aiblockchain-websocket | /src/test/java/load/client/LoadTransactionsClient.java | UTF-8 | 6,626 | 2.328125 | 2 | [] | no_license | package load.client;
import java.io.File;
import java.util.Random;
import java.util.logging.Logger;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
/**
*
* @autho... | true |
0e6c4e4fd19208474c9ae8e8c798418fd5a775e7 | Java | kareemullah/DroidGame | /Sample/src/com/sample/SampleActivity.java | UTF-8 | 1,509 | 2.046875 | 2 | [] | no_license | package com.sample;
import android.app.Activity;
import android.graphics.Bitmap;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageButton;
import andro... | true |
75513b5ac369fd83c8eadc1d1e84413018fb0b2d | Java | nickypanda90/NGTHomeServices | /src/main/java/com/txstate/edu/homeServices/repository/ServicePaymentRepository.java | UTF-8 | 338 | 1.734375 | 2 | [] | no_license | package com.txstate.edu.homeServices.repository;
import com.txstate.edu.homeServices.model.ServicePaymentEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface ServicePaymentRepository extends JpaRepository<ServicePaymentEnt... | true |
f567a117c38c8b8aeef34e27f93314afdca6f8f7 | Java | TergBug/hw9 | /src/main/java/org/mycode/behavioral/observer/Demo.java | UTF-8 | 365 | 2.75 | 3 | [] | no_license | package org.mycode.behavioral.observer;
public class Demo {
public static void main(String[] args) {
Sun sun = new Sun(true);
Flower chamomile = new Flower("Chamomile", sun);
Flower rose = new Flower("Rose", sun);
Flower orchid = new Flower("Orchid", sun);
sun.setLighting(fa... | true |
4b9a623e1df33412cfa4dbd7b5eb3c1b2d392123 | Java | ThreeButterfly/tensquare_parent | /tensquare_web/src/main/java/com/xuan/web/filter/WebFilter.java | UTF-8 | 1,241 | 2.28125 | 2 | [] | no_license | package com.xuan.web.filter;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
import com.netflix.zuul.exception.ZuulException;
import javax.servlet.http.HttpServletRequest;
/**
* <p>Description: 描述 </p>
*
* @Created with IDEA
* @author: Yi-Xuan
* @Date: 2018/11/28 0028
* @Tim... | true |
066a64f5ee14886d2ff73c34d403217fc16a1033 | Java | NetworkSecurityFinal/EnclaveSimulator | /src/isv/attestation/RemoteAttestation.java | UTF-8 | 3,105 | 2.8125 | 3 | [] | no_license | package isv.attestation;
import isv.enclave.EnclaveManagement;
import java.net.Socket;
import java.security.KeyPair;
import java.security.KeyPairGenerator;
import java.security.PublicKey;
import java.security.SecureRandom;
import java.io.*;
/**
* Connects to ISV Server which will handle remote attestation of enclav... | true |
eba4155b992f9fd9d9531fcccf1e7f16ac20292e | Java | wangsf66/ibs-parent-code | /src/main/java/com/ibs/components/response/ErrorResponseData.java | UTF-8 | 685 | 2.375 | 2 | [] | no_license | package com.ibs.components.response;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import com.douglei.api.doc.annotation.ApiEntity;
import com.douglei.tools.ExceptionUtil;
/**
* 错误响应体, 当程序抛出异常且被捕获时, 会返回此响应体
* @author DougLei
*/
@ApiEntity
class ErrorResponseData extends ResponseData{
private static fi... | true |
447ea3444f046b802acc75702436285772a0174e | Java | monitorjbl/brbbio | /src/main/java/com/thundermoose/bio/model/NormalizedRow.java | UTF-8 | 1,115 | 2.515625 | 3 | [] | no_license | package com.thundermoose.bio.model;
import java.util.Comparator;
import java.util.HashMap;
import java.util.Map;
import java.util.TreeMap;
/**
* Created by tayjones on 3/16/14.
*/
public class NormalizedRow {
private String plateName;
private String geneId;
private String geneSymbol;
private Map<Double, Fl... | true |
4d1e5bc8f8a3b1e85225c6bb5feee4b8eb44448a | Java | roshansaini/Gizzlly-store | /grizzly-store-admin-webb/src/com/roshan/AllProduct.java | UTF-8 | 2,987 | 2.59375 | 3 | [] | no_license | package com.roshan;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import javax.servlet.RequestDispatcher;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpSe... | true |
62dc0842ba2e4b8da1a4d8532d0e9d9442b5f0bb | Java | MashaLeva/level_up | /jpsolid/src/interfaces/HasKitchen.java | UTF-8 | 84 | 2.203125 | 2 | [] | no_license | package interfaces;
public interface HasKitchen {
int getKitchenDimension();
}
| true |
59d7eaf584e8cbbda2e759b7845f78aeb142efe8 | Java | ssemiya/seomse-stock | /modules/data/src/main/java/com/seomse/stock/data/sync/CenterDatabaseSync.java | UTF-8 | 9,407 | 1.945313 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2020 Seomse 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 applicable law or agreed to ... | true |
538964718fa5a771a03114966b16d2ca1098ca23 | Java | yhailu/AutomatedSInterface | /SettleRunner.java | UTF-8 | 6,054 | 1.929688 | 2 | [] | no_license | package automatedsettle;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.util.HashMap;
import java.util.Map;
public class SettleRunner {
public static String level_1_txn = "{\"merchid\":\"831831012001\",\"amount\":\"1000\",\"account\":\"344512208673714\",\"name\":\"cm\"... | true |
0ddb7572b43bda63b43666c3835fe811d3ed0918 | Java | liwenlongGit/education | /education-dao/src/main/java/com/glory/educationdao/EducationDaoApplication.java | UTF-8 | 339 | 1.578125 | 2 | [] | no_license | package com.glory.educationdao;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class EducationDaoApplication {
public static void main(String[] args) {
SpringApplication.run(EducationDaoApplication.clas... | true |
484b3113774c5d97158c8531898f0e917106da9d | Java | sethcarter2222/JavaLabs | /src/Essay.java | UTF-8 | 589 | 2.703125 | 3 | [] | no_license |
public class Essay extends GradedActivity {
private double totalGrade;
private double grammarScore;
private double spellingScore;
private double lengthScore;
private double contentScore;
public Essay(double g, double s, double l, double c) {
this.contentScore = c;
this.grammarScore = g;
this.le... | true |
7b830267973dd0cd6ba4a9fb6fc033a77cf27dc5 | Java | detectiveframework/detective | /core/src/main/java/detective/core/distribute/scenario/ScenarioRunnerFilter.java | UTF-8 | 2,249 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | package detective.core.distribute.scenario;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import detective.core.Parameters;
import detective.core.Scenario;
import detective.core.Story;
import detective.core.StoryRunner;
import detective.core.distribute.JobRunResult;
import detective.core.distribute.JobToR... | true |
9f4eca0051cc1b8ec94d12c6f848df655b356b31 | Java | wmelani/programming-problems-and-algorithms | /src/test/java/problems/trees/LargestSmallerNodeTests.java | UTF-8 | 1,838 | 2.875 | 3 | [
"MIT"
] | permissive | package problems.trees;
import org.junit.Test;
import trees.BinaryTreeNode;
import static org.junit.Assert.assertEquals;
public class LargestSmallerNodeTests {
//
// 20
// 9 25
// 5 12
// 11 14
//
@Test
public void test... | true |
7f1c43eb943887afdbf2e1be3a418579572d7b9f | Java | 0359xiaodong/FlyRunner | /src/com/colobu/flyrunner/weibo/TestActivity.java | UTF-8 | 4,919 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2011 Sina.
*
* Licensed under the Apache License and Weibo 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.open.weibo.com
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unle... | true |
20ff25df60a8a29d50b2133a9a8f69d566a780c8 | Java | aws/aws-sdk-java | /aws-java-sdk-networkfirewall/src/main/java/com/amazonaws/services/networkfirewall/model/EncryptionConfiguration.java | UTF-8 | 10,252 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "licen... | true |
37f06a58441694d0d227bfc8804aeeab2e85d7f2 | Java | gageoneill/Europa | /gamefiles/UpgradeIcon.java | UTF-8 | 5,561 | 3.109375 | 3 | [] | no_license | import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
import java.awt.Color;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.BasicStroke;
import java.util.Set;
/**
* This is a button that, when clicked, opens the upgrade menu.
*
* @author Mateus Seehagen Rodrig... | true |
b87284417f60010dcfaa667b7bcb49001b50ccbd | Java | itsM0253/wb8_homework_week_2 | /HashMaps /UncommonWords.java | UTF-8 | 1,288 | 3.78125 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
public class UncommonWords {
public static void main(String[] args) {
String A = "this apple is sweet";
String B = "this apple is sour";
String[] answer = uncommon(A,B);
System.out.println(Arrays.toString(answer));
}
public s... | true |
0b5e4e8d9b6a197d65091a83ca087661e582a0f2 | Java | Jagadish-Mahadevan/personapp-code-exercise | /src/main/java/com/test/codeexcercice/userinput/UserInteration.java | UTF-8 | 159 | 1.78125 | 2 | [] | no_license | package com.test.codeexcercice.userinput;
import java.io.InputStream;
public interface UserInteration {
public UserData getUserOptions(InputStream in);
}
| true |
c7ad249296fe6bc003ab2c4ef42a2f0161468f0f | Java | cylee0909/Javac-Research | /流程/jvm/16Gen/other/10.java | UTF-8 | 3,014 | 2.09375 | 2 | [] | no_license | public void visitMethodDef(JCMethodDecl tree) {
DEBUG.P(this,"visitMethodDef(1)");
DEBUG.P("tree.name="+tree.name);
DEBUG.P("currentClass="+currentClass);
DEBUG.P("currentClass.flags_field="+Flags.toString(currentClass.flags_field));
if (tree.name == names.init && (currentClass.flags_field&ENUM) != 0) {
... | true |
fc3648227c7d4557ce1e7d67db17dc10551fda5d | Java | xinyuzhixing/studybybaozon | /Algorithm/src/test/java/com/yzl/controller/TireTest.java | UTF-8 | 1,138 | 3.296875 | 3 | [] | no_license | package com.yzl.controller;
import org.junit.Test;
/**
* ClassName: TireTest
* Description: 字典树测试方法
* date: 2021/5/30 6:36 下午
*
* @author yangzhiliang
*/
public class TireTest {
@Test
public void test01(){
//创建一个字典树
Trie tree=new Trie();
//字典树中存放的字符串
String[] strs= {"a... | true |
f5f31652354a92d7be7602a834fcbdc9918eba5a | Java | robotxin/Test | /wrokse/src/main/java/test/Test.java | UTF-8 | 788 | 2.4375 | 2 | [] | no_license | package test;
/**
* @describe
* @auther chen_yang
* @create 2018-06-05-10:36
*/
public class Test {
public B copy(A a) {
B b = new B()
.setB1(a.a1)
.setB2(a.a2)
.setB3(a.a3);
return b;
}
public class A {
public String a1;
public Long a2;
public int a3;
}
... | true |
edfaeb0043aa26be33efb038b7f5fd5a552357ca | Java | SQS-JLiu/MJavaPlus | /mutatorHome/src/com/example/user/myapplication/TestDemo.java | UTF-8 | 141 | 1.640625 | 2 | [] | no_license | package com.example.user.myapplication;
public class TestDemo {
public void test(){
System.out.println("Just test...");
}
}
| true |
bba44d37a4405da093cd75255cb401e8f8db1640 | Java | Bungba/Shoucao | /assets/docs/xuefeng/Sole_Love/src/bs/action/BsAddressAction.java | WINDOWS-1252 | 1,020 | 1.992188 | 2 | [
"Apache-2.0"
] | permissive | package bs.action;
import java.util.List;
import javax.annotation.Resource;
import net.sf.json.JSONArray;
import org.apache.struts2.ServletActionContext;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import com.model.Addresses;
import com.model.... | true |
72f2b08941b551cb0066001f35f4d4f8571f686c | Java | zyy5411/AlgorithmExercise | /src/datastructure/trees/TreeNode.java | GB18030 | 1,303 | 3.90625 | 4 | [] | no_license | package datastructure.trees;
public class TreeNode {
public int data;
public TreeNode left;
public TreeNode right;
public TreeNode parent;
/**
* "1(2(4,5(7,)),3(,6))"
*
* @param sr
* @param parent
*/
public TreeNode(StringReader sr, TreeNode parent) {
if (sr.hasNext()) {
try {
if (!sr.hasNe... | true |
9ed3c7d2c9b97c313d7f9ee0410a0092af8aef1f | Java | jxblum/spring-data-geode | /spring-data-geode/src/main/java/org/springframework/data/gemfire/config/annotation/EnablePool.java | UTF-8 | 15,679 | 1.929688 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2012-2022 the original author or authors.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | true |
53f7d86062ae5d6cae427ce4d2454543130ff527 | Java | fjh658/bindiff | /src_fernflower/y/f/c/a/w.java | UTF-8 | 288 | 1.695313 | 2 | [] | no_license | package y.f.c.a;
import java.util.Comparator;
final class w implements Comparator {
final float[] a;
w(float[] var1) {
this.a = var1;
}
public int compare(Object var1, Object var2) {
return y.g.e.a(this.a[((y.c.q)var1).d()], this.a[((y.c.q)var2).d()]);
}
}
| true |
1b5c131aab2d1361e80e852a1bb490605f07e5e4 | Java | LEECHAEHEE/webProg | /loginBoard/src/com/java/ex/MCommand/MLogoutCommand.java | UTF-8 | 422 | 2.171875 | 2 | [] | no_license | package com.java.ex.MCommand;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
public class MLogoutCommand implements MCommand{
@Override
public void execute(HttpServletRequest request, HttpServletResponse response) {
HttpSession ... | true |
3a9b5580371717df29b4b40ebdc37ac7c910c1c7 | Java | CoderHardik/LogicalProgTest | /1 Hello World/src/Workday_hackerrank_RahulTeam_round.java | UTF-8 | 3,075 | 2.875 | 3 | [] | no_license | import java.util.HashSet;
import java.util.Set;
/* Given a string, reduce it in such a way that all of it's substrings are distinct.
* To so so, you may delete any character at any index. What is minimum number of deletion needed.
*
*/
public class Workday_hackerrank_RahulTeam_round {
public static int getMin... | true |
1d043a4ff7498ab5fcd917a61b1c1ba736f6007a | Java | Gouri12/careerGuide | /app/src/main/java/com/example/careerguide/afterxii.java | UTF-8 | 2,495 | 1.992188 | 2 | [] | no_license | package com.example.careerguide;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
public class afterxii extends AppCompatActivity {
private Button buttonbioxii;
privat... | true |
cd026bead831e592f16ee8d692b8d2825c58fade | Java | barryirwin/themis | /storm/src/main/java/com/verifydynamics/netflowscoring/lookup/HoneyPotPortIgnoreLookup.java | UTF-8 | 1,168 | 1.8125 | 2 | [] | no_license | /*******************************************************************
Themis - NetFlow scoring and tagging framework.
Version: 0.5
Release date: 2017/12/31
Author: MJ Sweeney
Rhodes University
Computer Science Masters Project - 2017
Supervisor: Barry Irwin
Copyright (C) 2017, MJ Sweeney
************************... | true |
5b69379e88dfff005e63c15c7f0d1b002335b4f6 | Java | rchiarinelli/posystem | /posystem/src/main/java/br/valinorti/posystem/service/RESTService.java | UTF-8 | 214 | 1.609375 | 2 | [] | no_license | /**
*
*/
package br.valinorti.posystem.service;
import br.valinorti.posystem.entity.User;
/**
* @author leafar
*
*/
public interface RESTService {
/**
*
* @return
*/
public User getAuthUser();
}
| true |
6a7a496e0cf68a5d6224e5acd7c413711c69b417 | Java | nguyenanh1/movie-ticket-app | /app/src/main/java/vn/anhnguyen/ticketmovie/retrofit/APIService.java | UTF-8 | 17,040 | 2.109375 | 2 | [] | no_license | package vn.anhnguyen.ticketmovie.retrofit;
import retrofit2.Call;
import retrofit2.Response;
import vn.anhnguyen.ticketmovie.config.CommonVls;
import vn.anhnguyen.ticketmovie.domain.model.request.BodyChangePasswordRequest;
import vn.anhnguyen.ticketmovie.domain.model.request.BodyChangeProfileRequest;
import vn.anhnguy... | true |
c84a5042fd09b399b3d62b386f04036e5f3bbb06 | Java | wang-shun/push-plat | /tnt-bms-admin/src/main/java/com/lvmama/tnt/bms/admin/web/domain/po/ConvertDO.java | UTF-8 | 1,491 | 1.828125 | 2 | [] | no_license | package com.lvmama.tnt.bms.admin.web.domain.po;
import java.io.Serializable;
/**
*
*/
public class ConvertDO implements Serializable {
private static final long serialVersionUID = -6871234295540135818L;
private Integer id;
private String name;
private Integer generation;
private String request... | true |
963c38f284ebbed51a1c8ef132661db665726c7b | Java | wqfeng2017/Springmvc | /src/com/tz/spring/dao/IUserDao.java | UTF-8 | 352 | 1.882813 | 2 | [] | no_license | package com.tz.spring.dao;
import java.util.List;
import com.tz.spring.entity.User;
public interface IUserDao {
public void insert(User user);
public User selectUserById(Long id);
public User selectUserByName(String name);
public List<User> selectUsers(String name);
public void delete(User user);
pu... | true |
7bcd453b541c7b7d017cdb358182c0c6c154136b | Java | Lubright/training-java-basic | /Ch23_Regex/src/test/StringToNumber.java | UTF-8 | 908 | 3.328125 | 3 | [] | no_license | package test;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class StringToNumber {
public static boolean DEV_MODE = false;
public static void setDebugMode() {
DEV_MODE = true;
}
public static double parse(String inputStr) {
double result = 0;
String scale = null;
inputStr = inpu... | true |
095343181a88b3c2c75111bf365979ad87aee561 | Java | pma93/ServiciosSoftware | /Practica4/SSGasolinerasCliente/src/es/unican/ss/ssgasolineras/GasolineraInterface.java | UTF-8 | 3,628 | 1.78125 | 2 | [] | no_license |
package es.unican.ss.ssgasolineras;
import java.util.List;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.Action;
import javax.xml.ws.FaultAction;
import javax.xml.ws.RequestWrapper;
impor... | true |
b803e16a8ee03766e42c4185221f9359e95cec01 | Java | olbpetersson/begin-event-sourcing | /eventsourcing/eventsourcing-api/src/main/java/com/squeed/eventsourcing/api/EventSourcingService.java | UTF-8 | 1,036 | 2.046875 | 2 | [] | no_license | package com.squeed.eventsourcing.api;
import akka.NotUsed;
import akka.stream.javadsl.Source;
import com.lightbend.lagom.javadsl.api.Descriptor;
import com.lightbend.lagom.javadsl.api.Service;
import com.lightbend.lagom.javadsl.api.ServiceAcl;
import com.lightbend.lagom.javadsl.api.ServiceCall;
import com.lightbend.la... | true |
a9316fbc5f14ec5886e6def9c86873016d7c8548 | Java | FlyRocBoy/untitled | /src/DButil/ConnectionManager.java | GB18030 | 1,754 | 3.171875 | 3 | [] | no_license |
package DButil;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class ConnectionManager {
/**
*
*
* @return Connection
*/
public static Connection getConnection()
throws DBAccessException {
... | true |
8f6417370704e213d649597d1279ec73f1babd3f | Java | SmallMaoBoy/monkey77 | /MonkeySevenServer/src/com/monkey77/service/CartServiceImp.java | UTF-8 | 4,335 | 2.09375 | 2 | [] | no_license | /**
* @date:创建时间:2016-1-3下午11:12:38
* @author:mao
*
*/
package com.monkey77.service;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import com.google.gson.Gson;
import com.monkey77.dao.ITCartDao;
import com.monkey77.dao.ITGoodDao;
import com.monkey77.dao.ITUserDao;
i... | true |
257889d5ee2c47158b4b2b327b88029c3cd5d016 | Java | daggerok/wipe4j | /wipe4j-core/src/main/java/com/github/daggeerok/wipe4j/core/ProjectDefinition.java | UTF-8 | 861 | 1.992188 | 2 | [
"MIT"
] | permissive | package com.github.daggeerok.wipe4j.core;
import java.util.List;
public enum ProjectDefinition {
MAVEN("maven",
List.of("pom.xml", "settings.xml", "mvnw", "mvnw.cmd"),
List.of("target"))
,
GRADLE("gradle",
List.of("build.grade", "build.grade.kts", "settings.grade", "settings.grade.kts"... | true |
2052d7b339c8e27b8d0bba2b4490b61e3c675c13 | Java | kargoolek/kodilla-java | /kodilla-testing/src/main/java/com/kodilla/testing/collection/OddNumbersExterminator.java | UTF-8 | 395 | 3.03125 | 3 | [] | no_license | package com.kodilla.testing.collection;
import java.util.ArrayList;
public class OddNumbersExterminator {
public ArrayList<Integer> exterminate(ArrayList<Integer> numbers){
ArrayList<Integer> lstEven = new ArrayList<Integer>();
for(int n : numbers) {
if (n % 2 == 0) {
... | true |
0c5f1bb81373a22bda6bfbdc40f01170d363bb4f | Java | Alemorar/FinalVillanueva3033 | /src/java/biblioteca/beans/modelo/UsuarioBean.java | UTF-8 | 935 | 2.1875 | 2 | [] | no_license | package biblioteca.beans.modelo;
import biblioteca.datos.hibernate.dao.IUsuarioDAO;
import biblioteca.modelo.dominio.Usuario;
import java.io.Serializable;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ManagedProperty;
import javax.faces.bean.RequestScoped;
@ManagedBean
@RequestScoped
public ... | true |
aaf464bb96cacd17f9c52f27c3dc1113d324fbbc | Java | hexilei/qbt | /branches/branche_20171228_release/qiubaotong-server/qbt-persistent/src/main/java/com/qbt/service/impl/CityServiceImpl.java | UTF-8 | 928 | 1.929688 | 2 | [] | no_license | package com.qbt.service.impl;
import java.util.List;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.qbt.common.entity.PageEntity;
import com.qbt.persistent.entity.City;
import com.qbt.persistent.mapper.CityMapper;
import com.qbt.service.CityService;
@Service
public clas... | true |
3ab602874234e24d7402d994da74d3f5cf8f3d53 | Java | moayyaed/northwind-backend-1 | /src/main/java/tomaszszewczyk/repositories/TerritoryRepository.java | UTF-8 | 646 | 2.3125 | 2 | [] | no_license | package tomaszszewczyk.repositories;
import org.springframework.stereotype.Repository;
import tomaszszewczyk.entities.Territory;
import java.util.List;
@Repository
public class TerritoryRepository extends BaseRepository<Territory> {
public List<Territory> findAll() {
return query("select x from Territor... | true |
b60750a00d42dd9eea9ed4e3d35b1b9a821cea50 | Java | RockyRun/weixin-sdk | /src/main/java/com/weixin/sdk/Client.java | UTF-8 | 8,718 | 2.421875 | 2 | [] | no_license | package com.weixin.sdk;
import java.io.IOException;
import java.io.InputStream;
import java.net.URLEncoder;
import java.util.Date;
import org.json.JSONObject;
import com.weixin.sdk.custom.CustomMessage;
import com.weixin.sdk.department.Department;
import com.weixin.sdk.http.Getter;
import com.weixin.sdk.http.Poster;... | true |
c822756c5b9c892b804282e0109a7f0ba610149c | Java | venkateshhegde/MockitoLearning | /src/test/java/org/ven/mockitolearning/TestIBusinessInterface.java | UTF-8 | 1,511 | 2.484375 | 2 | [] | no_license | package org.ven.mockitolearning;
import org.junit.Assert;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.mockito.Mockito;
import org.ven.mockitilearning.model.api.IBusinessInterface;
import org.ven.mockitilearning.model.api.Pojo;
import static org.mockito.Mockito.*;
public cl... | true |
35374fcdd1d3db4f83e15f1c3c9909c196f6f48b | Java | FacuMastri/7507-Algo3 | /Finales/02_03_17_final/src/Goku.java | UTF-8 | 467 | 2.359375 | 2 | [
"MIT"
] | permissive | package examen;
public class Goku extends PERSONAJE{
String nivel = "yayayin";
public void atacar(PERSONAJE p){
if (nivel == "yayayin"){
p.recibDan(new Danio("HAME-HAME-HA",15));
}else if (nivel == "superyayayin")
{
p.recibDan(new Danio("HENKI-DAMA",30));
}
}
public vo... | true |
657caef2da463de1e6818e18e9a91939ffc6bc1f | Java | sengeiou/89 | /src/com/ramy/minervue/control/KeepAlive.java | GB18030 | 2,690 | 2.140625 | 2 | [] | no_license | package com.ramy.minervue.control;
import java.text.SimpleDateFormat;
import java.util.Date;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;
import android.os.AsyncTask;
import android.util.Log;
import com.ramy.minervue.app.MainService;
import com.ramy.minervue.util.ATask... | true |
f66f31847ead373ac344902cdf2da7f5bc932b48 | Java | UNIZAR-30248-2016-FOODNET/FoodnetWebapp | /src/main/java/es/unizar/es/foodnet/controller/ControladorUsuario.java | UTF-8 | 9,745 | 2.671875 | 3 | [] | no_license | package es.unizar.es.foodnet.controller;
import es.unizar.es.foodnet.model.entity.Usuario;
import es.unizar.es.foodnet.model.repository.RepositorioUsuario;
import es.unizar.es.foodnet.model.service.MessageHelper;
import es.unizar.es.foodnet.model.service.Password;
import org.springframework.beans.factory.annotation.Au... | true |
d2c1abc8d4bcc2e0618b91646a254a6bc403a92b | Java | ViyChel/job4j_forum | /src/test/java/ru/job4j/forum/control/PostControlTest.java | UTF-8 | 3,326 | 2 | 2 | [] | no_license | package ru.job4j.forum.control;
import org.junit.jupiter.api.Test;
import org.mockito.ArgumentCaptor;
import org.mockito.Mockito;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.AutoConfigureMockMvc;
import org.springframework.boot.test.cont... | true |
40cb85da73e046d9f92771bc488d1379bc57f772 | Java | landracer/AndroUI | /app/src/main/java/com/rAtTrax/AndroUI/Map16x1.java | UTF-8 | 379 | 2.15625 | 2 | [
"Unlicense"
] | permissive | package com.rAtTrax.AndroUI;
public class Map16x1 {
protected double[] mapData = new double[17];
public Map16x1() {
}
public double mapValue(int dval) {
dval &= 0xFF;
int idx = dval >> 4;
int w = dval & 0xF;
return idx < 0xF ? (( ( w * mapData[idx+1] ) + ( -1... | true |
9c56ee338ba3c8f1bf7517661218edba96071529 | Java | trptom/TableSoccer | /src/cz/tpsoft/tablesoccer/data/wrapper/TeamWrapper.java | UTF-8 | 1,501 | 2.625 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package cz.tpsoft.tablesoccer.data.wrapper;
import cz.tpsoft.tablesoccer.data.model.Team;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.... | true |
ed06a0b14fd2945b04c55660d0123a31d522ea89 | Java | tb544731152/wxSell | /src/main/java/com/weixin/sell/utils/RedisLock.java | UTF-8 | 1,430 | 2.796875 | 3 | [] | no_license | package com.weixin.sell.utils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.util.StringUtils;
public class RedisLock {
@Autowired
private StringRedisTemplate redisTemplate;
public boolean lock(S... | true |
3b5b1f3c6379458cc84d5a19c1df053287585aec | Java | leventarican/cookbook | /java/java-lang/src/main/java/com/github/leventarican/solid/singleresponsibility/Main.java | UTF-8 | 768 | 3.359375 | 3 | [] | no_license | package com.github.leventarican.solid.singleresponsibility;
/**
* One class should only serve one purpose.
*
* @author levent
*/
public class Main {
public static void main(String[] args) {
var a = new Developer();
var b = new Compiler();
var c = new Code();
a.code(c);
... | true |
e0f43723fd7803f7b8b8043d64f8cfcff2ac8889 | Java | Spring-wangbin/wsFrameWork | /src/main/java/com/founder/bdyx/modules/job/mapper/SysTaskMapper.java | UTF-8 | 237 | 1.554688 | 2 | [] | no_license | package com.founder.bdyx.modules.job.mapper;
import com.founder.bdyx.core.mapper.MyMapper;
import com.founder.bdyx.modules.job.model.SysTask;
public interface SysTaskMapper extends MyMapper<SysTask> {
int batchRemove(Long[] ids);
} | true |
fbd2269cdae9e08332e85ed89d9854081b1f8167 | Java | marcelolx/TecaPlay | /src/br/edu/pii/tecaplay/util/MoveFile.java | ISO-8859-1 | 8,190 | 2.796875 | 3 | [] | no_license | package br.edu.pii.tecaplay.util;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import br.edu.pii.tecaplay.ui.FilmesAdd;
/**
* Classe que trabalha com arquivos.
*
* @author Jonas, Marcelo
*
*/
public class MoveFile {
@SuppressWarnings("... | true |
a13e21d948f86dd1ef74a4b2cd41c1746ec146cf | Java | yyzl123/my_shop | /my_shop/my_shop_service/my_shop_service_sms/src/main/java/com/qf/my/shop/service/MyShopServiceSmsApplication.java | UTF-8 | 492 | 1.585938 | 2 | [] | no_license | package com.qf.my.shop.service;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
/**
* @ClassName MyShopServiceSmsApplication
* @Description TODO
* @Author 86139
* @Data 2020/6/3 16:40
* @Version 1.0
**/
@SpringBootApplication
p... | true |
80e7c361d88b60384be0ea66d7c5026c7377715b | Java | karalus/esb0 | /src/main/java/com/artofarc/esb/action/JDBCProcedureAction.java | UTF-8 | 4,234 | 1.6875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2022 Andre Karalus
*
* 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 agr... | true |
4c1b745335228723ee4f002c8030887ed150260f | Java | aer874475222/EmendationProject | /app/src/main/java/com/global/luis/emendationproject/stem10/甲.java | UTF-8 | 629 | 2.375 | 2 | [] | no_license | package com.global.luis.emendationproject.stem10;
public class 甲 implements IStem {
private static final int heTuValue=3;//河图数
private static final int blackValue=9;//太玄数
public static final int sequenceValue=1;//顺序数
public static final int reverseSequenceValue = 10;//逆序数
private static final S... | true |
d239fab7ed5c8d05cb716c4ae5b9a2dc126ad134 | Java | ckbkdj/DKVideoPlayer | /dkplayer-sample/src/main/java/xyz/doikki/dkplayer/widget/render/gl/GLSurfaceRenderViewFactory.java | UTF-8 | 498 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package xyz.doikki.dkplayer.widget.render.gl;
import android.content.Context;
import xyz.doikki.videoplayer.render.IRenderView;
import xyz.doikki.videoplayer.render.RenderViewFactory;
public class GLSurfaceRenderViewFactory extends RenderViewFactory {
public static GLSurfaceRenderViewFactory create() {
... | true |
36518ce1e2da85ce16ac9b687bc113b996e60a94 | Java | ercumentkisa/DrugstoreAppRepository | /DrugstoreWS/src/java/com/drugstore/server/repository/PrescriptionRepository.java | UTF-8 | 532 | 2.140625 | 2 | [] | no_license | package com.drugstore.server.repository;
import com.drugstore.server.domain.Drug;
import com.drugstore.server.domain.Prescription;
import com.drugstore.server.domain.PrescriptionType;
import java.util.List;
/**
* Created by IntelliJ IDEA.
* User: ekisa
* Date: 20.11.2011
* Time: 22:54
* To change this template ... | true |
625a30246e23291ac629f0b05851fe18aeba9e53 | Java | czldl/AndroidNewsApp | /app/src/main/java/com/alphaclicksolutions/ju5tu5/androidnewsapp/Interface/NewsService.java | UTF-8 | 519 | 2 | 2 | [] | no_license | package com.alphaclicksolutions.ju5tu5.androidnewsapp.Interface;
import com.alphaclicksolutions.ju5tu5.androidnewsapp.Model.News;
import com.alphaclicksolutions.ju5tu5.androidnewsapp.Model.WebSite;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Url;
import java.lang.annotation.Target;
/**
*... | true |
ceaa75fcda8539df0da542bbd80a3e497ee4fe34 | Java | Anny88/twitter-analysis-web | /build/generated/src/org/apache/jsp/index_jsp.java | UTF-8 | 12,490 | 1.5 | 2 | [] | no_license | package org.apache.jsp;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.List;
import javaclasses.JavaTweet;
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final... | true |
cd71cea98430d188746e03083327b623c348bde8 | Java | jwxgit/PatriarchSign | /app/src/main/java/com/jwx/patriarchsign/utils/GlideUtils.java | UTF-8 | 1,684 | 2.203125 | 2 | [] | no_license | package com.jwx.patriarchsign.utils;
import android.widget.ImageView;
import com.bumptech.glide.DrawableRequestBuilder;
import com.bumptech.glide.DrawableTypeRequest;
import com.bumptech.glide.Glide;
/**
* 描述:Glide图片加载
* DiskCacheStrategy.NONE :不缓存图片
* DiskCacheStrategy.SOURCE :缓存图片源文件
* DiskCacheStrategy.RESULT... | true |
f57827ae290bfd9fdab273fc464ce3acdd743059 | Java | Aresong/MyDemo | /struts2_crm/src/com/s5/struts/dao/impl/UserDaoImpl.java | UTF-8 | 905 | 2.34375 | 2 | [] | no_license | package com.s5.struts.dao.impl;
import java.util.List;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import com.s5.struts.dao.UserDao;
import com.s5.struts.entity.User;
import com.s5.struts.utils.HibernateUtils;
/**
* 用户dao的实现类
**/
public class UserDaoImpl implements ... | true |
690646a4ba0ee4e30f614834cde8e714a82e49b9 | Java | miao321/hrsys | /src/main/java/com/hrsys/train/service/ITrainPlanService.java | UTF-8 | 879 | 1.8125 | 2 | [] | no_license | package com.hrsys.train.service;
import java.util.List;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import com.hrsys.train.entity.TrainPlan;
/... | true |
5e511b0bfca1b60e7f3269f254da6a6467cd5b1b | Java | varun93/vcod | /src/main/java/com/i2india/ErrorUtils/CustomApplicationException.java | UTF-8 | 217 | 2.1875 | 2 | [] | no_license | package com.i2india.ErrorUtils;
public class CustomApplicationException extends CustomException{
public CustomApplicationException(int errorCode,String errorMessage)
{
super(errorCode,errorMessage);
}
}
| true |
0df60d0a8ec9f11bfa699e5b30c336a228da8db3 | Java | hzqs/MvcTest | /MvcServlet/src/test/java/MyHandler.java | UTF-8 | 277 | 2.140625 | 2 | [] | no_license | /**
* Created by hzq on 2017/12/18.
*/
public class MyHandler {
public void testa(int a,String c){
System.out.print("******"+a);
System.out.print("******"+c);
}
public void testb(Entity entity){
System.out.print("****"+entity);
}
}
| true |
5b040edc09814a4fce9fa5f57adc17c1cff4a775 | Java | harin49/guvi-player | /numFactorial.java | UTF-8 | 550 | 3.78125 | 4 | [] | no_license | /*import java.util.*;
public class numFactorial
{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int f=1;
for(int i=2;i<=n;i++)
{
f=f*i;
}
System.out.println(f);
}
}*/
import java.util.*;
public class numFactorial
{
public static int fact(in... | true |
49231520ebec6a9b4c9ff07c1aea3facfd835582 | Java | thekosa/Chess | /src/pl/projekt/szachy/King.java | UTF-8 | 210 | 2.3125 | 2 | [] | no_license | package pl.projekt.szachy;
import java.awt.*;
public class King extends Figure {
King(Color color, int xCordinate, int yCordinate) {
super(color, xCordinate, yCordinate, "king");
}
}
| true |
1f4a77f2d03baceb1edf3df3c800df137018dd18 | Java | zhongxingyu/Seer | /Diff-Raw-Data/29/29_37a9c2b1438aac9403844d77363583e03db45d57/TweetCacheFactory/29_37a9c2b1438aac9403844d77363583e03db45d57_TweetCacheFactory_t.java | UTF-8 | 949 | 2.390625 | 2 | [] | no_license | package com.vaguehope.senkyou.twitter;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import com.google.common.cache.CacheBuilder;
import com.google.common.cache.CacheLoader;
import com.google.common.cache.LoadingCache;
import com.vaguehope.senkyou.Config;
public fin... | true |
0863dda00039a8e0403120820312ebed51000da6 | Java | halohoop/Overlay_SetupWizard | /Overlay_SetupWizard/src/main/java/com/tplink/overlay_setupwizard/activities/FullScreenBaseActivity.java | UTF-8 | 973 | 1.953125 | 2 | [] | no_license | /*
* Copyright (C) 2016, TP-LINK TECHNOLOGIES CO., LTD.
*
* FullScreenBaseActivity.java
*
* Full screen activity
*
* Author huanghaiqi, Created at 2016-11-18
*
* Ver 1.0, 2016-11-18, huanghaiqi, Create file.
*/
package com.tplink.overlay_setupwizard.activities;
import com.tplink.overlay_setupwizard.utils.Ac... | true |
370bc0f3ab666df69d09a4fbfc7c146df46202d5 | Java | lauraMaria/VirtualShop | /Web/src/main/java/virtualShop/controller/RegisterController.java | UTF-8 | 3,178 | 2.359375 | 2 | [] | no_license | package virtualShop.controller;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.validation.BindingResult;
import org.springframework.... | true |
013b6710a336877af75a8e9de7ed8b45a815152d | Java | jmirana09/ciitRooms | /admin.CIITRooms/src/sample/controller/ErrorController.java | UTF-8 | 852 | 2.171875 | 2 | [] | no_license | package sample.controller;
import com.jfoenix.controls.JFXButton;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.fxml.Initializable;
import javafx.scene.Parent;
import javafx.stage.Stage;
import java.net.URL;
import ... | true |
c1fe91b21567fe457441bf98936d325bb9fda94e | Java | pozmat/demo-be | /src/main/java/com/example/demo/service/CalculationService.java | UTF-8 | 1,565 | 2.328125 | 2 | [] | no_license | package com.example.demo.service;
import com.example.demo.dao.CalculationDao;
import com.example.demo.model.Calculation;
import com.example.demo.util.Calculator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.cont... | true |
524f1bc532da511257b71cf4709a6bdcc24c7f93 | Java | tejaswidurga/JavaPractiseExamples | /src/pk13Inheritance/Ex1ParentClass.java | UTF-8 | 358 | 3.0625 | 3 | [] | no_license | package pk13Inheritance;
public class Ex1ParentClass {
String name = "Teja";
String role = "Student";
String college = "Swarnandhra";
public static void displayDetails() {
Ex1ParentClass pc = new Ex1ParentClass();
System.out.println("Name is "+pc.name);
System.out.println("Role is "+pc.role);
System.out.pri... | true |
e225c600438790ce4942e9adfadc4e03759140b6 | Java | TingaZack/guide | /app/src/main/java/com/zack/tinga/satvguide/fragments/SABC_2_Fragment.java | UTF-8 | 4,469 | 2.078125 | 2 | [] | no_license | package com.zack.tinga.satvguide.fragments;
import android.app.Activity;
import android.content.Context;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.app.AlertDialog;
import android.suppor... | true |