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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f565f30fbf4b765c133ab98a0bf360b3c70b6f68 | Java | bashakg404/harsha | /spring-demo-annotationsinje/src/com/springdemo/anninject/TennisCoach.java | UTF-8 | 250 | 1.859375 | 2 | [] | no_license | package com.springdemo.anninject;
import org.springframework.stereotype.Component;
@Component
public class TennisCoach implements Coach {
@Override
public String getDailyWorkout() {
return "Practice your backend volley";
}
}
| true |
3eb489dd5277f52e1530c064b71e5abf7f72976e | Java | HollyBrain/GunsWork | /src/net/guns_project/server/MainServer.java | WINDOWS-1251 | 5,870 | 3.046875 | 3 | [] | no_license | package net.guns_project.server;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import net.guns_project.domain.*;
import net.guns_project.manager.*;
public class MainServer {
private static final IMakerManager makerManager = new MakerManager... | true |
ecdf03138ac9658499cdbffb1db34a0b5ae774c2 | Java | AnastasiaKislyakova/mail-scheduler | /src/test/java/ru/kislyakova/anastasia/scheduler/controller/MailingControllerTest.java | UTF-8 | 5,293 | 2 | 2 | [] | no_license | package ru.kislyakova.anastasia.scheduler.controller;
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.mockito.Mockito;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframew... | true |
6c5288afe0726a6ed844b776881f86a05c46a406 | Java | mkblogs/AccountJSPWithUsers | /src/main/java/com/tech/mkblogs/pk/series/SeriesTable.java | UTF-8 | 1,343 | 1.992188 | 2 | [] | no_license | package com.tech.mkblogs.pk.series;
import java.time.LocalDateTime;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version... | true |
e289d22b4ffde7a913f2af25b3653dd2ad940e85 | Java | vovarova/ChineesePuzzle | /src/main/java/fine/project/GameProcessor.java | UTF-8 | 993 | 2.59375 | 3 | [] | no_license | package fine.project;
import java.util.ArrayList;
import java.util.List;
import fine.project.algorythms.Algorythm;
import fine.project.algorythms.CornersAlgorythm;
import fine.project.model.ColumnObj;
public class GameProcessor {
private Picture picture;
private List<Algorythm> algorythms;
public G... | true |
536e092780ba9990051dcc75f4d751e03cb882b1 | Java | Naxanria/nom | /src/main/java/com/naxanria/nom/util/WorldUtil.java | UTF-8 | 337 | 2.09375 | 2 | [] | no_license | package com.naxanria.nom.util;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
import net.minecraft.world.World;
public class WorldUtil
{
public static void spawnAsEntity(World world, BlockPos pos, ItemStack stack)
{
Block.spawnAsEntity(world, po... | true |
2a91868972bc7b781a1f74e0aae5d71eb6b9973d | Java | shalviraj/greenlens | /sources/p298d/p299a/p300a/p301a/p303y0/p405l/C7454d.java | UTF-8 | 2,324 | 1.8125 | 2 | [] | no_license | package p298d.p299a.p300a.p301a.p303y0.p405l;
import p298d.p299a.p300a.p301a.p303y0.p405l.p408l1.C7532f;
import p298d.p299a.p300a.p301a.p303y0.p405l.p408l1.C7534h;
import p298d.p299a.p300a.p301a.p303y0.p405l.p408l1.C7535i;
import p298d.p299a.p300a.p301a.p303y0.p405l.p408l1.C7537k;
import p298d.p299a.p300a.p301a.p303y0... | true |
3c9600a650426742077d5f2cd185c7f7352501b1 | Java | Cjf1226098687/13_SSM_04_House | /src/main/java/com/fc/vo/UserAuthVo.java | UTF-8 | 582 | 2.046875 | 2 | [] | no_license | package com.fc.vo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserAuthVo extends UserVo {
private String token;
public UserAuthVo(UserVo ... | true |
b48e3bb3c6b7f334e59f368ac261650406baddf2 | Java | Swietlon/swagger-java-client | /src/test/java/io/swagger/client/api/DefaultApiTest.java | UTF-8 | 1,991 | 2.265625 | 2 | [] | no_license | /*
* Simple calc API
* This a simple API
*
* OpenAPI spec version: 1.0.0
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
package io.swagger.client.api;
import io.swagger.client.ApiExcep... | true |
fd000f6ea0908899392d61b1faa777cc15758be3 | Java | AshutoshSundresh/OnePlusSettings-Java | /sources/com/google/android/setupdesign/items/Item.java | UTF-8 | 4,968 | 1.835938 | 2 | [] | no_license | package com.google.android.setupdesign.items;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.LinearLayout;... | true |
6ba3525d6283eb3ab543af8a5ea89b8ff2a8083d | Java | crazy-pizza/vote-manager | /src/main/java/com/hualala/bean/VoteDetail.java | UTF-8 | 262 | 1.539063 | 2 | [] | no_license | package com.hualala.bean;
import lombok.Data;
/**
* @author YuanChong
* @create 2019-06-01 18:12
* @desc
*/
@Data
public class VoteDetail {
private Long voteDetailID;
private Long voteID;
private String content;
private Long sumVote;
}
| true |
2bd35e6a407d816bd275c500542bd1d09cce158a | Java | jfc941640/DigSim | /1.0/AnalyzerPanel.java | UTF-8 | 20,557 | 2.421875 | 2 | [] | no_license | //****************************************************************************
// ---- version information ----
//
// AnalyzerPanel.java v 1.00b2
// Written by: I. van Rienen / E-mail ivr@bart.nl
// URL: http://www/bart.nl/~ivr
// Initial release: v 1.00b2 06-03-1996
// Released ... | true |
7988fa0babcec2153859467ab6f0f3734c13555f | Java | deeplearning4j/deeplearning4j | /deeplearning4j/deeplearning4j-nlp-parent/deeplearning4j-nlp/src/main/java/org/deeplearning4j/text/tokenization/tokenizer/preprocessor/StringCleaning.java | UTF-8 | 1,440 | 2.359375 | 2 | [
"Apache-2.0",
"MIT",
"BSD-3-Clause"
] | permissive | /*
* ******************************************************************************
* *
* *
* * This program and the accompanying materials are made available under the
* * terms of the Apache License, Version 2.0 which is available at
* * https://www.apache.org/licenses/LICENSE-2.0.
* *
* * See the NO... | true |
07ebcf2c4c74329ab094991c4d8d6fc3dd1b32c4 | Java | clhost/walkme-backend | /core_module/src/main/java/io/walkme/core/Configurator.java | UTF-8 | 2,733 | 2.28125 | 2 | [] | no_license | package io.walkme.core;
import auth.core.AuthService;
import io.walkme.handlers.route.MockRoutes;
import io.walkme.helpers.ConfigHelper;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import route.core.RouteService;
import java.io.IOException;
import java.io.InputStreamReader;
imp... | true |
b2df828e97143d0bc40409ff778d0c6e730ceca8 | Java | tangyehao/Car_Customized_System | /src/cn/com/actions/LoginView_BtnLoginAction.java | GB18030 | 2,214 | 2.40625 | 2 | [] | no_license | package cn.com.actions;
import cn.com.beans.User;
import cn.com.services.UserBaseServiceInf;
import cn.com.services.impl.UserBaseServiceImpl;
import cn.com.utils.KeyCode;
import cn.com.views.MainView;
import cn.com.views.loginview.LoginView;
import java.awt.*;
public class LoginView_BtnLoginAction implements Action... | true |
a69962a0db47df256ea3eb1bbc3b2a00a6f6b736 | Java | carrascoMDD/gvCASE_ALBA | /gvCASE_ALBA_release_wksp/es.gva.cit.gvmetrica.proinso/src/es/gva/cit/gvmetrica/proinso/ProinsoFactory.java | UTF-8 | 8,403 | 1.8125 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package es.gva.cit.gvmetrica.proinso;
import org.eclipse.emf.ecore.EFactory;
/**
* <!-- begin-user-doc -->
* The <b>Factory</b> for the model.
* It provides a create method for each non-abstract class of the model.
* <!-- end-user-doc -->
* @see es... | true |
f072cd94c31ba2342e1859eaba1a8982b97fd2ef | Java | WYK845634621/security | /src/main/java/com/yikai/security/entity/Users.java | UTF-8 | 268 | 1.570313 | 2 | [] | no_license | package com.yikai.security.entity;
import lombok.Data;
/**
* @Description
* @Tips
* @Author yikai.wang
* @Number K1171305
* @Date 2020/11/26 9:29
*/
@Data
public class Users {
private Integer id;
private String username;
private String password;
}
| true |
76ad3f4d095c4b08a728219609087bf1e8ef03c2 | Java | The-Knights-of-Ni/FTC-2015-2016 | /FtcRobotController/decompiled libs/com/qualcomm/robotcore/sensor/TargetInfo.java | UTF-8 | 532 | 2.03125 | 2 | [
"BSD-3-Clause"
] | permissive | /*
* Decompiled with CFR 0_101.
*/
package com.qualcomm.robotcore.sensor;
import com.qualcomm.robotcore.sensor.TargetSize;
import com.qualcomm.robotcore.util.Pose;
public class TargetInfo {
public String mTargetName;
public Pose mTargetPose;
public TargetSize mTargetSize;
public TargetInfo() {
... | true |
37c9f72198e2bf6c394f41c633dd1e45ccb555ac | Java | Fedemc/BD3 | /Practico3-Ej1/src/Main.java | ISO-8859-3 | 3,254 | 2.734375 | 3 | [] | no_license | import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.Statement;
import java.sql.SQLException;
import jav... | true |
1f9f9dedde64de3240f56cff5758f6113cef45c4 | Java | szendre1/training-solutions | /src/main/java/week05d03/ListCounter.java | UTF-8 | 723 | 3.3125 | 3 | [] | no_license | package week05d03;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public class ListCounter {
public int Counter(List<String> myList){
int talalat = 0;
for (String x:myList) {
if (x.toUpperCase().charAt(0)=='A'){
talalat++;
}
... | true |
8d021702cbf88c91a7560b0e451907cfb29dc273 | Java | vsankara/Kyron | /trips-ejb-module/src/com/technobrain/trips/document/model/DfinDocument.java | UTF-8 | 746 | 2.078125 | 2 | [] | no_license | package com.technobrain.trips.document.model;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
@Entity
@NamedQuery(name = "DfinDocument.findAll",
q... | true |
b61ba3a1bfddc27fb7aeadb4e1c1f674bbc67600 | Java | Bir-Eda/My-Java-Projects | /src/Oracle/ForSale.java | UTF-8 | 83 | 2.109375 | 2 | [] | no_license | package Oracle;
public interface ForSale {
public double getStickerPrice();
} | true |
6ac7d31a1764fe00f3b9880104a1ce7928e8c1a9 | Java | doublebarrelbuckshot/IFT3911TP3 | /IFT3911TP3/src/TransportationPkg/AviationPkg/Economique.java | UTF-8 | 555 | 2.21875 | 2 | [] | no_license | package TransportationPkg.AviationPkg;
import TransportationPkg.ISearchable;
import AdminPkg.ITripVisitor;
import CommonComponentsPkg.SearchCriteria;
import TransportationPkg.ComfortClass;
public class Economique extends ComfortClass {
private double _prixPercent = 0.50;
public boolean matchCriteria(Sear... | true |
7a73a593caefa55308d7eaa7331f5e6625e148b6 | Java | R4ymond1/SpringMall | /src/main/java/cn/gedc/springmall/mapper/ResourceMapper.java | UTF-8 | 500 | 1.992188 | 2 | [] | no_license | package cn.gedc.springmall.mapper;
import cn.gedc.springmall.bean.MyResourceBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import java.util.List;
/**
* Created by gedc on 2020/12/20.
*/
@Component
@Mapper
public inter... | true |
e4d864f38cd8b9a2eab339e49efff3980e65e640 | Java | heyuxian/idea-multimarkdown | /src/main/java/com/vladsch/idea/multimarkdown/util/GitHubVcsRoot.java | UTF-8 | 9,494 | 1.804688 | 2 | [
"Apache-2.0"
] | permissive |
/*
* Copyright 2013 Square, Inc.
* No license information provided
*
* Copyright (c) 2015-2015 Vladimir Schneider <vladimir.schneider@gmail.com>, all rights reserved.
*
* This code is based on code from https://github.com/jawspeak/intellij-plugin-copy-and-open-github-url
*
* Unless required by applicable law o... | true |
8f1b1ad5fae21ac90a47cd63ffa8487bafb0a5e9 | Java | MarsAstro/LudoBoardGame | /src/main/java/no/ntnu/imt3281/ludo/logic/Ludo.java | UTF-8 | 20,071 | 3.046875 | 3 | [] | no_license | /**
*
*/
package no.ntnu.imt3281.ludo.logic;
import java.util.ArrayList;
import java.util.Random;
/**
* Handles all logic of a ludo game.
*
* @author oyste
*
*/
public class Ludo {
/**
* Index of Red player
*/
public static final int RED = 0;
/**
* Index of Blue player
*/
... | true |
a2aedaf825e7280462e156d97916fd4161a74045 | Java | riyuetian/v13 | /v13-temp/temp-zookeeper/src/test/java/com/qf/zk/MyWatcher.java | UTF-8 | 505 | 2.34375 | 2 | [] | no_license | package com.qf.zk;
import org.apache.zookeeper.WatchedEvent;
import org.apache.zookeeper.Watcher;
/**
* @author Mr_Ma
* Version: 1.0 2019/7/417:16
* @description: TODO
*/
public class MyWatcher implements Watcher {
@Override
public void process(WatchedEvent event) {
System.out.println("监听的节点发生了变... | true |
c60ad552bf0bf4a3f9dedcae75576edae7ce01cb | Java | stnevans/BytecodeParser | /site/shadyside/exception/InvalidFileFormatException.java | UTF-8 | 352 | 2.171875 | 2 | [] | no_license | package site.shadyside.exception;
import java.io.IOException;
public class InvalidFileFormatException extends IOException{
public InvalidFileFormatException(String string) {
super(string);
}
public InvalidFileFormatException(Exception e) {
super(e);
}
/**
*
*/
private static final long serialVersion... | true |
a50a61e712c2a47adc6d05fd4cf628091042db0c | Java | ascending-llc/spring-redis | /src/main/java/io/ascending/training/controller/CarController.java | UTF-8 | 1,651 | 2.328125 | 2 | [] | no_license | package io.ascending.training.controller;
import io.ascending.training.domain.Car;
import io.ascending.training.repository.CarRepository;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.CacheEvict;
impor... | true |
4039f9d1770424115f035f82e950f4e8debf3abc | Java | katiefotion/POST2 | /POSTB/src/Transaction/Payment.java | UTF-8 | 865 | 3 | 3 | [] | no_license |
package Transaction;
/**
*
* @author katie
*/
public class Payment {
private String typePayment;
private double paymentTotal;
private String cardNumber;
public Payment(String type, double total) {
this.typePayment = type;
this.paymentTotal = total;
this.cardNumber ... | true |
640064594dfea5d46b6b7a2e52f033bc46c526dc | Java | antoniosergius/serginho-jlib | /src/br/com/antoniosergius/lib/util/io/XMLStream.java | UTF-8 | 2,110 | 2.453125 | 2 | [] | no_license | package br.com.antoniosergius.lib.util.io;
import br.com.antoniosergius.lib.gui.utils.LookAndFeel;
import br.com.antoniosergius.lib.util.MySQLParameters;
import com.thoughtworks.xstream.XStream;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public class XML... | true |
25a43d39e724b794e8aae577fa97ed123e341336 | Java | lucascraft/iorx | /iorx/src/main/java/ubiquisense/iorx/media/fmodex/impl/FMGeometryImpl.java | UTF-8 | 496 | 1.851563 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package ubiquisense.iorx.media.fmodex.impl;
import org.jouvieje.fmodex.Geometry;
import ubiquisense.iorx.media.fmodex.FMGeometry;
public class FMGeometryImpl implements FMGeometry {
protected static final Geometry FMODEX_EDEFAULT = null;
protected Geometry f... | true |
04b62db47a4be8e359c58c5198ff66a7bf5e4264 | Java | Niukun/Paper | /HtmlUtil.java | UTF-8 | 789 | 2.5625 | 3 | [] | no_license | package niukun.utils;
import java.io.IOException;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
public class HtmlUtil {
public static void main(String[] args) {
}
/**
* 根据url从网页获取文本
* @param url
* @return
*/
public Document getHtmlTextByUrl(String url) {
Document doc = nu... | true |
c3fd964e7f2809664306527436febece75ed8e73 | Java | kaazing/gateway | /mina.core/core/src/main/java/org/apache/mina/filter/codec/demux/DemuxingProtocolDecoder.java | UTF-8 | 10,716 | 2.21875 | 2 | [
"LicenseRef-scancode-jdom",
"MIT",
"MPL-1.1",
"JSON",
"LGPL-2.1-or-later",
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0",
"ICU",
"BSD-3-Clause"
] | permissive | /**
* Copyright 2007-2016, Kaazing Corporation. 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 require... | true |
1ecf317e05f5cf6fefbf504d59693cfc6f430ee3 | Java | 0moura/tiktok_source | /df_miniapp/classes/com/bytedance/sandboxapp/b/a/a/b.java | UTF-8 | 1,061 | 1.804688 | 2 | [] | no_license | package com.bytedance.sandboxapp.b.a.a;
import d.f.b.l;
public final class b implements a {
public static a a;
public static final b b = new b();
private static boolean c;
public static void a(boolean paramBoolean) {
c = paramBoolean;
}
public final boolean isDebugMode() {
... | true |
d3bcb6e468253b790032b1a344e3e450b1b6519d | Java | Be-Simple-Korean/Study_Room_VM_DataBinding | /app/src/main/java/com/example/studyviewmodel/TodoDAO.java | UTF-8 | 672 | 2.4375 | 2 | [] | no_license | package com.example.studyviewmodel;
import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Delete;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;
import java.util.List;
@Dao //DATA ACCESS OBJECT = 룸에 있는 데이터에 접근하는 객체
// = 데이터 접근 = SELECT, INSERT, UPDA... | true |
4293d71430cfdb6ac1aadc34c80cebd324604dce | Java | mesut6283/ListItem1 | /app/src/main/java/com/masoud/example/listitem1/MainActivity.java | UTF-8 | 1,703 | 2.53125 | 3 | [] | no_license | package com.masoud.example.listitem1;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.ExpandableListView;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
public class MainActivity extends AppCompatActivity {
ExpandableListView expandableLi... | true |
e3b6cf4c938877985010804e0e8594b0d7e81e50 | Java | bingoohuang/npf-blackcat | /npf-blackcat/src/test/java/com/github/bingoohuang/blackcat/utils/UnsensitiveConfigTest.java | UTF-8 | 2,489 | 2.59375 | 3 | [
"Apache-2.0"
] | permissive | package com.github.bingoohuang.blackcat.utils;
import org.junit.Test;
import static com.google.common.truth.Truth.assertThat;
public class UnsensitiveConfigTest {
@Test
public void testKeyValueInJSON() {
UnsensitiveConfig config = new UnsensitiveConfig(
"(?<=\"PASSWORD\":\").*?(?=\"[,... | true |
30c3041ce396e4f488a406ad79a7a13da322c1a9 | Java | aw12sds/zxerp | /.svn/pristine/5a/5a4cfc03652eda33ab0afe9d6ece941a584639a4.svn-base | UTF-8 | 1,128 | 2 | 2 | [] | no_license | package jehc.solrmodules.solrdao;
import java.util.List;
import java.util.Map;
import jehc.solrmodules.solrmodel.SolrIndexAttribute;
/**
* 索引更多属性
* 2016-07-10 22:19:49 邓纯杰
*/
public interface SolrIndexAttributeDao{
/**
* 分页
* @param condition
* @return
*/
public List<SolrIndexAttribute> getSolrIndexAttribute... | true |
1c4e9c68a3530f725504d509c8b95758b59a6bdb | Java | LiubovHrzhymalo/qa_nix_2 | /unit_7_patters/src/main/java/ua/com/alevel/entity/Owner.java | UTF-8 | 887 | 2.203125 | 2 | [] | no_license | package ua.com.alevel.entity;
import java.util.ArrayList;
import java.util.List;
public class Owner extends BaseEntity {
private String firstName;
private String lastName;
private boolean isVisible;
private List<String> petIds = new ArrayList<>();
public String getFirstName() {
return fir... | true |
b4ed1598d261c50e5ad8f6e68e789dee544b5fcb | Java | zhaomengxia/example | /common/src/main/java/com/linln/common/interfaces/F.java | UTF-8 | 632 | 3.0625 | 3 | [
"Apache-2.0"
] | permissive | package com.linln.common.interfaces;
/**
* 因为抽象类中可以没有抽象方法,即存在有方法体的方法
* java之所以只能单继承,是因为如果D和E中存在相同的方法,F不知道调用哪个类的这个方法。
* 为什么只能单继承,主要是防止多个类有相同的方法名,但方法体不一样,子类就不知道难选了。故java和C#都不支持多继承
* @Author zhaomengxia
* @create 2019/7/15 13:42
*/
public class F extends D {
@Override
public String eat() {
return nu... | true |
d96514445b272fc90221c76d378bc3aaadef21f7 | Java | redsun9/leetcode | /src/leetcode/leetcode16xx/leetcode1688/Solution.java | UTF-8 | 139 | 1.6875 | 2 | [] | no_license | package leetcode.leetcode16xx.leetcode1688;
public class Solution {
public int numberOfMatches(int n) {
return n - 1;
}
}
| true |
1277d5cd88cc9e6a1f17048f5f9eeccb383b7dcc | Java | sahil804/Baking_App | /app/src/main/java/com/example/suris/baking_app/ui/RecipesListActivityFragment.java | UTF-8 | 5,844 | 1.984375 | 2 | [] | no_license | package com.example.suris.baking_app.ui;
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Intent;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.... | true |
818b3eabe8046ea1958cca628f980807e110dca3 | Java | nafa15/master | /src/oop/encapsulation/Student.java | UTF-8 | 240 | 1.8125 | 2 | [] | no_license | package oop.encapsulation;
public class Student {
// oop
// Encapsulation : data hiding
// Polymorphism
// Inheritance
// Abstraction
private String nameOfStudent1;
// public void setNameOfStudent1;
}
| true |
e69b5667b9e0468da68eb5ad061ffdcf9d7ae283 | Java | VasilievAndrey/codility | /src/main/java/vav/codility/arrays/strings/FindTheWinnerOfAnArrayGame.java | UTF-8 | 152 | 2.21875 | 2 | [] | no_license | package vav.codility.arrays.strings;
public class FindTheWinnerOfAnArrayGame {
public int getWinner(int[] arr, int k) {
return 0;
}
}
| true |
e9433256e05865f28d80e1860c38997331ec3861 | Java | pralavgoa/SecureWise | /WiseStudySpaceWizard/src/edu/ucla/wise/studyspace/parameters/ParametersProviderServlet.java | UTF-8 | 1,723 | 2.296875 | 2 | [
"BSD-3-Clause"
] | permissive | /**
*
*/
package edu.ucla.wise.studyspace.parameters;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.google.common.bas... | true |
8d4647054aa7861c73ab236574288b0a63a25f2e | Java | jsbhb/servercenter | /financecenter/src/main/java/com/zm/finance/bussiness/service/impl/RebateServiceImpl.java | UTF-8 | 5,718 | 1.9375 | 2 | [] | no_license | package com.zm.finance.bussiness.service.impl;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import javax.annotation.Resource;
import org.springframework.data.redis.core.HashOperations;
import org.springframework.data.redis.core.Re... | true |
137e921b5938e49bf98b6788d4b3cb22c83fe884 | Java | superchaoran/cdap | /cdap-app-templates/cdap-etl/cdap-etl-archetypes/cdap-etl-batch-sink-archetype/src/main/resources/archetype-resources/src/main/java/Sink.java | UTF-8 | 2,012 | 1.796875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright © 2015 Cask Data, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed t... | true |
f5492b2e47f0874278bc6fa1440d5bfcc85a592f | Java | CsabaHalmagyi/OCSync | /src/org/rdcit/ocsync/models/odmnodes/EventNode.java | UTF-8 | 2,661 | 2.703125 | 3 | [] | no_license | package org.rdcit.ocsync.models.odmnodes;
import java.util.ArrayList;
import java.util.List;
/**
* Represents an Event node in the ODM structure
*
* @author Csaba Halmagyi
*
*/
public class EventNode {
private String eventOID;
private String eventRepKey;
private String eventStatus;
... | true |
4fa924e440f6965e499fd7172f7fb3cd544f4004 | Java | Beescast/Beeslm | /No.2490-Bees-master/api/src/main/java/org/bees/biz/persistence/manager/ConfigManager.java | UTF-8 | 2,161 | 2.3125 | 2 | [] | no_license | package org.bees.biz.persistence.manager;
import java.util.Date;
import java.util.List;
import org.bees.biz.persistence.dao.ConfigDao;
import org.bees.biz.persistence.model.Config;
import org.bees.biz.persistence.model.ConfigExample;
import org.bees.biz.persistence.model.ConfigExample.Criteria;
import org.bees.utils.... | true |
d2ef3f3d2451c78f561921464048535227644ff9 | Java | smolyakovroma/prototype | /app/src/main/java/com/cryptopay/prototype/activity/StartActivity.java | UTF-8 | 9,245 | 1.757813 | 2 | [] | no_license | package com.cryptopay.prototype.activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.graphics.Paint;
import android.net.Uri;
import android.os.AsyncTask;
import android.os.Bundle;
import android.support.constraint.ConstraintLayout;
import android.support.v4.app.FragmentMana... | true |
5a9b07d1a93181a44a599d7046c21fa014cee6e6 | Java | JEBailey/fiona | /src/main/java/com/wickedknight/fiona/skin/Skin.java | UTF-8 | 2,816 | 2.328125 | 2 | [] | no_license | package com.wickedknight.fiona.skin;
import java.awt.Image;
import java.util.Map;
public class Skin {
private static final String MAIN = "main.bmp";
private static final String BUTTONS = "cbuttons.bmp";
private static final String TITLEBAR = "titlebar.bmp";
private static final String NUMBERS... | true |
c5a862f9b195f79cf7f053686a7280505d546311 | Java | MichalSiwiak/real-estate-portal-spring-security | /src/main/java/net/coffeecoding/entity/Flat.java | UTF-8 | 2,954 | 2.390625 | 2 | [] | no_license | package net.coffeecoding.entity;
import java.sql.Timestamp;
import java.util.Arrays;
import java.util.Objects;
import java.util.Set;
import javax.persistence.*;
@Entity
@Table(name = "flat")
public class Flat {
@Id
@GeneratedValue(strategy= GenerationType.IDENTITY)
private int id;
private Timestamp d... | true |
8a27262661c32f47f9c68a27f89cc77d80724f9d | Java | DBCDK/ocb-tools | /libraries/ocb-scripter/src/main/java/dk/dbc/ocbtools/scripter/ServiceScripter.java | UTF-8 | 9,668 | 2.15625 | 2 | [] | no_license | package dk.dbc.ocbtools.scripter;
import dk.dbc.jslib.ClasspathSchemeHandler;
import dk.dbc.jslib.Environment;
import dk.dbc.jslib.FileSchemeHandler;
import dk.dbc.jslib.ModuleHandler;
import dk.dbc.jslib.SchemeURI;
import org.slf4j.ext.XLogger;
import org.slf4j.ext.XLoggerFactory;
import java.io.File;
import java.io... | true |
3a3f9501bd2c75e5d592c56ea59e8b72da5b3c62 | Java | DenysBohurskyi/Customer_support_proj | /src/test/com/util/constant/Constants.java | UTF-8 | 244 | 1.601563 | 2 | [] | no_license | package test.com.util.constant;
public interface Constants {
int ELEMENTS_COUNT = 2;
String SPECIFY_PATH_TO_FILE = "Specify path to the file, please:";
String INVALID_DATA = "Check input data, Something wrong with validation!";
} | true |
f936aa44aa76d981109861e12fafee9a8905a49e | Java | TKXZH/Blog | /src/main/java/com/xv/dao/UserDao.java | UTF-8 | 1,201 | 2.125 | 2 | [] | no_license | package com.xv.dao;
import com.xv.entity.User;
import org.apache.ibatis.annotations.Param;
/**
* Created by xvzh on 2016/12/27.
*/
public interface UserDao {
/**
* 创建新用户,成功时返回1
* @param user
* @return
*/
int createUser(User user);
/**
* 根据id查询用户信息
* @param id
* @retur... | true |
135b7ffab3cbffcdfd3e0f4579d9b3b595fdd9de | Java | benbriggsy/java-card-game-coursework | /src/cheat/BasicCheat.java | UTF-8 | 7,796 | 3.4375 | 3 | [] | no_license | package cheat;
import java.util.*;
/**
* This is a class to run the game of cheat.
* I changed the rules a little, so that the game doesn't get stuck if one
* player has all of the TWO's. This required me to make changes to Bid
* so I have included that file.
*
* In this game I have one player of each... | true |
7ba96f1d6dfe42030423ccb36be470660903c882 | Java | isabella232/android-sdk-sources-for-api-level-11 | /java/nio/channels/DatagramChannel.java | UTF-8 | 2,304 | 2.125 | 2 | [] | no_license | /* */ package java.nio.channels;
/* */
/* */ import java.io.IOException;
/* */ import java.net.DatagramSocket;
/* */ import java.net.SocketAddress;
/* */ import java.nio.ByteBuffer;
/* */ import java.nio.channels.spi.AbstractSelectableChannel;
/* */ import java.nio.channels.spi.SelectorProvider... | true |
67f4586ec13f6f2d3adb90db93b398a0f572a7ae | Java | gi865/NewRepo | /Desktop/Jyoti/scrpting5/src/methods/AppDependentMethods.java | UTF-8 | 6,406 | 2.421875 | 2 | [] | no_license | package methods;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import driver.DriverScript;
import locators.ObjectLocators;
public class AppDependentMethods extends DriverScript implements ObjectLocators{
/*******************************************************
* Method Name : navigateURL
... | true |
b4eddb05398420b4daae113ccf1e3af94be3d192 | Java | seryang/beview-conference | /android/BeView/app/src/main/java/com/nhn/android/beview/model/Speaker.java | UTF-8 | 1,328 | 2.40625 | 2 | [] | no_license | package com.nhn.android.beview.model;
import java.io.Serializable;
/**
* Created by HyunSeungHo on 2017. 1. 12..
*/
public class Speaker implements Serializable{
private int idx;
private String name;
private String img;
private String email;
private String phone;
private String description... | true |
52d640e800c6846944c04bea00002fc7af19266e | Java | julianGoh17/design-patterns | /src/main/java/io/patterns/chain/Email.java | UTF-8 | 360 | 2.75 | 3 | [] | no_license | package io.patterns.chain;
public class Email {
private final EmailType type;
private final String message;
public Email(EmailType type, String message) {
this.type = type;
this.message = message;
}
public EmailType getType() {
return type;
}
public String getMess... | true |
7071905415b4359c0a5758c2653d19534fb42080 | Java | Fureniku/AdvancedArmoury | /src/main/java/com/silvaniastudios/advancedarmoury/gun/prebuilt/M4Material.java | UTF-8 | 5,106 | 1.835938 | 2 | [] | no_license | package com.silvaniastudios.advancedarmoury.gun.prebuilt;
import java.util.List;
import com.silvaniastudios.advancedarmoury.AdvancedArmoury;
import com.silvaniastudios.advancedarmoury.config.MaterialStats;
import com.silvaniastudios.advancedarmoury.gun.inventory.ItemIInventory;
import com.silvaniastudios.advancedarmo... | true |
6965624528bf4983043b790081cac079e645326c | Java | noboomu/shipping-carriers | /src/main/java/com/fedex/ws/openship/v18/PackageRateDetail.java | UTF-8 | 16,172 | 1.71875 | 2 | [] | no_license |
package com.fedex.ws.openship.v18;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotatio... | true |
621507fbcbea46ff70cac8586f53bd59f5b0dce4 | Java | ashishjha89/MyTVList | /mobile/src/main/java/com/mytvlist/listener/ChooseItemListener.java | UTF-8 | 209 | 1.65625 | 2 | [] | no_license | package com.mytvlist.listener;
/**
* Created by ashish.jha on 7/12/2015.
*/
public interface ChooseItemListener {
public void onListItemSelected(boolean isSearch, int count, boolean isDeleteAction);
}
| true |
dd1614eb6a02d386262bf2293d25752961ef2d2b | Java | zcwzcwzcw/xshop | /xshop_service_goods/src/main/java/com/xshop/service/impl/AlbumServiceImpl.java | UTF-8 | 3,662 | 2.3125 | 2 | [] | no_license | package com.xshop.service.impl;
import com.alibaba.dubbo.config.annotation.Service;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.xshop.dao.AlbumMapper;
import com.xshop.entity.PageResult;
import com... | true |
d2c37cba59d64cbe43d298d7143efd051205e2bd | Java | swetabj/DataStructureProblems | /LRUCaching/src/Tester.java | UTF-8 | 1,527 | 3.421875 | 3 | [] | no_license | import java.util.*;
public class Tester {
public static void main(String[] args) {
// TODO Auto-generated method stub
String sizeStr;
Scanner s = new Scanner(System.in);
sizeStr = s.nextLine();
String[] sizeArray = splitFunc(sizeStr);
int size = 0;
if(validateInputArguments(sizeArray,2,"Size")) {
s... | true |
5a33e9f3034ae1ff35959109af2912904d10f608 | Java | kishorereddy11/liquibase-mongodb | /src/main/java/liquibase/ext/mongodb/statement/CountCollectionByNameStatement.java | UTF-8 | 1,644 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package liquibase.ext.mongodb.statement;
/*-
* #%L
* Liquibase MongoDB Extension
* %%
* Copyright (C) 2019 Mastercard
* %%
* 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
*
* htt... | true |
6d4182fac68c145c1cfc607b5b942f52eaeeaa4b | Java | DanIulian/PeerToPeer-Torrent-Client | /src/test/TestClient1.java | UTF-8 | 1,534 | 3.1875 | 3 | [
"MIT"
] | permissive | package test;
import java.io.File;
import java.net.InetAddress;
import client.Client;
public class TestClient1 {
/* lista de fisiere pe care server-ul le va publica */
public static String files[] = {"files/3DUniverse.jpg", "files/Compilers.pdf", "files/porche.jpg", "files/SPRCBook.pdf" };
public static void m... | true |
6ff768a53773eba6d633c9424212634af815947f | Java | lexbaev/directory-scanner | /src/test/java/my/app/mapper/impl/CommandLineMapperScanMenuImplTest.java | UTF-8 | 2,810 | 2.359375 | 2 | [] | no_license | package my.app.mapper.impl;
import my.app.exceptions.ValidationException;
import my.app.mapper.MappedScanRequest;
import my.app.parser.impl.CommandLineParserImpl;
import org.apache.commons.cli.CommandLine;
import org.junit.Test;
import static org.junit.Assert.*;
public class CommandLineMapperScanMenuImplTest {
pr... | true |
cbe3e5f1c144d284d2051a14d4491ba69129e5a1 | Java | mcculls/nexus | /nexus/nexus-api/src/test/java/org/sonatype/nexus/proxy/walker/FixedRateWalkerThrottleControllerTest.java | UTF-8 | 5,337 | 1.960938 | 2 | [] | no_license | /**
* Sonatype Nexus (TM) Open Source Version
* Copyright (c) 2007-2012 Sonatype, Inc.
* All rights reserved. Includes the third-party code listed at http://links.sonatype.com/products/nexus/oss/attributions.
*
* This program and the accompanying materials are made available under the terms of the Eclipse Public L... | true |
66bc54e8707872e7734ca9fc8ba309a50ee790e7 | Java | nurchold/dwinurcholis | /app/src/main/java/com/example/dwi_n/sampleapplication/Model/UserProfile.java | UTF-8 | 919 | 2.34375 | 2 | [] | no_license | package com.example.dwi_n.sampleapplication.Model;
public class UserProfile {
private String id;
private String name;
private String gender;
private String phone;
private String photoProfile;
public String getId() {
return id;
}
public void setId(String id) {
this.id =... | true |
2f465abcf1b898572a4d25a58a6ae69e087af708 | Java | sricardo97/api-rest-filtro-gastos | /src/main/java/br/com/santander/api/repositories/GastoRepository.java | UTF-8 | 389 | 1.867188 | 2 | [] | no_license | package br.com.santander.api.repositories;
import java.util.List;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.data.mongodb.repository.Query;
import br.com.santander.api.documents.Gasto;
public interface GastoRepository extends MongoRepository<Gasto, String> {
@Qu... | true |
984b898aaf643717fab07ecec9681641807d062a | Java | chengliangzhou/pinpoint-agent-demo | /common/src/main/java/com/sino/common/service/IUserService.java | UTF-8 | 338 | 1.734375 | 2 | [] | no_license | package com.sino.common.service;
import com.sino.common.dto.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
@FeignClient(value = "producer")
public interface IUserService {
@RequestMapping(value = "findUserByName")
User findUserByNam... | true |
2409ec46cc88f2d497b3c7935bb535f273c0a5a3 | Java | lapd87/SoftUniDatabasesFrameworksHibernateAndSpringData | /07HibernateCodeFirstEntityRelations/src/main/java/_06FootballBettingDatabase/Competition.java | UTF-8 | 784 | 2.46875 | 2 | [
"MIT"
] | permissive | package _06FootballBettingDatabase;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.Set;
/**
* Created by IntelliJ IDEA.
* User: LAPD
* Date: 28.3.2018 г.
* Time: 20:36 ч.
*/
@Entity
@Table(name = "competit... | true |
08ffa458bb7e83120a86047888be98816cdeb383 | Java | xxliu95/ISST-Grupo10-Trip | /Trip/src/es/upm/dit/isst/trip/servlets/SubirFacturaServlet.java | UTF-8 | 1,826 | 2.34375 | 2 | [] | no_license | package es.upm.dit.isst.trip.servlets;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collection;
import javax.servlet.ServletException;
import javax.servlet.annotation.MultipartConfig;
import javax.servlet.annotation.WebServlet;
import javax.servlet.htt... | true |
ce05ab9797598873a28b4abfdb0ee53556f41940 | Java | identityOrg/identity | /src/main/java/net/prasenjit/identity/controller/audit/AuditApi.java | UTF-8 | 1,157 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018 prasenjit-net
*
* 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 applicab... | true |
d810500954a074e8572be36f6140e555c55843be | Java | lmwis/admin-system | /src/main/java/com/fehead/open/admin/login/MyUserDetailsService.java | UTF-8 | 1,300 | 2.140625 | 2 | [] | no_license | package com.fehead.open.admin.login;
import com.fehead.open.admin.dao.AdminMapper;
import com.fehead.open.admin.dao.PasswordMapper;
import com.fehead.open.admin.dao.pojo.Admin;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.core.authority.AuthorityUtils;
import org.s... | true |
433eebdfec6d90b9e041a0ac9861b7e8fe5154f6 | Java | vkalithkar/TJCS9 | /Unit4/Lab15/Gameboard15.java | UTF-8 | 1,709 | 3.015625 | 3 | [] | no_license | //Name______________________________ Date_____________
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class Gameboard15 extends JPanel
{
private JButton[][] board;
private String gamepiece;
private Color color;
private int count;
public Gamebo... | true |
e7af75fd686b784e1880a6ecf6af22d0f997ff0e | Java | fellowlei/mysharding | /src/main/java/com/mark/sharding/plugin/v3/HelloServiceTest.java | UTF-8 | 801 | 2.078125 | 2 | [] | no_license | package com.mark.sharding.plugin.v3;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.stereotype.Component;
/**
* @Auther: lulei
* @Date: 2020/1/9 15:14
* @Description:
*/
@Component
public class HelloServiceTest {
@RoutingInjected("helloServiceImplB... | true |
a1a317b1a93cd93dbaafac500bda1df12ccd7b61 | Java | latyak/Torpedo | /src/torpedo/SettingsForm.java | UTF-8 | 4,069 | 2.390625 | 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 torpedo;
import javax.swing.*;
import com.jgoodies.forms.layout.CellConstraints;
import com.jgoodies.forms.layout.FormLayout;... | true |
c0dcf66a79c91fd4f6bfca53408bec83fe684301 | Java | cevaris/learn-java | /src/main/java/com/cevaris/concurrency/dining_philosophers/DiningPhilosophers.java | UTF-8 | 4,327 | 3.421875 | 3 | [] | no_license | package com.cevaris.concurrency.dining_philosophers;
import java.util.Deque;
import java.util.LinkedList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Semaphore;
import java.util.concurrent.TimeUnit;
public class DiningPhilosophers {
private final... | true |
5403ce4f77f920f3e18f76b758dfbe936c536d55 | Java | HDUKimi/Lab603Projects | /violetproduct-swing/src/main/java/com/horstmann/violet/application/gui/util/wujun/SequenceTransfrom/UppaalTemplate.java | GB18030 | 875 | 2.125 | 2 | [] | no_license | package com.horstmann.violet.application.gui.util.wujun.SequenceTransfrom;
import java.util.ArrayList;
public class UppaalTemplate
{
String declaration;
String Name;//Զ
ArrayList<UppaalLocation> locations=new ArrayList<UppaalLocation>();//״̬
ArrayList<UppaalTransition>transitions=new ArrayList<Uppaal... | true |
54f88d302794328bfc2586b4836d5c9d5d189ecc | Java | iBakuman/MyBatis | /A_01_Introduction/src/main/java/com/example/dao/IStudentDao.java | UTF-8 | 333 | 2.046875 | 2 | [] | no_license | package com.example.dao;
import com.example.domain.Student;
import org.apache.ibatis.annotations.Select;
import java.util.List;
public interface IStudentDao {
/**
* 查询所有记录
* @return 返回封装了的对象数组
*/
@Select("select * from student")
List<Student> findAll();
}
| true |
04e0bb23beac1dcc27e36611e54ee97138300398 | Java | roy7rohit/java-basics | /Array/array.java | UTF-8 | 576 | 3.34375 | 3 | [
"MIT"
] | permissive | package array;
import java.util.Arrays;
public class array {
public static void reverse(int arr[]){
//start = 0, end = length-1
//arr[] = {12,23,45,95}
//arr[] = {}
int start = 0;
int end = arr.length - 1;
while(start <= end){
int temp;
temp = arr[start];//12=temp
arr[sta... | true |
e3a8fc54a6dc872cc7a4c7a7d1b144cace03374e | Java | AmuseWorkingTeam/XXYP | /app/src/main/java/com/xxyp/xxyp/map/utils/NetworkUtils.java | UTF-8 | 2,643 | 2.671875 | 3 | [
"Apache-2.0"
] | permissive | package com.xxyp.xxyp.map.utils;
import android.Manifest;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.support.annotation.RequiresPermission;
/**
* Description : 网络工具类
*/
public class NetworkUtils {
/**
* 判断网络是否可用
*/
@Requi... | true |
01e3b7c32f054070eace5cc705ca46a0baad057c | Java | RamakrishnaQA123/GoogleMaps | /SathyaProject/src/TestNGFramework/Tc1ByReusableMethods.java | UTF-8 | 1,252 | 2.046875 | 2 | [] | no_license | package TestNGFramework;
import org.openqa.selenium.By;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.server.browserlaunchers.Sleeper;
import org.testng.annotations.Test;
public class Tc1ByReusableMethods {
HrmloginTCByTestNG obj;
FirefoxDriver driver;
@Test
public voi... | true |
5f74ce94ed6373b387bdfa08a3a44186a4e49685 | Java | omerclskn/Kizilay-Database-Sistemi | /src/basvuranDB.java | UTF-8 | 25,112 | 2.296875 | 2 | [] | no_license | package kizilay;
import java.awt.Color;
import java.awt.EventQueue;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import java... | true |
2f71bb8ad1bd8dde5767d5a480afee9d63f61479 | Java | mayur2402/java | /Number/StrongX.java | UTF-8 | 911 | 3.28125 | 3 | [] | no_license | import java.util.*;
import java.lang.*;
class Digits
{
public void checkStrong(int iS,int iE)
{
int iAns = 0,iFact = 1,iNo ;
int fact[] = {1,1,2,6,24,120,120,5040,40320,362880};
if(iS > iE)
{
return ;
}
while(iS != iE)
{
iNo = iS;
iAns = 0;
while(iNo != 0)
{
iFact = 1;
int iDi... | true |
578480de0587a465691b74c91da3329d0a3f0900 | Java | jackshi0912/academic | /data_structures_and_algorithms/7_BST/src/BSTree.java | UTF-8 | 17,314 | 3.71875 | 4 | [] | no_license | /*
* NAME: Huize Shi
* ID: A92122910
* Date: Feb. 26th, 2016
* LOGIN: cs12wjz
*/
package hw7;
import java.util.LinkedList;
/**
* The binary search tree
*
* @author Huize Shi
* @version Feb. 26, 2016
*/
public class BSTree {
// Declaring and initializing appropriate values
private BSTNode root;
... | true |
66e095e204a220270cd672af9361f136ec667bb7 | Java | igeekinc/IndelibleFSClient | /src/com/igeekinc/indelible/indeliblefs/IndelibleDirectoryNodeIF.java | UTF-8 | 5,887 | 1.78125 | 2 | [] | no_license | /*
* Copyright 2002-2014 iGeek, Inc.
* 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 appl... | true |
a7ec4618cdb99fc21f7f8fbd183c12ce5bc4f406 | Java | htliu/labcenter | /LabCenter/src/com/lifepics/neuron/meta/OrSelector.java | UTF-8 | 603 | 2.65625 | 3 | [] | no_license | /*
* OrSelector.java
*/
package com.lifepics.neuron.meta;
/**
* A selector that combines the logic of other selectors using OR.
*/
public class OrSelector implements Selector {
// --- fields ---
private Selector selector1;
private Selector selector2;
// --- construction ---
public... | true |
c96513a68bf73eb8ded7c91c114ae657561d7096 | Java | mik3hall/bjb | /src/org/bjb/CardComponent.java | UTF-8 | 950 | 2.71875 | 3 | [] | no_license | package org.bjb;
import java.awt.Dimension;
import java.awt.Graphics;
import javax.swing.ImageIcon;
import javax.swing.JComponent;
public class CardComponent extends JComponent {
ImageIcon cardIcon = null;
int ivalue = 0;
public CardComponent(ImageIcon ico) {
cardIcon = ico;
Dimension d = new Dimension(cardI... | true |
35154f31347be5dc845cd6837d9b087b245eee14 | Java | Alienovsky/JMSServer | /src/main/java/com/madebykamil/service/DataProvider.java | UTF-8 | 3,572 | 2.84375 | 3 | [] | no_license | package com.madebykamil.service;
import com.madebykamil.model.Author;
import com.madebykamil.model.Book;
import com.madebykamil.model.Catalog;
import com.thoughtworks.xstream.XStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.ArrayList;
import java.util.List;
public class Data... | true |
1396eb87a7aedafec2ba1e9b2e0a0aa7328e2ab1 | Java | evernym/indy-sdk | /wrappers/java/src/test/java/org/hyperledger/indy/sdk/non_secrets/DeleteRecordTest.java | UTF-8 | 1,231 | 2.015625 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package org.hyperledger.indy.sdk.non_secrets;
import org.hyperledger.indy.sdk.wallet.WalletItemNotFoundException;
import org.junit.Test;
import java.util.concurrent.ExecutionException;
import static org.hamcrest.CoreMatchers.isA;
public class DeleteRecordTest extends NonSecretsIntegrationTest {
@Test
public voi... | true |
f00210630ded44e8c3210df1ea593c5ce2e29d23 | Java | hyuni917/programmers | /src/datastructure/Tower.java | UTF-8 | 1,105 | 3.6875 | 4 | [] | no_license | package datastructure;
import java.util.Stack;
public class Tower {
public static void main(String[] args){
int numbers[] = {6,9,5,7,4};
Tower t= new Tower();
t.solution(numbers);
}
public int[] solution(int[] heights) {
int heightsSize = heights.length;
int[] ans... | true |
8485678ad80351f0e65a02ac611550c419e6a264 | Java | stg-tud/tigerseye | /languages/src/test/groovy/de/tud/stg/tigerseye/tests/logo/TurtleMetaClass.java | UTF-8 | 5,183 | 2.421875 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | ///////////////////////////////////////////////////////////////////////////////
// Copyright 2009-2015, Technische Universitaet Darmstadt (TUD), Germany
//
// The TUD licenses this file to you under the Apache License, Version 2.0 (the
// "License"); you may not use this file except in compliance
// with the Licen... | true |
dbb7cd6cc5001bc129218c86e1d80e9047254533 | Java | rlong/java.jsonbroker.library | /src/jsonbroker/library/common/log/ReleaseLogDelegate.java | UTF-8 | 1,527 | 2.046875 | 2 | [
"MIT"
] | permissive | // Copyright (c) 2013 Richard Long & HexBeerium
//
// Released under the MIT license ( http://opensource.org/licenses/MIT )
//
package jsonbroker.library.common.log;
public class ReleaseLogDelegate implements LogDelegate {
LogDelegate _delegate;
public ReleaseLogDelegate( LogDelegate delegate ) {
... | true |
c1f5ff38fdac328602d7af194ce1a57848718731 | Java | SFIDevelopment/osmv | /Parkoid/src/at/the/gogo/parkoid/fragments/OverviewFragment.java | UTF-8 | 8,531 | 2.015625 | 2 | [] | no_license | package at.the.gogo.parkoid.fragments;
import java.util.Iterator;
import java.util.Map;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
im... | true |
d4e0664635d02a997c60aab122db99796ed3bf9a | Java | barneymaydance/leetcode_solutions | /undone/MajorityElement.java | UTF-8 | 497 | 3.109375 | 3 | [] | no_license | //O(n) time
//O(1) space
//the Boyer-moore Majority vote algorithm
public class Solution {
public int majorityElement(int[] num) {
int res=num[0];
int count=0;
for(int i=0;i<num.length;i++){
if(count==0){
res=num[i];
}
if(num[i]==res){
... | true |
a77a74e0ed6c75d820890b257fe22a8a9e5d6358 | Java | TTcheng/choerodon-starters | /choerodon-starter-asgard/src/main/java/io/choerodon/asgard/property/PropertyEndpoint.java | UTF-8 | 585 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package io.choerodon.asgard.property;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE;
@RestController
public class PropertyEndpoint {
private PropertyData propertyDa... | true |