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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
d92f5d2d1af856d608057ca7578759449c011f57 | Java | Szabat195727/ZaawansowanaJava2017 | /generics_collections/src/main/java/pl/com/tt/GenericListItem.java | UTF-8 | 472 | 2.828125 | 3 | [] | no_license | package pl.com.tt;
public class GenericListItem<T> {
private T value;
private GenericListItem<T> nextElement;
public GenericListItem(T value) {
super();
this.value = value;
}
public T getValue() {
return this.value;
}
public void setValue(T value) {
this.value = value;
}
public GenericListIte... | true |
57e0f141aa9faf98f7fdda1f014541db435a2c95 | Java | ryank231231/jp.co.penet.gekidanprince | /com/squareup/picasso/MemoryPolicy.java | UTF-8 | 824 | 2.53125 | 3 | [] | no_license | package com.squareup.picasso;
public enum MemoryPolicy {
NO_CACHE(1),
NO_STORE(2);
final int index;
static {
$VALUES = new MemoryPolicy[] { NO_CACHE, NO_STORE };
}
MemoryPolicy(int paramInt1) {
this.index = paramInt1;
}
static boolean shouldReadFromMemoryCache(int paramInt) {
bo... | true |
5923890cfbbe5c4ed654e4fabebe744b969e145c | Java | Drake1804/DemoCode | /app/src/main/java/com/drake1804/f1feedler/model/SocialModel.java | UTF-8 | 1,228 | 2.015625 | 2 | [] | no_license | package com.drake1804.f1feedler.model;
import com.google.gson.annotations.SerializedName;
import io.realm.RealmObject;
/**
* Created by Pavel.Shkaran on 5/26/2016.
*/
public class SocialModel extends RealmObject {
@SerializedName("views")
private int views;
@SerializedName("voting_plus")
private ... | true |
f7a5415865ceb5a910f6088477216daadca05a0a | Java | yishu4geek/code-challenge-master- | /src/models/Image.java | UTF-8 | 2,471 | 2.671875 | 3 | [] | no_license | package models;
import java.util.Date;
public class Image {
/**
* Mandatory fields
*/
private String image_id;
private String verb;
private Date event_time;
private String customer_id;
/**
* Optional fields
*/
private String camera_make;
private String camera_model;... | true |
5ad0d8f5f4295da90d9822adb982d7fcd2c0e0a7 | Java | dveyarangi/temple-defense | /src/main/java/yarangi/game/harmonium/temple/weapons/MinigunBurstLook.java | UTF-8 | 1,753 | 2.125 | 2 | [] | no_license | package yarangi.game.harmonium.temple.weapons;
import javax.media.opengl.GL;
import javax.media.opengl.GL2;
import yar.quadraturin.IRenderingContext;
import yar.quadraturin.IVeil;
import yar.quadraturin.graphics.colors.Color;
import yar.quadraturin.graphics.veils.BlurVeil;
import yar.quadraturin.objects.ILoo... | true |
ab5ca2361b1c52b2604810dffe3690256ade726b | Java | abhiyankgoyal/Java | /OOPs/src/inheritance/multilevelInheritance.java | UTF-8 | 955 | 4.09375 | 4 | [] | no_license | package inheritance;
class A{
private int height;
A(int height){
this.height = height;
}
public int getHeight() {
return this.height;
}
}
class B extends A{
private int weight;
B(int height, int weight){
super(height);
this.weight = weight;
}
public int getWeight() {
return this.weight;... | true |
04c65c060d220397cfe50be2b31978d54a3d8624 | Java | ofaruk84/fxreportmanagement | /FxReportManagement/src/fxreportmanagement/Report1/REquipmentController.java | UTF-8 | 8,051 | 1.90625 | 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 fxreportmanagement.Report1;
import com.jfoenix.controls.JFXButton;
import com.jfoenix.controls.JFXRadioButton;
import com.jfoe... | true |
6774820c37a008678016ead265d25808e18aab63 | Java | valenkim/jjn | /src/mapping/GsonView.java | WINDOWS-1252 | 1,905 | 2.453125 | 2 | [] | no_license | package mapping;
import java.io.IOException;
import java.net.URLEncoder;
import java.util.ArrayList;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import mapping.GsonUtil;
import mappingInfo.*... | true |
0fd9c8270a0e7d5226e6a22ce65a0094e77b4e38 | Java | ezAuton/ezAuton | /Visualizer/src/main/java/com/github/ezauton/visualizer/Main.java | UTF-8 | 145 | 1.695313 | 2 | [
"MIT"
] | permissive | package com.github.ezauton.visualizer;
public class Main {
public static void main(String[] args) {
Visualizer.main(args);
}
}
| true |
becf044f6f4e203f61c30ac7994ddd7bc42a38ff | Java | limaofeng/jfantasy | /website/JavaSource/com.fantasy.website/bean/Template.java | UTF-8 | 3,400 | 2.1875 | 2 | [
"MIT"
] | permissive | package org.jfantasy.website.bean;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;
import org.jfantasy.framework.dao.BaseBusEntity;
import org.jfantasy.system.bean.Website;
import org.jfantasy.website.bean.enums.PageType;
import java.util.List;
/**
* ... | true |
f59d20564d710a7e05b7460de7a0c225aba5e08b | Java | moutainhigh/xcdv2 | /bms-buyer-market-api/src/main/java/com/bms/bymt/validator/TerminalMarketTargetAddValidator.java | UTF-8 | 1,566 | 2.15625 | 2 | [] | no_license | package com.bms.bymt.validator;
import com.bms.bymt.bean.param.TerminalMarketTargetRsParam;
import com.framework.validator.DefaultCustomValidator;
import org.apache.commons.collections.CollectionUtils;
import java.util.ArrayList;
import java.util.List;
/**
* Created by tao_zhifa on 2016/12/15.
*/
public class Term... | true |
635cf4e2037d212d70e79b257ce5c51775e818e9 | Java | stevenmcc/MGS | /src/com/bruno/persist/AddressPersist.java | UTF-8 | 2,737 | 2.640625 | 3 | [] | no_license | package com.bruno.persist;
import com.bruno.pojo.Address;
import com.google.appengine.api.datastore.*;
import java.util.ArrayList;
/**
* Created with IntelliJ IDEA.
* Address: bruno
* Date: 15/06/13
* Time: 14:17
* To change this template use File | Settings | File Templates.
*/
public class AddressPersist {
... | true |
0e5acbcc3e19f0390067ddd493a706c98226609e | Java | LighterFighterNB/KibanaWatcher | /WatcherTest/src/main/java/Client/Client.java | UTF-8 | 3,675 | 2.21875 | 2 | [] | no_license | package Client;
import org.apache.http.HttpEntity;
import org.apache.http.HttpHost;
import org.apache.http.util.EntityUtils;
import org.elasticsearch.client.Response;
import org.elasticsearch.client.RestClient;
import org.elasticsearch.client.RestClientBuilder;
import org.json.JSONObject;
import java.io.IOException;
... | true |
4407edce9da85a86c8b96fe259de030a6da90610 | Java | bekiristek/java-coding-samples | /src/com/bekiristek/rea/FindIndex.java | UTF-8 | 901 | 3.65625 | 4 | [] | no_license | package com.bekiristek.rea;
/*
@Author= bekir istek
@Date= 15.07.2021
Question-3 ==> You are given an array of integers.
Your job is to take that array and find an index, n, where the sum of the integers to the left of n is equal to the sum of the integers to the right of n.
If there is no such index that would ... | true |
db65fe9f8cc63ef5ce688fdff6221dcd1b7b4d35 | Java | robertwatkins/playground-kathleen | /src/tictactoe.java | UTF-8 | 4,120 | 3.59375 | 4 | [] | no_license | import java.util.Scanner;
class tictactoe {
static String[][] gameBoard = new String[3][3];
static boolean debug = true;
static Scanner in = new Scanner(System.in);
static String currentPlayer = "";
private static void initializeGameBoard() {
// set 2d array to sequence of numbers.
// these number... | true |
a6c20506ca86acedad486adf51cd7dc18674c3b1 | Java | zeezov/mavenprojectz | /src/test/java/com/cybertek/tests/TestingPDFDemo.java | UTF-8 | 647 | 2.53125 | 3 | [] | no_license | package com.cybertek.tests;
import com.codeborne.pdftest.PDF;
import org.testng.Assert;
import org.testng.annotations.Test;
import java.io.File;
public class TestingPDFDemo {
// for this test we have new dependency
@Test
public void pdfTest() {
File file = new File("/Users/nshaazizov/Documents... | true |
bf01ce2489825e8e71b95845b92da4e737b6b1cd | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_12f608b697269a6313e074d2aa4ec15ccdd8c468/OracleEnvironment/2_12f608b697269a6313e074d2aa4ec15ccdd8c468_OracleEnvironment_s.java | UTF-8 | 13,356 | 2.3125 | 2 | [] | no_license | package dbfit.environment;
import java.math.BigDecimal;
import java.sql.CallableStatement;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.regex.Pattern... | true |
e86452727bed747f69c7af6addaf066ab60bd417 | Java | programmatix/txn_client | /src/main/java/com/couchbase/sdkdclient/cluster/actions/RebalanceOutAction.java | UTF-8 | 1,155 | 1.929688 | 2 | [] | no_license | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package com.couchbase.sdkdclient.cluster.actions;
import com.couchbase.cbadmin.client.RestApiException;
import com.couchbase.sdkdclient.cluster.CBCluster;
import com.couchbase.sdkdclient.cluster.NodeHost;
import com.cou... | true |
08007ade3bfd12474b11c63c9a0d2c67dda5df4a | Java | rickydomingos97/alura | /bytebank-composto/exercicios/Empresa.java | UTF-8 | 89 | 1.734375 | 2 | [] | no_license | public class Empresa {
String razaoSocial;
String cnpj;
Endereco endereco;
}
| true |
f8bd1f17a89ad30eeafb2e1ff0d293a89382eb62 | Java | Limtov/course_planner | /SIAUKO_ANDREI/CoursePlanner/API/src/main/java/com/andrei/api/transactionDao/ICourseTransactionDao.java | UTF-8 | 474 | 1.976563 | 2 | [] | no_license | package com.andrei.api.transactionDao;
import java.util.Date;
import java.util.List;
import com.andrei.entity.Course;
public interface ICourseTransactionDao extends ITransactionDao<Course> {
public void cloneCourse(int idCourse);
public List<Course> getCoursesAfterDate(Date date);
public List<Course> getCourse... | true |
68a70c8ed3ed1576df53dc7efdf9f3af43a9c8b9 | Java | mdfraz13/workspace | /AlgorithimsProjects/src/com/algorithims/programs/problems/topicwise/Stringbased/ReverseStringWithOutSpecialCharacter.java | UTF-8 | 866 | 3.640625 | 4 | [] | no_license | package com.algorithims.programs.problems.topicwise.Stringbased;
import java.util.Arrays;
public class ReverseStringWithOutSpecialCharacter {
public static void main(String[] args) {
String input1 = "a,b$c"; // c,b$a
String input2 = "a!!!b.c.d,e'f,ghi"; // i!!!hg.f.e.d,...
reverse(input1);
reverse(input2... | true |
b683f5c9019f28d75e35bd63583657e506548a20 | Java | surajraje096/Dev_SuRAj_BDD | /Easyshoppy/qa/TestRunner/TestRunner.java | UTF-8 | 681 | 1.539063 | 2 | [] | no_license | package Com.Easyshoppy.qa.TestRunner;
import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
@RunWith(Cucumber.class)
@CucumberOptions(
features="D:\\shain\\Class_Lecture_49_CuCumber_BDD_3_BackGround\\src\\test\\java\\Com\\Easyshoppy\\qa\\FeatureFile\\Allfeature.f... | true |
a3844bf6ee56917f7ddc800c5eca0844d76936d4 | Java | haimingzhao1/javaWebBase | /bookmanagerlx/src/com/bm/beans/ReaderInfo.java | UTF-8 | 1,707 | 2.609375 | 3 | [] | no_license | package com.bm.beans;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
public class ReaderInfo {
private Integer readerid;
private String name;
private String sex;
private Date birth;
private String address;
private String phone;
public Integer getReaderid() {
return... | true |
57e866a60ddaf0d21ee0b0d4cb666fa560f5e842 | Java | RadRedPanda/RTTBFG | /src/com/company/Main.java | UTF-8 | 158 | 1.625 | 2 | [] | no_license | package com.company;
public class Main {
public static void main(String[] args) {
// write your code here
System.out.println("HI");
}
}
| true |
c6348bd881d683e7b0eb56a67d9219599a9dbe1d | Java | Avangarde2225/SeleniumWorks | /src/day6/FindByXPathSolution.java | UTF-8 | 1,440 | 2.8125 | 3 | [] | no_license | package day6;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.chrome.ChromeDriver;
import java.util.List;
public class FindByXPathSolution {
// https://www.seleniumeasy.com/test/input-form-demo.html
// fill in the form usi... | true |
27beca7e389a983ee6697c23090b0d59635fa02d | Java | bayrktlihn/unit-test-examples | /src/main/java/com/bayrktlihn/courserecord/application/StudentServiceImpl.java | UTF-8 | 2,585 | 2.53125 | 3 | [] | no_license | package com.bayrktlihn.courserecord.application;
import com.bayrktlihn.courserecord.model.Course;
import com.bayrktlihn.courserecord.model.Lecturer;
import com.bayrktlihn.courserecord.model.LecturerCourseRecord;
import com.bayrktlihn.courserecord.model.Semester;
import com.bayrktlihn.courserecord.model.Student;
import... | true |
03b164f0c3609db3ff7774ab6157f6cdf74f9e2b | Java | gcc2ge/ForgE | /editor/src/macbury/forge/editor/undo_redo/actions/CursorChangeable.java | UTF-8 | 995 | 2.125 | 2 | [
"MIT"
] | permissive | package macbury.forge.editor.undo_redo.actions;
import com.badlogic.gdx.math.collision.BoundingBox;
import macbury.forge.blocks.Block;
import macbury.forge.editor.selection.AbstractSelection;
import macbury.forge.editor.selection.SelectType;
import macbury.forge.editor.undo_redo.Changeable;
import macbury.forge.utils.... | true |
3734841f0e6441cc9971c1a807a9b96ad69b10c3 | Java | zgq346712481/macaca-reporter-java-plugin | /src/main/java/com/macacajs/reporter/MacacaTestExecutionListener.java | UTF-8 | 18,754 | 1.90625 | 2 | [
"MIT"
] | permissive | package com.macacajs.reporter;
import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.macacajs.reporter.models.*;
import lombok.SneakyThrows;
import org.junit.platform.engine.TestExecutionResult;
import org.junit.platform.launcher.TestExecutionListener;
import or... | true |
c5d7bf4bac152bea847486dae18032462f9e0a64 | Java | zhongxingyu/Seer | /Diff-Raw-Data/2/2_08074e82f22e5d3af9ae88cca2ae2d107015ebf0/WumpusWorldTester/2_08074e82f22e5d3af9ae88cca2ae2d107015ebf0_WumpusWorldTester_s.java | UTF-8 | 7,147 | 2.703125 | 3 | [] | no_license | package tests;
import demos.WumpusWorld;
import vitro.*;
import vitro.graph.*;
import vitro.util.*;
import java.util.*;
import org.junit.Test;
import static org.junit.Assert.*;
public class WumpusWorldTester {
@Test
public void testDone() {
WumpusWorld w = new WumpusWorld();
Node node0 = w.c... | true |
7fff4ca4783a9ee3bf76dc643559ea13559b3bcc | Java | daiqi77777/tensquare_parent | /tensquare_sms/src/main/java/com/tensquare/sms/listener/SmsListener.java | UTF-8 | 707 | 2.09375 | 2 | [] | no_license | package com.tensquare.sms.listener;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import java.util.HashMap;
@Service
@RabbitListener(que... | true |
4314492630ed15617120726cf761849bcda5cd85 | Java | PXAV/keyboard-api-spigot | /src/de/pxav/keyboard/listeners/InventoryClickListener.java | UTF-8 | 7,060 | 2.421875 | 2 | [] | no_license | package de.pxav.keyboard.listeners;
// The project SpigotMC.org - KeyboardAPI is developed and updated by PXAV.
// You are not allowed to claim this as your own, give it to
// others or even sell it.
//
// Contact me on:
// YouTube: https://www.youtube.com/channel/UCtXSAGTwurKVeEbwEKMlFog
// Twitter: https://twitter.... | true |
20bcde9e6d369b7722b17282a5cb2f7d2b439470 | Java | erasx3/Avanzada | /programa avanzada/src/Visual/GenerarCompraInter.java | UTF-8 | 25,840 | 1.9375 | 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 Visual;
import Logica.Articulo;
import Logica.Consumible;
import Logica.Detalle;
import Logica.DetalleCompraVenta;
import Logi... | true |
373d42d2a61a5fe9c639ee34d24f683a4e041c0d | Java | suzanasaraiva/Compilador3va | /Compilador_3va/src/compiler/tree/command/DeclVariavel.java | UTF-8 | 1,706 | 2.9375 | 3 | [] | no_license | package compiler.tree.command;
import java.util.LinkedList;
import compiler.syntax.Simbolo;
import compiler.syntax.TabelaSimbolos;
import compiler.tree.DeclGlobal;
import compiler.tree.Tipo;
public class DeclVariavel implements Comando, DeclGlobal {
private LinkedList<String> idents;
private Tipo tipo;
... | true |
0c7802a5bf99a006a85839e80d9e2e8f892c8c9e | Java | Suvidyapawaskar/Mercurytscucumberprojdemo | /src/test/java/com/mt/steps/Loginsteps.java | UTF-8 | 3,443 | 2.25 | 2 | [] | no_license | package com.mt.steps;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import cucumber.api.java.en.And;
imp... | true |
c8ad692a1674bbee83f2ffa2a0cc5d88135ba872 | Java | storagebits/Vide | /src/de/malban/vide/vecx/cartridge/DS2431.java | UTF-8 | 39,945 | 1.9375 | 2 | [] | no_license |
package de.malban.vide.vecx.cartridge;
import de.malban.config.Configuration;
import de.malban.gui.CSAMainFrame;
import de.malban.gui.panels.LogPanel;
import java.io.File;
import java.io.Serializable;
// no overdrive emulation!
// no emulation of the ID code
// no protection of banks emulated
// main d... | true |
a4c0ae37074203ef049886516474994efa3fb8cb | Java | CynPa/gambaSoftware | /MIO/AS2/src/main/java/com/asinfo/as2/programacion/TareaSincronizarGuiaRemision.java | UTF-8 | 3,037 | 1.9375 | 2 | [] | no_license | /* 1: */ package com.asinfo.as2.programacion;
/* 2: */
/* 3: */ import com.asinfo.as2.compronteselectronicos.ServicioComprobanteElectronicoPeriodico;
/* 4: */ import com.asinfo.as2.enumeraciones.DocumentoBase;
/* 5: */ import com.asinfo.as2.utils.ServiceLocator;
/* 6: */ import java.io.PrintStre... | true |
93800778b81e99745ab43c0528368f6a2f5ee5ab | Java | Paulokim1/Q2_PI_DesAgil_2021.1 | /src/br/insper/edu/desagil/pi/Video.java | UTF-8 | 913 | 2.90625 | 3 | [] | no_license | package br.insper.edu.desagil.pi;
import java.util.HashMap;
import java.util.Map;
public class Video {
private int id;
private Usuario usuario;
private Produto produto;
private Map<Usuario, Integer> avaliacoes;
public Video(int id, Usuario usuario, Produto produto) {
this.id = id;
this.usuario = usuario;
... | true |
4ccdee6367761de757e1382dbf3cfd4d4bd9f2b8 | Java | moutainhigh/sunnyday | /pst/src/main/java/com/softtek/pst/controller/FinanceController.java | UTF-8 | 13,012 | 2.015625 | 2 | [] | no_license | package com.softtek.pst.controller;
import java.io.IOException;
import java.io.OutputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
imp... | true |
c937a5df038193f28a92d69b400391518ee8c0d7 | Java | vasylya/kamon.io | /_code_examples/kamon-core-examples/src/main/java/kamon/examples/java/TraceContextManipulation.java | UTF-8 | 2,569 | 2.984375 | 3 | [] | no_license | package kamon.examples.java;
import kamon.Kamon;
import kamon.trace.Segment;
import kamon.trace.TraceContext;
import kamon.trace.Tracer;
import scala.Some;
public class TraceContextManipulation {
public static void main(String[] args) throws InterruptedException {
Kamon.start();
// tag:creating-a-trace-co... | true |
8f5f6f2772312f79ec8d952eaf2a2b222ba9cd4c | Java | chrismwilliams/aquarium-sim | /UserCode/Manager/PreyLvlManagerTest.java | UTF-8 | 1,505 | 2.65625 | 3 | [] | no_license | package UserCode.Manager;
import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
/**
* The test class PreyLvlManagerTest for testing the PreyLvlManager production class.
*
* @author Chris Williams
* @version 3.0
*
* Test Conditions
*
* 1) Construction (def... | true |
e8ebce2e5ecc58a24b9dfb730e95678494887be6 | Java | ikhlef/informatique_statistique_java | /IKHLEF_Projet3_LI323/src/foufa/Exercice2.java | UTF-8 | 3,276 | 3.296875 | 3 | [] | no_license | package foufa;
import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;
public class Exercice2 {
public static int K = 6;
public static double p = 0.02;
public static double q = 0.01;
public static double[] resolutionGaussSeidel(double[][] P, int ni... | true |
91f866e80ff4bdb07b21c0d7fa1ab2afc34dd41c | Java | jaydenwangwei/code | /open-source/open-source-design-pattern/src/main/java/com/jayden/design/pattern/factory/factorymethod/SimpleFactoryImpl.java | UTF-8 | 313 | 2.296875 | 2 | [] | no_license | package com.jayden.design.pattern.factory.factorymethod;
import com.jayden.design.pattern.factory.enyity.ICourse;
import com.jayden.design.pattern.factory.enyity.SimpleCourseImpl;
public class SimpleFactoryImpl implements IFactory {
public ICourse iCourse() {
return new SimpleCourseImpl();
}
}
| true |
03d4e9d3d8de399c60931c585ba6bf797ccf69ab | Java | falcuun/LolChmapGenerator | /src/namegenerator/Helpers/JSONParser.java | UTF-8 | 1,680 | 2.84375 | 3 | [] | no_license | package namegenerator.Helpers;
import com.google.gson.*;
import namegenerator.Models.Champion;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.*;
public class JSONParser {
public static ArrayList<Champion> FromJsonToChampions() {
String championsJSON ... | true |
9875f674eb47a5bfe649a1cc727702cf2348d8c7 | Java | SRIDHAR42/code-scratch | /src/main/java/intrvwbit/RainWaterTrapped.java | UTF-8 | 796 | 2.984375 | 3 | [] | no_license | package intrvwbit;
import java.util.ArrayList;
public class RainWaterTrapped {
public int solve(ArrayList<Integer> A) {
int n = A.size();
ArrayList<Integer> left = new ArrayList<Integer>();
ArrayList<Integer> right = new ArrayList<Integer>();
left.add(A.get(0)); //init
f... | true |
306a109c4292079f99e2deefe3e319ca1507da71 | Java | PavlidisLab/Gemma | /gemma-core/src/test/java/ubic/gemma/core/loader/expression/arrayDesign/AffyProbeReaderTest.java | UTF-8 | 3,587 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | /*
* The Gemma project
*
* Copyright (c) 2006 University of British Columbia
*
* 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
*
... | true |
9bdbdeb467e641dd71f4f03c62c82b4050651a4f | Java | wangyne/flinkdemo | /src/main/java/com/wy/stream2kafka/MySqlTwoPhaseCommitSink.java | UTF-8 | 2,861 | 2.390625 | 2 | [] | no_license | package com.wy.stream2kafka;
import org.apache.flink.api.common.ExecutionConfig;
import org.apache.flink.api.common.typeutils.base.VoidSerializer;
import org.apache.flink.api.java.typeutils.runtime.kryo.KryoSerializer;
import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.node.ObjectNode;
import org.a... | true |
74669a28453117c7073363bc02b94ac30f9720d3 | Java | jjromannet/HomeAutomationCoreOsgiProject | /CoalBurnerModuleDS/src/main/java/net/jjroman/homeautomation/osgi/consumer/coalburnerds/CoalBurnerState.java | UTF-8 | 593 | 2.140625 | 2 | [] | no_license | package net.jjroman.homeautomation.osgi.consumer.coalburnerds;
/**
* This enum should be used to define current state of coalburner
* ACTIVE - when water tank temperature is below given temp and coal burner actively trying to increase the temperature
* STANDBY - when max temperature condition has been satisfied but... | true |
a0c15180fd8341cfbddfd29714c04e489ecdc196 | Java | zeruth/quest-helper | /src/main/java/com/questhelper/quests/kingsransom/LockpickPuzzle.java | UTF-8 | 4,654 | 2.09375 | 2 | [
"BSD-2-Clause"
] | permissive | /*
* Copyright (c) 2020, Zoinkwiz
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions... | true |
d0a2f95a16c71ac471f782405bef599447753e61 | Java | qql2019/ShopSystem | /day2612/src/com/cissst/bysales/service/impl/Usersserverimpl.java | UTF-8 | 535 | 2.046875 | 2 | [] | no_license | package com.cissst.bysales.service.impl;
import com.cissst.bysales.dao.Usersdao;
import com.cissst.bysales.dao.impl.Usersdaoimpl;
import com.cissst.bysales.daomain.Users;
import com.cissst.bysales.service.Usersservice;
/**登录处理
*
* @author Administrator
*
*/
public class Usersserverimpl implements Usersservice {
... | true |
a909794e23dbe1341cf622e546fb3315835d435e | Java | sawal16/j8unit | /repository/src/test/java/org/j8unit/repository/javax/swing/text/DocumentFilterClassTest.java | UTF-8 | 3,548 | 2.46875 | 2 | [] | no_license | package org.j8unit.repository.javax.swing.text;
import static org.junit.Assert.fail;
import javax.swing.text.DocumentFilter;
import javax.swing.text.DocumentFilter.FilterBypass;
import org.j8unit.repository.categories.Draft;
import org.j8unit.runners.J8Unit4;
import org.junit.Ignore;
import org.junit.Test;
import org.... | true |
f51ddd2ab9f549679024b329303769b207625f1d | Java | GraemeHBrown/SSS | /src/test/java/DataRepositoryTest.java | UTF-8 | 2,051 | 2.671875 | 3 | [] | no_license | import com.graemehbrown.simplestockmarket.Model.Stock;
import com.graemehbrown.simplestockmarket.Model.StockType;
import com.graemehbrown.simplestockmarket.Model.Trade;
import com.graemehbrown.simplestockmarket.Model.TradeIndicator;
import com.graemehbrown.simplestockmarket.Repository.DataRepository;
import org.junit.B... | true |
b9e8cef53bccd546fda658d785692b77ee77a635 | Java | yulanheng/pattern | /src/main/java/cn/ylh/pattern/observer/ObserverTest.java | UTF-8 | 503 | 3.328125 | 3 | [] | no_license | package cn.ylh.pattern.observer;
/**
*观察者模式
*/
public class ObserverTest {
public static void main(String[] args) {
//创建主题对象
ConcreteSubject subject=new ConcreteSubject();
//创建观察者对象
Observer observer=new ConcreteObserver();
Observer observer2=new ConcreteObserver();
//将观察者对象关联到主题对象
subjec... | true |
b6ef75e23526adbbe2dc700af5a82a4b21625c8b | Java | syrus-ru/amficom | /AMFICOM/v1/prediction/src/com/syrus/AMFICOM/Client/Prediction/UI/TimeDependence/TimeDependenceTable.java | WINDOWS-1251 | 6,498 | 2.046875 | 2 | [] | no_license | package com.syrus.AMFICOM.Client.Prediction.UI.TimeDependence;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Image;
import java.awt.Toolkit;
import javax.swing.ImageIcon;
import javax.swing.JInternalFrame;
import javax.swing.JScrollPane;
import javax.swing.WindowConstants;
import javax.swing.ev... | true |
48936b740e5c1913963e849d8caf998c5d241f7b | Java | eiiches/jackson-jq | /jackson-jq/src/main/java/net/thisptr/jackson/jq/internal/tree/matcher/PatternMatcher.java | UTF-8 | 1,137 | 2.078125 | 2 | [
"MIT",
"CC-BY-3.0",
"Apache-2.0"
] | permissive | package net.thisptr.jackson.jq.internal.tree.matcher;
import java.util.List;
import java.util.Stack;
import com.fasterxml.jackson.databind.JsonNode;
import net.thisptr.jackson.jq.Scope;
import net.thisptr.jackson.jq.exception.JsonQueryException;
import net.thisptr.jackson.jq.internal.misc.Functional;
import net.this... | true |
40fa9ba04e01c197ed9a7272ccd281a933abbf20 | Java | Arehns/myAutomation | /src/test/java/stepdefinitions/StringModifier.java | UTF-8 | 1,532 | 3.078125 | 3 | [] | no_license | package stepdefinitions;
import java.util.Random;
public class StringModifier {
//In order to generate new emails and usernames
private String characters = "qwertyuiopasdfghjklzxcvbnm1234567890";
private String newEmail = "";
private String newUser = "";
private String newTooLongUser = "";
pr... | true |
d227e223a1fb739b80e38b2c9e1b54846ee1d371 | Java | AdrianRomanski/university-java | /src/main/java/basics_of_programming/lectures/lecture_2/PPJWin.java | UTF-8 | 867 | 3.25 | 3 | [] | no_license | package basics_of_programming.lectures.lecture_2;
public class PPJWin {
public static void main(String[] args) {
System.out.println("Hello PPJ");
System.out.println("Hello PPJ");
// System.out.println(null);
System.out.println(5);
System.out.println(05); // 5 - Octal Decimal... | true |
f9cc1501afb87ea7aa1fbf8142b96f4d66348e02 | Java | haweiYu/spark_defaultDataSources_hbase | /src/main/scala/utils/KerberosAuthenticator.java | UTF-8 | 2,175 | 2.65625 | 3 | [] | no_license | package utils;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.security.UserGroupInformation;
import java.io.IOException;
/**
* Kerberos认证工具类
*/
public class KerberosAuthenticator {
public static void authentication(String authenticationType, String krb5FilePath, String principal, String keytab) ... | true |
e3bf0848966a218f7dac0d06c04098e0c2b6c8d0 | Java | AlviDwi/Tugas-Modul-1 | /src/Modul1/tugasno2prak.java | UTF-8 | 1,511 | 3.015625 | 3 | [] | no_license | package Modul1;
import java.net.InetAddress;
import java.net.UnknownHostException;
import javax.swing.*;
import java.io.IOException;
public class tugasno2prak {
public static void main(String[] args) throws UnknownHostException, IOException {
String[] options = {"HOST", "IP"};
int a = JOpt... | true |
8ec7c06ec2b0ee0ed99a69570444de3004b928b5 | Java | Peachball/ShadowStone | /src/client/tooltip/TooltipCard.java | UTF-8 | 466 | 2.375 | 2 | [] | no_license | package client.tooltip;
import server.card.ClassCraft;
public abstract class TooltipCard extends Tooltip {
public int cost, id;
public ClassCraft craft;
public TooltipCard(String name, String description, String imagepath, ClassCraft craft, int cost, int id,
Tooltip... references) {
super(name, cos... | true |
3e9b41093470d5d93ec635bef2413e2147ea9f24 | Java | rohiniy/interview-algorithms | /src/com/basicAlgorithms/arrays/RemoveKDigitsToFormSmallestNo.java | UTF-8 | 1,522 | 3.984375 | 4 | [] | no_license | /**
* Get the smallest possible number by removing k digits from the number
* 23178 k=1 output = 2178 remove 3
* 23178 k = 3, remove 3 elements and make the number the smallest = 17
*/
package com.basicAlgorithms.arrays;
import java.util.*;
public class RemoveKDigitsToFormSmallestNo {
public String removeKdigi... | true |
62b7d73a7273854a4785e3a258e81f80f54d1294 | Java | Dmitriy1Fokin/tavrzcms3 | /src/main/java/ru/fds/tavrzcms3/specification/impl/SpecificationImpl.java | UTF-8 | 3,429 | 2.421875 | 2 | [] | no_license | package ru.fds.tavrzcms3.specification.impl;
import org.springframework.data.jpa.domain.Specification;
import ru.fds.tavrzcms3.dictionary.Operations;
import ru.fds.tavrzcms3.specification.SearchCriteria;
import javax.persistence.criteria.CriteriaBuilder;
import javax.persistence.criteria.CriteriaQuery;
import javax.p... | true |
a09b892e393d331dbb20d5def1637161969a77cc | Java | hyunkin2127/CodingInterviewJava | /main.java | UTF-8 | 14,071 | 2.15625 | 2 | [] | no_license | import dynamicProblems.FindMaxAsc;
import dynamicProblems.FindMaxSum;
import etc.memoization;
import graph.*;
import heap.ArrayHeap;
import heap.ArrayHeap2;
import linkedList.LinkedList;
import queue.ArrayQueue;
import sort.BaseSort2;
import sort.MergeSort;
import sort.QuickSort;
import sort.quick;
import stack.FindMax... | true |
7ce0a6a54315234b22d0ce57c4b777576dd3c3f2 | Java | yevhenii-filatov/denovo-linkedin | /projects/linkedin-scraper/src/main/java/com/dataox/linkedinscraper/parser/parsers/LinkedinExperienceParser.java | UTF-8 | 5,922 | 2.25 | 2 | [] | no_license | package com.dataox.linkedinscraper.parser.parsers;
import com.dataox.linkedinscraper.parser.LinkedinParser;
import com.dataox.linkedinscraper.parser.dto.LinkedinExperience;
import lombok.extern.slf4j.Slf4j;
import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import org.springframework.stereotype.Service;... | true |
936ceabda168b664cf2fafaf055668d910e784c4 | Java | hzf007/WatchPlus | /greendao/src/main/java/com/example/mobi/greendao/dbmanager/GoodsDbManager.java | UTF-8 | 706 | 2.1875 | 2 | [] | no_license | package com.example.mobi.greendao.dbmanager;
import android.content.Context;
import com.example.mobi.greendao.BaseDao;
import com.example.mobi.greendao.entity.Goods;
/**
* Created by hzf on 2016/12/15 0015.
*/
public class GoodsDbManager extends BaseDao<Goods> {
public GoodsDbManager(Context context) {
... | true |
ed5debc394d6a64e343990630219c13cca5c960c | Java | InMobi/incubator-falcon | /metrics/src/main/java/org/apache/falcon/aspect/AbstractFalconAspect.java | UTF-8 | 3,999 | 2.234375 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | true |
b65b2afc9d669105d27eaa80dfa08bdb32425e63 | Java | JmcRobbie/FS_numerical-simulation | /simulator/src/main/java/msp/simulator/Main.java | UTF-8 | 2,035 | 2.234375 | 2 | [] | no_license | /* Copyright 20017-2018 Melbourne Space Program
* 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 ... | true |
57d343ca73108b5c7a70bb27b8d1d7b4299487f0 | Java | fancyboy2050/sockethttpconvert | /src/main/java/com/xgama/sockethttpconvert/client/ChargeClientHandler.java | UTF-8 | 2,722 | 2.28125 | 2 | [] | no_license | package com.xgama.sockethttpconvert.client;
import java.io.IOException;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelHandlerContext;
import org.jboss.netty.channel.ChannelStateEvent;
import org.jboss.netty.channel.ExceptionEvent;
import org.jboss.netty.channel.MessageEvent;
import org... | true |
e1c1fa545c7ec49fbc06e4fd4ac658cce5969bd2 | Java | kdheeraj-cse/TestCaseGenerateWeb | /Dummy/InputXmlRead.java | UTF-8 | 8,759 | 2.390625 | 2 | [] | no_license | package operations;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
import org.w3c.dom.Document;
import org.w3c.dom.NodeList;
import org.w3c.dom.Node;
import utilities.TestAttribute;
import java.io.File;
import java.util.ArrayList;
public class InputXmlRead {
static final... | true |
7a80324ac8dfee74ccbdbe5e2bb253e623757aff | Java | jihazard/android | /ex0729_viewer/app/src/main/java/com/example/ex0729_viewer/API/Api.java | UTF-8 | 215 | 1.78125 | 2 | [] | no_license | package com.example.ex0729_viewer.API;
public class Api {
public static final String BASE_URL = "https://script.google.com/macros/s/AKfycbxqog2NIKw1W5_mWgJfWhr0vPT5p3TFnIcrUzrB5WtXXVa0G9I/exec?action=read";
}
| true |
0ec6888d794e5b0ee1951d26af8567cf09e6d3fe | Java | TaoGe96/GLLMaven_Project1_Fall2020 | /src/main/java/GLListIterator.java | UTF-8 | 1,498 | 2.953125 | 3 | [] | no_license | import java.util.ListIterator;
public class GLListIterator<E> implements ListIterator<E> {
GenericLinkedList<E>.Node curr;
GenericLinkedList<E> Glist;
int index;
public GLListIterator(int i,GenericLinkedList<E>.Node curr,GenericLinkedList<E> Glist){
this.curr=curr;
this.Glist=Glist;
index=i;
}
... | true |
33d1baa3f813205d227cfb501b3dc317388eac4a | Java | tomii07/ej-java-111mil | /EjerciciosJuegos/src/methods/Usuario.java | UTF-8 | 325 | 2.84375 | 3 | [] | no_license | package methods;
import java.util.Scanner;
public class Usuario {
public static String usuario(){
Scanner sc = new Scanner(System.in);
System.out.print("Tu eleccion?" + "[piedra ; papel ; tijera]: ");
String eleccion = sc.next();
System.out.print("\n");
return eleccion;
... | true |
ff093881aa8680299b7b44cae85a53285ed6ddb5 | Java | antobattista89/Cuenta2 | /test/ar/edu/unlam/pb2/cuenta2/TestCuenta.java | UTF-8 | 601 | 2.3125 | 2 | [] | no_license | package ar.edu.unlam.pb2.cuenta2;
import static org.junit.Assert.assertNotNull;
import org.junit.Test;
public class TestCuenta {
@Test
public void queSePuedaCrearUnaCuentaSueldo() {
CuentaSueldo2 cuentaSueldo = new CuentaSueldo2("Anto");
assertNotNull(cuentaSueldo);
}
@Test
public void queSePuedaCrearU... | true |
3d88275a84c534739a43a2938e758df865a0796e | Java | xiaohao3137/SmsForwarder | /app/src/main/java/com/idormy/sms/forwarder/model/AppInfo.java | UTF-8 | 1,248 | 2.21875 | 2 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | permissive | package com.idormy.sms.forwarder.model;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import androidx.annotation.NonNull;
import lombok.Data;
@Data
public class AppInfo {
public String pkgName;
public String appName;
public Drawable appIcon;
public Intent ap... | true |
cecc58832231b272e2e86fb6dd247643790a1b2b | Java | marshauf/uni | /irrlicht/Irrlicht/src/com/marcelhauf/irrlicht/world/PhysicsObject.java | UTF-8 | 1,532 | 2.984375 | 3 | [] | no_license | package com.marcelhauf.irrlicht.world;
import com.badlogic.gdx.math.Vector2;
public class PhysicsObject {
protected final Vector2 acceleration = new Vector2(0,0);
protected final Vector2 position = new Vector2(0,0);
protected final Vector2 velocity = new Vector2(0,0);
public Vector2 getAcceleration(Vector2 valu... | true |
eac73472d51f68bf374c4eb152e1a8cf4209f222 | Java | CalumMortimer/clean-up-application | /Clean-Up-Application/app/src/main/java/com/example/communitycleanup/Data/LogIssueDatabase.java | UTF-8 | 1,862 | 2.421875 | 2 | [] | no_license | package com.example.communitycleanup.Data;
import android.content.ContentValues;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import com.example.communitycleanup.DataTransfer.LogAnIssue;
public class LogIssueDatabase extends SQLiteOp... | true |
7996fc3dafd6ea8f0b9b83ece47d15e425df57eb | Java | markphip/testing | /jira-dvcs-connector-api/src/main/java/com/atlassian/jira/plugins/dvcs/service/message/HasProgress.java | UTF-8 | 295 | 1.585938 | 2 | [
"BSD-2-Clause"
] | permissive | package com.atlassian.jira.plugins.dvcs.service.message;
import com.atlassian.jira.plugins.dvcs.model.Progress;
public interface HasProgress extends HasRepository
{
Progress getProgress();
int getSyncAuditId();
boolean isSoftSync();
boolean isWebHookSync();
}
| true |
838aa60377d38fbafdc2709fa6bd2257ff1d06bd | Java | Azgalor/Additional-Buildcraft-Objects-Mod | /common/abo/pipes/PipeTransportItemsCrossover.java | UTF-8 | 1,284 | 2.359375 | 2 | [] | no_license | /**
* Copyright (C) 2011-2012 Flow86
*
* AdditionalBuildcraftObjects is open-source.
*
* It is distributed under the terms of my Open Source License.
* It grants rights to read, modify, compile or run the code.
* It does *NOT* grant the right to redistribute this software or its
* modifications in any form... | true |
f2417cbd4537556aeb8d3d9e179550604a54c510 | Java | FlyingPigQAQ/leetcoding | /src/main/java/com/pigcanfly/leetcoding/s237/DeleteNodeinaLinkedList.java | UTF-8 | 610 | 3.015625 | 3 | [] | no_license | package com.pigcanfly.leetcoding.s237;
/**
* TODO: WOW stupid
*
* The linked list will have at least two elements.
* All of the nodes' values will be unique.
* The given node will not be the tail and it will always be a valid node of the linked list.
* Do not return anything from your function.
* @author Tobby... | true |
483e0365ad9f62b74a0b79e4584f37bbc19e646a | Java | doctormacky/WeChatService | /src/main/java/com/qx/wechat/comm/sdk/request/msg/PassiveTextSendMsg.java | UTF-8 | 640 | 2.15625 | 2 | [] | no_license | package com.qx.wechat.comm.sdk.request.msg;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
/**
*
* @author Macky(liuyunsh@cn.ibm.com)
*
* @date: Apr 12, 2020 12:07:00 PM
*
* @since: 1.0.0
*
*/
public class PassiveTextSendMsg extends PassiveMsg{
private static final long serialVer... | true |
d497fdb99c50474eb0f839fc8245cb290e3e0664 | Java | tranvuluan/quancafe | /Quancafe_TranVuLuan/src/DAL/BanHang/TaoHoaDon/BanKhuVucDAL.java | UTF-8 | 2,300 | 2.484375 | 2 | [] | no_license | package DAL.BanHang.TaoHoaDon;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Vector;
import DAL.MyJDBCUtil;
import DTO.Ban;
import DTO.KhuVuc;
public class BanKhuVucDAL {
private static Connection conn = null;
private static PreparedStatement pstm = null... | true |
e295d4b5200817208f0fc795a854a9b8335f4b31 | Java | yoshiylife/OZonJava | /src/executor/ExCommCipher.java | EUC-JP | 9,787 | 2 | 2 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | /*
Copyright(c) 1996-1998
IPA, ETL, AT21, FSIABC, FXIS, InArc, MRI, NUL, SBC, Sharp, TEC, TIS
All rights reserved. No guarantee.
This technology is a result of the Advanced Software Enrichment
Project of Information-technology Promotion Agency, Japan (IPA).
Permissions to use, copy, modify and distribute ... | true |
60ee69b379ba079a755db4bd093f3b0ea984d418 | Java | haodoan/AndroidTVTest | /app/src/main/java/com/jindo/FPTTV/data/ChannelProvider.java | UTF-8 | 10,757 | 1.984375 | 2 | [] | no_license | package com.jindo.FPTTV.data;
import android.content.ContentProvider;
import android.content.ContentProviderOperation;
import android.content.ContentProviderResult;
import android.content.ContentResolver;
import android.content.ContentUris;
import android.content.ContentValues;
import android.content.Context;
import a... | true |
c3eb037a8d39bcc217b98d7a03856c65ab71b672 | Java | EliasFrank/Algotithm | /src/day/hl2020_09_24/TwoSum.java | IBM855 | 1,142 | 3.796875 | 4 | [] | no_license | package day.hl2020_09_24;
public class TwoSum {
public static void main(String[] args) {
int[] numbers = {5,25,75};
int target = 100;
int[] result = new TwoSum().twoSum(numbers, target);
System.out.println(result[0] + " " + result[1]);
}
public int[] twoSum(int[] numbers, int target) {
if(numbers == null ... | true |
3be1c989f1eec39cf4a6878123310cb1349ed243 | Java | zyfncg/compilerLabs | /src/lexer/DFA.java | UTF-8 | 1,261 | 3.046875 | 3 | [] | no_license | package lexer;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;
/**
* Created by st0001 on 2016/10/27.
*/
public class DFA {
private static int STATE_NUM = 0;
private int stateID = 0;
private Set<NFANode> nfaStates = new HashSet<>();
private String dfaName;
boolean acce... | true |
65cd892415e3b3c24edd00bab05265bc2f688adb | Java | cryptomator/siv-mode | /src/main/java9/org.cryptomator.siv/ThreadLocals.java | UTF-8 | 232 | 2.09375 | 2 | [
"MIT"
] | permissive | package org.cryptomator.siv;
import java.util.function.Supplier;
class ThreadLocals {
private ThreadLocals() {
}
static <S> ThreadLocal<S> withInitial(Supplier<S> supplier) {
return ThreadLocal.withInitial(supplier);
}
}
| true |
6e0cff4d802fc7b476e85e291d09b26ca7771b66 | Java | edmsvche/railway-station | /src/main/java/com/example/railwaystation/service/impl/TicketServiceImpl.java | UTF-8 | 2,192 | 2.21875 | 2 | [] | no_license | package com.example.railwaystation.service.impl;
import com.example.railwaystation.model.Ticket;
import com.example.railwaystation.repository.TicketRepository;
import com.example.railwaystation.service.TicketService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.S... | true |
d3521c0e70323002fd39a5010a8ec7a7a0fa4e69 | Java | zhengqingya/java-workspace | /SpringCloud系列/02-Sentinel 1.8.4 规则持久化到Nacos/sentinel-dashboard-1.8.4-nacos/src/main/java/com/alibaba/csp/sentinel/dashboard/rule/nacos/NacosConfig.java | UTF-8 | 1,286 | 1.96875 | 2 | [
"MIT"
] | permissive | package com.alibaba.csp.sentinel.dashboard.rule.nacos;
import com.alibaba.nacos.api.PropertyKeyConst;
import com.alibaba.nacos.api.config.ConfigFactory;
import com.alibaba.nacos.api.config.ConfigService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
impo... | true |
becc6d7d49083eeecbbaeccedc56c8def481057b | Java | Namikon/TecTech | /src/main/java/com/github/technus/tectech/compatibility/thaumcraft/definitions/iElementalAspect.java | UTF-8 | 189 | 1.609375 | 2 | [
"MIT"
] | permissive | package com.github.technus.tectech.compatibility.thaumcraft.definitions;
/**
* Created by Tec on 21.05.2017.
*/
public interface iElementalAspect {
Object materializeIntoAspect();
}
| true |
7e1d383bbe8c9449619c09d281ca9cad829ca5fc | Java | fnuecke/Circuity | /src/main/java/li/cil/lib/api/CapabilitiesAPI.java | UTF-8 | 1,169 | 2.578125 | 3 | [
"CC0-1.0",
"MIT",
"LicenseRef-scancode-public-domain"
] | permissive | package li.cil.lib.api;
import li.cil.lib.api.capabilities.WrapperProvider;
import net.minecraftforge.common.capabilities.Capability;
/**
* Access to capability wrappers.
*/
public interface CapabilitiesAPI {
/**
* Register a new capability wrapper for the specified capability.
*
* @param capabil... | true |
1db60861f01c06bd4d988213f3513c5055f98a5e | Java | Kanchana009/kanchanaOOPsAssignmentSolution | /HrDepartment.java | UTF-8 | 616 | 2.734375 | 3 | [] | no_license | package com.gl.projectone.java;
public class HrDepartment
{
public HrDepartment()
{
System.out.println("Welcome to Hr Department");
}
public String departmentName()
{
return "Hr Department";
}
public String getTodaysWork()
{
return "Fill today's worksh... | true |
43ce2457b6a67fc7240858092aad5ebf617db80c | Java | vineetsemwal/cg-javareact-2021-ls | /spring/bootschoolmswithjpa/src/main/java/com/cg/apps/bootschoolmswithjpa/dao/StudentDaoImpl.java | UTF-8 | 1,164 | 2.8125 | 3 | [] | no_license | package com.cg.apps.bootschoolmswithjpa.dao;
import java.util.*;
import com.cg.apps.bootschoolmswithjpa.entities.Student;
import com.cg.apps.bootschoolmswithjpa.exceptions.StudentNotFoundException;
import org.springframework.stereotype.Repository;
import javax.persistence.EntityManager;
import javax.persistence.Pers... | true |
12b72fbffcda203ca564774e4fd6056b3813dcaf | Java | the-lazy-val/leetcode-premium | /google-prep/arrays-strings/849_Maximize_Distance_to_Closest_Person.java | UTF-8 | 4,260 | 3.796875 | 4 | [] | no_license | /**
My solution: 2 ms
beats 74%
*/
class Solution {
public int checkMax(int currmax, int[] seats, int start, int end){
int max = currmax;
if(start == end){
if(1 > max){
max = 1;
}
}else... | true |
18737b01779cc952e1e6086a57ea9766f79b5a9a | Java | jeromeSamson/Pizzeria | /src/main/java/fr/pizzeria/ihm/menu/option/UpdatePizza.java | UTF-8 | 2,924 | 2.90625 | 3 | [] | no_license | package fr.pizzeria.ihm.menu.option;
import static fr.pizzeria.ihm.utils.VerificationSaisie.verifCate;
import static fr.pizzeria.ihm.utils.VerificationSaisie.verifSaisiePrix;
import java.sql.SQLException;
import java.util.InputMismatchException;
import java.util.List;
import java.util.Locale;
import java.util.Scanner... | true |
7c6574c21b9f3ad379dcd9046843b889f1b0fee4 | Java | Jacques-Fry/HuaLianTou | /src/main/java/com/transo/hualiantou/pojo/ClassifyRealm.java | UTF-8 | 1,408 | 2.0625 | 2 | [] | no_license | package com.transo.hualiantou.pojo;
import com.fasterxml.jackson.annotation.JsonBackReference;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.io.Serializable;
import java.util.*;
@Entity
@Tabl... | true |
f94dc03b0c06fed5ab7cfd87f86da9820219e8cb | Java | MondayIsSun/J2SE | /J2SE/src/designPatterns/proxyP/imook/staticProxy/Car_Time_Proxy.java | GB18030 | 1,093 | 3.671875 | 4 | [] | no_license | package designPatterns.proxyP.imook.staticProxy;
public class Car_Time_Proxy implements Moveable {
@Override
public void move() {
/**
* ʹͨķʽʵֵļ¼ʻʱ
*/
/**
* дĴ̫ά
*
* ԺҪ¼IJ̹ʻʱ
*
* Ҫʻ֮ǰһЩİȫȵһЩ
*/
/**
* ʹü̳еķʽ
*
* ʹþۺϵķʽ
*
*/
long starttime = System.currentTimeMilli... | true |
1ca2fe94abfa736b9043aa775f190d3ffc448b59 | Java | thenghiapham/w2vcomp | /w2vcomp/src/utils/DiagonalCompositionHeatmap.java | UTF-8 | 1,665 | 2.5 | 2 | [] | no_license | package utils;
import javax.swing.JFrame;
import org.ejml.simple.SimpleMatrix;
import common.HeatMapPanel;
import demo.TestConstants;
//import space.DiagonalCompositionSemanticSpace;
import space.NewDiagonalCompositionSemanticSpace;
public class DiagonalCompositionHeatmap {
public static void main(String[] args... | true |
f69033d6936b48b50989e99c60e7e825ab0d96d9 | Java | Vukky97/Algorithms | /src/co/btksoftware/fibonacci/Fibonacci.java | UTF-8 | 529 | 3.859375 | 4 | [] | no_license | package co.btksoftware.fibonacci;
import java.util.Scanner;
public class Fibonacci {
public static void main(String[] args) {
System.out.print("Length of Fibonacci sequence: ");
Scanner scanner = new Scanner(System.in);
int number = scanner.nextInt();
int fib = Fibo(number);
... | true |
a718eebd8b6e141f1dccdad53cc5c581692f34d4 | Java | abertero/wisc3-project | /common-wisc/src/main/java/cl/wisc3/enums/EvaluationType.java | UTF-8 | 315 | 2.578125 | 3 | [] | no_license | package cl.wisc3.enums;
public enum EvaluationType {
EXECUTION, VERBAL;
public static EvaluationType getByName(String typeStr) {
for (EvaluationType type : values()) {
if (type.name().equals(typeStr)) {
return type;
}
}
return null;
}
}
| true |
3dd3da15fa5c826a21983f1e844aa20c9c127fa6 | Java | shendejun/springcloud | /51CTO/04/microservice-simple-provider-user/src/main/java/com/itmuch/cloud/microservicesimpleprovideruser/repository/UserRepository.java | UTF-8 | 332 | 1.625 | 2 | [] | no_license | package com.itmuch.cloud.microservicesimpleprovideruser.repository;
import com.itmuch.cloud.microservicesimpleprovideruser.entity.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
@Repository
public interface UserRepository extends JpaRepository<Use... | true |
66c4326359b50f9a5c80c56aaeecdb87d7866557 | Java | persesvilhena/gev | /src/br/com/projeto/dao/FuncionarioDao.java | UTF-8 | 5,840 | 2.328125 | 2 | [] | no_license | package br.com.projeto.dao;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import br.com.projeto.bean.CidadeBean;
import br.com.projeto.bean.FuncionarioBean;
import br.com.projeto.conexao.Conexao;
... | true |