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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a7e4ae9d017e37fbc5e53e24fb2d449104f56fc5 | Java | Firuz-Avg/Summer2019OnlineTestNGSeleniumProject | /src/test/java/tests/day1/Practice01.java | UTF-8 | 896 | 2.015625 | 2 | [] | no_license | package tests.day1;
import io.github.bonigarcia.wdm.WebDriverManager;
import org.openqa.selenium.By;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
public class Practice01 {
public static void main(Str... | true |
c94f38b4d19b0271e1690bb6dcd2d0d2224ee0a6 | Java | GamiiisKth/MarketPlace | /src/market/Item.java | UTF-8 | 920 | 2.796875 | 3 | [] | no_license | package market;
import java.io.Serializable;
import java.util.UUID;
/**
* Created by joshuaPro on 2015-11-25.
*/
public class Item implements Serializable {
private String name;
private float price;
private String owner;
public Item(String ItemName, float price, String owner ){
this.name=... | true |
74a42520e8ed3f893f57a4e132cf7a8f1b7d4326 | Java | League-level3-student/level3-module2-ugliestcerberus | /src/_00_Sorting_Algorithms/_00_SortedArrayChecker.java | UTF-8 | 2,391 | 4.28125 | 4 | [] | no_license | package _00_Sorting_Algorithms;
import java.util.Random;
public class _00_SortedArrayChecker {
//1. Write a static method called intArraySorted.
// This method takes in an array of integers
// and it returns a boolean.
// The method returns true if the integer
// array is in ascending order and false ... | true |
33c849178c1c2715009225da0b6ad739cd2a3f5f | Java | bellmit/ego-survey | /src/main/java/ru/airlabs/ego/survey/service/impl/UserInvitationServiceImpl.java | UTF-8 | 12,948 | 2.09375 | 2 | [] | no_license | package ru.airlabs.ego.survey.service.impl;
import org.apache.commons.lang3.time.DateUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.SqlOutParameter;
import org.springframework.jdbc.core.SqlParameter;
im... | true |
456590dda8ddf3dfb4b32e9deb10dfb3bad3ebb8 | Java | huizai0613/GoodJobs | /campusjobs/src/main/java/cn/goodjobs/campusjobs/activity/XuanjianghuiActivity.java | UTF-8 | 1,757 | 1.960938 | 2 | [] | no_license | package cn.goodjobs.campusjobs.activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import org.json.JSONObject;
import java.util.ArrayList;
import cn.goodjobs.campusjobs.R;
import cn.goodjobs.common.activity.personalcenter.BasePersonalListAc... | true |
ecca2451abf08e7255c77d699cdcde5308a1ecc7 | Java | Ankita2505/Core-Java-Assignment-2.3 | /src/Assignment2_3/Assignment2_3.java | WINDOWS-1252 | 937 | 4.0625 | 4 | [] | no_license | package Assignment2_3;
/*
* program to print the X pattern
*/
import java.util.Scanner;//importing scanner class
public class Assignment2_3
{
public static void main(String[] args) //Start of Main Class
{
// TODO Auto-generated method stub
int i,j,n;
Scanner sc=new Scanner(System.in);//creating ob... | true |
124620a478f324e2dd5a52cfb0153d9642f0ffda | Java | youcyousyunn/eshop | /src/main/java/com/ycs/coobo/dao/IAdInfoDao.java | UTF-8 | 293 | 1.671875 | 2 | [] | no_license | package com.ycs.coobo.dao;
import java.util.List;
import java.util.Map;
import com.ycs.coobo.domain.po.AdInfoPo;
/**
* 广告信息DAO接口
* @author youcyousyunn
* @date 2018年1月28日
*/
public interface IAdInfoDao {
List<AdInfoPo> queryAdLst(Map<String, Object> paramMap);
}
| true |
0f3551ec6a2603826c85bde701e5221e7b9f3815 | Java | objectledge/coral | /coral-datatypes/src/main/java/org/objectledge/coral/datatypes/GenericResourceQueryHandler.java | UTF-8 | 3,892 | 2.03125 | 2 | [] | no_license | package org.objectledge.coral.datatypes;
import java.util.List;
import org.objectledge.coral.entity.Entity;
import org.objectledge.coral.schema.AttributeDefinition;
import org.objectledge.coral.schema.AttributeFlags;
import org.objectledge.coral.schema.ResourceClass;
public class GenericResourceQueryHandler
exte... | true |
c7f7a55d20e0876405b4536c89f3c6e07f140c82 | Java | jeahmairi/Laundress | /app/src/main/java/com/example/user/laundress2/ShopPostsList.java | UTF-8 | 1,085 | 2.109375 | 2 | [] | no_license | package com.example.user.laundress2;
public class ShopPostsList {
private String name;
private String meters;
private String postDate;
private String message;
private String Contact;
private String image;
public String getName() {
return name;
}
public void setName(String ... | true |
377e27e854ff012cfede0dd2f8bab28015469b17 | Java | Tedsoul/FlyChessModel | /app/src/main/java/protocol/BugMain.java | UTF-8 | 1,739 | 2.921875 | 3 | [] | no_license | package protocol;
import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;
import java.io.Serializable;
import java.net.ServerSocket;
import java.net.Socket;
enum test implements Serializable {
A(10), B(1);
private int index[]=new int[10];
test(int index) {
//th... | true |
c232874961d130afcf7d8e771bcccf3562796cc8 | Java | sy8000/dlc20200908 | /src/main/java/cn/besbing/Entities/NcBasprodPointExample.java | UTF-8 | 24,748 | 2.1875 | 2 | [] | no_license | package cn.besbing.Entities;
import java.util.ArrayList;
import java.util.List;
public class NcBasprodPointExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public NcBasprodPointExample() {
oredCriteria = new ArrayList<Criteria>();
... | true |
bb588b31bee02db2586dc6560317c549f45dbe57 | Java | guilhermediasdev/TinnovaApi | /src/main/java/dev/gustavodias/tinnova/controllers/VeiculoController.java | UTF-8 | 4,021 | 2.328125 | 2 | [] | no_license | package dev.gustavodias.tinnova.controllers;
import dev.gustavodias.tinnova.models.Veiculo;
import dev.gustavodias.tinnova.services.VeiculoService;
import io.swagger.annotations.ApiOperation;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.Response... | true |
997fd162f115e23b6435a3775e82059630beb674 | Java | EvertonQuadros/br.edu.ifrs.restinga.Sempre | /core/src/br/edu/ifrs/restinga/sempre/examples/planedodger/Enemy.java | UTF-8 | 1,044 | 2.546875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package br.edu.ifrs.restinga.sempre.examples.planedodger;
import br.edu.ifrs.restinga.sempre.classes.base.BaseActor;
import com.badlog... | true |
a34abf632ee1dc9b8bf836efe7cf9fb05877eed6 | Java | subrosa/subrosa | /apps/api/src/main/java/com/subrosagames/subrosa/security/SubrosaAclPermissionEvaluator.java | UTF-8 | 2,580 | 2.390625 | 2 | [
"MIT"
] | permissive | package com.subrosagames.subrosa.security;
import java.io.Serializable;
import java.util.Map;
import org.springframework.security.access.PermissionEvaluator;
import org.springframework.security.core.Authentication;
import org.springframework.stereotype.Component;
import com.subrosagames.subrosa.security.permission.P... | true |
48cb961f8a23ee77c475b09c2f6d96a0f9da5367 | Java | mateusteixeira/digital-wallet | /src/test/java/br/com/dwallet/model/dto/ErrorHandleDTOTest.java | UTF-8 | 722 | 2.359375 | 2 | [] | no_license | package br.com.dwallet.model.dto;
import org.junit.jupiter.api.Test;
import java.io.IOException;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotNull;
class ErrorHandleDTOTest {
private static final String PATH_TO_FILE = "/errorHandle.json";
... | true |
cf6381c9d89a7007453c3361cda73b8a02abbe23 | Java | knightliux/mbui4 | /src/com/bestbaan/moonbox/util/DbUtil.java | UTF-8 | 4,407 | 2.359375 | 2 | [] | no_license | package com.bestbaan.moonbox.util;
import java.util.ArrayList;
import java.util.List;
import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteDatabase.CursorFactory;
import android.database.sqlite.SQLiteOpenHelper;
i... | true |
b25667cebd34d56f7e3e4c1bf20a95b4be9a9e64 | Java | dashuizhu/mygitwork | /TestLock/src/com/zby/chest/bluetooth/BluetoothLeServiceMulp.java | GB18030 | 31,170 | 1.585938 | 2 | [
"Apache-2.0"
] | permissive | package com.zby.chest.bluetooth;
/*
* Copyright (C) 2013 The Android Open Source Project
*
* 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/LICENS... | true |
32b4f19e3bee9a328090a734d5ca748e3cea859e | Java | miguelfagundez/RetrofitMVP | /app/src/main/java/com/devproject/fagundezdev/recyclerviewimages/RetrofitMVP.java | UTF-8 | 835 | 2.453125 | 2 | [] | no_license | package com.devproject.fagundezdev.recyclerviewimages;
import com.devproject.fagundezdev.recyclerviewimages.model.Friend;
import java.util.ArrayList;
import retrofit2.http.Url;
/*
* Interface name: RetrofitMVP
* Base interface for implementing MVP design architecture
* @author Miguel Fagundez
* @version 1.0
*... | true |
8b597ba59fc7e5d82eb47ab6a978719c2b9c0a1e | Java | nagarjunakuppala/MovieFlex | /src/main/java/info/vdsi/nags/app/MovieflexApp.java | UTF-8 | 431 | 1.625 | 2 | [] | no_license | package info.vdsi.nags.app;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@EnableAutoConfiguration
@SpringBootApplication
public class MovieflexApp {
public static void mai... | true |
190572365f8e25006c3c24c78626a759ee0e76e6 | Java | ishika-patel/JavaBean | /Unit4 (OS)/HWCheck.java | UTF-8 | 478 | 3.21875 | 3 | [] | no_license |
/**
* Write a description of class HWCheck here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class HWCheck
{
public static void main(String[] args)
{
int[] scores = new int[3];
int sum = 0;
scores[0] = 8;
scores[1] = 5;
scores[... | true |
1b26402ee994c9336bb3da8e88bd73bdd4142cd8 | Java | dzaco/DistributedSystem | /src/giedronowicz/server/ServerTCP.java | UTF-8 | 1,817 | 3.0625 | 3 | [] | no_license | package giedronowicz.server;
import giedronowicz.client.ClientHandler;
import giedronowicz.client.ClientTCP;
import giedronowicz.client.IClient;
import giedronowicz.console.Logger;
import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;
import java.util.ArrayList;
import java.util.List;
import java.ut... | true |
43eccc4401cd1fde836dc995a277a62f359eaa2e | Java | gzmarkchoi/java-8-features | /src/main/java/com/mci/commonerrors/collection/SubList.java | UTF-8 | 1,733 | 3.59375 | 4 | [] | no_license | package com.mci.commonerrors.collection;
import java.util.ArrayList;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.IntStream;
public class SubList {
private static List<List<Integer>> data = new ArrayList<>();
private static void wrong() {
List<Integer> list = In... | true |
98905b8b0c2263991a285272a5355a25d3c5c758 | Java | Olehqa/newskeliaauto | /src/main/java/homeworks/foursection/agregation/Main.java | UTF-8 | 473 | 2.984375 | 3 | [] | no_license | package homeworks.foursection.agregation;
public class Main {
public static void main(String[] args) {
Company skelia = new Company ( "Skelia" , 15 );
Employee empl3 = new Employee ( );
Employee empl4 = new Employee ( "Vasylyna" , "Kodivkska" );
String secondName = ... | true |
64cb5a822be3a632fa9695487f305ada73f519e5 | Java | zzk123/design_patterns | /src/com/zzk/creational/builder/builderpattern/Client.java | UTF-8 | 430 | 2.671875 | 3 | [] | no_license | package com.zzk.creational.builder.builderpattern;
public class Client {
public static void main(String[] args) {
ActorBuilder ab; //针对抽象建造者编程
ab = (ActorBuilder) XMLUtil.getBean(); //反射生成具体建造者对象
ActorController ac = new ActorController(); //通过指挥者创建完整的建造者对象
Actor actor;
actor = ac.construct(ab);
... | true |
b485bcf2dc5b151d664f87d75a164be245993dfd | Java | limkk90/CapstonAdroid | /app/src/main/java/org/yju/myapplication/data/Board.java | UTF-8 | 2,657 | 2.25 | 2 | [] | no_license | package org.yju.myapplication.data;
import android.os.Build;
import android.util.Log;
import androidx.annotation.RequiresApi;
import com.fasterxml.jackson.databind.ObjectMapper;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.Date;
import java.... | true |
293db8fd987c45739cd68434f20d667defe8fc78 | Java | raminduw/CountryList-mvp | /app/src/main/java/countrylist/raminduweeraman/com/mvp/app/presenters/CountryListPresenter.java | UTF-8 | 5,257 | 2.40625 | 2 | [] | no_license | package countrylist.raminduweeraman.com.mvp.app.presenters;
import java.util.List;
import countrylist.raminduweeraman.com.mvp.app.contractors.CountryListActivityContract;
import countrylist.raminduweeraman.com.mvp.app.repository.CountryRepository;
import countrylist.raminduweeraman.com.mvp.app.repository.remote.netwo... | true |
fc0cb8fb6662ee71185338b8379a32fb33db4fc1 | Java | janosdegi/springframework_di_demo | /src/test/java/guru/springframework/examplebeans/SpringBootApplicationPropertyDataSourceTest.java | UTF-8 | 853 | 2.015625 | 2 | [] | no_license | package guru.springframework.examplebeans;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Created by jd on 2018.09.27..
*/
public class SpringBootApplicationPropertyDataSourceTest {
SpringBootApplicationPropertyDataSource springBootAppPropDataSource;
@Before
p... | true |
ff30c07fad1591799bd4d1d5b0bf3dad3edd1cdf | Java | MariuszMarczewski/PizzaItaliana | /src/pl/Pizza/PizzaApp.java | UTF-8 | 1,595 | 3.65625 | 4 | [] | no_license | package pl.Pizza;
import pl.Pizza.Pizza;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class PizzaApp {
public void sumOrder() {
List<Pizza> pizzas = new ArrayList<>();
pizzas.add(new Pizza("Margarita", 15));
pizzas.add(new Pizza("Nie-Hawajska", 59)... | true |
e9b3d02180b43fcf3a8ce172f2f095557f1ec610 | Java | ryvengray/JAVA-000 | /Week_05/spring/src/main/java/org/example/bean/Apple.java | UTF-8 | 155 | 2.140625 | 2 | [] | no_license | package org.example.bean;
import lombok.extern.slf4j.Slf4j;
@Slf4j
public class Apple {
public void eat() {
log.info("Eat apple");
}
}
| true |
cf9cf734a94cf71c70b1d259af5d987149afc07e | Java | kaattaalan/Inventory-Tracking | /src/main/java/com/rm/inventorytracking/domain/Item.java | UTF-8 | 1,672 | 2.578125 | 3 | [] | no_license | package com.rm.inventorytracking.domain;
import javax.persistence.*;
//oluşturduğumuz database için entity olacak
@Entity
public class Item {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id", nullable = false, updatable = false)
private long id;
@Column(name = "code", nu... | true |
8797e3d1c715dc79a4e7a4b0a11609db24d2253d | Java | Kawser-nerd/CLCDSA | /Source Codes/CodeJamData/14/12/3.java | UTF-8 | 4,596 | 2.828125 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class B {
FastScanner in;
PrintWriter out;
Random rnd = new Random(123);
void go(ArrayList<Integer>[] g, int v, int p, int[] sz, int[] dp) {
sz[v]++;
int[] costAlive = new int[3];
costAlive[1] = costAlive[2] = Integer.MA... | true |
36e9d679fdf5530d28d598ee029cbc515af9b172 | Java | Lv-528-TAQCJava/testNewsGreenCityClient | /src/main/java/com/ss/greencity/pageobjects/IAnonymousPO.java | UTF-8 | 493 | 2.046875 | 2 | [] | no_license | package com.ss.greencity.pageobjects;
import com.ss.greencity.locators.HeaderLocators;
import org.openqa.selenium.WebDriver;
/**
* An additional functionality for any page object for a not logged in user.
* Use for pages which could be accessed by anonymous users.
*/
interface IAnonymousPO {
default HeaderAnon... | true |
ed3377ed13097074939976097ec3f9ccd4221341 | Java | wzmyyj/OS | /app/src/main/java/com/osmeet/os/view/fragment/UserInfoFragment.java | UTF-8 | 2,539 | 2.015625 | 2 | [] | no_license | package com.osmeet.os.view.fragment;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.widget.FrameLayout;
import com.osmeet.os.R;
import com.osmeet.os.app.bean.Story;
import com.osmeet.os.app.bean.User;
import com.osmeet.os.base.fragment.BaseFragment;
import com.osmeet.os.contract.U... | true |
d43a4e3c036fc1d4e1a45e84de966b5c8e19e16a | Java | 95thcobra/runescape-mobile-client | /p000/Record.java | UTF-8 | 6,493 | 2.0625 | 2 | [] | no_license | package p000;
import java.io.InputStream;
import java.io.OutputStreamWriter;
import java.net.URL;
import java.net.URLConnection;
/* compiled from: hz */
public class Record {
public static final int APPLICATION_EFFECTIVE_DATE = 37;
static final int EMPTY = -1;
public static final int LONGEST_PAST_TIME = 2... | true |
072fba6582a97089d6098c94c9f3a7073bebab83 | Java | VineshChauhan24/Mobile-Desktop-Web-App | /Desktop/Watchable/com/comcast/test/app/testCases/channelPage/VerifyChannelDetailPageContent.java | UTF-8 | 6,379 | 2.25 | 2 | [] | no_license | package comcast.test.app.testCases.channelPage;
import static org.junit.Assert.assertTrue;
import org.junit.Test;
import org.openqa.selenium.By;
import comcast.test.app.common.XpathObjectRepo;
import comcast.test.app.common.AssertionRepo.common.AssertionRepoFunctions;
import comcast.test.app.common.commonFuncti... | true |
3078009cd9d623d9396b66d244f752d85a688911 | Java | lilianteixeira/Hotel-Urbano-de-Gotemburgo-HUG---Projeto | /src/restaurante/Refeicao.java | UTF-8 | 249 | 2.234375 | 2 | [] | no_license | package restaurante;
public interface Refeicao extends Comparable<Refeicao>{
public String getNome();
public void setNome(String nome);
public double getValor();
public String getDescricao();
public void setDescricao(String descricao);
} | true |
8ff349dca99bcc687eef46a622c226ae629c3936 | Java | kiwiko123/jdashboard | /src/main/java/com/kiwiko/jdashboard/framework/codeanalysis/configurations/api/interfaces/DependencyResolvingException.java | UTF-8 | 358 | 2 | 2 | [] | no_license | package com.kiwiko.jdashboard.framework.codeanalysis.configurations.api.interfaces;
public class DependencyResolvingException extends RuntimeException {
public DependencyResolvingException(String message) {
super(message);
}
public DependencyResolvingException(String message, Throwable cause) {
... | true |
a7e115e7e090fa963128341058554aea18c76731 | Java | AlexisDevMaster/Optimisation | /src/utils/ObjectifCalulator.java | UTF-8 | 3,061 | 3.046875 | 3 | [] | no_license | package utils;
import entite.*;
import java.util.ArrayList;
public class ObjectifCalulator {
/***
* Attribut qui permet d'enregistrer les valeurs des entités étuidiées (ex: Temps, Cout, Ratio)
*/
private ArrayList<Float> coeffObjectif;
private Athletisme athletisme;
private Basket basket;
... | true |
7bdc154d802f615fa15c214e498b3bb2f8633517 | Java | arachman/evil | /InterferenceGraph.java | UTF-8 | 5,710 | 2.8125 | 3 | [] | no_license | import java.io.*;
import java.util.*;
public class InterferenceGraph{
private HashMap<String, Node<Register>> nodes;
private CFG cfg;
private static final String[] color = {"%l0", "%l1", "%l2", "%l3", "%l4", "%l5", "%l6", "%l7"};
public InterferenceGraph(CFG cfg){
nodes = new HashMap<String, Node<Register>> (... | true |
021c20459988bf140b9c73812baaaca3bdcb9b60 | Java | youngag9/DogLight | /DogsLight/app/src/main/java/com/example/user/dogslight/MyInfo.java | UTF-8 | 434 | 2.8125 | 3 | [] | no_license | package com.example.user.dogslight;
// 나의 정보를 관리하는 메뉴 클래스
public class MyInfo {
// 클래스에 들어갈 내용을 String형으로 선언한다.
String infoText;
public MyInfo(String infoText) {
this.infoText = infoText;
}
public String getInfoText() {
return infoText;
}
public void setInfoText(String in... | true |
7b9e60361348266355c1f74d110086389c82c6c6 | Java | ArminWindlin/mind-touch | /src/Menu.java | UTF-8 | 2,226 | 3.03125 | 3 | [] | no_license | import javafx.scene.Group;
import javafx.scene.Scene;
import javafx.scene.canvas.Canvas;
import javafx.scene.canvas.GraphicsContext;
import javafx.scene.paint.Color;
import javafx.scene.text.Font;
import javafx.scene.text.FontWeight;
import javafx.scene.text.TextAlignment;
import java.util.Objects;
class Menu {
... | true |
e8a316a0c144e38deab44612ec24bc2ad1c3b0b8 | Java | gitter-badger/imagej-ops | /src/main/java/net/imagej/ops/logic/LogicNamespace.java | UTF-8 | 3,700 | 2.34375 | 2 | [
"BSD-2-Clause"
] | permissive | /*
* #%L
* ImageJ software for multidimensional image processing and analysis.
* %%
* Copyright (C) 2014 - 2015 Board of Regents of the University of
* Wisconsin-Madison, University of Konstanz and Brian Northan.
* %%
* Redistribution and use in source and binary forms, with or without
* modification, are permi... | true |
8cf99ac22de3d99cd51d48e5145c602ceb76880a | Java | jinyu52370/SwordFingerOffer | /src/main/java/com/jinyu/Q12.java | UTF-8 | 898 | 3.578125 | 4 | [] | no_license | package com.jinyu;
/**
* @author <a href="jinyu52370@163.com">JJJ</a>
* @date 2020/8/15 10:32
* <p>
* 给定一个double类型的浮点数base和int类型的整数exponent。求base的exponent次方。
* <p>
* 保证base和exponent不同时为0
*/
public class Q12 {
public double Power(double base, int exponent) {
if (base == 0 && exponent == 0... | true |
da8108d790870a368e2800111dacb786c8e5cd5f | Java | KostaJavaEdu/SpringWorkspace | /step15_MyBatisDynamic/src/main/java/kosta/domain/EmpDTO.java | UTF-8 | 400 | 2.046875 | 2 | [] | no_license | package kosta.domain;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class EmpDTO {
//empno, ename, job, sal, hiredate
private int empno;
private Strin... | true |
b2c9108b509613f673366ce5457d96b1669885e2 | Java | ledongthuc/l8nk | /src/main/java/net/l8nk/controller/HttpBasedController.java | UTF-8 | 818 | 2.15625 | 2 | [] | no_license | package net.l8nk.controller;
import java.io.IOException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import net.l8nk.common.Constants;
import net.l8nk... | true |
d053a781ac405368c06b6aa501cbab8cfaa6f333 | Java | gfreguglia/beertech.bancobeer | /src/main/java/br/com/beertechtalents/lupulo/pocmq/controller/dto/NovaOperacaoDTO.java | UTF-8 | 1,046 | 2 | 2 | [] | no_license | package br.com.beertechtalents.lupulo.pocmq.controller.dto;
import br.com.beertechtalents.lupulo.pocmq.controller.dto.validator.ValueOfEnum;
import br.com.beertechtalents.lupulo.pocmq.model.Operacao;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
impor... | true |
07d1fe86079d2007ee904f83cbd45a52d0c6393f | Java | Team3176/2021_Robot_Code | /Akriveia/src/main/java/frc/robot/subsystems/Transfer.java | UTF-8 | 2,812 | 2.78125 | 3 | [] | no_license | package frc.robot.subsystems;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
import frc.robot.constants.TransferConstants;
import edu.wpi.first.wpilibj.DigitalInput;
import edu.wpi.first.wpilibj.DoubleSolenoid;
import edu.wpi.first.wpilibj.DoubleSolenoid.Value;
import com.ctre.phoenix.motorcontrol.ControlMode;
... | true |
515484179fc72614649f071a92c5c5f4000f9158 | Java | ghostanonymous111/AndroidProjects | /BaseView/app/src/main/java/com/github/why168/baseview/widget/BaseRowDescriptor.java | UTF-8 | 209 | 1.671875 | 2 | [
"MIT"
] | permissive | package com.github.why168.baseview.widget;
/**
* BaseRowDescriptor
*
* @author Edwin.Wu
* @version 2016/5/28 21:15
* @since JDK1.8
*/
public class BaseRowDescriptor {
public RowActionEnum action;
}
| true |
55fffc6e5a12d6a46b032d6ab9c35472e53dc61f | Java | danhlephuoc/rdfonthego | /rdf_core/src/com/hp/hpl/jena/rdf/model/ModelChangedListener.java | UTF-8 | 3,127 | 2.171875 | 2 | [] | no_license | /*
(c) Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP
[See end of file]
$Id: ModelChangedListener.java,v 1.17 2009/01/28 14:37:08 chris-dollin Exp $
*/
package com.hp.hpl.jena.rdf.model;
import java.util.*;
/**
The interface for classes that listen for... | true |
58e88112e0b9330c0987c2873b7c742aacf51656 | Java | Aillerr/PrjtFourmis | /PrjtFourmis/src/AffichageGraphique.java | UTF-8 | 214 | 2.328125 | 2 | [] | no_license | public class AffichageGraphique {
public static Monde m;
public AffichageGraphique(Monde m) {
this.m=m;
}
public void AffFenetre(int l, int h) {
Fenetre f = new Fenetre(l,h);
f.setFrameMenu();
}
}
| true |
00c7a19a1a370916e2eef9542680ba5f6d9d11a7 | Java | bushemi/Epam_Java_Summer_2019 | /pet-project/src/main/java/com/bushemi/service/implementations/QuestionServiceImpl.java | UTF-8 | 1,766 | 2.296875 | 2 | [] | no_license | package com.bushemi.service.implementations;
import com.bushemi.converters.OptionsConverter;
import com.bushemi.converters.QuestionConverter;
import com.bushemi.dao.interfaces.OptionDao;
import com.bushemi.dao.interfaces.QuestionDao;
import com.bushemi.model.OptionForSessionDto;
import com.bushemi.model.QuestionForSes... | true |
53d96555f5efd8fa59a25e8a01f41c4b976b0d50 | Java | PeopleVitry/Social-Network-Android-Version | /GlobalProject/src/com/formation/projetglobal/test.java | ISO-8859-1 | 7,112 | 1.921875 | 2 | [] | no_license | /*package com.formation.projetglobal;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.ClientProtocolException;
impor... | true |
e0cafa0bf6cf72b48ee5882dc1cd98770bd00520 | Java | KevinPozitive/laba1 | /src/demo/parallel/Test/ComplexTestSQ.java | UTF-8 | 415 | 2.40625 | 2 | [] | no_license | package demo.parallel.Test;
import demo.parallel.Complex;
import org.junit.Test;
import static org.junit.Assert.*;
public class ComplexTestSQ {
@Test
public void lengthSQ() {
Complex testNum1 = new Complex(0,0);
double length = testNum1.lengthSQ();
if(length == 0)
System.o... | true |
7d5d1669b7dd3b8ffb243a10f4700c7263285d4e | Java | leaderwing/kt-kimres | /integrate/VNKIMService/QueryTriple.java | UTF-8 | 6,578 | 2.21875 | 2 | [] | no_license | package org.me.VNKIMService;
import java.io.BufferedReader;
import java.io.FileReader;
//import org.apache.xerces.parsers.DOMParser;
//import org.w3c.dom.Document;
//import org.w3c.dom.Element;
//import org.w3c.dom.NodeList;
/*class TripleType
{
public ItemType subject = null;
public ItemType rel = null;
public Item... | true |
f0ffa31d2c31edf59f0b72e7988cf7d5324ea518 | Java | lubinsu/kafkaData | /kafkaConsumer/src/main/java/com/maiya/kafka/consumer/ConsumerCommonTask_2.java | UTF-8 | 20,140 | 1.921875 | 2 | [] | no_license | package com.maiya.kafka.consumer;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.maiya.kafka.consumer.bean.HBaseDelKey;
import com.maiya.kafka.consumer.bean.HBaseKey;
import com.maiya.kafka.consumer.hbase.HBaseClient;
import com.maiya.kafka.... | true |
a11cc2f11cd779cf132757ec9942190ea84c299e | Java | rick-long/loccitane | /src/org/spa/vo/category/CategoryNoteVO.java | UTF-8 | 9,973 | 2.296875 | 2 | [] | no_license | package org.spa.vo.category;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.spa.model.product.Category;
import org.spa.model.product.Product;
import com.spa.constant.CommonConstant;
import org.spa.service.product.CategoryServ... | true |
ce973e2945a05293ec3f85e5fcc6f3daa808425d | Java | WickedPeanuts/SO-TS | /src/br/poli/sots/swarmintelligence/fss/FishSchoolSearch.java | UTF-8 | 13,575 | 2.765625 | 3 | [] | no_license | package br.poli.sots.swarmintelligence.fss;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import br.poli.sots.*;
import br.poli.sots.swarmintelligence.pso.utils.*;
import br.poli.sots.swarmintelligence.utils.AbstractFunction;
import br.poli.sots.swarmintelligence.utils.EFunction;
import ... | true |
1b53b57f64463bd9cace17c11ff1221cf38fafa5 | Java | nbbeeken/wolfieball | /src/wolfieball/gui/MainGUI.java | UTF-8 | 44,811 | 1.726563 | 2 | [] | no_license | /*
* Neal Beeken
* ID: 109069890
* CSE 219 Stony Brook
* Prof. Richard McKenna
*/
package wolfieball.gui;
import java.io.IOException;
import java.net.URL;
import java.text.NumberFormat;
import java.util.Arrays;
import java.util.List;
import java.util.ResourceBundle;
import java.util.logging.Level;
import java.ut... | true |
6f579fa4f7d50a1f9585aff5faca1a8a999648d4 | Java | milicasiriski/pharmacy-backend | /src/main/java/rs/ac/uns/ftn/isa/pharmacy/demo/util/RatingFilter.java | UTF-8 | 163 | 1.757813 | 2 | [] | no_license | package rs.ac.uns.ftn.isa.pharmacy.demo.util;
public enum RatingFilter {
NONE,
ONE_STAR,
TWO_STARS,
THREE_STARS,
FOUR_STARS,
FIVE_STARS
}
| true |
a08105202d15a2932b9bfbec3f0a1ed0c0a0e7d2 | Java | itmrchow/spring-boot-30day | /springboot30day/src/main/java/com/springboot30day/other/rabbitmq/ConnectionUtil.java | UTF-8 | 890 | 2.609375 | 3 | [] | no_license | package com.springboot30day.other.rabbitmq;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
public class ConnectionUtil {
static final String HOST = "127.0.0.1";
static final int PORT = 5672;
... | true |
8c68a40b2474c84ec8c6045296968e7abe125122 | Java | didier-tp/m2iDefJavaFullStack | /TpSpringBootJpa/src/main/java/com/m2i/tp/dao/DaoClient.java | UTF-8 | 321 | 1.859375 | 2 | [] | no_license | package com.m2i.tp.dao;
import java.util.List;
import com.m2i.tp.entity.Client;
public interface DaoClient /* extends CrudRepository<Client, Long> */ {
Client findById(Long num);
List<Client> findAll();
void save(Client cli);//au sens saveOrUpdate (selon num/id null ou pas)
void deleteById(Long numCli);
}... | true |
049d282b0dee4edbd93555d9f9a9bda2c2393ed2 | Java | Jiaran/Springes | /src/jboxGlue/Factory/Factory.java | UTF-8 | 2,815 | 3.203125 | 3 | [
"MIT"
] | permissive | package jboxGlue.Factory;
import java.util.HashMap;
import jboxGlue.Assembly;
/*
* The Factory class is the super class for different factory in which
* create must be implemented. To create an object, as we are reading
* xml file where everything is string, client needs to pass a hash map.
* The hashmap store t... | true |
cf150551242ee1cdb68b3d27728fd31171cd631d | Java | ncats/gsrs-play | /app/ix/core/search/text/Lucene4IndexServiceFactory.java | UTF-8 | 419 | 2.046875 | 2 | [
"Apache-2.0"
] | permissive | package ix.core.search.text;
import java.io.File;
import java.io.IOException;
public class Lucene4IndexServiceFactory implements IndexerServiceFactory {
@Override
public IndexerService createInMemory() throws IOException {
return new Lucene4IndexService();
}
@Override
public IndexerServic... | true |
b6582d5175ffd1a9aad337703da3b31c88d58ead | Java | Renn/MeetHere | /src/main/java/com/webapp/model/Building.java | UTF-8 | 1,820 | 2.921875 | 3 | [
"BSD-3-Clause"
] | permissive | package com.webapp.model;
/**
* @author Juntao Peng
* @author Shangzhen Li
*/
public class Building {
private int id;
private String name;
private String description;
private String price;
public Building() {
}
public int getId() {
return id;
}
public void setId(int id... | true |
60a2deb00d1baf9758fdcec1322b29679e494e3a | Java | Sir7/DesignPattern | /DesignPattern/src/com/behavior/template_method/Tea.java | UTF-8 | 1,222 | 3.734375 | 4 | [] | no_license | package com.behavior.template_method;
/**
* @Title: Tea
* @Description: 模板方法类
* @author yang.lvsen
* @date 2018年5月26日 下午5:53:50
*
*/
public abstract class Tea {
protected void 加奶() {
System.out.println("加入三花淡奶");
}
protected abstract void 加茶();
protected abstract vo... | true |
2362dc720cead6b5d48ef42b3bee149f23f3575a | Java | ddamon/livecast-master | /app/src/main/java/com/aidingyun/ynlive/di/module/HomePageModule.java | UTF-8 | 817 | 2.28125 | 2 | [] | no_license | package com.aidingyun.ynlive.di.module;
import com.jess.arms.di.scope.FragmentScope;
import dagger.Module;
import dagger.Provides;
import com.aidingyun.ynlive.mvp.contract.HomePageContract;
import com.aidingyun.ynlive.mvp.model.HomePageModel;
@Module
public class HomePageModule {
private HomePageContract.View ... | true |
e283db5b9ba25f4f1913fa7552b1be91391165d2 | Java | shizia/ShoppingMall | /src/com/cn/subject/IPLoginOut.java | UTF-8 | 1,508 | 2.171875 | 2 | [] | no_license | package com.cn.subject;
public class IPLoginOut {
private String identity;
private String name;
private String ip;
private String logintime;
private String logouttime;
private int ifonline;
public IPLoginOut() {
// TODO Auto-generated constructor stub
}
public IPLoginOut(String identity, String name, St... | true |
4b75f131a753c5e2c31a323947037be545a6f2de | Java | williaz/JavaExp | /src/main/java/oca/ood/Swan.java | UTF-8 | 371 | 2.703125 | 3 | [] | no_license | package oca.ood;
/**
* Created by williaz on 11/2/16.
*/
public class Swan extends Bird {
int flaw = 3;
public int getFlawNum() {
return 3;
}
@Override
public int getSpeed() {
return 30;
}
public String getColor() {
return "White";
}
@Override
public... | true |
d1ae0e300bba92193254085328e418497e2e5ab6 | Java | codeosseum/ares | /src/main/java/com/codeosseum/ares/matchmaking/foundation/matchmaker/MatchChecker.java | UTF-8 | 3,240 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package com.codeosseum.ares.matchmaking.foundation.matchmaker;
import com.codeosseum.ares.eventbus.dispatch.EventDispatcher;
import com.codeosseum.ares.matchmaking.foundation.serverallocation.ServerAllocator;
import lombok.Value;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.HashSet;
impor... | true |
eb8f4f317126114ef401d3af73d20a12410076b6 | Java | georgg/georg | /src/old code/GeneProgram2/OverlapTissue.java | UTF-8 | 2,360 | 2.625 | 3 | [] | no_license | package edu.mit.csail.psrg.georg.GeneProgram2;
public class OverlapTissue implements Comparable {
// the percent load of the controlling tissue (the percentage of the tissue's overlapping genes
// out of the total genes)
public double tissueUse = 0.0;
// the percentage of the tissue's overlaping genes out of... | true |
cbe0d2effb2bbb2f611e7952b47bd9b728f07f9d | Java | irfanahmedqau/tayee | /estore_Feb_20/src/main/java/com/bleum/canton/shoppingcart/service/IShoppingCartService.java | UTF-8 | 2,293 | 2.515625 | 3 | [] | no_license | package com.bleum.canton.shoppingcart.service;
import com.bleum.canton.shoppingcart.entity.Cart;
public interface IShoppingCartService {
/**
* Add a specified number of Item into Cart
*
* @param itemId id of the item which will be added to cart
* @param quantityToBeAdd the quantity for addi... | true |
a6c9defc1fa4358751a7374eba542c7a9bdd06eb | Java | dariofabbri/tve-export | /src/test/java/it/dariofabbri/tve/export/service/marshaller/TestMarshaller.java | UTF-8 | 2,426 | 2.015625 | 2 | [] | no_license | package it.dariofabbri.tve.export.service.marshaller;
import it.dariofabbri.tve.export.model.Documento;
import it.dariofabbri.tve.export.service.analyzer.AnalysisResult;
import it.dariofabbri.tve.export.service.analyzer.Analyzer;
import it.dariofabbri.tve.export.xmltest.IgnoreUuidDifferenceListener;
import java.io.Bu... | true |
d27b2c0f0f556213cd8759a2a082988b78d7b22e | Java | sadaqat547/Sadaqat-s-Ecommerce-App | /app/src/main/java/com/example/shopper/VideoItem.java | UTF-8 | 177 | 1.546875 | 2 | [] | no_license | package com.example.shopper;
import android.widget.Button;
public class VideoItem {
public String videoUrl,videoTitle,videoDescription;
public Button videoDetails;
}
| true |
84614ca7190849fe0cd6cf1ab10a7e629176bdba | Java | StevenLU0413/Roadtrip | /Roads.java | UTF-8 | 700 | 2.859375 | 3 | [] | no_license | public class Roads{
private String currentCity;
private String nextCity;
private String distance;
private String time;
private int index;//add index so it is easier to keeping track of
public Roads(){
}
public Roads(String aCurrentCity, String aNextCity, String aDistance, String aTime, int aIndex){
c... | true |
4354e3c1e9a4b1187dbcacbbdeca80c7a0fbdbff | Java | AndreySkryl/todo-list-Bootstrap | /backend/src/main/java/database/todoList/utils/UtilForWorkWithMedia.java | UTF-8 | 1,550 | 2.640625 | 3 | [] | no_license | package database.todoList.utils;
import org.springframework.stereotype.Component;
import sun.misc.BASE64Encoder;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.IOException;
import java.io.Serializable;
@Component
public cla... | true |
3431bb464cdc86e2ee4f9c827b32e95c0f706440 | Java | Hannan9560/Hacker-Rank | /Remove_Element.java | UTF-8 | 505 | 3.171875 | 3 | [] | no_license | package LeetCodeProblemSet;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class Remove_Element {
public static void main(String[] args) {
int[] nums = {3,2,2,3};
int val = 3;
System.out.println(removeElement(nums, val));
}
private... | true |
94680b1738cfb2ee200ed52ae6ae4ac3d9d683f2 | Java | DenisMagno/ResidenciaSW2018_SegurancaIdosoAndroid | /Código-fonte/app/src/main/java/com/scopus/ifsp/projetofinalteste/activity/MainActivity.java | UTF-8 | 15,132 | 1.757813 | 2 | [] | no_license | package com.scopus.ifsp.projetofinalteste.activity;
import android.content.Intent;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import androi... | true |
1e2c92f77dbc3f246542a9e0bb21214cd8db45a5 | Java | wstszx/719EquipmentManagement | /app/src/main/java/com/example/a719equipmentmanagement/ui/home/ChoiceContainerActivity.java | UTF-8 | 5,971 | 2.09375 | 2 | [] | no_license | package com.example.a719equipmentmanagement.ui.home;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.SparseArray;
import android.view.View;
import androidx.recyclerview.widget.DividerItemDecoration;
import androidx.recyclerview.widget.LinearLayoutManager;
i... | true |
31079f9849d7487d2e560b26a9abccb1c18d0134 | Java | suman0907/News-Frontend-App | /app/src/main/java/com/example/sumansinghrajput/newsfeed/CurrentGetResponse.java | UTF-8 | 344 | 1.851563 | 2 | [
"MIT"
] | permissive | package com.example.sumansinghrajput.newsfeed;
import java.util.List;
/**
* Created by Suman Singh Rajput on 27-04-2018.
*/
public class CurrentGetResponse {
private List<TopNewsModel> data;
public List<TopNewsModel> getData() {
return data;
}
public void setData(List<TopNewsModel> data) ... | true |
03ba521baa809e65945063207fbde74dcfb67d66 | Java | JingSir/springMVC | /src/app/dao/GenericDao.java | UTF-8 | 6,035 | 2.125 | 2 | [] | no_license | package app.dao;
import java.math.BigInteger;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Query;
import org.hibernate.SQLQuery;
import org.hibernate.SessionFactory;
im... | true |
1826cf2e98a3202d49dc9dd53810d30172dc94ab | Java | moutainhigh/server-3 | /service-share/ad-srv/src/main/java/com/lawu/eshop/ad/srv/service/impl/transaction/UserTakePlatRedTransactionMainServiceImpl.java | UTF-8 | 1,827 | 1.898438 | 2 | [] | no_license | package com.lawu.eshop.ad.srv.service.impl.transaction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.lawu.compensating.transaction.Reply;
import com.lawu.compensating.transaction.annotation.CompensatingTransactionMain;
import com.lawu.compens... | true |
d3fa0c1a89fb6f0d6930b7fc4f62b4e48bde8b8d | Java | Jeetsaini/mvp_dagger_2_android | /Dagger2Android/app/src/main/java/myapp/jeet/com/dagger2android/view/RecipeDetailActivity.java | UTF-8 | 1,274 | 1.984375 | 2 | [] | no_license | package myapp.jeet.com.dagger2android.view;
import android.app.Fragment;
import android.arch.lifecycle.LifecycleActivity;
import android.arch.lifecycle.LifecycleRegistry;
import android.arch.lifecycle.LifecycleRegistryOwner;
import android.os.Bundle;
import android.support.annotation.Nullable;
import javax.inject.Inj... | true |
4eb2ed63aeb135391f516acc04bcfcd1b1485ace | Java | javierlete/java-2021-04 | /webbasica/src/com/ipartek/formacion/webbasica/admin/BorrarServlet.java | UTF-8 | 1,227 | 2.25 | 2 | [] | no_license | package com.ipartek.formacion.webbasica.admin;
import java.io.IOException;
import java.util.TreeMap;
import javax.servlet.ServletContext;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
im... | true |
310e658de6b2d670efee8da79c070145b1c151e1 | Java | Htoob/snobot-2017 | /SmartDashboardExtensions/CoordinateGui/src/com/snobot/coordinate_gui/ui/renderProps/CoordinateLayerRenderProps.java | UTF-8 | 1,075 | 2.515625 | 3 | [
"MIT"
] | permissive | package com.snobot.coordinate_gui.ui.renderProps;
import java.awt.Color;
public class CoordinateLayerRenderProps
{
protected int mSize;
protected int mPointMemory;
protected Color mColor;
protected boolean mFadeOverTime;
public CoordinateLayerRenderProps()
{
mSize = 10;
mPoin... | true |
ce02ed75cb8c7a1949aa9eb057ca4b0c2ccc2b14 | Java | dbonev91/Java | /SoftUni/HomeWorks/_3_LoopsMethodsClasses/src/SymetricNumsInRng.java | UTF-8 | 265 | 2.59375 | 3 | [] | no_license | import java.util.Scanner;
public class SymetricNumsInRng {
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
int start=scan.nextInt();
int end=scan.nextInt();
for(int i=start; i<=end; i++){
System.out.print(i + " ");
}
}
}
| true |
353fa6f7fb60767bae30cbc7d9eaf731127580b2 | Java | qualicen/specmate | /bundles/specmate-export/src/com/specmate/export/internal/services/ExportManagerService.java | UTF-8 | 6,922 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | package com.specmate.export.internal.services;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import org.apache.c... | true |
94d4bf32015a6089fef784b23cc08d126ada6c6a | Java | weiyu0424/HandsomeRunner | /app/src/main/java/com/weiyu/handsomerunner/MainActivity.java | UTF-8 | 1,226 | 1.960938 | 2 | [] | no_license | package com.weiyu.handsomerunner;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.baidu.mapapi.SDKInitializer;
import com.baidu.mapapi.map.MapView;
import com.weiyu.handsomerunner.view.HomeActivity;
import com.weiyu.handsomerunner.view.LoginActivity... | true |
271f1d17c3e2dbc6aa261132644a33ad4e3736c5 | Java | lnczx/meijia-parent | /xcloud/src/main/java/com/xcloud/action/xz/MeetingController.java | UTF-8 | 9,839 | 1.820313 | 2 | [] | no_license | package com.xcloud.action.xz;
import java.io.IOException;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annot... | true |
50f9088991d86fe21ea403c23bf6010c075a37cb | Java | aqiftekhar/CitrixPlugin | /citrix-jmeter/src/main/java/com/blazemeter/jmeter/citrix/clause/ClauseHelper.java | UTF-8 | 9,029 | 2.1875 | 2 | [
"CC-BY-3.0",
"Apache-2.0",
"BSD-2-Clause"
] | permissive | package com.blazemeter.jmeter.citrix.clause;
import com.blazemeter.jmeter.citrix.clause.strategy.check.PollingContext;
import com.blazemeter.jmeter.citrix.ocr.OcrManagerHolder;
import com.blazemeter.jmeter.citrix.utils.CitrixUtils;
import com.github.kilianB.hashAlgorithms.AverageHash;
import com.github.kilianB.hashAlg... | true |
9863472da88e4949b1b937d3233750317875c2f6 | Java | bigfatnoob/Decaf | /src/stage2/continueStat_AST.java | UTF-8 | 859 | 1.835938 | 2 | [
"MIT"
] | permissive | /* Generated By:JJTree: Do not edit this line. continueStat_AST.java Version 4.3 */
/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=true,TRACK_TOKENS=false,NODE_PREFIX=,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
package stage2;
public
class continueStat_AST extends SimpleNode {
pu... | true |
ad346eb96ac7a85aca137471d50ec9bbb8f32974 | Java | jroizenberg/ini | /fm-bz/ejbModule/com/institucion/fm/wf/dao/spi/RoleDAOImpl.java | UTF-8 | 7,526 | 2.125 | 2 | [] | no_license | package com.institucion.fm.wf.dao.spi;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.institucion.fm.conf.dao.BaseActiveService;
import com.institucion.fm.conf.dao.SqlExec... | true |
f47527e59d915ff1a13995419289c21f607bd1a2 | Java | danilo27/E-payment-systems | /nc/src/main/java/central/controllers/MagazineController.java | UTF-8 | 1,214 | 2.296875 | 2 | [] | no_license | package central.controllers;
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframewo... | true |
ae87f204541c853b89ae3832d106f8c55a9cbb14 | Java | mohitagrawal/StitchTweet | /app/src/main/java/com/mohit/android/stichtweet/utils/StringUtils.java | UTF-8 | 413 | 2.28125 | 2 | [] | no_license | package com.mohit.android.stichtweet.utils;
/**
* All rights reserved
* Created by mohit.agrawal on 2/5/18.
*/
public class StringUtils {
public static boolean isNotNullOrEmpty(String string) {
return !isNullOrEmpty(string);
}
public static boolean isNullOrEmpty(String string) {
if (s... | true |
92c4cb7a304b7f38806f9ec07a924717637101aa | Java | katerina20/TestTask | /UsersBase/app/src/main/java/com/example/malut/usersbase/ProfileActivity.java | UTF-8 | 1,619 | 2.109375 | 2 | [
"Apache-2.0"
] | permissive | package com.example.malut.usersbase;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import com.bumptech.glide.Glide;
import com.bumptech.glide.request.RequestOptions;
import com.example.malut.us... | true |
5c85cbc19db53e53c497e36e722fa805f4b88be4 | Java | Havesta/MeowLib | /pisi/unitedmeows/meowlib/memory/MemoryWriter.java | UTF-8 | 765 | 2.71875 | 3 | [
"Unlicense"
] | permissive | package pisi.unitedmeows.meowlib.memory;
import pisi.unitedmeows.meowlib.utils.ImageUtils;
import java.awt.image.BufferedImage;
import java.io.*;
public class MemoryWriter extends DataOutputStream {
private ByteArrayOutputStream outputStream;
public MemoryWriter() {
super(null);
outputStr... | true |
331d1c250807e20e314d1360d5a05528c9c33a9b | Java | jiji87432/TDATC | /tdatcservice/src/main/java/com/skoruz/users/entity/PatientCarePartner.java | UTF-8 | 1,905 | 2.171875 | 2 | [] | no_license | package com.skoruz.users.entity;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
@Entity
@Table(name="patient_car... | true |
b2e011f35a15b5d6c7c1d7a3d283ce913428910d | Java | sivasankkar091/PepRepo | /Misc/payloadConvertor/src/main/java/com/cts/onenetwork/interfaces/CarrierInterface.java | UTF-8 | 123 | 1.664063 | 2 | [] | no_license | package com.cts.onenetwork.interfaces;
public interface CarrierInterface {
public void loadConvertor(String payload);
}
| true |
78f9b60de7242a0dc6cb6beebb6ee0bb905bbb98 | Java | andyxieyong/gen4mast | /src/es/unican/istr/gen4mast/tool/xmlmodels/model/RegularSchedulingServer.java | UTF-8 | 8,546 | 1.695313 | 2 | [] | no_license | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.4-2
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2015.11.12 at 01:08... | true |
30d9840090d017270ee2cf47a9eac070d77fb245 | Java | mstoeckel/jackson-datatype-hibernate | /hibernate5/src/main/java/com/fasterxml/jackson/datatype/hibernate5/ReflectionUtil.java | UTF-8 | 1,422 | 2.828125 | 3 | [] | no_license | package com.fasterxml.jackson.datatype.hibernate5;
import java.lang.reflect.Field;
public class ReflectionUtil {
public static Object getFieldValue(Object obj, String fieldName) throws IllegalArgumentException, IllegalAccessException {
Field field = findField(obj.getClass(), fieldName);
Object res... | true |
755a85e594c25bbdd13d6478b7bd88fae85dfd59 | Java | elevenxiang/AutoTest | /app/src/main/java/com/htc/eleven/autotest/Category.java | UTF-8 | 760 | 2.390625 | 2 | [] | no_license | package com.htc.eleven.autotest;
import java.util.Vector;
/**
* Created by eleven on 17-9-19.
*/
public abstract class Category {
public String mCategoryName = null;
public int id = 0;
public Vector<Case> mCases = null;
/**
* each function need implement initialize function to load its test ... | true |