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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
69a72a53a265dbd3043f3bc9cbf281fb4440d293 | Java | saya-ac-cn/java-utils | /java/src/test/java/ac/cn/saya/lambda/LambdaUtil1.java | UTF-8 | 585 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package ac.cn.saya.lambda;
import org.junit.Test;
/**
* @Title: LambdaUtil1
* @ProjectName java-utils
* @Description: TODO
* @Author liunengkai
* @Date: 2019-05-01 22:19
* @Description:
*/
public class LambdaUtil1 {
@Test
public void test1(){
Runnable r1 = new Runnable() {
@Overri... | true |
1369d4dd1653d573ba20bb0cda54c2fb20d3af24 | Java | gearkim0614/GT_Trader | /app/src/test/java/com/example/gttrader/JasonTests.java | UTF-8 | 2,547 | 2.671875 | 3 | [] | no_license | package com.example.gttrader;
import com.example.gttrader.Entity.Firearms;
import com.example.gttrader.Entity.Narcotics;
import com.example.gttrader.Entity.Water;
import com.example.gttrader.Entity.Player;
import com.example.gttrader.Entity.Scooter;
import org.junit.Test;
import java.util.HashMap;
import static org... | true |
201cdd8aeca4fee59d8a802b6a3a40131f4f473e | Java | veerakilaparthi/esurvey_android | /app/src/main/java/com/anyasoft/es/surveyapp/details/PersonDetailsFragment.java | UTF-8 | 8,690 | 2.03125 | 2 | [] | no_license | package com.anyasoft.es.surveyapp.details;
import android.content.Context;
import android.os.Bundle;
import android.support.design.widget.TextInputLayout;
import android.support.v4.app.Fragment;
import android.support.v7.widget.AppCompatSpinner;
import android.view.LayoutInflater;
import android.view.View;
import andr... | true |
c8686666ad92aefdfaf91e336dd58e26ed0a5569 | Java | thetwobear/FastEC | /x-core/src/main/java/com/x/x_core/wechat/template/WXEntryTemplate.java | UTF-8 | 625 | 1.984375 | 2 | [] | no_license | package com.x.x_core.wechat.template;
import com.x.x_core.wechat.BaseWXEntryActivity;
import com.x.x_core.wechat.XWeChat;
/**
* Created by 熊猿猿 on 2017/8/16/016.
*/
public class WXEntryTemplate extends BaseWXEntryActivity {
@Override
protected void onResume() {
super.onResume();
//登录成功后实际进入... | true |
e6f8bbfa45beb4a35860f7a1847767565ab8d373 | Java | 0Kirby/JavaLearning | /New/src/exception/TestThrow.java | GB18030 | 570 | 3.03125 | 3 | [
"Apache-2.0"
] | permissive | package exception;
public class TestThrow {
static void pop() throws NegativeArraySizeException {
// 巽׳NegativeArraySizeException쳣
int[] arr = new int[-1];
arr[1] = 1;
//
}
public static void main(String[] args) { //
try { // try䴦쳣Ϣ
pop();//... | true |
75ae38ab2289727c4308466377837263b926fd5e | Java | YanaKrukovska/payment-system-servlet | /src/main/java/com/krukovska/paymentsystem/persistence/mapper/UnblockRequestMapper.java | UTF-8 | 1,722 | 2.328125 | 2 | [] | no_license | package com.krukovska.paymentsystem.persistence.mapper;
import com.krukovska.paymentsystem.persistence.Field;
import com.krukovska.paymentsystem.persistence.model.Account;
import com.krukovska.paymentsystem.persistence.model.Client;
import com.krukovska.paymentsystem.persistence.model.UnblockRequest;
import java.sql.... | true |
6bf2a436915c0e4d58fc07bd6f2e865c093d88da | Java | wofxuan/yunjing | /星河/com.agdress.api/src/test/java/com/agdress/commons/utils/MD5UtilTest.java | UTF-8 | 501 | 1.890625 | 2 | [] | no_license | package com.agdress.commons.utils;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by Administrator on 2017/8/25.
*/
public class MD5UtilTest {
@Test
public void getMD5() throws Exception {
String str = MD5Util.getMD5Str("amount=50.0&attach=11¬ify_url=http://19... | true |
23925b3a3d76cc4a5a6f61b9c043502190b238ae | Java | yangrui110/asunerp | /framework/base/src/com/hanlin/fadp/base/util/collections/GenericMapSet.java | UTF-8 | 815 | 2.734375 | 3 | [] | no_license |
package com.hanlin.fadp.base.util.collections;
import java.util.Map;
import java.util.Set;
public abstract class GenericMapSet<K, V, M extends Map<K, V>, I> extends GenericMapCollection<K, V, M, I> implements Set<I> {
public GenericMapSet(M source) {
super(source);
}
@Override
public final b... | true |
2aa72d2c951427ed82f713de449e7f1659abb2fe | Java | ant-tools/wood | /src/js/wood/PreviewServlet.java | UTF-8 | 12,179 | 1.953125 | 2 | [] | no_license | package js.wood;
import java.io.IOException;
import java.io.Reader;
import java.io.StringWriter;
import java.security.Principal;
import java.util.HashMap;
import java.util.Locale;
import java.util.Map;
import javax.servlet.ServletConfig;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
impo... | true |
bbecb8a2e199f7c7456981d79995a1816fe6fa74 | Java | YunusCag/StokTakipOtomasyonu | /src/data/Stok.java | UTF-8 | 2,178 | 2.328125 | 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 data;
import java.util.Date;
/**
*
* @author Yunus
*/
public class Stok {
private int stokNo;
priva... | true |
a3c5b3d317cfd06deb59b0bb14273efd9f785ad7 | Java | Super02/Tickr-bot | /src/main/java/me/enscivwy/ticketbot/Commands/Basic/MentionTag.java | UTF-8 | 1,301 | 2.390625 | 2 | [] | no_license | package me.enscivwy.ticketbot.Commands.Basic;
import me.enscivwy.ticketbot.CommandHandler.Command;
import me.enscivwy.ticketbot.TicketBot;
import net.dv8tion.jda.core.EmbedBuilder;
import net.dv8tion.jda.core.events.message.MessageReceivedEvent;
import net.dv8tion.jda.core.hooks.ListenerAdapter;
import java.a... | true |
7afacf3c2c2b6ac97785b90a4aae5964d0a91494 | Java | luxiaotao1123/CoolBlog | /back-end/src/main/java/cn/blog/utils/R1.java | UTF-8 | 1,082 | 3.09375 | 3 | [] | no_license | package cn.blog.utils;
import java.util.HashMap;
import java.util.Map;
public class R1 extends HashMap<String,Object>{
//构造
public R1(){
put("code",200); //初始值
}
//错误
public static R1 error(int code, String msg){
R1 r1 = new R1();
r1.put("code",code);
r1.put... | true |
da4a1bab796a55fd725714fc6be286c77680be0b | Java | macmaton/probable-potato-player | /test/abc/music/SectionTest.java | UTF-8 | 1,008 | 2.546875 | 3 | [] | no_license | package abc.music;
import org.junit.Test;
public class SectionTest extends TestBase {
Section s1;
Section s2;
Section s3;
public void setup() {
s1 = createSection();
s2 = createSection();
s3 = createSection(createVoicePart());
}
@Test
public void testEquals() {
... | true |
b8c7f16054dfa7af8df21177d495a1d263205f03 | Java | moutainhigh/server-3 | /service-share/activity-srv/src/test/java/com/lawu/eshop/activity/srv/ActivitySrvApplicationTest.java | UTF-8 | 851 | 1.78125 | 2 | [] | no_license | package com.lawu.eshop.activity.srv;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Filter... | true |
aeffd343f523446290a4d146e11b466b7906f883 | Java | cei-dda/rmi-app | /server/src/main/java/net/franciscovillegas/cei/obligatorio/server/App.java | UTF-8 | 2,537 | 2.671875 | 3 | [] | no_license | package net.franciscovillegas.cei.obligatorio.server;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;
import java.rmi.server.UnicastRemoteObject;
import java.util.ArrayList;
import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.Pers... | true |
be5b7ae74fb09dce10e16b71bc65bb38c043be27 | Java | kangzhenkang/puma | /puma/puma-core/src/main/java/com/dianping/puma/core/sync/model/task/SyncTask.java | UTF-8 | 602 | 2.09375 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package com.dianping.puma.core.sync.model.task;
import com.google.code.morphia.annotations.Entity;
@Entity
public class SyncTask extends AbstractTask {
private static final long serialVersionUID = 2359517002901314187L;
// 状态
private SyncTaskStatusAction syncTaskStatusAction;
public SyncTask() {
... | true |
bc6d97597d009ae9d2332a66af6c858bd214647c | Java | ykhorosh/mera_se_2020 | /Lineva/2/LessonTwoTaskOne.java | UTF-8 | 773 | 3.71875 | 4 | [] | no_license | import java.util.Random;
public class LessonTwoTaskOne {
public static void main(String[] args) {
final int SIZE = 10, BOUND = 100;
int[] array = new int[SIZE];
Random random = new Random();
array[0] = random.nextInt(BOUND);
int sum = array[0];
int minIndex = 0;... | true |
e7e78c20f6c9fb05bc123693f23fdebea4663653 | Java | UCSB-CS-RACELab/eager-appscale | /Eager/roots/core/src/main/java/edu/ucsb/cs/roots/ManagedService.java | UTF-8 | 1,036 | 2.40625 | 2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | package edu.ucsb.cs.roots;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import static com.google.common.base.Preconditions.checkNotNull;
import static com.google.common.base.Preconditions.checkState;
public abstract class ManagedService {
protected final RootsEnvironment environment;
protected f... | true |
41acc794ce74de7637485a22e8a21ffa2537d3bf | Java | JBajracharya/data-structures-and-algorithms | /code401challenges/src/test/java/code401challenges/tree/BinarySearchTreeTest.java | UTF-8 | 2,964 | 3.46875 | 3 | [] | no_license | package code401challenges.tree;
import org.junit.Before;
import org.junit.Test;
import java.util.ArrayList;
import static org.junit.Assert.*;
public class BinarySearchTreeTest {
@Test
public void testEmptyTree() {
Tree emptyTree = new Tree();
assertNull(emptyTree.root);
}
@Test
... | true |
bbed536597f4af9311c74cd0cde12ac6bc3d1494 | Java | cempay/hms-cordova-plugin | /cordova-plugin-hms-ads/src/android/src/main/java/com/huawei/hms/cordova/ads/basef/handler/CorPack.java | UTF-8 | 2,574 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright 2020. Huawei Technologies Co., Ltd. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License")
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless ... | true |
21ba8641d8c3903ad3ebde7e2f1d7d3795ba378d | Java | vaibhav16060/SmartHealthWeb | /src/Controller/deactivateForWeb.java | UTF-8 | 2,141 | 2.359375 | 2 | [] | no_license | package Controller;
import java.io.IOException;
import java.io.PrintWriter;
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 javax.servlet.http.H... | true |
d9630c489f68259630e647c5477902c3fbd2cf81 | Java | radhakrishnan10192/impdata | /data/Task2/src/com/bizruntime/Task2/CopyOf.java | UTF-8 | 1,187 | 3.703125 | 4 | [] | no_license | package com.bizruntime.Task2;
import java.util.Scanner;
public class CopyOf {
public static void main(String[] args) {
int size ;
int[] array;
int[] array1;
int[] array2;
Scanner in = new Scanner(System.in);
System.out.println("Enter Size of method");
size = in.nextInt();
array = new int[size];
fo... | true |
7bdf35182d9508f532812d0e0353a3192c7dde89 | Java | metamodeler/CIM-CSS | /CIM3/src/context/impl/CongnitiveImpl.java | UTF-8 | 701 | 1.726563 | 2 | [
"CC-BY-4.0"
] | permissive | /**
*/
package context.impl;
import context.Congnitive;
import context.ContextPackage;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Congnitive</b></em>'.
* <!-- end-user-doc -->
*
* @generated
*/
public class CongnitiveImpl ... | true |
a09336ab79c6c2447c4188ab7d16ef1ddaaf57c5 | Java | jagrosh/JDA | /src/main/java/net/dv8tion/jda/internal/handle/GuildUpdateHandler.java | UTF-8 | 13,949 | 1.882813 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015 Austin Keener, Michael Ritter, Florian Spieß, and the JDA contributors
*
* 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... | true |
c3cadabe7ab37af6292c4fe8a22d36a34d8d3149 | Java | Nathan-Bisson/RBA-ATool | /src/model/RGBAModel.java | UTF-8 | 2,972 | 3.28125 | 3 | [] | no_license | package model;
import java.util.Observable;
import android.graphics.Color;
/**
* The model holds the data.
*
* Model color.
* Based on red, green, blue and alpha (transparency).
*
* RGB: integer values in the domain range of 0 to 255 (inclusive).
* Alpha: integer value in the domain range of 0 to 255 (inclusi... | true |
05041dd3b98fecf6835febfc27fc45e9a1571655 | Java | JuKu/mmo-engine-client | /game-view-layer/src/main/java/com/jukusoft/mmo/engine/gameview/renderer/IRenderer.java | UTF-8 | 761 | 2.21875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.jukusoft.mmo.engine.gameview.renderer;
import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.jukusoft.mmo.engine.applayer.time.GameTime;
import com.jukusoft.mmo.engine.gameview.camera.CameraHelper;
/**
* Created by Justin on 14.09.2017.
*/
public interface IRenderer {
/**
* update rende... | true |
a0698d7397925f1d019545b1ca25c051edf5077f | Java | niarehtni/nccode | /limsweb/qcco/src/public/nc/ui/qcco/commission/refmodel/UnitTypeRefModel.java | GB18030 | 1,131 | 1.945313 | 2 | [] | no_license | package nc.ui.qcco.commission.refmodel;
import nc.ui.bd.ref.AbstractRefModel;
public class UnitTypeRefModel extends AbstractRefModel {
public UnitTypeRefModel() {
super();
this.setTableName("NC_RESULT_TYPE");
this.setMutilLangNameRef(false);
}
public java.lang.String[] getFieldCode() {
return new String[]... | true |
0137350ac26dc81f9ba20256781460180e046e1e | Java | portofrotterdam/hamis-fuse | /core/src/main/java/org/jdesktop/fuse/Definition.java | UTF-8 | 4,211 | 2.109375 | 2 | [] | no_license | /**
* Copyright (c) 2006, Sun Microsystems, Inc
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, th... | true |
afb6846f48a80b3b6627063ad88a08dc1616a4aa | Java | esposama/crcp3310 | /Desktop/AliceInWonderland/build-tmp/source/AliceInWonderland.java | UTF-8 | 4,675 | 2.65625 | 3 | [] | no_license | import processing.core.*;
import processing.data.*;
import processing.event.*;
import processing.opengl.*;
import java.util.HashMap;
import java.util.ArrayList;
import java.io.File;
import java.io.BufferedReader;
import java.io.PrintWriter;
import java.io.InputStream;
import java.io.OutputStream;
import jav... | true |
87526853af1c5c4181da3310b1811ebbf1eda5c8 | Java | zwtaitxl1314/Spring1 | /src/main/java/ioc/beanCreation/constructor/Student.java | UTF-8 | 755 | 3.28125 | 3 | [] | no_license | package ioc.beanCreation.constructor;
import java.util.Date;
public class Student {
private Integer id;
private String name;
private char gender;
public Student() {
super();
}
public Student(Integer id, String name) {
super();
this.id = id;
this.name = name;
}
public Student(Integer id, St... | true |
b540020bb437fcbbcb885091255b4c4ef710827c | Java | darionyaphet/algorithms | /src/org/darion/yaphet/lintcode/ValidParentheses.java | UTF-8 | 1,436 | 3.65625 | 4 | [] | no_license | package org.darion.yaphet.lintcode;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import java.util.Stack;
/**
* http://www.lintcode.com/zh-cn/problem/valid-parentheses/
*
* @author darion.yaphet
*
*/
public class ValidParentheses {
/**
* @param s
* ... | true |
a93b5ea0b37aabee10367e3dec5614660b922c59 | Java | andrey-ko/satori-composer | /composer/src/com/satori/composer/rtm/core/RtmRelaxingState.java | UTF-8 | 681 | 2.5625 | 3 | [
"BSD-2-Clause"
] | permissive | package com.satori.composer.rtm.core;
public class RtmRelaxingState extends RtmState<IRtmContext, RtmRelaxingState.Exit> {
public final long delay;
public RtmRelaxingState(IRtmContext ctx, long delay) {
super(ctx);
this.delay = delay;
}
@Override
public boolean enter(Runnable exitHandler)... | true |
aa45bbfc75242fd59f229b694e3f2431cde2b25d | Java | MorningSage/Mekanism-Fabric | /src/api/java/mekanism/api/providers/IPigmentProvider.java | UTF-8 | 372 | 2.328125 | 2 | [
"MIT"
] | permissive | package mekanism.api.providers;
import mekanism.api.chemical.pigment.Pigment;
import mekanism.api.chemical.pigment.PigmentStack;
import javax.annotation.Nonnull;
public interface IPigmentProvider extends IChemicalProvider<Pigment> {
@Nonnull
@Override
default PigmentStack getStack(long size) {
r... | true |
e43df1995bdfcc52fb5fe68b15726074d4239cb5 | Java | chaitanyakakarala/examples | /file-handler/src/test/java/com/kc/demo/util/CommonUtilTest.java | UTF-8 | 1,322 | 2.75 | 3 | [] | no_license | package com.kc.demo.util;
import java.util.ArrayList;
import java.util.List;
import org.junit.Assert;
import org.junit.Test;
// TODO: Auto-generated Javadoc
/**
* The Class CommonUtilTest.
*/
public class CommonUtilTest {
/**
* Testrepeat split with seperator.
*/
@Test
public void testrep... | true |
7634db6764283db7038cc593ac6a04b45f1f1f72 | Java | sergiifedotov/OOP | /alexandr_lapada/src/main/java/hw2/frequency/FreqTest.java | UTF-8 | 995 | 3 | 3 | [] | no_license | package hw2.frequency;
import java.io.*;
import java.util.*;
/**
* Created by sanya on 22.01.2015.
*/
public class FreqTest {
public static void main(String[] args) {
Freq freq = new Freq();
try {
// System.out.println(freq.setTextFromConsole());
// System.out.println(freq.s... | true |
7b60a6a065151de832a89a7ff89b153a4b868ce6 | Java | Canardou/ptut | /Simulator 3/src/Gui.java | UTF-8 | 5,063 | 2.53125 | 3 | [] | no_license | import java.awt.Dimension;
import java.awt.Font;
import javax.swing.JCheckBox;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.Box;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.SwingWorker;
import Dialogue.Dialogue;
import java.awt.BorderLayout;
import drawi... | true |
74baea9e7351f8de08722d724bb984fe0373ff26 | Java | adi160791/all-projects | /ekart/src/main/java/com/niit/ekart/dao/CartDao.java | UTF-8 | 210 | 1.578125 | 2 | [] | no_license | package com.niit.ekart.dao;
import java.util.List;
import com.niit.ekart.model.Cart;
import com.niit.ekart.model.CartItems;
public interface CartDao {
public void addCart(Cart c);
}
| true |
5d59ecbebf4a7d869cb0b7f46bd2eb8f847f8449 | Java | chaseDeveloper/hsco | /hsco/src/main/java/hsco/pms/sls/hou/ctr/SLS020102/SLS020102ServiceImpl.java | UTF-8 | 29,188 | 1.726563 | 2 | [] | no_license | package hsco.pms.sls.hou.ctr.SLS020102;
import java.text.ParseException;
import java.util.List;
import java.util.Map;
import javax.annotation.Resource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.... | true |
4b9466cec2b6b7341838be50f59e002d0aa63d8b | Java | snbaby/rebot | /src/main/java/com/seadun/rebot/rest/AuthController.java | UTF-8 | 6,243 | 2.09375 | 2 | [] | no_license | /**
*
*/
package com.seadun.rebot.rest;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import ... | true |
cc92e2ae30639d23e0b5d4d2d886e0bbbc18aa05 | Java | jchen78/SOEN6441 | /GameEngine/src/game/action/sequence/visitee/PlaceMinionVisitee.java | UTF-8 | 3,522 | 2.6875 | 3 | [] | no_license | package game.action.sequence.visitee;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
import game.action.sequence.interfaces.IVisitee;
import game.action.sequence.interfaces.IVisitor;
import game.core.enums.CityAreaData;
import game.core.interfaces.ICityArea;
import game.core.interfaces.I... | true |
792301344f760c03c5a93025c92975d0637290b7 | Java | PenghaiZhang/openEQUELLA | /Platform/Plugins/com.tle.platform.common/src/com/tle/core/plugins/AbstractPluginService.java | UTF-8 | 10,153 | 1.601563 | 2 | [
"Apache-2.0",
"LGPL-3.0-only",
"LicenseRef-scancode-warranty-disclaimer",
"BSD-3-Clause",
"EPL-1.0",
"LGPL-2.0-or-later",
"Classpath-exception-2.0",
"LicenseRef-scancode-jdom",
"ICU",
"Apache-1.1",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"GPL-1.0-or-later",
"CPL-1.0",
"C... | permissive | /*
* Licensed to The Apereo Foundation under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* The Apereo Foundation licenses this file to you under the Apache License,
* Version 2.0, (the "License"); you ma... | true |
448004c7f4d1ba69fa8826f4c930ba04478ebf81 | Java | Fstall/DTCC_JavaAcademy | /RSTechSearchService/src/main/java/com/rstech/search/transform/YahooUkTransformer.java | UTF-8 | 484 | 2.15625 | 2 | [] | no_license | package com.rstech.search.transform;
import com.rstech.search.SearchSite;
public class YahooUkTransformer extends YahooTransformer {
private static YahooUkTransformer instance = new YahooUkTransformer();
public static YahooUkTransformer getInstance(){ return instance; }
private YahooUkTransformer(){
}
@Ov... | true |
69e0ea68aefb6bef1fe77981db851ffa1ed9d0a3 | Java | SucreLighT/StudentManagement | /src/student/QueryStudent.java | UTF-8 | 8,418 | 2.859375 | 3 | [] | no_license | package student;
// 查询学生类
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class QueryStudent extends JPanel implements ActionListener {
JTextField Sno, Sname, Ssex, SageMin, SageMax, Sdept;
JButton findButton, cancelButton;
// 实现查询... | true |
862958d4f9a08bf5557b80b9574371c701f91de3 | Java | pawanbole/Algorithm-and-Data-Structures | /Project1/Solution/Question2/src/MaxSubArray.java | UTF-8 | 4,820 | 3.40625 | 3 | [] | no_license | import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import java.util.Scanner;
public class MaxSubArray {
public static void main(String[] args) throws IOException {
int[] arr = getInput();
int x = getParameter();
int res = maxSubArray(arr, x);
if(res > -1)
... | true |
3333687857085605c6480bac6536c8c0c3d821c3 | Java | KleberQueiroz/contas | /src/apps/appConta.java | WINDOWS-1252 | 1,080 | 3.21875 | 3 | [] | no_license | package apps;
import bancos.Pessoa;
import contas.Conta;
public class appConta {
public static void main(String[] args) {
Pessoa p1 = new classes.Pessoa("Fulano", "fulano@gmail.com");
Pessoa p2 = new Pessoa("Ciclano", "ciclano@gmail.com");
Conta c1 = new Conta();
c1.setCorrentista(p1);
c1.setNumero(12... | true |
a58281c6bf27551afe37541b0b519c3f2a59eeea | Java | Capsar/Rapture | /minecraft/pq/rapture/module/Fullbright.java | UTF-8 | 1,186 | 1.96875 | 2 | [] | no_license | package pq.rapture.module;
import net.minecraft.client.multiplayer.WorldClient;
import pq.rapture.module.base.Module;
import pq.rapture.module.base.Type;
import pq.rapture.protection.Protection;
import pq.rapture.util.TimeHelper;
/**
* Created by Haze on 6/17/2015. Project Rapture.
*/
public class Fullbright extend... | true |
42186702565c43f84ba8ea3feef0c629daa8e275 | Java | POO-UNALMED/taller-6-JuanPabloGutierrezTamayo | /src/main/java/vehiculos/Camion.java | UTF-8 | 495 | 2.640625 | 3 | [] | no_license | package vehiculos;
public class Camion extends Vehiculo {
private int ejes;
private static int cantidadCamiones;
public Camion(String placa, String nombre, int precio, int peso, Fabricante fabricante, int eje) {
super(placa, 2,80,nombre,precio,peso,"4X2",fabricante);
this.ejes=eje;
cantidadCamiones++;
}... | true |
9e0f4b6afe534aab93ebab1a36084c0fa5c84fee | Java | fjw0312/TXNews | /src/TXNews/Main/NewsWebActivity.java | GB18030 | 2,969 | 2.03125 | 2 | [] | no_license | package TXNews.Main;
import mybroadcast.MyBroadcastReceiver;
import TXNews.bean.HistoryModel;
import TXNews.bean.RecordModel;
import android.annotation.SuppressLint;
import android.app.ActionBar;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
... | true |
b56ba76a3cbbdbcda5335b0cb0cf96f3e3b428ac | Java | yornel13/roles_web | /src/servlets/EmpresaServlet.java | UTF-8 | 1,174 | 2.21875 | 2 | [] | no_license | package servlets;
import utilidad.Const;
import utilidad.Fecha;
import utilidad.SessionUtility;
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 ... | true |
ffd7d8b5d80d5d672e8a721b6098a5397b36612b | Java | ashudhage/27062020Automation | /BasicCoreJava/src/collection/Students.java | UTF-8 | 404 | 2.53125 | 3 | [] | no_license | package collection;
import oops.inheritance.Mobile;
import oops.inheritance.SmartPhone;
import oops.inheritance.Telephone;
public class Students
{
public static void main(String[] args)
{
String [] std=new String [18];
Object Telephone=new SmartPhone();
Object a=10;
Object name="ashu";
Object b=true;
... | true |
135eb811a8135afe12939e8e577262c978a18741 | Java | rfscholte/sonar-update-center | /sonar-update-center-common/src/main/java/org/sonar/updatecenter/common/PluginReferential.java | UTF-8 | 7,314 | 1.804688 | 2 | [] | no_license | /*
* SonarSource :: Update Center :: Common
* Copyright (C) 2010 SonarSource
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the L... | true |
0381fe5089a8f074a4469184813de77ddf1b3747 | Java | edcamero/filtro | /src/control/UsuarioController.java | UTF-8 | 1,125 | 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 control;
import View.Principal;
import View.Usuario.UsuarioGui2;
import View.Usuario.UsuarioLista;
/**
*
* @author blade
*... | true |
dcdb6d94b0524de8ae749fdce5b189970965c59e | Java | alanparley/musicexchange_hw | /src/test/java/GuitarTest.java | UTF-8 | 1,522 | 2.953125 | 3 | [] | no_license | import Instruments.Guitar;
import Instruments.InstrumentType;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
public class GuitarTest {
Guitar guitar;
@Before
public void before(){
guitar = new Guitar("Fender", "Stratocaster", "Black", InstrumentType.... | true |
21d2a19c5656084c7eb51e80732e3c81d3874538 | Java | yangfan0725/sd | /src/com/kingdee/eas/fdc/invite/supplier/TenderInfoCollection.java | UTF-8 | 1,160 | 2.328125 | 2 | [] | no_license | package com.kingdee.eas.fdc.invite.supplier;
import com.kingdee.bos.dao.AbstractObjectCollection;
import com.kingdee.bos.dao.IObjectPK;
public class TenderInfoCollection extends AbstractObjectCollection
{
public TenderInfoCollection()
{
super(TenderInfoInfo.class);
}
public boolean add(Tender... | true |
27908403e750d67335c3b9806d87cc9b09687d19 | Java | SandeepBethi/Sandeep-Bethi-National-Vaccination-Distribution-System | /src/Business/DistributionCentreEnterprise.java | UTF-8 | 512 | 2.328125 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package Business;
/**
*
* @author Bethi
*/
public class DistributionCentreEnterprise extends Enterprise{
ShippingOrganization sho;
public DistributionCentreEnterprise(String enterpriseName) {
su... | true |
1eacdac5e5285db7230d8ee5211abb0bf8325e3c | Java | namo-ratna-trayaya/Grail | /java/src/Translator.java | UTF-8 | 23,846 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | /**
* This file copyright (c) 2015-2016, Jing Fan, Adalbert Gerald Soosai Raj, and Jignesh M. Patel
*
* See the file CREDITS.txt in the root directory for details.
**/
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Stack;
import java.ut... | true |
361994e37cfc0a33ddc57e4b03940288cc15a87f | Java | eirunye/Eirunye_SpringBoot_Notes | /Spring_Boot_JPA/src/main/java/com/eirunye/spring_boot_jpa/repository/UserRepository.java | UTF-8 | 1,620 | 2.359375 | 2 | [] | no_license | package com.eirunye.spring_boot_jpa.repository;
import com.eirunye.spring_boot_jpa.bean.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.qu... | true |
0b2b93f1f752fc3e4270ac74525f95dc096a2142 | Java | dnuttle/algorithms | /src/test/java/net/nuttle/algorithms/search/TwoSumTest.java | UTF-8 | 316 | 2.171875 | 2 | [] | no_license | package net.nuttle.algorithms.search;
import org.junit.Test;
import edu.princeton.cs.algs4.StdOut;
public class TwoSumTest {
@Test
public void test1() {
int[] vals = {-2, -1, -1, 0, 0, 0, 0, 1, 1, 2, 2};
StdOut.println(TwoSum.faster(vals));
//Assert.assertEquals(6, TwoSum.faster(vals));
}
}
| true |
d25301d19213a29fbe593d29d8d238f3f4b3e491 | Java | FirstTestOrganizationForLearning/hotel | /b2b_common/src/main/java/com/fntx/common/domain/dto/HotelStatusEntityBean.java | UTF-8 | 3,514 | 2.234375 | 2 | [] | no_license | package com.fntx.common.domain.dto;
import com.alibaba.fastjson.annotation.JSONField;
import java.io.Serializable;
import java.util.Objects;
/**
* @Copyright (C), 2019, 琥珀丶时光
* @ClassName: HotelStatusEntityBean
* @Author: 王俊文
* @Date: 19-7-18 下午4:58
* @Description: TODO
*/
public class HotelStatusEntityBean im... | true |
e94192da1e4e84c4add78ff9795a73321b36edba | Java | zcq18962285918/hp-ssm- | /src/main/java/cn/pzhu/mapper/ItemMapper.java | UTF-8 | 273 | 1.625 | 2 | [
"Apache-2.0"
] | permissive | package cn.pzhu.mapper;
import cn.pzhu.base.BaseDao;
import cn.pzhu.po.Item;
import org.apache.ibatis.annotations.Param;
import java.util.List;
public interface ItemMapper extends BaseDao<Item> {
List<Item> listtj(@Param("list") List<Integer> types);
}
| true |
2edeb0151ae88a09e8b66d29420c0e97e95b0adc | Java | precipices/SPM | /文件操作test/FileTest/src/test/ListFileServlet.java | GB18030 | 5,310 | 2.796875 | 3 | [] | no_license | package test;
import java.io.File;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServ... | true |
f834800ec116c0508ed04403613b2ba0f5a13d01 | Java | multi-os-engine/moe-natj | /src/main/java/org/moe/natj/general/ptr/impl/IntPtrImpl.java | UTF-8 | 16,387 | 2.390625 | 2 | [
"Apache-2.0"
] | permissive | /*
Copyright 2014-2016 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... | true |
dd1ffef02c21be895257694da77dfdb6a9f8379d | Java | t0903/attendance | /app/src/main/java/com/lyzyxy/attendance/ScanActivity.java | UTF-8 | 6,031 | 1.960938 | 2 | [] | no_license | package com.lyzyxy.attendance;
import android.content.Intent;
import android.os.Vibrator;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.Toolbar;
import android.util.Log;
import android.view.View;
import android.widget.TextView;
import android.widget.Toast;
... | true |
69cede0e6d96d54485442642808cdfdc721978c3 | Java | pixeldev/fullpvp | /src/main/java/me/pixeldev/fullpvp/commands/FullPVPCommand.java | UTF-8 | 2,682 | 2.390625 | 2 | [] | no_license | package me.pixeldev.fullpvp.commands;
import me.fixeddev.ebcm.parametric.CommandClass;
import me.fixeddev.ebcm.parametric.annotation.ACommand;
import me.fixeddev.ebcm.parametric.annotation.Injected;
import me.fixeddev.ebcm.parametric.annotation.Usage;
import me.pixeldev.fullpvp.Delegates;
import me.pixeldev.fullpvp.f... | true |
c6bc86c5bf4deafb54c7c5f625d278d15724c2ec | Java | raduAndrada/SD-assignment1_2 | /assignment1_2-data-access/src/ro/utcn/sd/assign/one/entities/Flgt.java | UTF-8 | 2,036 | 1.976563 | 2 | [] | no_license | package ro.utcn.sd.assign.one.entities;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import com.goog... | true |
fc6c1693e7851ef5b964c652572b415fe2f468e7 | Java | aaronfedyan/r4intellij | /src/com/r4intellij/typing/PipeInfo.java | UTF-8 | 2,001 | 2.25 | 2 | [
"BSD-2-Clause",
"MIT"
] | permissive | package com.r4intellij.typing;
import com.intellij.psi.PsiElement;
import com.r4intellij.psi.api.RCallExpression;
import com.r4intellij.psi.api.ROperator;
import com.r4intellij.psi.api.ROperatorExpression;
import org.jetbrains.annotations.NotNull;
import java.util.Arrays;
import java.util.List;
import java.util.Objec... | true |
f21f0ae90f144a38340a6ad5baf6133ec63095ce | Java | emretanriverdi/city-guide-app | /app/src/main/java/com/example/android/batumitravelguide/FoodActivity.java | UTF-8 | 1,860 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | package com.example.android.batumitravelguide;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ListView;
import java.util.Objects;
public class FoodActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle savedInstanceState) {
supe... | true |
7f256eef99b399381357b67dc7d6307485a34720 | Java | Parmerlee/SomethingImprotant | /HBMClient/src/main/java/com/bonc/mobile/hbmclient/state/view_switcher/State.java | UTF-8 | 135 | 1.617188 | 2 | [] | no_license | package com.bonc.mobile.hbmclient.state.view_switcher;
public interface State {
public void entry(int index);
public void out();
}
| true |
b2051385370841fe57cc8c56a38a8ab1b6f39146 | Java | newohybat/civ-game-abandoned | /src/test/java/cz/muni/fi/civ/newohybat/bpmn/CitySurplusRulesJUnitTest.java | UTF-8 | 14,325 | 1.820313 | 2 | [] | no_license | package cz.muni.fi.civ.newohybat.bpmn;
import static org.mockito.Mockito.atLeastOnce;
import static org.mockito.Mockito.mock;
import static org.mockito.Mockito.verify;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import org.drools.KnowledgeBase;
import org.drools... | true |
98e99329aeb6440e770be5ba6f275e5ca3b5e547 | Java | 3dsound/arcore-android-sdk | /samples/cloud_anchor_java/app/src/main/java/com/google/ar/core/examples/java/cloudanchor/ResolveDialogFragment.java | UTF-8 | 2,579 | 2.21875 | 2 | [
"BSD-3-Clause",
"Apache-2.0"
] | permissive | /*
* Copyright 2019 Google LLC. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... | true |
95723cf2be37a6a41cd290a8a7ecec1f4544a1c2 | Java | Pratt-Eric/ClearfieldRequestor | /requestor/src/java/com/prt/models/Calendar.java | UTF-8 | 1,738 | 2.125 | 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 com.prt.models;
import java.io.Serializable;
import java.util.ArrayList;
/**
*
* @author P-ratt
*/
public class Calendar i... | true |
f29a8ec89182af59346355c0731f17102ecebf10 | Java | JackMutobu/LeagueGenerator | /LeagueTable/LeagueTable/src/main/java/com/mycompany/leaguetable/MainAplication.java | UTF-8 | 8,640 | 2.984375 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.mycompany.leaguetable;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.L... | true |
bcaea0070e52a31c0b5e130f9063823d0dae7d5d | Java | kgw3577/GraduationProject | /Web/Closet/src/main/java/com/my/closet/user/dao/UserDAO.java | UTF-8 | 1,051 | 2.15625 | 2 | [] | no_license | package com.my.closet.user.dao;
import java.util.List;
import java.util.Map;
import org.springframework.dao.DataAccessException;
import com.my.closet.user.vo.UserVO;
public interface UserDAO {
public List<UserVO> selectAllUsers() throws DataAccessException; //모든 사용자
public UserVO selectThisUser(String userID) ... | true |
dca467b9b5c0dbfa84fd922489afffabcd2e682b | Java | cache117/cs478-perceptron | /src/edu/byu/cstaheli/cs478/toolkit/strategy/StaticStrategy.java | UTF-8 | 1,359 | 2.734375 | 3 | [] | no_license | package edu.byu.cstaheli.cs478.toolkit.strategy;
import edu.byu.cstaheli.cs478.toolkit.LearnerData;
import edu.byu.cstaheli.cs478.toolkit.Matrix;
/**
* Created by cstaheli on 1/20/2017.
*/
public class StaticStrategy extends LearningStrategy
{
private Matrix testData;
public StaticStrategy(LearnerData lear... | true |
9859f738704af6bbabc5aa93956721b130907e2a | Java | helenarth/ssq | /sshwork/PcbMis/src/com/yaxing/Dao/UserDao.java | UTF-8 | 168 | 1.835938 | 2 | [] | no_license | package com.yaxing.Dao;
import com.yaxing.base.BaseDao;
import com.yaxing.model.User;
public interface UserDao extends BaseDao<User>{
User getByNameAndPassword();
}
| true |
32add950e9e3d99bb00cf28049313290ab938f47 | Java | abdallahSQaradeh/Search-for-Jobs | /SFJob/src/RedisJava.java | UTF-8 | 2,660 | 2.953125 | 3 | [] | no_license |
import java.util.ArrayList;
import java.util.HashMap;
import redis.clients.jedis.Jedis;
public class RedisJava {
private HashMap<String,ArrayList<JobNode>> Jobs;
private String[] list_names = {"it","healthcare","social","marketing","communication","media","other","operation","hotel",
"graphicdesign... | true |
0d6c564d9a273d59bd719532372786aa915a4801 | Java | alterloki/solution | /codejam/src/y2013/contest/qualify/ProblemA.java | UTF-8 | 4,214 | 3.171875 | 3 | [] | no_license | /**
* Created by IntelliJ IDEA.
* User: ashevenkov
* Date: 05.04.15
* Time: 22:56
*/
package y2013.contest.qualify;
import java.io.*;
import java.util.Scanner;
/**
* //TESTED
* @author ashevenkov
*/
public class ProblemA {
public static final String TITLE = "A-large-practice";
private static Buffered... | true |
448be2e0615be06bcfbc5ad78d5cddf366b5f09d | Java | lkaymakanov/RegisterService | /RegisterService/src/net/is_bg/ltf/update/register/services/InitProcessorContainer.java | UTF-8 | 2,240 | 2.09375 | 2 | [] | no_license | package net.is_bg.ltf.update.register.services;
import net.is_bg.ltf.update.register.common.results.delduplicateaddress.ClientDelDuplicateResult;
import net.is_bg.ltf.update.register.common.sql.registertourist.v1.RegisterTouristInsertV1;
import net.is_bg.ltf.update.register.tourist.GenerateScriptsUtils;
impor... | true |
e4232ecb6673af3fac58360766b9bd009879d3df | Java | msmtmsmt123/jadx-1 | /f737922a0ddc9335bb0fc2f3ae5ffe93_source_from_JADX/java_files/ex.java | UTF-8 | 1,148 | 1.640625 | 2 | [] | no_license | import java.io.Reader;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
public class ex implements bh {
public ex(cc ccVar) {
}
public String j6() {
return "AIDL";
}
public void DW() {
}
public boolean FH() {
return true;
}
public String[]... | true |
5895d45e212a50fed5bb2160794091cab880572f | Java | Gaetitan/Goldfish | /Goldfish/src/com/polytech/goldfish/businesslogic/manager/ActivityManager.java | UTF-8 | 1,659 | 2.765625 | 3 | [] | no_license | package com.polytech.goldfish.businesslogic.manager;
import java.util.Collection;
import com.polytech.goldfish.businesslogic.business.Activity;
import com.polytech.goldfish.businesslogic.factory.ActivityFactory;
import com.polytech.goldfish.persistence.factoryjdbc.ActivityFactoryJDBC;
import com.polytech.goldfish.uti... | true |
0777108c83877752bb1e541fc7f44807c8fc9127 | Java | jitheshchandra/fms | /src/main/java/com/ssrv/fms/controller/IncidentRegisterController.java | UTF-8 | 7,419 | 1.929688 | 2 | [] | no_license | package com.ssrv.fms.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.s... | true |
29a9e99b31a578b76ff08353b7de0fbd8a66f9b4 | Java | jamesho-tw/demo | /src/main/java/com/example/demo/controller/rest/UserRestController.java | UTF-8 | 2,426 | 2.390625 | 2 | [] | no_license | package com.example.demo.controller.rest;
import com.example.data.user.model.entity.User;
import com.example.data.user.service.UserService;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.spr... | true |
2cbf37746b13bb9448ed2eeec113d2346f557e73 | Java | Easante2/RestaurantFinderApp | /app/src/main/java/uk/ac/aston/restaurantfinderapp/SelectEateryTypeActivity.java | UTF-8 | 391 | 1.742188 | 2 | [] | no_license | package uk.ac.aston.restaurantfinderapp;
import android.support.v4.app.Fragment;
import uk.ac.aston.restaurantfinderapp.Fragments.SelectEateryTypeFragment;
/**
* Created by Emmanuel on 09/04/2016.
*/
public class SelectEateryTypeActivity extends SingleFragmentActivity {
@Override
protected Fragment creat... | true |
95a289520e1f056d4c1ed3c86c3631c84d95650f | Java | derzhylo/githubtestproject | /src/main/java/SignUpPage.java | UTF-8 | 3,217 | 2.40625 | 2 | [] | no_license | import io.qameta.allure.Step;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
public cla... | true |
3ee2152280aded8168a6d86ddd54c912971071eb | Java | Hau-Bold/BikeContract | /src/main/java/statistics/ShowSalesStatistics.java | UTF-8 | 8,951 | 2.609375 | 3 | [] | no_license | package statistics;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLException;
import java.util.Calendar;
import java.util.HashMap;
import java.util.Iterator;
import j... | true |
33390648d9a5d93d1d721ec12decb502540d5e98 | Java | BugsEverywhere/learning | /leetcode/src/main/java/indi/simon/learning/leetcode/动态规划/Quiz264_reviewed.java | UTF-8 | 3,532 | 3.765625 | 4 | [] | no_license | package indi.simon.learning.leetcode.动态规划;
import java.util.Arrays;
/**
* @author chenzhuo(zhiyue)
*/
//todo: 感觉有点数论的意思,我的算法(nthUglyNumber)在1548这个神奇的数字上就不work了,因为计算出来的结果还有质因数31。。。他之前都work。但假使对所有数都work,我的复杂度也高了。
// 官方的题解更加合理,定义三个指针p2, p3, p5,分别表示算到当前所使用的2的个数,3的个数,5的个数。每次迭代计算得到合理的dp[i]时,相应的指针往前移动一步。
public class Quiz... | true |
263629038a7286501b6f271546666396a41ee3c6 | Java | palaksareen/projectt | /onlinehelp/src/main/java/uk/co/o2/onlinehelp/soapclient/helper/SoaConfig.java | UTF-8 | 2,857 | 1.851563 | 2 | [] | no_license | package uk.co.o2.onlinehelp.soapclient.helper;
import org.springframework.stereotype.Component;
import uk.co.o2.onlinehelp.util.DynamicProperties;
@Component
public class SoaConfig {
private String httpsProtocols = DynamicProperties.getProperty("https.protocols");
private Integer soaSoapReadTimeout = Dynamic... | true |
1bcd27125f30698ef8670ea83faf098ebdadfad5 | Java | hopeyone/car-tech | /src/main/java/com/mrhopeyone/domain/Group.java | UTF-8 | 2,692 | 2.46875 | 2 | [] | no_license | package com.mrhopeyone.domain;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.*;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
/**
* A Group.
*/
@... | true |
f1caf9f1b94397e0e00544f961084c7c4e7c2141 | Java | marcobarrios/xocolatav2 | /Xocolata_v2/src/Clases/Productos.java | UTF-8 | 10,244 | 2.359375 | 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 Clases;
/**
*
* @author Marco
*/
public class Productos {
private String codigo = "";
private int marca = 0;
p... | true |
ec8bc5e0caf475abfc58d2b5867ce676e6110a93 | Java | zafrul-ust/tcmISDev | /src/main/java/radian/web/servlets/cmm/CMMSearchMsdsNew.java | UTF-8 | 446 | 1.554688 | 2 | [] | no_license | package radian.web.servlets.cmm;
import radian.tcmis.server7.share.helpers.ServerResourceBundle;
public class CMMSearchMsdsNew extends radian.web.servlets.share.SearchMsdsNew
{
public String getClient()
{
//System.out.println("\n\n============ CMMsearchmsds check it is here....");
return "CMM";
... | true |
703c15c9fc1fcf910f104c916367725a34752824 | Java | Ameg-yag/TLS-Attacker | /TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/protocol/message/PskDheServerKeyExchangeMessage.java | UTF-8 | 3,292 | 1.976563 | 2 | [
"Apache-2.0"
] | permissive | /**
* TLS-Attacker - A Modular Penetration Testing Framework for TLS
*
* Copyright 2014-2017 Ruhr University Bochum / Hackmanit GmbH
*
* Licensed under Apache License 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*/
package de.rub.nds.tlsattacker.core.protocol.message;
import de.rub.nds.modifiablevariable.Mo... | true |
f04cc76ebc319ddc1eeaf5e2acab685ec3b824dd | Java | bharatarora12345/JAVA_PROGRAMMING | /Recursionn/WarmReception.java | UTF-8 | 746 | 2.90625 | 3 | [] | no_license | package Recursion;
import java.util.Scanner;
public class WarmReception {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// no. of customers
int n = sc.nextInt();
// arrival timing
int ar1[] = new int[n];
for (int i = 0; i < ... | true |
665b5a601fa6879a95b32b7dc49092fdc3e04d93 | Java | TatsianaKlasevich/Logistic_Base | /main/java/com/klasevich/lb/creator/DeliveryTruckFactory.java | UTF-8 | 1,267 | 2.46875 | 2 | [] | no_license | package com.klasevich.lb.creator;
import com.klasevich.lb.entity.DeliveryTruck;
import com.klasevich.lb.entity.ProductType;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.util.List;
public class DeliveryTruckFactory {
private static final Logger logger =... | true |
a92ec22175555528e3df0b253c55269ef56dd317 | Java | niksan870/Proyecto_Mingeso | /Back/Spring/src/main/java/com/grupo3/backfcyp/services/UserService.java | UTF-8 | 8,516 | 2.671875 | 3 | [] | no_license | package com.grupo3.backfcyp.services;
import com.grupo3.backfcyp.models.*;
import com.grupo3.backfcyp.models.Class;
import com.grupo3.backfcyp.repositories.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
impo... | true |
5b8e807807292ad17827f33f502e83b244573e5e | Java | adi-sk/Assignments | /assignments/test/src/com/assignment/FullTimeEmployee.java | UTF-8 | 1,043 | 3 | 3 | [] | no_license | package com.assignment;
public class FullTimeEmployee extends Employee {
private int salary,pf;
public FullTimeEmployee(String firstName, String lastName, int age, int empId, String designation,int salary,int pf) {
super(firstName, lastName, age, empId, designation);
// TODO Auto-generated constructor st... | true |
746fe50d058a8ed68e312fc94114cc8ded6a2763 | Java | Hunter-Bobeck/Flash_Mob | /banners/Fake_Loading_Bar.java | UTF-8 | 1,722 | 2.703125 | 3 | [] | no_license | package banners;
import utilities.*;
public class Fake_Loading_Bar
{
public Fake_Loading_Bar()
{
// 0% //
System.out.print("▯▯▯▯▯▯▯▯▯▯ 0% ");
Wait.milliseconds(Random.integer_to(700));
// 10% //
System.out.print("\r");
System.out.print("▮▯▯▯▯▯▯▯▯▯ 10% ");
Wait.milliseconds(Random.integer_to(50... | true |
055eb881938a8d86c5cf0b9cb530d5178e0b20c7 | Java | ihe-brasil/gazelle | /gazelle-tm/gazelle-tm-ejb/src/main/java/net/ihe/gazelle/tm/gazelletest/bean/RoleInTestSystemInSession.java | UTF-8 | 2,794 | 2.171875 | 2 | [] | no_license | package net.ihe.gazelle.tm.gazelletest.bean;
import net.ihe.gazelle.tm.gazelletest.model.definition.RoleInTest;
import net.ihe.gazelle.tm.systems.model.SystemInSession;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.io.Serializable;
public class RoleInTestSystemInSession implements Serializable... | true |
1d6fcf2179ff84215238f3b8466b9c548c82f025 | Java | patrickpycheung/credit-limit | /src/main/java/com/somecompany/service/CreditLimitService.java | UTF-8 | 6,041 | 2.828125 | 3 | [
"MIT"
] | permissive | package com.somecompany.service;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map.Entry;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereoty... | true |
ed52f87ccbd5285754d8b8166eeb5cf35a9b3c25 | Java | 06022015/forealert | /forealert-intf/src/main/java/com/forealert/intf/entity/GroupMemberEntity.java | UTF-8 | 2,195 | 2.03125 | 2 | [] | no_license | package com.forealert.intf.entity;
import com.couchbase.client.java.repository.annotation.Field;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.forealert.intf.entity.type.PrivilegeType;
import org.springframework.data.couchbase.core.mapping.Document;
import javax.xml.bind.annotation.XmlRootElement;
im... | true |
1b64b97afdd44e53b31c6cba91106b72488a52d5 | Java | nickmage/Battleship | /src/main/java/com/app/exception/WinnerException.java | UTF-8 | 114 | 1.84375 | 2 | [] | no_license | package com.app.exception;
public class WinnerException extends Exception{
public WinnerException(){
}
}
| true |