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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
a589769751fe26cf059573956364f1ccf860eac3 | Java | kzk-hrd/TechWorld | /shoshinsya9/src/shoshinsya9/SuperMonster.java | UTF-8 | 1,826 | 3.375 | 3 | [] | no_license | package shoshinsya9;
public class SuperMonster extends Monster {
private static int numOfPoisonAttack = 5;
// オーバーライド
public void attackHero(Hero h, Magician ma) {
System.out.println(super.getName() + "の" + h.getName() + "への攻撃!");
System.out.println(h.getName() + "に" + super.getAt() + "のダメージを与えた!");
h.setHp... | true |
ac8686f00daea285edcfe6a4b37568978a9f9eb2 | Java | TuanHarry/TuanTranPlayer | /app/src/main/java/com/example/tuantran/ttplayer/ui/Online/playlistonline/ListFragment.java | UTF-8 | 11,158 | 1.703125 | 2 | [] | no_license | package com.example.tuantran.ttplayer.ui.Online.playlistonline;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.draw... | true |
ba2c98de6b8861d58819315676c038f639880013 | Java | cckmit/MyRepository-1 | /News_xinhua/news_svn/build/intermediates/classes/debug/com/cplatform/xhxw/ui/ui/picShow/PicItemView$$ViewInjector.java | UTF-8 | 1,113 | 1.757813 | 2 | [] | no_license | // Generated code from Butter Knife. Do not modify!
package com.cplatform.xhxw.ui.ui.picShow;
import android.view.View;
import butterknife.ButterKnife.Finder;
public class PicItemView$$ViewInjector {
public static void inject(Finder finder, final com.cplatform.xhxw.ui.ui.picShow.PicItemView target, Object source) {... | true |
5b7a534982e027ce2352a98aa7ce79a0758c390c | Java | thanhtung0316/Mp3-Downloader | /app/src/main/java/com/thanhtung/mp3downloader/ui/online/rank/UsUkFragment.java | UTF-8 | 1,709 | 1.992188 | 2 | [] | no_license | package com.thanhtung.mp3downloader.ui.online.rank;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.databinding.DataBindingUtil;
import androidx.fragment.app.... | true |
2094b228ec032197fa64edb584484b484066568b | Java | franfb/iap | /VisionHIPS/src/hips/images/rgb/ImageRGB.java | UTF-8 | 2,728 | 2.421875 | 2 | [] | no_license | package hips.images.rgb;
import org.w3c.dom.css.RGBColor;
import hips.images.Image;
import hips.region.Region;
import ij.ImagePlus;
import ij.process.ColorProcessor;
public class ImageRGB extends hips.images.Image<PixelValue, Integer> {
public int[][] pixels;
public ImageRGB(ImagePlus impl) {
height = impl.getH... | true |
0864ce5c544d260b00ec0a3e56f7373643f2e14b | Java | hhhuythong1990/7J | /7J-DAL/src/main/java/com/sevenj/model/Project.java | UTF-8 | 2,155 | 2.296875 | 2 | [] | no_license | package com.sevenj.model;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.p... | true |
1a3fa77dd990185b6c343bcb3a6a4617877379ee | Java | asinczak/kursJAVA | /src/pl/com/ttpsc/kursJava/Piotrek/wyklad_7/interfaces/Czlowiek.java | UTF-8 | 267 | 2.015625 | 2 | [] | no_license | package pl.com.ttpsc.kursJava.Piotrek.wyklad_7.interfaces;
public interface Czlowiek extends Zwierze {
default void poruszaj() {
System.out.println("Ide");
}
static void powiedzZdzanie(String zdanie) {
System.out.println(zdanie);
}
}
| true |
2b3d52beec726ffbdc0325277b4d6e62b31aef72 | Java | Leader0721/LeaderMVPRxDemo | /pub/src/main/java/com/example/pub/utils/data/DatabaseExportUtils.java | UTF-8 | 2,184 | 2.65625 | 3 | [] | no_license | package com.example.pub.utils.data;
import android.os.Environment;
import android.text.TextUtils;
import com.example.pub.utils.app.Utils;
import com.example.pub.utils.function.LogUtils;
/**
* @Description:1.DEBUG 属性决定是否导出
* 2.启动导出数据库方法
* @Prject:
* @Package: com.example.pub.utils.data
* @author: Leader
* @date... | true |
702bc943ce25baf9d364e241cd9b710bcbab761d | Java | raiym/leetcode | /src/com/getadhell/leetcode/P477/Solution.java | UTF-8 | 621 | 3 | 3 | [] | no_license | package com.getadhell.leetcode.P477;
/**
* https://leetcode.com/problems/total-hamming-distance/
*/
public class Solution {
public int totalHammingDistance(int[] nums) {
int count = 0;
int bit = 1;
for (int i = 0; i < 32; i++) {
int one = 0;
int zero = 0;
... | true |
bec741e4ccdc3fbdd71337e4c28bd7ae7ef49057 | Java | norppa/TiraLabra | /Tiralabra_maven/src/main/java/sequencealgorithms/PSA.java | UTF-8 | 6,740 | 3.1875 | 3 | [] | no_license | package sequencealgorithms;
import com.mycompany.tiralabra_maven.InputReader;
/**
* Pairwise Sequence Alignment. Superclass that reads two input sequences from a
* file.
*
* @author jtthaavi@cs
*/
abstract class PSA implements Problem {
/**
* The two input sequences.
*/
char[] input1, input2;
... | true |
d0bfe6ead1b062840e41cab0ec7facb67d9771b3 | Java | logicgupta/InSaloonz | /ss/app/src/main/java/com/logistic/logic/e_saloon/Categories/MenShaveFragment.java | UTF-8 | 8,531 | 1.851563 | 2 | [] | no_license | package com.logistic.logic.e_saloon.Categories;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.Uri;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.suppo... | true |
8ea75f01026b5e1dcde77f9cf13d4de5551e75f3 | Java | 66668/FastQrcode3 | /lib_zxing/lib_my_zxing/src/main/java/com/google/myzxing/oned/UPCEANExtensionSupport_S.java | UTF-8 | 1,517 | 1.578125 | 2 | [] | no_license | /*
* Copyright (C) 2010 ZXing authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this string_b 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 |
7c54eb0e93f461a3c591b57aee716241ed57f8eb | Java | ming1305010512/filmRental | /src/main/java/com/learn/arithmetic/pointOffer/twelve_num_power/RecursionWayNumPower.java | UTF-8 | 1,169 | 4.03125 | 4 | [] | no_license | package com.learn.arithmetic.pointOffer.twelve_num_power;
/**
* @Created with IDEA
* @author:longming
* @Date: 2021/6/23
* @Time: 11:24
* @Description:其他方式求解数值的整数次方
*/
public class RecursionWayNumPower {
/**
* 使用递归求解
*
* 如果n是奇数,x^n = (x^n/2)^2*x;如果n是偶数x^n = (x^n/2)^2
* @param base
*... | true |
f955e4c3914e929672b60849fe4bd05bfd3a90da | Java | gepeiyan/myproject | /app/src/main/java/com/example/first/RateManager.java | UTF-8 | 1,325 | 2.421875 | 2 | [] | no_license | package com.example.first;
import android.content.ContentValues;
import android.database.Cursor;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import java.util.List;
public class RateManager {
private DBHelper dbHelper;
private String TBNAME;
publi... | true |
29938833b692091aaae5b93016271be95eae30d3 | Java | Nkzn/RecyclerViewReverseSample | /app/src/main/java/jp/agri_note/recyclerviewreversesample/PeopleAdapter.java | UTF-8 | 2,811 | 2.859375 | 3 | [] | no_license | package jp.agri_note.recyclerviewreversesample;
import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.Li... | true |
19fd85447c7aa8f0b1e96b4fa9960db299a16556 | Java | weiht/nutz-tpl | /nutz-tpl-core/src/main/java/tpl/ds/NutzDataSourceManager.java | UTF-8 | 4,572 | 2.0625 | 2 | [
"Apache-2.0"
] | permissive | package tpl.ds;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;
import java.nio.file.AccessDeniedException;
import java.nio.file.NotDirectoryException;
import java.util.List;
import org.apache.velocity.app.VelocityEngine;
import ... | true |
126f716fd9745ecc5ff9091a7c0af13b706eb6b6 | Java | vnvj0033/JAVA_ClassManagment | /src/test/java/studentInfo/HonorsGradingStrategyTest.java | UTF-8 | 631 | 2.515625 | 3 | [] | no_license | package studentInfo;
import org.junit.jupiter.api.Test;
import static org.junit.jupiter.api.Assertions.assertEquals;
public class HonorsGradingStrategyTest {
@Test
void testGetGradePoints() {
BasicGradingStrategy strategy = new HonorsGradingStrategy();
assertEquals(5, strategy.getGradePoints... | true |
6c7a201f1f2b7bc66162eecc219fcea21a9f5b17 | Java | chuguet/my-comparer | /comparer/comparer.synchro/comparer.synchro.securebet/comparer.synchro.securebet.process/src/main/java/com/comparadorad/bet/comparer/synchro/securebet/process/convert/ListRtBetToSecureBetBeanConverter.java | UTF-8 | 2,767 | 2.171875 | 2 | [] | no_license | /**
*
* Copyright (C) FACTORIA ETSIA S.L.
* All Rights Reserved.
* www.factoriaetsia.com
*
*/
package com.comparadorad.bet.comparer.synchro.securebet.process.convert;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype... | true |
c5f3ccc6d394c245231a2f9cf37b66230c3a1d40 | Java | franzqat/2013-OOProgrammingWithJava-PART1 | /week6-102.GradeDistribution/src/Main.java | UTF-8 | 1,708 | 3.4375 | 3 | [] | no_license | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner reader = new Scanner(System.in);
// implement your program here
// do not put all to one method/class but rather design a proper structure to your program
// Your program should u... | true |
2431205b4a128a22b4da2355bcda1c04cb85912e | Java | shmostin/TheaterCompanyEmailAutomation | /src/main/java/edu/neu/ccs/cs5004/Member.java | UTF-8 | 5,309 | 3.09375 | 3 | [] | no_license | package edu.neu.ccs.cs5004;
import java.util.Objects;
/**
* Member is a placeholder for the strings read out of the input file and used to overwrite the tags
* in the template file before it is printed to file.
*/
public class Member implements MemberInterrface{
private String firstName;
private String lastNa... | true |
3e1ca667938b59cf320abb76576a88bdf7304822 | Java | x3ro/tinyos-legacy | /tinyos-2.x-contrib/eon/eon/src/edu/umass/eflux/nesc/InternalWiringStatement.java | UTF-8 | 216 | 2.0625 | 2 | [] | no_license | package edu.umass.eflux.nesc;
public class InternalWiringStatement {
private String iface;
private InterfaceSpec dest;
public InternalWiringStatement(String s, InterfaceSpec d)
{
iface = s;
dest = d;
}
}
| true |
62cbadefa77b1f45f2af303e5558da74785e1263 | Java | cafeteru/RI-Gauss | /2017/2_cws_map_to_db_skel2_ampliacion/src/uo/ri/model/Recomendacion.java | UTF-8 | 2,281 | 2.453125 | 2 | [] | no_license | package uo.ri.model;
import javax.persistence.*;
import uo.ri.model.exception.BusinessException;
@Entity
@Table(name = "TRECOMENDACIONES")
public class Recomendacion {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;
@ManyToOne
private Cliente recomendados;
@OneToOne
private Cliente ... | true |
fe38b654a4bcb6589b1ca5a02cef6a06fa9b1390 | Java | fatihkrks/JPA-DB-RELATIONSHIP | /src/domain/EmployeeType.java | UTF-8 | 75 | 1.953125 | 2 | [] | no_license | package domain;
public enum EmployeeType {
FULL_TIME,PART_TIME,INTERN;
}
| true |
321bdc1ad07a6e9962229b94fe3a71830ae3c969 | Java | pingxingkongjian/JavaSE | /src/main/java/java1702/javase/practice/E141.java | UTF-8 | 331 | 2.625 | 3 | [] | no_license | package java1702.javase.practice;
/**
* Created by ${刘晋勇}
* on 2017/4/22.
*/
public class E141 {
public static void main(String[] args) {
char[] chars = {'a','b','c'};
try {
System.out.println(chars[3]);
} catch (Exception e) {
e.printStackTrace();
}
... | true |
264df2e3e2b7da85596a9c6a6a3cac9fe167e44b | Java | prasc/COSC1047-Triangle | /src/Main.java | UTF-8 | 1,130 | 3.96875 | 4 | [] | no_license | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws java.io.IOException{
java.io.File file = new java.io.File("sides.txt");
if (file.exists()) {
System.out.println("File already exists");
System.exit(0);
}
// Create a... | true |
eb70ed63cbffa79a83add87377331b53cb7c407a | Java | AshwinKul28/Android-Projects | /NIPM2/app/src/main/java/com/syscort/nipm/Splash.java | UTF-8 | 2,055 | 1.984375 | 2 | [] | no_license | package com.syscort.nipm;
import android.content.Intent;
import android.graphics.Typeface;
import android.os.Build;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;
import android.view.animation.Animatio... | true |
52338bd18faf6655131915ad5ba41b11ae64d335 | Java | wangxiaoxuan217/xiaoxuanlib-handwriting | /inputmethod/src/main/java/com/googlecode/openwnn/legacy/CLOUDSONG/PinyinQueryResult.java | UTF-8 | 638 | 2.203125 | 2 | [
"MIT"
] | permissive | package com.googlecode.openwnn.legacy.CLOUDSONG;
import java.util.ArrayList;
import com.googlecode.openwnn.legacy.WnnWord;
public class PinyinQueryResult
{
private ArrayList<WnnWord> candidateList;
private String currentInput;
public PinyinQueryResult(ArrayList<WnnWord> candidateLis... | true |
61187e863df219a6eedb66dfbd318675c9a03313 | Java | seaguest/HostTraceAnalyzer | /src/com/amadeus/ssd/hosttraceanalyzer/ui/ItineraryPanel.java | UTF-8 | 2,949 | 2.640625 | 3 | [] | no_license | package com.amadeus.ssd.hosttraceanalyzer.ui;
import java.awt.EventQueue;
import java.awt.FlowLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import java.awt.BorderLayout;
import java.awt.event.ActionEvent;
import java.awt.e... | true |
43c4c2732f700a687accd187d6b6bde80b86f202 | Java | HelAsia/MyNewApplicationToTesting | /main/java/com/introtoandroid/mynewapplicationtotesting/ButtonsActivity.java | UTF-8 | 4,146 | 2.453125 | 2 | [] | no_license | package com.introtoandroid.mynewapplicationtotesting;
import android.content.Context;
import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.text.InputFilter;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.AutoComple... | true |
919220af174c051886e3889eee6fdfef1f8f2b16 | Java | camptocamp/secureOWS | /owsproxyserver/src/org/deegree/ogcwebservices/wass/common/AuthenticationData.java | UTF-8 | 6,020 | 1.945313 | 2 | [] | no_license | //$Header: /home/deegree/jail/deegreerepository/deegree/src/org/deegree/ogcwebservices/wass/common/AuthenticationData.java,v 1.6 2006/08/30 11:51:50 poth Exp $
/*---------------- FILE HEADER ------------------------------------------
This file is part of deegree.
Copyright (C) 2001-2004 by:
EXSE, Department of ... | true |
0b5a59e6c2a7aa54a1999864efbe618f0086aa26 | Java | cckmit/file-uploader | /src/main/java/com/ween/fileuploader/entity/Attachment.java | UTF-8 | 2,370 | 2.109375 | 2 | [] | no_license | package com.ween.fileuploader.entity;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.time.LocalDateTime;
@Entity
@Table(name = "attachment")
public class Attachment {
@Id
@GenericGenerator(name = "uuid-generator",strategy = "uuid")
@GeneratedValue(generator = "uuid-gen... | true |
c537648bc977391f54c0da85b5b45a30bc1625cd | Java | doudou0o/resumeParser | /src/main/java/com/echeng/resumeparser/server/gmserverImpl/domain/InputGM.java | UTF-8 | 1,574 | 2.203125 | 2 | [] | no_license | package com.echeng.resumeparser.server.gmserverImpl.domain;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import com.echeng.resumeparser.domain.serverIO.request.RequestHelper;
import com.google.gson.annotations.Expose;
import lombok.Data;
@Data
public class InputGM {
@Expose
private... | true |
5a92726eda0b4e2b5aceb038f3ba323c088c47a5 | Java | BuZhiheng/myprolk | /LoveLankao/app/src/main/java/cn/lankao/com/lovelankao/adapter/TopAdapter.java | UTF-8 | 2,915 | 2.15625 | 2 | [] | no_license | package cn.lankao.com.lovelankao.adapter;
import android.content.Context;
import android.content.Intent;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.FrameLayout;
import android.widget.ImageView;
import ... | true |
3a7666bddbe8428b8a7799465003a09c9fe06d2a | Java | rsantos722/java-appointment-scheduler | /app/ReportModel/AmountByLocation.java | UTF-8 | 864 | 2.546875 | 3 | [] | no_license | package C195RafaelSantos.ReportModel;
/**
* <p>
* Object to hold data for the Location Report
* @author Rafael Santos
* @see C195RafaelSantos.View.LocationReportController
* </p>
*/
public class AmountByLocation {
/**
* <p>
* Returns the location name
* </p>
*/
public... | true |
2ec5d68ee7ba8538978076c65040fc49ff3bdded | Java | happycs0203/mentoring | /mentoring/src/com/mentoring/command/CommandInput.java | UTF-8 | 3,390 | 2.4375 | 2 | [] | no_license | package com.mentoring.command;
import java.util.List;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import javax.servlet.RequestDispatcher;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.Htt... | true |
b5a49c894075efb2e836f613ff42374cc7c12c0a | Java | Auch-Auch/avito_source | /sources/com/yandex/metrica/impl/ac/NativeCrashesHelper.java | UTF-8 | 2,140 | 1.828125 | 2 | [] | no_license | package com.yandex.metrica.impl.ac;
import android.content.Context;
import android.support.annotation.NonNull;
import android.support.annotation.VisibleForTesting;
import com.yandex.metrica.impl.ob.an;
public class NativeCrashesHelper {
private String a;
private final Context b;
private boolean c;
priv... | true |
374299e6cab031130b81c5b9b3559d4216da265a | Java | d568056/bootTest | /src/main/java/com/sp/cloud/dao/EmployeeDAO.java | UTF-8 | 131 | 1.828125 | 2 | [] | no_license | package com.sp.cloud.dao;
import com.sp.cloud.model.Employee;
public interface EmployeeDAO {
void addEmployee(Employee e);
}
| true |
7109d78d2be66cbbda21c83fd12a5dd00b693b2d | Java | yuchengren/AndroidDemo | /modules/module_base/src/main/java/com/ycr/module/base/util/OkHttpUtil.java | UTF-8 | 7,193 | 2.421875 | 2 | [] | no_license | package com.ycr.module.base.util;
import com.ycr.module.base.BaseApplication;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.TimeUnit;
import okhttp3.Call;
import okhttp3.Callback;
import okhttp3.Dispatcher;
import okhttp3.MediaType;
import okhttp3.OkHttpC... | true |
f59b9b24feac6c0845701c71864dffe9e9a3c233 | Java | abdelazez-elsayed/CircusOfPlates | /src/eg/edu/alexu/csd/oop/game/sample/State/State.java | UTF-8 | 177 | 1.984375 | 2 | [] | no_license | package eg.edu.alexu.csd.oop.game.sample.State;
import eg.edu.alexu.csd.oop.game.sample.GameObjects.Plates;
public interface State {
public void doAction(Plates plate);
}
| true |
1749df181d06213d86fbd9a1648822cba8272c05 | Java | DRE2N/DRECommons | /core/src/main/java/de/erethon/commons/misc/ProgressBar.java | UTF-8 | 2,880 | 2.734375 | 3 | [
"CC0-1.0"
] | permissive | /*
* Written from 2015-2021 by Daniel Saukel
*
* To the extent possible under law, the author(s) have dedicated all
* copyright and related and neighboring rights to this software
* to the public domain worldwide.
*
* This software is distributed without any warranty.
*
* You should have received a copy of the... | true |
8143de6ff95900659b2322b7f6199d402413422f | Java | suniltota/TransformX-Service-UCD-ConvertTemplate | /src/main/java/com/actualize/mortgage/xmlutils/IsEmptyNode.java | UTF-8 | 238 | 1.945313 | 2 | [] | no_license | package com.actualize.mortgage.xmlutils;
import org.w3c.dom.Node;
/**
* Interface <code>IsEmptyNode </code> execute as interface which declare empty node
*
*/
public interface IsEmptyNode {
public boolean isEmptyNode(Node node);
}
| true |
cc0645a1fccf7653b38be47412af85f8678e0876 | Java | MiguelArturoFlores/myTestGames | /gamesWorkspace/AndroidAnnotationsTest/src/com/mgl/otto/util/BusProvider.java | UTF-8 | 290 | 2.015625 | 2 | [] | no_license | package com.mgl.otto.util;
import com.squareup.otto.Bus;
public class BusProvider {
private static final Bus BUS = new Bus();
private BusProvider(){
try {
} catch (Exception e) {
e.printStackTrace();
}
}
public static Bus getInstance(){
return BUS;
}
}
| true |
6526530229afdf28496a65a34bc56e54b9145c50 | Java | wy8162/xperia | /algorithm/src/test/java/y/w/study/alg/dp/LongestIncreasingSubsequence.java | UTF-8 | 3,275 | 3.6875 | 4 | [] | no_license | package y.w.study.alg.dp;
public class LongestIncreasingSubsequence {
/**
* Time: T(n) = 2T(n-1) + O(1) => O(2^n)
*
* @param A
* @param prev
* @param j
* @return
*/
private static int lisRecursive(int[] A, int prev, int j) {
if (j >= A.length) return 0;
if (... | true |
3a6dd3349974e0dbef1e28d2b55cfd66a8b6089d | Java | mengtest/home3 | /core/server/project/commonGame/src/main/java/com/home/commonGame/tool/func/GameToCenterRankTool.java | UTF-8 | 6,189 | 2.21875 | 2 | [
"Apache-2.0"
] | permissive | package com.home.commonGame.tool.func;
import com.home.commonBase.constlist.generate.FuncToolType;
import com.home.commonBase.data.social.rank.RankData;
import com.home.commonBase.data.social.rank.RankToolData;
import com.home.commonBase.tool.func.FuncTool;
import com.home.commonGame.global.GameC;
import com.home.comm... | true |
a46b0416dda191ffcfb418faa3bd81747c1afec5 | Java | jitsi/jitsi-xmpp-extensions | /src/test/java/org/jitsi/xmpp/extensions/colibri2/ForceMuteTest.java | UTF-8 | 2,077 | 1.914063 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright @ 2021 - present 8x8, Inc.
*
* 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 |
c60b0789d281d7585eb39671800f6236a2cbf74e | Java | Akshay0701/ShoopyShop | /app/src/main/java/com/example/shoopyshop/Adapter/TableAcessAdapter.java | UTF-8 | 1,584 | 2.234375 | 2 | [] | no_license | package com.example.shoopyshop.Adapter;
import android.widget.Switch;
import com.example.shoopyshop.ui.Cart.CartFragment;
import com.example.shoopyshop.ui.Profile.EditProfileFragment;
import com.example.shoopyshop.ui.home.HomeFragment;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import a... | true |
d8f8a92fbbbb71c8cc9b25fd011917ce60d55504 | Java | ravindrab749/LogicUniversity | /app/src/main/java/com/nus/logicuniversity/adapter/RepPopupAdapter.java | UTF-8 | 1,097 | 2.453125 | 2 | [] | no_license | package com.nus.logicuniversity.adapter;
import android.content.Context;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.TextView;
import com.nus.logicuniversity.R;
import com.nus.logicuniversity.model.Employee;
import org.jetbrains.annotations.NotNu... | true |
3510c1a3f22cf07380b39a6b7f9d6c78a84c8064 | Java | LiWen780/Stup-IDE | /src/FilePopup.java | UTF-8 | 5,526 | 2.34375 | 2 | [
"Apache-2.0"
] | permissive | package stupIDE;
import java.awt.Color;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
import jav... | true |
74839935221ecd9383feeecfecb3731510f0c0e9 | Java | ccsccd/springbootdemo | /src/main/java/org/redrock/springbootdemo/entity/Authority.java | UTF-8 | 721 | 2.3125 | 2 | [] | no_license | package org.redrock.springbootdemo.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
@Entity
public class Authority {
@Id
@GeneratedValue
private Integer id;
private Integer level;
private String remark;
public Authority() {
}
... | true |
1e5e9d6a746dc178ebb3be89b550172f30ede65d | Java | fanntone/WesternJourneyH5 | /SlotGame/src/com/jinglei/game/manage/CycleCostUnit.java | UTF-8 | 1,065 | 2.84375 | 3 | [] | no_license | package com.jinglei.game.manage;
/**
* <pre>
* Class Name : CycleCostUnit
* Description : 週期成本
* Modification Information
*
* </pre>
*
* @author Bear Wu
* @since 2016. 06. 21.
* @version
*
*/
public class CycleCostUnit {
private static long cycle_begin = 0;
privat... | true |
d79519090e930b0c39924d7b11b4f1095bb7c9e2 | Java | godmodel/LoveCar | /app/src/main/java/zqx/rj/com/lovecar/entity/UserData.java | UTF-8 | 574 | 2.0625 | 2 | [] | no_license | package zqx.rj.com.lovecar.entity;
import com.google.gson.annotations.SerializedName;
/**
* author: HyZhan
* created: 2018/10/14 14:36
* desc: 用户头像
*/
public class UserData {
@SerializedName("media_id")
private String mediaId;
private String thumb;
public String getMediaId() {
retu... | true |
b06fa2d87b2d25c8af49bb1eba088de59d407ab1 | Java | remulasce/fastspace | /src/com/remulasce/fastspace/graphics/shaders/OverlayShader.java | UTF-8 | 705 | 1.992188 | 2 | [] | no_license | package com.remulasce.fastspace.graphics.shaders;
import android.opengl.GLES20;
public class OverlayShader {
public static int a_vPos =0;
public static int u_mMat =0;
public static int u_vpMat =0;
public static int a_texCoord=0;
public static int u_texture =0;
public static void setPointers(int program) {
O... | true |
c6bbc42511a420d0497b83bbddf2d5d9533258a5 | Java | alessandroscarlatti/logic-lib | /src/test/java/logiclib/iteration1/expression/BooleanExpression3.java | UTF-8 | 8,488 | 2.96875 | 3 | [] | no_license | package logiclib.iteration1.expression;
import java.util.Objects;
import java.util.function.Function;
public class BooleanExpression3 {
private String name;
private Boolean value;
private Throwable exception; // if exception was encountered during evaluation
private boolean evaluated;
private Fu... | true |
325f74e6f6bb659df15eaadd727b09c4d9d8a1c8 | Java | MEGHARI/street-fighter-cps | /src/errors/InvariantError.java | UTF-8 | 193 | 2 | 2 | [] | no_license | package errors;
public class InvariantError extends Error {
private static final long serialVersionUID = 9050050491786738283L;
public InvariantError(String message) {
super(message);
}
}
| true |
2d76fedd874c4642e6d92fa7a64fcfc51f6f6690 | Java | Grarzyna/ProjektGit | /src/Klasa1.java | UTF-8 | 158 | 2.28125 | 2 | [] | no_license | public class Klasa1 {
public static void main(String[] args) {
System.out.println("No ladnie");
System.out.println("Nie ladnie");
}
}
| true |
458709e52252c5c8055895d053c4e35a913880fe | Java | Team3555/experimental-code | /motion-control/1/org/aluminati3555/mp/file/reader/MPReader.java | UTF-8 | 1,504 | 3.046875 | 3 | [
"MIT"
] | permissive | /**
* FRC Team 3555
*/
package org.aluminati3555.mp.file.reader;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.zip.GZIPInputStream;
/**
* This class reads an encoded motion profile from the filesystem
*
* @author Caleb Heydon
... | true |
3db704b2063d403c92deb2dc25d1680885604626 | Java | huntj88/utexas-utilities | /src/com/huntj88/UTClass.java | UTF-8 | 5,211 | 2.9375 | 3 | [
"Apache-2.0"
] | permissive | package com.huntj88;
import android.util.Log;
import java.sql.Time;
import java.util.ArrayList;
import java.util.Scanner;
/**
* Created by James on 9/8/2015.
*/
public class UTClass {
private String days;
private String time;
private String className;
private String professor;
private int id;
... | true |
b6b8f5153fe79ef00b798460ee379dffa346058c | Java | humank/awesome-trip | /src/main/java/com/camelot/dddcommons/interfaces/IFactory.java | UTF-8 | 259 | 1.820313 | 2 | [] | no_license | package com.camelot.dddcommons.interfaces;
import com.camelot.dddcommons.baseclasses.AggregateRoot;
import com.camelot.dddcommons.baseclasses.EntityId;
public interface IFactory<T extends AggregateRoot, U extends EntityId> {
T create(Object param);
}
| true |
d9c173f687b89992322cbe6f85d64dcef7980b2a | Java | itliliu/testspringmvcmybatismysql | /src/main/java/com/we/bean/Pricing.java | UTF-8 | 397 | 2.203125 | 2 | [] | no_license | package com.we.bean;
import java.util.List;
/**
* pricing bean
*
* @author Hongfeng Ma
*/
public class Pricing {
private String total;
private List<Price> list;
public String getTotal() {
return total;
}
public void setTotal(String total) {
this.total = total;
}
public List<Price> getList() {
re... | true |
6e66e994bae9caf1e93429756cf8b8d6bf9c416b | Java | TonyTong1993/JiangMenPatrol | /JMPatrol/app/src/main/java/com/ecity/cswatersupply/menu/FZPointPartFeedbackModifyOperator.java | UTF-8 | 5,383 | 1.617188 | 2 | [] | no_license | package com.ecity.cswatersupply.menu;
import android.os.Bundle;
import com.ecity.android.eventcore.EventBusUtil;
import com.ecity.android.eventcore.ResponseEvent;
import com.ecity.android.eventcore.UIEvent;
import com.ecity.cswatersupply.HostApplication;
import com.ecity.cswatersupply.SessionManager;
import com.ecity... | true |
25a89fbe1a14525d3c0a9d38240c91082eb6c864 | Java | SirLanceABot/2019-Robot-Development | /src/main/java/frc/components/ElevatorSystem.java | UTF-8 | 19,487 | 2.75 | 3 | [
"MIT"
] | permissive | package frc.components;
import frc.components.NewArm;
import frc.components.Carriage;
import frc.components.Grabber;
import frc.components.Intake;
import frc.components.Wrist;
import frc.components.Arm.Constants.ArmPosition;
import frc.components.Wrist.WristState;
import frc.components.Carriage.CarriageState;
import f... | true |
4d626836297db2958b38b5ab1f3f4b412894aba3 | Java | zhongxingyu/Seer | /Diff-Raw-Data/35/35_3209279828ad39302556bf1d6ab54e28e05a91de/ProjectConfigurationFactory/35_3209279828ad39302556bf1d6ab54e28e05a91de_ProjectConfigurationFactory_t.java | UTF-8 | 20,080 | 1.671875 | 2 | [] | no_license | //============================================================================
//
// Copyright (C) 2002-2005 David Schneider, Lars Kdderitzsch
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Sof... | true |
c01f0f0b664cb53c6b0b2062665fb8564e612538 | Java | Kr4K1sH/AppParqueDiversiones | /prjEjercicioLaboratorio/src/CapaLogica/Regular.java | UTF-8 | 793 | 2.765625 | 3 | [] | no_license | package CapaLogica;
import CapaDatos.TiqueteBD;
import java.io.Serializable;
import java.util.ArrayList;
public class Regular extends Entrada implements Serializable {
private final double PRECIO_BASICO =2000;
public Regular(String tipoEntrada, boolean codPromo) {
super(tipoEntrad... | true |
3d70fdad5c13611f4e1d90cd9d20b1746a17058b | Java | OleksijO/validation | /src/main/java/training/controller/AbstractController.java | UTF-8 | 3,459 | 3.25 | 3 | [] | no_license | package training.controller;
import training.controller.validation.IntInRangeValidator;
import training.controller.validation.StringToPatternValidator;
import training.controller.validation.ValidatorFactory;
import training.view.View;
import java.util.Scanner;
import java.util.regex.Pattern;
/**
* This class includ... | true |
105b2dc310a057c76e6db58e5b47310cc66833c2 | Java | ReplayMod/org.cakelab.json | /src/org/cakelab/json/codec/JSONCodecException.java | UTF-8 | 677 | 2.53125 | 3 | [] | no_license | package org.cakelab.json.codec;
/**
* To be thrown on any error occurring in codecs during encoding or
* decoding of data.
* @author Holger Machens
*
*/
public class JSONCodecException extends Exception {
private static final long serialVersionUID = 1L;
public JSONCodecException() {
}
public JSONCodecExce... | true |
f34ad39bb98fc1c019d7cd42c2182192e914eda1 | Java | apache/jackrabbit | /jackrabbit-jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/state/PropertyState.java | UTF-8 | 15,178 | 2.046875 | 2 | [
"W3C",
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
803414034423fa89bca8f965c3b11ff0ba07e846 | Java | bling2bling/bling | /src/main/java/com/bling/util/ValidateFilter.java | UTF-8 | 645 | 1.953125 | 2 | [] | no_license | package com.bling.util;
import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;
@WebFilter(filterName = "ValidateFilter")
public class ValidateFilter implements Filter {
private ServletContext servletContext;
public void destroy() {
}
public void d... | true |
b0f28d198790bd3a2c70d3a64fad499179fc081e | Java | basilsaleem/pwc-project | /complaint-management/src/main/java/com/assignment/pwc/complaintmanagement/security/SecurityAppConfigurer.java | UTF-8 | 2,794 | 2.03125 | 2 | [] | no_license | package com.assignment.pwc.complaintmanagement.security;
import com.assignment.pwc.complaintmanagement.filter.JwtFilter;
import com.assignment.pwc.complaintmanagement.service.UserDetailsServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value... | true |
aa9305c712e3527aad0f25e9f2e5342ec1028ea9 | Java | antoniomsf90/automatos-comsubmaquinas | /src/main/java/maquina/AbstractTransicao.java | UTF-8 | 577 | 2.484375 | 2 | [
"MIT"
] | permissive | package maquina;
public abstract class AbstractTransicao {
protected Estado proximo;
protected boolean criaToken;
public AbstractTransicao(Estado proximo, boolean criaToken) {
super();
this.proximo = proximo;
this.criaToken = criaToken;
}
public Estado getProximo() {
return proximo;
}
public void se... | true |
4c021939c5d3c1f8e6ca001fcce4eeda389c1bb5 | Java | IBM-Blockchain-Developer-Experience/trade-finance | /common/src/main/java/listener/ProxyEventListener.java | UTF-8 | 2,801 | 2.734375 | 3 | [
"Apache-2.0"
] | permissive | package listener;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Path;
import java.nio.file.Paths;
import org.tradefinance.common.FabricProxy;
import org.tradefinance.common.FabricProxyConfig;
import org.tradefinance.common.FabricProxyException;
import org.hyperledger.fabri... | true |
37431ed36254d2c1f9b8d4cce916088f32afc88b | Java | dj13may91/swagger-config | /feecalculator/src/main/java/com/stock/feecalculator/Constants/TransactionType.java | UTF-8 | 319 | 1.890625 | 2 | [] | no_license | package com.stock.feecalculator.Constants;
public class TransactionType {
public static final String BUY= "BUY";
public static final String SELL = "SELL";
public static final String DEPOSIT = "DEPOSIT";
public static final String WITHDRAW = "WITHDRAW";
public static final String PRIORITY = "Y";
}
| true |
087e6f05558466df813dcfcb4fe1f8511739ae93 | Java | aosivt/ProjectMapReduceNDVI | /MapRedCR/src/aosivt/Cmprs.java | UTF-8 | 797 | 2.375 | 2 | [] | no_license | package aosivt;
import org.apache.hadoop.io.WritableComparable;
import org.apache.hadoop.io.WritableComparator;
/**
* Created by alex on 09.11.15.
*/
public class Cmprs extends WritableComparator
{
public Cmprs()
{
super( HaLongWritable.class, true );
}
@Override
/*
public int compare(... | true |
260ee35bc703fa586a0011685808d41781da26b3 | Java | conapart3/SimpleDBApp | /src/main/java/com/conal/simpledbapp/commands/AddServer.java | UTF-8 | 631 | 2.75 | 3 | [] | no_license | package com.conal.simpledbapp.commands;
import org.kohsuke.args4j.Option;
/**
* Command to add server information
*/
public class AddServer extends AppCommandBase {
@Option(name = "-name", aliases = "-n", required = true, usage = "The server name")
private String name;
@Option(name = "-description", a... | true |
02f46ae671055a14e33eabbcee18aaadd3964d5c | Java | MADMusic4001/RMU | /app/src/main/java/com/madinnovations/rmu/data/dao/combat/schemas/CriticalResultSchema.java | UTF-8 | 3,167 | 1.96875 | 2 | [] | no_license | /*
Copyright (C) 2016 MadInnovations
<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/>
Unless required by applicable law or a... | true |
738440d1fa6a3f05a3be1eac7b4b3d49e00eda32 | Java | carluxo/cadastro-de-pessoas-backend | /src/main/java/br/com/carloswayand/pessoas/resources/autenticacao/AuthenticationException.java | UTF-8 | 282 | 1.867188 | 2 | [] | no_license | package br.com.carloswayand.pessoas.resources.autenticacao;
public class AuthenticationException extends RuntimeException {
/**
*
*/
private static final long serialVersionUID = 90095918766583955L;
public AuthenticationException(String message) {
super(message);
}
}
| true |
9c0444d0ef90eda96353b9e654c49fd66340765e | Java | xiaoVc/matchmade | /src/test/java/matchmaker/MatchmakerTest.java | UTF-8 | 779 | 2.21875 | 2 | [
"BSD-2-Clause"
] | permissive | package matchmaker;
import algorithm.MatchSearchTree;
import algorithm.MatchSearchTreeTest;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.mockito.Mock;
import org.mockito.runners.MockitoJUnitRunner;
import static org.assertj.core.api.Assertions.assertThat;
import static org.assertj.core.api.Asser... | true |
16beb0d3f2360269921be5a7afb5439d01d82fef | Java | cGVpamlhbmc/java-learning | /src/data/CharacterInS.java | UTF-8 | 837 | 3.25 | 3 | [] | no_license | /**
*
*/
package data;
/**
* @author ypj6024
*
*/
public class CharacterInS {
public static void main(String[] args) {
String anotherPalindrome = "Niagara. O roar again!";
char aChar = anotherPalindrome.charAt(9);
String roar = anotherPalindrome.substring(11, 15);
String[] s1 = anotherPalindrome.split(... | true |
35bb132d121cf9d8deed03c8cf651da3e45e4f0b | Java | fnk0/OctoKitten | /app/src/main/java/com/gabilheri/octokitten/ui/widgets/BreadCrumbContainer.java | UTF-8 | 1,993 | 2.21875 | 2 | [] | no_license | package com.gabilheri.octokitten.ui.widgets;
import android.content.Context;
import android.graphics.Canvas;
import android.support.annotation.NonNull;
import android.util.AttributeSet;
import android.view.View;
import android.widget.LinearLayout;
import com.gabilheri.octokitten.R;
import com.gabilheri.octokitten.ui.... | true |
7ed1aa89f96549e79cae5f9319bc0b395b60d4c7 | Java | abvadabra/jdbc-organizer | /src/main/java/ru/redenergy/organizer/Priority.java | UTF-8 | 97 | 1.835938 | 2 | [] | no_license | package ru.redenergy.organizer;
public enum Priority {
HIGHT,
MEDIUM,
LOW;
}
| true |
d914c91df578b84a575d084bb5a2c64287b1f051 | Java | imazjav0017/mansaHack | /app/src/main/java/com/mansastudios/mansahack/AddProfileTask.java | UTF-8 | 4,180 | 2.46875 | 2 | [] | no_license | package com.mansastudios.mansahack;
import android.content.Context;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedReader;
import java.io.DataOutputStream;
import java.io.I... | true |
11b58b76f7ed0f826dde6b737303fc366dfe7d0c | Java | SooJungChae/hackathon_sns | /app/src/main/java/com/planethackathon/worklifebalancelife/TestActivity.java | UTF-8 | 9,315 | 2.1875 | 2 | [
"MIT"
] | permissive | package com.planethackathon.worklifebalancelife;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;
import com.google.android.gms.tasks.On... | true |
41fe5f0d60bc770237dfdb9be8149fcdf30ad9da | Java | pravezhang/ai-assisstant-management | /src/main/java/com/lowrisk/aiassistant/management/controller/VoiceQueryController.java | UTF-8 | 3,287 | 1.96875 | 2 | [] | no_license | package com.lowrisk.aiassistant.management.controller;
import com.alibaba.fastjson.JSON;
import com.lowrisk.aiassistant.backend.reply.ReplyObject;
import com.lowrisk.aiassistant.backend.reply.contentType.*;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.Re... | true |
36f0f9221d931121d6688c6dfab285e104dee94c | Java | Marvin25ronal/Arit | /Arit/src/Operaciones/Aritmeticas.java | UTF-8 | 6,115 | 2.953125 | 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 Operaciones;
import Entorno.Entorno;
import Expresion.Expresion;
import Expresion.Literal;
import Expresion.TipoExp;... | true |
72fbd54a7c110a1ae5af90a53d54c4d3a0a65883 | Java | XProger/arcanum | /src/com/xproger/arcanum/PageWallpaper.java | UTF-8 | 5,425 | 1.9375 | 2 | [] | no_license | package com.xproger.arcanum;
import android.content.Context;
import android.net.Uri;
import android.util.AttributeSet;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ImageView;
import android.widget.RelativeLayout;
... | true |
7ba1c7d3ffc868c28eb1a500bacf1fe404dd96f7 | Java | Reithger/BlackBoxTechnology | /src/view/screen/Screen.java | UTF-8 | 3,338 | 2.625 | 3 | [] | no_license | package view.screen;
import java.util.HashMap;
import controller.Data;
import model.company.Company;
import view.Visual;
import visual.panel.Panel;
public abstract class Screen {
//--- Instance Variables -------------------------------------------------------------------
private static Visual visual;
private... | true |
c346b0a69a99532d9ddda828a643c684e16228c3 | Java | ivanxma/MyJavaSourceRepo | /HelloDB.java | UTF-8 | 4,468 | 2.59375 | 3 | [] | no_license |
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
public class HelloDB {
private static long ttltime=0;
private static int THREADSIZE=10;
private static int ITERATIONS=10;
p... | true |
acc1facc841129f65295df862729a4da4f248351 | Java | andrejskoda/TodoApp | /src/main/java/com/skoda/todoapp/business/tasks/entity/Todo.java | UTF-8 | 2,595 | 2.421875 | 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.skoda.todoapp.business.tasks.entity;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import java... | true |
a8b96785a84b5637cf1ae6b380997b8e92839d04 | Java | dolgopolovwork/node-project | /node-task-modules/factoring/factor-service/src/main/java/ru/babobka/factor/service/EllipticCurveFactorService.java | UTF-8 | 2,364 | 2.484375 | 2 | [] | no_license | package ru.babobka.factor.service;
import org.apache.log4j.Logger;
import ru.babobka.factor.callable.EllipticCurveProjectiveFactorCallable;
import ru.babobka.factor.model.FactoringResult;
import ru.babobka.nodeutils.thread.ThreadPoolService;
import ru.babobka.nodeutils.util.MathUtil;
import java.math.BigInteger;
impo... | true |
b9124a58ac5e009a9ebbbb4a6a14fe2cc2fd9467 | Java | RiceBen/Sharing_MutationJava | /src/test/java/com/ben/app/AppTest.java | UTF-8 | 784 | 2.90625 | 3 | [
"Beerware"
] | permissive | package com.ben.app;
import static org.junit.Assert.assertEquals;
import org.junit.Test;
/**
* Unit test for simple App.
*/
public class AppTest
{
/**
* Rigourous Test :-)
*/
@Test
public void testApp()
{
// arrange
boolean except = false;
Palindrome palindrome = n... | true |
a0063f63808b6f8c6b9bb9eb5e2b0b835f430ebd | Java | cicidi/leetcode-WIP | /algorithm/string/LongestSubstringWithoutRepeatingCharacters.java | UTF-8 | 1,376 | 3.734375 | 4 | [] | no_license | package string;
import java.util.HashSet;
import java.util.Set;
/**
* @author cicidi on 5/26/19
* Lintcode 384. Longest Substring Without Repeating Characters
* url https://www.lintcode.com/problem/longest-substring-without-repeating-characters/my-submissions
*/
/*
* Steps 1 for loop start
* Step 2 send for loo... | true |
3b61fb7db606ec3c4d7a06dfb419febb9b18b982 | Java | yibulaxi/AndroidHeroesLearning | /animationmechanism/src/main/java/me/jarvischen/animationmechanism/MainActivity.java | UTF-8 | 3,132 | 2.109375 | 2 | [] | no_license | package me.jarvischen.animationmechanism;
import android.content.Intent;
import android.graphics.drawable.Animatable;
import android.graphics.drawable.Drawable;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import me.jarvischen.an... | true |
1df67d959c2a2da962fcca3c250e0ad8786a071a | Java | plamenaag/logo-letter | /src/com/logo/letter/LogoLetterM.java | UTF-8 | 2,188 | 3.34375 | 3 | [] | no_license | package com.logo.letter;
import java.util.ArrayList;
import java.util.List;
public class LogoLetterM extends LogoLetter {
public LogoLetterM(Integer letterSize, Character fillerChar, Character emptySpaceChar) {
super(letterSize, fillerChar, emptySpaceChar);
}
public LogoLetterM(Intege... | true |
1e56ce6cfbca4519c079ec5a06ae6338e3c9beb4 | Java | Luke-DJ/Zillionaire | /Zillionaire/src/AddQuestionGUI.java | UTF-8 | 3,361 | 2.796875 | 3 | [] | no_license | import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JComboBox;
import javax.swing.JSlider;
//Created by Luke Dicken - Jones
public class AddQuestionGUI
{
//Declaring the variables for the swing components... | true |
97d146f832db5d056d76d93ff1b46123eec1412f | Java | ilyaryabikin/ITMO_Business_Logic_of_Software | /lab2/core/src/main/java/se/ifmo/blos/lab2/configs/PasswordEncoderConfig.java | UTF-8 | 557 | 2.015625 | 2 | [] | no_license | package se.ifmo.blos.lab2.configs;
import static org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder.BCryptVersion.$2B;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;... | true |
a8d1e621779d3bbc5c5f025116af59573fbe150b | Java | haoguanqing/Tests-Misc-for-Android | /app/src/main/java/com/guanqing/zzzz/broadcast/MyReciever2.java | UTF-8 | 517 | 1.898438 | 2 | [] | no_license | package com.guanqing.zzzz.broadcast;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
/**
* Created by Guanqing on 2016/4/16.
*/
public class MyReciever2 extends BroadcastReceiver {
@Override
public void onReceive(Context context, Intent intent) {
... | true |
7ad32f28057d4899daf7ee7de8833a1f39b4bc90 | Java | wubiao6668/fellow | /fellow-service/src/main/java/com/fellow/service/impl/EmailServiceImpl.java | UTF-8 | 2,357 | 2.171875 | 2 | [] | no_license | package com.fellow.service.impl;
import com.fellow.common.util.EmailUtil;
import com.fellow.domain.email.EmailInfo;
import com.fellow.service.EmailService;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
/**
* Creat... | true |
0449792bc08b9a376907556f0846511d9375d13f | Java | Y-599/specialil | /src/main/java/lzy/special/special/admin/controller/RoutesController.java | UTF-8 | 2,340 | 2.234375 | 2 | [] | no_license | package lzy.special.special.admin.controller;
import com.wf.captcha.ArithmeticCaptcha;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lzy.special.special.common.security.JwtAuthenticatioToken;
import lzy.special.special.admin.popj.UserPopj;
import lzy.special.special.utils.JsonRe... | true |
48a6c6fcb4d9f777dc0e94eb129afe49991899ef | Java | JMSComponents/kafka-jms | /src/main/java/io/github/jmscomponents/kafka/jms/security/PlainLogin.java | UTF-8 | 2,204 | 1.867188 | 2 | [
"Apache-2.0"
] | permissive | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | true |
5595233dd5c1afa6a38db689ddf32fd66db268a8 | Java | pratapak81/computer-fundamentals | /design-pattern/src/main/java/com/nsc/designpattern/structural/bridge/Color.java | UTF-8 | 180 | 2.328125 | 2 | [] | no_license | package com.nsc.designpattern.structural.bridge;
/**
* Implementer – It defines the interface for implementation classes.
*/
public interface Color {
void applyColor();
}
| true |
217c43476e4505e73c60245c8ed2dc163eceb483 | Java | dinhtrungvn92/mummum | /app/src/main/java/com/kenung/vn/prettymusic/music_online/playlist/PlaylistOnlineFragment.java | UTF-8 | 2,228 | 1.609375 | 2 | [] | no_license | package com.kenung.vn.prettymusic.music_online.playlist;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.NonNull;
import android.suppo... | true |