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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
351cf6485ce9eab2ca0980ccf0fa17e207f70363 | Java | sudeepcv/spring-Mvc-JPA-Hibenate-Jersey-web-service | /src/main/java/orgProfiles/repository/CommentsRepository.java | UTF-8 | 366 | 1.84375 | 2 | [] | no_license | package orgProfiles.repository;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import orgProfiles.model.Comments;
@Repository("commentsRepository")
public interface CommentsRepository extends JpaRepository<Comments,Long> {
Lis... | true |
6d6cd37b995347b7b4e3ad281257226b96cefb4a | Java | ktrof/microservice-practice | /customer/src/main/java/customer/service/SendMessageService.java | UTF-8 | 703 | 2.265625 | 2 | [] | no_license | package customer.service;
import customer.model.Order;
import customer.producer.CustomerMQProducer;
import org.camunda.bpm.engine.delegate.DelegateExecution;
import org.camunda.bpm.engine.delegate.JavaDelegate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service... | true |
6edea0a910a698e0bd5c164fac8ad6ec611ddb45 | Java | zengyijava/shaoguang | /emp_7.3/emp/ptjk/com/montnets/emp/entity/monitor/LfMonDGateBuf.java | UTF-8 | 4,026 | 1.820313 | 2 | [] | no_license | package com.montnets.emp.entity.monitor;
import java.sql.Timestamp;
public class LfMonDGateBuf {
private Integer rptsdwaitbuf;
private Integer mosdbuf;
private Integer rptsdbuf;
private Integer mtupdbuf;
private Integer mtsdbuf;
private Timestamp updatetime;
private Long proceid;
private Integer mosdwa... | true |
da45f77b4794ca4aa500351ba78c112ad7fe4c90 | Java | michiganhackers/Ctools-Native-Android | /app/src/main/java/org/michiganhackers/ctools/HttpGETTask.java | UTF-8 | 1,991 | 2.65625 | 3 | [
"MIT"
] | permissive | package org.michiganhackers.ctools;
import android.os.AsyncTask;
import android.util.Log;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Ar... | true |
04f74aae948afda9217d01a16af0f9a002679e66 | Java | green-fox-academy/accenture-reboarding | /reservation/src/main/java/academy/greenfox/reboarding/error/ErrorConfig.java | UTF-8 | 372 | 1.75 | 2 | [] | no_license | package academy.greenfox.reboarding.error;
import org.springframework.boot.web.servlet.error.ErrorAttributes;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class ErrorConfig {
@Bean
public ErrorAttributes errorAttributes() {... | true |
f068e3072545a5e3ffc6a1f00b044fb1e7fc9914 | Java | shivanshugupta7/practice-it-solutions | /chapter-4/longestName.java | UTF-8 | 1,119 | 4.1875 | 4 | [] | no_license | /*
* Write a static method named longestName that reads names typed by the user
* and prints the longest name (the name that contains the most characters).
* Your method should accept a console Scanner and an integer n as parameters
* and should then prompt for n names.
*/
public static void longestName(Scanner con... | true |
6f428dde85369844fe45f647e146b00c2b578a40 | Java | ateamwpi/HospitalKiosk | /src/controllers/PopupView/TextboxAlertViewController.java | UTF-8 | 2,668 | 2.421875 | 2 | [] | no_license | package controllers.PopupView;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXComboBox;
import com.jfoenix.controls.JFXPopup;
import com.jfoenix.controls.JFXTextField;
import controllers.AbstractController;
import core.KioskMain;
import core.Utils;
import javafx.event.ActionEvent;
import javafx.... | true |
8666d25091aeec72b601dd33137708d25e984cbc | Java | joyprograms/ContactsDesktop | /src/sample/Contact.java | UTF-8 | 601 | 2.90625 | 3 | [] | no_license | package sample;
/**
* Created by meekinsworks on 8/15/16.
*/
public class Contact {
String name;
String phone;
String email;
public Contact(String name, String phone, String email) {
this.name = name;
this.phone = phone;
this.email = email;
}
public Contact() {
... | true |
e869723fa177b038093f1003f554ded4ca52871b | Java | vamsiannem/EmergeServices | /src/main/java/com/lister/esb/MailchimpWrapper/CampaignMembersResultMethod.java | UTF-8 | 478 | 1.640625 | 2 | [] | no_license | package com.lister.esb.MailchimpWrapper;
/**
* Created with IntelliJ IDEA.
* User: rajeev
* Date: 23/3/13
* Time: 1:35 PM
* To change this template use File | Settings | File Templates.
*/
public class CampaignMembersResultMethod extends com.ecwid.mailchimp.MailChimpObject{
@com.ecwid.mailchimp.MailChimpObj... | true |
f616600f5bb4f5e78c08739b485b796f62184ba3 | Java | vsch/flexmark-java | /flexmark-ext-typographic/src/main/java/com/vladsch/flexmark/ext/typographic/internal/DoubleQuoteDelimiterProcessor.java | UTF-8 | 331 | 2.03125 | 2 | [
"BSD-2-Clause",
"LGPL-3.0-only",
"LGPL-2.1-only",
"W3C",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | package com.vladsch.flexmark.ext.typographic.internal;
public class DoubleQuoteDelimiterProcessor extends QuoteDelimiterProcessorBase {
public DoubleQuoteDelimiterProcessor(TypographicOptions options) {
super(options, '"', '"', options.doubleQuoteOpen, options.doubleQuoteClose, options.doubleQuoteUnmatched... | true |
405be119d532cf72323c169b25ded2115dc8a6af | Java | sampath516/problem_solving | /src/main/java/com/ctci/chap3/sq/QueueWithTwoStacks.java | UTF-8 | 413 | 3.390625 | 3 | [] | no_license | package com.ctci.chap3.sq;
public class QueueWithTwoStacks {
private Stack stack1 = new Stack();
private Stack stack2 = new Stack();
public void add(int value) {
stack1.push(value);
}
public int delete() {
if (stack2.isEmpty()) {
while (!stack1.isEmpty()) {
stack2.push(stack1.pop());
}
}
retu... | true |
a10be2d8f82d93e3d81676d2ac84135e5c9e4c8c | Java | Jessie0914/leetcode | /src/main/java/greedy/Solution55.java | UTF-8 | 1,621 | 3.953125 | 4 | [] | no_license | package greedy;
/**
* @ClassName Solution55
* @Description 55.跳跃游戏
* @Author shishi
* @Date 2019/7/1 19:38
**/
/**
* 题目要求:
* 给定一个非负整数数组,你最初位于数组的第一个位置。
* 数组中的每个元素代表你在该位置可以跳跃的最大长度。
* 判断你是否能够到达最后一个位置。
* <p>
* 示例:
* 输入: [2,3,1,1,4]
* 输出: true
* 解释: 从位置 0 到 1 跳 1 步, 然后跳 3 步到达最后一个位置。
* <p>
* 输入: [3,2,1,0,4]... | true |
20e67f1ae40c45671eca451fd669b5ddd15b824d | Java | FrancisZhaoFeng/android_learn_application | /MyDagger2/app/src/main/java/com/meizu/mydagger2/bean/ElectricalHeater.java | UTF-8 | 334 | 2.28125 | 2 | [] | no_license | package com.meizu.mydagger2.bean;
import android.util.Log;
import com.meizu.mydagger2.common.Contants;
/**
* ElectricalHeater
* Created by mantou on 15/10/29.
*/
public class ElectricalHeater implements Heater {
@Override
public void heat() {
Log.e(Contants.TAG,"ElectricalHeater.heat.: " + toStrin... | true |
25d8d0e50f6c14a5692bda7281ba7a70942f4591 | Java | moutainhigh/meidianyishop | /meidianyi-web/src/main/java/com/meidianyi/shop/controller/admin/AdminPayAwardController.java | UTF-8 | 3,650 | 1.867188 | 2 | [] | no_license | package com.meidianyi.shop.controller.admin;
import com.meidianyi.shop.common.foundation.data.JsonResult;
import com.meidianyi.shop.common.foundation.util.PageResult;
import com.meidianyi.shop.service.pojo.shop.config.pledge.group.UpdateGroup;
import com.meidianyi.shop.service.pojo.shop.market.payaward.PayAwardIdParam... | true |
52b9752136ede4f614f84114f27fbb1b09acd15e | Java | DmitriyKostyanetsky/myProject | /src/main/java/aplana/HW2/Oreo.java | UTF-8 | 602 | 3.171875 | 3 | [] | no_license | package aplana.HW2;
/**
* Oreo and his specifications
* @author Dmitriy Kostyanetsky
* @version 1.0
* @since 07.03.2019
*/
public class Oreo extends Sweet {
private boolean isGlaze;
private String supplements;
public Oreo(String name, double weight, double price, boolean isGlaze, String supplements)... | true |
496a525b7d762addd6fd6e59d6b79419cd05fc61 | Java | tslipa/Census | /src/main/java/bdisi/gui/Logger.java | UTF-8 | 4,068 | 2.78125 | 3 | [] | no_license | package bdisi.gui;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.*;
public class Logger extends JFrame implements ActionListener {
private Connection connection;
private JTextField textFieldLogin;
private JTextField textFi... | true |
581444d4648a4d14de1f867eab13fb7c1368acc2 | Java | SW-zhang/JavaWeb2 | /src/com/framework/common/BytesUtil.java | UTF-8 | 1,571 | 3.1875 | 3 | [] | no_license | package com.framework.common;
import java.util.Arrays;
public class BytesUtil {
/**
* byte[]转int
*
* @param bytes
* @return
*/
public static int toInt(byte[] bytes) {
if (bytes.length > 4) {
return (int) toLong(Arrays.copyOf(bytes, 4));
}
return (int) toLong(bytes);
}
/**
* byte[]转short
... | true |
caf2cc9f71d3dc3be20623b6a1f1fc1478f13f8a | Java | leyboy/java-base | /src/reflect/Student.java | UTF-8 | 999 | 3 | 3 | [] | no_license | package reflect;
import java.io.Serializable;
public class Student extends Person implements Serializable {
/**
*
*/
private static final long serialVersionUID = 1L;
private String studentId;
public static final String DEFAULT_NAME="none";
public Student() {
super();
// TODO Auto-genera... | true |
17a52d55428d2acda72f34f57ee9aafd19d6ebcf | Java | Hotrook/Cryptography | /l4_merkle/src/main/java/com/frost/merklepuzzle/encryption/Encryptor.java | UTF-8 | 314 | 2.203125 | 2 | [] | no_license | package com.frost.merklepuzzle.encryption;
public interface Encryptor {
byte[] encrypt(byte[] message, byte[] k) throws EncryptionException;
byte[] generateKey(int n) throws EncryptionException;
byte[] decrypt(byte[] key, byte[] ciphertext) throws EncryptionException;
byte[] createKey(long k, int n);
}
| true |
c64bb1ae4647ecd5e5399db3a71858f70735f058 | Java | GreCar05/java_dev | /Plantillas-MicroServicios/serviceproducts/src/test/java/com/grecar/serviceproducts/ProductoRepositorioMockTest.java | UTF-8 | 1,277 | 2.109375 | 2 | [] | no_license | package com.grecar.serviceproducts;
import com.grecar.serviceproducts.entity.Categoria;
import com.grecar.serviceproducts.entity.Producto;
import com.grecar.serviceproducts.repositorio.ProductoRepositorio;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.facto... | true |
e7077b4d5cdedb55bb2542d9cfc2d25d1497c945 | Java | SandeepHacker/core-java-concepts | /Containers/src/sun/io/standard/RedirectingStandardOutput.java | UTF-8 | 773 | 3.5 | 4 | [] | no_license | package sun.io.standard;
import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.PrintStream;
/*The Java System class allows you to redirect the standard input, output, and error I/O streams using simple static method calls:
setIn(InputStream)
setOut(P... | true |
e74cab44cbfb47247b3830846c74aa3cca7fd440 | Java | ultrapro/Gateway | /WealthProduct/src/main/java/com/creditcloud/wealthproduct/enums/ProductStatus.java | UTF-8 | 1,356 | 2.28125 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.creditcloud.wealthproduct.enums;
import com.creditcloud.model.enums.BaseEnum;
/**
* 理财产品状态
*
* @author rooseek
*/
pu... | true |
42b4d4436bc9930d3f03c8c02b5c89ecb8bfce27 | Java | LostMyDucK/ForkHub | /app/src/main/java/com/github/mobile/BuilderInterface.java | UTF-8 | 3,443 | 2.078125 | 2 | [
"Apache-2.0"
] | permissive | package com.github.mobile;
import android.content.Intent;
import com.github.mobile.Intents;
import com.github.mobile.api.model.Project;
import com.github.mobile.api.model.Team;
import org.eclipse.egit.github.core.Gist;
import org.eclipse.egit.github.core.GistFile;
import org.eclipse.egit.github.core.Issue;
import or... | true |
3a777fe3dc8cffa9822668e03f367359dc9a5d02 | Java | fracz/refactor-extractor | /results-java/neo4j--neo4j/5d4aa9ffb7340f7d130adecbcd75f90bda272721/before/PlatformUtils.java | UTF-8 | 2,393 | 2.53125 | 3 | [] | no_license | /**
* Copyright (c) 2002-2010 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software F... | true |
2c7c43a2fabb66e44f3169866e53f03c364e3b42 | Java | PTS3-S34A/Game-Server | /Soccar [Game-Server]/src/nl/soccar/gameserver/controller/socnet/message/PlayerLeftSessionMessage.java | UTF-8 | 1,075 | 2.71875 | 3 | [
"MIT"
] | permissive | package nl.soccar.gameserver.controller.socnet.message;
import nl.soccar.gameserver.controller.socnet.message.handler.PlayerLeftSessionMessageHandler;
import nl.soccar.socnet.message.Message;
import nl.soccar.socnet.message.MessageConstants;
import nl.soccar.socnet.message.MessageEvent;
/**
* Message for leaving a p... | true |
93ac62f21a57d4c41618103fd947931bcbc1accb | Java | jebravosUnal/CertificationJava | /certifJava/src/chapter5/ForLoop.java | UTF-8 | 372 | 3.46875 | 3 | [] | no_license | package chapter5;
/**
* Created by EBR3556 on 05/07/2017.
*/
public class ForLoop {
public static void main(String[] args) {
for(int i = 0, j = i; i<10; System.out.println(i), i++, System.out.println(method())){
System.out.println("inside the loop");
}
}
public static Strin... | true |
23626b46316537cf67a7f8a083ab3579f1e6bb8b | Java | OptimusPrime1997/SOATest | /src/assignment4/sax/ContentHandler.java | GB18030 | 2,711 | 2.734375 | 3 | [] | no_license | package assignment4.sax;
import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.xml.sax.Attributes;
import org.xml.sax.SAXException;
import org.xml.sax.helpers.DefaultHandler;
public class ContentHandler extends DefaultHandler {
pr... | true |
36e1b98b080371ff99c1bcd5307d605df5f98892 | Java | kuangtuzhm/spring-cloud-learn | /balance-ribbon/src/main/java/com/zealot/balance/ribbon/log/util/ServiceLogUtil.java | UTF-8 | 8,304 | 2.171875 | 2 | [] | no_license | /*
* COPYRIGHT. ShenZhen JiMi Technology Co., Ltd. 2018.
* ALL RIGHTS RESERVED.
*
* No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
* on any form or by any means, electronic, mechanical, photocopying, recording,
* or otherwise, without the prior written permissi... | true |
dd662a8e2216a599244c2c9a9f51b94894cff744 | Java | maxlpy/Java-Learning | /src/DesignPattern/CommandDemo.java | UTF-8 | 1,728 | 3.84375 | 4 | [] | no_license | package DesignPattern;
interface Command {
public void execute();
}
class Television {
public void open() {
System.out.println("Open TV...");
}
public void close() {
System.out.println("Close TV...");
}
public void changeChannel() {
System.out.println("Change channel...");
}
}
class Controller {
private C... | true |
a6441cb0195841ba23b737cdc8f9119d74090911 | Java | BeataWalo/CP-Final_project | /Cinema/src/Movie.java | UTF-8 | 495 | 3.203125 | 3 | [] | no_license | public class Movie {
private static Integer lastMovieID = 0;
private Integer id;
private String title;
private String genre;
public Movie(String title, String genre) {
this.title = title;
this.genre = genre;
this.id = lastMovieID++;
}
public Integer getI... | true |
7fdcb5d24184d0e2d00c150a9172400667407820 | Java | UXScripts/wicket-bootstrap | /src/main/java/de/agilecoders/wicket/settings/IBootstrapSettings.java | UTF-8 | 2,554 | 2.046875 | 2 | [
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] | permissive | package de.agilecoders.wicket.settings;
import org.apache.wicket.request.resource.ResourceReference;
/**
* Settings interface for bootstrap settings.
*
* @author miha
* @version 1.0
*/
public interface IBootstrapSettings {
/**
* @return the base twitter bootstrap css resource reference
*/
Reso... | true |
3beb9ac6626bca9c9b208e2d0f71070f2d432717 | Java | nivance/AxonFramework | /core/src/test/java/org/axonframework/commandhandling/interceptors/BeanValidationInterceptorTest.java | UTF-8 | 4,097 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2010-2012. Axon Framework
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law ... | true |
6cb69a441ff0aa65eedca06b0198dae30feeb6eb | Java | yuejiayuan/leetcode-cn | /algorithm/14.最长公共前缀.java | UTF-8 | 966 | 3.03125 | 3 | [] | no_license | /*
* @lc app=leetcode.cn id=14 lang=java
*
* [14] 最长公共前缀
*/
// @lc code=start
class Solution {
public String longestCommonPrefix(String[] strs) {
if (strs == null || strs.length == 0) return "";
if (strs.length == 1) return strs[0];
StringBuilder result = new StringBuilder();
i... | true |
f2ea4a1739c23393c24e58d8463ee3c884a7e131 | Java | rajhans84/PaySlipGenerator | /src/com/raj/hans/payslip/parser/PayslipInputParser.java | UTF-8 | 1,280 | 2.921875 | 3 | [] | no_license | package com.raj.hans.payslip.parser;
import java.math.BigDecimal;
import com.raj.hans.payslip.input.Employee;
import com.raj.hans.payslip.input.InputInfo;
import com.raj.hans.payslip.money.Money;
public class PayslipInputParser {
private static final String SEPARATOR = ",";
public InputInfo readCSVInput(String in... | true |
c7270fb38b08ce67b76049ffd11a11d82955a0e2 | Java | ilyashipilov/bpc-test | /src/main/java/name/shipilov/bpc/BencodeSerializer.java | UTF-8 | 4,061 | 3.0625 | 3 | [] | no_license | package name.shipilov.bpc;
import com.google.common.collect.ImmutableSortedSet;
import com.google.common.primitives.UnsignedBytes;
import java.io.IOException;
import java.io.OutputStream;
import java.util.*;
/**
* Сериализатор в bencode.
*
* Использует формат специфицированный в статье https://ru.wikipedia.org/wi... | true |
d537539d82d40bb25943dc1b496cca93ef24fcdf | Java | sayganesha/android-basic-twitter-client | /SimpleTwitterClient/src/com/codepath/apps/basictwitter/models/Tweet.java | UTF-8 | 4,564 | 2.34375 | 2 | [] | no_license | package com.codepath.apps.basictwitter.models;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.List;
import java.util.Locale;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import android.net.ParseException;
import android.text.format.DateUtils;
... | true |
c396bf6112e4a6a46ffaff8e1a07cac297efbdc2 | Java | liuhozz/student | /Basics/Myday23/src/com/heima/Test/Test06.java | UTF-8 | 382 | 2.90625 | 3 | [] | no_license | package com.heima.Test;
import java.util.Arrays;
public class Test06 {
public static void main(String[] args) {
int[] arr={1,10,5,3,6,8,10,23,20};
System.out.println(Arrays.toString(tenRun(arr)) );
}
public static int [] tenRun(int [] arr){
for (int i=0;i<arr.length-1;i++) {
if(arr[i]%10==0)
if(arr[... | true |
70485095b86e5331456612fa0f23ca44c3e61d61 | Java | mountaingoat99/TrailKeeper | /mobile/src/main/java/com/singlecog/trailkeeper/Activites/CreateAccount.java | UTF-8 | 7,796 | 2.046875 | 2 | [] | no_license | package com.singlecog.trailkeeper.Activites;
import android.annotation.TargetApi;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import android.support.design.widget.Snackbar;
import android.os.Bundle;
import android.util.Log;
import android.v... | true |
4f97c8049aff78d47fd3f9fcb2b38a50e98e246c | Java | mounika3/Day2 | /Day3/src/marlabs/HelloCircle.java | UTF-8 | 942 | 3.28125 | 3 | [] | no_license | package marlabs;
import java.applet.Applet;
import java.awt.Color;
import java.awt.Graphics;
/*
* <applet code="Hello Circle" width="700" height="700">
* </applet>
*/
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class HelloCircle extends Applet implements Runnable{
int x,y,w,h;
Thr... | true |
6d3c18a1b7b0a45a3e63ffab77568302c3a10f0f | Java | xuyanhua/zk | /src/main/java/com/zk/master_slave/Master.java | UTF-8 | 2,485 | 2.796875 | 3 | [] | no_license | package com.zk.master_slave;
import com.zk.ZKClient;
import org.apache.zookeeper.CreateMode;
import org.apache.zookeeper.KeeperException;
import org.apache.zookeeper.ZooDefs;
import org.apache.zookeeper.data.Stat;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.Random;
/**
* 同步选主
*
* @au... | true |
9ae4eb034d3473b1ea9929681c61dfa6e59f757c | Java | karkinissan/GoogleBooks | /app/src/main/java/com/example/android/googlebooks/MainActivity.java | UTF-8 | 4,799 | 2.25 | 2 | [] | no_license | package com.example.android.googlebooks;
import android.app.LoaderManager;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.Intent;
import android.content.Loader;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCo... | true |
412170a2b721d9122013da03ef323a25e2131b21 | Java | Guo126/Lighting | /app/src/main/java/com/dianmo/flash/LoginActivity.java | UTF-8 | 6,995 | 2.046875 | 2 | [] | no_license | package com.dianmo.flash;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
i... | true |
829d1f91b324b4a1bb653724f05f90195e9946e1 | Java | swikriti123/SecureEcommerce | /app/src/androidTest/java/com/example/ecosmetics/ProductClickTest.java | UTF-8 | 613 | 1.796875 | 2 | [] | no_license | package com.example.ecosmetics;
import androidx.test.rule.ActivityTestRule;
import org.junit.Rule;
import org.junit.Test;
import static androidx.test.espresso.Espresso.onView;
import static androidx.test.espresso.action.ViewActions.click;
import static androidx.test.espresso.matcher.ViewMatchers.withId;
public clas... | true |
6769c891312ab6e1fe5e568e85274e2e10ada475 | Java | mwbGit/mwb-web-framework | /src/main/java/com/mwb/web/framework/security/servlet/session/store/AbstractSessionStorage.java | UTF-8 | 633 | 2.203125 | 2 | [] | no_license | package com.mwb.web.framework.security.servlet.session.store;
import org.springframework.beans.factory.InitializingBean;
import java.io.Serializable;
public abstract class AbstractSessionStorage implements InitializingBean {
private String sessionStorageName;
public abstract Serializable get(String sessionId);
... | true |
471133dd9565d2ccbf295123852970d2de1d753f | Java | Derek-Jones/ESEUR-code-data | /developers/api-struct/loyola08-annotated/study17.java | UTF-8 | 2,046 | 3.21875 | 3 | [] | no_license | //API Agriculture
/*
Animal Both Vegetable
1 ) Average labor cost for raising kind of animal
2 ) Cost of fertilizer
3 ) Date crop harvested
4 ) Date of last vet inspection
5 ) Location of field
6 ) Farm acres used to rear animals
7 ) Seed supplier
8 ) Fertilizer applied
9 ) Average labor cost for growing crop... | true |
4620a6ad48d072e1e7d38bcd586c5d52caa9d0ad | Java | RamaniOS/EmployeePayrollSystem | /app/src/main/java/com/cestar/employeepayrollsystem/UI/Models/Vehicle/Vehicle.java | UTF-8 | 3,679 | 2.96875 | 3 | [] | no_license | /**
* Created by: Nitin Jaswal
*/
package com.cestar.employeepayrollsystem.UI.Models.Vehicle;
import android.os.Parcel;
import android.os.Parcelable;
import com.cestar.employeepayrollsystem.UI.Models.Other.IDispay;
/// This is the Vehicle class, containing the information of Employee's Vehicle.
public abstract... | true |
eedabbc5e2b6f0153db739e48e6c627e6b6fa3b1 | Java | sharapat/gallery-android | /app/src/main/java/com/dasturlash/gallery_android/ResponseHolder.java | UTF-8 | 659 | 2.1875 | 2 | [] | no_license | package com.dasturlash.gallery_android;
import com.dasturlash.gallery_android.models.PhotosModel;
/**
* Created by QAREKEN on 5/2/2018.
*/
public final class ResponseHolder {
private static ResponseHolder instance = null;
private PhotosModel photosModel;
private ResponseHolder() {
}
public s... | true |
be1d834d19d98411b21a035976418e6bce88936c | Java | zhoubohao0504/MySpringDemo | /src/main/java/com/example/demo/spring/framework/webmvc/servlet/MyServlet.java | UTF-8 | 10,174 | 2.453125 | 2 | [] | no_license | package com.example.demo.spring.framework.webmvc.servlet;
import com.example.demo.annotation.*;
import com.example.demo.spring.framework.context.MyApplicationContext;
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServle... | true |
993d3a2b054ab648f108adf106dcee838ad2cb37 | Java | digitalengineeringlabs/revature-0628-p2-teamc | /Project2/src/main/java/com/project2/main/dao/TicketDAO.java | UTF-8 | 487 | 2.078125 | 2 | [] | no_license | package com.project2.main.dao;
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import com.project2.main.model.Ticket;
public interface TicketDAO extends JpaRepository<Ti... | true |
19e15859bd1fe91f3b466f4940ae1d381908bbbc | Java | CucuSadewa/TimnasIndonesia | /app/src/main/java/com/example/timnasindonesia/Pemain.java | UTF-8 | 1,770 | 2.390625 | 2 | [] | no_license | package com.example.timnasindonesia;
import android.os.Parcel;
import android.os.Parcelable;
public class Pemain implements Parcelable {
private String name;
private String posisi;
private String tl;
private String klub;
private int photo;
protected Pemain(Parcel in) {
name = in.readS... | true |
4dd57b4f6c3709e29b08ac64363fc7f764419956 | Java | suriel1350/ingsoftware2018 | /BeautifulMatrix.java | UTF-8 | 564 | 3.5625 | 4 | [] | no_license | import java.util.Scanner;
class BeautifulMatrix
{
public static void main(String[] args)
{
//Declaramos un scanner para capturar la entrada
Scanner myinput = new Scanner(System.in);
int i = 1; // Variable para las filas
int j = 1; // Variable para las columnas
for (i = 1; i <= 5; ... | true |
b33f290a7516cd46b6f0e6d94a53af6dd7d9126b | Java | ElectricCoops/VendorPortal | /VendorPortalModel/ejbModule/pwr/lcec/vendorportal/entity/custom/InspectionStatus.java | UTF-8 | 1,971 | 2.03125 | 2 | [
"MIT"
] | permissive | package pwr.lcec.vendorportal.entity.custom;
import java.io.Serializable;
import javax.persistence.*;
/**
* The persistent class for the InspectionStatus database table.
*
*/
@Entity
@NamedQuery(name="InspectionStatus.findAll", query="SELECT i FROM InspectionStatus i")
public class InspectionStatus implements Se... | true |
5514295429d7f6a00af7b496314a555e3f908d50 | Java | sunil1989/Fn | /app/src/main/java/adapter/Priority_dialog_adapter.java | UTF-8 | 2,300 | 2.328125 | 2 | [] | no_license | package adapter;
import com.life_reminder.R;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
public class Priority_dialog_adapter extends Ba... | true |
ee53daa080df28364fd1599a79a9b02dade026f1 | Java | ResurrectionRemix/Resurrection_packages_apps_Settings | /tests/robotests/src/com/android/settings/homepage/contextualcards/conditional/AbnormalRingerConditionControllerBaseTest.java | UTF-8 | 2,689 | 1.765625 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (C) 2018 The Android Open Source Project
*
* 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 app... | true |
6c9fe0ab7ef2c8a4908a8863f2c4ea2cd3fb5e9c | Java | peterwuhua/springBootDemoT | /src/cn/demi/base/system/vo/RolePermVo.java | UTF-8 | 513 | 1.78125 | 2 | [] | no_license | package cn.demi.base.system.vo;
import cn.core.framework.common.vo.Vo;
public class RolePermVo extends Vo<RolePermVo> {
/**
* role
*/
private RoleVo roleVo;
/**
* permission
*/
private PermissionVo permissionVo;
public RoleVo getRoleVo() {
return roleVo;
}
public void setRoleVo(RoleVo roleVo) {
thi... | true |
95fe9112a2f80c590484c184fb52e8f85504d401 | Java | art-orient/spring-mvc | /lessonFive/src/main/java/com/itvdn/lessonFive/UsersStorage.java | UTF-8 | 765 | 2.390625 | 2 | [] | no_license | package com.itvdn.lessonFive;
import com.itvdn.lessonFive.dtos.PutUserRequest;
import com.itvdn.lessonFive.dtos.UserDTO;
import org.springframework.stereotype.Component;
import java.util.ArrayList;
import java.util.List;
@Component
public class UsersStorage {
private List<UserDTO> users = new ArrayList<>();
... | true |
3a068c006f1f5694016e3d959b98570939c82e62 | Java | misselvexu/membrane-spring-boot-starter | /src/test/java/com/predic8/membrane/starter/dsl/MatcherSpecificationTests.java | UTF-8 | 1,480 | 2.265625 | 2 | [
"Apache-2.0"
] | permissive | package com.predic8.membrane.starter.dsl;
import com.predic8.membrane.core.config.Path;
import com.predic8.membrane.core.rules.ServiceProxy;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import static org.assertj.core.api.Assertions.assertThat;
i... | true |
863fa1a321ec92ca6ab83af66b459d3846821e9b | Java | cuba-platform/cuba | /modules/gui/src/com/haulmont/cuba/gui/xml/layout/loaders/ScrollBoxLayoutLoader.java | UTF-8 | 4,348 | 1.859375 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright (c) 2008-2016 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 |
14671c10a3e702fd1a5905367226929d5b6ce212 | Java | LeidosLabs/holeshot | /imageop/src/main/java/com/leidoslabs/holeshot/imaging/TileReadingRenderedImage.java | UTF-8 | 7,529 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to The Leidos Corporation under one or more contributor license agreements.
* See the NOTICE file distributed with this work for additional information regarding copyright ownership.
* The Leidos Corporation licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may n... | true |
fe4e31c9ce329bf33b5d84daa1d5f7765be11c6a | Java | PlumpMath/MySpringMVC | /MySpringMVC/src/main/java/lee/sample/framework/bbs/service/impl/MyBatisBoardService.java | UTF-8 | 970 | 1.984375 | 2 | [] | no_license | package lee.sample.framework.bbs.service.impl;
import java.util.List;
import java.util.Map;
import lee.sample.framework.bbs.dao.BoardMapper;
import lee.sample.framework.bbs.vo.Board;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service(val... | true |
a378ad88cdcb054274225665fdc213e53c9576f7 | Java | huangjunjunhelper/zhihu | /newke/src/main/java/com/huangjun/controller/FeedController.java | UTF-8 | 1,542 | 2.03125 | 2 | [] | no_license | package com.huangjun.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annot... | true |
b8aac5ba35cc867a3929b9e42b0a7c0159e8ad0d | Java | michaeltangelo/java-101 | /hw1/JavaFiles/Exercise4.java | UTF-8 | 525 | 3.921875 | 4 | [] | no_license | import java.util.Scanner;
public class Exercise4 {
public static void main(String[] args) {
// initialize scanner object
Scanner sc = new Scanner(System.in);
// get user input in Fahrenheit
System.out.print("Enter a number of degrees in Fahrenheit: ");
double fTemp = sc.nextDouble();
// calculate celci... | true |
5ba15008af70d31f64e480928b4b551fbebb8882 | Java | shvyrkov/job4j | /chapter_001/src/main/java/ru/job4j/loop/Factorial.java | UTF-8 | 736 | 3.796875 | 4 | [
"Apache-2.0"
] | permissive | package ru.job4j.loop;
/**
*Класс Factorial для подсчета факториала заданного целого положительного числа.
*
*@author Shvyrkov Yuri (mailto: shvyrkov@yandex.ru)
*@version 1.0
*@since 2018.11.14
*/
public class Factorial {
/**
* Метод calc для подсчета факториала заданного целого положительного числа.
*
... | true |
4e050bf25e6646a1e912ba121b4cfe20636ef1d2 | Java | Cognizant-Training-Coimbatore/Lab-Excercise-Batch-2 | /Divya Nair/27jan/Exception_divideby_zero.java | UTF-8 | 501 | 3.484375 | 3 | [] | no_license | import java.util.Scanner;
public class Exception_divideby_zero {
public static void main(String[] args)
{
int num1,num2,result;
Scanner in=new Scanner(System.in);
System.out.println("Enter a dividend:");
num1=in.nextInt();
System.out.println("Enter a divisor:");
num2=in.nextInt();
result=n... | true |
e5261b7d5bb2e9dc78d600f89b3a260bb5ab7e40 | Java | diony-chen/baiyilanjian | /shopping/shopping-product-service/src/main/java/com/diony/shopping/member/service/impl/MemberStatisticsInfoServiceImpl.java | UTF-8 | 640 | 1.5625 | 2 | [] | no_license | package com.diony.shopping.member.service.impl;
import com.diony.shopping.member.entity.MemberStatisticsInfo;
import com.diony.shopping.member.mapper.MemberStatisticsInfoMapper;
import com.diony.shopping.member.service.MemberStatisticsInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
imp... | true |
778ebec0484656c4394178243004280a0585dfb3 | Java | zhijianCode/bloom-filter-demo | /src/main/java/cn/meibee/MyBloomFilterDemo/MyBloomFilter.java | UTF-8 | 2,580 | 3.6875 | 4 | [] | no_license | package cn.meibee.MyBloomFilterDemo;
import java.util.BitSet;
import java.util.UUID;
public class MyBloomFilter {
public static void main(String[] args) {
int bitsize = 2 << 24;
int[] seeds = new int[]{3, 13, 46, 71, 91, 134};
MyBloomFilter myBloomFilter = new MyBloomFilter(bitsize, seeds... | true |
df7d0f4107db095f9e70f916025cc1dae06ec553 | Java | 236056760/RunOrOut | /src/main/java/com/lubo/com/need/wexi/web/ShowController.java | UTF-8 | 831 | 1.65625 | 2 | [] | no_license | package com.lubo.com.need.wexi.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.context.request.WebRequest;
import com.lubo.com.need.co... | true |
48e8e78783b6fcdf915b32d472e989f29ecad4c3 | Java | Huami-Henry/HuamiMerchant | /app/src/main/java/com/huami/merchant/activity/service/model/PurchaseModelInter.java | UTF-8 | 585 | 1.75 | 2 | [] | no_license | package com.huami.merchant.activity.service.model;
import com.huami.merchant.fragment.listener.InterLoadListener;
import com.huami.merchant.mvpbase.BaseModelInter;
/**
* Created by henry on 2018/2/5.
*/
public interface PurchaseModelInter extends BaseModelInter{
void getPrice(String url,String token, String uui... | true |
f569b0fa2dc0075ae46d2efdc0d6188cdfd932b1 | Java | thomjanssen128/lab14 | /src/test/java/nl/thom/h14/PersonTest.java | UTF-8 | 556 | 2.796875 | 3 | [] | no_license | package nl.thom.h14;
import nl.thom.h14.person.Human;
import nl.thom.h14.person.Person;
import org.junit.jupiter.api.Test;
class PersonTest {
@Test
void personTest() {
Person p1 = new Person("Jan", 45);
p1.printHistory();
p1.addHistory("Born");
p1.addHistory("Went to school... | true |
773c12303454e08f9278f69a2d3e36ba5ada4bd1 | Java | Sergii7777777/easycook | /src/main/java/com/easycook/api/dto/Step.java | UTF-8 | 468 | 2.421875 | 2 | [] | no_license | package com.easycook.api.dto;
public class Step {
private String img;
private String description;
public Step() {
}
public Step(String img, String description) {
this.img = img;
this.description = description;
}
public String getImg() {
return img;
}
public String getDescription() {
ret... | true |
8929bf5687cb55b6a20810f2b92255cc2057cf33 | Java | adolfosbh/gra2mol | /core/Grammar2Model.KDM/src/kdm/ui/impl/ScreenImpl.java | UTF-8 | 683 | 1.625 | 2 | [] | no_license | /**
* <copyright>
* </copyright>
*
* $Id$
*/
package kdm.ui.impl;
import kdm.ui.Screen;
import kdm.ui.UiPackage;
import org.eclipse.emf.ecore.EClass;
/**
* <!-- begin-user-doc -->
* An implementation of the model object '<em><b>Screen</b></em>'.
* <!-- end-user-doc -->
* <p>
* </p>
*
* @generated
*/
pub... | true |
6dc5ec9192e3c6049251e84a590335f977cccbd3 | Java | juancoan/OOP | /src/Proyecto/Entidades/Individuo.java | UTF-8 | 1,083 | 2.84375 | 3 | [] | no_license | package Proyecto.Entidades;
import javax.swing.*;
public class Individuo {
protected String direccion;
protected String nombre;
protected String cedula;
public Individuo(String direccion, String nombre, String cedula) {
this.direccion = direccion;
this.nombre = nombre;
this.c... | true |
b2dfe2377ef0546f8a58286096516f6af56be3e2 | Java | ghdmsrkd/forSpring | /MyProject/src/main/java/kr/inhatc/spring/lecture/service/LectureService.java | UTF-8 | 548 | 1.78125 | 2 | [] | no_license | package kr.inhatc.spring.lecture.service;
import java.util.List;
import kr.inhatc.spring.lecture.entity.Lecture;
import kr.inhatc.spring.lecture.entity.LectureContent;
import kr.inhatc.spring.user.entity.Users;
public interface LectureService {
void saveLecture(Lecture lecture);
Lecture lectureShow(Long id);
... | true |
d48dc1b9be8b73c24d0a9bcdff367b810cffc03d | Java | thomasbrueggemann/ACCuRATe | /analyze/src/strategies/CI221_Strategy.java | UTF-8 | 570 | 2.0625 | 2 | [
"MIT"
] | permissive | package strategies;
import java.util.Arrays;
import java.util.LinkedList;
/**
* CI221 STRATEGY GpsSensorContent
*
* @author Thomas Brüggemann
*/
public class CI221_Strategy extends TraceBackStrategy {
/*
* (non-Javadoc)
*
* @see strategies.TraceBackStrategy#execute()
*/
public StrategyResult execute... | true |
b525ac9db21fd1c24b7cd93f1270b77eb3a2949f | Java | edipofederle/xisp | /src/main/java/br/com/xisp/models/Project.java | UTF-8 | 2,349 | 2.21875 | 2 | [] | no_license | package br.com.xisp.models;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Gene... | true |
a0a35c1987f0693ecaf31b2244a6a539cc7e69ba | Java | januszkowal/blacksmith-finlib | /src/main/java/org/blacksmith/finlib/marketdata/StandardId.java | UTF-8 | 651 | 2.5 | 2 | [
"Apache-2.0"
] | permissive | package org.blacksmith.finlib.marketdata;
import org.blacksmith.commons.arg.ArgChecker;
import lombok.Value;
@Value
public class StandardId {
//Symbology=OG-Ticker
private final String scheme;
//Ticker=EUR=ON
private final String value;
public StandardId(String scheme, String value) {
ArgChecker.notBl... | true |
fb340c9c7abd24842dab29f3688e1b0b48a5740b | Java | aleksamilenkovic/game-service | /src/main/java/com/gameservice/util/JsoupHelper.java | UTF-8 | 852 | 2.453125 | 2 | [] | no_license | package com.gameservice.util;
import java.io.File;
import java.net.URL;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import com.gameservice.exception.UrlException;
public class JsoupHelper {
public static Document connectToLivePage(String pageUrl) throws UrlException {
URL url;
Document doc = null;... | true |
df3f771fac60d446b336c79b2f35ef2c9607ec42 | Java | Azure/azure-sdk-for-java | /sdk/apimanagement/azure-resourcemanager-apimanagement/src/main/java/com/azure/resourcemanager/apimanagement/fluent/models/ResolverContractInner.java | UTF-8 | 3,461 | 2.015625 | 2 | [
"LicenseRef-scancode-generic-cla",
"MIT",
"LicenseRef-scancode-warranty-disclaimer",
"LicenseRef-scancode-unknown-license-reference",
"LGPL-2.1-or-later",
"CC0-1.0",
"BSD-3-Clause",
"UPL-1.0",
"Apache-2.0",
"LicenseRef-scancode-public-domain",
"BSD-2-Clause"
] | permissive | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.apimanagement.fluent.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.management.ProxyResource;
import com... | true |
bda27f4b22bf7f9b4e7b954477f075c4c97e587b | Java | wandres0823/ayuda | /src/excepciones/NoFondoException.java | UTF-8 | 411 | 1.945313 | 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 excepciones;
/**
*
* @author walbonis1
*/
public class NoFondoException extends Exception {
public NoFondoException(){... | true |
d0329f50b796c2b069ff21f6a4467f64a045a819 | Java | manishlalwani11/JavaRepo | /src/main/java/collections/stack/Element.java | UTF-8 | 654 | 3.234375 | 3 | [] | no_license | package collections.stack;
public class Element<T> {
private T data;
private Element<T> nextElement;
Element(T data, Element<T> element) {
this.data = data;
this.nextElement = element;
}
public T getData() {
return data;
}
public void setData(T data) {
thi... | true |
6f9b15684b215fb26593d001c733103b137d256e | Java | lostlw/testdemo | /ApiDplinkspotdemo/src/com/xhxm/ospot/model/AdContent.java | UTF-8 | 1,744 | 1.984375 | 2 | [] | no_license | package com.xhxm.ospot.model;
import java.io.Serializable;
/***
*
* <p>Title: AdContent</p>
* <p>Description: 广告内容信息类</p>
*/
public class AdContent implements Serializable {
private static final long serialVersionUID = 1L;
/**apk包名*/
private String pkg;
/** 拉活链接 */
private String deepLink;
privat... | true |
9ce0f3184b77bbf348551daa0b364765646d9cef | Java | dsaraiva/mietium-crpt | /guia8/Bob.java | UTF-8 | 3,522 | 2.90625 | 3 | [] | no_license | import javax.crypto.*;
import javax.crypto.interfaces.DHPublicKey;
import javax.crypto.spec.DHParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.io.*;
import java.math.BigInteger;
import java.net.Socket;
import java.net.UnknownHostException;
import java.security.*;
/**
* Created by ks on 11/11/15.
*
... | true |
fba617276b3204c4121ac6088d7be6b2804c6906 | Java | adamCo1/vacation_for_u | /src/main/java/View/IView.java | UTF-8 | 250 | 1.882813 | 2 | [] | no_license | package View;
import javafx.stage.Stage;
import sample.Controller;
/**
* interface for GUI view classes
*/
public interface IView {
void setController(Controller controller);
void signInScene();
void setCurrentStage(Stage stage);
}
| true |
4293733e0eb2e9b841125aecc4a5cdfa8cc70fce | Java | HeavenlyBerserker/Midireader | /midiReader/src/midireader/MChainNoteNum/MChainRead.java | UTF-8 | 7,541 | 2.703125 | 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 midireader.MChainNoteNum;
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import javax.sound.... | true |
3b1799624e964c2f154652b227436ebc26cdda05 | Java | huangninghao/HexIntegrationTool | /readModule/src/main/java/com/hx/read/view/kyrgyzstan/northElectric/HXE110/GPRSActivity.java | UTF-8 | 4,143 | 1.9375 | 2 | [
"Apache-2.0"
] | permissive | package com.hx.read.view.kyrgyzstan.northElectric.HXE110;
import android.os.Bundle;
import android.text.InputFilter;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
import com.hexing.libhexbase.activity.RxMvpBaseActivity;
import com.hexing.libhexbase.tools.StringUtil... | true |
23abc65f8182d54e9d7ccfbadbe795401c0176a3 | Java | LivTel/telescope-control-monitoring | /java/src/ngat/tcm/TelescopeEnvironmentStatus.java | UTF-8 | 2,539 | 2.390625 | 2 | [] | no_license | /**
*
*/
package ngat.tcm;
import java.io.Serializable;
/**
* @author eng
*
*/
public class TelescopeEnvironmentStatus implements TelescopeStatus, Serializable {
private long statusTimeStamp;
private double agBoxTemperature;
private double trussTemperature;
private double secondaryMirrorTemperature;
... | true |
3e77046aa1963247fc1662cfc289a19fe4518bd8 | Java | CoderWangGaoFeng/neighbor | /src/main/java/com/neighbor/repository/sys/AccountRepository.java | UTF-8 | 617 | 2.078125 | 2 | [] | no_license | package com.neighbor.repository.sys;
import com.neighbor.module.sys.AccountModule;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
import javax.transaction.Transactional;
import java.io.Serializable;
/**
* 用户持久层
* @author wanggaofeng
*/
@Transactional//... | true |
ddb668e0b8ba04c5a0394f46bb1abe45d824acf2 | Java | Sophonomores/VisaHackathon | /app/src/main/java/com/sophonomores/FoodRadar/visacheckout/VisaCheckoutRequestQueue.java | UTF-8 | 855 | 2.375 | 2 | [] | no_license | package com.sophonomores.FoodRadar.visacheckout;
import android.content.Context;
import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
/**
* VisaCheckoutRequestQueue acts as a singleton wrapper for RequestQueue that communicates
* with Visa Checkout API.
*/
public class VisaCheckoutReq... | true |
e4e270019ed774aab98c1fb63d3fe1d8b947026e | Java | Auch-Auch/avito_source | /sources/com/google/android/gms/internal/ads/zzalu.java | UTF-8 | 811 | 1.882813 | 2 | [] | no_license | package com.google.android.gms.internal.ads;
import android.content.Context;
import com.google.android.gms.common.util.VisibleForTesting;
import javax.annotation.ParametersAreNonnullByDefault;
@ParametersAreNonnullByDefault
public final class zzalu {
@VisibleForTesting
private static final zzazm<zzajx> zzdhv =... | true |
e0ff8a8afe0f8a80d975789678651ad53887d2b5 | Java | MeilingHong/MVP_Framework | /app/src/main/java/com/meiling/mvp/module/datautil/log/LogUtil.java | UTF-8 | 20,290 | 2.265625 | 2 | [] | no_license | package com.meiling.mvp.module.datautil.log;
import android.app.Activity;
import android.content.Context;
import android.os.Build;
import android.os.Environment;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import com.meiling.mvp.BuildConfig;
import com.meiling.mvp.application.BaseApplica... | true |
1115db0a01f6e03d8dbb10571c759bb7430d1912 | Java | SKyles98/PokeDexApp | /app/src/main/java/com/saleef/mvcpokemonapp/Networking/Wrappers/AbilityWrapperSchema.java | UTF-8 | 1,107 | 2.1875 | 2 | [] | no_license | package com.saleef.mvcpokemonapp.Networking.Wrappers;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import com.saleef.mvcpokemonapp.Networking.Model.EffectEntries;
import com.saleef.mvcpokemonapp.Networking.Model.FlavorText;
import java.util.List;
public class AbilityW... | true |
ecac8b2f0601987a4745d2af7840f54357a10443 | Java | Felix-Chen3/geekbang-lessons-spring-ioc | /thinking-in-spring/ioc-container-overview/src/main/java/spring/ioc/overview/dependency/injection/DependencyInjectionDemo.java | UTF-8 | 1,610 | 2.859375 | 3 | [
"Apache-2.0"
] | permissive | package spring.ioc.overview.dependency.injection;
import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import spring.ioc.overview.repository.UserRepository;
/**
* @author felix
* @date ... | true |
3363b73a9c9de3ed1563647babd0ecd89ce8a118 | Java | hogan001/Hogan_Folder | /Witskies.w_manager/src/com/witskies/manager/makeheadimage/FileImageView.java | UTF-8 | 1,969 | 2.234375 | 2 | [] | no_license | package com.witskies.manager.makeheadimage;
import java.util.ArrayList;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.view.View;
public class FileImageView extends View {
private ArrayL... | true |
db1f0ec7dc15772c8b600a7eef58edbc904a4a10 | Java | yan0kom/clinic-spring | /src/main/java/ru/yan0kom/clinic/dao/UserDao.java | UTF-8 | 352 | 1.851563 | 2 | [] | no_license | package ru.yan0kom.clinic.dao;
import org.springframework.data.repository.CrudRepository;
import ru.yan0kom.clinic.model.AppUser;
import java.util.List;
import java.util.Optional;
public interface UserDao extends CrudRepository<AppUser, Long> {
List<AppUser> findAll();
Optional<AppUser> findByUsername(String... | true |
68b8a2a9744bf11fa7be9fdbe27c74655e560b11 | Java | JustVita/kotlin | /YunkuJavaSDKDemo/src/SDKTester.java | UTF-8 | 8,855 | 2.015625 | 2 | [] | no_license | import Model.BaseData;
import com.yunkuent.sdk.*;
import com.yunkuent.sdk.data.ReturnResult;
import com.yunkuent.sdk.utils.Util;
import java.net.HttpURLConnection;
/**
* Created by Brandon on 2014/8/6.
*/
public class SDKTester {
private static EntLibManager mEntLibManager;
private static EntManager mEntMa... | true |
bcb4a40f7bc26dc0a0fcc672ab7b07fca2149448 | Java | wtsanshou/tdd | /paintshop/src/main/java/ie/wtsanshou/paintshops/Factory/PaintFactoryImpl.java | UTF-8 | 318 | 2.546875 | 3 | [] | no_license | package ie.wtsanshou.paintshops.Factory;
import ie.wtsanshou.paintshops.model.Paint;
import ie.wtsanshou.paintshops.model.PaintType;
public class PaintFactoryImpl implements PaintFactory{
public Paint create(int color, PaintType type){
return Paint.builder().color(color).type(type).build();
}
}
| true |
45d58b7b0fe6136c1b3ec86bb1f339df5a51f531 | Java | BGCX067/familyie-svn-to-git | /trunk/src/BloodGroup.java | UTF-8 | 384 | 2.921875 | 3 | [] | no_license | public class BloodGroup {
public static final BloodGroup O = new BloodGroup(0);
public static final BloodGroup A = new BloodGroup(1);
public static final BloodGroup B = new BloodGroup(2);
public static final BloodGroup AB = new BloodGroup(3);
private int _code = 0;
public BloodGroup(int code) {
_code... | true |
49926b509a2380bc49d253f69a85398d6ca9082f | Java | droideveloper/MaintenanceApplication | /src/main/java/org/fs/maintenance/common/NotificationManager.java | UTF-8 | 3,089 | 2.5 | 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 org.fs.maintenance.common;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.SQLExcepti... | true |
dcb759b12fed167a0b1c9009116ea47a6420e551 | Java | 5hasis/KhAcademy | /jdbc3/src/update/Test01.java | UTF-8 | 1,134 | 3.21875 | 3 | [] | no_license | package update;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class Test01 {
public static void main(String[] args) throws ClassNotFoundException, SQLException {
// Q. academy 테이블의 데이터 수정.
// 준비물 : 번호, 이름
int academy_no = 10;... | true |
22ceb972ab978ec48311c0dfe619eaeefb7f0777 | Java | tsuzcx/qq_apk | /com.tencent.minihd.qq/assets/exlibs.1.jar/classes.jar/tencent/im/s2c/msgtype0x210/submsgtype0x27/SubMsgType0x27$NewComeinUserNotify.java | UTF-8 | 1,876 | 1.554688 | 2 | [] | no_license | package tencent.im.s2c.msgtype0x210.submsgtype0x27;
import com.tencent.mobileqq.pb.MessageMicro;
import com.tencent.mobileqq.pb.MessageMicro.FieldMap;
import com.tencent.mobileqq.pb.PBBoolField;
import com.tencent.mobileqq.pb.PBField;
import com.tencent.mobileqq.pb.PBUInt32Field;
public final class SubMsgType... | true |