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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
6c4785603bd3ce8e422917e1d2368139a83a2e8c | Java | blmacedo/ADS3M_1 | /ListasEncadeadas/src/com/senac/estruturas/LerEscrever.java | UTF-8 | 1,534 | 2.765625 | 3 | [] | no_license | package com.senac.estruturas;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.nio.file.... | true |
5f71ad7f1a00a9d521675539ebc4bcfdfad05c29 | Java | somomi/fwk_serenity_course | /src/main/java/com/dataart/thucydides/pages/AjaxPage.java | UTF-8 | 699 | 2.296875 | 2 | [] | no_license | package com.dataart.thucydides.pages;
import net.serenitybdd.core.pages.PageObject;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
public class AjaxPage extends PageObject {
@FindBy(id = "x")
private WebElement xInput;
@FindBy(id = "y")
private WebElement yInput;
... | true |
3d7e75aa29084000d0865290c6fe42698faaf2a6 | Java | fucora/front-backend-validator-java | /web-validfx/src/main/java/com/wmqe/web/validfx/validators/BaseValidator.java | UTF-8 | 3,969 | 2.421875 | 2 | [] | no_license | package com.wmqe.web.validfx.validators;
import com.wmqe.web.validfx.models.ParameterMap;
import com.wmqe.web.validfx.utils.StringUtil;
import org.hibernate.validator.internal.engine.constraintvalidation.ConstraintValidatorContextImpl;
import javax.validation.ConstraintValidator;
import javax.validation.ConstraintVal... | true |
067f476996d81303b70792dba85f11532a8740a8 | Java | WangWillis/35A | /Homework1/Homework1B.java | UTF-8 | 1,036 | 3.296875 | 3 | [] | no_license | /**************************************************************
Program Name: Find e
Programer: Willis Wang
Date: 04/21/15
Compiler: JDK 8
Discription: Find e using Maclaurin series
Variables: n is count of how many terems were needed to apprx e
error is the maximum error of e
eGuess is the apprx of e
*****************... | true |
8efefae5e502ec5bc63afe499a641668076277f4 | Java | shubhamait/unico | /src/main/java/com/unico/services/rest/PushService.java | UTF-8 | 467 | 2.4375 | 2 | [] | no_license | package com.unico.services.rest;
import java.util.List;
public interface PushService {
/**
* It takes two parameters which are added to the JMS queue and message is
* returned for the status of the request.
*
* @param i1
* @param i2
*
* @return String
*/
public String push(int i1, int i2);
/**
... | true |
ff6cc5f9155a32f5796d128b9d5e90fd809adbe6 | Java | captech691/GamblerMod | /src/main/java/gamblermod/relics/Joker.java | UTF-8 | 882 | 2.328125 | 2 | [] | no_license | package gamblermod.relics;
import basemod.abstracts.CustomRelic;
import com.badlogic.gdx.graphics.Texture;
import com.megacrit.cardcrawl.dungeons.AbstractDungeon;
import com.megacrit.cardcrawl.relics.AbstractRelic;
import gamblermod.actions.PokerHandCheck;
public class Joker extends CustomRelic {
public static S... | true |
d83ac2cebc94385fa232c9b8fa60486c31425806 | Java | photo/mobile-android | /test/src/com/trovebox/android/test/model/CredentialsTest.java | UTF-8 | 3,798 | 2.125 | 2 | [
"Apache-2.0"
] | permissive |
package com.trovebox.android.test.model;
import org.json.JSONException;
import org.json.JSONObject;
import android.os.Parcel;
import android.test.InstrumentationTestCase;
import com.trovebox.android.common.model.Credentials;
import com.trovebox.android.test.R;
import com.trovebox.android.test.net.JSONUti... | true |
cfd88ff9c3bf27635ba12345470c4945919de62d | Java | ELCHILEN0/Supernaturals | /src/main/java/com/TeamNovus/Supernaturals/Listeners/Custom/KillDeathListener.java | UTF-8 | 967 | 2.609375 | 3 | [] | no_license | package com.TeamNovus.Supernaturals.Listeners.Custom;
import org.bukkit.GameMode;
import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.entity.EntityDeathEvent;
import com.TeamNovus.Supernaturals.Player.... | true |
1f3aeacd90bd58b0f7d902c9b4efcf3d4790f969 | Java | liusiyuan1111/AndroidProject | /sqlitedatabase/src/main/java/com/example/sqlitedatabase/sqlite.java | UTF-8 | 1,169 | 2.65625 | 3 | [] | no_license | package com.example.sqlitedatabase;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.widget.Toast;
import androidx.annotation.Nullable;
public class sqlite extends SQLiteOpenHelper {
private Context mcontext;
priva... | true |
513d6654af8e42d05c3dfbdcaf7bc21bd423af4a | Java | Pavithra-Mullapudi/Java-Cross-Training | /src/ntt/com/Greeting.java | UTF-8 | 72 | 2.234375 | 2 | [] | no_license | package ntt.com;
public interface Greeting {
void greet(String s);
}
| true |
84489cb64779e367b297e5ac6dce25a46162d97d | Java | SebasHollow/LinearEquations | /src/InverseIteration.java | UTF-8 | 2,822 | 2.90625 | 3 | [] | no_license | import org.apache.commons.math.linear.*;
import java.text.MessageFormat;
import java.util.Arrays;
/**
* Created by Sebas.Hollow on 11/29/15.
*/
public class InverseIteration {
double[][] matrixData = {{3.24, 2, 0, 0},
{ 2, 3.24, 2, 0},
{... | true |
e6ba7c4dcdbf9e8bcd5e41b14a7f92a9b31dfdb3 | Java | Sage-Bionetworks/SynapseWebClient | /src/main/java/org/sagebionetworks/web/server/servlet/FileHandleServlet.java | UTF-8 | 16,252 | 1.789063 | 2 | [
"Apache-2.0"
] | permissive | package org.sagebionetworks.web.server.servlet;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLDecoder;
import java.net.URLEncoder;
import java.util.Enumeration;
import java.util.logging.Logger;
import javax.servle... | true |
f1e37310461a2a091e49837d7e00ec1dd076a765 | Java | Peacetoletov/NEAT_testing | /src/main/java/neat/InnovationCounter.java | UTF-8 | 338 | 2.75 | 3 | [
"MIT"
] | permissive | package neat;
/**
* Created by lukas on 28.3.2018.
*/
public class InnovationCounter {
private static int innovation = -1; //-1 so that the first innovation is 0
public static int newInnovation() {
innovation++;
return innovation;
}
public static void reset() {
innovat... | true |
bf8f2a67cdddcb6c4f12e66c0be27d674c992a14 | Java | julianatibaes/LivroReceita | /LivroReceitaSQLiteAsync/app/src/main/java/com/tibaes/livroreceitasqlite/model/Receita.java | UTF-8 | 3,120 | 2.328125 | 2 | [] | no_license | package com.tibaes.livroreceitasqlite.model;
import android.os.Parcel;
import android.os.Parcelable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.io.Serializable;
/**
* Created by Juliana Tibães on 05/06/2017.
* LivroReceita
*/
//@JsonIgnoreProperties(ignoreUnknown = true)
public c... | true |
88cb7c6276d74fbc9aa097a77182ecca7808a5be | Java | YeahZou/JavaBaseCore | /src/main/java/com/yeah/javabasic/util/file/MimeTypeCheck.java | UTF-8 | 1,287 | 2.609375 | 3 | [] | no_license | /**
*
*/
package com.yeah.javabasic.util.file;
import java.io.File;
import java.io.IOException;
import java.net.FileNameMap;
import java.net.URLConnection;
import javax.activation.MimetypesFileTypeMap;
import org.apache.tika.Tika;
/**
* @ClassName MimeTypeCheck
* @Description TODO
* @... | true |
d3dc70b266eea9d095b9de9e8e7091fc687f6ba9 | Java | apache/netbeans | /platform/openide.util.lookup/test/unit/src/org/openide/util/lookup/SimpleLookupTest.java | UTF-8 | 11,317 | 2.484375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... | true |
ec6f4b3ddd4b076dcd948392eb77010c9b76d0cc | Java | Uijess41/KaylaApp | /src/main/java/com/kayla/Activity/HomeActivity.java | UTF-8 | 6,740 | 1.84375 | 2 | [] | no_license |
package com.kayla.Activity;
import androidx.annotation.NonNull;
import androidx.appcompat.app.AlertDialog;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.view.GravityCompat;
import androidx.drawerlayout.widget.DrawerLayout;
import android.content.DialogInterface;
import android.content.Intent;... | true |
3df46a0a5d27256d760ae4d90a641a3d31920ac2 | Java | guangxuan/ip | /src/main/java/duke/Launcher.java | UTF-8 | 268 | 2.203125 | 2 | [] | no_license | package duke;
import javafx.application.Application;
/**
* Class to launch Main.
*/
public class Launcher {
/**
* Runs GUI interface for duke.Duke.
*/
public static void main(String[] args) {
Application.launch(Main.class, args);
}
}
| true |
67af33783e56fd837c6267abababa3095341fe2a | Java | cdonegan01/MySQLStuff3 | /app/src/main/java/com/example/mysqlstuff/GameListActivity.java | UTF-8 | 9,399 | 2.28125 | 2 | [] | no_license | package com.example.mysqlstuff;
import android.content.Intent;
import android.support.annotation.NonNull;
import android.support.constraint.ConstraintLayout;
import android.support.design.widget.BottomNavigationView;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.w... | true |
3b03e7fbab30e5092b6515ec8640dabbc38d5302 | Java | madusankap/turing-1 | /dependencies/step2/1.0.0-wso2v2/common/src/main/java/com/google/step2/servlet/GuiceServletContextListener.java | UTF-8 | 2,118 | 1.859375 | 2 | [] | no_license | /**
* Copyright 2008 Google 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 t... | true |
cf48d318e876b9b60282441ff60c29a47b3a5475 | Java | ZhuoSir/acd2.0 | /src/main/java/com/yuntongxun/acd/AbstractAcdCenter.java | UTF-8 | 2,845 | 2.578125 | 3 | [] | no_license | package com.yuntongxun.acd;
import com.yuntongxun.acd.context.listener.AcdContextListener;
import com.yuntongxun.acd.group.AcdGroup;
import java.util.Collection;
import java.util.Iterator;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
public abstract class AbstractAcdCenter implements AcdCente... | true |
6706f20796c8978c1b3d31cb6f88bec256ff2e9c | Java | MJaroslav/GlobalNavalBattle | /client/src/main/java/com/github/mjaroslav/globalnavalbattle/client/resource/ResourcePath.java | UTF-8 | 4,507 | 2.484375 | 2 | [
"WTFPL"
] | permissive | package com.github.mjaroslav.globalnavalbattle.client.resource;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
public class ResourcePath {
public static final String ONLY_JAR_MARKER = "@";
public static final String IN... | true |
8bcdfdb137b69137d992a8c782593f9954d8012f | Java | o0teamo0o/android_twoant_master | /app/src/main/java/net/twoant/master/widget/ActionDetailWriteInfoDialog.java | UTF-8 | 535 | 2.09375 | 2 | [] | no_license | package net.twoant.master.widget;
import android.app.Activity;
import android.view.Gravity;
import android.view.View;
/**
* Created by S_Y_H on 2017/1/1.
* 活动想去的 填写报名信息 弹窗
*/
public class ActionDetailWriteInfoDialog extends BaseDialog {
/**
* @param context 必须是activity实例
*/
public ActionDetai... | true |
4503868733f638ca553ba354c1659e10f04acd6c | Java | MacBry/1024kbkursApp | /src/main/java/com/mac/bry/kurs1024kb/dao/ProductDaoImpl.java | UTF-8 | 3,767 | 2.796875 | 3 | [] | no_license | package com.mac.bry.kurs1024kb.dao;
import java.io.BufferedReader;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import javax.management.InstanceAlreadyExistsException;
import com.mac.bry.kurs1024... | true |
fef57c55def82cafa3261e0d95f8fca42680f10c | Java | net023/ych | /src/com/ych/base/model/SysConfigModel.java | UTF-8 | 3,682 | 2.328125 | 2 | [] | no_license | package com.ych.base.model;
import java.util.LinkedList;
import java.util.List;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Model;
import com.jfinal.plugin.activerecord.Page;
import com.ych.base.common.Pager;
import com.ych.core.plugin.annotation.Table;
import com.ych.too... | true |
57fda84da4631d4943543e7d1e8e69a8560ef1d5 | Java | joeldamonte/app-spring | /src/main/java/com/prueba/tecnica/controller/AppController.java | UTF-8 | 3,090 | 2.171875 | 2 | [] | no_license | package com.prueba.tecnica.controller;
import java.util.List;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bi... | true |
1384960085c0361d8d7f6a7dee7ba89c170a560d | Java | pdavidson/oauth-sample-server | /src/main/java/us/pdavidson/sample/oauth/security/User.java | UTF-8 | 1,836 | 2.796875 | 3 | [] | no_license | package us.pdavidson.sample.oauth.security;
import java.util.Objects;
public class User {
private final Long userId;
private final String username;
private final String password;
public Long getUserId() {
return userId;
}
public String getUsername() {
return username;
... | true |
5ee4407c9b6de060dec17d53fe9dc187e69e610b | Java | cckmit/springboot-demo | /thread/src/main/java/com/hy/springboot/thread/deferedresult_multithreading/controller/AsyncController.java | UTF-8 | 2,473 | 2.59375 | 3 | [] | no_license | package com.hy.springboot.thread.deferedresult_multithreading.controller;
import com.hy.springboot.thread.deferedresult_multithreading.dao.DeferredResultHolder;
import com.hy.springboot.thread.deferedresult_multithreading.dao.MockQueue;
import org.apache.commons.lang3.RandomStringUtils;
import org.slf4j.Logger;
impor... | true |
fec2b91bd2b40da3f8f9d8837610acadb2e673f9 | Java | lathspell/java_test | /java_test_pattern/src/main/java/de/lathspell/test/patternbuch/command/befehle/LichtAnBefehl.java | UTF-8 | 407 | 2.453125 | 2 | [
"CC0-1.0"
] | permissive | package de.lathspell.test.patternbuch.command.befehle;
import de.lathspell.test.patternbuch.command.geräte.Licht;
public class LichtAnBefehl implements Befehl {
Licht licht;
public LichtAnBefehl(Licht licht) {
this.licht = licht;
}
@Override
public void ausführen() {
licht.ein()... | true |
a379e56b7654347261c7dfdaf380b404ad9970d5 | Java | FlowerL/jxshen-netty | /jxshen-netty-server/src/main/java/com/github/jxshen/netty/server/channel/initializer/HttpAggregatorInitializer.java | UTF-8 | 1,576 | 2.09375 | 2 | [] | no_license | package com.github.jxshen.netty.server.channel.initializer;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLEngine;
import io.netty.channel.Channel;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.ChannelPipeline;
import io.netty.handler.codec.http.HttpClientCodec;
import io.nett... | true |
6489171e578b9262ca6ca69bcfc0a45c3e2fa394 | Java | roq-messaging/roq-swing-console | /src/main/java/org/roqmessaging/management/desktop/wsclient/Queue.java | UTF-8 | 1,001 | 2.421875 | 2 | [] | no_license | package org.roqmessaging.management.desktop.wsclient;
/**
* The data related to a RoQ queue
* @author Maxime Jeanmart
*
*/
public class Queue {
private String Name;
private String Host;
private boolean State;
private boolean statisticsEnabled;
private String ID;
public String getName() {
return Name;
}
p... | true |
ff13f6bfd5f99c2d36f146c68070ba7684874912 | Java | hbally/webgis | /webgis/src/com/ltmonitor/command/action/TransparentSendAction.java | UTF-8 | 1,308 | 2.421875 | 2 | [] | no_license | package com.ltmonitor.command.action;
import com.ltmonitor.entity.TerminalCommand;
import com.ltmonitor.service.JT808Constants;
/**
* 数据透明传输下行
*
* @author DELL
*
*/
public class TransparentSendAction extends TerminalCommandAction {
// 消息类型
private int msgType;
// 格式 hex 表示16进制,txt表示文本
priv... | true |
5454806e5926f3800bb4c628e50b15a38b9c6444 | Java | Alison-NET/MedicalSystem | /src/main/java/com/alisonnet/medicalsystem/employeeportal/webcontroller/DocumentController.java | UTF-8 | 4,350 | 2.328125 | 2 | [] | no_license | package com.alisonnet.medicalsystem.employeeportal.webcontroller;
import com.alisonnet.medicalsystem.employeeportal.constant.Constants;
import com.alisonnet.medicalsystem.employeeportal.entity.employee.AppointedDocument;
import com.alisonnet.medicalsystem.employeeportal.entity.employee.Document;
import com.alisonnet.... | true |
c45aa1b9506ba0b79c5aeb9d1be38a6d92859ba8 | Java | Magickmaster/pn532-test | /src/main/java/pn532Test/App.java | UTF-8 | 1,885 | 2.75 | 3 | [] | no_license | package pn532Test;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
// I2C
import com.pi4j.io.i2c.I2CBus;
import com.pi4j.io.i2c.I2CDevice;
import com.pi4j.io.i2c.I2CFactory;
import com.pi4j.io.i2c.I2CFactory.UnsupportedBusNumberException;
import pn532Test.commands.GetFirmwareVersion;
import... | true |
483edb4febb42360adf549013ff864be9bbdabbb | Java | JuliaBorovets/DeliveryService | /src/test/java/ua/training/mappers/OrderCheckMapperTest.java | UTF-8 | 1,750 | 2.21875 | 2 | [
"Unlicense"
] | permissive | package ua.training.mappers;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.test.context.junit.jupiter.SpringExtension;
import ua.training.dto.OrderCheckDto;
import ua.training.entity.order.Order;
import ua.training.entity.order.OrderCheck;
import ua.tr... | true |
65e7e510096c75721f08f17d7d3a4e16556562dc | Java | mbmbcompany/cinema | /Cinema/app/src/main/java/com/example/cinema/MovieInsight.java | UTF-8 | 1,672 | 2.390625 | 2 | [] | no_license | package com.example.cinema;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;
import android.widget.ListView;
public class MovieInsight extends AppCompatActivity {
CustomVerticalAdapter customVerticalAdapter;
DBHelper dbHel... | true |
e882a5c4e099c8d8ba6981407454573836ca53ce | Java | raflyfirdausy/zona-rental | /app/src/main/java/com/dev/invinity/rentalyuk/Activity/SearchActivity.java | UTF-8 | 13,705 | 1.835938 | 2 | [] | no_license | package com.dev.invinity.rentalyuk.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.graphics.Rect;
import android.os.Build;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.os... | true |
0b7e0153547f535dc583d663659d57cfb6819b0e | Java | jashmineghosh/Java_OCA | /src/ComplexNumber.java | UTF-8 | 1,283 | 4.03125 | 4 | [] | no_license | public class ComplexNumber{
//for real and imaginary parts of complex numbers
private double real, imaginary;
//constructor to initialize the complex number
public ComplexNumber(double real, double imaginary){
this.real = real;
this.imaginary = imaginary;
}
public double getRea... | true |
80bdf0e4e6d3f13892cc16cf2ea569aeedad39af | Java | rarexixi/spring-study | /security-authorization-server/src/main/java/org/xi/security/authorization/config/AuthorizationServerConfig.java | UTF-8 | 3,314 | 1.992188 | 2 | [] | no_license | package org.xi.security.authorization.config;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.authentication.AuthenticationManager;
import org.s... | true |
05adbb40621b67f2c9bed06672c65b61a1cd0c1a | Java | hdmagno/Projeto-WebService-JSON-aula-08 | /src/persistence/Dao.java | UTF-8 | 550 | 2.40625 | 2 | [] | no_license | package persistence;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
public class Dao {
Connection con;
PreparedStatement stmt;
ResultSet rs;
String url = "jdbc:mysql://localhost:3306/bd_aula08";
String usuario = "root";
String senha = "... | true |
8f2b5b2d34f4a4ac62c90cc8455b70f19273eea0 | Java | ha-heihei/Shopping | /src/servlet/customer_service.java | GB18030 | 1,887 | 2.359375 | 2 | [] | no_license | package servlet;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import DBUtil.DBUtil;
/**
* Servlet implementation class... | true |
6c3dd8594b5809937444c5134ecaf1a660aaa273 | Java | xinhai666/statutes | /src/main/java/com/hd/statutes/utils/GlobalExceptionHandler.java | UTF-8 | 682 | 2.203125 | 2 | [] | no_license | package com.hd.statutes.utils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import javax.servlet.http.HttpServletRequest;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
//@ControllerAdvice
//public class GlobalExceptionHan... | true |
fd1477a4bc6db9edb6847ad1c687e382c609ee03 | Java | SheelaFoam/GreatPlus | /app/src/main/java/com/erp/sheelafoam/sheelafoam/utility/DBHelper.java | UTF-8 | 4,273 | 2.546875 | 3 | [] | no_license | package com.erp.sheelafoam.sheelafoam.utility;
import android.content.ContentValues;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
/**
* Created by dell on 31/01/2016.
*/
publi... | true |
fd0832733622327cce1d0afb98fd980af1b07536 | Java | KeelanM90/MyTweet-android | /app/src/main/java/tweet/com/mytweet/models/Timeline.java | UTF-8 | 1,651 | 2.5625 | 3 | [] | no_license | package tweet.com.mytweet.models;
import java.util.ArrayList;
/**
* Created by keela on 01/11/2017.
*
* reference: All aspects of this app are heavily based around the below tutorials with parts of the original code remaining
* https://wit-ictskills-2017.github.io/mobile-app-dev/labwall.html
*/
public class Tim... | true |
2f6ed7700d68b3290eca7f89aa32d41d20df2beb | Java | wispershadow/myopensources | /monitoring/1.0.0/src/main/java/org/wispersd/core/monitoring/datasource/IdGenUtil.java | UTF-8 | 1,976 | 2.5625 | 3 | [] | no_license | package org.wispersd.core.monitoring.datasource;
import java.lang.reflect.Field;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.sql.DataSource;
public class IdGenUtil {
public static String genDataSourceId(DataSource ds) {
return String.valueOf(ds.hashCode()... | true |
ea4b3c846e65cafffb769a3a7dc69eca95fc17d9 | Java | AlexCasanova/S7_AO | /project/src/org/View/VConsts.java | UTF-8 | 981 | 2.28125 | 2 | [] | no_license | package org.View;
import javafx.scene.Group;
import javafx.scene.paint.Color;
import javafx.scene.paint.Paint;
final class VConsts {
static final int SPAN = 4;//Pixels for a unit
static final int WALL = 2;//thickness of the walls (in units)
static final int CELL = 9;//size of the cells(in units)
stat... | true |
62b8a3d9b3f736cfb17b1edfe4da407ab0c24117 | Java | gradle/performance-comparisons | /large-multiproject/project48/src/test/java/org/gradle/test/performance48_1/Test48_41.java | UTF-8 | 289 | 1.804688 | 2 | [] | no_license | package org.gradle.test.performance48_1;
import static org.junit.Assert.*;
public class Test48_41 {
private final Production48_41 production = new Production48_41("value");
@org.junit.Test
public void test() {
assertEquals(production.getProperty(), "value");
}
} | true |
8d69d87f47ef58c4d23e131fd2a426d286de6af5 | Java | hsf301/StemCellsManager | /app/src/main/java/com/huashengfu/StemCellsManager/entity/goods/Goods.java | UTF-8 | 5,192 | 1.953125 | 2 | [] | no_license | package com.huashengfu.StemCellsManager.entity.goods;
import com.huashengfu.StemCellsManager.entity.response.goods.Detail;
import com.huashengfu.StemCellsManager.entity.response.goods.Parameters;
import com.huashengfu.StemCellsManager.entity.response.goods.Sku;
import java.io.Serializable;
import java.util.ArrayList;... | true |
2296fa21ca52f553eb1ee9cc7db87d0512cd0e61 | Java | DLMousey/Spring-ArticleApi | /src/main/java/com/enderstudy/blogapi/controller/ArticleController.java | UTF-8 | 734 | 2.09375 | 2 | [] | no_license | package com.enderstudy.blogapi.controller;
import com.enderstudy.blogapi.model.Article;
import com.enderstudy.blogapi.repository.ArticleRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.Re... | true |
6db9f30803e8cec04dab0eee8adf47019027390a | Java | belerweb/cqlybest | /common/src/main/java/com/cqlybest/common/service/ProductService.java | UTF-8 | 11,697 | 2.28125 | 2 | [] | no_license | package com.cqlybest.common.service;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import java.util.UUID;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.apache.commons.lang.StringUtils;... | true |
d92c3599d36ea7c4571d66522b9a03b8af181cae | Java | bsmitahyd/attnmgr-android | /app/src/main/java/com/ext/attendance/interfaces/PickImageDialogInterface.java | UTF-8 | 403 | 2.0625 | 2 | [] | no_license | package com.ext.attendance.interfaces;
import android.content.Intent;
import android.net.Uri;
import java.io.File;
/**
* Interface between PickImageDialog and the calling classes
*/
public interface PickImageDialogInterface {
void holdRecordingFile(Uri fileUri, File file, Uri uri, int crop);
void handleI... | true |
24be5f6ef03b3bc499965fa5a878c868544c4d76 | Java | cristinastefaniuc/JavaCore_SecondTask | /src/com/endava/javacore/task2/task6_7/Employee.java | UTF-8 | 384 | 2.953125 | 3 | [] | no_license | package com.endava.javacore.task2.task6_7;
public class Employee {
private double tariffPerHour = 5.5;
public int hours;
public Employee() {
}
public Employee(int hours) {
this.hours = hours;
}
public double getTariffPerHour() {
return tariffPerHour;
}
public dou... | true |
7b3e434dc723edc6fe4c932dd13be0682746d00c | Java | ven2day/paymentServer | /src/main/java/com/xmbl/util/UUIDUtil.java | UTF-8 | 405 | 2.296875 | 2 | [] | no_license | package com.xmbl.util;
import java.util.UUID;
/**
* @author: sunbenbao
* @Email: 1402614629@qq.com
* @类名: UUIDUtil
* @创建时间: 2017年12月21日 上午10:52:03
* @修改时间: 2017年12月21日 上午10:52:03
* @类说明:
*/
public class UUIDUtil {
/**
* 生成uuid
* @return
*/
public static String generateUUID() {
return UUID.rando... | true |
570ea43bea62ecf49094da9c9d19ff56d07754d5 | Java | Dax1n/java | /线程学习/src/com/daxin/synchronization/Test.java | GB18030 | 662 | 3.21875 | 3 | [] | no_license | package com.daxin.synchronization;
/**
*
*
* ʱ俴http://blog.csdn.net/yanlinwang/article/details/44339113
*
*
* @author ഺפDax1n
*
*/
public class Test {
int b=100;
public synchronized void m1() throws InterruptedException{
b=1000;
Thread.sleep(5000);
System.out.println("m1 b = "+b);
}
pu... | true |
5cd4ff3812a3510f08f20ad53566f641a80ff991 | Java | jackandyao/com.qbao.ai.parent | /com.qbao.ai.resposity/src/main/java/com/qbao/ai/resposity/mybatis/model/JTagType.java | UTF-8 | 1,412 | 2.1875 | 2 | [] | no_license | package com.qbao.ai.resposity.mybatis.model;
import java.io.Serializable;
import java.util.Date;
public class JTagType implements Serializable{
/**
*
*/
private static final long serialVersionUID = 1L;
public JTagType() {
super();
// TODO Auto-generated constructor stub
... | true |
485d908222c9d2f193c9638913c9a73c81356bae | Java | isurudil/medasoft | /src/main/java/com/medasoft/query/GetAppointmentDetails.java | UTF-8 | 1,366 | 2.328125 | 2 | [] | no_license | package com.medasoft.query;
import com.google.gson.Gson;
import com.medasoft.config.MongoContextLoader;
import com.medasoft.model.dto.AppointmentDetails;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Componen... | true |
9625a10fb9bb9aff486f3779851ef522a98ca67a | Java | 06121997/Bighit-entertainment-automation1 | /Main_menu_pg1.java | UTF-8 | 1,839 | 2.5 | 2 | [] | no_license | package BTS_project_major;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
public class Main_menu_pg1 {
public static void main(String[] args) throws InterruptedException {
System.setProperty("webdriver.gecko.driver", "C:\\Users\\USER... | true |
2c7fa211e59941c530c2756724c6e4e993caefe6 | Java | worprime/bubusheng | /bubusheng后端/src/main/java/cn/com/chinahitech/bubusheng/course/mapper/CouCoursedataMapper.java | UTF-8 | 414 | 1.546875 | 2 | [] | no_license | package cn.com.chinahitech.bubusheng.course.mapper;
import cn.com.chinahitech.bubusheng.course.entity.CouCoursedata;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;
/**
* <p>
* Mapper 接口
* </p>
*
* @author hourui
* @since 2020-08-12
*/
@R... | true |
827b5ddfdd728e2dcd5e5092a1f243bbe13771f6 | Java | p-pratheeban/JavaMysqlExercise | /src/com/pratheeban/exercises/Palindrome.java | UTF-8 | 1,712 | 4.09375 | 4 | [] | no_license | package com.pratheeban.exercises;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
*
* @author Pratheepan
* Check if a string is a palindrome or not
*/
public class Palindrome {
/**
* Check whether the given input string is palindrome or not
* The time complexity of reverse() is O(n). So i... | true |
e2a9320e02a2944b8ff524ebe93513ae0d38439f | Java | 0xlsca/GrowthAPI | /src/main/java/tomconn/growthapi/implementations/growthprofile/probability/function_helpers/tuple/TupleHelpers.java | UTF-8 | 1,338 | 2.15625 | 2 | [
"BSD-3-Clause"
] | permissive | package tomconn.growthapi.implementations.growthprofile.probability.function_helpers.tuple;
import net.minecraftforge.event.terraingen.SaplingGrowTreeEvent;
import net.minecraftforge.event.world.BlockEvent.CropGrowEvent.Pre;
import org.jetbrains.annotations.Contract;
import tomconn.growthapi.interfaces.growthprofile.p... | true |
566e79aaffae756c818f99593bbf2009b6572ccd | Java | maxuebing/api-platform | /src/main/java/com/winstar/cashier/construction/utils/DateUtil.java | UTF-8 | 1,352 | 2.765625 | 3 | [] | no_license | package com.winstar.cashier.construction.utils;
import org.apache.commons.lang3.StringUtils;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateUtil {
/**
* 格式化当前系统时间(精确到秒)
* @return String
*/
public static String currentTime() {
String strYMDHMSS = ... | true |
adb29809750f0007b77fed791a05f8d0f0aa38e8 | Java | AlexRogalskiy/prostore | /plugins/dtm-query-execution-plugin-adqm/src/main/java/io/arenadata/dtm/query/execution/plugin/adqm/base/factory/AdqmTableEntitiesFactory.java | UTF-8 | 4,683 | 1.757813 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright © 2021 ProStore
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in... | true |
12ecbadc8fd6b25121022310eef6f4a70f23a724 | Java | Dominiq-91/Study | /src/java1006/논리연산자복습.java | UTF-8 | 2,417 | 4 | 4 | [] | no_license | package java1006;
public class 논리연산자복습 {
public static void main(String[] args) {
/* * 논리 연산자
&& : "논리 곱" - 피연산자가 모두 true일때만 true로 출력해 줌.
|| : "논리 합" - 피연산자 둘중에 하나만 true라도 true로 출력해 줌.
!A : "논리 부(Not)" - 피연산자 들의 boolean 값을 반대로 출력해 줌.
^ : "배타적 논리 합Exclusive or" - 두 피연산자의 boolean 값이 서로 달라야 true라고 출력해 줌.... | true |
2d76f707f9aa5d57bd350ece94604ecd9466d990 | Java | milenamanko/drink-vending-machine | /src/main/java/payment/MoneyInitializer.java | UTF-8 | 605 | 2.703125 | 3 | [] | no_license | package payment;
import lombok.Getter;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
@Getter
public class MoneyInitializer {
private static final List<Coin> coins = new ArrayList<>();
public static List<Coin> getCoins() {
return coins;
}
... | true |
657026478e2601803a621c2a10e7f2d9613a5cd2 | Java | shicong/XAndroidAPITest | /test/src/com/example/test/clocklistview/ClockListViewActivity.java | UTF-8 | 1,231 | 1.960938 | 2 | [] | no_license | /**
*
*/
package com.example.test.clocklistview;
import com.example.test.R;
import android.R.anim;
import android.app.Activity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.TextView;
/**
* @author shicong
*/
public class ClockListViewActivity extends Activi... | true |
0ae5e16f6706cc38eb192d4c304b451755e72572 | Java | JustTrust/messa | /app/src/main/java/com/belichenko/a/messa/ui/fragments/chat/MessageListFragment.java | UTF-8 | 6,349 | 2.03125 | 2 | [] | no_license | package com.belichenko.a.messa.ui.fragments.chat;
import android.os.Bundle;
import android.support.v7.widget.RecyclerView;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.inputmethod.EditorInfo;
import android.widget.EditTex... | true |
c69ad6da26dff35e18d59193c299b1f3e5c69952 | Java | mjgrapess/project_10 | /src/model/to/StudentsTO.java | UTF-8 | 2,259 | 2.65625 | 3 | [] | no_license | package model.to;
import java.sql.Date;
public class StudentsTO {
private int studentid;
private String studentname;
private String fathername;
private Date dob;
private String contactno;
private String gender;
private String maritalstatus;
private int photoid;
publi... | true |
89829e1401ec0cb619df1e3e32f6d81c75840337 | Java | gic-krishnam/gic-trainings | /src/testing/TreeMapDemo.java | UTF-8 | 484 | 3.09375 | 3 | [] | no_license | package testing;
import java.util.Map.Entry;
import java.util.TreeMap;
public class TreeMapDemo {
public static void main(String[] a)
{
TreeMap<Integer, String> tm=new TreeMap<>();
tm.put(1, "RED");
tm.put(19, "BLUE");
tm.put(20, "BLACK");
tm.put(7, "ORANGE");
tm.put(20, "RED");
... | true |
d67ee2c6576c6142643fa8de782d18335b02cbc1 | Java | dgbtds/javaDemo | /SystemDemo/sysDemo.java | UTF-8 | 880 | 2.78125 | 3 | [] | no_license | package SystemDemo;
import java.io.IOException;
import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
public class sysDemo {
public static void main(String[] args) throws IOException {
Properties prop=System.getProperties();
System.setProperty("MYKEY", "MYVALUE");
Iterator<Map.Entry<Obj... | true |
afaea54b8b82c7695ed50a0466e1e2e2ed9bd8f6 | Java | SwiftlyAside/MAD5A1 | /app/src/main/java/com/example/iveci/mad5/Rest.java | UTF-8 | 1,779 | 2.578125 | 3 | [] | no_license | package com.example.iveci.mad5;
import android.os.Parcel;
import android.os.Parcelable;
import java.util.ArrayList;
/**
* Created by iveci on 2017-04-06.
*/
public class Rest implements Parcelable {
String name = "";
String tel = "";
ArrayList<String> menu = new ArrayList<>(3);
String homepage = "... | true |
5f0739086712f9049ef0051bbeaebb17f9f51e16 | Java | Shinbogyeong/BackUpReal | /java/JavaTest/src/com/test/java/collection/Ex65_HashMap.java | UTF-8 | 5,747 | 4.03125 | 4 | [] | no_license | package com.test.java.collection;
import java.util.HashMap;
import java.util.Scanner;
public class Ex65_HashMap {
public static void main(String[] args) {
/*
ArrayList vs
ArrayList
- 요소 접근 -> 첨자(index) 사용 -> 요소의 순서가 있음
- 스칼라 배열(Scalar Array)
- 루프 적용 가능(장점)
HashMap
-
- 방이름 있음
... | true |
aa5cb0333a937195d9946c8429a6bccb074300b9 | Java | makkus/ttthings | /things-core/src/main/java/things/config/ThingReaders.java | UTF-8 | 4,922 | 2.953125 | 3 | [] | no_license | package things.config;
import com.google.common.collect.HashMultimap;
import com.google.common.collect.Multimap;
import com.google.common.collect.Sets;
import things.exceptions.TypeRuntimeException;
import things.thing.Thing;
import things.thing.ThingReader;
import things.utils.MatcherUtils;
import java.util.Set;
/*... | true |
0be19100291d2570df834c512531757f2b668d74 | Java | ganzsz/javaAirplane | /AirplanePart.java | UTF-8 | 421 | 2.953125 | 3 | [] | no_license | public abstract class AirplanePart {
public int number;
private PartType partType;
public AirplanePart(int number, PartType partType) {
this.number = number;
this.partType = partType;
}
abstract void calculate() throws PartException;
public enum PartType {
ENGINE, FLA... | true |
caeae155657c83a97e576a4aaa90d3c2280f9bdc | Java | ChenTanyi/autorest.java | /generated/sdk/compute/azure-resourcemanager-compute-generated/src/main/java/com/azure/resourcemanager/compute/generated/models/Snapshot.java | UTF-8 | 30,443 | 1.773438 | 2 | [
"LicenseRef-scancode-generic-cla"
] | no_license | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.compute.generated.models;
import com.azure.core.management.Region;
import com.azure.core.util.Context;
import com.azure.resource... | true |
c3c85c212c18f7bf8ac0f46e72ef49d220ac1d78 | Java | qlamp/mq-client-multi-thread | /src/simple/SimpleDurableSub.java | UTF-8 | 6,191 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | // SCCSID "@(#) MQMBID sn=p900-L160518.TRIAL su=_7Y4jrR0LEearh6Qyg9d9Dg pn=MQJavaSamples/jms/simple/SimpleDurableSub.java"
/*
* <copyright
* notice="lm-source-program"
* pids="5724-H72"
* years="2008,2016"
* crc="2251036515" >
* Licensed Materials - Property of IBM
*
* 5724-H72... | true |
26b0415d2373cb099f8d5cdb02a5f13a1e779ff2 | Java | ajhavens/227 | /clunkyYahtzee/hw3/src/hw3/SmallStraight.java | UTF-8 | 740 | 3.4375 | 3 | [] | no_license | package hw3;
/**
* Scoring category for a "small straight". A hand
* with N dice satisfies this category only if it includes
* N - 1 distinct consecutive values. For a hand that satisfies
* this category, the score is a fixed value specified in the constructor;
* otherwise, the score is zero.
*/
public class S... | true |
9c349b9deb6d083056f61102b88a8f17616d0593 | Java | frankzhf/cheer2017 | /source/prototype/src/main/java/com/cheer/assets/mapper/AssetsFinanceRecordEntityMapper.java | UTF-8 | 758 | 1.765625 | 2 | [] | no_license | package com.cheer.assets.mapper;
import com.cheer.assets.domain.AssetsFinanceRecordEntity;
import com.cheer.assets.domain.AssetsFinanceRecordEntityExample;
import net.frank.yangtes.commons.persistence.annotation.MyBatisDao;
import java.util.List;
@MyBatisDao
public interface AssetsFinanceRecordEntityMapper {
in... | true |
32adac8deb9f605034b4dc0897cf1acdfcba7129 | Java | alex-korneyko/ThrowsExperiment | /src/MyExceptions/LowSpeed.java | UTF-8 | 247 | 2.671875 | 3 | [] | no_license | package MyExceptions;
public class LowSpeed extends Exception {
private String _message;
public LowSpeed(String message) {
_message = message;
}
@Override
public String toString() {
return _message;
}
}
| true |
11e1a167fc95a24a50d824ce6d81723090f61d30 | Java | andeclima/app-bikelock | /src/main/java/br/app/bikelock/appbikelock/model/Cliente.java | UTF-8 | 1,088 | 2.265625 | 2 | [] | no_license | package br.app.bikelock.appbikelock.model;
import java.util.ArrayList;
import java.util.List;
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 jav... | true |
65174ce09696b8204d12c7ae8a9cbb9f8f1ea981 | Java | ndexbio/ndex-object-model | /src/main/java/org/ndexbio/ndexsearch/rest/model/SourceQueryResult.java | UTF-8 | 2,549 | 2.109375 | 2 | [
"BSD-3-Clause"
] | permissive | package org.ndexbio.ndexsearch.rest.model;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
/**
*
* @author churas
*/
@JsonIgnoreProperties(ignoreUnknown = true)
public class SourceQueryResult {
private String _networkUUID;
... | true |
11c06f52774e5c2faaebaa9919198ae0fcfd8e36 | Java | mpilkou/lic_forum | /src/main/java/ug/edu/controller/RegistrationController.java | UTF-8 | 3,548 | 2.25 | 2 | [] | no_license | package ug.edu.controller;
import java.util.List;
import java.util.logging.Logger;
import javax.validation.Valid;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.propertyeditors.StringTrimmerEditor;
import org.springframework.security.core.GrantedAuthority;
i... | true |
59565188c9b0fcf84e8189da397b6293ffafd428 | Java | alopezp90/1DAW_Tema2 | /src/main/java/tema2/Ej05.java | UTF-8 | 2,052 | 3.6875 | 4 | [] | 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 tema2;
/**
*
* @author alberto
*/
public class Ej05 {
public static void main(String[] args) {
//Varia... | true |
e4f79a119229b953a5ef16261a7d73a4722709e0 | Java | leo3877/stonehenge | /stonehenge-dao/src/main/java/com/bornstone/stonehenge/dao/query/IPaginationQuery.java | UTF-8 | 871 | 2.03125 | 2 | [
"MIT"
] | permissive | package com.bornstone.stonehenge.dao.query;
import com.bornstone.stonehenge.dao.IDAO;
import com.bornstone.stonehenge.entity.IEntity;
import com.bornstone.stonehenge.entity.query.PaginationQuery;
import java.util.List;
/**
* IPaginationQuery.java
*
* @author King<br/>
* email:my249645546@163.com
* @Des... | true |
71c4aacf4e192c94d05178900c710137cb404718 | Java | sukanyadass07/Project-275 | /src/main/java/edu/sjsu/cmpe/locationbased/repository/AgentRepository.java | UTF-8 | 1,398 | 2.71875 | 3 | [] | no_license | package edu.sjsu.cmpe.locationbased.repository;
import static com.google.common.base.Preconditions.checkArgument;
import static com.google.common.base.Preconditions.checkNotNull;
import java.util.concurrent.ConcurrentHashMap;
import edu.sjsu.cmpe.locationbased.domain.Agent;
public class AgentRepository implements ... | true |
ee4180ecb828e7d80fe2049dd539c105cf94251c | Java | SambitSobhan/seleniumWebdriver | /Selenium_WebDriver/src/test/java/com/webdrivers/Edit.java | UTF-8 | 960 | 2.109375 | 2 | [] | no_license | package com.webdrivers;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.testng.annotations.Test;
public class Edit {
@Test
public void script1() {
System.setProperty("webdriver.chrome.driver", "//Users//sambitsobhan//Downloads//chrome... | true |
79c833dac5e108129b9cf8668b1cc0562111d343 | Java | EasyBug/mall | /src/main/java/com/mmall/service/IOrderService.java | UTF-8 | 1,028 | 1.554688 | 2 | [] | no_license | package com.mmall.service;
import com.github.pagehelper.PageInfo;
import com.mmall.common.ServerRespose;
import com.mmall.vo.OrderVo;
import java.util.Map;
public interface IOrderService {
public ServerRespose pay(Long orderNo, Integer userId, String path);
ServerRespose aliCallback(Map<String, String> par... | true |
535ec87301fd1024fbc45ccee8bf30530e5fb6e2 | Java | cedricbou/mango | /mango-commons/src/test/java/com/emo/mango/log/BusinessTransactionTest.java | UTF-8 | 3,263 | 2.6875 | 3 | [] | no_license | package com.emo.mango.log;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import java.util.HashSet;
import java.util.Set;
import java.util.concurrent.Executors;
import org.junit.Test;
import com.emo.mango.annotations.Final;
import com.lmax.disruptor.EventFactory;
import com.... | true |
66b5f5136c07c193a969e3522c83e9c7b4fa75a3 | Java | coolTheWorld/medicare-customer | /src/yibao/yiwei/common/build/record/RecordProduct.java | UTF-8 | 1,001 | 2.328125 | 2 | [] | no_license | package yibao.yiwei.common.build.record;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
/**
* @author sunshy
* get record result
*/
public class RecordProduct {
private int recordCount;//count
private List recordList;//results
protected RecordProduct(){
}
public void ... | true |
50e5fdf5c5fef196d39ff39eb4b4cef612c94f25 | Java | waduhecks/Java_Study | /Rectangle.java | UTF-8 | 736 | 3.421875 | 3 | [] | no_license | package zhu;
import java.util.Scanner;
public class Rectangle extends Shape{
private int length;
private int width;
//构造方法
public Rectangle(String color, int area) {
super(color, area);
}
void showInfo() {
Scanner sc = new Scanner(System.in);
System.out.pri... | true |
656327225ab7e1008195269f7f09732a34b3cbb2 | Java | flowrithm/TODTracker | /app/src/main/java/com/flowrithm/todtracker/Model/MTransport.java | UTF-8 | 371 | 1.664063 | 2 | [] | no_license | package com.flowrithm.todtracker.Model;
import java.io.Serializable;
public class MTransport implements Serializable {
public int TransportId;
public String GST;
public String ContactNo;
public String PanNo;
public String FirstOwner;
public String SecondOwner;
public int BlockNumber;
p... | true |
e7a7d0ee1f40efb66acc758b99dbb74a3e3696e6 | Java | itucimmyt/Sample_tracking_system_CE | /src/test/java/org/cimmyt/service/study/CreateStudy.java | UTF-8 | 738 | 1.898438 | 2 | [] | no_license | package org.cimmyt.service.study;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import com.cimmyt.model.bean.Investigator;
import com.cimmyt.model.bean.LabStudy;
import com.cimmyt.service.ServiceUs... | true |
ef3a261d3c059b32c041f527544b3358cd8e7475 | Java | geethasunnap/jenkins_test | /two.java | UTF-8 | 35 | 1.523438 | 2 | [] | no_license | hellao
hello i am updting the file
| true |
71ae70b4332c89d16399802bdf5164e4cb922040 | Java | NithinKrishnamurthi/database | /proj2/db/Row.java | UTF-8 | 3,850 | 3.421875 | 3 | [] | no_license | package db;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import static db.Table.indexOf;
/**
* Created by nithin on 2/24/17.
*/
public class Row {
Item[] items;
public Row(Item[] items) {
this.items = items;
}
public Item getItem(String s) {
... | true |
cc25307a6b259ba1491b1c46ca10f620b71c8c4a | Java | sjones4/dataflow-example | /src/main/java/com/appscale/dataflow/Main.java | UTF-8 | 654 | 1.640625 | 2 | [] | no_license | /*
* Copyright 2018 AppScale Systems, Inc
*
* SPDX-License-Identifier: Apache-2.0
*/
package com.appscale.dataflow;
import org.springframework.boot.*;
import org.springframework.boot.autoconfigure.*;
import org.springframework.context.annotation.Bean;
/**
*
*/
@EnableAutoConfiguration
public class Main {
@Be... | true |
fbb976128d1210e60cbb02a025a739a6799c36a7 | Java | anricheng/MyHttp | /app/src/main/java/www/imooc/com/okhttp/UrlEndLine.java | UTF-8 | 2,250 | 2.171875 | 2 | [] | no_license | package www.imooc.com.okhttp;
/**
* Created by aric on 16/12/13.
*/
public class UrlEndLine {
public static UAT UAT;
public static QA QA;
public static Stage Stage;
public static class UAT {
public String endpoint1;
public String endpoint2;
public String endpoint3;
... | true |
a56574914fe1aea2401806dd181e061a1690f66f | Java | akki9192/myCode | /china-api/src/main/java/com/ge/pmms/dao/impl/FacilityMgmtDaoImpl.java | UTF-8 | 7,957 | 1.96875 | 2 | [] | no_license | package com.ge.pmms.dao.impl;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import org.hibernate.Criteria;
import org.hibernate.Session;
import org.hibernate.criterion.Expression;
import org.hibernate.criterion.Projections;
im... | true |
4318ab560b5bfecb582cee1c4fa0621a0da83562 | Java | sylviestephanie/Menu_1 | /app/src/main/java/id/ac/umn/mobile/menu_1/PostTestInfoFragment.java | UTF-8 | 2,516 | 2.25 | 2 | [] | no_license | package id.ac.umn.mobile.menu_1;
import android.app.Fragment;
import android.app.FragmentTransaction;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
/**
* A simple {@link Fragment} s... | true |
64f62dbb12f4f5338a7cefc565a29b2170f001b4 | Java | LiTigre/DPM_LABS_F2017 | /Lab1/src/ca/mcgill/ecse211/wallfollowing/PController.java | UTF-8 | 3,519 | 3.125 | 3 | [] | no_license | package ca.mcgill.ecse211.wallfollowing;
import lejos.hardware.motor.EV3LargeRegulatedMotor;
public class PController implements UltrasonicController {
/* Constants */
private static final int MOTOR_SPEED = 200;
private static final int FILTER_OUT = 20;
private static final int MAXCORRECTION = 100;
private fin... | true |
5b901a61294e4d2dcebc85b8637f64dc51c2a23c | Java | BrainRTP/ServerUtils | /other/ClanFox/nbt/NBT.java | UTF-8 | 241 | 2.203125 | 2 | [] | no_license | package ClanFox.nbt;
import org.bukkit.inventory.ItemStack;
public interface NBT {
ItemStack setNBT(ItemStack i, String type, String data);
String getNBT(ItemStack i, String type);
boolean isNBT(ItemStack i, String type);
}
| true |
e1dd6fae886c8b5103687a9b96dd9092c113e4ce | Java | Kawser-nerd/CLCDSA | /Source Codes/AtCoder/abc013/B/3775398.java | UTF-8 | 442 | 3.453125 | 3 | [] | no_license | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = Integer.parseInt(scanner.nextLine());
int b = Integer.parseInt(scanner.nextLine());
int c;
if (a < b) {
c = b - 10;
} els... | true |