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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
eca448338c1f12d3401d897faa588b5f9b6bc996 | Java | CUjamin/DemoOfSpring | /Spring-AOP/src/main/java/cuj.spring.aop/demo/controller/UserController.java | UTF-8 | 1,298 | 2.140625 | 2 | [] | no_license | package cuj.spring.aop.demo.controller;
import cuj.spring.aop.demo.service.UserService;
import io.swagger.annotations.ApiParam;
import lombok.extern.log4j.Log4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.... | true |
1bf98265cde79e29aab0aa8a661f9874d1e49097 | Java | aditi9413/Core-Java-Programs | /src/Tree/heightofbinarytree.java | UTF-8 | 723 | 3.609375 | 4 | [] | no_license | package Tree;
public class heightofbinarytree {
static Node root;
heightofbinarytree()
{
root = null;
}
public static int height(Node root){
if(root==null){
return 0;
}
int lheight=height(root.left);
int rheight=height(root.right);
return 1 + Math.max(lheight, rh... | true |
eb8f5b3776ace33d4c67d22b050b20fea3ceb2ad | Java | ijolidino/leetCodeTest | /leetcodeTest/Easy/findMaxConsecutiveOnes.java | UTF-8 | 1,295 | 3.625 | 4 | [] | no_license | package leetcodeTest.Easy;
/**
* Create by Fuwen on 2021/2/2
* 最大连续1的个数
* 给定一个二进制数组, 计算其中最大连续1的个数。
*
* 示例 1:
*
* 输入: [1,1,0,1,1,1]
* 输出: 3
* 解释: 开头的两位和最后的三位都是连续1,所以最大连续1的个数是 3.
* 注意:
*
* 输入的数组只包含 0 和1。
* 输入数组的长度是正整数,且不超过 10,000。
*
* 作者:力扣 (LeetCode)
* 链接:https://leetcode-cn.com/leetbook/read/array-and-... | true |
ba6b81e5e67ec7cbb548dae69d3c5ed55bd3b875 | Java | jk1z/Monash-Weather-Monitor-Application | /GUI/MainFrame.java | UTF-8 | 5,323 | 2.546875 | 3 | [] | no_license | import java.awt.*;
import javax.swing.*;
import javax.swing.GroupLayout;
import javax.swing.LayoutStyle;
/*
* Created by JFormDesigner on Thu May 18 13:24:10 EST 2017
*/
/**
* @author CodeCracker
*/
public class MainFrame extends JFrame {
private void initComponents() {
// JFormDesigner - Component initiali... | true |
4498244d1478de516032de981e97e413841796fe | Java | rupertlssmith/lojix | /lojix/state/src/main/com/thesett/aima/state/Type.java | UTF-8 | 7,084 | 2.65625 | 3 | [
"Apache-2.0"
] | permissive | /*
* Copyright The Sett Ltd, 2005 to 2014.
*
* 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... | true |
a9cb855183278ce2892d0970ac923e0a14d360f6 | Java | s-mueller/hikr.org-Parser | /src/main/java/li/sebastianmueller/hikr/extractors/GPSExtractor.java | UTF-8 | 1,169 | 2.296875 | 2 | [] | no_license | package li.sebastianmueller.hikr.extractors;
import java.io.File;
import java.net.URL;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.FilenameUtils;
import org.jsoup.nodes.Document;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import li.sebastianmueller.hikr.util.Util;
pub... | true |
29f050c7a4c2abffdc52510ccb3e2527a806f4b9 | Java | thesandx/Scientific-Calculator-with-DevOps | /src/test/java/Project/MainTest.java | UTF-8 | 899 | 2.53125 | 3 | [] | no_license | package Project;
import org.junit.Test;
import java.util.regex.Matcher;
import static org.hamcrest.CoreMatchers.containsString;
import static org.junit.Assert.*;
public class MainTest {
Calculator c = new Calculator();
@Test
public void demoTest(){
assertThat("demotest","myvalue", containsString... | true |
eb7640ea92c473a4450035d2edbfcce360b3109c | Java | EruDev/geektime-design-patterns | /src/main/java/com/erudev/design/creational/factory/di/BeanDefinition.java | UTF-8 | 3,324 | 2.96875 | 3 | [] | no_license | package com.erudev.design.creational.factory.di;
import java.util.ArrayList;
import java.util.List;
/**
* @author pengfei.zhao
* @date 2020/10/1 20:09
*/
public class BeanDefinition {
private String id;
private String className;
private List<ConstructorArg> constructorArgs = new ArrayList<>();
priv... | true |
af134da7e166745ce6e015db80adbdacb5d32422 | Java | fly327323571/ProjectManagement | /src/cn/xidian/parknshop/service/ShareService.java | UTF-8 | 286 | 1.65625 | 2 | [] | no_license | package cn.xidian.parknshop.service;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.xidian.parknshop.beans.Share;
@Service
@Transactional
public interface ShareService {
void add(Share share);
}
| true |
21d3a3272c6d7c3999b9f564762fac3906ef758d | Java | buriosca/cz.burios.uniql-jpa | /src/cz/burios/uniql/persistence/internal/sessions/DeferrableChangeRecord.java | UTF-8 | 6,822 | 2.03125 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 1998, 2013 Oracle and/or its affiliates. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. ... | true |
7dcc5223f9da4247d1030b4d5c91a8a23c71338d | Java | vitormoreiradematos/testeJava | /src/main/java/com/testejava/eventos/repositories/NotificacaoRepository.java | UTF-8 | 245 | 1.5 | 2 | [] | no_license | package com.testejava.eventos.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.testejava.eventos.entities.Notificacao;
public interface NotificacaoRepository extends JpaRepository<Notificacao, Long>
{
}
| true |
2de8e4cc2d4c5942867d69b862c55a08d9f22c90 | Java | ebi-gene-expression-group/atlas | /base/src/main/java/uk/ac/ebi/atlas/search/baseline/LinkToBaselineProfile.java | UTF-8 | 1,258 | 1.953125 | 2 | [
"Apache-2.0"
] | permissive | package uk.ac.ebi.atlas.search.baseline;
import com.google.common.collect.ImmutableMap;
import org.apache.commons.lang3.tuple.Pair;
import uk.ac.ebi.atlas.experimentpage.baseline.LinkToExperimentPage;
import uk.ac.ebi.atlas.model.experiment.baseline.FactorGroup;
import uk.ac.ebi.atlas.model.experiment.baseline.RichFac... | true |
883f8829a0152244ea6fa8a6e56dddd39b8203cb | Java | pedrotorchio/middleware-final | /src/middleAir/common/marshaller/Marshaller.java | UTF-8 | 1,759 | 2.6875 | 3 | [] | no_license | package middleAir.common.marshaller;
import middleAir.common.requesthandler.Request;
import java.io.*;
public class Marshaller {
public byte[] marshall(Request req) throws IOException {
// serializar request
byte[] head = req.getHeader().toString().replaceAll("(\\{|\\})", "").trim().getBytes();... | true |
3f352892f096b0384b129c1d293fed2c33fb74f6 | Java | adriano-candido/BirdPointProf | /Bird Point/Source/BirdPoint/src/birdpoint/empresa/EmpresaTableModel.java | UTF-8 | 2,037 | 2.78125 | 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 birdpoint.empresa;
import java.util.ArrayList;
import java.util.List;
import javax.swing.table.AbstractTableModel;
/**
*
* ... | true |
ba8c13013c7e0ce6b60f8e25389f35a57f900295 | Java | wang3526/JavaSE | /src/day10/poly/TVs.java | GB18030 | 336 | 3.1875 | 3 | [] | no_license | package day10.poly;
/**
*
* */
public class TVs extends Goods{
//췽
public TVs(){
}
public TVs(String name,int price){
this.setName(name);
this.setPrice(price);
}
//дӡ
@Override
public void print() {
System.out.println(this.getName()+"ļ۸ǣ"+this.getPrice());
}
}
| true |
2b54851e81d9a00f6904c067e5804df73183e527 | Java | leooliveiraz/euAtendo | /src/main/java/rocha/euAtendo/repository/PlanoConvenioRepository.java | UTF-8 | 375 | 1.671875 | 2 | [] | no_license | package rocha.euAtendo.repository;
import java.util.List;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import rocha.euAtendo.model.PlanoConvenio;
@Repository
public interface PlanoConvenioRepository extends CrudRepository<PlanoConvenio, Long> {
List... | true |
fb83080ace0b74a45c9332399d5818b18852f223 | Java | Ankit-adi/Practice | /src/HappyNumber.java | UTF-8 | 703 | 3.5 | 4 | [] | no_license | import java.util.*;
class HappyNumber {
public static int add(int k){
int rem;
int sum=0;
while(k!=0){
rem=k%10;
sum+=rem*rem;
k=k/10;
}
return sum;
}
public static boolean isHappy(int n){
int res=add(n);
int s=res;
... | true |
5e912db885e9672e4778dc2255589ca662d2e6cc | Java | bluelzx/xianjindai | /app/src/main/java/com/brioal/bottomtablayout/MainActivity.java | UTF-8 | 3,886 | 2.171875 | 2 | [] | no_license | package com.brioal.bottomtablayout;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;
import com.brioal.bottomtablayout.fragment.AboutFragment;
import com.brioal.bottomtablayout... | true |
ce6c1de842243472bedb44d7f21fe73759e7cc68 | Java | pradeepnemmani/school | /MarshUnmarshSchool.java | UTF-8 | 6,548 | 2.453125 | 2 | [] | no_license | package school;
import javax.xml.bind.JAXBContext;
import javax.xml.bind.JAXBException;
import javax.xml.bind.Marshaller;
import javax.xml.bind.Unmarshaller;
import javax.xml.datatype.DatatypeConfigurationException;
import javax.xml.datatype.DatatypeFactory;
import javax.xml.datatype.XMLGregorianCalendar;
import javax... | true |
1a94410382f0e0085fb2091455001ac71d697947 | Java | AIT-Rescue/CommunicationLibrary | /Comlib-ADK/src/main/java/comlib/adk/team/tactics/basic/event/BasicPoliceEvent.java | UTF-8 | 1,594 | 2.5625 | 3 | [
"BSD-3-Clause"
] | permissive | package comlib.adk.team.tactics.basic.event;
import comlib.adk.team.tactics.basic.BasicAmbulance;
import comlib.event.information.PoliceForceMessageEvent;
import comlib.message.information.PoliceForceMessage;
import rescuecore2.standard.entities.PoliceForce;
import rescuecore2.standard.entities.StandardWorldModel;
pu... | true |
d593417386415144ab5b60f0d413e465f3b5678b | Java | empyrosx/sonar-branch-plugin | /branch-scanner/src/main/java/com/github/empyrosx/sonarqube/scanner/ScannerSettings.java | UTF-8 | 502 | 1.648438 | 2 | [] | no_license | package com.github.empyrosx.sonarqube.scanner;
public class ScannerSettings {
// branch analyze
public static final String SONAR_BRANCH_NAME = "sonar.branch.name";
public static final String SONAR_BRANCH_TARGET = "sonar.branch.target";
// pull request analyze
public static final String SONAR_PR_K... | true |
4f6525d843ff2bdf8f54ee6c951110fb3ca35d4f | Java | lijinzhou2017/blog-dubbo | /blog-utils/src/main/java/com/blog/web/WebUtils.java | UTF-8 | 2,608 | 2.671875 | 3 | [] | no_license | package com.blog.web;
import org.apache.commons.lang3.StringUtils;
import javax.servlet.http.HttpServletRequest;
/**
* @author lijinzhou
* @since 2017/12/20 19:19
*/
public class WebUtils {
/**
* 获取ip地址
* 在一般情况下使用Request.getRemoteAddr()即可,但是经过nginx等反向代理软件后,这个方法会失效。
* 本方法先从Header中获取X-Real-IP,如果... | true |
af10af65c939587d64be717b7de485d812557200 | Java | SubashS96/sample | /src/test/java/com/pages/SelectHotelPage.java | UTF-8 | 662 | 2.09375 | 2 | [] | no_license | package com.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import com.base.LibGlobal;
public class SelectHotelPage extends LibGlobal {
public SelectHotelPage() {
PageFactory.initElements(driver, this);
}
@FindBy (id = "r... | true |
c25808233753c1966b411988f78e89c76493314d | Java | josiahelmer/Inheritance | /src/inheritance/controller/InheritanceController.java | UTF-8 | 667 | 3.359375 | 3 | [] | no_license | package inheritance.controller;
import inheritance.model.*;
import java.util.ArrayList;
public class InheritanceController
{
private ArrayList<SillyThings> sillyThingsList;
public InheritanceController()
{
sillyThingsList = new ArrayList<SillyThing>();
setupSillyList();
}
private void setupSillyList()
... | true |
6a290962510cf446d461e2b42e7e19fc0ddc8172 | Java | jerrysalonen/Prototype | /src/prototype/HourHand.java | UTF-8 | 280 | 2.75 | 3 | [] | no_license | package prototype;
/**
* @author Jerry Salonen
*/
public class HourHand {
int time;
public HourHand(int init) {
this.time = init;
}
public void setTime(int time) {
this.time = time;
}
public int getTime() {
return this.time;
}
}
| true |
bc7e920f9a4f83960f6a1d29f8a0ac937e885f0a | Java | kayceesrk/Sting | /trunk/compiler/src/sessionj/ast/typenodes/SJGProtocolRefNode_c.java | UTF-8 | 461 | 1.78125 | 2 | [] | no_license | //<By MQ> Added
package sessionj.ast.typenodes;
import polyglot.ast.*;
import polyglot.util.Position;
import static sessionj.SJConstants.*;
public class SJGProtocolRefNode_c extends SJGProtocolNode_c implements SJGProtocolRefNode
{
public SJGProtocolRefNode_c(Position pos, Receiver target)
{
super(pos, target);
... | true |
cc289233b9dfe5e2543265c7675dc4657fe7d8c2 | Java | zk798/jar | /src/main/java/com/example/demo/print.java | UTF-8 | 287 | 2.5 | 2 | [] | no_license | package com.example.demo;
public class print {
public void get(B a){
System.out.println("b");
}
public void get(A a){
System.out.println("a");
}
public static void main(String[] args) {
B a = new B();
new print().get(a);
}
}
| true |
ef182443f462a3b0ff7931caa24901060108f78b | Java | 15875206987/Campus_Tours_JavaWeb | /src/com/dao/CategoryDao.java | UTF-8 | 1,677 | 2.34375 | 2 | [] | no_license | package com.dao;
import com.bean.Category;
import com.google.gson.Gson;
import java.sql.SQLException;
import java.util.List;
public class CategoryDao extends BasicDao<Category> {
public String getLivingCategory() throws SQLException {
String sql = "select * from categories where category_parent... | true |
58380b20091790f1c9e071540fcc2507048d1a45 | Java | research-iobserve/mobile | /thesis.iobserve/iobserve-analysis/analysis/src/main/java/org/iobserve/analysis/model/SystemModelProvider.java | UTF-8 | 1,785 | 1.671875 | 2 | [
"Apache-2.0"
] | permissive | /***************************************************************************
* Copyright (C) 2015 iObserve Project (https://www.iobserve-devops.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... | true |
5fb62d821f30ea3a795753101245c1240a1da1f8 | Java | byblinkdagger/JustColor | /app/src/main/java/com/blink/dagger/justcolor/ui/activity/WelcomeActivity.java | UTF-8 | 1,578 | 2.359375 | 2 | [] | no_license | package com.blink.dagger.justcolor.ui.activity;
import android.content.Intent;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import com.blink.dagger.justcolor.R;
import com.blink.dagger.justcolor.util.ColorDbUtil;
import com.blink.dagger.justcolor.util.Preferenc... | true |
d6d464d2a31efed76ab4c7ae208f35159af7a76f | Java | elteKrisztianKereszti/we_2019_02_04 | /src/main/java/hu/elte/IssueTracker/controllers/rest/IssueRestController.java | UTF-8 | 3,060 | 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 hu.elte.IssueTracker.controllers.rest;
/**
*
* @author KeresztiKrisztián
*/
import hu.elte.IssueTracker.entities.Issue;
imp... | true |
3381c60492c4156c1f2fa3c08803169e1adff641 | Java | christ1750/NowCoder | /src/JZoffer/reverseLink.java | GB18030 | 580 | 2.90625 | 3 | [] | no_license | package JZoffer;
/**
* author: christ
* data201638 8:14:22
* ˵
*/
//תҪָͬʱϻ
public class reverseLink {
public ListNode ReverseLink(ListNode head){
if(head == null){
return null;
}
ListNode newHead = null;
ListNode pNode = head;
ListNode pPrev = null;
while(pNode != null){
L... | true |
c7b7ddd001ea225a5fa04803804dd1ed33b83e5d | Java | oneboat/highdsa | /highdsa-service-mybatis/src/main/java/pers/husen/highdsa/service/mybatis/impl/CustUserManagerImpl.java | UTF-8 | 8,336 | 2.140625 | 2 | [] | no_license | package pers.husen.highdsa.service.mybatis.impl;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.apache.shiro.crypto.RandomNumberGenerator;
import org.apache.shiro.crypto.SecureRandomNumbe... | true |
367530461030a7632b8781362b33ca06f644448c | Java | sf1213/Stock-Portfolio-Application | /src/portfolio/model/Portfolio.java | UTF-8 | 7,514 | 3 | 3 | [] | no_license | package portfolio.model;
import java.sql.Date;
import java.util.List;
import java.util.Map;
/**
* This interface represents a modelstock.portfolio of a customer stock, which might contain from 0
* to X stock share kinds of a customer.
* Extension update log 2018-11-26:
* 1, adding high level functions as required... | true |
f06f106895ab8f3798fc068c841db6d93e41ed63 | Java | htchepannou/tch-rails3 | /tch-rails-maven/tch-rails-maven-web/src/main/resources/archetype-resources/src/main/java/action/HomeActionController.java | UTF-8 | 520 | 1.992188 | 2 | [] | no_license | package ${package}.action;
import com.tchepannou.rails.core.annotation.Template;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
/**
* Home page
*
*/
@Template (name="default")
public class HomeActionController
extends BaseActionController
{
//-- Static Methods
private static final Logger LOG ... | true |
3e33968b6fe0692ccf2313d30e3cea2d341270ce | Java | womendeaitaiwunai/SixCode | /app/src/main/java/com/loong/sixcode/base/BaseFragment.java | UTF-8 | 5,706 | 2.109375 | 2 | [] | no_license | package com.loong.sixcode.base;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.AnimRes;
import android.support.annotation.IdRes;
import android.support.annotation.Nulla... | true |
0c8b804c4efa93047e6545b9085e5f9f9ff15510 | Java | PraditiRede/DiffieHellman | /Client.java | UTF-8 | 1,346 | 3.203125 | 3 | [] | no_license | import java.net.*;
import java.io.*;
public class Client
{
private Socket socket = null;
private DataOutputStream out = null;
private DataInputStream in = null;
public int p = 23;
public int g = 5;
private int b = 3;
private int B = (int)Math.pow(g, b)%p;
public int A;
private int key2... | true |
deb6ee91030df8ecb49528a26b5135d43806d814 | Java | GinoB96/Arkanoid-Game | /ArkanoidGame_7_3/src/Arkanoid.java | UTF-8 | 30,334 | 2.34375 | 2 | [] | no_license | import JGame.*;
import RankingDB.RankingDB;
import java.awt.*;
import java.awt.event.*; //eventos
import java.awt.image.*; //imagenes
import javax.imageio.*; //imagenes
import java.awt.Graphics2D;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.net.URL;
import java.util.... | true |
59e590c4bb6a6a2d5a54857b2f53271b5d6867f8 | Java | PetroRavlinko/concordion-markdown-extension | /src/test/java/spec/concordion/markdown/LegacyExample.java | UTF-8 | 149 | 1.523438 | 2 | [
"Apache-2.0"
] | permissive | package spec.concordion.markdown;
public class LegacyExample extends AbstractGrammar{
public LegacyExample(){
super(true);
}
}
| true |
09a03a9f4287a2593a3d0ccc3d8898846ec290b9 | Java | akhilbhardwaj20/April-Leetcode-Challenge | /Count Binary Substrings.java | UTF-8 | 502 | 3.203125 | 3 | [] | no_license | class Solution {
// TC - O(n) where n is the length of the string
// TC - O(1)
public int countBinarySubstrings(String s) {
int prev = 0, curr = 1, res = 0;
for(int i = 1; i<s.length(); i++) {
if(s.charAt(i-1) != s.charAt(i)) {
res += Math.min(prev, curr);
... | true |
c5117feb0a2ef3460f56228d85437be79cf6b307 | Java | barracuda-bf/aShabanov | /src/com/company/lab1/Task41.java | UTF-8 | 500 | 2.96875 | 3 | [] | no_license | package com.company.lab1;
import java.util.Scanner;
/**
* Created by наш on 23.03.2017.
*/
public class Task41 {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);// создаем сканер консоли для считывания
System.out.println("дополните фразу: \"Програмистом быть:\"");
... | true |
26cc3153203d5d9e5d60ff9c0b5447cfbf45dddd | Java | JoelOliveira15/LSI | /ProjetoLSI/src/main/java/Pojo/Permissao.java | UTF-8 | 67 | 1.570313 | 2 | [] | no_license | package Pojo;
public enum Permissao {
NIVEL1, NIVEL2, NIVEL3;
}
| true |
0e9e2849adb430d47369bb36268d07c72c355dac | Java | stephanenoutsa/CUIB-Cameroon | /app/src/main/java/com/stephnoutsa/cuib/models/Token.java | UTF-8 | 1,701 | 2.734375 | 3 | [] | no_license | package com.stephnoutsa.cuib.models;
import com.google.gson.annotations.SerializedName;
/**
* Created by stephnoutsa on 11/26/16.
*/
public class Token {
// Private variables
@SerializedName("id")
int id;
@SerializedName("value")
String value;
@SerializedName("school")
String school;... | true |
07874e618a623047e9e48d51e760aad888783667 | Java | jieun93/BasicJava | /JavaBasic/src/d_array/Array.java | UHC | 5,530 | 4.375 | 4 | [] | no_license | package d_array;
import java.util.Arrays;
import java.util.Scanner;
public class Array {
public static void main(String[] args) {
/*
* <<迭 Է¹ 3>>
* int[] number = new int[5];// ⺻ ʱȭǴ.
* int[] number = new int[]{10,20,30,40,50};
* int[] number = {10,20,30,40,50};
*/
//迭 Ÿ̴.
int[]array;//迭 ּҸ... | true |
29edf88864020d6932a039e55066f71321929330 | Java | Utopia1138/Design-Patterns-Training | /txr/DesignPatternsChapter6/src/main/java/org/txr/designpatterns/chapter6/reporters/DonaldTrumpEmbedded.java | UTF-8 | 442 | 2.5625 | 3 | [] | no_license | package org.txr.designpatterns.chapter6.reporters;
import org.txr.designpatterns.chapter6.Reporter;
import org.txr.designpatterns.chapter6.candidates.DonaldTrump;
public class DonaldTrumpEmbedded implements Reporter {
private DonaldTrump trump;
public DonaldTrumpEmbedded(DonaldTrump trump) {
super();
this.t... | true |
625d0e5bc842bd41023eefeedf13d968733df739 | Java | pixeleon/vagonka-kharkiv | /src/main/java/net/khpi/shevvaddm/vagonka/controller/ProductsController.java | UTF-8 | 3,514 | 2.0625 | 2 | [] | no_license | package net.khpi.shevvaddm.vagonka.controller;
import net.khpi.shevvaddm.vagonka.dto.AdminProductDto;
import net.khpi.shevvaddm.vagonka.dto.ProductMuDto;
import net.khpi.shevvaddm.vagonka.dto.ProductTypeDto;
import net.khpi.shevvaddm.vagonka.dto.SaveProductDto;
import net.khpi.shevvaddm.vagonka.service.ProductService;... | true |
69c1d9e0ef7e8bcca60517e323dd5ae2a69dcde2 | Java | duncangaming/Guilds | /src/main/java/me/duncangaming/guilds/Crates/Create.java | UTF-8 | 2,782 | 2.34375 | 2 | [] | no_license | package me.duncangaming.guilds.Crates;
import me.duncangaming.guilds.Storage.YMLController;
import org.bukkit.Bukkit;
import org.bukkit.ChatColor;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.command.Command;
import org.bukkit.command.CommandExecutor;
import org.bukkit.command.CommandSende... | true |
e475c7e26746e0b7af002ffc571f5887932ae687 | Java | nick130589/graphs_live_coding_presentation | /src/main/java/com/prituladima/DFSImpl.java | UTF-8 | 316 | 2 | 2 | [] | no_license | package com.prituladima;
import java.util.*;
public class DFSImpl {
private static final int inf = (int)1e6;
private boolean[] used = new boolean[inf];
public void dfs(int from, Map<Integer, Collection<Integer>> graph, List<Integer> ans){
// TODO: 13.10.2019 Task 3: Make tests work
}
} | true |
8125be3c746b184f2bd0fa4bdc1a3f01f08526a4 | Java | afikrim/ma-hateoas | /src/main/java/com/github/afikrim/flop/utils/ErrorHandler.java | UTF-8 | 5,921 | 2.3125 | 2 | [] | no_license | package com.github.afikrim.flop.utils;
import javax.persistence.EntityNotFoundException;
import org.springframework.core.Ordered;
import org.springframework.core.annotation.Order;
import org.springframework.dao.DataIntegrityViolationException;
import org.springframework.http.HttpHeaders;
import org.springframework.ht... | true |
3a53ef173716c5473a6814f613d659d406d9fbf0 | Java | shahrzadav/codyze | /src/main/java/de/fraunhofer/aisec/codyze/crymlin/builtin/Year.java | UTF-8 | 2,166 | 2.515625 | 3 | [
"LicenseRef-scancode-proprietary-license",
"Apache-2.0"
] | permissive |
package de.fraunhofer.aisec.codyze.crymlin.builtin;
import de.fraunhofer.aisec.codyze.analysis.*;
import de.fraunhofer.aisec.codyze.analysis.markevaluation.ExpressionEvaluator;
import de.fraunhofer.aisec.codyze.analysis.markevaluation.ExpressionHelper;
import de.fraunhofer.aisec.codyze.analysis.resolution.ConstantVal... | true |
a917118a441027df5114c1652c84d8fbb6997787 | Java | zendesk/android-lint-rules | /src/test/java/com/getbase/lint/BaseLintDetectorTest.java | UTF-8 | 1,067 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | package com.getbase.lint;
import com.android.tools.lint.checks.infrastructure.LintDetectorTest;
import com.android.tools.lint.detector.api.Detector;
import com.android.tools.lint.detector.api.Issue;
import com.getbase.lint.issues.EnumDetector;
import com.google.common.base.Charsets;
import com.google.common.collect.Im... | true |
613e96ed85a1d98cd2bdc289f022fd4e7570e546 | Java | wso2/carbon-business-process | /components/bpel/org.wso2.carbon.bpel.ui/src/main/java/org/wso2/carbon/bpel/ui/bpel2svg/impl/OnMessageImpl.java | UTF-8 | 19,213 | 2.015625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2010, WSO2 Inc. (http://www.wso2.org) 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
*
* ... | true |
41b3e2da5007cd23c9b5846ef8114a42bda9bdd9 | Java | ClareBee/FlowYogaApp | /app/src/main/java/com/example/clareblackburne/yogaapp/Set.java | UTF-8 | 3,977 | 2.34375 | 2 | [] | no_license | package com.example.clareblackburne.yogaapp;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import java.util.ArrayList;
import static com.example.clareblackburne.yogaapp.DBHelper.POSES_COLUMN_CHAKRA;
import static com.example.clareblackburne.yogaa... | true |
63f605e221eefe982c99f9c6085cb81a725446c3 | Java | vladislav57/2019-11-otus-spring-naumov | /homework01/src/main/java/ru/otus/homework01/Main.java | UTF-8 | 491 | 1.859375 | 2 | [] | no_license | package ru.otus.homework01;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import ru.otus.homework01.service.EnquiryService;
public class Main {
public static void main(final String[] args) {
final ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/s... | true |
783952bb0fb5334141097592c1bb75a5c1e95570 | Java | narendrasuthar1/Auroapp | /Auraapp/src/main/java/com/dhanrajapp/form/LoginForm.java | UTF-8 | 696 | 1.976563 | 2 | [] | no_license | package com.dhanrajapp.form;
import org.apache.struts.action.ActionForm;
public class LoginForm extends ActionForm{
private String staffId;
private String password;
private String licenseNo;
public String getLicenseNo() {
return licenseNo;
}
public void setLicenseNo(String licenseNo) {
th... | true |
78a6d995402d29360fb873e535c4c524b2dd4e09 | Java | rcoolboy/guilvN | /app/src/main/java/com/p118pd/sdk/C6065i1lL.java | UTF-8 | 1,858 | 2.015625 | 2 | [] | no_license | package com.p118pd.sdk;
import java.util.ArrayList;
import java.util.Enumeration;
import org.bouncycastle.cert.X509CRLHolder;
import org.bouncycastle.cert.X509CertificateHolder;
/* renamed from: com.pd.sdk.i1丨l丨L reason: invalid class name and case insensitive filesystem */
public class C6065i1lL {
public C1ILLL... | true |
3ae4bdfd41e43ff290a1432e7582f8f741fcbfaf | Java | hocgin/zeus | /zeus-gateway/src/main/java/in/hocg/zeus/gateway/filter/authorize/BaseAuthorizeFilter.java | UTF-8 | 2,008 | 2.15625 | 2 | [] | no_license | package in.hocg.zeus.gateway.filter.authorize;
import in.hocg.boot.utils.LangUtils;
import org.springframework.cloud.gateway.filter.GlobalFilter;
import org.springframework.core.Ordered;
import org.springframework.http.server.reactive.ServerHttpRequest;
import org.springframework.util.AntPathMatcher;
import org.spring... | true |
820df45b2b018baf32eefd0781a193a128603049 | Java | wwowann/CSV_JSON_Parser | /src/test/java/EmployeeTest.java | UTF-8 | 1,238 | 2.703125 | 3 | [] | no_license | import org.hamcrest.CoreMatchers;
import org.hamcrest.MatcherAssert;
import org.junit.Assert;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
import java.util.List;
public class EmployeeTest {
List<Employee> list = new ArrayList<>();
@BeforeEach
pub... | true |
c07ecb90dc24f82e8ac1a61686cf263248ef6bad | Java | Asisranjan/java | /ConcurrencyWS/src/hello/ConcurrencyDemo1.java | UTF-8 | 2,276 | 3.109375 | 3 | [] | no_license | package hello;
import java.util.concurrent.*;
public class ConcurrencyDemo1{
// count number of attempt
private int counter = 0;
private int heartbeattimer = 0;
public static void main(String []args){
ConcurrencyDemo1 h = new ConcurrencyDemo1();
h.start();
}
p... | true |
1d4e5e6fc01478a050544ece7021ecaf6a2b70c7 | Java | grozeille/sonar-plugin-dotnet | /sonar/sonar-csharp-gendarme-plugin/src/main/java/org/sonar/plugins/csharp/gendarme/results/GendarmeResultParser.java | UTF-8 | 5,397 | 1.8125 | 2 | [] | no_license | /*
* Sonar C# Plugin :: Gendarme
* Copyright (C) 2010 Jose Chillan, Alexandre Victoor and SonarSource
* dev@sonar.codehaus.org
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundati... | true |
9bbe84d40e029c3a443cf9f2435f3f0a803e8b69 | Java | sunjingcat/eCold | /app/src/main/java/com/zz/cold/business/storage/AddEquipmentActivity.java | UTF-8 | 7,804 | 1.8125 | 2 | [] | no_license | package com.zz.cold.business.storage;
import android.content.DialogInterface;
import android.content.Intent;
import android.text.TextUtils;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.Toolbar;
import an... | true |
abcbec216dee19580a162e5a02f72f7a5c822364 | Java | hymanath/PA | /partyanalyst-service/trunk/src/main/java/com/itgrids/partyanalyst/dto/PartyPositionsInDistrictVO.java | UTF-8 | 3,505 | 2.109375 | 2 | [] | no_license | /*
* Copyright (c) 2009 IT Grids.
* All Rights Reserved.
*
* IT Grids Confidential Information.
* Created on April 07,2010
*/
package com.itgrids.partyanalyst.dto;
import java.io.Serializable;
public class PartyPositionsInDistrictVO implements Serializable {
/**
*
*/
private static fina... | true |
674741b83bdb0530bdf652886c522e61b248b268 | Java | FitimHajredini59/RaportoUP | /app/src/main/java/com/FIEK/raportoup/aktivitetet/FaqjaHyrese.java | UTF-8 | 1,028 | 1.726563 | 2 | [] | no_license | package com.FIEK.raportoup.aktivitetet;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import androidx.appcompat.app.AppCompatActivity;
import com.FIEK.raportoup.R;
public class FaqjaHyrese extends AppCompatActivity {
@Override
protect... | true |
a645b26db893c83e16c3b6695bfd6a2d77944398 | Java | simokhov/schemas44 | /src/main/java/ru/gov/zakupki/oos/types/_1/ZfcsNotificationModification111Type.java | UTF-8 | 3,728 | 1.757813 | 2 | [
"MIT"
] | permissive | //
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2019.07.... | true |
660100a2441cb04f79266ac57eba78b5cb152f0a | Java | Mandersen21/dtupay | /merchant-service/src/test/java/beijing/merchantservice/domain/TransactionObjectTest.java | UTF-8 | 3,021 | 2.5 | 2 | [] | no_license | package beijing.merchantservice.domain;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertNotNull;
import java.util.Date;
import org.junit.Test;
public class TransactionObjectTest {
@Test
public void constructorNotNullTest() {
TransactionObject trOb = new TransactionObject("1... | true |
3eb2a598fabaebb962035d860cbbcef0b36ba362 | Java | pouyanhessabi/JPotify-java-spotify | /UserFrame.java | UTF-8 | 2,625 | 2.921875 | 3 | [] | no_license | import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.text.StyledEditorKit;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.concurrent.TimeUnit;
/**
* The Responder class get user name from client
*
* @author omid mahyar and pouyan h... | true |
3a600dff89996a3c560793508bdeec1b3d0d7a19 | Java | wlk/XChange | /xchange-kucoin/src/main/java/org/knowm/xchange/kucoin/service/TradingFeeAPI.java | UTF-8 | 1,008 | 2.078125 | 2 | [
"MIT"
] | permissive | package org.knowm.xchange.kucoin.service;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.Map;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import org.knowm.xchange.kucoin.dto.response.KucoinRe... | true |
2b00a73ab0a36a0c4dbb9d9c9cb26de3e116f997 | Java | hsg593718753/emc | /emc-platform/src/main/java/com/huak/org/NodeController.java | UTF-8 | 8,489 | 2.046875 | 2 | [] | no_license | package com.huak.org;
import com.alibaba.fastjson.JSONObject;
import com.huak.auth.model.User;
import com.huak.common.CommonExcelExport;
import com.huak.common.Constants;
import com.huak.common.UUIDGenerator;
import com.huak.common.page.Page;
import com.huak.org.model.Node;
import org.apache.poi.hssf.usermodel.HSSFWor... | true |
0fbeec8633e52ab1fa1e0a16a2d8220972c9d2bd | Java | SweetSiin/UnionWallBe | /src/test/java/test/videoYoutube.java | WINDOWS-1250 | 2,054 | 2.71875 | 3 | [] | no_license | package test;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.support.ui.WebDriverWait;
public class videoYoutube {
static WebDriver driver;
... | true |
3de53fc262b04b3d3ec2d2b6191d8932089cea5e | Java | KimarenNaidoo/LeetCode-Solns | /LeetCode/69. Sqrt(x)/src/TestCase.java | UTF-8 | 623 | 3.765625 | 4 | [] | no_license |
public class TestCase {
public static int mySqrt(int x) { // Easier version
double value = (double)x;
double result = Math.sqrt(value);
return (int)result;
}
public static int mySqrtv2(int x) { // Binary search
int low = 0, high = x;
while (low <= high) {
double mid = low + ((high - low)/2);
... | true |
bdcec8c4c5c8564dc9f185ac01e4add411d90cdd | Java | PrathyushaKanumalla/EPI_ALGORITHMS | /strings/PhoneMnemonics.java | UTF-8 | 911 | 3.46875 | 3 | [] | no_license | package strings;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
public class PhoneMnemonics {
public static final String[] Maping = {"0","1","ABC","DEF","GHI","JKL","MNO","PQRS","TUV","WXYZ"};
public static void main(String[] args) {
System.out.println("p... | true |
d8b80db88f3e797516e2d6513948a7c97fde51e1 | Java | TencentCloud/tencentcloud-sdk-java | /src/main/java/com/tencentcloudapi/antiddos/v20200309/models/BGPIPInstanceUsages.java | UTF-8 | 3,930 | 2 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2017-2018 THL A29 Limited, a Tencent company. 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
... | true |
0a5a0d2bb34e159e39e1511953dddc98469b86b8 | Java | locisvv/ElevatorStateMachine | /src/svv/com/views/ElevatorView.java | UTF-8 | 2,269 | 3.015625 | 3 | [] | no_license | package svv.com.views;
import svv.com.controlers.Elevator;
import javax.swing.JComponent;
import java.awt.Graphics;
import java.awt.Color;
import java.util.concurrent.TimeUnit;
public class ElevatorView extends JComponent {
private int currentFloor = 0;
private int floorValue;
private int openDoorValue;
... | true |
07fbbac4391337facc339df4500cf668b1410c73 | Java | fcrepo-exts/fcrepo-camel-toolbox | /fcrepo-fixity/src/test/java/org/fcrepo/camel/fixity/RouteTest.java | UTF-8 | 5,156 | 1.554688 | 2 | [
"Apache-2.0"
] | permissive | /*
* The contents of this file are subject to the license and copyright
* detailed in the LICENSE and NOTICE files at the root of the source
* tree.
*/
package org.fcrepo.camel.fixity;
import org.apache.camel.CamelContext;
import org.apache.camel.EndpointInject;
import org.apache.camel.Produce;
import org.apache.c... | true |
79b442d24f62e7202afbfed4bf279555b61cf1fe | Java | led-os/youban | /app/src/main/java/cn/bjhdltcdn/p2plive/httpresponse/SchoolOrganSwitchResponse.java | UTF-8 | 543 | 2.171875 | 2 | [] | no_license | package cn.bjhdltcdn.p2plive.httpresponse;
/**
* Created by xiawenquan on 18/3/8.
*/
public class SchoolOrganSwitchResponse extends BaseResponse {
private int isOpen;// 系统开关(1开启,2关闭)
private int isAuth;// 是否有发布权限(1有,2没有)
public int getIsOpen() {
return isOpen;
}
public void setIsOpen(i... | true |
f15843077aecd8aeb9cd4c9a1394f99ba328a9dc | Java | viniciusfernandes/algoritmos-estrutura-dados | /src/main/java/br/com/viniciusfernandes/algoritmos/sort/SelectionSorter.java | UTF-8 | 705 | 3.59375 | 4 | [] | no_license | package br.com.viniciusfernandes.algoritmos.sort;
import br.com.viniciusfernandes.algoritmos.lista.List;
public class SelectionSorter<T extends Comparable<T>> {
public void sort(List<T> list) {
T a = null;
T b = null;
T current = null;
final int length = list.size();
int currIndex = 0;
int minIndex = -1;... | true |
39bcefdeeb12146f38d9a5505620b44d289dc74f | Java | cypo721/PA165-project | /rest/src/main/java/config/controllers/MachineController.java | UTF-8 | 3,261 | 2.5625 | 3 | [] | no_license | package config.controllers;
import config.ApiUris;
import dto.MachineDTO;
import facade.MachineFacade;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.*;
import javax.inject.Inject;
import java.util.List;
/**
* Create... | true |
a4d0daf9e39d56105419cdee0731234240047fd0 | Java | cristhianhg/imagelistview | /IMGmodels/app/src/main/java/com/example/img_models/MainActivity.java | UTF-8 | 1,018 | 2.203125 | 2 | [] | no_license | package com.example.img_models;
import android.os.Bundle;
import android.widget.ListView;
import androidx.appcompat.app.AppCompatActivity;
import com.example.img_models.Adapters.ProductoAdaptador;
import com.example.img_models.Models.Producto;
import com.example.img_models.helpers.QueueUtils;
public class MainActiv... | true |
2f02089883bb827265f5201cc301e51ec950cb57 | Java | zqsds/develop_eureka_multiple_ports | /src/main/java/com/example/hcy_bridge/utils/HttpRequestUtils.java | UTF-8 | 2,333 | 2.140625 | 2 | [] | no_license | package com.example.hcy_bridge.utils;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.client.ServiceInstance;
import javax.servlet.http.HttpServletRequest;
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Map;
/**
* @program xiaofeng_test
* @description:
* @author:... | true |
9579c882c65a2ef426283f1b7a823390117de9fd | Java | AndroidKiran/EmployeeManagement | /src/com/pojo/masters/TourPurposeActionPojo.java | UTF-8 | 933 | 2.265625 | 2 | [] | no_license | package com.pojo.masters;
import java.io.Serializable;
public class TourPurposeActionPojo implements Serializable{
private static final long serialVersionUID = 1L;
private String tourPurposeName;
private Integer tourPurposeId;
/**
* @return the tourPurposeName
*/
public String getTourPurposeN... | true |
26d953a60a9e9e459979e46596d4c250b3f2a8c8 | Java | JellyB/code_back | /ztk_code/ztk-knowledge-parent/knowledge-web-server/src/main/java/com/huatu/ztk/knowledge/daoPandora/provider/KnowledgeProvider.java | UTF-8 | 2,649 | 2.328125 | 2 | [] | no_license | package com.huatu.ztk.knowledge.daoPandora.provider;
import lombok.extern.slf4j.Slf4j;
/**
* Created by lijun on 2018/8/22
*/
@Slf4j
public class KnowledgeProvider {
/**
* 获取某个科目下的一级知识点信息
*/
public String getFirstLevelBySubjectId(int subjectId) {
StringBuilder sql = new StringBuilder(256)... | true |
57dc53c73bc148771ee1999ae513decd23fdbe49 | Java | balortmor/ED_CocheMoto | /src/es/studium/CocheMoto/Moto.java | UTF-8 | 514 | 2.53125 | 3 | [] | no_license | package es.studium.CocheMoto;
public class Moto extends Vehiculo {
private String cilindrada;
public Moto() {
this.setMatricula("");
this.setNumeroRuedas(4);
this.cilindrada = "";
}
public Moto(String matricula, int numeroRuedas, String cilindrada) {
this.setMatricula(matricula);
this.setNumeroRuedas(... | true |
26c09e960b2e57a32929c6ef3afff69b62b77bdf | Java | Hyungrok-Kim/Back-end | /testAJAXProject/src/com/kh/ajax/controller/TestServlet8.java | UTF-8 | 2,157 | 2.28125 | 2 | [] | no_license | package com.kh.ajax.controller;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRe... | true |
8e967f5775f01860799cf37f3ba77aff01ef2e03 | Java | epam-debrecen-rft-2015/atsy | /web/src/main/java/com/epam/rft/atsy/web/controllers/DeleteApplicationsController.java | UTF-8 | 953 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.epam.rft.atsy.web.controllers;
import com.epam.rft.atsy.service.CandidateService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.Req... | true |
0f5042969691fb2eb359cbe7bf154010d9e64b7f | Java | Olosinsk-commits/Java | /Capitalizer.java | UTF-8 | 2,189 | 4.53125 | 5 | [] | no_license | /*
Write a static method that accepts a String object as an argument
and capitalizes the first character of each sentence in the string.
In addition it removes all extra white spaces between words.
For instance, if the string argument
is “hello. my name is Joe. what is your name?” the method should
manipulate th... | true |
1e8ec548abfddab4a2aadd2a60b636ae7601dfa5 | Java | pwodarczyk/registeredreviews | /src/main/java/com/registeredreviews/model/Promotion.java | UTF-8 | 1,413 | 2.015625 | 2 | [] | no_license | package com.registeredreviews.model;
import java.util.Date;
public class Promotion {
private Long id;
private Date startDate;
private Date endDate;
private String description;
private String name;
private String discountAmount;
private String type;
private String code;
private String businessId;
public Long... | true |
fbedb2e5458d351ecc9ae8adf51d88c07b5b99bf | Java | dxCarl/LeetCode | /src/main/java/com/xiao/deng/leetcode/profit/Solution.java | UTF-8 | 1,504 | 3.984375 | 4 | [
"Apache-2.0"
] | permissive | package com.xiao.deng.leetcode.profit;
/**
* 给定一个数组,它的第 i 个元素是一支给定股票第 i 天的价格。
* 如果你最多只允许完成一笔交易(即买入和卖出一支股票),设计一个算法来计算你所能获取的最大利润。
* 注意你不能在买入股票前卖出股票。
* <p>
* 输入: [7,1,5,3,6,4]
* 输出: 5
* 解释: 在第 2 天(股票价格 = 1)的时候买入,在第 5 天(股票价格 = 6)的时候卖出,最大利润 = 6-1 = 5 。
* 注意利润不能是 7-1 = 6, 因为卖出价格需要大于买入价格。
* <p>
* <p>
* 来源:力扣(LeetC... | true |
8bca63372b2048e1f8ed59ddd6a0a6fc34b4dd96 | Java | zhongxingyu/Seer | /Diff-Raw-Data/28/28_baa32ace1ccaf3da721ea5b77aaa46229f2f37eb/ExpressionSanitizerTest/28_baa32ace1ccaf3da721ea5b77aaa46229f2f37eb_ExpressionSanitizerTest_t.java | UTF-8 | 3,877 | 2.03125 | 2 | [] | no_license | // Copyright (C) 2006 Google Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... | true |
f7ebf1def077307decf37796728c8d31ae90cdd2 | Java | Wilczek01/alwin-projects | /alwin-middleware-grapescode/alwin-test-data/src/test/java/com/codersteam/alwin/testdata/BalanceStartAndAdditionalTestData.java | UTF-8 | 1,234 | 2.328125 | 2 | [] | no_license | package com.codersteam.alwin.testdata;
import com.codersteam.alwin.core.api.model.balance.BalanceStartAndAdditionalDto;
import java.math.BigDecimal;
/**
* @author Tomasz Sliwinski
*/
public final class BalanceStartAndAdditionalTestData {
private static final BigDecimal BALANCE_START_PLN_1 = new BigDecimal("-4... | true |
df3b8e51caf14d4a478013bafaa0577eb26b861c | Java | ElliotChen/LittleTrick | /trick02/src/main/java/tw/elliot/trick02/conf/BaseConfig.java | UTF-8 | 417 | 2.03125 | 2 | [
"MIT"
] | permissive | package tw.elliot.trick02.conf;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.retry.support.RetryTemplate;
@Configuration
public class BaseConfig {
@Bean
public RetryTemplate buildRetryTemplate() {
RetryTemplate retryTe... | true |
2ceeebc0de8d96731f308b17707600f32b90bb0e | Java | zhshuai1/pangu | /src/main/java/com/sepism/pangu/tool/AddressInitializer.java | UTF-8 | 5,740 | 2.53125 | 3 | [] | no_license | package com.sepism.pangu.tool;
import com.google.gson.Gson;
import com.sepism.pangu.model.questionnaire.Choice;
import com.sepism.pangu.model.repository.ChoiceRepository;
import lombok.extern.log4j.Log4j2;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.FileSystemXmlAp... | true |
b3c2edc26a0e0a07c8b6ce1c6cac27128c414bdc | Java | adrianx30/Comunicaciones | /Comunicacion_Socket/src/comunicacion_socket/Cliente.java | UTF-8 | 1,343 | 2.734375 | 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 comunicacion_socket;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.InputStreamReader;
import ... | true |
d7dffa198fd1b1336536e1248fc35a757b6a0113 | Java | dupreemovil/DupreeBolivia--master | /app/src/main/java/com/dupreeincabolnuevo/dupree/mh_fragments_menu/Reporte_SegPetQueRec_Fragment.java | UTF-8 | 5,767 | 2.078125 | 2 | [] | no_license | package com.dupreeincabolnuevo.dupree.mh_fragments_menu;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v4.content.LocalBroadcastManage... | true |
701ce32fbc55837d111accccbda5c121c3ece604 | Java | mngarriga/Bikestore | /BikeStore/src/test/java/bikestore/db/UserTest.java | UTF-8 | 8,602 | 2.375 | 2 | [] | no_license | package bikestore.db;
import java.security.*;
import javax.persistence.*;
import org.junit.*;
import static org.junit.Assert.*;
import java.util.*;
import java.util.logging.*;
public class UserTest {
private EntityManager em;
private User user1,user2,user3,user4,user5,user6,user7,user8,user9,user10;... | true |
d0fd8b9bb766b8731a627b39a32320d37c5c0e38 | Java | irfanazam1/quranpearls | /app/src/main/java/com/pureapps/quranpearls/DataContext.java | UTF-8 | 5,730 | 2.390625 | 2 | [] | no_license | package com.pureapps.quranpearls;
import android.content.Context;
import com.pureapps.model.Aya;
import com.pureapps.model.Quran;
import com.pureapps.model.Sura;
import java.io.InputStream;
import java.io.ObjectInputStream;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.uti... | true |
b07876ce6fabc37fd9fe7cf241437352ade3a0aa | Java | zjt0428/emms_GXDD | /emms_GXDD/.svn/pristine/6f/6ff5ba2eb12621652d9d2cd99ec95babef49a25c.svn-base | UTF-8 | 982 | 1.976563 | 2 | [] | no_license | /**
*====================================================
* 文件名称: SecureProtocolService.java
* 修订记录:
* No 日期 作者(操作:具体内容)
* 1. 2014-4-20 chenxy(创建:创建文件)
*====================================================
* 类描述:(说明未实现或其它不应生成javadoc的内容)
*/
package com.knight.emms.service;
import java.util.List;
imp... | true |
a372802eb726830dc317045fc38b0cfcd1b210aa | Java | nttv/C1120G1-NguyenThiTuongVi | /Module-2/src/Vehicle-Management/src/models/Truck.java | UTF-8 | 1,126 | 3.140625 | 3 | [] | no_license | package models;
public class Truck extends Vehicle {
private int payload;
public Truck() {
}
public Truck(String noPlate, String brand, int yearOfProduction, String owner, int payload) {
super(noPlate, brand, yearOfProduction, owner);
this.payload = payload;
}
public Truck(St... | true |
cd027b8d98f37e30d202357be2c2ecf7118c17ad | Java | cebu4u/Trickplay | /server/gameservice/src/main/java/com/trickplay/gameservice/dao/GamePlaySummaryDAO.java | UTF-8 | 265 | 1.90625 | 2 | [] | no_license | package com.trickplay.gameservice.dao;
import com.trickplay.gameservice.domain.GamePlaySummary;
public interface GamePlaySummaryDAO extends GenericDAO<GamePlaySummary, Long> {
public GamePlaySummary findByGameAndUser(Long gameId, Long userId);
}
| true |
e0d6916fd1c6d922808db44cb68b60cfdab74856 | Java | aniltelaprolu/InventryAngular | /Inventory-17-Jan-2018/inventory-parent/inventory-web/src/main/java/com/inventory/web/event/listeners/InvSessionCreateListener.java | UTF-8 | 711 | 2.125 | 2 | [] | no_license | package com.inventory.web.event.listeners;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationListener;
import org.springframework.session.MapSession;
import org.springframework.session.events.SessionCreatedEvent;
import org.springframework.stereotype.Component;
@Co... | true |
8ccdfb9a29bf867587e952ac17ef036d8467527a | Java | fireformoney/fire | /leyou/src/main/java/com/hxbreak/leyou/GameDownloadActivity.java | UTF-8 | 14,933 | 1.710938 | 2 | [] | no_license | package com.hxbreak.leyou;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageInfo;
import android.net.Uri;
import android.os.Bundle;
import android.os.Handler;
import android.os.Message;
import... | true |