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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
e100a80dc2dbffa810a2fc525f66beed2c5652ec | Java | mapqlz/test | /src/Node.java | UTF-8 | 309 | 3.328125 | 3 | [] | no_license | //Node class representing an intersection
public class Node {
private int name;
private boolean mark;
public Node(int name){
this.name = name;
}
public void setMark(boolean mark){
this.mark = mark;
}
public int getName(){
return this.name;
}
public boolean getMark(){
return this.mark;
}
}
| true |
d174ec8c2905da8ed48ee378d4d02c8b7efcd310 | Java | wlazlok/invoice_app | /src/test/java/app/invoice/MockModel.java | UTF-8 | 2,975 | 2.484375 | 2 | [] | no_license | package app.invoice;
import app.invoice.models.*;
import java.util.Arrays;
import java.util.Date;
public class MockModel {
public Contractor generateContractor() {
Contractor contractor = new Contractor();
contractor.setId(1L);
contractor.setEmail("email@test.com");
contractor.s... | true |
ce09cc34a43901dabb054e1c0ab7373acbd1e29e | Java | fanfte/alghrithm_learning | /src/main/java/com/fanfte/algorithm/jz/NumberOfOne010.java | UTF-8 | 384 | 2.828125 | 3 | [] | no_license | package com.fanfte.algorithm.jz;
/**
* Created by dell on 2018/7/17
**/
public class NumberOfOne010 {
public static void main(String[] args) {
System.out.println(new NumberOfOne010().numOfOne(8));
}
int numOfOne(int n) {
int count = 0;
while(n != 0) {
n = n & (n - 1)... | true |
397a48c6813dbd6aecbb6b7bd6b8318f35a2186d | Java | brianegan/dexx | /collection/src/main/java/com/github/andrewoma/dexx/collection/List.java | UTF-8 | 4,319 | 2.984375 | 3 | [
"BSD-3-Clause",
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | /*
* Copyright (c) 2014 Andrew O'Malley
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, pub... | true |
65f826d553e8c959f70ad089c9d809bed1c3d6ad | Java | srikanthd/cc_read | /src/com/intuit/mapreduce/WebPageProcessorReducer.java | UTF-8 | 5,488 | 2.34375 | 2 | [] | no_license | package com.intuit.mapreduce;
import java.io.*;
import java.util.Iterator;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapred.MapReduceBase;
import org.apache.hadoop.mapred.Mapper;
import org.apache.hadoop.mapred.OutputCollector;
import org.apache.hadoop.mapred.Reducer;
import org.apache.hadoop.mapred.... | true |
ebf162ab931e7a64040b34e02240e97285c4923d | Java | dongliyang2018/Learning2021 | /java-guide/src/main/java/com/dong/leetcode/LeetCode102.java | UTF-8 | 1,896 | 3.703125 | 4 | [] | no_license | package com.dong.leetcode;
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.List;
import java.util.Queue;
/**
* @author dongliyang
*/
public class LeetCode102 {
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode() {}
TreeN... | true |
ad29bb46c12e7665b8194bc0166c8d525dbabca3 | Java | cuba-platform/cuba | /modules/core/test/com/haulmont/cuba/testmodel/jpa_cascade/JpaCascadeFoo.java | UTF-8 | 1,656 | 1.828125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2018 Haulmont.
*
* 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 |
e5214c07497477d15a682b2030b17d0732fc5c25 | Java | superruzafa/nb-coding-standard-validator | /src/org/superruzafa/codingstandardvalidator/codesniffer/CodeSniffer.java | UTF-8 | 9,907 | 2.46875 | 2 | [] | no_license | package org.superruzafa.codingstandardvalidator.codesniffer;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import org.openide.filesystems.FileObject;
impor... | true |
e2f2a204f174bc750d79ec2f2c94ec4b3f500e23 | Java | jlcao/mycat-advisor | /persistence/src/main/java/org/apache/mycat/advisor/persistence/model/AuthMethod.java | UTF-8 | 3,706 | 2.140625 | 2 | [] | no_license | package org.apache.mycat.advisor.persistence.model;
import javax.persistence.Column;
import javax.persistence.Id;
import java.sql.Timestamp;
/**
* Created by cjl on 2016/3/20.
*/
public class AuthMethod {
@Id
@Column(name = "id", nullable = false, insertable = true, updatable = true)
private Long id;
... | true |
08e0d8c4f399f57ad205cc9d7b6ee3ee7b1d6145 | Java | zhentaoJin/skywalking | /oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/analysis/manual/log/AbstractLogRecord.java | UTF-8 | 4,854 | 1.828125 | 2 | [
"Apache-2.0",
"BSD-3-Clause"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
81ecf193cdfa349b2797170dfac1ba9defbb9aa3 | Java | fazoolmail89/gopawpaw | /Capricornus/src/com/gopawpaw/erp/hibernate/d/AbstractDefrDetId.java | UTF-8 | 3,338 | 2.234375 | 2 | [] | no_license | package com.gopawpaw.erp.hibernate.d;
/**
* AbstractDefrDetId entity provides the base persistence definition of the
* DefrDetId entity. @author MyEclipse Persistence Tools
*/
public abstract class AbstractDefrDetId implements java.io.Serializable {
// Fields
private String defrDomain;
private String defrNbr;... | true |
0de79ff84edd7720e856103b6e61e88f9f557907 | Java | noexile/Homework | /Some Projects/Shop Demo/Shop/Buyer.java | UTF-8 | 7,253 | 3.25 | 3 | [] | no_license | package Shop;
public class Buyer {
// Всеки купувач може да извършва следните действия:
// - Да добавя продукт на килограм към количката си;
// - Да добавя продукт на бройки в количката си;
// - Да премахва продукт на килограм от количката си;
// - Да премахва продукт на бройки от количката си.
// Ако продукта се ... | true |
1406ec5132ffeecc1f6629803822d600d8fb6a3b | Java | agilebirds/openflexo | /flexodesktop/modules/flexoworkfloweditor/src/main/java/org/openflexo/wkf/roleeditor/RoleListRepresentation.java | UTF-8 | 3,969 | 2.03125 | 2 | [] | no_license | /*
* (c) Copyright 2010-2011 AgileBirds
*
* This file is part of OpenFlexo.
*
* OpenFlexo is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any late... | true |
78f0bfde22b646fe148481d2bff58b6e31779ebc | Java | unChaste/springmvc-mybatis | /src/main/java/com/ay/model/Mood.java | UTF-8 | 783 | 2.234375 | 2 | [] | no_license | package com.ay.model;
import java.util.Date;
public class Mood {
private Integer id;
private String content;
private Date publishTime;
private Integer praiseNum;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Strin... | true |
c99a463cf9f6076d00aa1a62dbdbc7c742ec5cca | Java | SeiferPrime/Homework | /EX55Comparator/Exercise.java | UTF-8 | 2,874 | 3.546875 | 4 | [] | no_license | import java.util.Comparator;
import java.util.Arrays;
class Exercise{
public static void main(String[] args) {
Employee p1 = new Employee(1, "Vasya", "Voshkin", 300);
Employee p2 = new Employee(1, "Masha", "Malinovskaya", 125);
Employee p3 = new Employee(3, "Kolya", "Pashkovskiy", 430);
Employee p4 = new Emplo... | true |
0a3d6aef2102d779f674be940616e498828286a7 | Java | looooogan/icomp-mq200-server | /common/src/com/icomp/entity/base/Vgetboxmessage.java | UTF-8 | 3,015 | 1.945313 | 2 | [] | no_license | /*
* 工具自动生成:VIEW实体类
* 生成时间 : 2014/11/12 18:19:04
*/
package com.icomp.entity.base;
import java.io.Serializable;
/**
* VIEW实体类
* @author 工具自动生成
* 创建时间:2014/11/12 18:19:04
* 创建者 :杨作庆
*
*/
public class Vgetboxmessage extends VgetboxmessageWhere implements Serializable {
// 序列化接口属性
private static final ... | true |
c110efb6491a28ee52f356374b3b47283ccf55ec | Java | gbrehmer/demo-spring-boot-27231 | /src/main/java/com/example/demo/CustomChangeSet.java | UTF-8 | 1,444 | 2.140625 | 2 | [] | no_license | package com.example.demo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallbackWithoutResult;
import org.springframework.transaction.support.TransactionTemplate;
import liquibase.chang... | true |
ac4806fd79b4aa59f2adfa994031749bc88de9ad | Java | hienqp/JavaCore | /_45_Java_IO/_04_CharacterIO_Streams/_16_StringReader/StringReader_with_StreamTokenizer.java | UTF-8 | 1,183 | 3.5 | 4 | [] | no_license | package _45_Java_IO._04_CharacterIO_Streams._16_StringReader;
import java.io.IOException;
import java.io.StreamTokenizer;
import java.io.StringReader;
import java.util.HashMap;
import java.util.Map;
public class StringReader_with_StreamTokenizer {
public static void main(String[] args) throws IOException {
... | true |
a37565eda3e693ac6635cb1baf640c65c76bac53 | Java | AlexeevAlexandr/biginteger-multiply-test-app | /src/main/java/com/test/service/CalculateImpl.java | UTF-8 | 1,872 | 3.3125 | 3 | [] | no_license | package com.test.service;
import java.math.BigInteger;
public class CalculateImpl implements Calculate {
@Override
public BigInteger multiply(String alg, BigInteger one, BigInteger two) throws UnsupportedOperationException {
switch (alg) {
case "alg1":
return multiplyMeth... | true |
b3f4147a331d33a6b91211e404b61c6e728f44e3 | Java | ranou712/grafikon.grafikon-old | /grafikon-gui-components/src/net/parostroj/timetable/gui/components/GraphicalTimetableView.java | UTF-8 | 22,170 | 2.40625 | 2 | [] | no_license | package net.parostroj.timetable.gui.components;
import java.awt.*;
import java.awt.event.*;
import java.util.List;
import java.util.logging.Logger;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import net.parostroj.timetable.gui.components.GraphicalTimetableView.... | true |
d89246c572a39f085b243c519869cb409143fbd3 | Java | meyhuan/SimpleLocker | /app/src/main/java/android/media/RemoteController.java | UTF-8 | 2,404 | 1.664063 | 2 | [] | no_license | /*
* Copyright (C) 2014 AChep@xda <artemchep@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* Th... | true |
f6d9543223bdd8162bd51c0d3318319748867dca | Java | desarrollorusoft/CoreSat | /src/ar/com/cognisys/sat/core/modelo/factory/planDePago/FactoryTotalCuota.java | UTF-8 | 1,005 | 2.40625 | 2 | [] | no_license | package ar.com.cognisys.sat.core.modelo.factory.planDePago;
import ar.com.cognisys.sat.core.modelo.comun.planDePago.TotalCuota;
public class FactoryTotalCuota {
public static TotalCuota generarIntanciaVacia() {
TotalCuota totalCuota = new TotalCuota();
totalCuota.setCapital(0f);
totalCuota.setRecargo(0f);
... | true |
2adda0d4333323b77655f0cbe0c7a6e3538d89c7 | Java | Sjunne/AndroidProj | /app/src/main/java/com/example/andapp/viewmodel/BookingViewModel.java | UTF-8 | 1,491 | 2.234375 | 2 | [] | no_license | package com.example.andapp.viewmodel;
import android.app.Application;
import androidx.annotation.NonNull;
import androidx.lifecycle.AndroidViewModel;
import androidx.lifecycle.LiveData;
import com.example.andapp.model.Booking;
import com.example.andapp.CallBacks.CallBackForBookings;
import com.example.andapp.reposit... | true |
efc091f25f35a438d0b81edb4a3ca85ea30ea73f | Java | baliramakrishna/Dynamic-Programming | /Convex Hull.java | UTF-8 | 3,033 | 3.109375 | 3 | [
"MIT"
] | permissive | import java.util.*;
import java.lang.*;
import java.io.*;
class GFG
{
static Points p[];
static class Points{
int x;
int y;
Points(int x,int y){
this.x=x;
this.y=y;
}
}
static int crossProduct(Points p1,Points p2,... | true |
42175825d2106c0f67d2e1dba0d1911ea20932ad | Java | ddelizia/vcrud | /vcrud-core/src/main/java/org/ddelizia/vcrud/core/interceptor/util/InterceptorWrapper.java | UTF-8 | 1,061 | 2.390625 | 2 | [] | no_license | package org.ddelizia.vcrud.core.interceptor.util;
import org.ddelizia.vcrud.core.interceptor.VcrudInterceptor;
/**
* Created with IntelliJ IDEA.
* User: ddelizia
* Date: 18/01/14
* Time: 18:03
* To change this template use File | Settings | File Templates.
*/
public class InterceptorWrapper implements Comparabl... | true |
dfb9ca42060eed8d3edbbef660299846df96a6ed | Java | vanehu/4G | /ecs-common/src/main/java/com/al/ecs/spring/annotation/transactional/ProductTx.java | UTF-8 | 1,597 | 1.8125 | 2 | [] | no_license | /**********************************************************
* Copyright © 2012,联创亚信科技(南京)有限公司
* All Rights Reserved.
*
* 文件名称: ProductTx.java
* 摘 要:商品管理事务管理扩展
*
* 初始版本:1.0.0
* 原 作 者:liusd
* 完成日期:2012-2-13
*
* 当前版本:$LastChangedRevision$
* 作 者:$LastChangedBy$
* 完成日期:$LastChnagedDate$
***... | true |
8794a2acd9be5a33c49d96fe2cced64eaa9450b4 | Java | NCIP/tcga-sandbox-v1 | /trunk/common/src/main/java/gov/nih/nci/ncicb/tcga/dcc/common/dao/jdbc/ArchiveQueriesJDBCImpl.java | UTF-8 | 38,562 | 1.601563 | 2 | [] | no_license | /*
* Software License, Version 1.0 Copyright 2010 SRA International, Inc.
* Copyright Notice. The software subject to this notice and license includes both human
* readable source code form and machine readable, binary, object code form (the "caBIG
* Software").
*
* Please refer to the complete License text for ... | true |
36a93dc6829d71402e04a21a449eca907afe145e | Java | gbif/parsers | /src/main/java/org/gbif/common/parsers/date/DateTimeParser.java | UTF-8 | 3,206 | 2.4375 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | /*
* 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 to in writing, software
* distribut... | true |
edb738dad8dc5f4d545f9570bf751db93c83c3a6 | Java | Karplyak/CredentialProviders | /Android/WinCredOtp/src/com/wincred/otp/ExtractPin.java | UTF-8 | 136 | 1.703125 | 2 | [] | no_license | package com.wincred.otp;
/**
* Created by Naveed on 5/6/14.
*/
public interface ExtractPin {
String extractPin(byte[] buffer);
}
| true |
35dee732398713f02b82a7ac973de513af4f104a | Java | qiaohhgz/javase | /JavaSE/src/main/java/com/jim/designpattern/abstractfactory/v3/base/CarFactory.java | UTF-8 | 285 | 2.28125 | 2 | [] | no_license | package com.jim.designpattern.abstractfactory.v3.base;
/**
* Created with IntelliJ IDEA.
* User: Jim_qiao
* Date: 8/2/13
* Time: 3:07 PM
* To change this template use File | Settings | File Templates.
*/
public abstract class CarFactory {
public abstract Car createCar();
}
| true |
8b03f22d83e2924575bde549ff050dcc2e15d359 | Java | acmong2212/Mang-va-phuong-thuc-trong-Java | /src/Count.java | UTF-8 | 624 | 3.53125 | 4 | [] | no_license | import java.util.Scanner;
public class Count {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
System.out.println("Nhập chuỗi: ");
String str = sc.nextLine();
System.out.println("Nhập kí tự cần tìm trong chuỗi: ");
char a = sc.next().charAt(0)... | true |
e41b1172e9a1f6b8e5049d1b23b5877659a1fc12 | Java | chenjiabing666/TeduStore | /src/test/java/Test1.java | UTF-8 | 1,930 | 3 | 3 | [] | no_license | import java.io.FileInputStream;
import java.io.InputStream;
import org.apache.taglibs.standard.lang.jstl.test.beans.PublicBean1;
import org.junit.Test;
import com.sun.javafx.image.impl.IntArgb;
public class Test1 {
/**
* 思想: 从第一个开始取值和后面的元素开始比较,如果有比它小的,那么就交换元素值
* 外层循环从第一个元素开始,内层循环保证了从外层循环的后面一个元素开始,这样就是保证了比较
* ... | true |
d6b96f405038cfe58464e88238706bb06d42556f | Java | Qasimjalali/MyApplication | /app/src/main/java/com/example/muhammadqasim/myapplication/MainActivity.java | UTF-8 | 1,768 | 2.0625 | 2 | [] | no_license | package com.example.muhammadqasim.myapplication;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class MainActivity extends AppCompatActivity {
@Override
protected void onCreate(Bundle sav... | true |
5e458f2474eac5be25a9faad01d2df1d271cf0fd | Java | Niclas-Stepniak/raytracingPracticeExampleUR | /seeraytracer-2/src/test/java/de/ur/iw/seeRaytracer/CubeTest.java | UTF-8 | 2,129 | 2.78125 | 3 | [] | no_license | package de.ur.iw.seeRaytracer;
import static org.junit.jupiter.api.Assertions.*;
import org.apache.commons.math3.geometry.euclidean.threed.Vector3D;
import org.junit.jupiter.api.Test;
import java.util.ArrayList;
class CubeTest {
@Test
void pointInCube() {
Cube cube = new Cube(new Vector3D(0,0,0),... | true |
12546c4651dc4bbbbccf291c14fcdcb0ed689bd2 | Java | smartsheet-platform/smartsheet-java-sdk | /src/main/java/com/smartsheet/api/models/TitleRichTextWidgetContent.java | UTF-8 | 2,054 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | package com.smartsheet.api.models;
/*
* #[license]
* Smartsheet SDK for Java
* %%
* Copyright (C) 2019 Smartsheet
* %%
* 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 |
12a6e7f3e7783ee6e02c5c471b6565b618ae2a07 | Java | Theo07-git/HyperPlanning | /src/model/dao/SiteDao.java | UTF-8 | 2,036 | 3.234375 | 3 | [] | no_license | package model.dao;
import model.Site;
import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
public class SiteDao {
private final Connection connect;
ResultSet resultSet;
// Constructeur
public SiteDao(Connection connect){ this.connect = connect; }
/**
* Retou... | true |
ac6c74b1c1de168f6f2e6ec6b2e79df81b96ece8 | Java | ZoomPoppy/Algorithm | /src/com/zz/homework/chapter_2/practice/Main_2_2_14.java | UTF-8 | 1,576 | 3.921875 | 4 | [] | no_license | package com.zz.homework.chapter_2.practice;
import java.util.LinkedList;
import java.util.Queue;
/**
* 归并有序队列
* 将两个有序队列作为参数,返回一个归并后的有序队列
* Created by zz on 2016-08-20.
*/
public class Main_2_2_14 {
public static void main(String args[]){
LinkedList<Integer> integers = new LinkedList<>();
Li... | true |
4d266a85f5c3d41375c8e155f5d75871afc34b4c | Java | kassiny/QueueJava2 | /src/main/java/taskqueue/client/Client.java | UTF-8 | 4,828 | 2.203125 | 2 | [] | no_license | package taskqueue.client;
import javax.swing.AbstractButton;
import org.eclipse.jetty.client.HttpClient;
import org.eclipse.jetty.client.api.Request;
import taskqueue.client.request.AbstractRequest;
import taskqueue.client.response.AbstractResponseManager;
import taskqueue.client.response.SignedUpResponseManager;
im... | true |
6abbb9332f2c943d06df729d7b4b1d0d7b94474c | Java | niuwenchen/KafkaSourceAnalysis | /src/main/java/com/jackniu/kafka/clients/producer/Callback.java | UTF-8 | 1,743 | 2.546875 | 3 | [] | no_license | package com.jackniu.kafka.clients.producer;
public interface Callback {
/**
* A callback method the user can implement to provide asynchronous handling of request completion. This method will
* be called when the record sent to the server has been acknowledged. When exception is not null in the callback,... | true |
38d1b1bdc8fce199cb58180f4cbcd915ad086530 | Java | orlychaparro/GEOREF_BACK | /src/main/java/com/georef/api/util/CreateRoles.java | UTF-8 | 875 | 2.203125 | 2 | [
"Apache-2.0"
] | permissive | package com.georef.api.util;
import com.georef.api.security.entity.Rol;
import com.georef.api.security.enums.RolNombre;
import com.georef.api.security.service.RolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereot... | true |
4582e419a891016d24e401d5538acecd645a5b42 | Java | JohnSC31/PY1-Tetris-2102 | /src/tetris/Board.java | UTF-8 | 26,254 | 2.859375 | 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 tetris;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.util.ArrayList;
import java.ut... | true |
2c327f7ca8b995a8bd239ecad93f71dfb94e47d6 | Java | dilip-dmk/ATM-Concurrency | /src/atm_ccsd/Validation.java | UTF-8 | 2,269 | 2.671875 | 3 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package atm_ccsd;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
*
* @author Di... | true |
aa38e1f9da1ca4f92cfc39e071c4bb79a5128de9 | Java | amaurisur/SAM | /Java/src/MeasurementMethods/MeasurementMethod.java | UTF-8 | 280 | 2.140625 | 2 | [] | no_license | package MeasurementMethods;
import java.util.ArrayList;
import java.util.HashMap;
public abstract class MeasurementMethod {
String name;
public MeasurementMethod(String name){
this.name = name;
}
abstract public boolean check(HashMap param);
}
| true |
b18378c4f7ffc1c1178b1a8b939fcf702f71171e | Java | mdmzero0/WorldWind-Source | /src/gov/nasa/worldwind/examples/sunlight/SunCalculator.java | UTF-8 | 1,624 | 2.4375 | 2 | [] | no_license | package gov.nasa.worldwind.examples.sunlight;
import gov.nasa.worldwind.geom.LatLon;
import java.util.Calendar;
public class SunCalculator
{
public static LatLon subsolarPoint(Calendar paramCalendar)
{
double d2 = paramCalendar.get(11) + (paramCalendar.get(12) + paramCalendar.get(13) / 60.0D) / 60.0D;
lon... | true |
88c1db03e31372c9ddab0402015c8e641f3c66c7 | Java | tectronics/my-webapp | /phoenix-java/src/main/java/com/opensrc/phoenix/manager/action/RegisterAction.java | UTF-8 | 755 | 2.125 | 2 | [] | no_license | /**
* Copyright 2005-2012 Flouny.Caesar.com
* All rights reserved.
*
* @project
* @author Flouny.Caesar
* @version 1.0
* @data 2010-12-01
*/
package com.opensrc.phoenix.manager.action;
import com.opensrc.phoenix.core.base.action.BaseAction;
import com.opensrc.phoenix.manager.model.UserVO;
/**
... | true |
3eb85924022a703ee83c4ab4676d8cfaa0ea2dac | Java | jessielabadan07/WebcamDetector | /src/com/jclab/webcamdetector/gui/CameraPanel.java | UTF-8 | 1,121 | 2.859375 | 3 | [
"MIT"
] | permissive | package com.jclab.webcamdetector.gui;
import java.awt.Graphics;
import java.awt.image.BufferedImage;
import java.awt.image.DataBufferByte;
import javax.swing.JPanel;
import org.opencv.core.Mat;
public class CameraPanel extends JPanel {
private static final long serialVersionUID = 1L;
private Buff... | true |
65c1b4da0699f1898a90a91a9e7b83edeca02910 | Java | ders03/Java | /Homework_java/Project_1/Hangman.java | UTF-8 | 8,936 | 3.296875 | 3 | [] | no_license | // Input handling can accept any character and is case sensitive, this is done to allow changes to RandomWord wordbank
// and this program will still function. if (Character.isLetter(inp.nextline().charAt(0)) {//} would validate if letter.
import java.util.Scanner;
public class Hangman {
private static final boolean... | true |
d506f101ee09c907b5893e11cf6f31e2fd6ddf80 | Java | moxiao19995071310/ainiyue | /src/pay/weixin/exception/WepayException.java | UTF-8 | 630 | 2.71875 | 3 | [] | no_license | package pay.weixin.exception;
/**
* 微信支付异常
* Date: 26/11/15
* @since 1.0.0
*/
public class WepayException extends RuntimeException {
/**
* 当微信支付业务错误时,会有对应的CODE值
*/
private String errorCode;
public WepayException(Throwable cause) {
super(cause);
}
public WepayException(Strin... | true |
4d018ce56a8b194a087ac9bf1463e16c4bee977f | Java | liaobinge/renren-fast | /src/main/java/io/renren/modules/app/sms/vo/SmsReq.java | UTF-8 | 1,858 | 2.328125 | 2 | [
"Apache-2.0"
] | permissive | package io.renren.modules.app.sms.vo;
/**
* 发送短信对象实体
*/
public class SmsReq {
private String uid = ""; //业务标识[选填],由贵司自定义32为数字透传至我司
private String content = ""; //短信内容[必填]
private String destMobiles = ""; //接收号码[必填],同时发送给多个号码时,号码之间用英文半角逗号分隔(,)
private String cust_code = ""; //用户账号[必填]
private String s... | true |
687056eb2dc3b57d07b6787a815e3c10e0192989 | Java | iantal/AndroidPermissions | /apks/banking_set2/com.advantage.RaiffeisenBank/source/com/google/android/gms/common/api/BatchResult.java | UTF-8 | 829 | 1.960938 | 2 | [
"Apache-2.0"
] | permissive | package com.google.android.gms.common.api;
import com.google.android.gms.common.internal.zzac;
import java.util.concurrent.TimeUnit;
public final class BatchResult
implements Result
{
private final Status fp;
private final PendingResult<?>[] vr;
BatchResult(Status paramStatus, PendingResult<?>[] paramArray... | true |
0e12b79f4a0104a9dafc977c33022a8c36b3b1ed | Java | mircokroon/minecraft-world-merger | /src/main/java/McaFile.java | UTF-8 | 6,346 | 2.75 | 3 | [] | no_license | import org.apache.commons.io.IOUtils;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.*;
import java.util.concurrent.atomic.AtomicInteger;
public class McaFile {
private final stati... | true |
fa92ca27ffb5fddb6b401662e89c16ef47cad39b | Java | flsand/WanKuoportal | /app/src/main/java/com/example/administrator/wankuoportal/ui/SetUp/AboutUsActivity.java | UTF-8 | 9,198 | 1.804688 | 2 | [] | no_license | package com.example.administrator.wankuoportal.ui.SetUp;
import android.app.DownloadManager;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.net.ConnectivityManager;
im... | true |
4ea1efd736ed71f523aeb0f0baff5336f6a9b8e6 | Java | yannlelorier/gervigreind-lab4 | /src/EqualConstraint.java | UTF-8 | 459 | 2.65625 | 3 | [] | no_license | import aima.core.search.csp.Assignment;
import aima.core.search.csp.Variable;
public class EqualConstraint extends BinaryConstraint {
public EqualConstraint(Variable var1, Variable var2) {
super(var1, var2);
}
@Override
public boolean isSatisfiedWith(Assignment assignment) {
Object value1 = assignment.getAs... | true |
56fd10b3f1ba0ce9ca178676014f9efa5d9f4cdf | Java | imucr/JAVA_BASIS | /JB/src/sougouZisshuu/sigekiJava/ch10FileIOClass/mojiretsuFileKakikomi/DullProgram.java | UTF-8 | 890 | 3.4375 | 3 | [] | no_license | package sougouZisshuu.sigekiJava.ch10FileIOClass.mojiretsuFileKakikomi;
import java.io.FileWriter;
import java.io.IOException;
/*
【文字列をファイルに書き込み】
・FileWriter vs. PrintWriter(もっと簡単)の例示
*/
class DullProgram {
public static void main(String[] args) {
FileWriter writer = null;
try {
writer = new FileWriter("o... | true |
c73ade7af0bc6d3a57b61943d52fcca2f072ce04 | Java | catsaveearth/JOKER | /app/src/main/java/gachon/termproject/joker/UserInfo.java | UTF-8 | 1,675 | 2.25 | 2 | [
"MIT"
] | permissive | package gachon.termproject.joker;
import java.util.ArrayList;
public class UserInfo {
public static String userId;
public static String email;
public static String nickname;
public static String profileImg;
public static String introduction;
public static String portfolioImg;
public static... | true |
590dd5bc10f652f05f806c081344c2949c6e97c8 | Java | linh626688/FragmentViewPager_2 | /app/src/main/java/com/helix/admin/fragmentviewpager/adapter/VideoAdapter.java | UTF-8 | 1,465 | 2.203125 | 2 | [] | no_license | package com.helix.admin.fragmentviewpager.adapter;
import android.content.Context;
import android.support.annotation.LayoutRes;
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import a... | true |
345c500e3a4d4c321566648e33a012e1d62bfc74 | Java | 308229387/shangjiatong | /Merchantplatform/WChatUIKit/src/com/android/gmacs/view/GmacsDialog.java | UTF-8 | 26,557 | 2.015625 | 2 | [] | no_license | package com.android.gmacs.view;
import android.app.Activity;
import android.app.Dialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.res.Resources;
import android.os.Build;
import android.support.annotation.ArrayRes;
import android.support.annotation.NonNull;
import an... | true |
79afe72dbba1f4155364905d40a4d2630593230c | Java | xuzhiyuan95/ImageShow | /ImageShow/src/servlet/BaseServlet.java | UTF-8 | 972 | 2.34375 | 2 | [] | no_license | package servlet;
import java.io.IOException;
import java.lang.reflect.Method;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class BaseServlet {
protected void service(HttpServletRequest request, HttpServletResponse response... | true |
adb55b950b9a685662139ed4614a512ead5ec493 | Java | Shmouble/Java | /Chapter2/src/Chapter2.java | UTF-8 | 2,122 | 3.453125 | 3 | [] | no_license |
public class Chapter2{
public static void main(String[] args){
System.out.println("Hello");
/* A1
int max = Integer.parseInt(args[0]);
int maxL = Integer.toString(max).length();
int min = Integer.parseInt(args[0]);
int minL = Integer.toString(max).length();
... | true |
18fe6c3f12bc595dbbb720c7747472f9cf971c81 | Java | digitalgust/miniJVM | /j2c/translator/src/main/java/com/ebsee/invoke/bytecode/ByteCodeConstantPool.java | UTF-8 | 9,122 | 2.640625 | 3 | [
"MIT"
] | permissive | /* Copyright (c) 2008-2015, Avian Contributors
Permission to use, copy, modify, and/or distribute this software
for any purpose with or without fee is hereby granted, provided
that the above copyright notice and this permission notice appear
in all copies.
There is NO WARRANTY for this software.... | true |
dafb025928516f7c8c55fefd7f2dffbb59583fa9 | Java | KotyaraSingleCat/kotyara-demo | /src/main/java/com/kotyara/api/abstractcrud/service/convertor/TicketConvertor.java | UTF-8 | 1,280 | 2.4375 | 2 | [] | no_license | package com.kotyara.api.abstractcrud.service.convertor;
import com.kotyara.api.dto.TicketDTO;
import com.kotyara.api.entity.Ticket;
import com.kotyara.api.entity.User;
import org.springframework.stereotype.Component;
import java.time.LocalDateTime;
@Component
public class TicketConvertor implements AbstractConvert<T... | true |
d8c46a806d493cf201842d1ad9c30947cac65306 | Java | JAmesMoggJCU/JamesMoggA2 | /src/Launcher.java | UTF-8 | 1,350 | 2.703125 | 3 | [] | no_license | /**
* Created by moggj_000 on 24/10/2016.
*/
public class Launcher {
static Game instance;
static int length = 200;
static int height = 300;
//connects the launcher to the game class through a instnace
public static void getGameInstance(Game gameInstance) {
instance = gameInstance;
}
... | true |
9d3d4573fdb69da0a1c52f97fa4adaffb62532a8 | Java | ERAM-Project/eram-common | /eram-cm/src/main/java/org/eram/common/monitor/net/NetRecord.java | UTF-8 | 632 | 2.40625 | 2 | [
"MIT"
] | permissive | package org.eram.common.monitor.net;
public class NetRecord {
private double bandwidth;
private double times;
public NetRecord() {
this(-1, -1);
}
/**
* @param times
*/
public NetRecord(double bandwidth, double times) {
this.bandwidth = bandwidth;
this.times =... | true |
4973097e6314c63c7518e7889a79a41ff523e5ba | Java | P79N6A/icse_20_user_study | /methods/Method_1007059.java | UTF-8 | 41 | 1.921875 | 2 | [] | no_license | @Override public A last(){
return a;
}
| true |
7756b19478bcfb19fc1f5e79cd2191ab6c73657a | Java | huzeli/yeb | /yebgenerater/src/main/java/com/org/hu/pojo/Admin.java | UTF-8 | 1,436 | 1.945313 | 2 | [] | no_license | package com.org.hu.pojo;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
impo... | true |
f084746dda0ec9bd3f1735f60b7e82420cfefa9d | Java | lapinouuu/SupAnalytics | /src/com/supinfo/rmt/web/validator/EmailValidator.java | UTF-8 | 1,332 | 2.359375 | 2 | [] | no_license | package com.supinfo.rmt.web.validator;
import com.supinfo.rmt.entity.Employee;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.FacesValidator;
import javax.faces.validator.Validator;
import javax.faces.validat... | true |
2a95239807f10ff556dd1aa1a5d70027186c7594 | Java | 670848654/SakuraAnime | /app/src/main/java/my/project/sakuraproject/main/start/StartActivity.java | UTF-8 | 6,076 | 1.929688 | 2 | [] | no_license | package my.project.sakuraproject.main.start;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.content.Intent;
import android.graphics.Path;
import android.os.Handler;
import android.view.View;
import android.view.animation.Anti... | true |
1c8da47b5bfff0f7a13244f7f2e0cbd0da9951ef | Java | chen-zhifeng/testGit | /web.shared/src/main/java/com/practice/storage/StoragePathCodecUtils.java | UTF-8 | 1,045 | 2.703125 | 3 | [] | no_license | package com.practice.storage;
import com.juric.carbon.schema.storage.path.StoragePath;
/**
* Created by Eric on 9/22/2015.
*/
public class StoragePathCodecUtils {
public final static TokenMap[] tokenMaps = new TokenMap[]{new TokenMap(" ", "_"), new TokenMap(StoragePath.SEPARATOR, "__")};
private static cl... | true |
1881718ace5750c741b7719e51adf3ec5a5dac84 | Java | yadudoc/Swift | /src/org/griphyn/vdl/karajan/monitor/monitors/ansi/tui/.svn/text-base/LevelBar.java.svn-base | UTF-8 | 1,020 | 2.390625 | 2 | [] | no_license | //----------------------------------------------------------------------
//This code is developed as part of the Java CoG Kit project
//The terms of the license can be found at http://www.cogkit.org/license
//This message may not be removed or altered.
//-----------------------------------------------------------------... | true |
d3e4294e462e07475c650f98e0df253fe7ea8554 | Java | ymzdb7/test3 | /oa/src/main/java/com/myoa/service/calender/CalenderService.java | UTF-8 | 1,378 | 1.859375 | 2 | [] | no_license | package com.myoa.service.calender;
import com.myoa.model.calender.Calendar;
import com.myoa.util.ToJson;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
public abstract interface CalenderService
{
public abstract List<Calendar> getschedule(int paramInt1, int paramInt2, String paramString);
... | true |
f9c4a6d5d76d6983c5efa0dd932abd2dd7687da0 | Java | smartfly/java-8-lambdas-study | /src/main/java/chapter1/MusicChapter.java | UTF-8 | 654 | 2.578125 | 3 | [] | no_license | package chapter1;
import java.util.List;
/**
* Created with IntelliJ IDEA.
*
* @author: hutao01
* Date: 2018/2/7
* Time: 15:54
* Description: 音乐章节
* To change this template use File | Settings | File Templates | Includes | File Header
*/
public abstract class MusicChapter {
/**
* 创作音乐人
*/
p... | true |
231dc35c5ab775c162560764f80ecf3d93f486e1 | Java | boricles/geometry2rdf | /Geometry2RDF/src/es/upm/fi/dia/oeg/geometry2rdf/db/DbConnector.java | UTF-8 | 2,123 | 2.15625 | 2 | [] | no_license | /*
* @(#) Connector.java 0.1 2010/08/05
*
* Copyright (C) 2010 vsaquicela,boricles
*
* This library 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 Foundation; either
* version 2.1 of the License, o... | true |
ccb2a4d70be9973426e4cc31211b9e6d13942af4 | Java | IwalkInSilence/Football_project | /src/main/java/project/football/security/AuthenticationService.java | UTF-8 | 166 | 2.03125 | 2 | [] | no_license | package project.football.security;
import project.football.model.User;
public interface AuthenticationService {
User register(String email, String password);
}
| true |
b1f350ddb5f07bce8d3863aaf75b407f293f3b40 | Java | harunalbayrak/cse222-data-structures | /HW6/SourceCodes_171044014/ShellSort.java | UTF-8 | 2,205 | 3.828125 | 4 | [] | no_license | import java.util.LinkedList;
/**
* The type Shell sort.
*/
public class ShellSort implements SortAlgorithm {
@Override
public <T extends Comparable<T>> void sort(T[] table) {
int gap = table.length / 2;
while (gap > 0) {
for (int nextPos = gap; nextPos < table.length;
... | true |
407f177d84ae51129cd1164418da676ff3db0047 | Java | qmwu2000/frameworks | /eunit-testfwk/src/main/java/org/unidal/eunit/handler/GroupsHandler.java | UTF-8 | 1,631 | 2.25 | 2 | [] | no_license | package org.unidal.eunit.handler;
import java.lang.reflect.AnnotatedElement;
import java.lang.reflect.Method;
import org.unidal.eunit.annotation.Groups;
import org.unidal.eunit.model.entity.EunitClass;
import org.unidal.eunit.model.entity.EunitMethod;
import org.unidal.eunit.testfwk.spi.IAnnotationHandler;
import org... | true |
bca45eec4fa0a7957e41eea83aafee5177eca16d | Java | rheehot/ODOT | /src/main/java/goodgid/odot/config/WebConfig.java | UTF-8 | 519 | 1.734375 | 2 | [] | no_license | package goodgid.odot.config;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import goodgid.odot.interceptor.ApiLoggingInterceptor;
@Configuration
publ... | true |
9b51064a643cc767a709479452ec13c0edabdd8c | Java | ohbaohba/progII | /src/thenewgame/TheNewGame.java | UTF-8 | 1,945 | 3.25 | 3 | [] | no_license | package thenewgame;
import java.awt.Color;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.RenderingHints;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JFrame;
import javax.swing.JPanel;
import j... | true |
0875c1ebf81d1f5def595ccaba749660952b16aa | Java | EvanTurtileMan/cscc43project | /mybnb_project/src/database/Search.java | UTF-8 | 6,399 | 3.140625 | 3 | [] | no_license | package database;
import java.sql.*;
import java.util.Scanner;
public class Search {
public void searchListings(Connection conn) {
try {
Statement stmt = conn.createStatement();
Scanner userInput = new Scanner(System.in);
System.out.println("You are currently using Search mode.");
System.o... | true |
b7de311c7ef8b0f953c2bd666a98e22e9f53b7a1 | Java | Vestory/leetcode | /217.存在重复元素.java | UTF-8 | 1,116 | 3.421875 | 3 | [] | no_license | import java.util.Arrays;
import java.util.HashMap;
/*
* @lc app=leetcode.cn id=217 lang=java
*
* [217] 存在重复元素
*/
// @lc code=start
class Solution {
/**
* 哈希表
* 18 / 18, 12ms(73.59%), 42.7MB(91.92%)
*/
// public boolean containsDuplicate(int[] nums) {
// HashMap<Integer, Integer> map ... | true |
850ff43e5a151157a0efe2695fa7dd552b2fc42b | Java | Ibehkennedyj/advent_of_code_2019 | /src/exception/PathNotImplementedException.java | UTF-8 | 83 | 1.5 | 2 | [] | no_license | package exception;
public class PathNotImplementedException extends Exception {
}
| true |
e54ebca51271abd49c90bd7cbe7b63731a4738cd | Java | opensource21/fuwesta | /fuwesta-core/src/main/java/de/ppi/fuwesta/spring/mvc/util/URLCleaner.java | UTF-8 | 630 | 2.8125 | 3 | [
"Apache-2.0"
] | permissive | package de.ppi.fuwesta.spring.mvc.util;
/**
* Helperclass which removes Regexps from Paramter definition. Class URLCleaner
*
*/
public class URLCleaner {
/**
* Initiates an object of type URLCleaner.
*/
private URLCleaner() {
// Utility-Class
}
/**
* Removes from an URL all ... | true |
de691dd224d8cb8f4d790cb2869f63c5f026fc4d | Java | mdsd-team-1/photos-metamodeling | /co.edu.unal.mdd.photos.tests/src/PhotosMetaModel/tests/Index_pTest.java | UTF-8 | 1,738 | 2.015625 | 2 | [
"MIT"
] | permissive | /**
*/
package PhotosMetaModel.tests;
import PhotosMetaModel.Index_p;
import PhotosMetaModel.PhotosMetaModelFactory;
import junit.framework.TestCase;
import junit.textui.TestRunner;
/**
* <!-- begin-user-doc -->
* A test case for the model object '<em><b>Index p</b></em>'.
* <!-- end-user-doc -->
* @generated
... | true |
513c4dc1823e544ee127cbdaf14605167cf6d4df | Java | hadomanh/treasure-hunt | /src/ngakinz/sort/SortAlgorithm.java | UTF-8 | 157 | 1.835938 | 2 | [
"MIT"
] | permissive | package ngakinz.sort;
import java.util.List;
import ngakinz.player.Player;
public interface SortAlgorithm {
public void sort(List<Player> players);
}
| true |
bd04d1e03111e245ab9486c74f7e44677b99ab13 | Java | josecordero2016/Foodi_srv | /src/java/Javarest/Pedido.java | UTF-8 | 6,790 | 1.984375 | 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 Javarest;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Basic;
imp... | true |
226dffcd19815e79ea251fef042882abcaf32245 | Java | AneebKhan/Mahall | /eHsthKhdmaat.Core/src/main/java/com/itf/phatbooskiandroid/models/uimodels/common/OTPSettings.java | UTF-8 | 447 | 1.828125 | 2 | [] | no_license | package com.itf.phatbooskiandroid.models.uimodels.common;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
/**
* Created by zahmed on 3/4/2018.
*/
public class OTPSettings {
@SerializedName("OTPType")
@Expose
private String oTPType;
public String getOT... | true |
2df244b2cde0a344f5e5e2a8bf9480d1f041b13a | Java | tdihsuh/dt-3.1-bj | /kunlun-logger/src/main/java/com/hansight/kunlun/collector/forwarder/parser/JSONLogParser.java | UTF-8 | 1,488 | 2.3125 | 2 | [] | no_license | package com.hansight.kunlun.collector.forwarder.parser;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONException;
import com.hansight.kunlun.collector.common.base.Lexer;
import com.hansight.kunlun.collector.common.exception.CollectorException;
import com.hansight.kunlun.collector.common.model.Event;... | true |
ffc5b83abef882118c31568fb5044a002674771a | Java | wuzh-git/JavaSpider-NIO-JUC | /src/com/kedian/juc/TestLock.java | UTF-8 | 1,537 | 3.65625 | 4 | [] | no_license | package com.kedian.juc;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReentrantLock;
/**
* @author wuzh
* @version V1.0
* @Package com.kedian.juc
* @Description:
* @date 2019/7/31
* * 一、用于解决多线程安全问题的方式:
* *
* * synchronized:隐式锁
* * 1. 同步代码块
* *
* * 2. 同步方法
* *
* * jdk 1.5 后:
*... | true |
5de5c42b3608e756148626e3353f6cd033586dd6 | Java | bhopahk/bJdaUtilities | /src/main/java/me/bhop/bjdautilities/command/response/DefaultCommandResponses.java | UTF-8 | 3,323 | 2.3125 | 2 | [
"MIT"
] | permissive | /*
* This file is part of bJdaUtilities, licensed under the MIT License.
*
* Copyright (c) 2019 bhop_ (Matt Worzala)
* Copyright (c) 2019 contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
... | true |
adc77051fcebe22103023b25558d982217dc90cb | Java | nekkantiravi/Testcucumber | /SolutionDevelopment/Ruby2Java/src/main/java/com/macys/sdt/projects/SolutionDevelopment/Ruby2Java/steps/website/mcom/DSVHighSevSteps.java | UTF-8 | 9,202 | 1.921875 | 2 | [] | no_license | package com.macys.sdt.projects.SolutionDevelopment.Ruby2Java.steps.website.mcom;
import com.macys.sdt.framework.exceptions.DataException;
import com.macys.sdt.framework.exceptions.EnvException;
import com.macys.sdt.framework.interactions.*;
import com.macys.sdt.framework.model.addresses.ProfileAddress;
import com.macy... | true |
8b0797138dadf57ecf34602d9b0846fcadf381f0 | Java | BruceZhang54110/zhw-free | /zhw-free-demo/src/main/java/com/zhw/free/zhwfreedemo/mapper/TOrderMapper.java | UTF-8 | 207 | 1.59375 | 2 | [] | no_license | package com.zhw.free.zhwfreedemo.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhw.free.zhwfreedemo.eneity.TOrder;
public interface TOrderMapper extends BaseMapper<TOrder> {
}
| true |
9d0a3ca4e9754e85c3060aa4a924abba5bda412d | Java | AmrutaKajrekar/ProgrammingConcepts | /leetcode/problems/dynamicProgramming/MaxRepeatedSubArray.java | UTF-8 | 1,613 | 3.6875 | 4 | [] | no_license | package problems.dynamicProgramming;
/**
* @author amruta.kajrekar on 4/25/18.
* leetcode problem # 718
*
* Given two integer arrays A and B, return the maximum length of an subarray that appears in both arrays.
Example 1:
Input:
A: [1,2,3,2,1]
B: [3,2,1,4,7]
Output: 3
Explanation:
The repeated subarray with maxim... | true |
008edc0d928b30e70b5ee38ea0abf8aaeb5c2d5b | Java | ankit969/CRMTest | /src/main/java/com/crm/qa/pages/HomePage.java | UTF-8 | 2,190 | 2.453125 | 2 | [] | no_license | package com.crm.qa.pages;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.support.CacheLookup;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
import com.crm.qa.base.TestBase;
public class HomePage extends T... | true |
e06dc222c958e4f9c62a1bbca7e45e091aa695a2 | Java | kaszym/ShopProject | /src/main/java/com/project/shop/Repositories/OrderRepository.java | UTF-8 | 646 | 2.09375 | 2 | [] | no_license | package com.project.shop.Repositories;
import com.project.shop.Entities.Order;
import com.project.shop.Enums.OrderStatus;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import java.util.List;
import java.util.Optional;
public interface OrderRepositor... | true |
34a65404d60fe242ce0f51eed1e6134cccc23bbb | Java | AutomationAnywhere/A2019-TrelloPackage-184897 | /src/main/java/Utils/HTTPRequest.java | UTF-8 | 2,582 | 2.40625 | 2 | [] | no_license | package Utils;
import okhttp3.*;
import org.apache.http.HttpEntity;
import java.io.FileOutputStream;
import org.apache.http.HttpResponse;
import org.apache.http.client.methods.CloseableHttpResponse;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache... | true |
000853fb18483d1051c436a7ea3952e506b26755 | Java | Lomazki/IT-Academy.Java_core | /src/by/it/doNotTouch/kondratev/jd01_15/TaskC.java | UTF-8 | 2,013 | 3.21875 | 3 | [] | no_license | package by.it.doNotTouch.kondratev.jd01_15;
import java.io.File;
import java.io.IOException;
import java.util.Date;
import java.util.Scanner;
class TaskC {
private static File file = new File(Helper.getPath(TaskC.class, ""));
public static void main(String[] args) {
Scanner scanner = new Scanner(Sys... | true |
2d6ca7fc3ca2c3548beac4cc2bd9b3e704251539 | Java | angiely1115/rongly-javaSE | /src/main/java/practice/chonggou/ChongGouDemo.java | UTF-8 | 1,581 | 3.421875 | 3 | [] | no_license | package practice.chonggou;
/**
* @Author: lvrongzhuan
* @Description:
* @Date: 2019/3/30 11:50
* @Version: 1.0
* modified by:
*/
public class ChongGouDemo {
/**
* 内联函数
*
* @return
*/
int getRating() {
int num = 0;
return moreThanFiveLateDeliveries(num) ? 2 : 1;
}... | true |
e7ecc60401b62fd4edca45a208d9cbc281a88387 | Java | wukele/seasjalor | /documentformwork/src/com/documentformwork/dao/impl/DocumentServiceImpl.java | UTF-8 | 2,896 | 2.28125 | 2 | [] | no_license | package com.documentformwork.dao.impl;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Iterator;
import java.util.List;
import javax.persistence.Temporal;
import net.sf.json.JSONArray;
import net.sf.json.JSO... | true |
fd49a43ba8081bb1f4d9af8e9be10db8fce3b8b8 | Java | paulduong222/development | /isuite-core-ui/src/main/java/gov/nwcg/isuite/core/rules/syscostrate/state/AbstractSysCostRateStateSaveRule.java | UTF-8 | 697 | 2.125 | 2 | [] | no_license | package gov.nwcg.isuite.core.rules.syscostrate.state;
import gov.nwcg.isuite.core.vo.SysCostRateStateVo;
import gov.nwcg.isuite.framework.core.rules.AbstractRule;
import org.springframework.context.ApplicationContext;
public class AbstractSysCostRateStateSaveRule extends AbstractRule {
protected SysCostRateStateVo ... | true |
122cb3e8ed300205861bfdf865e6b616ad48cc54 | Java | RiccardoMontei/Progetto-NerdBook | /NerdBook Riccardo Montei/src/java/Mods/Gruppi.java | UTF-8 | 2,181 | 2.65625 | 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 Mods;
/**
*
* @author Pc
*/
public class Gruppi {
private String nome;
private String descrizione;
... | true |
66a97208d9a3cb7c38cddfb04c2b0edf734d4162 | Java | shohilbagdai/automationDemo | /src/main/java/com/etsy/autoqa/page/HomePageElements.java | UTF-8 | 602 | 1.789063 | 2 | [] | no_license | package com.etsy.autoqa.page;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
/**
*
* @author Auto QA team
*
*/
public class HomePageElements extends PageElements{
@FindBy(id = "sign-in")
public WebElement singInButton;
@FindBy(id = "search-query")
public W... | true |