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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
84550165e0a1b798e0c305f7aa827b1b629a8748 | Java | alexshi1991/leetcode-practice | /LC077.java | UTF-8 | 795 | 3.5 | 4 | [] | no_license | /*
* Problem: https://leetcode.com/problems/combinations/
*
* Idea: backtracking
*/
public class Solution {
public List<List<Integer>> combine(int n, int k) {
List<List<Integer>> result = new ArrayList<>();
if (k < 1 || n < 1) return result;
findCombination(new ArrayList<Integer>(),... | true |
b40a11d42a2f5d3f78ddbec5658844312c1c6afc | Java | vespa-engine/vespa | /config-model/src/test/java/com/yahoo/schema/derived/ExportingTestCase.java | UTF-8 | 5,762 | 1.554688 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | // Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.schema.derived;
import com.yahoo.config.model.deploy.TestProperties;
import com.yahoo.schema.ApplicationBuilder;
import com.yahoo.schema.parser.ParseException;
import org.junit.jupiter.api.Test;
... | true |
0c735f2ad6c69e8522ca72a1cda0ac6ed28e34f1 | Java | ningcs/reservemq | /reserve-order-provider-service/src/main/java/com/example/demo/dao/OrderDao.java | UTF-8 | 195 | 1.625 | 2 | [] | no_license | package com.example.demo.dao;
import com.example.demo.dto.OrderInfo;
/**
* Created by ningcs on 2017/11/20.
*/
public interface OrderDao {
public void addOrder(OrderInfo orderInfo);
}
| true |
15884500b781efc620f90b9c97c96704c7ccd442 | Java | foolishboyGitHub/AikangHeath | /SpringBootDemo/src/main/java/com/aikang/Bean/SCLoginSuc.java | UTF-8 | 342 | 1.632813 | 2 | [] | no_license | package com.aikang.Bean;
import java.util.List;
public class SCLoginSuc {
private User user;
private List<PerUrl> pers;
public User getUser() {
return user;
}
public void setUser(User user) {
this.user = user;
}
public List<PerUrl> getPers() {
return pers;
}
public void setPers(List<PerUrl> pers) {
t... | true |
697f23ce1abfd24e887fbeac320b8e463fcf60e9 | Java | Clay-Ferguson/quantizr | /src/main/java/quanta/service/imports/ImportService.java | UTF-8 | 4,333 | 2.40625 | 2 | [
"MIT"
] | permissive | package quanta.service.imports;
import java.io.BufferedInputStream;
import org.apache.commons.io.input.AutoCloseInputStream;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
... | true |
0a322269668b852dd621f9fb4f625d9115814123 | Java | franciscommcunha/Distributed-Systems-2018 | /AfternoonRacesConcurrent/Monitors/Paddock.java | UTF-8 | 8,296 | 2.703125 | 3 | [] | no_license | package AfternoonRacesConcurrent.Monitors;
import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;
import AfternoonRacesConcurrent.Constants.Constants;
import AfternoonRacesConcurrent.Entities.Broker.BrokerInterfaces.IBroker_Paddock;
import AfternoonRacesConcurrent.Entities.Horse... | true |
4d1934a25d9d16c5349c65456088446b161c202b | Java | dhruva7676/MusicStore | /src/java/com/michalgoly/data/CustomerDB.java | UTF-8 | 2,464 | 3.296875 | 3 | [
"MIT"
] | permissive | package com.michalgoly.data;
import com.michalgoly.business.Customer;
import javax.persistence.EntityManager;
import javax.persistence.EntityTransaction;
import javax.persistence.TypedQuery;
/**
* This class can manipulate customer objects in the database
*
* @author Michal Goly
*/
public class CustomerDB {
/... | true |
2a466ada3fd636a42700922cef2122ef790b6419 | Java | ttomasini/TUM | /2016/android/Geofence/app/src/test/java/com/esrlabs/geofence/GeofenceAppTest.java | UTF-8 | 4,387 | 2.109375 | 2 | [] | no_license | package com.esrlabs.geofence;
import android.content.ComponentName;
import android.content.Context;
import android.location.Location;
import android.location.LocationManager;
import android.os.IBinder;
import android.os.RemoteException;
import com.esrlabs.headunitinterface.HeadUnit;
import junit.framework.TestCase;
... | true |
2f6d2db80a62b2286a5ce27b592b8070f675e242 | Java | mkuzmik/soa-javaee-labs | /lab3/lab3-apps/src/main/java/soa/mkuzmik/ex5/Movie.java | UTF-8 | 1,303 | 3.28125 | 3 | [] | no_license | package soa.mkuzmik.ex5;
import java.util.Arrays;
import java.util.List;
import java.util.stream.Collectors;
public class Movie {
private String title;
private String category;
private int year;
private int income;
public static List<Movie> example() {
return Arrays.stream(new Movie[] {
... | true |
640a4e27dcf57f81c5e7b6c369cf92ca5374025c | Java | novelrt/FumoCement | /src/main/java/com/github/novelrt/fumocement/HandleDeleter.java | UTF-8 | 466 | 2.125 | 2 | [
"LicenseRef-scancode-other-permissive",
"MIT"
] | permissive | // Copyright © Matt Jones and Contributors. Licensed under the MIT License (MIT). See LICENCE.md in the repository root for more information.
package com.github.novelrt.fumocement;
/**
* Cleans native resources using a given handle.
*/
@FunctionalInterface
public interface HandleDeleter {
/**
* Cleans any ... | true |
b06dab2ae52677c27fbd6858c27857cbc1c74915 | Java | NewYuanCarl/nyt | /SSM_TT/src/com/liu/biz/IUserBiz.java | UTF-8 | 127 | 1.570313 | 2 | [] | no_license | package com.liu.biz;
import com.liu.pojo.Users;
public interface IUserBiz {
public Users islogin(Users user);
}
| true |
38fd0e49c5ec0a7936204b089a039f7eddb38954 | Java | KidiH/edge-tpu-computation-visualizer | /src/main/java/com/google/sps/structures/IntervalTree.java | UTF-8 | 41,665 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | // The MIT License (MIT)
// Copyright (c) 2016 Mason M Lai
// 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, m... | true |
328242ed26c3f1532aa5dc7f94bf1726cb00aba3 | Java | perglervitek/TS1-codes | /ts1-hw03-selenium/src/main/java/cz/cvut/fel/ts1/pages/Article.java | UTF-8 | 1,151 | 2.5625 | 3 | [] | no_license | package cz.cvut.fel.ts1.pages;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.support.FindBy;
import org.openqa.selenium.support.PageFactory;
public class Article {
private WebDriver driver;
@FindBy(css = "h1")
private WebElement articleTitleText;
... | true |
411f185cd4278a6ff80954147088b7b65219ef7b | Java | ankeshkatiyar/worksplit-app-project | /src/main/java/com/worksplit/exceptions/UserAlreadyExistException.java | UTF-8 | 215 | 2.34375 | 2 | [] | no_license | package com.worksplit.exceptions;
public class UserAlreadyExistException extends RuntimeException {
public UserAlreadyExistException(String user) {
super(user + " already exist in the system");
}
}
| true |
d021e3605348535d695d7c71b3409dcd88176db4 | Java | chengjingming060241/bllc | /gizwits-lease-master/gizwits-lease-backend/src/test/java/com/gizwits/boot/gen/MpGenerator.java | UTF-8 | 4,063 | 2.046875 | 2 | [] | no_license | package com.gizwits.boot.gen;
import com.baomidou.mybatisplus.generator.config.DataSourceConfig;
import com.baomidou.mybatisplus.generator.config.converts.MySqlTypeConvert;
import com.baomidou.mybatisplus.generator.config.rules.DbColumnType;
import com.baomidou.mybatisplus.generator.config.rules.DbType;
import com.giz... | true |
b7f3e5946142ce3825633e30a5db7cb9e1bca024 | Java | tnducrocq/ufc | /app/src/main/java/fr/tnducrocq/ufc/presentation/CategoryActivity.java | UTF-8 | 3,646 | 2.046875 | 2 | [] | no_license | package fr.tnducrocq.ufc.presentation;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;
impo... | true |
099f65d9ce1da0882fbc4ab7ce7d4a2487f9e634 | Java | thwippp/InventorySystem | /src/Model/Part.java | UTF-8 | 2,089 | 2.875 | 3 | [] | no_license | package Model;
/**
*
* @author Brian Schaffeld
*/
public abstract class Part {
// Instance Variables
// Protected so that subclasses can use these variables
protected int partId;
protected String partName;
protected double partPrice;
protected int partStock;
protected int ... | true |
6a285ee6695d599c549e1d3fdf257d99ccfc22ef | Java | s9329/NewProjekt | /Projekt/src/main/java/PJWSTK/Projekt/PersonManager.java | UTF-8 | 498 | 2.546875 | 3 | [] | no_license | package PJWSTK.Projekt;
import java.util.List;
import PJWSTK.Projekt.PersonDB;
import PJWSTK.Projekt.PersonInterface;
public class PersonManager implements PersonInterface{
private Metody db = new Metody();
public boolean addPerson(PersonDB obj) {
return db.addPerson(obj);
}
public boolean removePerson(PersonDB ... | true |
9abc037345932b57c744f20b69d4c45fc5ccd89a | Java | honeyflyfish/com.tencent.mm | /src/com/tencent/mm/svg/a/a/ui.java | UTF-8 | 3,859 | 1.75 | 2 | [] | no_license | package com.tencent.mm.svg.a.a;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Cap;
import android.graphics.Paint.Join;
import android.graphics.Paint.Style;
import android.graphics.Path;
import android.os.Looper;
import com.tencent.mm.svg.WeChatSVGRenderC2Java;
import com.... | true |
60e5befe36da562e64a923a1f16cb819dd84af63 | Java | ymzyf2007/dragon-admin-mybatis | /dragon-admin-system/src/main/java/com/dragon/system/quartz/utils/ExecutionJob.java | UTF-8 | 7,266 | 1.96875 | 2 | [] | no_license | package com.dragon.system.quartz.utils;
import com.dragon.common.utils.SpringContextHolder;
import com.dragon.common.utils.ThrowableUtil;
import com.dragon.system.quartz.mapper.QuartzLogMapper;
import com.dragon.system.quartz.model.QuartzJobModel;
import com.dragon.system.quartz.model.QuartzLogModel;
import com.dragon... | true |
02f2eac6ea31e867b2732967bb03fc66a1739180 | Java | lucasserain/automato-generator-api | /src/main/java/com/serainlucas/apiautomatos/models/Simbolos.java | UTF-8 | 651 | 2.484375 | 2 | [] | no_license | package com.serainlucas.apiautomatos.models;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
@Setter
@Getter
@AllArgsConstructor
public class Simbolos {
private String name;
private String estado;
public void printaIfSimbolo() {
Arquivo.setTextos("\tif(f[p] == "+"'"+this.getName... | true |
410c9cdb0cd211ffae589711da88b96d8a2b27a2 | Java | semantic-conflicts/SemanticConflicts | /results/jsoup/3f7d2c71dbbbb289c684f339874eed8ac2747fa0/transformed/randoop_4/RegressionTest1.java | UTF-8 | 1,614,176 | 2.296875 | 2 | [] | no_license | import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.runners.MethodSorters;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class RegressionTest1 {
public static boolean debug = false;
@Test
public void test0501() throws Throwable {
if (debug)
System.out.forma... | true |
ac47e652773e1addc8423ad5fdf08ba144ebe955 | Java | svantu/testFramework | /src/main/java/CommonUtilities/Utilities.java | UTF-8 | 5,822 | 2.515625 | 3 | [] | no_license | package CommonUtilities;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.NoSuchElementException;
import java.util.Properties;
import java.util.Set;
import java.util.concurrent.TimeUnit;
import java.util.function.Function;
import or... | true |
84226714336f93b34737ea51d554ccf0da6eee5c | Java | tmathmeyer/email-calendar | /src/com/tmathmeyer/sentinel/ui/views/day/DayGridLabel.java | UTF-8 | 1,561 | 2.265625 | 2 | [] | no_license | /*******************************************************************************
* Copyright (c) 2013 WPI-Suite
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* htt... | true |
991deabb80c1ce1b3cb0c7d05d3f22357992c434 | Java | RokeAbbey/xinmiao-project | /src/cn/edu/zucc/test/Test10.java | UTF-8 | 1,121 | 2.734375 | 3 | [] | no_license | package cn.edu.zucc.test;
import java.io.DataOutputStream;
public class Test10 {
static Thread t = null;
public static void main(String[] args) {
t = new Thread(){
DataOutputStream o = null;
@Override
public void run(){
System.out.println("line 8");
try {
Thread.sleep(1000);
... | true |
8eb0217d917f823c38a7985fa2d5233812178d3d | Java | CrazyStriker/Longest-Line-In-Polygon | /src/main/java/algorithms/airport/Utility.java | UTF-8 | 3,790 | 3.5 | 4 | [] | no_license | package algorithms.airport;
import java.awt.geom.Line2D;
import java.awt.geom.Point2D;
public class Utility {
/**
* Calculates the angle from the src point to the destination point in degrees
*
* @param src src point
* @param dest dest point
* @return The angle in degrees
*/
pu... | true |
5d2a0ac6aaec7aabd2a4f809d6038bc263486e21 | Java | DSandi77/Final-Draft-DhruvSam | /src/ca_1/Movie.java | UTF-8 | 3,154 | 3.578125 | 4 | [] | no_license | package ca_1;
public class Movie {
private String title;
private int yearOfRelease;
private float runningTime;
private String genre;
private String plot;
// arrayList of actors in the movie
private ArrayList<Actor> actors;
private ArrayList<ActorWithMovie> characters;
public M... | true |
ec0a0c24bff7db8d5f55f566adb8d9ac9636fc27 | Java | a7217107/Leetcode | /xbj/src/Leetcode32.java | UTF-8 | 1,565 | 3.5625 | 4 | [] | no_license | import java.util.Stack;
/**
* 给定一个只包含 '(' 和 ')' 的字符串,找出最长的包含有效括号的子串的长度。
* <p>
* 示例 1:
* <p>
* 输入: "(()"
* 输出: 2
* 解释: 最长有效括号子串为 "()"
* 示例 2:
* <p>
* 输入: ")()())"
* 输出: 4
* 解释: 最长有效括号子串为 "()()"
* <p>
* 来源:力扣(LeetCode)
* 链接:https://leetcode-cn.com/problems/longest-valid-parentheses
* 著作权归领扣网络所有。商业转载请联系官方... | true |
cd64b3dc0453b66ddd065a7a374885e24c408e1b | Java | abbystasja/Kickstarter | /src/com/kickstarter/view/QuestionAndAnswerView.java | UTF-8 | 794 | 2.59375 | 3 | [] | no_license | package com.kickstarter.view;
import com.kickstarter.controller.QuestionAndAnswerController;
import com.kickstarter.entities.Payment;
import com.kickstarter.entities.QuestionAndAnswer;
/**
* Created by akulygina on 5/28/2015.
*/
public class QuestionAndAnswerView extends View<QuestionAndAnswerController> {
pub... | true |
a765e741428b6e8d1fd9d8f07af70b02d455295c | Java | cocori89/andriod_gitproject | /helloworld/app/src/main/java/androidhome/helloworld/NewActivity.java | UTF-8 | 1,822 | 2.75 | 3 | [] | no_license | package androidhome.helloworld;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.EditText;
import android.widget.Toast;
public class NewActivity extends AppCompatActivity {
/*전역 변수*/
... | true |
fd0d14702d7ccac02663c3832aff887570bed336 | Java | stubbsyy/GoogleTranslate | /MavenProject/src/main/framework/Driver.java | UTF-8 | 2,112 | 2.609375 | 3 | [] | no_license | import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class Driver {
WebDriver driver;
/*
* Constructor class for driver
*/
public Driver()
{
driv... | true |
d43ed7a3b5554dadba719bfe5a003b247dd0ef50 | Java | xloc/ubc-cpen502 | /src/cc/xloc/ubc502/activation/BipolarSigmoidActivation.java | UTF-8 | 459 | 2.53125 | 3 | [] | no_license | package cc.xloc.ubc502.activation;
public class BipolarSigmoidActivation implements SigmoidLikeActivation {
@Override
public double f(double x) {
return -1 + 2.0 / (1 + Math.exp(-x));
}
@Override
public double dfdx(double x) {
double y = -1 + 2.0 / (1 + Math.exp(-x));
retur... | true |
958209a3ec5bfac18099b92cf19d973cfab0b0d1 | Java | CountOn/JavaMail | /src/com/localhost/servlet/ResetPasswordServlet.java | UTF-8 | 2,834 | 2.4375 | 2 | [] | no_license | package com.localhost.servlet;
import java.io.IOException;
import java.sql.SQLException;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
im... | true |
502e26a1f4e432f350940c8c3ef6e8af16b3166f | Java | hannkeat/Appium | /src/com/automationlearning/Tutorial14.java | UTF-8 | 1,449 | 2.453125 | 2 | [] | no_license | /**
*
*/
package com.automationlearning;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.remote.DesiredCapabilities;
import io.appium.java_client.AppiumDriver;
import io.appium.java_client.MobileElement;
import io.appium.jav... | true |
efaa2dbf5e0b6db290cdcac5dc518337a1acc50e | Java | huanfion/Storeage-microservices | /storage-product/src/main/java/com/zegobird/product/entity/Productinfo.java | UTF-8 | 4,129 | 1.828125 | 2 | [] | no_license | package com.zegobird.product.entity;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
impo... | true |
1a422fc93d5a9702f9c1288f0517dda6cd87b95d | Java | DevikaS/gdam | /Core/src/com/adstream/automate/babylon/JsonObjects/ordering/enums/AdbankLevel.java | UTF-8 | 608 | 2.46875 | 2 | [] | no_license | package com.adstream.automate.babylon.JsonObjects.ordering.enums;
/**
* Created with IntelliJ IDEA.
* User: demidovskiy-r
* Date: 21.10.13
* Time: 13:12
*/
public enum AdbankLevel {
None(0, "None"),
AdbankLite(1, "Adbank Lite"),
AdbankStandard(2, "Adbank Standard"),
AdbankPlus(3, "Adba... | true |
b36738038d8b0b48abd7033f119dd1c2bb94578e | Java | fm00110/eclipse-pro | /myrabbit/src/main/java/com/ncu/util/ConnectionUtil.java | UTF-8 | 793 | 2.546875 | 3 | [] | no_license | package com.ncu.util;
import java.io.IOException;
import java.util.concurrent.TimeoutException;
import com.rabbitmq.client.Connection;
import com.rabbitmq.client.ConnectionFactory;
public class ConnectionUtil {
/**
*
* 获取MQ的连接
* @throws Exception
* @throws IOException
*
*/
public static Connecti... | true |
d4acd92c9fcf637b121f41db457408928f598ecb | Java | unknownME/RestAssured_me | /src/main/java/DynamicJson.java | UTF-8 | 1,053 | 2.265625 | 2 | [] | no_license | package main.java;
import files.PayLoad;
import files.ReusableMethods;
import io.restassured.RestAssured;
import io.restassured.path.json.JsonPath;
import io.restassured.response.Response;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import static io.restassured.RestAssured.given;
... | true |
1e781311d0d5c6ed0edf89eb3b3cf7b8620bb60f | Java | davidleen/TeamViewProject | /app/src/main/java/com/david/teamviewproject/MainActivity.java | UTF-8 | 856 | 2.03125 | 2 | [] | no_license | package com.david.teamviewproject;
import java.util.ArrayList;
import android.app.Activity;
import android.os.Bundle;
import android.widget.Toast;
import com.david.teamviewproject.TeamView.OnItemClickListener;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceSt... | true |
b2edd624d0c220becd47d866e92f1c752af5f9ea | Java | caspervg/aggr | /src/test/java/net/caspervg/aggr/worker/read/CsvAggrReaderTests.java | UTF-8 | 2,132 | 2.15625 | 2 | [
"MIT"
] | permissive | package net.caspervg.aggr.worker.read;
import com.google.common.collect.Iterables;
import net.caspervg.aggr.core.bean.Measurement;
import net.caspervg.aggr.ext.TimedGeoMeasurement;
import net.caspervg.aggr.core.util.AggrContext;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Test;
import java.io.B... | true |
5f0fc42ced07c0b25f5d5d0b6ffd38fe78974a41 | Java | mahayash315/NitechBBSrv | /app/models/response/api/bbanalyzer/ClassifyItemResponse.java | UTF-8 | 266 | 1.851563 | 2 | [] | no_license | package models.response.api.bbanalyzer;
public class ClassifyItemResponse extends BBAnalyzerResponse {
public Integer clazz;
public ClassifyItemResponse() {
super();
}
public ClassifyItemResponse(BBAnalyzerResponse base) {
super(base);
}
}
| true |
cd6ef16f855d7ba1724e9d66496060cab7803e18 | Java | fatcorn/demo | /sharddingsphere-demo/src/main/java/com/den/sdsdemo/service/impl/Table2ServiceImpl.java | UTF-8 | 1,410 | 2.140625 | 2 | [] | no_license | package com.den.sdsdemo.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.den.sdsdemo.entity.Table2;
import com.den.sdsdemo.mapper.Table2Mapper;
import com.den.sdsdemo.service.ITable2Service;
import org.springframework.stereotype.Service;
import java.util.Date;
import java.u... | true |
8dcf9e21cc9b1a96cdd3d060345ca2ecd5235eba | Java | RaayTorres/Coaching | /CoachingSpring/src/main/java/pdg/dto/mapper/TipoDocumentoMapper.java | UTF-8 | 3,231 | 2.125 | 2 | [] | no_license | package pdg.dto.mapper;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transact... | true |
9e3303f81ee697f46bd54df4e796d9486a91ec0c | Java | SunnyRan/LeetCodeOJ | /src/main/java/com/java/StreamTest.java | UTF-8 | 2,239 | 2.953125 | 3 | [] | no_license | package com.java;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
import java.util.concurrent.*;
/**
* @program: LeetCodeOJ
* @description:
* @author: Arnold
* @create: 2019-07-30 16:51
**/
public class StreamTest {
public static int round = 1000;
public ExecutorService execu... | true |
c735e423e03a7ddd3282092965d58d7248ee3048 | Java | Dr-wgy/hh | /mc-core/src/main/java/com/makenv/model/mc/core/config/UserDataDir.java | UTF-8 | 1,999 | 1.953125 | 2 | [] | no_license | package com.makenv.model.mc.core.config;
/**
* Created by wgy on 2017/2/28.
*/
public class UserDataDir {
private String dirPath;
private UserGeogrid geogrid;
private Globaldatasets globaldatasets;
private Griddesc griddesc;
private OceanFile ocean;
public String getDirPath() {
return dirPath;
}
... | true |
4335c2a9b59af5a04ed73b064adbc9225c41b457 | Java | sandormiko/gb-calculator | /src/main/java/com/gb/calculator/business/validation/CalculationValidator.java | UTF-8 | 3,457 | 2.625 | 3 | [] | no_license | package com.gb.calculator.business.validation;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.springframework.stereotype.Component;
import com.gb.calculator.business.dto.CalculationValidorInput;
import com.gb.calculator.business.resources.CalculatorMessageRes... | true |
c9e9bfbe6bd3880f900ebe8ac7f3bf194ce416a0 | Java | heaven6059/wms | /logistics-wms-city-1.1.3.44.5/logistics-wms-city-service/src/main/java/com/yougou/logistics/city/service/BillOmCheckWeightServiceImpl.java | UTF-8 | 763 | 1.90625 | 2 | [] | no_license | package com.yougou.logistics.city.service;
import com.yougou.logistics.base.dal.database.BaseCrudMapper;
import com.yougou.logistics.base.service.BaseCrudServiceImpl;
import com.yougou.logistics.city.dal.mapper.BillOmCheckWeightMapper;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;
/... | true |
c900a7a856211b47ea4c0f563e565e2569ab5c7f | Java | mathmferreira/Treinamento | /src/main/java/br/com/treinamento/ultracar/Treinamento/repositorios/impl/CustomizedMenuRepositoryImpl.java | UTF-8 | 775 | 2.09375 | 2 | [] | no_license | package br.com.treinamento.ultracar.Treinamento.repositorios.impl;
import java.util.HashMap;
import java.util.Map;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import br.com.treiname... | true |
5e0ea7da95df30a978c4b93e0fbe31524ee16950 | Java | emperwang/JavaBase | /LeeCode/src/main/java/com/wk/numer/SwapNumber.java | UTF-8 | 554 | 3.171875 | 3 | [] | no_license | package com.wk.numer;
/**
* @author: Sparks
* @Date: 2021/3/13 17:21
* @Description
*/
public class SwapNumber {
/*
不借助第三方变量 来交换两个变量的值
*/
public void swapPlus(int a, int b){
a += b;
b = a - b;
a = a - b;
}
public void swapMulti(int a, int b){
a = a * b;
... | true |
e69af87b1f9f79169db8850e1274dc9e3761ed17 | Java | BenZeher/SMCP | /ServiceManager/src/smfa/FATransactionListSelect.java | UTF-8 | 12,633 | 1.671875 | 2 | [] | no_license | package smfa;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Calendar;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRespo... | true |
b542f111fa1ad4d262fe0510c143dddfe36a6468 | Java | 1803023737/pyg_parent | /clouddemo/bootdemo512/src/main/java/com/importdemo2/MyImportBeanDefinitionRegistrar.java | UTF-8 | 865 | 2.21875 | 2 | [] | no_license | package com.importdemo2;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.beans.factory.support.BeanDefinitionBuilder;
import org.springframework.beans.factory.support.BeanDefinitionRegistry;
import org.springframework.context.annotation.ImportBeanDefinitionRegistrar;
import o... | true |
cee59beafaf84ec371d02dfe017460c1a04a8f3e | Java | JesusPatate/HADL | /fr.univnantes.alma.hadl.m2/src/fr/univnantes/alma/hadl/m2/component/AtomicComponent.java | UTF-8 | 357 | 1.976563 | 2 | [] | no_license | package fr.univnantes.alma.hadl.m2.component;
import fr.univnantes.alma.hadl.m2.configuration.ComponentConfiguration;
public abstract class AtomicComponent extends Component {
public AtomicComponent(final String label, ComponentConfiguration composite) {
super(label, composite);
}
public AtomicComponent(final ... | true |
946920b9e7d04d30842fda624016931737492518 | Java | histnat/mithraFamilly | /portail famille/workspaceMaquette/toolbox/src/test/java/net/mithra/toolbox/io/ReplaceFilterInputStreamTest.java | UTF-8 | 7,900 | 2.703125 | 3 | [] | no_license | package net.mithra.toolbox.io;
import static org.junit.Assert.assertArrayEquals;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import org.junit.Ignore;
im... | true |
d9a2801fe3537760a6f1674856fc12446de36296 | Java | ctt-gob-es/jmulticard | /jmulticard/src/main/java/es/gob/jmulticard/card/dnie/ceressc/CeresSc.java | UTF-8 | 15,612 | 1.59375 | 2 | [] | no_license | package es.gob.jmulticard.card.dnie.ceressc;
import java.io.IOException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import java.security.interfaces.RSAPublicKey;
import java.util.LinkedHashMap;
import java.util.Map;
import javax.security.auth.callback.CallbackH... | true |
b9b7348321524ea01912d44eb74ecaf22409945b | Java | ebizon/mofluid-community-android | /moFluid/src/main/java/com/ebizon/fluid/model/ShoppingCart.java | UTF-8 | 5,156 | 2.28125 | 2 | [] | no_license | package com.ebizon.fluid.model;
import android.util.Log;
import com.mofluid.magento2.database.MyDataBaseAdapter;
import com.mofluid.magento2.fragment.BaseFragment;
import com.mofluid.magento2.fragment.MyCartFragment;
import com.mofluid.magento2.fragment.SimpleProductFragment2;
import com.mofluid.magento2.service.AppC... | true |
b69b5b9caf46f8906dbdf0362e0355f1b0763938 | Java | peacememories/reactivision | /src/main/java/agents/Agent.java | UTF-8 | 4,367 | 2.96875 | 3 | [] | no_license | package agents; /**
* Created by moru on 5/26/2015.
*/
import facilities.Facility;
import facilities.FacilityType;
import processing.core.PVector;
import stores.FacilitiesStore;
import util.Conf;
import java.util.HashMap;
import java.util.Map;
import java.util.Random;
public class Agent {
private Random random;... | true |
06f67630be0e1580f46d49a1ec16612847ce876f | Java | llaith/atlas-dropwizard-microservice-bootstrap | /atlas-helloworld/atlas-helloworld-microservice/src/test/java/tkt/atlas/helloworld/service/HelloWorldAsyncServiceTest.java | UTF-8 | 1,979 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | package tkt.atlas.helloworld.service;
import org.junit.Before;
import org.junit.Test;
import tkt.atlas.helloworld.api.HelloWorldAsyncService;
import tkt.atlas.helloworld.api.domain.Person;
import java.util.Date;
import static org.junit.Assert.*;
import static tkt.util.ObservableUtil.firstFrom;
import static tkt.util... | true |
39d53b715758b58d82921672e85de5ee3a5d28ab | Java | ShinhwanKim/ArchiWebstream | /app/src/main/java/com/example/webstream/HttpConnection.java | UTF-8 | 13,527 | 2.421875 | 2 | [] | no_license | package com.example.webstream;
import android.util.Log;
import okhttp3.Callback;
import okhttp3.FormBody;
import okhttp3.OkHttpClient;
import okhttp3.Request;
import okhttp3.RequestBody;
public class HttpConnection {
private OkHttpClient client;
private static HttpConnection instance = new HttpConnection();... | true |
0690afcc35110bfc8fc9aaa8931b86066325e3f6 | Java | jshvarts/ShoppingList | /app/src/main/java/com/jshvarts/shoppinglist/di/AppModule.java | UTF-8 | 1,030 | 2.140625 | 2 | [] | no_license | package com.jshvarts.shoppinglist.di;
import android.app.Application;
import android.content.Context;
import com.jshvarts.shoppinglist.App;
import com.jshvarts.shoppinglist.common.domain.model.ShoppingListDataHelper;
import com.jshvarts.shoppinglist.common.domain.model.firebase.FirebaseShoppingListRepository;
import... | true |
d17fe86c5ff6ae0a06d5801ee702a726afe1f5f5 | Java | RyanTech/pps_android | /Jiangqq_NewPractice/src/com/pps/utils/ZipToFile.java | UTF-8 | 5,710 | 3 | 3 | [] | no_license | package com.pps.utils;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.zip.ZipEntry;
import java.util.zip.ZipException;
import java.util.zip.ZipFile;
import java.util.zip.ZipInputStream;
/**
* 解压ZIP压缩文件到指定的目录
* @author jia... | true |
1bb37570e1bb589f21a2b41ed8bcc09872f4f28b | Java | Nuglib/leyou | /leyou-item/leyou-item-interface/src/main/java/com/leyou/item/bo/SpuBo.java | UTF-8 | 515 | 2 | 2 | [] | no_license | package com.leyou.item.bo;
import com.leyou.item.pojo.Spu;
/**
* @Author:jesse
* @Description:
* @Date:Create in 21:38 2018/10/24
* @Modified By:
*/
public class SpuBo extends Spu {
private String cname;
private String bname;
public String getCname() {
return cname;
}
public void se... | true |
0d51bc6eb92163c6d1fff12d8e8b575256a15696 | Java | Lifesorted/Grestapi | /src/test/java/com/Gorest/Test/CreateUserApiTest.java | UTF-8 | 4,080 | 2.046875 | 2 | [] | no_license | package com.Gorest.Test;
import java.util.HashMap;
import java.util.Map;
import org.hamcrest.core.IsEqual;
import org.json.simple.JSONObject;
import org.testng.Assert;
import org.testng.annotations.Test;
import com.Gorest.Base.BaseClass;
import com.Gorest.apiConfig.APIPath;
import com.Gorest.apiConfig.HeaderConfig;
imp... | true |
16708ef2794dbdbd40c589e0ec422b01c3330fcb | Java | violetbp/NausicaaMod | /src/main/java/mcp/mobius/waila/api/IWailaDataAccessor.java | UTF-8 | 864 | 1.984375 | 2 | [
"WTFPL",
"MIT"
] | permissive | package mcp.mobius.waila.api;
import net.minecraft.block.Block;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.util.MovingObjectPosition;
import net.minecraft.util.Vec3;
import net.minecraft.world.World;
import ... | true |
894126899b824d2fba9bb6651d72b4591d8c8fd6 | Java | ntcarter/ARAMAPP | /ARAMAPP2/src/project/WriteFile.java | UTF-8 | 618 | 2.34375 | 2 | [] | no_license | package project;
import org.json.JSONArray;
import org.json.JSONObject;
import java.io.FileWriter;
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;
public class WriteFile {
public void WriteJSONFile(JSONObject obj) {
try {
JSONObject jsonObje... | true |
131adb904a57c1a8447528cb50397e4620e92a3d | Java | neiky/udp-com | /src/main/java/de/neiky/udp/UdpReceiver.java | UTF-8 | 4,873 | 3.390625 | 3 | [] | no_license | package de.neiky.udp;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;
import java.net.SocketException;
import java.net.UnknownHostException;
/**
* A UdpReceiver class built to receive UDP messages.
*
* @author Michael Neike
*/
... | true |
c1d0e8b9ac605c66a4420fb4ecab096136e43938 | Java | flymoon123/repo1 | /Fulei/src/Father.java | UTF-8 | 167 | 2.890625 | 3 | [] | no_license |
public class Father {
private String name = "zhangjun";
class Child {
public void introFather() {
System.out.println("My Father's name is " + name);
}
}
}
| true |
6385cb250c88504cbb2289cd804a44ba3e2b1826 | Java | bazelbuild/bazel | /src/main/java/com/google/devtools/build/lib/rules/cpp/CcNativeLibraryInfo.java | UTF-8 | 3,701 | 1.84375 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2014 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... | true |
60e1d8c057dc680f4f17754715c0f8e6f2ec365b | Java | wuziliang18/springlearn | /spirngboot/src/main/java/com/wuzl/learn/spring/boot/service/CompanyService.java | UTF-8 | 259 | 2.125 | 2 | [] | no_license | package com.wuzl.learn.spring.boot.service;
import org.springframework.stereotype.Service;
@Service
public class CompanyService {
public String getByName(String name) {
System.out.println("CompanyService getByName");
return name + "有限公司";
}
}
| true |
fa571281d3876eb39812769c60acf31d370f9775 | Java | Cuscatlan/Renta | /src/main/java/net/cuscatlan/controller/RentpersonaController.java | UTF-8 | 5,006 | 1.75 | 2 | [] | no_license | package net.cuscatlan.controller;
import java.util.List;
import net.cuscatlan.common.ObjectUtils;
import net.cuscatlan.common.JqgridFilter;
import net.cuscatlan.common.JqgridResponse;
import net.cuscatlan.domain.Rentpersona;
import net.cuscatlan.repository.RentpersonaRepository;
import net.cuscatlan.poi.LayOutDynamic... | true |
d487cc5c0968d5416b420d3174580b954874be64 | Java | lixiawss/fd-j | /feidao-service-workflow/src/main/java/com/feidao/platform/service/workflow/query/VariablesQueryResultMapper.java | UTF-8 | 3,431 | 2.6875 | 3 | [] | no_license | package com.feidao.platform.service.workflow.query;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.dashbuilder.dataset.DataColumn;
import org.dashbuilder.dataset.DataSet;
import org.jbpm.services.api.query.QueryResultMapper;
/**
* 带参数型查询结果组装器,组装数据时,相同主键... | true |
c7d53817aa1e1374a8fcfd6cc0672ef5239cb731 | Java | serdaralkancode/java-features-examples | /src/main/java/tr/salkan/code/java/pure/examples/complexity/QuadraticTimeComplexity.java | UTF-8 | 1,088 | 3.765625 | 4 | [] | no_license | package tr.salkan.code.java.pure.examples.complexity;
public class QuadraticTimeComplexity {
/*
- O(n²)
- Examples
Bubble Sort
Insertion Sort
Selection Sort
Traversing a simple 2D array
*/
// Bubble... | true |
75bb300ccaab1734115d013834e954593bc4673e | Java | logidasakthi/demo | /Arm.java | UTF-8 | 391 | 3.3125 | 3 | [] | no_license | import java.util.*;
class Arm{
public static void main(String args[]){
Scanner s=new Scanner(System.in);
int n;
int x,y;
int sum=0;
System.out.println("enter the number");
n=s.nextInt();
y=n;
while(n>0)
{
x=n%10;
sum=sum+(x*x*x);
n=n/10;
}
if(y==sum)
{
System.out.println("the no. is armstrong");
}... | true |
9d223daa0037e1469e22c77f541a4dede0fcbb5b | Java | IsmaelVaz/ChinaeCia | /Backup-China e CIA/restaurantechinaecia/src/br/com/restaurantechinaecia/controller/BorderFuncionarioController.java | UTF-8 | 1,143 | 2.21875 | 2 | [] | no_license | package br.com.restaurantechinaecia.controller;
import java.net.URL;
import java.util.ResourceBundle;
import br.com.restaurantechinaecia.view.MainChinaCia;
import javafx.fxml.*;
import javafx.scene.control.MenuItem;
public class BorderFuncionarioController implements Initializable{
@FXML
MenuItem itemCod... | true |
0c974762e84c3d7328fa37b3b65b00a2946e3a61 | Java | azmym/Codility | /java/string/jewelsAndStones/Solution2.java | UTF-8 | 301 | 2.890625 | 3 | [] | no_license | package string.jewelsAndStones;
public class Solution2 {
public int numJewelsInStones(String jewels, String stones) {
int result= 0;
for(char stone : stones.toCharArray()){
if (jewels.contains(String.valueOf(stone))) result++;
}
return result;
}
}
| true |
133e4b71136afb3b191d84439c58be59555e8710 | Java | Shaz-Set/WeddingAppSpringboot | /src/main/java/com/yalda/WeddingAppSpringboot/service/WeddingPackagesService.java | UTF-8 | 965 | 2.25 | 2 | [] | no_license | package com.yalda.WeddingAppSpringboot.service;
import com.yalda.WeddingAppSpringboot.model.AddOn;
import com.yalda.WeddingAppSpringboot.model.DrinkPackage;
import com.yalda.WeddingAppSpringboot.model.WeddingPackage;
import java.util.List;
public interface WeddingPackagesService {
//get
List<WeddingPackage... | true |
c00be794fa824b447ed7b80e36c8cefd95a7d6fb | Java | babolat22/cotorras | /3ra Parte/Exepciones1/src/exepciones1/Try4.java | UTF-8 | 1,119 | 3.21875 | 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 exepciones1;
public class Try4
{
public static void main(String arg[])
{
int [] arra... | true |
0c2314e9f745ce32a2fcdc1421014145b22ab875 | Java | bangx2e/MVC07 | /src/kr/bit/controller/MemberListController.java | UTF-8 | 813 | 2.46875 | 2 | [] | no_license | package kr.bit.controller;
import java.io.IOException;
import java.util.List;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import kr.bit.model.MemberDAO;
import kr.bit.model.MemberVO;
public class MemberListController... | true |
0c54e38a23640ba836385898d07a42c94d225f25 | Java | jzaoralek/Swimming-Club-Bohumin | /ruian-client/src/main/java/com/sportologic/ruianclient/model/RuianStreetResponse.java | UTF-8 | 355 | 2.3125 | 2 | [] | no_license | package com.sportologic.ruianclient.model;
import java.util.List;
public class RuianStreetResponse {
private List<RuianStreet> data;
public List<RuianStreet> getData() {
return data;
}
public void setData(List<RuianStreet> data) {
this.data = data;
}
@Override
public String toString() {
return "Ruia... | true |
e2f5b4e77db99b3199d105782b2fd01f89d1b78e | Java | busgo/fc | /fc-biz/src/main/java/com/busgo/fc/biz/spider/AbstractSpider.java | UTF-8 | 1,931 | 2.375 | 2 | [] | no_license | package com.busgo.fc.biz.spider;
import com.busgo.fc.biz.component.HouseComponent;
import com.busgo.fc.inner.dao.HouseDao;
import com.busgo.fc.inner.model.House;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.Colle... | true |
ed4de4cbd8e65396e3724634b59e38f4e7f216c9 | Java | alexAvizhen/ClinicServer | /src/main/java/com/bsuir/lagunovskaya/clinic/server/dao/DoctorDAO.java | UTF-8 | 422 | 2.109375 | 2 | [] | no_license | package com.bsuir.lagunovskaya.clinic.server.dao;
import com.bsuir.lagunovskaya.clinic.communication.entity.Doctor;
import java.util.Collection;
public interface DoctorDAO {
Doctor getDoctorById(Integer id);
Doctor getDoctorByLogin(String login);
Doctor createDoctor(Doctor doctor);
void updateDoct... | true |
e64504c81ca5af4cd8f7ca9462c4ecd3ae695d65 | Java | djimenezc/logtrust | /task1/src/main/java/com/djimenezc/service/util/TimeUtil.java | UTF-8 | 1,349 | 3.1875 | 3 | [] | no_license | package com.djimenezc.service.util;
import java.util.Calendar;
import java.util.Date;
import java.util.Random;
/**
* Class to manage timestamps and dates
* Created by david on 10/07/2016.
*/
public class TimeUtil {
/**
* Return a random date since 2012 to nowadays
* @return random date
*/
p... | true |
df6c2e1de18470d2397f3998f0511154c80f32fd | Java | cha63506/CompSecurity | /pinterest_source/src/com/pinterest/api/igresponse/IgPinFeedResponse.java | UTF-8 | 6,759 | 1.765625 | 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.pinterest.api.igresponse;
import com.pinterest.api.ApiResponse;
import com.pinterest.api.igmodel.IgPin;
import com.pinterest.api.mod... | true |
3b48915e6bff66ef0ade09ef13e775dbde2006a0 | Java | SeongGwon2608/programmerscoding | /CodingTest/src/programmers_Lv2/MaxMin.java | UTF-8 | 767 | 3.546875 | 4 | [] | no_license | //문제명 : 최대값과 최소값(연습문제)
//난이도 : Lv2
//해결일 : 20.08.24
//블로그 : O
package programmers_Lv2;
import java.util.Arrays;
public class MaxMin {
public static void main(String[] args) {
String s = "1 2 3 4";
String s2 = "-1 -2 -3 -4";
String answer = solution(s2);
System.out.println("answer : " + answer);
}
p... | true |
19ac22b805c34e57db06e6dabff7b7bcc457c8f5 | Java | nugrohosam/springregion | /src/main/java/com/nugrohosamiyono/springregion/Validations/State/StateShouldbeExists.java | UTF-8 | 1,395 | 2.1875 | 2 | [] | no_license | package com.nugrohosamiyono.springregion.Validations.State;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validati... | true |
c12592a7f9a0b92651c4cad302c26d530a570379 | Java | javierbarbe/rojo | /listasLibroLuisJose/rehechosListasDiccionarios/Ej9CartasordenadasSinRepetir.java | ISO-8859-2 | 249 | 1.515625 | 2 | [] | no_license | package rehechosListasDiccionarios;
public class Ej9CartasordenadasSinRepetir {
public static void main(String[] args) {
// TODO Apndice de mtodo generado automticamente
for( int i = 0; i<10;i++) {
}
}
}
| true |
02eca37ba2b2de0e046e8713c46ff87a5f80bd26 | Java | Braslynrr/Aerolinea | /src/main/java/aerolinea/presentacion/añadirmetododepago/AñadirPagoController.java | UTF-8 | 1,501 | 2.265625 | 2 | [] | no_license | package aerolinea.presentacion.añadirmetododepago;
import aerolinea.data.MetodoPagoDao;
import aerolinea.logic.MetodoPago;
import aerolinea.logic.Modelo;
import aerolinea.presentacion.pago.PagoController;
public class AñadirPagoController {
AñadirPagoView view;
AñadirPagoModel model;
PagoController pcont... | true |
bea277b9daa3cf7d9b3bfdd3f3097680543b154f | Java | aotdevelopments/HeadPod | /Headpodv1.0BUENA/app/src/main/java/com/siestasystemheadpod/headpodv10/adicionales/informe/MySurfaceView.java | UTF-8 | 4,159 | 2.484375 | 2 | [] | no_license | package com.siestasystemheadpod.headpodv10.adicionales.informe;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.Surf... | true |
b387e1c193a559b24aa743d592d1ba5bb8e44726 | Java | CaoBing0824/docker_images_test | /src/main/java/com/xy/boot/open/model/params/PubInfoAcceptanceConfirmParam.java | UTF-8 | 337 | 1.71875 | 2 | [] | no_license | package com.xy.boot.open.model.params;
import lombok.Data;
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import java.util.List;
@Data
public class PubInfoAcceptanceConfirmParam {
/**
* 公众号验收确认信息
*/
@Valid
private List<PubInfoConfirmParam> pubInfoConfirmInfos;
}
| true |
da6b6d6a63dbc53ae2d68c7930ba180729452c15 | Java | Skynet-Jacopo/Freekick | /app/src/main/java/com/football/freekick/beans/JoinMatch.java | UTF-8 | 3,374 | 2.171875 | 2 | [] | no_license | package com.football.freekick.beans;
import com.google.gson.annotations.SerializedName;
/**
* Created by ly on 2017/11/30.
*/
public class JoinMatch {
/**
* join_match : {"id":1,"match_id":1,"join_team_id":2,"cancel_at_by_join":null,"deleted_at":null,
* "created_at":"2017-09-28T10:43:56.000Z","updat... | true |
6de23b6d22226386b7ee83b05e2e2851a4e727b3 | Java | ViniciusMAlves/Show | /Zoologico/src/br/com/vinicius/objeto/Zoologico.java | UTF-8 | 904 | 2.84375 | 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 br.com.vinicius.objeto;
import java.util.ArrayList;
/**
*
* @author SATC
*/
public class Zoologico {
p... | true |
13890237ed4cd58d01024955cfcb87e59c59aaa9 | Java | jhmarryme/JavaBasicLearning | /comprehensivePractice/src/main/java/reading/offer/tree/TreeNode.java | UTF-8 | 209 | 2.109375 | 2 | [] | no_license | package reading.offer.tree;
/**
* @author jhmarryme.cn
* @date 2019/9/6 13:28
*/
public class TreeNode {
int val;
TreeNode left;
TreeNode right;
TreeNode(int x) {
val = x;
}
}
| true |
c31136b4bc049afd79dc1e977477db216ac63645 | Java | qinshijia/BaseProject | /app/src/main/java/com/qinshijia/baseproject/util/LogUtil.java | UTF-8 | 2,792 | 2.71875 | 3 | [] | no_license | package com.qinshijia.baseproject.util;
import android.text.TextUtils;
import android.util.Log;
import io.reactivex.annotations.NonNull;
import io.reactivex.annotations.Nullable;
/**
* 日志输出工具
*/
public class LogUtil {
public static final boolean SHOW_LOG = true;
private static final int METHOD_OFFSET = 3... | true |
44899e3c41255dfa82b3f720498dc79749412f70 | Java | Danka06-beep/work3-2.1 | /company/FromOverduedBookMover.java | UTF-8 | 357 | 2.90625 | 3 | [] | no_license | package company;
public class FromOverduedBookMover extends BookMover{
protected void moveToStatus(Book book, Status requestedStatus) {
if (book.getStatus() == Status.BORROWED) {
book.setStatus(requestedStatus);
System.out.println(String.format("Запрос %s, обаботан", book.getStatus(... | true |
3616ffdf5c6bb1bfc9e073c23b05fdb3f9f330b2 | Java | simundi/spring-multimodules | /sm-repositories/src/main/java/com/simundi/multimodules/repositories/UserRepository.java | UTF-8 | 242 | 1.53125 | 2 | [] | no_license | package com.simundi.multimodules.repositories;
import com.simundi.multimodules.repositories.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
public interface UserRepository extends JpaRepository<User, Integer> {
}
| true |
00438203733b44bbcdebe59bd027a257bf3cdb60 | Java | LarryGaitanRodriguez/MovieFinderApplicationCSCI | /DBProject/src/ReadDBProperties.java | UTF-8 | 1,494 | 3.171875 | 3 | [] | no_license | import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Properties;
//************************************************************************************
// ReadProperties.java Created By: Larry Gaitan-Rodriguez Date: 11/24/2020
... | true |
c86d720d1bb685c2b3e3292a82dfccae18c3961e | Java | ns-bruno/SAVARE | /app/src/main/java/com/savare/funcoes/rotinas/ImportarDadosTxtRotinas.java | UTF-8 | 127,735 | 1.601563 | 2 | [] | no_license | package com.savare.funcoes.rotinas;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.sql.Blob;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Locale;
import java.util.Scanner;
import android.app.Activity;
import android.app.Not... | true |
2bf4705c1ecee53de9add3e853523b49ec77efe2 | Java | JetBrains/intellij-community | /plugins/testng_rt/src/com/intellij/rt/testng/IDEATestNGTestListener.java | UTF-8 | 1,255 | 1.875 | 2 | [
"Apache-2.0"
] | permissive | // Copyright 2000-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
package com.intellij.rt.testng;
import org.testng.ITestContext;
import org.testng.ITestListener;
import org.testng.ITestResult;
public class IDEATestNGTestListener implements IT... | true |
43150874ee9474d4364a048128c88833e5865e5d | Java | 123123ll/demos | /demo/src/main/java/com/example/demo/bytes.java | UTF-8 | 2,188 | 3.234375 | 3 | [] | no_license | package com.example.demo;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Arrays;
/**
* @ClassName: bytetest
* @Description: 二进制存储传输
* @Author: liu
* @Date: 2021/7/13 17:11
*/
public class bytes {
public static void main(String[] args) throws IOEx... | true |
d255974e3b93186db17e0863ed137dbb66ef12ee | Java | Jeong-hyein/yedam2020 | /HelloWorld/src/com/yedam/jhi/classes/Student.java | UTF-8 | 2,695 | 4 | 4 | [] | no_license | package com.yedam.jhi.classes;
//객체는 자바로 표현하는 모든 것?
//객체를 표현하는거: class
//붕어빵틀: class 붕어빵:instance
//class: 필드, 생성자, 메소드는 있어야한다.
public class Student {
// class의 속성이고 필드라고 한다.
// private: 보안을 위해서 사용, 외부로부터 숨긴다 -> 생성자or메소드로 접근
// private: get,set을 사용하려면 붙인다. 필드값에 직접접근 못 하도록
private String name;
private int ... | true |
9061f71cbdcec41369d308073ca8247a9f1988c4 | Java | Allenql/appinfo_sys | /src/main/java/com/sust/appinfo/service/backend/BackendUserService.java | UTF-8 | 572 | 1.96875 | 2 | [] | no_license | package com.sust.appinfo.service.backend;
import com.sust.appinfo.pojo.BackendUser;
public interface BackendUserService {
/**
* 用户登录
* @param userCode
* @param userPassword
* @return
*/
public BackendUser login(String userCode, String userPassword) throws Exception;
public boolean checkPassword(int id, ... | true |