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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
f75968268e4d509431793282f47a090aa1733cb3 | Java | dan7800/Research | /Research_Bucket/Completed_Archived/NIER 2015/data/dataRecovered_9_8_2015/Dataset_full/Pooling/52.172-SourceFile.java | UTF-8 | 1,060 | 2.1875 | 2 | [] | no_license | // Copyright (c) Corporation for National Research Initiatives
package org.python.compiler;
import java.io.*;
public class SourceFile extends Attribute {
int attName;
int filename;
public SourceFile(String name, ConstantPool pool) throws IOException {
attName = pool.UTF8("SourceFile");
fi... | true |
8146d2199aacc1adba6b900e32b48a414b85d02c | Java | wgiacomin/java-ee | /src/java/com/ufpr/tads/web2/servlets/CategoriaProdutoServlet.java | UTF-8 | 12,004 | 2.140625 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.ufpr.tads.web2.servlets;
import com.ufpr.tads.web2.beans.AtendimentoBean;
import com.ufpr.tads.web2.beans.CadastroBean;
import... | true |
9049598d971b86a585785c8a37caf3787ce61c7f | Java | bkkumarbharath/worksheet | /lab ex 7/Arraylist.java | UTF-8 | 1,111 | 3.375 | 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 arraylist;
import java.util.*;
/**
*
* @author User
*/
public class Arraylist {
/**
* @param arg... | true |
f34fbefdad1dab56ca94f7b5fd61e43bbae76da7 | Java | oniubi/github-repositories | /SpringMVC-Mybatis-Shiro-redis-0.2/src/main/java/com/sojson/core/shiro/token/ShiroToken.java | UTF-8 | 907 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.sojson.core.shiro.token;
import org.apache.shiro.authc.UsernamePasswordToken;
/**
*
* 开发公司:SOJSON在线工具
* <p>
* 版权所有:© www.sojson.com
* <p>
* 博客地址:http://www.sojson.com/blog/
* <p>
* <p>
*
* Shiro token
*
* <p>
*
* 区分 责任人 日期 说明<br/>
* 创建 周柏成 2016年6月2日 <br/>
*
* @author zhou-baicheng
* ... | true |
c27e18293a4315f3a9a30c63d30c2124d2b1807c | Java | hanfak/ShopOfHan | /src/main/java/hanfak/shopofhan/infrastructure/web/jetty/ShopOfHanServer.java | UTF-8 | 1,163 | 2.546875 | 3 | [] | no_license | package hanfak.shopofhan.infrastructure.web.jetty;
import hanfak.shopofhan.infrastructure.properties.Settings;
import hanfak.shopofhan.infrastructure.web.server.WebServer;
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.servlet.ServletContextHandler;
import static java.lang.String.format;
public cla... | true |
c4f4063d0a17973feb704f663b5c7e92f36a7cc7 | Java | ShaastraWebops/android-app-2017 | /app/src/main/java/shaastra/com/android_app_2017/VerticalAdapter.java | UTF-8 | 2,364 | 2.25 | 2 | [] | no_license | package shaastra.com.android_app_2017;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;
import java... | true |
7aed3be9b1201a5277298c4f67d03154d1c0dbb1 | Java | MegaDevs/WhyMCA | /TwitterSW_WhyMCA/src/com/megadevs/twitterswhymca/TwitterSW_WhyMCAActivity.java | UTF-8 | 1,563 | 2.265625 | 2 | [
"BSD-2-Clause"
] | permissive | package com.megadevs.twitterswhymca;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;
import com.megadevs.socialwrapper.whymca.SocialWrapper;
import com.megadevs.socialwrapper.whymca.exceptions.SocialNetworkNotFoundException;
import com.megadevs.socialwrapper.whymca.thetwitter.TheTw... | true |
f65e67e546a7dfea002453e7dac20334ed477624 | Java | yogiklive/JavaBasics | /src/interviewPrograms/inhertiancePrograms/Output.java | UTF-8 | 233 | 2.609375 | 3 | [] | no_license | package interviewPrograms.inhertiancePrograms;
public class Output {
public static void main(String args[]){
String s1= "Hellow i love Java";
String s2= new String(s1);
System.out.println((s1==s2)+ ""+(s1.equals(s2)));
}
}
| true |
ca97b56ccce1b652e448080ec81e9fd1286cb317 | Java | SunAlwaysOnline/LeetCode | /src/leetcode/easy/phase16/Number1539.java | UTF-8 | 2,063 | 3.859375 | 4 | [] | no_license | package leetcode.easy.phase16;
import method.WaitForUnderstand;
/**
* @author qcy
* @create 2021/01/26 10:19:09
* 1539. 第 k 个缺失的正整数
*
* 给你一个 严格升序排列 的正整数数组 arr 和一个整数 k 。
*
* 请你找到这个数组里第 k 个缺失的正整数。
*
*
* 示例 1:
*
* 输入:arr = [2,3,4,7,11], k = 5
* 输出:9
* 解释:缺失的正整数包括 [1,5,6,8,9,10,12,13,...] 。第 5 个缺失的正整数为 9 。... | true |
69556dc72e8847066a3c7d3cdf6516a510896ca1 | Java | yangchunjian/ssssssss | /src/main/java/org/ssssssss/utils/S8XMLFileParser.java | UTF-8 | 10,548 | 2.21875 | 2 | [
"MIT"
] | permissive | package org.ssssssss.utils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.ssssssss.enums.SqlMode;
import org.ssssssss.scripts.ForeachSqlNode;
import org.ssssssss.scripts.IfSqlNode;
import org.ssssssss.s... | true |
1b5ed5f6be88eedb257272c32cf23173fa928d74 | Java | ifox12/Whale | /src/Input.java | UTF-8 | 895 | 2.921875 | 3 | [] | no_license | import java.awt.*;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
public class Input {
// TODO testable
void setUpInput(GameManager manager, Component frame) {
frame.addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent event) {
... | true |
48974fe8c2f51f5c3db1cbd09e79d61ee4f39728 | Java | RuntimeTerror-team/kindergarten | /kindergarten/src/main/java/lt/vtmc/kindergarten/controller/HealthFormController.java | UTF-8 | 3,631 | 2.296875 | 2 | [] | no_license | package lt.vtmc.kindergarten.controller;
import io.swagger.annotations.ApiOperation;
import lt.vtmc.kindergarten.domain.HealthForm;
import lt.vtmc.kindergarten.dto.HealthFileResponse;
import lt.vtmc.kindergarten.dto.ResponseMessage;
import lt.vtmc.kindergarten.service.HealthFormService;
import org.springframework.bean... | true |
e9f6f2805a7b71db19e98f789302bcd5ad675274 | Java | AakashAlagarsamy/PracticePrograms | /src/TCS_Xplore1/Solution2.java | UTF-8 | 227 | 2.71875 | 3 | [] | no_license | package TCS_Xplore1;
public class Solution2 {
public static void main(String args[]) {
double length = 10.0, width = 12.0;
System.out.println(Math.round(Area.calculateArea(length, width)) + ".0");
}
}
| true |
41573d1169b4359652f27952c07b836cf8eeac66 | Java | tagine4444/AnimalMedicalImaging | /src/main/java/com/bouacheria/ami/repository/uploads/UploadsRepository.java | UTF-8 | 417 | 1.859375 | 2 | [] | no_license | package com.bouacheria.ami.repository.uploads;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import com.bouacheria.ami.domain.uploads.Uploads;
public interface UploadsRepository extends JpaRepository<Uplo... | true |
523aef84b21107701237f71d3d03146b8f451bda | Java | caneraltinbasak/adozeneggs | /core/src/main/java/com/scgame/adozeneggs/core/SceneLoading.java | UTF-8 | 3,310 | 2.234375 | 2 | [] | no_license | package com.scgame.adozeneggs.core;
import static playn.core.PlayN.assetManager;
import static playn.core.PlayN.graphics;
import static playn.core.PlayN.json;
import static playn.core.PlayN.log;
import com.scgame.adozeneggs.core.SceneNavigator;
import playn.core.GroupLayer;
import playn.core.Image;
import playn.core... | true |
311546f5af5c6d2849766a28e70157a2664dcdc7 | Java | halittugra/Projelerim | /ScrappingLinks.java | UTF-8 | 718 | 3.109375 | 3 | [] | no_license | import java.net.URL;
import java.util.Scanner;
import java.io.IOException;
public class ScrappingLinks {
public static void main(String[] args) throws IOException{
String address = "https://codeforces.com/";
URL pageLocation = new URL(address);
Scanner scn = new Scanner(pageLo... | true |
655b3c6e55e969fa9b5aa09e95a07e9a8bf6120a | Java | abaluni/rest-api-framework | /src/main/java/com/arun/framework/getcataloguedetailsapi/pojo/response/ListingFeeTiers.java | UTF-8 | 1,044 | 2.21875 | 2 | [] | no_license | package com.arun.framework.getcataloguedetailsapi.pojo.response;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
"MinimumTierPrice"... | true |
2e9d6e92f60cb8d1e92c9d388cf20069508d42f3 | Java | zenstok/oncomed | /app/src/main/java/challengeaccepted/oncomed/addRequest/AddRequestActivity.java | UTF-8 | 2,723 | 2.1875 | 2 | [] | no_license | package challengeaccepted.oncomed.addRequest;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
imp... | true |
2879a86d602dea19aff9dba58e078123c11563d3 | Java | abiquo/abiquo | /api/src/main/java/com/abiquo/api/services/appslibrary/CategoryService.java | UTF-8 | 10,299 | 1.90625 | 2 | [] | no_license | /**
* Abiquo community edition
* cloud management application for hybrid clouds
* Copyright (C) 2008-2010 - Abiquo Holdings S.L.
*
* This application is free software; you can redistribute it and/or
* modify it under the terms of the GNU LESSER GENERAL PUBLIC
* LICENSE as published by the Free Software Foundatio... | true |
27c9c5c5fd46d244d64cd091b0140b58494d4c0b | Java | andradeirla/pratica_mapeamento-ORM | /src/main/java/com/example/demo/service/PublicationService.java | UTF-8 | 535 | 1.820313 | 2 | [] | no_license | package com.example.demo.service;
import com.example.demo.dto.PublicationRequest;
import com.example.demo.dto.PublicationResponse;
import com.example.demo.dto.PublicationUpdateRequest;
import com.example.demo.entity.PublicationEntity;
public interface PublicationService {
public PublicationResponse addPublicati... | true |
e514e7c8fa5294272b8561698473240927f0218f | Java | ranmengyuan/SearchEngine | /src/searchEngine/Demo_web.java | UTF-8 | 2,998 | 2.8125 | 3 | [] | no_license | package searchEngine;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;
public class Demo_web {
static String sql = null;
static DBHelper db1 = null;
static ResultSet ret = null;
static java.sql.Statement stmt = null;
public Demo_web() {
}
... | true |
b3579a72317a2188ba19ffda5d6b612a1ebfbd46 | Java | speedSK/MyECommerce | /src/main/java/com/ruoyi/common/utils/SysConfigUtil.java | UTF-8 | 1,431 | 2.03125 | 2 | [
"MIT"
] | permissive | package com.ruoyi.common.utils;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import com.ruoyi.common.utils.spring.SpringUtils;
import com.ruoyi.project.system.config.service.ConfigServi... | true |
28493b47b0901d6a1f00818a984d713193a45066 | Java | Alex-Schouten/eurder | /src/main/java/com/alex/eurder/service/OrderService.java | UTF-8 | 1,169 | 2.1875 | 2 | [] | no_license | package com.alex.eurder.service;
import com.alex.eurder.business.entity.shop.Order;
import com.alex.eurder.business.repository.OrderRepository;
import com.alex.eurder.service.dto.OrderDTO;
import com.alex.eurder.service.dto.users.CustomerDTO;
import com.alex.eurder.service.mapper.OrderMapper;
import org.springframewor... | true |
bdb55bfc761983b0c5b3c76312a763d82c589bdc | Java | architectdrone/ArchEvo2 | /src/main/java/org/architectdrone/archevo/universe/iterationhelper/cellcontainer/CellContainerIterationHelper.java | UTF-8 | 7,997 | 2.609375 | 3 | [] | no_license | package org.architectdrone.archevo.universe.iterationhelper.cellcontainer;
import java.lang.reflect.Constructor;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.function.Function;
import java.util.stream.Collectors;
import org.architectdrone.archevo.action.Action;
import or... | true |
f792190d23b493c5173ed44bc1c7991a3c659711 | Java | fraser1234/homework_week_7_weekend | /src/main/java/Shop/DrumSticks.java | UTF-8 | 417 | 2.75 | 3 | [] | no_license | package Shop;
public class DrumSticks extends ShopItems {
public DrumSticks(String description, double boughtPrice, double sellPrice) {
super(description, boughtPrice, sellPrice);
}
@Override
public double calculateMarkup() {
double margin = this.getSellPrice() - this.getBoughtPrice();... | true |
99b82c199adf4fd90d4c3d15dea6551232fd446f | Java | egrohs/CGF | /src/cgf/listeners/ListenersVisao.java | UTF-8 | 2,893 | 2.34375 | 2 | [] | no_license | package cgf.listeners;
import java.awt.Frame;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import cgf.Constantes;
import cgf.Controle;
import cgf.Jogo;
import cgf.Util;
import cgf.rmi.IPlayer;
public class Lis... | true |
606d1057b0c91092d89c269eefa1dd3e0213cbba | Java | k010c1306/sdcardlist_qc | /src/jp/example/fileviewer_qc/Sort.java | UTF-8 | 489 | 2.125 | 2 | [] | no_license | package jp.example.fileviewer_qc;
import java.text.Collator;
import java.util.Comparator;
public class Sort {
//名前昇順
public final static Comparator<CustomData> sDisplayNameComparator = new Comparator<CustomData>() {
private final Collator collator = Collator.getInstance();
public int compare(Custo... | true |
4009d3672ca38d84e34725225fd76eb820f45ebf | Java | lyle8341/design_pattern | /src/com/lyle/structure/组合模式/App.java | UTF-8 | 620 | 2.953125 | 3 | [
"MIT"
] | permissive | package com.lyle.structure.组合模式;
/**
* @ClassName: App
* @Description: TODO
* @author: Lyle
* @date: 2017年2月24日 上午10:04:09
*/
public class App {
public static void main(String[] args) {
Folder folder = new Folder("总文件夹");
ImageFile image = new ImageFile("凤凰图");
TextFile text = new TextFile("紫霞秘籍");
Fold... | true |
a8ce8b3bc48f969baa24493e15125d10b8a1e5e3 | Java | robknapen/OpenMI-2-SDK | /src/nl/wur/alterra/openmi/sdk2/builders/ComponentBuilder.java | UTF-8 | 2,552 | 2.515625 | 3 | [] | no_license | package nl.wur.alterra.openmi.sdk2.builders;
import org.openmi.standard2.IBaseLinkableComponent;
/**
* Unintentionally left blank.
*
* @author Rob Knapen; Alterra, Wageningen UR, The Netherlands (2011)
*/
public class ComponentBuilder {
public static IBaseLinkableComponent build(Class model) {
// T... | true |
1ea5337f692886e13b6d12002630624f4241dfef | Java | phax/ph-commons | /ph-commons/src/main/java/com/helger/commons/ws/HostnameVerifierVerifyAll.java | UTF-8 | 1,886 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2014-2023 Philip Helger (www.helger.com)
* philip[at]helger[dot]com
*
* 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/LICEN... | true |
8034c719a97067a5970eaabb2fa886d4fb1c9fe6 | Java | fenghuajian/DreamTownShop | /DreamShop/src/main/java/cn/guet/service/IPermissionService.java | UTF-8 | 443 | 1.914063 | 2 | [] | no_license | package cn.guet.service;
import cn.guet.domain.Permission;
import cn.guet.util.PageModel;
import java.util.List;
public interface IPermissionService {
List<Permission> getAllPermission();
List<Permission> getPermissionByRoleId(String roleId);
PageModel<Permission> getAll(int currentPage);
void savePermission(... | true |
c40710cc8fdf244a748c7a80187425ff94fbd91c | Java | garethahealy/karaf-commands | /container-status/src/main/java/com/garethahealy/karaf/commands/container/status/predicates/ContainerStoppedPredicate.java | UTF-8 | 2,037 | 2.09375 | 2 | [
"Apache-2.0"
] | permissive | /*
* #%L
* GarethHealy :: Karaf Commands :: container-status
* %%
* Copyright (C) 2013 - 2018 Gareth Healy
* %%
* 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.ap... | true |
02c2c1a7a8bbde7569fb62e4b444b8b5d5f9a092 | Java | shangxindada/mysolr | /src/main/java/solr/util/SolrServer.java | UTF-8 | 6,882 | 2.265625 | 2 | [] | no_license | package solr.util;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.solr.client.solrj.SolrQu... | true |
6fa9d1f811bfa6438c25542b1ddfa4f4f16787e1 | Java | jackzjw/OEC | /app/src/main/java/shangchuan/com/oec/model/bean/TaskCommentBean.java | UTF-8 | 2,484 | 1.796875 | 2 | [
"Apache-2.0"
] | permissive | package shangchuan.com.oec.model.bean;
/**
* Created by sg280 on 2017/5/15.
*/
public class TaskCommentBean {
private String Id ;
private String PId;
private String UserID ;
private String UserName ;
private String Remark ;
private String ObjectId;
private String IsComment;
priva... | true |
ff699126288b0cc24a5f7300482e378085dab926 | Java | ngocnghektq/HomeWorkJava | /Homework7 update/src/Bai2.java | UTF-8 | 964 | 2.953125 | 3 | [] | no_license | //import java.util.Scanner;
//
//public class Bai2 {
// void NhapMang1C() {
// int n;
// System.out.println("Nhap vao phan tu cua mang: ");
// Scanner scn = new Scanner(System.in);
// n = scn.nextInt();
// int[] array = new int[n];
// for (int i = 0; i < array.length; i++) {... | true |
92f23ad03f809a42465700035c4c59f15ad90b2b | Java | kvmkreddy/multitenancy | /src/main/java/org/os/javaee/orm/multitenancy/annotations/EnableMultiTenancy.java | UTF-8 | 592 | 1.984375 | 2 | [] | no_license | package org.os.javaee.orm.multitenancy.annotations;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* <p>Title: EnableMultiTenancy</p>
* <p><b>Description:</b> This annotation is replaced with <code>... | true |
898444a7afebc3a52c54c2d405f6daaccc9c3ab2 | Java | D-Edw/COM809-MSc-PSD | /src/Lab1/TestCar.java | UTF-8 | 1,142 | 3.609375 | 4 | [] | no_license | package Lab1;
/**
* Created by: Daniel
* Created on: 11/11/19
* Program to test the Car class
*/
public class TestCar {
public static void main(String [] args) {
Car myCar;
myCar = new Car ();
myCar.printCarDetails();
Car someCar = new Car ();
someCar.pr... | true |
3129d1fd40054b5395a6b4b46da64f19f9b26249 | Java | DaeSeopJeong/coffee-coffeeapp | /src/main/java/coffeedelivery/Order.java | UTF-8 | 1,468 | 2.375 | 2 | [] | no_license | package coffeedelivery;
import javax.persistence.*;
import org.springframework.beans.BeanUtils;
import java.util.List;
@Entity
@Table(name="Order_table")
public class Order {
private String item;
private Integer qty;
@Id
@GeneratedValue(strategy=GenerationType.AUTO)
private Long orderId;
@Pr... | true |
8032307ec4663358ebc125b3502b1bdd7b813612 | Java | Jire/Titus | /src/titus/model/map/pf/PathFinder.java | UTF-8 | 384 | 2.5 | 2 | [] | no_license | package titus.model.map.pf;
import titus.model.map.Tile;
public abstract class PathFinder {
public abstract Path findPath(Tile start, Tile end);
public Path findPath(int startX, int startY, int endX, int endY) {
return findPath(Tile.locate(startX, startY), Tile.locate(endX, endY));
}
public static PathFinder... | true |
fbc23db7c787b0231898a70efc33c8142df5949f | Java | juny1905/infit | /app/src/main/java/com/brainyoung/ryan/arabang/MainActivity.java | UTF-8 | 6,857 | 2.03125 | 2 | [] | no_license | package com.brainyoung.ryan.arabang;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.But... | true |
ba872cacb969f839bb9f5dfae52c759ac707d257 | Java | grim3212/SMITE-Helper | /src/grim3212/java/smitehelper/gui/PageGodInfo.java | UTF-8 | 2,371 | 2.453125 | 2 | [] | no_license | package grim3212.java.smitehelper.gui;
import grim3212.java.smitehelper.gods.BasicGod;
import grim3212.java.smitehelper.gui.tablestuff.ImageBundle;
import grim3212.java.smitehelper.gui.tablestuff.ImageTableColumnDamageType;
import grim3212.java.smitehelper.gui.tablestuff.ImageTableColumnName;
import grim3212.java.smit... | true |
9ba9a4f7227b23df09128fab28c3e74db7685ec6 | Java | viniciusufop/hacker-rank | /src/main/java/br/com/vfs/string_manipulation/SherlockAndTheValidString.java | UTF-8 | 1,210 | 3.484375 | 3 | [] | no_license | package br.com.vfs.string_manipulation;
import java.util.HashMap;
import java.util.Map;
public class SherlockAndTheValidString {
// Complete the isValid function below.
static String isValid(String s) {
Map<Integer, Integer> map = new HashMap<>();
s.chars().forEach(chars -> map.compute(chars... | true |
e531658e22cbb83a90a7e65be11d25d2ad678c92 | Java | furszy/IoP-Governance-Apps | /old_app/src/main/java/iop/org/iop_contributors_app/ui/components/switch_seek_bar/SwitchSeekBar.java | UTF-8 | 3,145 | 2.625 | 3 | [] | no_license | package iop.org.iop_contributors_app.ui.components.switch_seek_bar;
import android.content.Context;
import android.util.AttributeSet;
import android.widget.SeekBar;
import java.util.ArrayList;
import java.util.List;
import iop.org.iop_contributors_app.R;
/**
* Created by mati on 20/12/16.
*/
public class SwitchS... | true |
99d6d9535f783b3b478b481314b2836c5c8513bb | Java | qq824810885/jsourcepad | /editor-installer/src/main/java/kkckkc/jsourcepad/installer/InstallerPlugin.java | UTF-8 | 1,092 | 2 | 2 | [] | no_license | package kkckkc.jsourcepad.installer;
import kkckkc.jsourcepad.Plugin;
import kkckkc.jsourcepad.util.BeanFactoryLoader;
import org.springframework.beans.factory.support.DefaultListableBeanFactory;
import org.springframework.core.io.ClassPathResource;
import org.springframework.core.io.Resource;
public class InstallerP... | true |
99d25db49de66f7a099b4455b97932c71341f1d5 | Java | isopov/SmartGwt-testing | /smarttest/src/com/sopovs/moradanen/rf/smartgwt/client/SectorDataSource.java | UTF-8 | 1,722 | 2.234375 | 2 | [] | no_license | package com.sopovs.moradanen.rf.smartgwt.client;
import java.util.ArrayList;
import java.util.List;
import com.google.web.bindery.requestfactory.shared.Request;
import com.smartgwt.client.data.DataSourceField;
import com.smartgwt.client.data.Record;
import com.smartgwt.client.data.fields.DataSourceTextField;
import c... | true |
c042426e08d22b60fa332eac83a25849a46702e9 | Java | marcos1080/cpt222-ass1-2 | /src/au/edu/rmit/cpt222/view/HousePanel.java | UTF-8 | 1,185 | 3.046875 | 3 | [] | no_license | package au.edu.rmit.cpt222.view;
import java.awt.BorderLayout;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import javax.swing.JLabel;
import javax.swing.JPanel;
import au.edu.rmit.cpt222.model.interfaces.DicePair;
import au.edu.rmit.cpt222.view.player.DicePairView;
/**
* A view to hold the dice fo... | true |
972f5bea7c1c9e6ca37ba20b4ff50a7820155a61 | Java | leslieAIbin/Note | /shiro/03_shiro_Authentication_realm/src/main/java/com/sxt/service/impl/UserServiceImpl.java | UTF-8 | 695 | 2.390625 | 2 | [] | no_license | package com.sxt.service.impl;
import java.util.Date;
import com.sxt.domain.User;
import com.sxt.service.UserService;
public class UserServiceImpl implements UserService {
@Override
public User queryUserByUserName(String username) {
User user=null;
switch (username) {
case "zhangsan":
user=new User("zhang... | true |
ebe7c6b521ac0c7e9d23c4778707ba13749f9284 | Java | MatteCarra/aws-sdk-java-v2 | /services/simpledb/src/it/java/software/amazon/awssdk/services/simpledb/DeleteAttributesIntegrationTest.java | UTF-8 | 2,737 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... | true |
7cc31298c8ba8c07cf758829d3023c793c398f72 | Java | haiwangLi/WeKnowServer | /weknow_dao/src/main/java/cn/edu/cqut/weknow/customer/po/mapper/UsersCustomerMapper.java | UTF-8 | 155 | 1.640625 | 2 | [] | no_license | package cn.edu.cqut.weknow.customer.po.mapper;
import cn.edu.cqut.weknow.po.Users;
public interface UsersCustomerMapper {
int insert(Users record);
} | true |
666d7830ec797a7a8c76edc8551a6927d161e792 | Java | alyab16/Item-Trader | /src/gui/tradeUI/ManageReturnMeeting.java | UTF-8 | 16,848 | 2.28125 | 2 | [] | no_license | /*
* Created by JFormDesigner on Sat Aug 15 15:44:31 EDT 2020
*/
package gui.tradeUI;
import java.util.*;
import gui.loginUI.LoginPage;
import gui.loginUI.MainPage;
import gui.util.DisplayUtil;
import accounts.UserAccount;
import trades.Meeting;
import trades.Trade;
import trades.TradeLogManager;
import java.awt.*... | true |
76e519d5ca211126ca3b2378d5e78f99bd2f60f5 | Java | linhnv5/bt13.huynq12.spring.mvc | /src/main/java/topica/linhnv5/spring/web/mvc/repository/ApplicationRepository.java | UTF-8 | 803 | 2.203125 | 2 | [] | no_license | package topica.linhnv5.spring.web.mvc.repository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.repository.query.P... | true |
55631dfc37cea6811897aefa56e14f92555f820f | Java | wojciechGaudnik/Learning | /Java/JavaPatternsAndOther/0others/vavr/src/test/java/VavrTest.java | UTF-8 | 7,347 | 2.765625 | 3 | [] | no_license | import io.vavr.Function0;
import io.vavr.Function1;
import io.vavr.Function2;
import io.vavr.Function5;
import io.vavr.Lazy;
import io.vavr.Tuple;
import io.vavr.Tuple2;
import io.vavr.Tuple3;
import io.vavr.collection.List;
import io.vavr.collection.Seq;
import io.vavr.control.Option;
import io.vavr.control.Try;
impor... | true |
21011bb8d5d3fcb298f2727b7ae875b7d19e7940 | Java | raghu-bhandi/simplity-kernel | /java/org/simplity/kernel/dm/SaveActionType.java | UTF-8 | 2,008 | 2.125 | 2 | [
"MIT"
] | permissive | /*
* Copyright (c) 2015 EXILANT Technologies Private Limited (www.exilant.com)
* Copyright (c) 2016 simplity.org
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, ... | true |
2befe20adfb8862b89bb8615240e00a0f42d68a3 | Java | yezijiang/matthew-alpha | /matthew-designPattern-practice/src/main/java/com/matthew/designPattern/factory/abstractFacotry/SummerSkinFactory.java | UTF-8 | 434 | 2.203125 | 2 | [] | no_license | package com.matthew.designPattern.factory.abstractFacotry;
/**
* Created with IntelliJ IDEA
* User: maxing
* TIME: 2016-09-29 11:27
*/
public class SummerSkinFactory implements SkinFactory {
public Button getButton() {
return new SummerButton();
}
public ComboBox getComboBox() {
return... | true |
3b9f3510d1c3ef7a6522e481aaa2a648817c2cbd | Java | marinamsm/PicnicInterpreter | /src/main/java/types/DOUBLE.java | UTF-8 | 209 | 2.21875 | 2 | [
"MIT"
] | permissive | package types;
public class DOUBLE extends Type {
public static final DOUBLE T = new DOUBLE();
private DOUBLE() {
}
@Override
public String toString() {
return "double";
}
} | true |
97ac2a3df552b70ae37e69018b7d88cfadefe715 | Java | devlopper/org.cyk.system.company | /company-model/src/main/java/org/cyk/system/company/model/structure/OwnedCompany.java | UTF-8 | 917 | 2 | 2 | [] | no_license | package org.cyk.system.company.model.structure;
import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.cyk.system.root.model.AbstractIdentifiable;
i... | true |
1ebc294d878f5103f1fb5976629eed890cd0a6bb | Java | CreatorCwj/MaterialDesignProject | /app/src/main/java/com/effective_java/Item3.java | UTF-8 | 1,355 | 3.484375 | 3 | [] | no_license | package com.effective_java;
/**
* Created by cwj on 16/8/13.
* Singleton模式强化
*/
public class Item3 {
public static void main(String[] args) {
Singleton1 singleton1 = Singleton1.singleton1;
Singleton2 singleton2 = Singleton2.getInstance();
Singleton3 singleton3 = Singleton3.INSTANCE;
... | true |
bd01234db5417e0fcc8bc9c3545b91f8ace2d53b | Java | TongWu100/ITMD566 | /FinalProject/FinalProject_CarService/src/org/great/ctrl/BusinessDao.java | UTF-8 | 1,872 | 2.0625 | 2 | [] | no_license | package org.great.ctrl;
import java.util.List;
import java.util.Map;
import org.great.entity.Buy;
import org.great.entity.Car;
import org.great.entity.CarPart;
import org.great.entity.CustomerAccount;
import org.great.entity.Files;
import org.great.entity.Power;
import org.great.entity.User;
public interface Busine... | true |
eb5ad0f820a65a6fca8f18a606ec0e9b0a1da727 | Java | AVE-cesar/WriteWord | /WriteWord/src/ave/bertrand/WriteWord.java | ISO-8859-1 | 15,178 | 2.765625 | 3 | [] | no_license | package ave.bertrand;
import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.net.URL;
import javax.sound.sampled.AudioInputStream;
import javax.sound.sampled.Audio... | true |
4c6650d0de5b0da36d8eebddf6c9786425651455 | Java | liumonac/EventViewer | /build/build/src/application/model/LogFile.java | UTF-8 | 926 | 2.5 | 2 | [] | no_license | package application.model;
import java.util.ArrayList;
public class LogFile {
private String filePath;
private String fileName;
private ArrayList<LogEvent> eventElements = new ArrayList<LogEvent>();
/******************************************
* Constructors
******************************************/
pub... | true |
352262eee6abd0c690d546eda2ed4446e6a6fade | Java | AstonPoec/Project | /AstonCvtheque/src/main/java/com/cvtheque/entity/ICandidatEntity.java | UTF-8 | 2,501 | 1.96875 | 2 | [] | no_license | package com.cvtheque.entity;
import java.sql.Blob;
import java.sql.Date;
public interface ICandidatEntity extends IEntity {
public int getNoCandidat();
/**
* @param noCandidat the noCandidat to set
*/
public void setNoCandidat(int noCandidat);
/**
* @return the nomCandidat
*/
publi... | true |
a17ba2e720047ee2c2c9422f8cfa56c85f734e0d | Java | caoruimeng/Homework | /src/main/java/com/homework/controller/AdminLogin.java | UTF-8 | 1,195 | 2.109375 | 2 | [] | no_license | package com.homework.controller;
import javax.servlet.http.HttpServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMe... | true |
ffceb1b3a0584110c1480b3b6985ec1d17ba5b49 | Java | logzio/zipkin-logzio | /storage-logzio/src/main/java/zipkin2/storage/logzio/client/HttpCall.java | UTF-8 | 4,092 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2015-2019 The OpenZipkin Authors
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | true |
16337a3e3d9bddd4a9d21eb367696297fa4c735d | Java | Ranjeetkr715/BridelabZ | /com.BridgeLab/src/com/BridgeLab/Task9.java | UTF-8 | 441 | 2.6875 | 3 | [] | no_license | // functional program
package com.BridgeLab;
import java.util.Scanner;
public class Task9
{
public static void main(String [] args)
{
double Distance;
Scanner sc=new Scanner(System.in);
System.out.println("enter the number: ");
int x1=sc.nextInt();
int x2=sc.nextInt();
int y1=sc.nextInt();
int... | true |
0b29e7c5b07da83b142fe9c8f0e7d36317165578 | Java | philiprbrenan/AppaAppsGitHubPhotoApp | /java/android/Rect.java | UTF-8 | 2,218 | 2.28125 | 2 | [
"Apache-2.0",
"Artistic-2.0"
] | permissive | //------------------------------------------------------------------------------
// Rectangle with integer coordinates
// Philip R Brenan at gmail dot com, Appa Apps Ltd, 2017
//------------------------------------------------------------------------------
package android.graphics;
public class Rect
{public int botto... | true |
a609a81eff651081882f1ae31d70170f3aae5bb2 | Java | PAVAN-CBIT/JavaCoding | /Validparanthesis.java | UTF-8 | 613 | 3.25 | 3 | [] | no_license | public class Validparanthesis
{
public static void Validparanthesis(String[] args)
{
Stack<Character> s1= new Stack<Character>();
String s= "()";
for(char i: s.toCharArray())
{
if(i=='c')
{
s1.push(')');
}
else if(i=='[')
{
s1.push(']'... | true |
cff4f4468d299e3f1790c2ef359731a73d8c31da | Java | xrealm/tiktok-src | /sources/com/google/api/p767a/p768a/p769a/C17184t.java | UTF-8 | 634 | 1.5625 | 2 | [] | no_license | package com.google.api.p767a.p768a.p769a;
import com.google.api.client.json.C17285b;
import com.google.api.client.util.C6580n;
/* renamed from: com.google.api.a.a.a.t */
public final class C17184t extends C17285b {
@C6580n
public String property;
@C6580n
public String value;
/* access modifiers c... | true |
c7751b7aa27224251a62594defc8a7e97e4a7a88 | Java | anil402jaiswal/Basic-program | /BJS/src/gauravSirPrograms/IamONrightTrack.java | UTF-8 | 1,114 | 3.1875 | 3 | [] | no_license | package gauravSirPrograms;
public class IamONrightTrack {
public static void main(String[] args) {
int arr[]= {1,2,3,4,5,7,8,9};
int ln=arr.length;
int mini = min(arr);
int maxi = max(arr);
int missing = miss(arr,ln);
System.out.println("Minimum no. is ="+mini);
System.out.println("M... | true |
6d046217ae91182783e165c1e4ef7685c72f92da | Java | sychadelite/android-app-esa | /EmployeeSalaryApps/app/src/main/java/com/barjlazuardi/employeesalaryapps/ViewAllGolActivity.java | UTF-8 | 3,768 | 2.109375 | 2 | [] | no_license | package com.barjlazuardi.employeesalaryapps;
import androidx.appcompat.app.AppCompatActivity;
import android.app.ProgressDialog;
import android.content.Intent;
import android.os.AsyncTask;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.ListAdapte... | true |
c45ee25f1a16de4cd3a739b449fceec014eff5ab | Java | QQWH/ZhiHuWanBao | /app/src/main/java/cn/qqwh/zhihuwanbao/activity/MainActivity.java | UTF-8 | 5,628 | 1.773438 | 2 | [
"Apache-2.0"
] | permissive | package cn.qqwh.zhihuwanbao.activity;
import android.annotation.TargetApi;
import android.content.SharedPreferences;
import android.graphics.Color;
import android.os.Build;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.support.design.widget.Snackbar;
import android.supp... | true |
779fc05844131f03bf23c9df5193083f28373bfb | Java | Raivis-Git/EasyCalory | /src/main/java/com/example/calories/model/Recipe.java | UTF-8 | 1,988 | 2.5625 | 3 | [] | no_license | package com.example.calories.model;
import javax.persistence.*;
@Entity
@Table(name = "recipes")
public class Recipe {
@Id
@GeneratedValue(generator = "recipe_generator")
@SequenceGenerator(
name = "recipe_generator",
sequenceName = "recipe_sequence",
initialValue = 100... | true |
152a9aa972ba8e1269ee543ab60fe53e86b0ccc3 | Java | governmentbg/NACID-DOCTORS-TITLES | /nacid/src/com/nacid/bl/impl/external/applications/ExtTrainingCourseTrainingLocationImpl.java | UTF-8 | 1,149 | 2.265625 | 2 | [
"MIT"
] | permissive | package com.nacid.bl.impl.external.applications;
import com.nacid.bl.external.applications.ExtTrainingCourseTrainingLocation;
import com.nacid.bl.impl.NacidDataProviderImpl;
import com.nacid.bl.nomenclatures.Country;
import com.nacid.data.external.applications.ExtTrainingCourseTrainingLocationRecord;
public class Ext... | true |
49645c25b961b2accc2475458405e731d7b06961 | Java | WassimBrahimm/codingChallenge | /src/main/java/com/brainlab/codingchallenge/CodingChallenge/util/StringsUtils.java | UTF-8 | 1,212 | 3 | 3 | [] | no_license | package com.brainlab.codingchallenge.CodingChallenge.util;
import org.springframework.util.StringUtils;
import java.util.Arrays;
public class StringsUtils {
public static String numberLeftPad(String stringToPad, int finalLength, int position, char padChar) {
if (finalLength < 0 || position < 0) {
... | true |
0a5d184dbb765405e66ff1afa01efeb15f5b1b64 | Java | bulbul96/jenkinsTest | /src/test/java/com/stepdef/LoginStep.java | UTF-8 | 1,003 | 2.265625 | 2 | [] | no_license | package com.stepdef;
import org.openqa.selenium.support.PageFactory;
import com.common.Base;
import com.pageobjectmodel.LoginPage;
import cucumber.api.PendingException;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
public class LoginStep extends Base{
LoginPa... | true |
a09cb91ee23e01ad2981b0088cb42ff73b187c0c | Java | geeker-lait/user-center | /lmt-mbsp-user-adapter/src/main/java/com/lmt/mbsp/user/adapter/service/ValidateService.java | UTF-8 | 792 | 1.882813 | 2 | [] | no_license | package com.lmt.mbsp.user.adapter.service;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.R... | true |
0bd7700f00531a07925744ff439cfd54db64d27f | Java | NataBV/Task_03 | /src/com/training/unit03/main/Task05.java | UTF-8 | 1,150 | 3.671875 | 4 | [] | no_license | package com.training.unit03.main;
public class Task05 {
public static void main(String[] args) {
// !!!!!! Реализовать алгоритм сортировки вставками.
int n = 8;
int[] mas = new int[n];
//заполнение массива
for (int i = 0; i < mas.length; i++) {
mas[i] = (int)(Math.random()*200);
System.out.... | true |
01b58588dfb3ac4693cdbc3c5e8f7f87b87e8843 | Java | prasanna-cloud/prasanna | /DXC_EmployeeServices/src/dxc/myproject/employee/EmployeeDAO.java | UTF-8 | 2,797 | 2.671875 | 3 | [] | no_license | package dxc.myproject.employee;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
public class EmployeeDAO {
String JDBC_DRIVER, DB_URL, USER, PASS;
static Conne... | true |
4b1ed4a70bda792db72bec59898fe2354345362a | Java | ViVaHa/Leetcode_InterviewBit_java | /Leetcode/200.java | UTF-8 | 1,177 | 3.09375 | 3 | [] | no_license | class Solution {
public boolean isSafe(boolean[][] visited, int x, int y){
if(x>=0 && y>=0 && x<visited.length && y<visited[0].length && !visited[x][y]){
return true;
}
return false;
}
public void floodFill(char[][] grid,boolean[][] visited, int x, int y){
visited... | true |
c694f054b2cff8ec0f03969aaa3e1f2dd7d9f091 | Java | AygunEldar/java-programming | /src/again_again/Class28_breakVsContinue.java | UTF-8 | 406 | 3.078125 | 3 | [] | no_license | package again_again;
public class Class28_breakVsContinue {
public static void main (String [] args){
for(int n =1;n <=5 ;n++){
System.out.println(n);
if (n == 3){
break;
}
}
for(int i =1 ; i <=5; i++){
if(i == 4 || i == 2){
... | true |
a173039d38f04651935190474992d24d1d50f6e8 | Java | segfaultx/swtp | /src/main/java/de/hsrm/mi/swtp/exchangeplatform/service/admin/DefaultAdminTradeService.java | UTF-8 | 3,542 | 2.390625 | 2 | [] | no_license | package de.hsrm.mi.swtp.exchangeplatform.service.admin;
import de.hsrm.mi.swtp.exchangeplatform.exceptions.notfound.NotFoundException;
import de.hsrm.mi.swtp.exchangeplatform.messaging.connectionmanager.TimeslotTopicManager;
import de.hsrm.mi.swtp.exchangeplatform.messaging.message.admin.AdminStudentStatusChangeMessag... | true |
d4720b2dfe186a1d4337e69136d0e2036f4e9f3f | Java | Rune-Status/Major--Renamed-839 | /src/com/jagex/Class604.java | UTF-8 | 2,757 | 1.914063 | 2 | [] | no_license | package com.jagex;
public class Class604 {
static final void method10231() {
Class626.anInt8034 -= -710535363;
}
static final void method10232(Class480_Sub12 class480_sub12, boolean bool) {
if (class480_sub12.aBool10063) {
if (class480_sub12.anInt10070 * 1634822171 < 0
|| ObjectDefinition.mod... | true |
9ab8f4300246b9b6fb9accba99cee2a9ecfa8f07 | Java | Haker712/RMS | /app/src/main/java/com/aceplus/rmsproject/rmsproject/object/JSONResponseKitchen.java | UTF-8 | 318 | 1.78125 | 2 | [] | no_license | package com.aceplus.rmsproject.rmsproject.object;
import com.aceplus.rmsproject.rmsproject.object.Download_Kitchen;
/**
* Created by kyawminlwin on 7/14/16.
*/
public class JSONResponseKitchen {
private Download_Kitchen[] kitchen;
public Download_Kitchen[] getKitchen() {
return kitchen;
}
}
| true |
e5cc632c910e52f245e2540831aec80bce6e9383 | Java | MaheshSwami261192/Event.MeAll | /app/src/main/java/com/prometteur/myevents/Activity/AddNewEventActivity.java | UTF-8 | 47,520 | 1.53125 | 2 | [] | no_license | package com.prometteur.myevents.Activity;
import android.Manifest;
import android.app.AlertDialog;
import android.app.DatePickerDialog;
import android.app.TimePickerDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
i... | true |
1769965138cd5a9ebc1c80dac42150086abf99d1 | Java | Trongha/Dictionary1 | /src/data/Word.java | UTF-8 | 2,639 | 3.34375 | 3 | [] | no_license | package data;
/**
* Created by Trong on 28/10/2017.
*/
public class Word implements Comparable<Word>{
private String English = "";
private String VietNam = "";
private String pathImage = "";
private Level level = Level.nothing;
private String wordGroup;
public Word(){}
public Word(Strin... | true |
5a0ed487b20bb2540ec680a0074c9285d4400df2 | Java | lzq328/myspringboot | /src/main/java/cn/china/myspringboot/serviceimpl/StudentServiceImpl.java | UTF-8 | 1,012 | 2.1875 | 2 | [] | no_license | package cn.china.myspringboot.serviceimpl;
import cn.china.myspringboot.entity.Student;
import cn.china.myspringboot.mapper.StudentMapper;
import cn.china.myspringboot.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util... | true |
d343d35e38af5d18e60989697b2b7623532105ff | Java | hi77er/mosy.Android | /app/src/main/java/com/mosy/kalin/mosy/Helpers/ServiceEndpointFactory.java | UTF-8 | 2,309 | 2.5625 | 3 | [] | no_license | package com.mosy.kalin.mosy.Helpers;
import com.mosy.kalin.mosy.DAL.IServiceEndpointFactory;
/**
* Created by kkras on 10.7.2016 г..
**=====================================
* Documentation for connecting to WebApi while debugging using actual device (not using emulator) *******
* 0. Turn Off mobile data on the P... | true |
1f82b7864bdf62fa5f961d98543f0972b2402e45 | Java | liqiangwaini/shenniaozixun | /XingBoTV/XingBoLive/src/main/java/com/xingbo/live/util/SoftInputUtils.java | UTF-8 | 941 | 2.265625 | 2 | [] | no_license | package com.xingbo.live.util;
import android.content.Context;
import android.view.View;
import android.view.inputmethod.InputMethodManager;
/**
* Created by xingbo_szd on 2016/7/28.
*/
public class SoftInputUtils {
//显示软件盘
public static void showInput(Context context, View view) {
InputMethodManager... | true |
3907b204dcb51b08228f6b2a2d273ab66d74ce8b | Java | zhangju321/HuMan | /HuManManger Maven Webapp/src/main/java/zj/entity/Vocation.java | UTF-8 | 3,103 | 1.914063 | 2 | [] | no_license | package zj.entity;
import java.util.Date;
import org.springframework.format.annotation.DateTimeFormat;
public class Vocation {
private Integer vocation_Id;
private Integer sta_Staff_Id;
private Integer staff_Id;
private String vocation_Reason;
//@DateTimeFormat(pattern="yyyy-MM-dd")
... | true |
2a54a854d1dd2137f326e8b12fa1b57a9f61c691 | Java | jmanuel1/cse-360-assignment-2 | /src/cse360assign2/SimpleListTest.java | UTF-8 | 3,643 | 3.46875 | 3 | [] | no_license | // Name: Jason Manuel
// Class ID: 164
// Assignment number: 2
// Description: Tests of methods in the SimpleList class.
package cse360assign2;
import org.junit.Before;
import org.junit.Test;
import static org.junit.Assert.*;
/**
* Contains JUnit tests of the SimpleTest class. The functionality tested is
* descri... | true |
d1bf13519b9d7a0a483f1642b3b6e13b6f201e7e | Java | ru1lezz/sberpractice-15-clean | /app/src/main/java/com/example/android/cleanarchitecturepractice/presentation/presenter/BasePresenter.java | UTF-8 | 175 | 1.59375 | 2 | [] | no_license | package com.example.android.cleanarchitecturepractice.presentation.presenter;
public interface BasePresenter {
void onCreate();
void onResume();
void onLoad();
}
| true |
fd2ca6705a427801cd9986430ca038089de1721d | Java | chenzhenyu66/online-edu | /spring-boot-online-edu/service/service-usrv/src/main/java/com/czy1344/usrvservice/service/impl/UsrvMemberServiceImpl.java | UTF-8 | 4,049 | 2.53125 | 3 | [] | no_license | package com.czy1344.usrvservice.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.czy1344.commonutils.JwtUtils;
import com.czy1344.commonutils.MD5;
import com.czy1344.servicebase.exception.OnlineEduException;
import com.czy1344.usrvservice.entity.UsrvMember;
import com.czy134... | true |
9c19ea9a4a0a1577fed52e8361a49b1408bf4d36 | Java | whuthj/multiproprefs | /app/src/main/java/com/lib/multiproprefs_demo/fragment/VideoFragment.java | UTF-8 | 4,033 | 2.171875 | 2 | [] | no_license | package com.lib.multiproprefs_demo.fragment;
import android.content.Intent;
import android.os.Bundle;
import android.os.Environment;
import android.os.Handler;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
impo... | true |
efb74ad51ec9ebafff723384636585970e22c64b | Java | Danc9520/Tax-calculator | /src/main/java/BasePage.java | UTF-8 | 1,420 | 2.4375 | 2 | [] | no_license | import org.openqa.selenium.*;
import org.openqa.selenium.support.ui.ExpectedConditions;
import org.openqa.selenium.support.ui.WebDriverWait;
public class BasePage {
protected WebDriver driver;
protected WebDriverWait wait;
BasePage(WebDriver driver) {
this.driver = driver;
}
public vo... | true |
fdac79a50f918f49e648577c5450509fb8ca181d | Java | CundariNicolas/unqui-poo2-cundari | /src/tpComposite/ejercitos/Caballero.java | UTF-8 | 1,499 | 2.890625 | 3 | [] | no_license | package tpComposite.ejercitos;
public class Caballero extends Clase {
public Caballero(int posicionx, int posiciony, Mapa mapa) {
this.setPosicionX(posicionx);
this.setPosicionY(posiciony);
this.setMapa(mapa);
}
@Override
public void avanzarHacia(Posicion posicion) {
// Se mueve en en zigzag a traves d... | true |
5f039f7a884676a55c32b0c275d2b98a395d3f5a | Java | prutgers/oefentoetsen | /src/oefentoetsen/toets1/Opdracht1.java | UTF-8 | 719 | 3.140625 | 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 oefentoetsen.toets1;
/**
*
* @author Peter
*/
public class Opdracht1 {
public static void main(... | true |
616560c421de183283315db99bf96bf0280aa4cd | Java | SlimeSB/AfraidOfTheDark | /src/main/java/com/DavidM1A2/AfraidOfTheDark/common/schematic/Schematic.java | UTF-8 | 1,367 | 2.375 | 2 | [] | no_license | /*
* Credit to:
* http://www.minecraftforge.net/forum/index.php/topic,21045.0.html
*/
package com.DavidM1A2.AfraidOfTheDark.common.schematic;
import net.minecraft.block.Block;
import net.minecraft.nbt.NBTTagList;
public class Schematic
{
private final NBTTagList tileentities;
private final short width;
private ... | true |
5c1bcabf3e33135bee251b9b30f6df3face3819d | Java | djanshuman/BigData-and-DataEngineering | /Map-Reduce/Design_Own_CustomWritable_Class/MyDriver.java | UTF-8 | 1,077 | 2.359375 | 2 | [
"Apache-2.0"
] | permissive | package org.hadoop.learning.CustomWritableClass;
import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.Fi... | true |
4fa30d85a34db61b85689399c05fd0e57221aa3b | Java | xuhao-98/hongtu | /src/com/zjy/spring/model/tm_info.java | UTF-8 | 1,101 | 1.867188 | 2 | [] | no_license | package com.zjy.spring.model;
public class tm_info {
private int tm_id;
private String tm_title;
private String tm_article;
private String tm_pic;
private String tm_data;
private int tm_type;
public int getTm_id() {
return tm_id;
}
public void setTm_id(int tm_id) {
... | true |
c15ceb47ea7c8c114fcfab8986fb1ded98bf536c | Java | damonchen6886/Algorithm | /src/BinaryTree/TreeHeight.java | UTF-8 | 3,942 | 3.8125 | 4 | [] | no_license | package BinaryTree;
public class TreeHeight {
static class TreeNode{
TreeNode left,right;
int value;
public TreeNode(int _value){
value = _value;
}
}
// return the height of a binary tree O(n)
// Space:O(height) = O(n) worst case
public static int getHe... | true |
6b1852a8dc9a50ffa0de062b87bd5a2ea99cf2b7 | Java | llspaces/Algorithm | /src/com/lyp/sort/BubbleSort.java | UTF-8 | 1,242 | 3.703125 | 4 | [] | no_license | package com.lyp.sort;
import java.util.Arrays;
/**
* <p>@filename BubbleSort</p>
* <p>
* <p>@description 冒泡排序Java实现</p>
*
* @author ylp729
* @version 1.0
* @since 2019/3/21 11:21
**/
public class BubbleSort {
public static void main(String[] args) {
int[] nums = new int[]{100,34,52,6,8,78,95};
... | true |