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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
b8b0dc6618e08cd64b54419313bce0ab89c4a6ca | Java | method76/crypto-wallet-api | /src/main/java/crypto/wallet/service/common/CoinFactory.java | UTF-8 | 956 | 2.171875 | 2 | [] | no_license | package crypto.wallet.service.common;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import crypto.wallet.common.constant.WalletConst;
import crypto.wallet.service.CryptoSharedService;
/**
*/
@Component public class CoinFactory implements WalletConst ... | true |
2b288510e2a891e943e2842614e90dbeac934ade | Java | hardikchavda/corejava | /src/four/FlowLayoutEx.java | UTF-8 | 890 | 3.140625 | 3 | [] | no_license | package four;
import java.awt.BorderLayout;
import java.awt.Button;
import java.awt.FlowLayout;
import java.awt.Frame;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
/**
* @author Er. Hardik Chavda https://t.me/hardikchavda
*
*/
public class FlowLayoutEx {
public static void main(String... | true |
b31800ecd4b43f34292a129ed1e30220dd372ba8 | Java | ahmetuyanikdev/ShopApp | /src/main/java/com/project/calculator/UnitPriceCalculation.java | UTF-8 | 308 | 2.5 | 2 | [] | no_license | package com.project.calculator;
import com.project.interfaces.Calculation;
import com.project.model.PurchaseItem;
public class UnitPriceCalculation implements Calculation {
@Override
public Float doCalculation(PurchaseItem purchaseItem) {
return purchaseItem.getProductPrice()*1;
}
}
| true |
959bc998d1f149445f328fde1d59a7b646de777b | Java | feroshjacob/research | /cs.ua.edu.segroup.mapredoop.ui/src/codegen/MainCodeGenHelper.java | UTF-8 | 7,497 | 2.34375 | 2 | [] | no_license | package codegen;
import hdp.parser.HelperHPDParser;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Set;
import cs.ua.edu.se.mapRedoop.JavaFunction;
import cs.ua.edu.se.mapRedoop.MRBlock;
import cs.ua.edu.se.mapRedoop.Type;
public class MainCodeGenHelper extends CodeGenerateHelper {
prote... | true |
e67e02b1e71eeb862d157b2adf578a8428690af1 | Java | PRIDE-Utilities/jmzTab | /jmztab-model/src/main/java/uk/ac/ebi/pride/jmztab/utils/convert/SearchEngineScoreParam.java | UTF-8 | 19,992 | 1.734375 | 2 | [
"Apache-2.0"
] | permissive | package uk.ac.ebi.pride.jmztab.utils.convert;
import uk.ac.ebi.pride.jmztab.model.CVParam;
/**
* @author qingwei
* @since 25/11/13
*/
public enum SearchEngineScoreParam {
// coming from children terms of MS:1001153 (search engine specific score)
MS_SEARCH_ENGINE_SPECIFIC_SCORE(SearchEngineParam.MS_ANALYSI... | true |
406ce5eb34944d9ac6a8b321cfaf103b81ea97e1 | Java | marzipanus/beginner | /src/main/java/com/udemy/whatmedo/InputFragment.java | UTF-8 | 782 | 2.296875 | 2 | [] | no_license | package com.udemy.whatmedo;
import android.app.Fragment;
import android.content.Context;
import android.graphics.Color;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
/**
* A simple {@link Fragment} subclass.
*... | true |
e9aa32f7b09146f091e621d866d0f2c4315f0caa | Java | lonslonz/PrimeMailer | /src/com/skplanet/mailer/util/CommonUtils.java | UTF-8 | 704 | 2.5 | 2 | [] | no_license | package com.skplanet.mailer.util;
import java.io.PrintWriter;
import java.io.StringWriter;
import java.util.Random;
public class CommonUtils {
public static String genUniqueStr() {
Random rand = new Random();
return System.currentTimeMillis() + "." + rand.nextInt(10000);
}
publi... | true |
8453adac63f14e3a69728cd9f17f750db2c9468f | Java | GuilhermeThums/Exercicio20 | /app/src/main/java/com/example/exercicio20/Tela2.java | UTF-8 | 4,007 | 2.234375 | 2 | [] | no_license | package com.example.exercicio20;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
public class Tela2 extends AppCompatActivity {
Button button1;
String nome1;
S... | true |
3a8ca8f4c6bcfb532ecc055d748a1a779175e8ce | Java | Staticsnull/faqboot | /book/src/main/java/cn/bdqn/service/impl/BookServiceImpl.java | UTF-8 | 1,481 | 2.25 | 2 | [] | no_license | package cn.bdqn.service.impl;
import cn.bdqn.dao.BookMapper;
import cn.bdqn.dao.BookUserMapper;
import cn.bdqn.entity.Book;
import cn.bdqn.entity.BookUser;
import cn.bdqn.service.BookService;
import cn.bdqn.service.UserService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import ja... | true |
9c9885bf7850f040bab257e9dcf7ea001f892569 | Java | aws/aws-sdk-java | /aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/transform/S3CopyObjectOperationStaxUnmarshaller.java | UTF-8 | 7,325 | 1.507813 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2018-2023 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 "licen... | true |
bcea6ac08de6d8613b1249c76034196407e9a3c2 | Java | geyafeiCN/swkj | /swkj-utils/src/main/java/com/zakj/swkj/utils/CommonUtils.java | UTF-8 | 538 | 1.914063 | 2 | [] | no_license | package com.zakj.swkj.utils;
import com.zakj.swkj.bean.Constant;
import com.zakj.swkj.bean.User;
import org.apache.struts2.ServletActionContext;
/**
* create by IntelliJ IDEA
* User: HuangRZ
* QQ: 917647409
* Email: huangrz11@163.com
* Date: 2017/9/23 0023
* Time: 23:49
* Description: 项目相关的一些公共工具类,需要依赖该项目使用
... | true |
9adc39bea468a4d48ac2ad75f97d9b5a87149bd7 | Java | leovigna/Java-Chess | /src/BoardGUI.java | UTF-8 | 6,680 | 2.921875 | 3 | [] | no_license | import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.GridLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.Map;
import java.util.Set;
import java.util.TreeMap;
import java.util.Map.Entry;
import javax.... | true |
504324d522cdebdea4a4c0cdeb718f7ea3c3f36a | Java | azure1995/leetcode | /911.online-election.java | UTF-8 | 1,030 | 2.921875 | 3 | [] | no_license | class TopVotedCandidate {
int maxVotes;
Map<Integer, Integer> map;
int[] record;
int[] times;
public TopVotedCandidate(int[] persons, int[] times) {
int N = persons.length;
this.maxVotes = 0;
this.map = new HashMap<>();
this.record = new int[N];
this.times = ... | true |
2080496bdf3a1aa5a6ceab43deeccd58f2392128 | Java | josshb/Git | /JavaSE/02-Coche_v3/src/beans/auto/Coche.java | UTF-8 | 2,724 | 2.890625 | 3 | [] | no_license | package beans.auto;
import java.util.Objects;
/**
*
* @author Moises -> Antonio
*/
public class Coche {
private String marca;
private String modelo;
private String color;
private String combustible;
private int numPuertas;
private int potencia;
private int consumoGas;
public Coch... | true |
3afee8d0920d35a58a5ddaa8dbf20fa7ce8dd71d | Java | KamilLelonek/BLStreamPatronageRecruitment-2013 | /FourthTaskAndroid/src/fourth/task/android/weather/parsers/WorldWeatherOnlineParser.java | UTF-8 | 1,200 | 2.453125 | 2 | [] | no_license | package fourth.task.android.weather.parsers;
import java.io.IOException;
import org.xmlpull.v1.XmlPullParser;
import org.xmlpull.v1.XmlPullParserException;
import android.graphics.Bitmap;
import android.util.Log;
import fourth.task.android.FourthTaskAndroid;
import fourth.task.android.cities.City;
import fourth.task... | true |
e62de57903666f52af4690a5a1cff219d1e67dc6 | Java | JoeSimith/Hairdressing | /src/com/Hairdressing/controller/netty/base/BaseNettyController.java | UTF-8 | 2,369 | 2.34375 | 2 | [] | no_license | package com.Hairdressing.controller.netty.base;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.FullHttpRequest;
import io.netty.handler.codec.http.QueryStringDecoder;
import io.netty.handler.codec.http.websocketx.*;
import java.util.List;
import java.util.Map;
import java... | true |
9d2867397c06ac1cc0853d9023b58a7c4f718d63 | Java | lym5573325/watsons | /src/com/engine/sync/service/impl/PositionHrmsServiceImpl.java | UTF-8 | 2,857 | 2 | 2 | [] | no_license | package com.engine.sync.service.impl;
import com.engine.common.service.impl.HrmCommonServiceImpl;
import com.engine.sync.cmd.organizationHrms.HandleOrganizationHrmsCmd;
import com.engine.sync.cmd.organizationHrms.ReadOrganizationHrmsCmd;
import com.engine.sync.cmd.positionHrms.HandlePositionHrmsCmd;
import com.e... | true |
a8d2e018e3dfd5d9d6f26df2df67dca7e23a4838 | Java | jozz007/WEB | /evalEasy/web/src/test/java/net/madinpro/evaleasy/testEntities/TestPrivilege.java | UTF-8 | 1,044 | 2.3125 | 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 net.madinpro.evaleasy.testEntities;
import java.text.ParseException;
import org.springframework.context.ApplicationContext;
im... | true |
d6648badb78f10d3c69e7c74ab645c3ec671197d | Java | HansTheRisk/BlueSign-server | /src/main/java/application/api/resource/binary/BinaryResource.java | UTF-8 | 554 | 2.671875 | 3 | [] | no_license | package application.api.resource.binary;
import com.fasterxml.jackson.annotation.JsonProperty;
import application.api.resource.BaseResource;
/**
* Class used to represent boolean
* values as JSON responses.
* @param <T>
*/
public class BinaryResource<T extends Boolean> extends BaseResource<T>{
public BinaryR... | true |
362aef3ac836d4321b8ecb0b60f46c137866fa74 | Java | iotekcaihua/question | /src/main/java/com/caihua/mapper/UserMapper.java | UTF-8 | 200 | 1.835938 | 2 | [] | no_license | package com.caihua.mapper;
import com.caihua.bean.User;
import org.springframework.stereotype.Repository;
@Repository("userMapper")
public interface UserMapper {
public User findUser(int id);
}
| true |
0b9043a770586c72b4644bd8872454cb8816c858 | Java | AviranAbady/woodpecker | /woodpecker/src/main/java/org/aviran/woodpecker/WoodpeckerHttpResponse.java | UTF-8 | 2,018 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2017 Aviran Abady.
*
* 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 agr... | true |
216a9ee5ad412cd580e4098d8a91824e56c29788 | Java | dinesh18798/Java-Projects | /Physics Based Games Lab/ce812lab6/src/pbgLecture6lab_wrapperForJBox2D/BasicRectangle.java | UTF-8 | 3,795 | 3.015625 | 3 | [] | no_license | package pbgLecture6lab_wrapperForJBox2D;
import java.awt.*;
import java.awt.geom.AffineTransform;
import java.awt.geom.Path2D;
public class BasicRectangle {
private final float rollingFriction,mass;
public final Color col;
protected final org.jbox2d.dynamics.Body body;
private final Path2D.Float poly... | true |
0d11084ae37c6a2f7e079baa378736a483c1957a | Java | HanGangHee/Algorithm_practice | /src/samsung/ExaminationSupervision.java | UTF-8 | 819 | 3.0625 | 3 | [] | no_license | package samsung;
import java.util.*;
public class ExaminationSupervision {
static int N;
static int arrN[];
static int B;
static int C;
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
N = sc.nextInt();
arrN = new int[N];
for(int i = 0; i... | true |
e7fc7b007203eb93144b5e985b2ff6c23c4489e5 | Java | prateekm1/Real-Estate-Management-System | /RSM/src/Sale_Window.java | UTF-8 | 15,656 | 2.359375 | 2 | [] | no_license | import java.awt.EventQueue;
import javax.swing.JFrame;
import java.awt.BorderLayout;
import java.awt.Color;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.JScrollPane;
import javax.swing.JButton;
import java... | true |
7ac21d447b1573859425ffc2cb2dacb0b0f8025f | Java | sinwonkim/JAVA | /ReJava/src/overridetest/OverrideTest.java | UHC | 484 | 2.96875 | 3 | [] | no_license | package overridetest;
public class OverrideTest {
public static void main(String[] args) {
B b= new B();
b.justOutput();
b.test2();
}
}
class A {
int i = 0;
public void justOutput() {
System.out.println("AŬ ƿDz ҵ"+"i: "+i);
}
}
class B extends A {
@Override
public... | true |
de6f6b401f4897ffd8054ac707bb450ad0fb4124 | Java | jaebradley/programmingProblems | /src/main/java/problems/impl/FirstMissingPositiveIntegerIdentifierImpl.java | UTF-8 | 1,656 | 3.734375 | 4 | [] | no_license | package problems.impl;
import problems.interfaces.FirstMissingPositiveIntegerIdentifier;
public class FirstMissingPositiveIntegerIdentifierImpl implements FirstMissingPositiveIntegerIdentifier {
/**
* Given an array of integers, identify if any of these array values are between 1 and the
* length of the arra... | true |
f6875f3582644111c64d4aab82d6c8b12359dd45 | Java | julianbeneche/Beneche-COP3330-assignment2 | /Beneche-COP3330-assignment3/src/main/java/oop/assignment/ex45/Base.java | UTF-8 | 844 | 2.78125 | 3 | [] | no_license | /*
* UCF COP3330 Summer 2021 Assignment 3 Solution
* Copyright 2021 Julian Beneche
*/
package oop.assignment.ex45;
import java.util.*;
import java.io.*;
public class Base {
// While format and fix later
public static void main(String args[]){
try{
File oldfile = new
File("C://Users??Vipul??De... | true |
410ed16818269383c08affeaf4268b1fef162a83 | Java | tohalla/isla | /src/main/java/isla/web/rest/ViewResource.java | UTF-8 | 2,554 | 2.296875 | 2 | [] | no_license | package isla.web.rest;
import java.net.URISyntaxException;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.stream.Collectors;
import javax.inject.Inject;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.http.Res... | true |
99821abc055d945a17ad05ef3c0f7a9841246bc1 | Java | stea1th/stea1th_chess | /src/main/java/stea1th/chess/rules/figures/QueenRule.java | UTF-8 | 455 | 2.515625 | 3 | [] | no_license | package stea1th.chess.rules.figures;
import java.util.Arrays;
import java.util.HashSet;
import static stea1th.chess.rules.enums.Direction.*;
public class QueenRule extends AbstractRule {
public QueenRule() {
super(new HashSet<>(Arrays.asList(NORTH, SOUTH, WEST, EAST, NORTH_EAST, NORTH_WEST, SOUTH_EAST, ... | true |
f3f79b925f546855b610d76c4aa170c33b81da8c | Java | masparudin/DrCom | /java/com/wahyudin/win/drcomp/TabelGejalaRecyclerView.java | UTF-8 | 2,751 | 2.09375 | 2 | [] | no_license | package com.wahyudin.win.drcomp;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import com.firebase.ui.database.FirebaseRecyclerAdap... | true |
6442e442fe617cf7ac54e73ae7e3d19d77dba83d | Java | wuyueINT/HospitalHelper | /app/src/main/java/com/wuyue/question/AnsLog.java | UTF-8 | 1,439 | 2.328125 | 2 | [] | no_license | package com.wuyue.question;
class AnsLog {
private String reward;
private String timelimit;
private String question;
private String[] labels;
private String answer;
private String follow;
public AnsLog(){}
public AnsLog(String reward, String timelimit, String question, String[] label... | true |
a9bbb27596d15ff358fa55037b5a97168f4756b3 | Java | florianf/robovm-robopods | /plugins/robo.billing/ios/src/main/java/org/robovm/pods/billing/IOSStore.java | UTF-8 | 12,255 | 1.976563 | 2 | [] | no_license | /*
* Copyright (C) 2016 RoboVM AB
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... | true |
485bf398ca6d5280450a3a90cb55427da055709b | Java | anagovitsyn/oss.FCL.sftools.dev.build | /buildframework/helium/sf/java/environment/src/com/nokia/helium/environment/ant/taskdefs/EnvironmentTask.java | UTF-8 | 3,287 | 2.125 | 2 | [] | no_license | /*
* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.ecl... | true |
ff104b80125019660ab16dc00034501571eb3ecc | Java | CyclopsMC/EvilCraft | /src/main/java/org/cyclops/evilcraft/core/blockentity/upgrade/IUpgradeSensitiveEvent.java | UTF-8 | 410 | 2.09375 | 2 | [
"CC-BY-4.0"
] | permissive | package org.cyclops.evilcraft.core.blockentity.upgrade;
/**
* Upgrade events that should be used for sending into the Upgrades event-bus.
* @author rubensworks
*/
public interface IUpgradeSensitiveEvent<O> {
/**
* @return The mutable event result object.
*/
public O getObject();
/**
* @... | true |
4caba6c4165e8413a94ad1ad2f8137b88cbf2f87 | Java | amidrunk/recode | /core/src/main/java/io/recode/classfile/Field.java | UTF-8 | 126 | 1.742188 | 2 | [
"Apache-2.0"
] | permissive | package io.recode.classfile;
import java.lang.reflect.Type;
public interface Field extends Member {
Type getType();
}
| true |
18629573eb1abf5ce3715fe165ec3b9dd925b315 | Java | GozenAlf/BoC | /GitReversi/Reversi/Reversi/ReversiFrame.java | UTF-8 | 781 | 2.546875 | 3 | [] | no_license | package Reversi;
import java.awt.BorderLayout;
import java.awt.Container;
import javax.swing.JFrame;
public class ReversiFrame extends JFrame {
public ReversiFrame(){
setTitle("リバーシ");
//setLayout(new BorderLayout());
//ConsolePanel consolPanel = new ConsolePanel();
ReversiPanel panel = new Rev... | true |
42fa5f8cf3436d7d959e84360a47dbb598491f4b | Java | DDKFM/MicroNG | /src/main/java/de/ddkfm/micro/ui/MuxerFX.java | UTF-8 | 1,155 | 2.765625 | 3 | [] | no_license | package de.ddkfm.micro.ui;
import de.ddkfm.micro.models.LogicValue;
import de.ddkfm.micro.util.ThemeUtils;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
public class MuxerFX extends LogicNode {
private ImageView imgView = new ImageView();
private Label lblM... | true |
f2377bd17b123dca3ccbccce8461e14579d9b2cb | Java | phongltth1807075/ProjectSpring | /src/main/java/project/dto/ListBlogDTO.java | UTF-8 | 363 | 2.046875 | 2 | [] | no_license | package project.dto;
import java.util.List;
public class ListBlogDTO {
private List<BlogDTO> list;
public ListBlogDTO(List<BlogDTO> list) {
this.list = list;
}
public ListBlogDTO() {
}
public List<BlogDTO> getList() {
return list;
}
public void setList(List<BlogDTO>... | true |
5e7099ab327c12937c32a8790efc038d6b16179e | Java | cha63506/CompSecurity | /Photography/amazon_photos_source/src/com/amazon/gallery/framework/model/TimelineEntry.java | UTF-8 | 431 | 1.554688 | 2 | [] | no_license | // Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: braces fieldsfirst space lnc
package com.amazon.gallery.framework.model;
public interface TimelineEntry
{
public abstract int getCount();
public abstract int getI... | true |
dd7d41961d90cf8e99af97f6df11d3b5613a11aa | Java | mhaeuser/NQJ-compiler | /testdata/translation/arrays/ArrayOkSize0.java | UTF-8 | 114 | 2.09375 | 2 | [
"BSD-3-Clause"
] | permissive | int main() {
int[] arr;
printInt(1);
arr = new int[0];
printInt(2);
printInt(arr.length);
return 0;
}
| true |
ff6071fee7f47ed3e171af88b63159270fca4cd0 | Java | dmswldi/EJ-s-PiZZa-Store | /src/auth/command/LoginHandler.java | UTF-8 | 2,148 | 2.46875 | 2 | [] | no_license | package auth.command;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import auth.model.Customer;
import auth.model.User;
i... | true |
278d944685095ca7490af4210e160085a8faeb70 | Java | GabrielRStella/Art | /src/com/ralitski/art/core/cmd/InvalidArgumentsException.java | UTF-8 | 273 | 1.773438 | 2 | [] | no_license | package com.ralitski.art.core.cmd;
public class InvalidArgumentsException extends RuntimeException {
/**
* @author "eclipse"
*/
private static final long serialVersionUID = 1715578456178985349L;
public InvalidArgumentsException(String msg) {
super(msg);
}
}
| true |
1abc2c2c9b6862971ac000c8200942f9dbbf0515 | Java | waterwitness/dazhihui | /classes2/com/tencent/qalsdk/core/o$a.java | UTF-8 | 12,224 | 1.523438 | 2 | [] | no_license | package com.tencent.qalsdk.core;
import android.os.SystemClock;
import com.tencent.qalsdk.base.CloseConnReason;
import com.tencent.qalsdk.base.remote.FromServiceMsg;
import com.tencent.qalsdk.base.remote.ToServiceMsg;
import com.tencent.qalsdk.sdk.MsfCommand;
import com.tencent.qalsdk.sdk.MsfSdkUtils;
import com.tence... | true |
afb3cd4caa5a1a2ad96844ed0c3529c0abba6956 | Java | abvarun226/java-playground | /src/com/abvarun226/NIODemo/ReadFilePreJDK7.java | UTF-8 | 1,361 | 2.890625 | 3 | [] | no_license | package com.abvarun226.NIODemo;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.FileChannel;
/**
* Created by bharghav on 1/29/15.
*/
public class ReadFilePreJDK7 {
public static void main(String... args) {
FileInputStream fin = null;
... | true |
3d53fe86fc25ca7bd4c050e0e053e9e4aede369a | Java | jtv215/Youtube-2018 | /src/main/java/ventanas/Cabecera_buscador.java | UTF-8 | 2,067 | 2.078125 | 2 | [] | no_license | package ventanas;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
import com.vaadin.event.MouseEvents.ClickListener;
import com.vaadin.navigator.View;
import com.vaadin.server.ExternalResource;
import com.vaadin.server.FileResource;
import com.vaadin.server.VaadinService;
import com.vaadin.ui.... | true |
3ec12ab945923f8ec03975408285955d630cbfcb | Java | pjohalloran/cardgame45 | /src/client/graphics/SecondaryPlayer.java | UTF-8 | 3,342 | 3.609375 | 4 | [] | no_license | /*
* Created on 02-Mar-2005
*/
package client.graphics;
/**
* @author Pj O' Halloran
*/
public class SecondaryPlayer {
//Name of the player
private String name;
//total score so far in the game of the player
private int totalScore;
//score for the player during the current round
... | true |
e8b9c728ac0e375081ac6e15dbc9c8e732e61338 | Java | murat8505/google-monash-msearch | /MovieClient/src/java/weiwei/flicker/Flickr.java | UTF-8 | 4,967 | 2.84375 | 3 | [
"Apache-2.0"
] | permissive | package weiwei.flicker;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
... | true |
0971b270875d396a82dd170f22aea1f9af6832d1 | Java | PlayersCommittee/gemp-swccg-public | /gemp-swccg-cards/src/main/java/com/gempukku/swccgo/cards/set211/light/Card211_054.java | UTF-8 | 5,348 | 1.984375 | 2 | [
"MIT"
] | permissive | package com.gempukku.swccgo.cards.set211.light;
import com.gempukku.swccgo.cards.AbstractCharacterDevice;
import com.gempukku.swccgo.cards.GameConditions;
import com.gempukku.swccgo.cards.conditions.PresentAtScompLink;
import com.gempukku.swccgo.cards.effects.usage.OncePerTurnEffect;
import com.gempukku.swccgo.common.... | true |
f6344115f84848464a6b034f2987f31d2c2add41 | Java | wyhuan/unidbgok | /unidbg-api/src/main/java/com/github/unidbg/worker/WorkerFactory.java | UTF-8 | 99 | 1.90625 | 2 | [
"Apache-2.0"
] | permissive | package com.github.unidbg.worker;
public interface WorkerFactory {
Worker createWorker();
}
| true |
0c5eb0eb7d73dab3d147c73b232649e627b073a3 | Java | shxr/NJG | /src/dahua/fdc/finance/ProjectMonthPlanProFactory.java | UTF-8 | 1,545 | 2.09375 | 2 | [] | no_license | package com.kingdee.eas.fdc.finance;
import com.kingdee.bos.BOSException;
import com.kingdee.bos.BOSObjectFactory;
import com.kingdee.bos.util.BOSObjectType;
import com.kingdee.bos.Context;
public class ProjectMonthPlanProFactory
{
private ProjectMonthPlanProFactory()
{
}
public static com... | true |
46efee9c1ed001d200799f07577465b4dbbd27c3 | Java | akjava/GWTThreeAmmo | /src/com/akjava/gwt/threeammo/client/BodyAndMesh.java | UTF-8 | 14,825 | 2.234375 | 2 | [] | no_license | package com.akjava.gwt.threeammo.client;
import static com.google.common.base.Preconditions.checkArgument;
import com.akjava.gwt.three.client.js.THREE;
import com.akjava.gwt.three.client.js.core.Geometry;
import com.akjava.gwt.three.client.js.materials.Material;
import com.akjava.gwt.three.client.js.math.Matri... | true |
8b6c3ab2450f513753774849bb19f15bdf0ec085 | Java | GG-Boy/DesignPattern | /FacadeDemo/src/com/gai/main/Main.java | UTF-8 | 683 | 2.90625 | 3 | [] | no_license | package com.gai.main;
import com.gai.fund.Fund;
import com.gai.fund.NationalDebt;
import com.gai.fund.Realty;
import com.gai.fund.Stock;
public class Main {
public static void main(String[] args) {
// //用户需要了解股票,国债,房地产情况,需要参与具体的买和卖。耦合性很高
// Stock stock = new Stock();
// NationalDebt debt = new Nation... | true |
d8361d1e27dca36bfd8381e2ced9300f7dc0a5ba | Java | DaveDarkLion/TFG | /src/main/java/rio/antelodel/david/ejercicios_programacion/model/dao/implementation/ExamenDAO.java | UTF-8 | 823 | 2.15625 | 2 | [] | no_license | package rio.antelodel.david.ejercicios_programacion.model.dao.implementation;
import org.springframework.stereotype.Repository;
import rio.antelodel.david.ejercicios_programacion.model.dao.iface.IExamenDAO;
import rio.antelodel.david.ejercicios_programacion.model.dao.implementation.container.AHibernateDAO;
import rio... | true |
aa449998bf5dec7af0e0213eeb964c470db8203a | Java | yugijiudai/yugioh | /yugioh/mybatisStudy/src/main/java/com/yugi/service/EmpSrv.java | UTF-8 | 200 | 1.625 | 2 | [] | no_license | package com.yugi.service;
import com.yugi.entity.Emp;
import java.util.List;
/**
* Created by Administrator on 2016/4/8.
*/
public interface EmpSrv {
List<Emp> queryForAll();
}
| true |
97f230ff91a1885ef97f204145c3b212f9faeb8e | Java | davihoffmann/app-android-todo-list-exemplo | /app/src/main/java/br/edu/unidavi/todolist/Task.java | UTF-8 | 979 | 2.625 | 3 | [] | no_license | package br.edu.unidavi.todolist;
import android.arch.persistence.room.Entity;
import android.arch.persistence.room.Ignore;
import android.arch.persistence.room.PrimaryKey;
import java.util.Date;
@Entity(tableName = "tasks")
public class Task {
@PrimaryKey(autoGenerate = true)
private final Integer id;
p... | true |
601a266608ac11f0c4277aecf7569220753f8d3a | Java | GlutenMaster/Starbucks | /src/helper/Keyword.java | UTF-8 | 1,242 | 3 | 3 | [] | no_license | package helper;
import java.lang.reflect.Array;
import expressions.ArithmeticExpressions;
import expressions.PrintFunction;
import main.Main;
public class Keyword extends Main{
public static void KeyWordChecker(String str){
for(String string: keyArray) {
if(str.equals(string)) {
keyScanOp(string);
}
}
... | true |
0a9e84abdb824ca44f309626f02816c8c00faa6f | Java | anish-kunduru/Time-Wolf | /Tests/john/SuperAwsomeCardGameExperiments/src/Deck.java | UTF-8 | 266 | 2.953125 | 3 | [] | no_license |
public class Deck {
int counter = 0;
public Card drawCard() {
this.counter++;
if(counter == 1) {
return new Card("Draw 2", 4, 0, 2);
}
if(this.counter == 4) {
this.counter = 0;
}
return new Card("Victory PTS + 5", 6, 5, 0);
}
}
| true |
42d433eb1bebc5d503c1be97341c1f5db566e402 | Java | Jack47/leetcode | /algorithms/java/src/Duplicate/ContainsDuplicateII.java | UTF-8 | 752 | 3.03125 | 3 | [] | no_license | package Duplicate;
public class ContainsDuplicateII {
public boolean containsNearbyDuplicate(int[] nums, int k) {
int capacity = (int)(nums.length*0.75);
capacity = capacity <= 0 ? 16 : capacity;
MyHashMap myHashMap = new MyHashMap(capacity);
for (int i = 0; i < nums.length; i++) {... | true |
c1956ceba8b5be0cddda316cef16a364dc0033d6 | Java | CrandellWS/SlotsGdxAndroidOffline | /app/src/main/java/mobi/square/slots/utils/json/JsonMaker.java | UTF-8 | 1,883 | 2.765625 | 3 | [] | no_license | package mobi.square.slots.utils.json;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
public class JsonMaker {
public static String make(HashMap<String, JsonNode> data) {
if (data == null) return "{}";
if (data.size() < 1) return "{}";
StringBuilder json = new ... | true |
cd31c3cc929f6d1d0fe384d8b35a06ab7b5f2197 | Java | 187383327/qipai-exchange-manager-api | /src/main/java/com/github/microprograms/qipai_exchange_manager_api/public_api/GiftPack_Update_Api.java | UTF-8 | 4,334 | 2.34375 | 2 | [] | no_license | package com.github.microprograms.qipai_exchange_manager_api.public_api;
import java.sql.Connection;
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import com.github.microprograms.ignite_utils.IgniteUtils;
import com.github.microprograms.ignite_utils.sql.dml.Condition;
i... | true |
8d5069b6d72e3e5c46e527b01d6d8890594d019c | Java | RobertSkalko/Age-of-Exile | /src/main/java/com/robertx22/age_of_exile/database/data/rarities/MobRarity.java | UTF-8 | 1,942 | 2 | 2 | [] | no_license | package com.robertx22.age_of_exile.database.data.rarities;
import com.robertx22.age_of_exile.database.registry.ExileDB;
import com.robertx22.age_of_exile.database.registry.ExileRegistryTypes;
import com.robertx22.age_of_exile.mmorpg.SlashRef;
import com.robertx22.age_of_exile.saveclasses.gearitem.gear_bases.Rarity;
im... | true |
ea1d1667725cb2b635b81f1e67ffd7838f6fcfb4 | Java | patricia-blanco/implementation-2 | /src/test/java/com/mobiquity/implementation/HttpRequestTest.java | UTF-8 | 1,583 | 2.140625 | 2 | [] | no_license | package com.mobiquity.implementation;
import com.mobiquity.implementation.exception.ApiException;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.autoconfigure.web.servlet.WebMvcTest;
import org.springframework.test.web.servlet.Mock... | true |
41bd006c36eb42931562276d1a09713d4b99229a | Java | Vik1ang/COMP3331 | /Week3/Lab2/PingClient.java | UTF-8 | 3,867 | 3.078125 | 3 | [] | no_license | import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.InputStreamReader;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
public class PingClient {
private static final int TIME_OUT = 600; // time out
public static void main(String[] arg... | true |
f2d83a69cfba1dcc0d284b89bad89fd827409f24 | Java | MateAcademy/bdDao | /src/main/java/mate/academy/lessons/lesson1/Collect5.java | UTF-8 | 2,729 | 3.4375 | 3 | [] | no_license | //package mate.academy.lessons.LL;
//
//import mate.academy.lessons.collection.Task3;
//
//import java.util.HashMap;
//import java.util.Scanner;
//import java.util.TreeMap;
//import java.util.TreeSet;
//
///**
// * Задача: мы хотим узнать алфавит нашей строки в нижнем регистре и сколько каждая буква встречается в стро... | true |
86f611ae5cdcf90aa0ce8346f0d2ea35d01553e5 | Java | mzkh/LudoKing | /sources/com/tapjoy/internal/C2919ce.java | UTF-8 | 6,915 | 1.828125 | 2 | [] | no_license | package com.tapjoy.internal;
import java.net.URL;
import javax.annotation.concurrent.ThreadSafe;
@ThreadSafe
/* renamed from: com.tapjoy.internal.ce */
public final class C2919ce implements C2918cd {
/* renamed from: a */
private final String f6744a;
/* renamed from: b */
private final URL f6745b;
... | true |
69791439b4264933d46c18b2e35b0c0c4a89d045 | Java | John930312/ghealth-aggregator | /ghealth-api/src/main/java/com/todaysoft/ghealth/service/impl/core/TestingItemEvaluateResult.java | UTF-8 | 2,920 | 1.851563 | 2 | [] | no_license | package com.todaysoft.ghealth.service.impl.core;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import com.todaysoft.ghealth.mybatis.model.Locus;
import com.todaysoft.ghealth.portal.mgmt.facade.report.algorithm.CancerData;
public class TestingItemEvaluate... | true |
3a393941c21888c3f44c0a2c6e75a9db1dbce578 | Java | StriveBoy-12138/EducationTest | /11-1.admin-api/admin/src/main/java/com/njbandou/web/service/impl/QuestionBankServiceImpl.java | UTF-8 | 3,125 | 2.140625 | 2 | [] | no_license | package com.njbandou.web.service.impl;
import com.njbandou.web.dto.modify.QuestionBankDTO;
import com.njbandou.web.dto.search.SearchQuestionBankDTO;
import com.njbandou.web.entity.QuestionBankEntity;
import com.njbandou.web.exception.ServerException;
import com.njbandou.web.mapper.QuestionBankMapper;
import com.njband... | true |
ebe9d63acc3cec087108181f4d47591dd734060f | Java | domien96/Place_preferee | /src/preferee/data/access/server/ProductieProvider.java | UTF-8 | 4,426 | 2.59375 | 3 | [] | no_license | package preferee.data.access.server;
import preferee.data.access.DataAccessException;
import preferee.data.access.DataAccessProvider;
import preferee.data.access.server.dao.serverMovieDAO;
import preferee.data.access.server.dao.serverOrderDAO;
import preferee.data.access.server.dao.serverScreenDAO;
import preferee.dat... | true |
1c2bc3e2e8dac311403484604032e2265a9aaca0 | Java | UjjwalPandey/InterviewBit-Solution---Java | /src/Strings/Atoi.java | UTF-8 | 1,837 | 4.0625 | 4 | [] | no_license | /* Implement atoi to convert a string to an integer.
Example :
Input : "9 2704"
Output : 9
Note: There might be multiple corner cases here. Clarify all your doubts using “See Expected Output”.
Questions:
Q1. Does string contain whitespace characters before the number?
A. Yes
Q2. Can t... | true |
04b8b60d789e93242631619e72121e3cb5d60682 | Java | EstebanDalelR/tinderAnalysis | /apk/decompiled/com.tinder_2018-07-26_source_from_JADX/sources/com/tinder/domain/fastmatch/repository/NewCountRepository.java | UTF-8 | 884 | 1.789063 | 2 | [] | no_license | package com.tinder.domain.fastmatch.repository;
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;
import rx.Observable;
@Metadata(bv = {1, 0, 2}, d1 = {"\u0000\u001e\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0002\n\u0002\b\u0002\... | true |
fd64e2c8507565256bc4609b199318fac9e674c6 | Java | Ariescat/Metis-Seckill | /src/main/java/com/ariescat/seckill/access/AccessKey.java | UTF-8 | 407 | 2.265625 | 2 | [] | no_license | package com.ariescat.seckill.access;
import com.ariescat.seckill.redis.key.base.BaseKeyPrefix;
public class AccessKey extends BaseKeyPrefix {
private AccessKey(int expireSeconds, String prefix) {
super(expireSeconds, prefix);
}
// 可灵活设置过期时间
public static AccessKey withExpire(int expireSecond... | true |
807ff0585594b3284960358684b55d012dac26ea | Java | intel-analytics/analytics-zoo | /ppml/src/main/java/com/intel/analytics/zoo/ppml/FLServer.java | UTF-8 | 2,276 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2021 The Analytic Zoo 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... | true |
575b060040e2e7ca7b51cd772f3e4b282e1a2abf | Java | mtbadi39/swing-effects | /flamingo/src/test/java/utest/ribbon/RibbonGalleryTestCase.java | UTF-8 | 17,317 | 2.296875 | 2 | [
"BSD-3-Clause"
] | permissive | package utest.ribbon;
import java.awt.Dimension;
import java.awt.GraphicsEnvironment;
import java.awt.Point;
import java.awt.Rectangle;
import java.awt.Robot;
import java.awt.event.InputEvent;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Ma... | true |
e0390c46621d47200a159e3a72ad9e5c9f930664 | Java | CccRJ/git-learning | /src/math/FindContinuousSequence.java | UTF-8 | 1,932 | 3.515625 | 4 | [] | no_license | package math;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* @program: Java_Learning
* @description: 面试57 - II. 和为s的连续正整数序列
* @author: ChaiRJ
* @create: 2020-03-06 15:18
**/
public class FindContinuousSequence {
public static int[][] findContinuousSequence(int target){
... | true |
bbd5f36ae71fee940f01993d831b3dc760e4c897 | Java | Vasavi-3/Training-Vasavi | /NestedClass.java | UTF-8 | 323 | 3.203125 | 3 | [] | no_license | class Bank
{
void deposit()
{
System.out.println("deposit amount 1000");
}
class Atm
{
void avabal()
{
System.out.println("avalaible bal is 5000");
}
}
}
class NestedClass
{
public static void main(String args[])
{
Bank sbi=new Bank();
sbi.deposit();
Bank.Atm hdfc=sbi.new Atm();
hdfc.avabal();
}
... | true |
46edf19d7509d20a2c08572cabcc305c7090653e | Java | bmldyq/bmldyq-simple-spring | /src/main/java/com/bmldyq/simple/scan/aspect/ScanAspectHandler.java | UTF-8 | 1,606 | 2.59375 | 3 | [] | no_license | /**
* package name:ScanAspectHandler.java
* description:
* creator:baiml
* create time:2020年5月20日
* modifier:
* modify time:
*/
package com.bmldyq.simple.scan.aspect;
import com.bmldyq.simple.annotation.Aspect;
import com.bmldyq.simple.scan.AbstractScanRegisterAnnon;
import org.slf4j.Logger;
import org.slf4j.L... | true |
0ba106e4441a523fc3cd88bfc2920d5914de4ecc | Java | rahulgupta1988/prcelDriver8804 | /prcelDriverApp/src/main/java/com/parcelsixd/parcel/driver/MyReceiver.java | UTF-8 | 1,495 | 2.140625 | 2 | [] | no_license | package com.parcelsixd.parcel.driver;
import com.parcelsixd.parcel.driver.utills.AppLog;
import com.parcelsixd.parcel.driver.utills.PreferenceHelper;
import android.app.NotificationManager;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
public class MyReceive... | true |
6148f5de2de833901bf3ed95e5a863080aa5cfaa | Java | forzec/l-all | /gs/src/main/java/org/mmocore/gameserver/skills/skillclasses/PDam.java | UTF-8 | 1,764 | 2.3125 | 2 | [] | no_license | package org.mmocore.gameserver.skills.skillclasses;
import java.util.List;
import org.mmocore.gameserver.model.Creature;
import org.mmocore.gameserver.model.Skill;
import org.mmocore.gameserver.skills.SkillEntry;
import org.mmocore.gameserver.stats.Formulas;
import org.mmocore.gameserver.stats.Formulas.AttackInfo;
im... | true |
d1b3437139fe6dce75467a3cf042c9f4899258fd | Java | stopyourhand/ants | /src/main/java/com/ants/impl/personal/StudentServiceImpl.java | UTF-8 | 1,612 | 2.34375 | 2 | [] | no_license | package com.ants.impl.personal;
import com.ants.dao.personal.StudentDao;
import com.ants.entity.page.Goods;
import com.ants.entity.personal.Student;
import com.ants.service.personal.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import jav... | true |
15f73ecd6ba20dc5dd9a39538d7b966f2cd204d4 | Java | araujoivan/grpc-05-udemy | /src/main/java/com/grpc/client/CalculatorClient.java | UTF-8 | 2,488 | 2.671875 | 3 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.grpc.client;
//import grpc.DummyServiceGrpc;
import com.proto.calculator.CalculatorServiceGrpc;
import com.proto.calculato... | true |
e33086f9e5aefb2d743bad1cebf7d7bcf3a8a594 | Java | bseber/fubatra-archiv | /src/main/java/de/fubatra/archiv/shared/domain/UserInfoSeasonProxy.java | UTF-8 | 887 | 1.898438 | 2 | [
"Apache-2.0"
] | permissive | package de.fubatra.archiv.shared.domain;
import com.google.gwt.view.client.ProvidesKey;
import com.google.web.bindery.requestfactory.shared.EntityProxy;
import com.google.web.bindery.requestfactory.shared.ProxyFor;
import de.fubatra.archiv.server.domain.UserInfoSeason;
import de.fubatra.archiv.server.ioc.ObjectifyEnt... | true |
6b62e2196c2b05b571d824a58012472200676588 | Java | Phantoms007/zhihuAPK | /src/main/java/com/zhihu/android/video/player2/p2007f/p2008a/TabSelectHelper.java | UTF-8 | 1,159 | 1.671875 | 2 | [] | no_license | package com.zhihu.android.video.player2.p2007f.p2008a;
/* renamed from: com.zhihu.android.video.player2.f.a.j */
/* compiled from: TabSelectHelper */
public class TabSelectHelper {
/* renamed from: a */
private InlinePlayingManager f92741a;
/* renamed from: b */
private C26617i f92742b;
public T... | true |
be282af11082b2fc0a229855e1aaba34907b8b4a | Java | dabnoj/flickr-viewer-for-honeycomb | /src/com/gmail/charleszq/task/CreatePhotoSetTask.java | UTF-8 | 2,750 | 2.4375 | 2 | [] | no_license | /*
* Created on Sep 27, 2011
*
* Copyright (c) Sybase, Inc. 2011
* All rights reserved.
*/
package com.gmail.charleszq.task;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import android.os.AsyncTask;
import com.gmail.charleszq.utils.FlickrHelper;
... | true |
779d1419f4b019568fb0c94832abb26343e63b29 | Java | strNull/Theogony | /app/src/main/java/com/nodlee/theogony/utils/CacheManager.java | UTF-8 | 2,142 | 2.75 | 3 | [
"MIT"
] | permissive | package com.nodlee.theogony.utils;
import android.content.Context;
import android.util.Log;
import com.nostra13.universalimageloader.utils.L;
import java.io.File;
/**
* 作者:nodlee
* 时间:16/8/16
* 说明:
*/
public class CacheManager {
/**
* 获取缓存大小
* @return
*/
public static String getCacheSize... | true |
1f4c4d8b3a298cae4263ed723aed9f6ddba56034 | Java | elastisys/scale.commons | /net/src/test/java/com/elastisys/scale/commons/net/url/TestUrlUtils.java | UTF-8 | 3,851 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | package com.elastisys.scale.commons.net.url;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
import java.net.URL;
import org.junit.Test;
/**
* Verifies the behavior of the {@link UrlUtils} class.
*
*
*/
public class TestUrlUtils {
@Test
public void testEncodeHttps... | true |
b9e0b4e8e1d896c1816f555e2a94ab90bc064f06 | Java | Freedom0309/textbooks | /src/main/java/com/textbooks/service/impl/BookService.java | UTF-8 | 1,850 | 2.265625 | 2 | [] | no_license | package com.textbooks.service.impl;
import com.textbooks.dao.BookMapper;
import com.textbooks.entity.Book;
import com.textbooks.service.IBookService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.Collection;
import java.util.HashMap;
import java.util.List;
@Servic... | true |
735781fc09c83b85dff7fce6392f15762f47a48e | Java | freedom93/exercise | /HelloWorld/src/com/freedom/helper/MyBaseAdapter.java | GB18030 | 3,238 | 2.34375 | 2 | [] | no_license | package com.freedom.helper;
import java.util.List;
import android.app.Activity;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.... | true |
5e46c65ea94ab491ca90af0b142fcb678e0ba4e4 | Java | Sortinn/comehere | /src/comehere/problems/leetcode/sort/QuickSort.java | UTF-8 | 1,808 | 3.84375 | 4 | [] | no_license | package comehere.problems.leetcode.sort;
import java.util.Random;
public class QuickSort<E> implements Sort {
@Override
public void sort(Comparable[] arr) {
sort(arr, 0, arr.length - 1);
}
//将 [lo...hi] 闭区间内的元素排序
private void sort(Comparable[] arr, int lo, int hi) {
//循环终止条件
... | true |
d20db29d1fa2e3f0cea5860696381ff7bef10c85 | Java | R-Autopsy-translation/autopsy | /Core/src/org/sleuthkit/autopsy/modules/filetypeid/FileType.java | UTF-8 | 14,587 | 1.992188 | 2 | [
"Zlib",
"LGPL-2.0-or-later",
"GPL-1.0-or-later",
"LicenseRef-scancode-oracle-bcl-javase-javafx-2012",
"Apache-2.0",
"CC-BY-3.0",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"WTFPL"
] | permissive | /*
* Autopsy Forensic Browser
*
* Copyright 2014-2018 Basis Technology Corp.
* Contact: carrier <at> sleuthkit <dot> org
*
* 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... | true |
87be34422dae7f022bbdb0afaffff8c84193fd3f | Java | pabplanalp/pvmail | /java/source/com/vmail/modelCache/base/AcUspsInternationalSkeletonRouteModelCacheBase.java | UTF-8 | 3,467 | 1.929688 | 2 | [] | no_license | /**
* AUTO GENERATED - DO NOT EDIT
*/
package com.vmail.modelCache.base;
import com.jwApps.collection.JwList;
import com.jwApps.collection.JwMap;
import com.jwApps.time.JwTimestamp;
import com.jwApps.time.JwDate;
import com.vmail.db.base.AcDbAccountAccess;
import com.vmail.modelCache.core.AcAbstractModelCache;
imp... | true |
f3f4865ffb0149c836440ce45376150b0deaee73 | Java | godfrey-asiimwe/Planning-Module | /Planning-core/src/main/java/com/Planning/core/services/PlanningService.java | UTF-8 | 923 | 1.875 | 2 | [] | no_license | package com.Planning.core.services;
import java.util.List;
import com.Planning.model.PlanningPeriod;
import com.Planning.model.ProcurementPlan;
import com.planetsystems.model.utils.utils_model.FinancialYear;
public interface PlanningService {
public String save(PlanningPeriod planningPeriod);
public S... | true |
afc031ddbfe57ba9d449b4d7f7fb6a5d9e416095 | Java | xiehai1983/often_user_shell | /其他以前的项目/house_code_new/src/com/gwssi/datacenter/dataSource/service/DataStructLoadService.java | UTF-8 | 13,273 | 1.875 | 2 | [] | no_license | package com.gwssi.datacenter.dataSource.service;
import java.math.BigDecimal;
import java.sql.Connection;
import java.sql.DatabaseMetaData;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.HashMap;
import java.ut... | true |
f4b43c1a85f74cd543b9c774d3eeb7dac9fad66b | Java | ShadowDog007/Horses | /src/main/java/com/forgenz/horses/command/BuyCommand.java | UTF-8 | 6,853 | 1.578125 | 2 | [
"MIT"
] | permissive | /*
* Copyright 2013 Michael McKnight. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are
* permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of
* con... | true |
bc2c24d6fd9de3d74b317b58e223bdccfdddfc72 | Java | cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning | /ast_results/MirakelX_mirakel-android/settings/src/de/azapps/mirakel/settings/model_settings/special_list/SpecialListListActivity.java | UTF-8 | 2,593 | 1.742188 | 2 | [] | no_license | // isComment
package de.azapps.mirakel.settings.model_settings.special_list;
import android.app.Fragment;
import android.content.Context;
import android.database.Cursor;
import android.support.annotation.NonNull;
import com.google.common.base.Optional;
import de.azapps.mirakel.DefinitionsHelper;
import de.azapps.mirak... | true |
cf15be2856fe1b874b6a0ed7bb7d75af4837329c | Java | yinfuquan/spring-boot-examples | /spring-boot-examples/spring-boot-rabbitmq/spring-boot-product/src/main/java/com/yin/springboot/product/product/FanoutConfig.java | UTF-8 | 1,322 | 2.421875 | 2 | [
"Apache-2.0"
] | permissive | package com.yin.springboot.product.product;
import org.springframework.amqp.core.*;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* Created by IntelliJ IDEA.
* User: Administrator
*... | true |
7a22cb32accf0b0e143d8e3b7e25066df02092c3 | Java | cssrumi/spring5-receip-app | /src/main/java/com/cssrumi/demo/services/RecipeService.java | UTF-8 | 164 | 1.835938 | 2 | [] | no_license | package com.cssrumi.demo.services;
import com.cssrumi.demo.model.Recipe;
import java.util.Set;
public interface RecipeService {
Set<Recipe> getRecipes();
}
| true |
552928554c1333e6c788642977b781b0c4d7aa12 | Java | NalanBudak/JavaProjects_B21 | /src/day32_LocalDate_WrapperClass/Overloading.java | UTF-8 | 887 | 3.5 | 4 | [] | no_license | package day32_LocalDate_WrapperClass;
public class Overloading {
//when we do decllare we canot use ... instead of []
public static void main(String... args) { // Sadece parameterin icinde bu array [] isaretinin yerine ... konabilir . because compailer stil... | true |
05d23c0b54b5a551cf19bb30671e10aadaac6c20 | Java | crisywini/FinalProjectFree | /FinalProject/src/model/NivelDeEstudio.java | UTF-8 | 144 | 1.96875 | 2 | [] | no_license | package model;
import java.io.Serializable;
public enum NivelDeEstudio implements Serializable {
BACHILLER, PREGRADO, MAESTRIA, DOCTORADO;
}
| true |
3e3a13ffa0cded93a537f8ece6532636f03d8281 | Java | spldlehich/gms | /src/main/java/com/gms/test/domain/TaskAggregator.java | UTF-8 | 6,202 | 2.609375 | 3 | [] | no_license | package com.gms.test.domain;
import java.time.Duration;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.TreeMap;
import java.util.concurrent.RejectedExecutionEx... | true |
afd6e32b9fcd01df605e106bd6fca7b50580448b | Java | doingli/dabo | /src/main/java/com/jet/dabo/mapper/UserMapper.java | UTF-8 | 190 | 1.90625 | 2 | [] | no_license | package com.jet.dabo.mapper;
import com.jet.dabo.model.UserDB;
import org.apache.ibatis.annotations.Mapper;
@Mapper
public interface UserMapper {
UserDB getUserDBByID(int userID);
}
| true |