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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
25c5b2db4219ec3465078af25d0c81c2ff689997 | Java | ibelaidi/deck-cards | /src/main/java/gb/ilias/ubs/deck/cards/game/internal/FaceRank.java | UTF-8 | 570 | 3.03125 | 3 | [] | no_license | /**
*
*/
package gb.ilias.ubs.deck.cards.game.internal;
/**
* Card's faces
*
* @author ilias
* @since Oct 14, 2016
*/
public enum FaceRank {
Ace(1), Deuce(2), Nine(9), Eight(8), Seven(7), Six(6), Five(5), Four(4), Three(3), Ten(10), Jack(11), Queen(
12), King(13);
int rank;
FaceRank(int r) {
this.ran... | true |
1f7b951a68d4fe5cdd06d8de8f4072c08b1a5652 | Java | joaotux/zagorFX | /src/br/com/umdesenvolvedor/zagorFX/utils/Alerta.java | UTF-8 | 518 | 2.703125 | 3 | [] | no_license | package br.com.umdesenvolvedor.zagorFX.utils;
import javafx.scene.Scene;
import javafx.scene.control.Alert;
import javafx.scene.control.Alert.AlertType;
public class Alerta {
public static void alerta(String mensagem, AlertType alertType, Scene scene) {
Alert alert = new Alert(alertType);
alert.setContentText(... | true |
e01e5e3b4921e67e01ea1f63eae547c9385c17c7 | Java | willlam98/EE2-Group-Project-Android-App | /app/src/main/java/com/example/selenatabbara/group8/AccessPoint.java | UTF-8 | 1,131 | 2.46875 | 2 | [] | no_license | package com.example.selenatabbara.group8;
public class AccessPoint {
double x;
double y;
int rssi;
String bssid;
String ssid;
int configparameter;// RSSI value when distance = 1m;
double evmfactor;
double distance;
public AccessPoint(double x, double y, int rssi, String bssid, Stri... | true |
3fd072580133f44eb47d330d309a87c8322aa27c | Java | manoel-an/compraki | /src/main/java/br/com/compraki/model/veiculo/ModeloVeiculo.java | UTF-8 | 3,094 | 2.328125 | 2 | [] | no_license | package br.com.compraki.model.veiculo;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Transi... | true |
af5fd05cde1d4272823ab3e2f0156a58ff854d4e | Java | bjudob/JudoApp | /app/src/main/java/com/example/botond/judoapp_4/activities/scoreboard/ScoreboardActivity.java | UTF-8 | 14,318 | 2.09375 | 2 | [] | no_license | package com.example.botond.judoapp_4.activities.scoreboard;
import android.content.Context;
import android.os.SystemClock;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Chronometer;
import android.widget.ImageView;
import android.widget.TextView;
import com.ex... | true |
c47df6857d35b18ac6bfe395e0b76fd31e0ce372 | Java | parkjaewon1/Spring_ch01 | /ch01/src/main/java/samp17/ListBean.java | UTF-8 | 210 | 1.875 | 2 | [] | no_license | package samp17;
import java.util.List;
public class ListBean {
private List<String> addr;
public List<String> getAddr() {
return addr;
}
public void setAddr(List<String> addr) {
this.addr = addr;
}
} | true |
11e7f3ba4077e4888e33577c931a3a39d6c8ca12 | Java | osuisumi/tt | /tip-subjectgroup/tip-subjectgroup-core/src/main/java/com/haoyu/tip/subjectgroup/event/CreateSubjectGroupEvent.java | UTF-8 | 302 | 1.53125 | 2 | [] | no_license | package com.haoyu.tip.subjectgroup.event;
import org.springframework.context.ApplicationEvent;
public class CreateSubjectGroupEvent extends ApplicationEvent{
private static final long serialVersionUID = 2157481102230811922L;
public CreateSubjectGroupEvent(Object source) {
super(source);
}
}
| true |
12f334dae1242fc3322efad262c0254dfc4ca034 | Java | WhiteorBlack/mojiang | /app/src/main/java/cn/idcby/jiajubang/Bean/GoodOrderList.java | UTF-8 | 2,852 | 2.3125 | 2 | [] | no_license | package cn.idcby.jiajubang.Bean;
import java.util.List;
import cn.idcby.jiajubang.utils.StringUtils;
/**
* 商品订单
* Created on 2018/4/27.
*/
public class GoodOrderList {
public String OrderId ;
public String OrderCode ;
public String OrderType ;//1直供商品,2闲置商品 ,3 服务
public String CreateDate ;
pub... | true |
f01fb63c322c24754cfb7cac0858c19b53598798 | Java | ravidkone/POM_Framework | /objectClasses/src/objectClasses/car.java | UTF-8 | 392 | 2.375 | 2 | [] | no_license | package objectClasses;
public class car {
int noOfDoors;
int maxSpeed;
String color;
String sModelName;
static String fuelType;
//write method inside it
public void startEngine() {
//turnLeft();
//specialFeature();
}
public void turnLeft() {
}
public static void specialFeature... | true |
d6e4ab8e45c7adeee02800a4e6327fa1c3f394d9 | Java | kLeZ/ComicsDB | /michelle/src/it/d4nguard/michelle/utils/data/DataTable.java | UTF-8 | 1,498 | 3.03125 | 3 | [] | no_license | package it.d4nguard.michelle.utils.data;
import it.d4nguard.michelle.utils.collections.CollectionsUtils;
import java.util.LinkedHashSet;
import java.util.Set;
public class DataTable
{
private final Set<DataRow> rows;
private final Set<DataColumn<?>> columns;
public DataTable()
{
rows = new LinkedHashSet<DataR... | true |
113bfc1fc96a1ea7f23f3d482e1c9b678d049427 | Java | leeneko/eclipse-workspace | /java181102/src/OperGame/Oper.java | UTF-8 | 343 | 2.71875 | 3 | [] | no_license | package OperGame;
public abstract class Oper {
int life;
String[] msg;
int max;
int num1;
int num2;
public Oper(int life, String[] msg, int max) {
this.life = life;
this.msg = msg;
this.max = max;
}
public int getLife() {
return life;
}
String getMsg(int i) {
return msg[i];
}
public abstract ... | true |
d21805585a95efad5b31638cdc72823a3e501011 | Java | MrZhangsGit/learn-jooq | /section-6/src/test/java/com/diamondfsd/jooq/learn/BaseTest.java | UTF-8 | 637 | 1.8125 | 2 | [] | no_license | package com.diamondfsd.jooq.learn;
import org.jooq.DSLContext;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.annotation.Rollback;
import org.springframework.test.context.junit.jupiter.SpringJUni... | true |
35a9b1d962b18f7f0d55a0394f747ff795515de6 | Java | danielrmz/stalkercognitivo | /Vecino.java | ISO-8859-10 | 587 | 3.40625 | 3 | [] | no_license | /**
* Encapsulacion para agregarle atributos adicionales sin tener una herencia de la clase.
*
* @author Equipo 6 Cynthia Trevio, Ricardo Magallanes, Daniel Ramirez
*/
public class Vecino {
private Persona p;
private int nivel;
public Vecino(Persona p, int nivel){
this.p = p;
this.nivel=nive... | true |
46abf516397d800e912a3ca897ae5fa77135abaa | Java | ppatibandla/SimpleTwitterClient | /src/com/codepath/apps/basictwitter/fragments/TweetTimelineFragment.java | UTF-8 | 2,755 | 2.171875 | 2 | [] | no_license | package com.codepath.apps.basictwitter.fragments;
import java.util.ArrayList;
import org.json.JSONArray;
import android.os.Bundle;
import android.widget.Toast;
import com.activeandroid.util.Log;
import com.codepath.apps.basictwitter.models.Tweet;
import com.codepath.apps.basictwitter.utils.TwitterClient;
import com... | true |
7fd899c7bc24be5f1eacfa495fda0b6cfd4befb8 | Java | hunteryuh/LC600 | /src/com/alg/dp/Sol72_EditDistance.java | UTF-8 | 1,656 | 3.578125 | 4 | [] | no_license | package com.alg.dp;
/**
* Created by HAU on 12/2/2017.
*/
/*Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)
You have the following 3 operations permitted on a word:
a) Insert a character
b) Delete a character
c) Replace a ... | true |
11299f57d3ed1732ce719e33fa6567e73ca71aac | Java | ZhengLynn/cmfz | /src/main/java/com/baizhi/aspect/AddCacheAspect.java | UTF-8 | 1,646 | 2.546875 | 3 | [] | no_license | package com.baizhi.aspect;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis... | true |
c65bba34d1d78bb709d3f4d7b17e8f1f190b0215 | Java | SealNHJ/pfinal | /proyectoFinal/src/main/java/com/uabc/edu/pfinal/demo/controller/HomeController.java | UTF-8 | 591 | 2.140625 | 2 | [] | no_license | package com.uabc.edu.pfinal.demo.controller;
import org.springframework.security.access.annotation.Secured;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import java.util.Date;
import java.util.Map;
@Controller
public class HomeController {... | true |
91ab37729e033101d42bf3b192b70f8336f30968 | Java | vanjura/BatalhaNaval | /Batalha Naval/src/jogo/Jogador.java | UTF-8 | 7,646 | 3.15625 | 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 jogo;
import javax.swing.JOptionPane;
/**
*
* @author Vanjura
*/
public class Jogador {
private String nome;
priva... | true |
ab157b3d879a7f14522c36fb493fa7701f4a8e7d | Java | hughloh/Sorting-Algorithms-Visualisation | /src/algovisual/SortingAlgorithm.java | UTF-8 | 10,637 | 3.03125 | 3 | [
"MIT"
] | permissive | /*
* 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 algovisual;
import java.util.Arrays;
import java.util.Collections;
import java.util.function.Function;
/**
*
*... | true |
1472d21b8cc2f23402c33d0ab1a4a9c05395bc36 | Java | gehel/interrupted-exception | /src/main/java/org/wikimedia/discovery/lc/threads/T7_InterruptedIO.java | UTF-8 | 905 | 3.234375 | 3 | [] | no_license | package org.wikimedia.discovery.lc.threads;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class T7_InterruptedIO {
public static void main(String[] args) throws InterruptedException {
Thread thread = new Thread(() -> {
while (!Thread.interr... | true |
fb1afdd89eedefe1074599fa22020a44eb11cee6 | Java | rscabrall/pweb | /prjTrabFinal/src/java/br/edu/fatec/model/Aluno.java | UTF-8 | 1,925 | 2.0625 | 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 br.edu.fatec.model;
import java.util.Date;
/**
*
* @author AD122176
*/
public class Aluno {
private in... | true |
598758deeda799ca8fc84445342fb346684e36f1 | Java | emalva/ExternalResource | /src/java/com/beans/ClasifBean.java | UTF-8 | 618 | 2.265625 | 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.beans;
import javax.inject.Named;
import javax.enterprise.context.RequestScoped;
/**
*
* @author manito
*/
@Named(valu... | true |
99af27f9986bff883dd51e885902f6fe6a7aa089 | Java | dillon-sellars/trie | /java/src/main/java/trie/ByteTrie.java | UTF-8 | 4,189 | 3.296875 | 3 | [] | no_license | package trie;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.List;
public class ByteTrie {
static class Node {
public Node parent;
... | true |
d0a0ce910917676bb6c884e0bd8175ead79356e4 | Java | tryCod3/Java-Caro | /src/view/Game.java | UTF-8 | 1,911 | 2.9375 | 3 | [] | no_license | package view;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.*;
public class Game extends JFrame implements Display {
private final Board board = Board.getBoard();
public static JLabel label;
public JButton jbReset;
public Game() {
... | true |
a6449cd82e5e59ca3191fe74e8bbefb7b4e43d51 | Java | chenlangping/LeetCode | /src/com/medium/multiplyStrings/Solution.java | UTF-8 | 1,310 | 3.71875 | 4 | [] | no_license | package com.medium.multiplyStrings;
public class Solution {
public String multiply(String num1, String num2) {
StringBuilder stringBuilder = new StringBuilder();
int m = num1.length();
int n = num2.length();
if (m == 0 || n == 0 || num1.equals("0") || num2.equals("0")) {
... | true |
817415adcf82070c1ff0f8cefc2259432b481703 | Java | BaiXiaoyuhw/Aspose.PDF-for-Java | /Examples/src/main/java/com/aspose/pdf/examples/AsposePdfExamples/DocumentConversion/ConvertHTMLToPDFFormat.java | UTF-8 | 1,542 | 2.828125 | 3 | [
"MIT"
] | permissive | package com.aspose.pdf.examples.AsposePdfExamples.DocumentConversion;
import com.aspose.pdf.Document;
import com.aspose.pdf.HtmlLoadOptions;
import com.aspose.pdf.LoadOptions;
public class ConvertHTMLToPDFFormat {
public static void main(String[] args) {
settingToNotPullDownRemoteResourcesDuringConversion();
co... | true |
84bc8b3b52fb97c1ad8e32490950993f2e00979c | Java | AnastasiiaBurlai/solid-violations | /src/main/java/dip/Car.java | UTF-8 | 177 | 2.765625 | 3 | [] | no_license | package dip;
public class Car {
public void driveTo(String location){
System.out.println(String.format("Driving to the location: %s on a car", location));
}
}
| true |
838ea9f04930eb8c152b4d0c94230c18be466b2b | Java | gismaker/lambkit-jdk1.7 | /src/main/java/com/lambkit/module/meta/web/tag/MetaFieldDirective.java | UTF-8 | 5,824 | 1.695313 | 2 | [
"Apache-2.0"
] | permissive | /**
* Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
* <p>
* 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
* <p>
* http://www.apache.org/licenses/LICENSE-2.0
* <p... | true |
424d48a3a0c29fce6ad17633a03b04df97a4c87d | Java | tears743/Android_Demo | /.svn/pristine/62/62cfc3d3a941834bec45a324aa4877c4a7f06c2c.svn-base | UTF-8 | 647 | 2.375 | 2 | [] | no_license | /**
* Copyright: Moonlight(Eric yue)
* Email: hi.moonlight@gmail.com
* Website: www.ericyue.info
* File name: SystemInfo.java
* Project Name:ExpressSensor
* Create Date: 2011-7-22
*/
package info.ericyue.es.entity;
public class SystemInfo {
private String version;
private String update;
privat... | true |
b35f7b496a4cc8c446233e7fef6a06e0df580ed8 | Java | yscorpio/jt-framework | /samples/jt-808-server-sample-annotation/src/test/java/io/github/hylexus/jt/codec/decode/MsgDecoderTest.java | UTF-8 | 6,503 | 1.789063 | 2 | [] | no_license | package io.github.hylexus.jt.codec.decode;
import io.github.hylexus.jt.config.Jt808ProtocolVersion;
import io.github.hylexus.jt.utils.HexStringUtils;
import io.github.hylexus.jt808.codec.BytesEncoder;
import io.github.hylexus.jt808.codec.Decoder;
import io.github.hylexus.jt808.msg.RequestMsgHeader;
import io.github.hy... | true |
1a7bbb78ef63990f4a6b0a31c9cddcd7aabbc6b5 | Java | dkgv/ppefp | /src/main/java/com/gustavvy/ppefp/gui/CandlestickChart.java | UTF-8 | 1,178 | 2.953125 | 3 | [] | no_license | package com.gustavvy.ppefp.gui;
import com.gustavvy.ppefp.model.Segment;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.data.xy.DefaultHighLowDataset;
import javax.swing.*;
import java.awt.*;
import java.util.Date;
/**
* CandlestickChart.java
*
* @author Gustav V. Y
*/
p... | true |
30d432d8c28db1e9adbcb16027d69fbcb6dd4645 | Java | klirman/CMC-Kits | /src/me/sedge/purix/listener/PlayerJoin.java | UTF-8 | 436 | 2.078125 | 2 | [] | no_license | package me.sedge.purix.listener;
import org.bukkit.event.EventHandler;
import org.bukkit.event.EventPriority;
import org.bukkit.event.Listener;
import org.bukkit.event.player.PlayerJoinEvent;
public class PlayerJoin implements Listener {
@EventHandler(ignoreCancelled=true, priority=EventPriority.LOWEST)... | true |
e8d76474b53992ec211381f1cf6758f69d9f1036 | Java | DarkGuardsman/JsonDecisionTreeLib | /library/src/main/java/com/builtbroken/decisiontree/imp/choice/MemoryEquals.java | UTF-8 | 1,631 | 2.421875 | 2 | [] | no_license | package com.builtbroken.decisiontree.imp.choice;
import com.builtbroken.builder.converter.ConverterRefs;
import com.builtbroken.builder.mapper.anno.JsonConstructor;
import com.builtbroken.builder.mapper.anno.JsonMapping;
import com.builtbroken.builder.mapper.anno.JsonTemplate;
import com.builtbroken.decisiontree.TreeT... | true |
5e13e0dc37a1abee57439fa4a1493864c972857e | Java | ChandraPuvendhan/Chandra-Gillette | /src/main/java/com/mypages/LoginPage.java | UTF-8 | 2,610 | 2.421875 | 2 | [] | no_license | /**
*
*/
package com.mypages;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
/**
* @author Chandra
*
*/
public class LoginPage extends BasePage {
//page locators:
private By signIn = By.xpath("//a[@title='SIGN IN']");
private By emailId = By.xpath("... | true |
bb27351ebce82d0f7e257b699f4a28059dbb27c8 | Java | Duico/ing-sw-2020-bianchi-dolci-duico | /src/main/java/it/polimi/ingsw/client/cli/CliInputHandler.java | UTF-8 | 1,363 | 3.109375 | 3 | [] | no_license | package it.polimi.ingsw.client.cli;
import it.polimi.ingsw.client.ClientEventEmitter;
import java.util.NoSuchElementException;
import java.util.Queue;
import java.util.Scanner;
import java.util.concurrent.LinkedBlockingQueue;
/**
* Handler class for the cli input, line by line
*/
public class CliInputHandler exten... | true |
51194066a3d7af809d857acbc3dc7dddd593493d | Java | hesrondev/JAVA-Un-Prof-pour-TOUS | /src/main/java/com/ingesup/labojava/controller/StudentController.java | UTF-8 | 2,174 | 2.59375 | 3 | [] | no_license | package com.ingesup.labojava.controller;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annot... | true |
1a952a32fc67725198b10c44b9de5ba10019bbb0 | Java | venugopi26/FootballAssessment | /src/test/java/com/football/assessment/service/test/FootballServiceTest.java | UTF-8 | 7,025 | 2.359375 | 2 | [] | no_license | /**
*
*/
package com.football.assessment.service.test;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
import org.junit.jupiter.api.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.an... | true |
21e57a8563e031b8386104073146381db826fad8 | Java | guancgsuccess/yantu | /src/main/java/com/crazylemon/yantu/service/impl/OrderMasterServiceImpl.java | UTF-8 | 10,052 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package com.crazylemon.yantu.service.impl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.crazylemo... | true |
0ffd54f3d4b2f659f68dcac55a9e683c50781a1e | Java | petrovaihannah/HannahJava | /src/lesson9/backyard.java | UTF-8 | 508 | 2.640625 | 3 | [] | no_license | package lesson9;
public class backyard {
public static void main(String[] args) {
dog jack = new dog("jack",7,"black");
jack.eat();
jack.sleep();
jack.makenoise();
jack.present();
dog max = new dog("Max", 3, "pink");
max.present();
max.eat();
... | true |
273eca6d46ead6aa006fe811535cb408b91f5949 | Java | philippetavernier/vogella | /com.vogella.fraunhofer/src/com/vogella/fraunhofer/RSSFeedProvider.java | UTF-8 | 426 | 2.40625 | 2 | [] | no_license | package com.vogella.fraunhofer;
import java.util.ArrayList;
import java.util.List;
public class RSSFeedProvider {
public static List<RssItem> parse(String rssFeed) {
List<RssItem> list = new ArrayList<RssItem>();
RssItem item = new RssItem();
item.setTitle("Test1");
list.add(item);
item = new RssItem();
... | true |
fbbd681f91eb1a61a230710e912fb9313a436abc | Java | orthogonal/PlaceSaver | /Andrew's Temporary Model/PlaceSaver/src/MobiTech/PlaceSaver/MainMenu.java | UTF-8 | 4,034 | 2.875 | 3 | [] | no_license | package MobiTech.PlaceSaver;
import android.app.Activity; //Required to make new activities (obviously required)
import android.os.Bundle; //The Bundle handles the information that was saved the last time the app paused/stopped.
import android.content.Intent; //Required to make an intent
import android.view.... | true |
972de8c48f4ec56bdc032a347c1aaf2204aee3fd | Java | Mike728/webstore | /src/main/java/info/mike/webstorev1/domain/Cart.java | UTF-8 | 1,316 | 2.1875 | 2 | [] | no_license | package info.mike.webstorev1.domain;
import org.hibernate.annotations.Cascade;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@Entity
public class Cart {
@Id
@GeneratedValue(strategy = GenerationType... | true |
33d07f70a6de5f1b47fea0d92efec11fa9386b5e | Java | chengchuanqiang/springboot_study | /src/main/java/com/ccq/springbootkafka/generic/GenericMethod.java | UTF-8 | 1,049 | 3.421875 | 3 | [
"Apache-2.0"
] | permissive | package com.ccq.springbootkafka.generic;
import java.util.ArrayList;
import java.util.List;
/********************************
*** 泛型方法示例
***@Author chengchuanqiang
***@Date 2018/10/19 14:32
***@Version 1.0.0
********************************/
public class GenericMethod {
// 不带返回参数 泛型方法使用
private <T> void... | true |
8ede8c6abc0469c664477571fe7548d4e201d6f4 | Java | zydrrr/lspring2 | /src/main/java/com/learn/configur/Config.java | UTF-8 | 1,086 | 2.65625 | 3 | [] | no_license | package com.learn.configur;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
@Component
public class Config {
private final static Properties properties;
// 方式1 直接... | true |
58900989bdf49ba960f305c724d8cd0d72efdd44 | Java | magefree/mage | /Mage.Sets/src/mage/cards/n/NocturnalRaid.java | UTF-8 | 1,120 | 2.46875 | 2 | [
"MIT"
] | permissive |
package mage.cards.n;
import java.util.UUID;
import mage.ObjectColor;
import mage.abilities.effects.common.continuous.BoostAllEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.filter.common.FilterCreaturePermanent;
import mag... | true |
4f75f80bedc944c1a0ea366497cdfa6cdf377d94 | Java | fengwutianya/HRSystem | /src/com/xuan/hrsystem/dao/impl/ManagerDaoHibernate.java | UTF-8 | 2,746 | 2.59375 | 3 | [] | no_license | package com.xuan.hrsystem.dao.impl;
import com.xuan.hrsystem.dao.ManagerDao;
import com.xuan.hrsystem.dao.base.MyHibernateDaoSupport;
import com.xuan.hrsystem.model.Manager;
import java.util.List;
/**
* Created by xuan on 2017/3/4 0004.
*/
public class ManagerDaoHibernate extends MyHibernateDaoSupport implements M... | true |
4a0f74becee9dceed7c2a528151617614e9b60b3 | Java | the-sloth-dev/shiro-extras | /src/test/java/eu/flatwhite/shiro/spatial/AbstractShiroFullConfigTest.java | UTF-8 | 1,050 | 2 | 2 | [] | no_license | package eu.flatwhite.shiro.spatial;
import org.apache.shiro.SecurityUtils;
import org.apache.shiro.config.IniSecurityManagerFactory;
import org.apache.shiro.mgt.SecurityManager;
import org.apache.shiro.subject.Subject;
import org.apache.shiro.subject.support.SubjectThreadState;
public abstract class AbstractShiroFull... | true |
b97580c34d05866be16b29f546448208d21d9891 | Java | 18965050/pro-spring-3 | /springblog/src/main/java/com/apress/prospring3/springblog/service/HousekeepingService.java | UTF-8 | 242 | 1.789063 | 2 | [] | no_license | /**
* Created on Dec 8, 2011
*/
package com.apress.prospring3.springblog.service;
/**
* @author Clarence
*
*/
public interface HousekeepingService {
/**
* Scheduled job to purge audit records.
*/
public void auditPurgeJob();
}
| true |
65e9f55a020c984ae5256feecadffcaecd4d08a3 | Java | Tomson124/SimplyJetpacks-2 | /src/main/java/tonius/simplyjetpacks/util/EquipmentSlotHelper.java | UTF-8 | 437 | 2.65625 | 3 | [
"MIT"
] | permissive | package tonius.simplyjetpacks.util;
import net.minecraft.inventory.EntityEquipmentSlot;
public class EquipmentSlotHelper
{
public static EntityEquipmentSlot fromSlot(int slot)
{
for(EntityEquipmentSlot entityequipmentslot : EntityEquipmentSlot.values())
{
if(entityequipmentslot.getSlotIndex() == slot)
{
... | true |
fc1b90e4171fea290ac702a026d1f690c4e79e5a | Java | jonjanelle/project-euler | /Problem38.java | WINDOWS-1252 | 1,713 | 4.09375 | 4 | [] | no_license | import java.util.ArrayList;
import java.util.LinkedList;
/**
* We shall say that an n-digit number is pandigital if it makes use of all the digits 1 to n exactly once;
* for example, the 5-digit number, 15234, is 1 through 5 pandigital.
*
* Take the number 192 and multiply it by each of 1, 2, and 3:
*
... | true |
d16a6ebe2e663737895b03ac11a3d6655cc8fa4c | Java | dplDobby/test2 | /workspace/컴프1/src/practice4_1/practice3.java | UTF-8 | 178 | 2.703125 | 3 | [] | no_license | package practice4_1;
public class practice3 {
public static void main(String args[])
{
for(int i=1;i<=9;i++)
{
System.out.println("2 * " + i + " = "+ (2*i));
}
}
}
| true |
aeb44c4fe0d35c94a7bf0b77ee47b52a5a3b93c5 | Java | sSasquatch/COP3330-OOP | /HW4/Spades/src/core/Game.java | UTF-8 | 7,138 | 3.09375 | 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 core;
import constants.Constants;
import constants.Constants.Suit;
import java.util.ArrayList;
import java.util.Iter... | true |
1378409cc36dfdcf00f97952bb0ff5532224690f | Java | fer22ay/Spring-boot-shop | /f-shop/src/main/java/com/fernando/fshop/negocio/repository/UserRepository.java | UTF-8 | 1,460 | 2.296875 | 2 | [] | no_license | /**
*
*/
package com.fernando.fshop.negocio.repository;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
imp... | true |
ce578f916e193e16a6a95ad2fdfd0a00707e728c | Java | jinlzhang/rescue | /product/src/main/java/com/cjd/rescue/product/controller/TaskController.java | UTF-8 | 1,224 | 1.875 | 2 | [] | no_license | package com.cjd.rescue.product.controller;
import com.cjd.rescue.api.task.TaskApi;
import com.cjd.rescue.api.team.TeamApi;
import com.cjd.rescue.common.anno.SysLog;
import com.cjd.rescue.entity.common.ReturnT;
import com.cjd.rescue.entity.product.*;
import com.cjd.rescue.entity.shiro.User;
import org.springframework.b... | true |
cc82e6876ccc08905df9da3a2c7d93b8bc9e13a0 | Java | groupProjectOS/OSPROJECT | /Loader.java | UTF-8 | 271 | 1.65625 | 2 | [] | no_license | package src;
import java.io.FileReader;
public class Loader {
FileReader file;
// CONSTRUCTOR
public Loader(FileReader data){
this.file = data;
}
// READFILE
private void readFile() {
}
// EXTRACT TO PCB
// INSERT HEX-CODE/INSTR INTO RAM
}
| true |
198fa6896becfe0e9a1232087c7b5d3a63f20e02 | Java | ParshwaRajyaguru/Stop-Yield_SignDetection | /Project3Application/app/src/main/java/com/example/parshwa/project3application/MainActivity.java | UTF-8 | 15,913 | 1.828125 | 2 | [] | no_license | package com.example.parshwa.project3application;
import android.content.Intent;
import android.content.IntentFilter;
import android.content.pm.PackageManager;
import android.graphics.Bitmap;
import android.os.Bundle;
import android.provider.MediaStore;
import android.speech.tts.TextToSpeech;
import android.support.v7.... | true |
82b1047661cf254d9d7bd014384f1a43da0c09f0 | Java | Pysdbi/QRcodeReader | /app/src/main/java/com/pysdbi/qrcodereader/MainActivity.java | UTF-8 | 2,828 | 2.109375 | 2 | [] | no_license | package com.pysdbi.qrcodereader;
import androidx.appcompat.app.AppCompatActivity;
import android.annotation.SuppressLint;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.provider.MediaStore;
import android.util.SparseArray;... | true |
a246d9b288de0f51fbb68830ebbea530d0f921e4 | Java | wangscript007/HaobeiBuiness | /buiness/src/main/java/com/netmi/workerbusiness/data/entity/walllet/EthDetailTwoEntity.java | UTF-8 | 2,311 | 2.28125 | 2 | [] | no_license | package com.netmi.workerbusiness.data.entity.walllet;
import com.netmi.baselibrary.data.entity.BaseEntity;
/**
* 类描述:
* 创建人:Leo
* 创建时间:2020/4/16
* 修改备注:
*/
public class EthDetailTwoEntity extends BaseEntity {
/**
* id : 8020
* title : 培训奖
* create_time : 2019-03-01 14:19:35
* price : +4... | true |
d8712ff63701f96d5baf991b3674ae4f35b79174 | Java | umamama/MinecraftMods | /com/mes51/minecraft/mods/timemachine/gui/actions/ActionProgrammableMachine.java | UTF-8 | 2,107 | 2.703125 | 3 | [
"MIT"
] | permissive | package com.mes51.minecraft.mods.timemachine.gui.actions;
import com.mes51.minecraft.mods.timemachine.containers.ContainerBase;
import com.mes51.minecraft.mods.timemachine.containers.ContainerProgrammableMachine;
import com.mes51.minecraft.mods.timemachine.util.DataHolder;
import java.io.*;
/**
* Package: ... | true |
98e5e442bd5897f3922342a61877cc529b95841d | Java | tmclean15/cois2240-Android-App | /app/src/main/java/ca/cois2240group20/grocerymanagementapp/page_fragments/GroceryListFragment.java | UTF-8 | 3,593 | 2.25 | 2 | [] | no_license | package ca.cois2240group20.grocerymanagementapp.page_fragments;
import android.arch.lifecycle.Observer;
import android.arch.lifecycle.ViewModelProviders;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.design.widget.FloatingActionButton;
impor... | true |
db5bd0c1de6d0ab77211b119ec7189c25e54555c | Java | kchen12/CSE2 | /hw04/TimePadding.java | UTF-8 | 1,759 | 4.03125 | 4 | [] | no_license | // Kevin Chen
// 9/23/14
// CSE 02 TimePadding
// prints out the semester and year of a course depending on a six digit number
import java.util.Scanner;
// new scanner class
public class TimePadding{
public static void main(String[] args) {
Scanner myScanner; //declare scanner
myScanner = new Scann... | true |
11c137079659446b4c47be3186c25e8018165f5e | Java | yuricaldasr93/algamoney-api | /src/main/java/com/example/algamoney/api/service/PessoaService.java | UTF-8 | 1,108 | 2.328125 | 2 | [] | no_license | package com.example.algamoney.api.service;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.stereotype.Service;
import com.example.algamoney.api.model.Pessoa;
import com.... | true |
1bb472584ea5cb69bd3637dff8e48124135d8b76 | Java | jasonnian1978/consulo | /platform/core-api/testSrc/org/consulo/lang/LanguagePointerTest.java | UTF-8 | 1,645 | 2.125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2013 must-be.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in w... | true |
bbb6df9a2af93f8ccf523d9020a247b9f9488573 | Java | blakecheny/javaeeProject | /javaeeProject_cai/src/com/cuit/service/AddService.java | UTF-8 | 209 | 1.859375 | 2 | [] | no_license | package com.cuit.service;
import com.cuit.entity.*;
public interface AddService {
public boolean AddUser(User UEntity);
public boolean AddDevice(Device DEntity);
public boolean AddLab(Lab LEntity);
}
| true |
d2d8081a797faa355b80147e0d6bad0903b640a7 | Java | EmileSchneider/IntegrationTest | /src/main/java/blockchain/Blockchain.java | UTF-8 | 2,482 | 3.296875 | 3 | [
"Apache-2.0"
] | permissive | package blockchain;
import java.util.ArrayList;
public class Blockchain {
ArrayList<Block> bch = new ArrayList<>();
Block current_block = new Block();
public ArrayList<Block> getBch() {
return bch;
}
public void setBch(ArrayList<Block> bch) {
this.bch = bch;
}
public Block getCurrent_block() {
retur... | true |
f96faf348741fb63e4bce6674bf68d1b901d409b | Java | twineworks/tweakflow | /src/main/java/com/twineworks/tweakflow/examples/LazilyProvidedVars.java | UTF-8 | 10,027 | 2.578125 | 3 | [
"MIT"
] | permissive | /*
* The MIT License (MIT)
*
* Copyright (c) 2019 Twineworks GmbH
*
* 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 u... | true |
7c4bac67fd8cd5486ca07dbc56a50abcbb24b71e | Java | Clockian/CS249_Class_Labs | /Project 4/ProfilerMethods.java | UTF-8 | 3,105 | 3.328125 | 3 | [] | no_license | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import java.util.concurrent.TimeUnit;
public class ProfilerMethods {
public void BSTrandTest10_000(BinarySearchTree<Integer, Integer> test){
List<Integer> testnumbers = new ArrayList<Integer>();
Random ra... | true |
3f871b9e45149dbf71cf2ac4a083cae61dc1c1bf | Java | joyblack/informational-dxn | /src/main/java/com/joy/xxfy/informationaldxn/module/staff/service/StaffBlacklistService.java | UTF-8 | 8,185 | 2.046875 | 2 | [] | no_license | package com.joy.xxfy.informationaldxn.module.staff.service;
import com.joy.xxfy.informationaldxn.module.staff.domain.enums.ReviewStatusEnum;
import com.joy.xxfy.informationaldxn.publish.result.JoyResult;
import com.joy.xxfy.informationaldxn.publish.result.Notice;
import com.joy.xxfy.informationaldxn.publish.utils.Date... | true |
c3287ca6ddd14187e4b98af847f94031a6100d58 | Java | Chengshijian/SearchPlus | /app/src/main/java/com/android/chengshijian/searchplus/activity/QueryPersonalInfoActivity.java | UTF-8 | 4,197 | 2.03125 | 2 | [
"Apache-2.0"
] | permissive | package com.android.chengshijian.searchplus.activity;
import android.app.ProgressDialog;
import android.content.DialogInterface;
import android.support.v7.app.AlertDialog;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import com.android.chengshijian.searchplus.R;... | true |
19502d7528c091268fb5731fb0910e3f69cbf37c | Java | GeorgeGomes/rino-gallery | /src/main/java/br/com/rino/util/FileUtil.java | UTF-8 | 2,862 | 2.671875 | 3 | [] | no_license | package br.com.rino.util;
import java.awt.image.BufferedImage;
import java.io.ByteArrayInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import jav... | true |
f2b7dd066a15398285243956b6721b8fa4196def | Java | Jblew/medmanual-ultimate | /src/main/java/pl/jblew/mm/generator/TreeGenerator.java | UTF-8 | 665 | 2.53125 | 3 | [] | no_license | package pl.jblew.mm.generator;
import java.util.Map;
@GeneratorSkip
public class TreeGenerator {
public static String getTreeHtml(Map<Class<?>, ClassLink> links, ClassLink relative) {
String out = "<h3>Tree</h3>";
out += "<ul>";
ClassLink[] sortedList = links.values().stream()
.sorted((ClassLink cl1, Cla... | true |
eb616350247c9cd960ae210a9dbe01c4b3767969 | Java | speech4j/speech4j | /speech4j-tts-freetts/src/main/java/org/speech4j/ibm/FreeTTSSpeechSynthesizerImpl.java | UTF-8 | 951 | 2.640625 | 3 | [
"Apache-2.0"
] | permissive | package org.speech4j.ibm;
import com.sun.speech.freetts.Voice;
import com.sun.speech.freetts.VoiceManager;
import org.speech4j.tts.SpeechSynthesizer;
public class FreeTTSSpeechSynthesizerImpl implements SpeechSynthesizer {
@Override
public void speak(String text) {
Voice voice = VoiceManager.getInsta... | true |
093f6076c57afcca41588f75516f70690f9deac3 | Java | unaipme/project-game | /src/main/java/com/retrolaza/game/screens/EndgameRankingScreen.java | UTF-8 | 4,326 | 2.765625 | 3 | [] | no_license | package com.retrolaza.game.screens;
import java.awt.Font;
import java.awt.FontFormatException;
import java.awt.event.KeyEvent;
import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Timer;
import java.util.TimerTask;
import com.retrolaza.data.RankingUtil;
import com.retrolaza.data.Re... | true |
809208b48cf59d7527ee545b4634e9a34fbbad9b | Java | jackcuisheng/cxt | /app/src/main/java/com/cxt/gps/model/DetailModel.java | UTF-8 | 455 | 1.648438 | 2 | [] | no_license | package com.cxt.gps.model;
import com.cxt.gps.listener.OnReturnMapListener;
public interface DetailModel {
void setLoadData(String msgType, String account, String carNum, OnReturnMapListener onReturnMapListener);
void setDefend(String msgtype, String account, String carNum, String reason, OnReturnMapListener... | true |
b5978b5bf5ec001373e1cf9c56954b2d1e9aaf7d | Java | splicemachine/htap-benchmark | /tests/com/oltpbenchmark/benchmarks/seats/util/TestCustomerId.java | UTF-8 | 3,478 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | /******************************************************************************
* Copyright 2015 by OLTPBenchmark Project *
* *
* Licensed under the Apache License, Version 2.0 (the "License"); *
... | true |
1fc7bd2c46562bc6b587503eb6457b1a70ece244 | Java | Lumenol/Projet_S6 | /src/mariaLost/items/model/animation/AnimationWalkingLeft.java | UTF-8 | 390 | 2.015625 | 2 | [] | no_license | package mariaLost.items.model.animation;
import javafx.scene.image.Image;
import javafx.util.Duration;
public class AnimationWalkingLeft extends Animation {
public AnimationWalkingLeft() {
super(Duration.millis(100), new Image("file:resources/Images/WalkingAnimationPlayer/Go_Left/1.png"), new Image("fil... | true |
96f5b7a803be05ea1520a393e810969ce5805143 | Java | dgoyachev/phones | /BizService/src/main/java/com/calltouch/phones/service/PhoneServiceImpl.java | UTF-8 | 1,377 | 2.25 | 2 | [
"MIT"
] | permissive | package com.calltouch.phones.service;
import com.calltouch.phones.converter.CtPhoneEntityToPhoneDataConverter;
import com.calltouch.phones.dao.CtPhoneDAO;
import com.calltouch.phones.domain.PhoneData;
import com.calltouch.phones.domain.criteria.PhoneSearchCriteria;
import org.springframework.beans.factory.annotation.A... | true |
5f69912a2c4cbae440c472f2c29178c208d62d1e | Java | yanchao00551/sb-rigger | /sb-core/src/main/java/com/ebaycloud/rigger/business/service/BizTypeService.java | UTF-8 | 578 | 1.796875 | 2 | [] | no_license | package com.ebaycloud.rigger.business.service;
import com.ebaycloud.rigger.business.entity.Type;
import com.ebaycloud.rigger.business.vo.TypeConditionVO;
import com.ebaycloud.rigger.framework.object.AbstractService;
import com.github.pagehelper.PageInfo;
import java.util.List;
/**
* 分类
*/
public interface BizType... | true |
7c50b705f09a1a50b474bc91cb7b31bfa9dc6a56 | Java | LichKing-lee/trainning-springboot | /src/main/java/com/example/board/nonvalid/BoardRepository.java | UTF-8 | 325 | 1.757813 | 2 | [] | no_license | package com.example.board.nonvalid;
import org.springframework.data.repository.CrudRepository;
import org.springframework.stereotype.Repository;
/**
* 게시물 저장소
*/
@SuppressWarnings("WeakerAccess")
@Repository("nonvalid.boardRepository")
public interface BoardRepository extends CrudRepository<Board, Long> {
}
| true |
75defbe487198f9fb79467f2ab701998c1b9a26b | Java | jwnichols3/esm-essb | /platform/Monitoring2/trunk/src/com/bgi/esm/monitoring/platform/shared/value/.svn/text-base/Spool.java.svn-base | UTF-8 | 4,009 | 2.421875 | 2 | [] | no_license | package com.bgi.esm.monitoring.platform.shared.value;
import java.io.Serializable;
import java.util.Calendar;
import java.util.TimeZone;
/**
* Value object for SPOOL table
*
* @author G.S. Cole (guycole at gmail dot com)
*/
public class Spool implements Serializable {
/**
* empty ctor
*/
public Spool() {... | true |
4213360997f8bf744a88efcf9aa0c4448412edd6 | Java | tst547/NetFileTool | /app/src/main/java/cn/hy/netfiletool/net/pojo/FileMsg.java | UTF-8 | 765 | 2.15625 | 2 | [] | no_license | package cn.hy.netfiletool.net.pojo;
import java.io.Serializable;
public class FileMsg implements Serializable {
public String name;//文件名
public String path;//路径
public long size;//大小
public boolean isDir;//是否是目录
public String getName() {
return name;
}
public void setName(String ... | true |
5a05114097e85a18144686cb14f07b90acbd76db | Java | jaquadro/StorageDrawers | /src/main/java/com/jaquadro/minecraft/storagedrawers/item/pack/ItemTrimPack.java | UTF-8 | 1,254 | 2.390625 | 2 | [
"MIT"
] | permissive | package com.jaquadro.minecraft.storagedrawers.item.pack;
/*
import com.google.common.base.Function;
import com.jaquadro.minecraft.storagedrawers.item.ItemTrim;
import com.jaquadro.minecraft.storagedrawers.block.pack.BlockTrimPack;
import net.minecraft.block.Block;
import net.minecraft.item.ItemStack;
import org.jetbra... | true |
79e2d9a8e470fa7efca20d934df02ce3934725da | Java | hienducvo/attendance | /src/main/java/edu/mum/cs/cs544/attendance/controller/UserController.java | UTF-8 | 9,832 | 2.3125 | 2 | [] | no_license | package edu.mum.cs.cs544.attendance.controller;
import java.lang.reflect.Field;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.validation.Valid;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.Bi... | true |
1142fc0d0c69cdf39a70aad86756168c04d13c6e | Java | ShahakBH/jazzino-master | /bi/bi-operations/src/main/java/com/yazino/bi/operations/model/GameDashboard.java | UTF-8 | 1,547 | 2.40625 | 2 | [] | no_license | package com.yazino.bi.operations.model;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import java.util.List;
import java.util.Map;
public class GameDashboard extends Dashboard {
private fina... | true |
fd37a30c815238f504833ed67cc137b9582f2e2c | Java | Hamad-AM/Text-Adventure | /Item.java | UTF-8 | 1,807 | 3.828125 | 4 | [] | no_license | /**
* This class ia part of the "LIMBO" application.
* "LIMBO" is a very simple text based adventure game.
*
* This class stores the data related to Items. And lets the user retrieve the relavent data.
*
* @author Areeb Hamad Mohammed
* @version 2019.23.11
*/
public class Item
{
// instance variables
... | true |
5b099df3acda2eb8097d2e867245b7cd1281ae0b | Java | chromium/chromium | /chrome/android/java/src/org/chromium/chrome/browser/usage_stats/UsageStatsMetricsEvent.java | UTF-8 | 1,305 | 1.867188 | 2 | [
"BSD-3-Clause"
] | permissive | // Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.usage_stats;
import androidx.annotation.IntDef;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
/**
... | true |
cced554462cbf5674de65ef52387836ec3fe46d1 | Java | bellmit/szgq | /project4eclipse/SRRPDao/src/main/java/com/icfcc/SRRPDao/jpa/repository/inverstorg/InvestorManageAchievementPendingDao.java | UTF-8 | 1,095 | 1.820313 | 2 | [] | no_license | package com.icfcc.SRRPDao.jpa.repository.inverstorg;
import java.util.List;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSorti... | true |
02016d75b736f1fddfee4d97416cf275f0138372 | Java | igv7/SeleniumWebDriver | /SeleniumWebDriver/src/main/java/seleniumWebDriver/FindElement.java | UTF-8 | 1,482 | 2.09375 | 2 | [] | no_license | package seleniumWebDriver;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
public class FindElement {
static String projectPath = "C:\\Users\\Igor\\eclipse... | true |
c21df02d4f3cc36dac814214bbf7fd34316409fa | Java | jeanninejacobs/JAVA-Final-Project | /PlayerClass.java | UTF-8 | 1,662 | 3.59375 | 4 | [] | 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.
*/
/**
*
* @author shane
*/
import java.util.Random;
public class PlayerClass
{
//create a private variable to... | true |
dc729611f726ee685928907aa5a7f44f9cfa9e95 | Java | slavarosin/plauen | /src/main/java/net/gobro/plauen/service/impl/BotServiceImpl.java | UTF-8 | 49,528 | 1.664063 | 2 | [] | no_license | package net.gobro.plauen.service.impl;
import java.util.Calendar;
import java.util.List;
import java.util.Random;
import net.gobro.plauen.model.CountryEnum;
import net.gobro.plauen.model.Game;
import net.gobro.plauen.model.RoleEnum;
import net.gobro.plauen.model.ScoreRule;
import net.gobro.plauen.model.Sms;
import ne... | true |
f4ef9c60806bb5c671cd529636b91d66d91b3106 | Java | santhosh1211/RigApp | /app/src/main/java/in/co/santhoshiot/rigapp/SplashScreen.java | UTF-8 | 5,651 | 1.882813 | 2 | [] | no_license | package in.co.santhoshiot.rigapp;
import android.Manifest;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.PackageManager;
import android.os.Build;
import android.os.Handler;
import android.support.v4.app.ActivityCompat;
import android.support.v4.content.ContextCompat... | true |
907c3d8f9cca7879b626015d89d54bf68f7e3772 | Java | edgartest/API | /src/test/java/pepcom/Common.java | UTF-8 | 5,915 | 2.21875 | 2 | [] | no_license | package pepcom;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import org.apache.http.HttpEntity;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.client.methods.HttpPost;
im... | true |
0a9ea6a8a339afd3c6b3ff0a9d9e4d94662f1234 | Java | MerilandServer/Multiverse-Inventories | /src/main/java/com/onarandombox/multiverseinventories/DefaultProfileTypeManager.java | UTF-8 | 3,609 | 2.609375 | 3 | [] | no_license | package com.onarandombox.multiverseinventories;
import com.onarandombox.multiverseinventories.api.profile.ProfileType;
import com.onarandombox.multiverseinventories.api.profile.ProfileTypeManager;
import com.onarandombox.multiverseinventories.api.share.Shares;
import java.io.File;
import java.util.Collection;
import ... | true |
6ccce82011c17658576c083ece75728cbb06b0a9 | Java | tomcastro89/seat-reservervation-active-mq | /seat-availability-service/src/test/java/de/itemis/seatavailabilityservice/SeatReservationResponseProducerTest.java | UTF-8 | 1,207 | 2.0625 | 2 | [] | no_license | package de.itemis.seatavailabilityservice;
import de.itemis.seatavailabilityservice.domain.AvailabilityResponse;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.junit.MockitoJUnitRunner;
import org.springframework.jms.core.JmsTemplate;
import... | true |
771d733b14e082e8c4220204a12540ce3757fe19 | Java | iamsonggege/MediaPlayer | /app/src/main/java/com/geniusgithub/mediaplayer/player/music/MusicPlayerView.java | UTF-8 | 10,055 | 1.71875 | 2 | [] | no_license | package com.geniusgithub.mediaplayer.player.music;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.drawable.Drawable;
import android.media.audiofx.Visualizer;
import android.view.View;
import android.view.animation.AlphaAnimation;
import android.view.animation.TranslateA... | true |
5a90fbf72f990faab3fe5f268235e30730d46aff | Java | RolandasAstrauskas/CourierApp | /app/src/main/java/com/example/courierapp/MySqlConnection.java | UTF-8 | 701 | 2.375 | 2 | [] | no_license | package com.example.courierapp;
import androidx.appcompat.app.AppCompatActivity;
import java.sql.Connection;
import java.sql.DriverManager;
public class MySqlConnection extends AppCompatActivity {
private static Connection conn;
private static final String url = "";
private static final String user = ""... | true |
af4df9b65dba03514d8e3ffc5607f6772d617bd9 | Java | QiuJava/spring | /core/src/main/java/cn/qj/core/config/cache/IpLogRedisService.java | UTF-8 | 421 | 1.875 | 2 | [] | no_license | package cn.qj.core.config.cache;
import org.springframework.stereotype.Service;
import cn.qj.core.consts.RedisKeyConst;
import cn.qj.core.entity.IpLog;
/**
* 登录历史缓存服务
*
* @author Qiujian
* @date 2018/11/01
*/
@Service
public class IpLogRedisService extends AbstractRedisService<IpLog> {
@Overr... | true |
c406acf7e9d3471d196d02b118cbbf1d579f8a67 | Java | robertoklein/eclipseWorkspace | /Exceptions/src/pac4/Lion.java | UTF-8 | 123 | 1.9375 | 2 | [] | no_license | package pac4;
public class Lion implements Roar{
@Override
public void roar() throws HasSoreThroatException {
}
}
| true |
72b80acf743c2c647b46a49256b6c676d30c2c0c | Java | jackiehff/hbase-book | /ch04/src/main/java/filters/MultipleColumnPrefixFilterExample.java | UTF-8 | 2,052 | 2.828125 | 3 | [
"Apache-2.0"
] | permissive | package filters;
import constant.HBaseConstants;
import org.apache.hadoop.hbase.Cell;
import org.apache.hadoop.hbase.client.Result;
import org.apache.hadoop.hbase.client.ResultScanner;
import org.apache.hadoop.hbase.client.Scan;
import org.apache.hadoop.hbase.client.Table;
import org.apache.hadoop.hbase.filter.Filter;... | true |
c4582dd8f07666f0bdbb246e821dfc4dce6395dd | Java | blutkind/MPS | /languages/util/buildlanguage/languages/buildlanguage/source_gen/jetbrains/mps/buildlanguage/structure/TargetReference.java | UTF-8 | 1,233 | 1.867188 | 2 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | package jetbrains.mps.buildlanguage.structure;
/*Generated by MPS */
import jetbrains.mps.lang.core.structure.BaseConcept;
import jetbrains.mps.smodel.SNode;
import jetbrains.mps.smodel.SModel;
import jetbrains.mps.smodel.SModelUtil_new;
import jetbrains.mps.project.GlobalScope;
public class TargetReference extends ... | true |