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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
172facd565e3f82a93d0d6f394c43729f24fc5a6 | Java | scc-digitalhub/dremio-oss | /sabot/kernel/src/test/java/com/dremio/exec/catalog/TestInformationSchemaSystemTables.java | UTF-8 | 6,243 | 1.71875 | 2 | [
"Apache-2.0",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | /*
* Copyright (C) 2017-2019 Dremio Corporation
*
* 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 l... | true |
32360bbbc837ab3f58a7b285589093b56498b771 | Java | apache/poi | /poi/src/main/java/org/apache/poi/hssf/util/HSSFColor.java | UTF-8 | 14,916 | 2.125 | 2 | [] | no_license | /* ====================================================================
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 Y... | true |
9ef378b7145d96090af0e00b0388b83a6a0ff160 | Java | jupi/JavaFondo_Book | /src/cap02/objetos_y_clases/fecha/FechaEncapsulada.java | UTF-8 | 5,707 | 3.5 | 4 | [] | no_license | /*
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Los métodos estáticos pueden invocarse directamente
sobre la clase sin necesidad de instanciarla primero
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
*/
/*
ENCAPSULAMIENTO:
------------------
*Uno de los objetivos que debemos perseguir cuand... | true |
e6090e097d0cec190c8060d09a863296649c9353 | Java | liangpengju/design-patterns | /src/main/java/com/feiyue/creational/factory/method/simple/Orange.java | UTF-8 | 371 | 3.046875 | 3 | [] | no_license | package com.feiyue.creational.factory.method.simple;
/**
* 1.创建型设计模式之简单工厂模式
* 角色:具体产品类,接口IFruit具体实现类
* @author: liangpengju
* @date: 2017/8/30
* @version: 1.0
*/
public class Orange implements IFruit {
@Override
public void printName() {
System.out.println("This is Orange...");
}
}
| true |
52d0f264b1c2ad121160ffee95fe7c3ee6b54e43 | Java | xMalware/BadBlock-API | /src/fr/badblock/gameapi/utils/geometry/ParametricCurve3D.java | UTF-8 | 1,967 | 3.328125 | 3 | [] | no_license | package fr.badblock.gameapi.utils.geometry;
import java.util.ArrayList;
import java.util.List;
import fr.badblock.gameapi.utils.selections.Vector3f;
/**
* Représente une courbe paramétrée tridimensionnelle pour ętre utiliser pour
* des particules, par <b>exemple</b>. La courbe peut ętre bidimensionnelle, ... | true |
eea94822baa0d3448ced96df2db09fd1c66ea692 | Java | dengzii/FindViewGenerator | /src/com/dengzii/plugin/findview/gen/InsertPlace.java | UTF-8 | 242 | 1.5 | 2 | [] | no_license | package com.dengzii.plugin.findview.gen;
/**
* <pre>
* author : dengzi
* e-mail : dengzii@foxmail.com
* github : <a href="https://github.com/dengzii">...</a>
* time : 2019/9/27
* desc :
* </pre>
*/
public enum InsertPlace {
FIRST, LAST
} | true |
0db4c4ab73a0cc4c230a4581ddc6c820026e16e8 | Java | Rainicy/LeetCode | /linkedlist/ReverseLinkedListII.java | UTF-8 | 1,246 | 3.453125 | 3 | [] | no_license | /**
* Definition for singly-linked list.
* public class ListNode {
* int val;
* ListNode next;
* ListNode(int x) {
* val = x;
* next = null;
* }
* }
*/
public class Solution {
public ListNode reverseBetween(ListNode head, int m, int n) {
// find m-1 and n + 1 positi... | true |
c4165233332341b76bc78b99cf1ac61b258a1d94 | Java | ikeblaster/access-validator | /access-validator/validator/src/main/java/cz/zcu/kiv/accessvalidator/validator/database/AccdbRelationRepository.java | UTF-8 | 1,636 | 2.671875 | 3 | [] | no_license | package cz.zcu.kiv.accessvalidator.validator.database;
import com.healthmarketscience.jackcess.Database;
import com.healthmarketscience.jackcess.Relationship;
import java.io.IOException;
import java.util.HashSet;
import java.util.Set;
/**
* Represents a repository for searching relationships in ACCDB database.
*
... | true |
c1263782762650891944ecaefb7112c23eb04f84 | Java | Julio-C/Projetos_ETEC | /Locadora_Filme/src/javalocadora/FRM_Login.java | UTF-8 | 6,358 | 2.21875 | 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 javalocadora;
import Locadora.modelo.Login;
import Conection.Conexao;
import Locadora.dao.LoginDao;
import java.sql.Connection... | true |
23993d260c88c380121413de6526f7779d154d71 | Java | jkovalikhaas/1501 | /Graphs/Dijkstra.java | UTF-8 | 1,782 | 3.15625 | 3 | [] | no_license | import java.util.LinkedList;
/**
* uses Dijkstra's algorithm to find shortest path between 2 vertices
*/
public class Dijkstra {
private double[] distTo; // distance of current path
private Edge[] edgeTo; // last edge in shortest path
private PQ<Double> pq;
private double arr[];
privat... | true |
968f5e8e434febcd510cc4a87e37e80240adc967 | Java | Yurii-Bezruk/AndersenInternship | /src/main/java/striker/studing/caching/Cache.java | UTF-8 | 652 | 2.75 | 3 | [] | no_license | package striker.studing.caching;
import java.util.Map;
import java.util.function.Supplier;
public abstract class Cache<K, V> {
protected final Supplier<V> valueSupplier;
protected final int maxSize;
public Cache(int maxSize) {
this(maxSize, () -> null);
}
public Cache(int maxSize, Supplie... | true |
f5003df03a13b0b678ebdd9219176f22ea296e7b | Java | NoneOtherThanSteffin/SugarORM | /app/src/main/java/steff/com/sugarorm/activity/SugarActivity.java | UTF-8 | 3,467 | 2.5625 | 3 | [] | no_license | package steff.com.sugarorm.activity;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;
import android.widget.Toast;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnC... | true |
8f059c63cc2e8342d75be9013ee6af8d9499da1e | Java | raydac/old-stuff | /Games/Mobile/SmsCatalog/InfonCatalog1/src/gm_VideoBall.java | UTF-8 | 20,464 | 2.109375 | 2 | [
"Unlicense"
] | permissive | //#excludeif GAMEMODE!="VideoBall"
import ru.coldcore.game.Game;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.Canvas;
public class gm_VideoBall extends Game
{
private static final int COLOR_PLAYER = 0x00FF00;
private static final int COLOR_OP... | true |
e3e88268dba2b6c3e2cd05e666199a541d7ebe47 | Java | openturing/turing-java-sdk | /src/main/java/com/viglet/turing/client/sn/facet/TurSNFacetFieldList.java | UTF-8 | 1,780 | 2.28125 | 2 | [
"Apache-2.0"
] | permissive | package com.viglet.turing.client.sn.facet;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import java.util.Optional;
import com.viglet.turing.api.sn.bean.TurSNSiteSearchFacetBean;
public class TurSNFacetFieldList implements Iterable<TurSNFacetField> {
private List<TurSNFacetField> tu... | true |
775c2b34ae8413e117ea81794f5455540aea8ed5 | Java | aswindle/2010-CS127B-Intro-Programming-2 | /ObstacleCourseStart/src/ObstacleCourseInterface.java | UTF-8 | 1,857 | 3.3125 | 3 | [] | no_license | public interface ObstacleCourseInterface {
/*
* THE RECURSIVE-BACKTRACKING method which exhaustively searches the maze
* for an exit. Returns: TRUE to the caller if at the current level, it
* found an exit OR false, if it can't go anywhere else from the current
* position
*/
public boo... | true |
4b192d5812fe02498a3314ef693a7415f2533188 | Java | huaxbo/door | /src/main/java/com/am/cs12/commu/protocol/amRtu206/common/protocol/DatumProtocol206.java | UTF-8 | 8,351 | 2.28125 | 2 | [] | no_license | package com.am.cs12.commu.protocol.amRtu206.common.protocol;
import org.apache.logging.log4j.Logger;
import org.apache.logging.log4j.LogManager;
import com.am.cs12.commu.protocol.amRtu206.common.data.*;
import com.am.cs12.commu.protocol.util.UtilProtocol;
public class DatumProtocol206 {
private static Logger log =... | true |
ce9e83ed77a647e550e118eb364bbcafc3d05873 | Java | kmrrmn/attendance | /app/src/main/java/com/example/rmn/date/Main2Activity.java | UTF-8 | 5,326 | 2.078125 | 2 | [] | no_license | package com.example.rmn.date;
import android.app.Activity;
import android.app.FragmentTransaction;
import android.app.Notification;
import android.content.Intent;
import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.... | true |
0211eeb7e4b1396ea85eb33f7e8cd3e4aa619aec | Java | wocommunity/wonder | /Examples/Misc/TextSearchDemo/Sources/er/examples/textsearchdemo/components/sections/AutoSuggest.java | UTF-8 | 601 | 2.078125 | 2 | [] | no_license | package er.examples.textsearchdemo.components.sections;
import com.webobjects.appserver.WOContext;
import com.webobjects.foundation.NSArray;
public class AutoSuggest extends SimpleSearch {
public AutoSuggest(WOContext context) {
super(context);
}
public NSArray<String> currentValues() {
... | true |
c5862acf1d6d52b44e369013c634a2987e46cd99 | Java | leapframework/framework | /web/core/src/main/java/leap/web/action/MultipartArgumentResolver.java | UTF-8 | 2,447 | 2.3125 | 2 | [
"Apache-2.0"
] | permissive | /*
* Copyright 2014 the original author or authors.
*
* 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 applica... | true |
ef4a52c56d846753546455e894cd1eefc813db5c | Java | BaranovYaroslav/courses | /src/main/java/app/Application.java | UTF-8 | 6,464 | 2.21875 | 2 | [] | no_license | package app;
import constants.ApplicationConstants;
import constants.NavigationConstants;
import controller.*;
import dispatcher.HttpMatcher;
import entities.UserRole;
import persistence.ConnectionManager;
import persistence.dao.factory.DaoFactory;
import persistence.dao.factory.JdbcDaoFactory;
import security.BaseRes... | true |
b45961f414bb05501c64d249573ba413cbf1e43e | Java | DagWor/ModernProgrammingPractice | /lab3/src/question4/Residence.java | UTF-8 | 220 | 2.640625 | 3 | [] | no_license | package question4;
public abstract class Residence {
private int count;
protected Residence() {
count++;
}
int computeCount(){
return count;
}
abstract double computeRent();
} | true |
6831240d332b21cc5093d13f9209ff8e0611837a | Java | worldwar/madtom | /src/main/java/tw/zhuran/madtom/server/common/GameServer.java | UTF-8 | 3,479 | 2.453125 | 2 | [] | no_license | package tw.zhuran.madtom.server.common;
import io.netty.channel.ChannelFuture;
import tw.zhuran.madtom.server.common.hub.GameHub;
import tw.zhuran.madtom.server.common.hub.ReferenceHub;
import tw.zhuran.madtom.server.common.matcher.GameMatcher;
import java.util.List;
import java.util.concurrent.*;
public a... | true |
44c27842a430ff5f421645f3c17e1d702dccae1b | Java | ArmandasRokas/Bills-Burgers-OPP-Master-Challenge | /src/com/rokas/Healthy.java | UTF-8 | 1,569 | 3.59375 | 4 | [] | no_license | package com.rokas;
public class Healthy extends Hamburger {
Addition addition5;
Addition addition6;
public Healthy(double price){
super("Healthy", "Brown rye bread roll",null,price);
}
@Override
public double getTotalPrice() {
double totalPrice = super.getTotalPrice(); // get... | true |
da8031f76615219f6bdb1667096ec4697b49fe2c | Java | csys-fresher-batch-2019/groceryapp-spring-kesavan | /src/main/java/com/chainsys/grocery/util/Jdbcpst.java | UTF-8 | 1,188 | 2.703125 | 3 | [] | no_license | package com.chainsys.grocery.util;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
public class Jdbcpst {
public static int preparestmt(String sql, Object... params) throws DBException {
int rows = 0;
try (Connection con = DatabaseConnectio... | true |
820315e9db2960a0ed88723dbcf9e95c635a5988 | Java | yangzpag/CodeReader | /cocoon/src/java/org/apache/cocoon/components/source/SourceHandler.java | UTF-8 | 2,162 | 1.773438 | 2 | [] | no_license | /*****************************************************************************
* Copyright (C) The Apache Software Foundation. All rights reserved. *
* ------------------------------------------------------------------------- *
* This software is published under the terms of the Apache Software License *
* v... | true |
13173de85d5bf79655d7b84811bce58e3a3507b8 | Java | KishorDavara/ProgramsCollection | /Java/src/Collection/ComparatorExample.java | UTF-8 | 4,319 | 3.859375 | 4 | [] | no_license | package Collection;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
class Author implements Comparable<Author> {
String firstName;
String bookName;
int auAge;
Author(String first, String book, int age){
this.firstName = first;
this.bookName = book;
... | true |
9222c7f253e8340cc393f692fd3d402fe6b4560c | Java | tuanlnapk00690/AndroidNangCao | /src/com/lab5/Lab5_Activity.java | UTF-8 | 2,123 | 2.28125 | 2 | [] | no_license | package com.lab5;
import java.util.ArrayList;
import com.adapter.DanhBaAdapter;
import com.bai01.R;
import com.bai01.R.id;
import com.bai01.R.layout;
import com.bai01.R.menu;
import com.model.DanhBa;
import android.app.Activity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import... | true |
015494e40930c1fb7e90830affb823f88f09f5fa | Java | mercedesabaj/jmeter-java-dsl | /jmeter-java-dsl/src/main/java/us/abstracta/jmeter/javadsl/core/controllers/DslIfController.java | UTF-8 | 1,429 | 2.296875 | 2 | [
"Apache-2.0"
] | permissive | package us.abstracta.jmeter.javadsl.core.controllers;
import java.util.List;
import org.apache.jmeter.control.IfController;
import org.apache.jmeter.control.gui.IfControllerPanel;
import org.apache.jmeter.testelement.TestElement;
import us.abstracta.jmeter.javadsl.core.DslThreadGroup.ThreadGroupChild;
import us.abstra... | true |
7bae3570c4e5c2e88bce7cb5e614e5f8f5509626 | Java | MagicKim/RoomDemo | /app/src/main/java/com/xsf/room_multitable_demo/database/NotificationRecord.java | UTF-8 | 1,246 | 2.0625 | 2 | [] | no_license | package com.xsf.room_multitable_demo.database;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Embedded;
import androidx.room.Entity;
import androidx.room.Index;
import androidx.room.PrimaryKey;
/**
* @author kim
* @date 20-3-6
*/
//indices = @Index(value = {"parent_key"},... | true |
448474b3227851c419899a92e51edf7e52d562ee | Java | chongtwang/others1 | /hibernateA/src/model/Donation.java | UTF-8 | 839 | 2.203125 | 2 | [] | no_license | package model;
// default package
// Generated Feb 25, 2015 11:58:03 AM by Hibernate Tools 4.3.1
import java.math.BigDecimal;
/**
* Donation generated by hbm2java
*/
public class Donation implements java.io.Serializable {
private Integer donationId;
private BigDecimal amount;
private Person person;
public Per... | true |
91e1dc0c9df072ac073f78b2844fad827066bc8a | Java | Auch-Auch/avito_source | /sources/com/yandex/metrica/impl/ob/tk.java | UTF-8 | 245 | 1.601563 | 2 | [] | no_license | package com.yandex.metrica.impl.ob;
import android.support.annotation.Nullable;
public class tk implements ts {
@Override // com.yandex.metrica.impl.ob.ts
@Nullable
public String a(@Nullable String str) {
return "";
}
}
| true |
0bb860f7fa8027c03bf59a3d9fc2f9601bc53a41 | Java | HowieTianDev/ClubTalk | /app/src/main/java/com/howietian/clubtalk/my/personpage/PersonPageActivity.java | UTF-8 | 9,120 | 1.703125 | 2 | [] | no_license | package com.howietian.clubtalk.my.personpage;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.appcompat... | true |
db1506339b5fbdf6cd2b99de5342b4def2e702ac | Java | zhongxingyu/Seer | /Diff-Raw-Data/30/30_cd7f9e9d26a9026b6aef62cb11b5b39e711f0eb7/Main/30_cd7f9e9d26a9026b6aef62cb11b5b39e711f0eb7_Main_t.java | UTF-8 | 90,087 | 1.78125 | 2 | [] | no_license | package cuploader.frames;
import cuploader.Data;
import cuploader.Data.Elem;
import cuploader.FileFilters;
import cuploader.PFile;
import cuploader.Settings;
import java.awt.Color;
import java.awt.Desktop;
import java.awt.Toolkit;
import java.awt.datatransfer.DataFlavor;
import java.awt.datatran... | true |
97f8ef80b70a0a7bced012e8882f7ca2365d6d73 | Java | vmntruong/Exercice1_CoursJavaEEUdemy | /src/main/java/com/directmedia/onlinestore/core/Startup.java | UTF-8 | 843 | 2.84375 | 3 | [] | no_license | package com.directmedia.onlinestore.core;
import java.util.HashSet;
import corecom.directmedia.onlinestore.core.entity.*;
public class Startup {
public static void main(String[] args) {
HashSet<Work> my_listOfWorks = Catalogue.listOfWorks;
Work work1 = new Work("Article 1");
work1.setGenre("M");
work1.setRe... | true |
db67575bc5154032870971f4dd36b8c4829fa48c | Java | DanielKryszkiewicz/Calculator | /src/main/java/com/kodilla/Calculator.java | UTF-8 | 439 | 3.296875 | 3 | [] | no_license | package com.kodilla;
public class Calculator {
int a;
int b;
public void sum(){
System.out.println(a+b);
}
public void sub(){
System.out.println(a-b);
}
public Calculator(int a, int b){
this.a = a;
this.b = b;
}
public static void main(String[] args... | true |
a86a4eef07f538c9bf2a0e5026b15e6939ad5ae1 | Java | consultoresinformaticos/seminarios | /seminarioEJB/src/main/java/py/com/consultoresinformaticos/seminarios/dao/UsuarioDao.java | UTF-8 | 368 | 1.992188 | 2 | [] | no_license | package py.com.consultoresinformaticos.seminarios.dao;
import javax.ejb.Remote;
import py.com.consultoresinformaticos.seminarios.model.Usuario;
/**
*
* @author enrique
*/
@Remote
public interface UsuarioDao extends GenericDao<Usuario, Integer>{
public Usuario autenticate(String username, String password);
p... | true |
c969c6cf182f71785fd1f3c911529aeeebf97272 | Java | heyan4869/LintCode | /src/Solution/ReverseLinkedList.java | UTF-8 | 788 | 3.484375 | 3 | [] | no_license | package Solution;
public class ReverseLinkedList {
public static ListNode reverse(ListNode head) {
if (head == null || head.next == null) {
return head;
}
ListNode temp = new ListNode(head.val);
return assist(temp, head);
}
private static ListNode assist(ListNode temp, ListNode curr) {
if (curr.next =... | true |
493ad4d555bf6545240b6899dc55288f6afe9982 | Java | zavar152/easytechnology | /forge-1.10.2-12.18.3.2185-mdk/src/main/java/zavar30/easytechnology/blocks/machines/double_furnace/DoubleFurnaceTileEntity.java | UTF-8 | 15,053 | 2.125 | 2 | [] | no_license | package zavar30.easytechnology.blocks.machines.double_furnace;
import javax.annotation.Nullable;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.init.Blocks... | true |
419539f6f63bcec04ef1d9fe46e6370cb961f7eb | Java | zouchengfang/cryptocurrency-quant | /quant-base/src/main/java/com/cjie/cryptocurrency/quant/api/okex/service/spot/impl/SpotProductAPIServiceImpl.java | UTF-8 | 4,254 | 1.90625 | 2 | [] | no_license | package com.cjie.cryptocurrency.quant.api.okex.service.spot.impl;
import com.cjie.cryptocurrency.quant.api.okex.bean.spot.result.Ticker;
import com.cjie.cryptocurrency.quant.api.okex.bean.spot.result.Trade;
import com.cjie.cryptocurrency.quant.api.okex.bean.spot.result.Book;
import com.cjie.cryptocurrency.quant.api.ok... | true |
3978ace521896df9635b1078cdac007e4fa50cc9 | Java | durban89/java-lianxi | /Day1_03_xmlparser/src/com/gowhich/xmlparser/DomXmlParserTest.java | UTF-8 | 1,896 | 2.4375 | 2 | [] | no_license | package com.gowhich.xmlparser;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.Result;
import javax.xml.transform.Source;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom... | true |
fce7edb08e8288fbeb988675543c3970557ec533 | Java | tahmid0517/JavaFX_Examples | /src/TestFX.java | UTF-8 | 1,148 | 2.765625 | 3 | [] | no_license | import javafx.application.Application;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.GridPane;
import javafx.stage.Stage;
public class TestFX extends Application
{
final double GRID_PADDING_TOP = 10;
final double GRID_PADDING_RIGHT ... | true |
6b1c9d8cf8a3a46e91821284fc55eda003a4caa7 | Java | fcjjcf/oksocial | /src/main/java/com/baulsupp/oksocial/services/facebook/FacebookApiDocPresenter.java | UTF-8 | 1,742 | 2.1875 | 2 | [
"Apache-2.0"
] | permissive | package com.baulsupp.oksocial.services.facebook;
import com.baulsupp.oksocial.apidocs.ApiDocPresenter;
import com.baulsupp.oksocial.authenticator.oauth2.Oauth2Token;
import com.baulsupp.oksocial.credentials.ServiceDefinition;
import com.google.common.base.Throwables;
import com.baulsupp.oksocial.output.OutputHandler;
... | true |
2f0d5e6ae956c901a0b6bd1cde14417cc9275d80 | Java | ZoranLi/thunder | /com/xunlei/downloadprovider/ad/d/i.java | UTF-8 | 3,811 | 1.601563 | 2 | [] | no_license | package com.xunlei.downloadprovider.ad.d;
import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.RatingBar;
import android.widget.TextView;
import com.b... | true |
0c08c6febab65f04cc35b4a1a06597ac738f80aa | Java | htb012/ssoawfc | /ssoRmiServer/export/jp/co/pegatron/domain/model/abstractmodel/AbstractAuthoritygroup.java | UTF-8 | 2,990 | 2.140625 | 2 | [] | no_license | package jp.co.pegatron.domain.model.abstractmodel;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;
/**
* AbstractAuthoritygroup entity provides the base persistence definition of the
* Authoritygroup entity.
*
* @author MyEclipse Persistence Tools
*/
public abstract class Ab... | true |
bb16bf12bbcb6561cee42a471770d2137ef5738a | Java | lxmonk/spl2 | /src/ac/bgu/cs/smalltalk/bool/Boolean.java | UTF-8 | 1,090 | 2.671875 | 3 | [] | no_license | package ac.bgu.cs.smalltalk.bool;
import ac.bgu.cs.smalltalk.base.SmObject;
import ac.bgu.cs.smalltalk.context.Context;
/**
* Created by IntelliJ IDEA.
* User: admin
* Date: 19/07/2006
* Time: 21:04:30
* To change this template use File | Settings | File Templates.
*/
public abstract class Boolean e... | true |
62e3f82c3e55d6be82f3181e03cc5d9ceb2c0283 | Java | shelimingming/DesignPattern | /src/main/java/com/sheliming/factory/abstractFactory/UserDao.java | UTF-8 | 113 | 1.835938 | 2 | [] | no_license | package com.sheliming.factory.abstractFactory;
public interface UserDao {
void insert();
void get();
}
| true |
ea7e3b24a315734b1e507d771e3a31145af3abf1 | Java | DavidJGL/RepositorioNetBeans | /ComposicionYHerencia/src/main/java/ComposicionYHerencia/Figura.java | UTF-8 | 795 | 3.03125 | 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 ComposicionYHerencia;
/**
*
* @author choko
*/
public class Figura extends Punto {
private double punto;
//Metodo Con... | true |
7aa7a8be1449d0cd2e35bc49967baa68d21fe1e7 | Java | PiotrBiskup/Mieszkanko | /app/src/main/java/com/example/mieszkanko/Models/User.java | UTF-8 | 819 | 2.296875 | 2 | [] | no_license |
package com.example.mieszkanko.Models;
import java.util.List;
public class User {
private String apartment ;
private String nick;
private String key;
public User(String apartment, String nick) {
this.apartment = apartment;
this.nick = nick;
}
public User() {}
public S... | true |
1db9391c897b83fdd28fa301ab7dfcbf4067e188 | Java | jorgerabello3/desafiojavaexercicios | /src/br/com/jorgerabellodev/reskilling/parte09/Exercicio12.java | UTF-8 | 389 | 2.296875 | 2 | [] | no_license | package br.com.jorgerabellodev.reskilling.parte09;
/**
* Faça um programa para criar os arquivos a seguir:
* ■ ■ Estilista (código do estilista, nome do estilista, salário).
* ■ ■ Roupa (código da roupa, descrição da roupa, código do estilista, código da estação, ano).
* ■ ■ Estação (código da estação, nome da est... | true |
7102fb237b66745785efb648614bdbbfbc4ec982 | Java | PedroRamirezVerger/Proyecto4 | /src/main/java/com/tgs/tgh/dao/HorarioMedicoDAO.java | UTF-8 | 1,212 | 2.375 | 2 | [] | no_license | package com.tgs.tgh.dao;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import org.bson.BsonDocument;
import com.mongodb.client.FindIterable;
import com.tgs.tgh.model.HorarioMedico;
import com.tgs.tgh.model.Medico;
public class HorarioMedicoDAO {
@SuppressWarnings("unchecked")
public ... | true |
33e4677da20b8b98e9ad34d3b9876790123d2a7f | Java | vesteny77/event-app | /src/main/screencontrollers/LoginScreenController.java | UTF-8 | 2,826 | 3.09375 | 3 | [] | no_license | package main.screencontrollers;
import main.controllers.AuthController;
import main.controllers.ProgramController;
import main.presenters.LoginScreen;
/**
* The LoginScreenController handles login functionality of the program
*
* @author David Zhao, Leyi Wang
* @version 1.0
*/
@Deprecated
public class LoginScree... | true |
f9451a17cb341aa6e9eac4993f829c7a01fc3704 | Java | happyhouse-project/happyhouse-api | /src/main/java/com/ssafy/happyhouse/mapper/HouseMapMapper.java | UTF-8 | 874 | 2.328125 | 2 | [] | no_license | package com.ssafy.happyhouse.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.ssafy.happyhouse.model.HouseInfo;
@Mapper
@Repository
public interface HouseMapMapper {
List<HouseInfo> ... | true |
55651ddccd3770537ac5b9fae2edd8c4776b6742 | Java | Plastic-Metal/JMobileSuitLite | /src/main/java/PlasticMetal/JMobileSuitLite/ObjectModel/Parsing/ParsingAPIs.java | UTF-8 | 538 | 2.421875 | 2 | [
"MIT"
] | permissive | package PlasticMetal.JMobileSuitLite.ObjectModel.Parsing;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
public class ParsingAPIs
{
public static Method getParser(SuitParser parser){
if(parser==null)return null;
try
{
Method m= parser.ParserClass().getMetho... | true |
ce710ddd06dd9d1636dcee868b95b7d406db2235 | Java | stnoname/bgqc | /bgqc/src/com/bgqc/service/DriverServiceImpl.java | UTF-8 | 2,238 | 2.28125 | 2 | [] | no_license | package com.bgqc.service;
import java.util.List;
import javax.annotation.Resource;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Service;
import com.bgqc.beans.DriverBean;
import com.bgqc.beans.MsgBean;
import com.bgqc.service.base.DriverService;
import com.bgqc.uti... | true |
810cbd17cf881c420801a0d621bc0341c90dec05 | Java | SKYhuangjing/fantastic-dev-tools | /src/main/java/com/fantastic/platform/dev/common/dao/model/enums/DelEnum.java | UTF-8 | 641 | 2.21875 | 2 | [] | no_license | /*
* Zenlayer.com Inc.
* Copyright (c) 2014-2019 All Rights Reserved.
*/
package com.fantastic.platform.dev.common.dao.model.enums;
import com.fantastic.platform.dev.common.dao.model.enums.base.BaseValueEnumInterface;
/**
* @author sky
* @date 2019-09-18 14:46:22
* @version $ Id: DelEnum.java, v 0.1 sky Exp $
... | true |
5e0b512e43158fac5622b141fd65e5e3088478c9 | Java | sseela/SA-August2020 | /src/com/cg/LongestSubstringPalindrome.java | UTF-8 | 674 | 3.390625 | 3 | [] | no_license | package com.cg;
public class LongestSubstringPalindrome {
private static String str = "kalol";
private static int startIndex;
private static int lengthofPalindrome;
public static void main(String[] args) {
for(int i=0; i<str.length(); i++) {
findLength(str, i, i);
findLength(str, i, i+1);
}
System.out.... | true |
6ff270782e07e4309b466d6ab285c7bf2724b018 | Java | priyanka423/priyanka423-USTGlobal-16Sep19-priyanka | /jdbc/JdbcApp2/src/com/ustglobal/jdbcapp3/DynamicInsertQuery.java | UTF-8 | 1,385 | 3.09375 | 3 | [] | no_license | package com.ustglobal.jdbcapp3;
import java.sql.*;
import com.mysql.jdbc.Driver;
public class DynamicInsertQuery {
public static void main(String[] args) {
Connection conn=null; // import java.sql.connection;
PreparedStatement pstmt=null;
try {
// Step 1: Load the Driver
Driver driver=new Driver();
Dr... | true |
6bbac89545a9d2cbc3e947b54d3d3aa0eb8afb4c | Java | sampletext-projects/mega-shop | /src/Main.java | UTF-8 | 392 | 2.109375 | 2 | [] | no_license | import javafx.application.Application;
import javafx.stage.Stage;
import utils.FXMLHelper;
public class Main extends Application {
@Override
public void start(Stage primaryStage) {
primaryStage.show();
primaryStage.setWidth(0);
primaryStage.setHeight(0);
FXMLHelper.setPrimarySta... | true |
31fcfc90f98e0b34edae5ca6a95b96899b334078 | Java | froydenzi/BalkanLeagueBOT | /src/main/java/settingConfig.java | UTF-8 | 2,005 | 2.25 | 2 | [] | no_license | import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;
public class settingConfig {
InputStream inputStream;
public void getPropValues() throws IOException {
try {
Properties prop = new Properties();
String pr... | true |
32f38da622b988ef184327d60f2c158ed1add7ab | Java | melioudas/zuul | /ZuulMaster/src/main/java/com/example/demo/filter/LimitFilter.java | UTF-8 | 1,744 | 2.296875 | 2 | [] | no_license | package com.example.demo.filter;
import com.google.common.util.concurrent.RateLimiter;
import com.netflix.zuul.ZuulFilter;
import com.netflix.zuul.context.RequestContext;
import com.netflix.zuul.exception.ZuulException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context... | true |
e1a110eb4091415a13057a8ee8879af456c678bd | Java | CeliaBenquet/public | /exams/final/2016-solutions/final/src/test/java/ch/epfl/sweng/grading/GradedTest.java | UTF-8 | 549 | 2.171875 | 2 | [
"Apache-2.0"
] | permissive | package ch.epfl.sweng.grading;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface GradedTest {
String DEFAULT_NAME = "##DE... | true |
abff572da0de62d8c582aabd8e40885f825a08b8 | Java | miguelrueda/RxJava8 | /src/main/java/com/example/module2/filtering/TimeBasedExampleSample.java | UTF-8 | 615 | 3.015625 | 3 | [] | no_license | package com.example.module2.filtering;
import com.example.module2.util.ThreadUtils;
import com.example.module2.util.TimeTicker;
import java.util.concurrent.TimeUnit;
public class TimeBasedExampleSample {
public static void main(String[] args) {
TimeTicker ticker = new TimeTicker(10);
ticker.start... | true |
8a2e314525cf9aa50dbaeecec26fee723a046ed5 | Java | luisdetlefsen/hackerrank | /Kerfuffle/test/floorislava/SolutionSmallTest.java | UTF-8 | 4,679 | 2.78125 | 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 floorislava;
import java.io.ByteArrayInputStream;
import java.util.Arrays;
import static junit.framework.Assert.assertEquals;
... | true |
0e69d06385a32bc1c3a7d80c602641080b7cc34a | Java | s10733/school | /dziedziczenie/src/zadanie2/school.java | WINDOWS-1250 | 1,760 | 3.40625 | 3 | [] | no_license | package zadanie2;
public class school {
public static void main(String[] args) {
Student student = new Student();
Student student1 = new Student();
Stypendyst stypend = new Stypendyst();
student.setName("ukasz");
student.setSurname("Dzwonkowski");
student.setSex("Mczyzna");
student.s... | true |
a4057774da06794235cabe90ebdceb6ca5d78793 | Java | buckeram/jobs-scraper | /src/main/java/org/buckeram/jobscraper/domain/SearchResults.java | UTF-8 | 800 | 2.703125 | 3 | [] | no_license | package org.buckeram.jobscraper.domain;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.net.URL;
import java.util.HashSet;
import java.util.Optional;
import java.util.Set;
/**
* This class represents the one page of job search results.
* A search results page consists of:
* <ul>
* <li>a colle... | true |
499cbef6326ff4826e22da27c1714fd50d52d357 | Java | qxev/crm | /src/main/java/cn/finance/dao/ProjectDao.java | UTF-8 | 5,285 | 2.078125 | 2 | [] | no_license | package cn.finance.dao;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.math.NumberUtils;
import org.hibernate.Query;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import ... | true |
daff9b39d96e829954412a7f3e7ba2ea4fd62f0c | Java | eLBirador/yfaces | /storefoundation/web/src/ystorefoundationpackage/domain/SfRequestContext.java | UTF-8 | 1,882 | 1.734375 | 2 | [] | no_license | /*
* [y] hybris Platform
*
* Copyright (c) 2000-2009 hybris AG
* All rights reserved.
*
* This software is the confidential and proprietary information of hybris
* ("Confidential Information"). You shall not disclose such Confidential
* Information and shall use it only in accordance with the terms of t... | true |
8c30304dd85c4c198989a7ac12edf3c0300f5ff7 | Java | JasonWKS/AppUpdate | /app/src/main/java/com/snail/appupdate/AppUpdateActivity.java | UTF-8 | 6,297 | 2.109375 | 2 | [] | no_license | package com.snail.appupdate;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.CheckBox;
import android.widget.ProgressBar;
import android.widget.TextView;
import com.snail.appupdate.appupdate.download.DownloadMess;
import com.snail.appupdate.appupdate.update.IApp... | true |
934fcce9b1934112ca83981ddf0afac8f33638a9 | Java | lichinfan/milkey_tw | /.svn/pristine/93/934fcce9b1934112ca83981ddf0afac8f33638a9.svn-base | UTF-8 | 884 | 2.125 | 2 | [] | no_license | package com.kentec.milkbox.coupon.task;
import com.kentec.milkbox.BaseActivity;
import com.kentec.milkbox.CFG;
import com.kentec.milkbox.core.RpcClient;
import com.kentec.milkbox.task.BaseTask;
public class CouponCreateCartTask extends BaseTask {
private String mCartId;
public CouponCreateCartTask(... | true |
f54fdba43a974c365dfd98d2af0248fe0e25094e | Java | KhalidOukssim/ArticleApp | /src/main/java/ma/ensa/ArticlePub/domain/Revue.java | UTF-8 | 1,242 | 2.15625 | 2 | [] | no_license | package ma.ensa.ArticlePub.domain;
import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
@Enti... | true |
efa1278e8c26268b8f8de7fbc14152ab72ee05eb | Java | gorkemaygun/MoviesApp | /main/java/com/example/popularmovies/MainActivity.java | UTF-8 | 5,631 | 2.046875 | 2 | [] | no_license | package com.example.popularmovies;
import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.GridLayoutManager;
import androidx.recyclerview.widget.RecyclerView;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
imp... | true |
ed2163e3784d0d6e8f70564b24d7531ee718e784 | Java | martenhernebring/ovningar | /se/hernebring/ovningar4/Ovning4.java | UTF-8 | 536 | 2.875 | 3 | [] | no_license | package se.hernebring.ovningar4;
public class Ovning4 {
public static void main(String[] args) {
boolean number=true;
for(int i=1;i<=100;i++,number=true){
if(i%3==0){
System.out.print("Fizz");
number=false;
}
if(i%5==0){
... | true |
c1621b53fa069c45ac9164a98f8750792d99fb19 | Java | AntonioAlmeidaRego/plataforma-servico | /PlataformaServico/src/main/java/br/com/plataformaservico/util/EntityService.java | UTF-8 | 501 | 2.046875 | 2 | [] | no_license | package br.com.plataformaservico.util;
import java.util.List;
@SuppressWarnings("hiding")
public interface EntityService<Entity extends Object> {
public void save(Entity entity);
public void update(Entity entity);
public void deleteById(Long id);
public List<Entity> findAll();
public List<Entity> findAllByTrash(... | true |
718118496d55ab976b00caa3aab82f73859d4fda | Java | BKConsulting/devoxx17 | /src/main/java/bk/devoxx17/emulators/VulnerabilityEmulatorSQL.java | UTF-8 | 1,886 | 2.578125 | 3 | [] | no_license | package bk.devoxx17.emulators;
import java.sql.SQLException;
import org.apache.commons.lang3.EnumUtils;
import com.google.common.collect.ArrayListMultimap;
import bk.devoxx17.utils.DatabaseSQL;
public abstract class VulnerabilityEmulatorSQL extends VulnerabilityEmulator {
DatabaseSQL db;
public voi... | true |
0fe7eaf95c7345aebfb76165637cab5c68520611 | Java | FranciscoCasasola/Ejercicios-java | /Tema 5/Ejercicio42.java | UTF-8 | 738 | 3.765625 | 4 | [] | no_license | /** Ejercicio 42 Tema 5
*
*
* @author Francisco Casasola Cano
*/
public class Ejercicio42 {
public static void main(String[] args) {
long num,temp;
boolean primo;
System.out.print("Introduce un número entero positivo: ");
num = Integer.parseInt(System.console().readLine());
temp = nu... | true |
6dd6d10c76af0f46ae35b32cdae0fa726d439db7 | Java | okayhan89/snapshot | /snapshot/src/main/java/com/skcc/snapshot/controller/snapshotCreateController.java | UTF-8 | 2,655 | 1.882813 | 2 | [] | no_license | package com.skcc.snapshot.controller;
import java.text.SimpleDateFormat;
import java.util.Base64;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.json.simple.JSONObject;
import o... | true |
2b53efa329e77255deea00cb263a8ff6c16813a8 | Java | RameshSonti/Salt_project | /CSVMySQLApplication/src/csv/dal/CSVFileReader.java | UTF-8 | 2,752 | 3.171875 | 3 | [] | no_license | package csv.dal;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import csv.dal.beans.CourseVO;
import csv.dal.beans.StudentVO;
import csv.dal.... | true |
438b8c1671d4e42f30937bfd9d190de4ee68e91d | Java | lover2668/StationPower | /src/main/java/com/demo/ssm/service/Impl/S_reliability/t_fiber_reServiceImpl.java | UTF-8 | 643 | 2 | 2 | [] | no_license | package com.demo.ssm.service.Impl.S_reliability;
import com.demo.ssm.mapper.S_reliability.t_fiber_reMapper;
import com.demo.ssm.po.S_reliability.t_fiber_re;
import com.demo.ssm.service.interf.S_reliability.t_fiber_reService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ster... | true |
844b40ffe050198d5784f342c3fcd7c96b3b83ac | Java | thiagolazarin/Solucionador-de-Labirintos | /servidor/SupervisoraDeConexao.java | UTF-8 | 2,676 | 2.734375 | 3 | [] | no_license | package servidor;
import java.io.*;
import java.net.*;
import java.util.*;
import comunicado.Comunicado;
import comunicado.Desenho;
import comunicado.TesteLab;
import comunicado.Parceiro;
//import comunicado.PedidoDeAbertura;
import comunicado.PedidoParaSair;
import comunicado.PedidoSalvamento;
import bd... | true |
a781cf046f220e9d8a262567a57d577cd0797f0c | Java | CladiusIV/SnakeGame | /test/TestRunner.java | UTF-8 | 1,319 | 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.
*/
import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;
import org.junit.i... | true |
8dd7f83720f4226e95ae70778ff55aa95fd54af8 | Java | xiaozengwei/jbxqycy | /src/com/gx/soft/sd/persistence/domain/WaterNowRecord.java | UTF-8 | 2,381 | 2.25 | 2 | [] | no_license | package com.gx.soft.sd.persistence.domain;
import javax.persistence.*;
import java.sql.Timestamp;
@Entity
@Table(name = "water_now_record", schema = "jbxqycy", catalog = "")
public class WaterNowRecord {
private String deviceId;
private String totalWater;
private Timestamp time;
private String ext;
... | true |
9e630f4eb21a428e5c3ec959c61a1929d55aae22 | Java | fendysaputro/LoginWithFacebook | /app/src/main/java/com/fendy/loginwithfacebook/LoginActivity.java | UTF-8 | 3,659 | 2.296875 | 2 | [] | no_license | package com.fendy.loginwithfacebook;
import androidx.appcompat.app.AppCompatActivity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.ImageView;
import android.widget.TextView;
import com.facebook.AccessToken;
import com.facebook.CallbackManager;
import com.facebook.FacebookCallback;
i... | true |
0e7c19556ed9a6b50f96c9322722b2ac70c09a06 | Java | changyaochen/Coursera_oop_java | /part_2/VigenereProgram/VigenereBreaker.java | UTF-8 | 5,887 | 3.09375 | 3 | [] | no_license | import java.util.*;
import edu.duke.*;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
public class VigenereBreaker {
private String sliceString(String message, int whichSlice, int totalSlices) {
StringBuilder sb = new StringBuilder();
for (int i=whichSlice; i<message.le... | true |
aac8c87371185feb96e11ec9cdd1ef33a1fe9862 | Java | bordozer/totalizator | /betmen-core/src/main/java/betmen/core/entity/PointsCalculationStrategy.java | UTF-8 | 1,267 | 2.09375 | 2 | [] | no_license | package betmen.core.entity;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.NamedQ... | true |
67bab6afac9755bb257dcecd9b312ac52ff1828d | Java | muhammad-hamza-shahid/JobTask | /app/src/main/java/com/example/jobtask/utilities/Service.java | UTF-8 | 1,323 | 2.296875 | 2 | [] | no_license | package com.example.jobtask.utilities;
import android.app.AlarmManager;
import android.app.IntentService;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.icu.util.Calendar;
import android.os.Build;
import androidx.annotation.Nullable;
import androidx.ann... | true |
fb1ba6a181d55125bbec088f1130ce71af94a7ac | Java | 569258yin/LearnJava | /src/main/java/com/kevinyin/algorithm/matht/CountPrimes.java | UTF-8 | 1,004 | 3.671875 | 4 | [] | no_license | package com.kevinyin.algorithm.matht;
/**
* https://leetcode-cn.com/problems/count-primes/
* 统计所有小于非负整数 n 的质数的数量
*
* @author yinhao
* @Description TODO
* @Date 2022/1/5 17:32
*/
public class CountPrimes {
public static void main(String[] args) {
int count = new CountPrimes().countPrimes(10);
... | true |
607f5d844cb427de81f5504ad7e9fd6b540aff37 | Java | andysinenko/OtpService | /src/main/java/ua/kiev/sinenko/otpservice/otp/dto/OtpChellangeResponse.java | UTF-8 | 398 | 1.679688 | 2 | [] | no_license | package ua.kiev.sinenko.otpservice.otp.dto;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.io.Serializable;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class OtpChellangeResponse implements Serializable {
private static final long serialVersionUID = 187... | true |
cbeb75020661cbd0465867e6625325515ebec720 | Java | fmstephe/Masyu-Puzzle-Solver | /src/org/francis/intel/challenge/search/Constants.java | UTF-8 | 2,240 | 2.390625 | 2 | [] | no_license | package org.francis.intel.challenge.search;
public interface Constants {
public static final int MASK_PEBBLE_MARK = Integer.MIN_VALUE; // Marks whether a pebble has been visited or not
public static final int MASK_PEBBLE_VAL = Integer.MAX_VALUE; // Indicates the position of this pebble on the board
pu... | true |
c196821c3bc3ac19794585ce85fda82667e8edb0 | Java | dineshmm23/food_around | /app/src/main/java/com/opalfire/foodorder/models/RestaurantsData.java | UTF-8 | 660 | 1.96875 | 2 | [
"Apache-2.0"
] | permissive | package com.opalfire.foodorder.models;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
import java.util.List;
public class RestaurantsData {
@SerializedName("banners")
@Expose
private List<Banner> banners = null;
@SerializedName("shops")
@Expose
p... | true |
e46eaafd2d239f29a9893241c1efae5406bf7229 | Java | luchao0111/hframework | /hframe-common/src/main/java/com/hframework/common/frame/cache/CacheFactory.java | UTF-8 | 4,740 | 2.421875 | 2 | [] | no_license | package com.hframework.common.frame.cache;
import com.hframework.common.frame.cache.ehcache.EhCache;
import com.hframework.common.frame.cache.guava.GuavaCache;
import com.hframework.common.util.PathMatcherUtils;
import com.hframework.common.util.message.PropertyReader;
import net.sf.ehcache.Cache;
import net.sf.ehcach... | true |
c8e81ac214ddd4505780e05094e1bba863728dc6 | Java | seges/acris | /acris-pivo/src/main/java/sk/seges/acris/pivo/Alias.java | UTF-8 | 681 | 2.5 | 2 | [] | no_license | /**
*
*/
package sk.seges.acris.pivo;
/**
* @author eldzi
*/
public class Alias extends AbstractObjectFactory {
private final String ref;
public Alias(ChocolateFactory factory, String ref) {
super(factory);
this.ref = ref;
}
@SuppressWarnings("unchecked")
@Override
public <T> T create() {
return (... | true |
7188ceedf828da6fb4b2703e5b616df41a89285c | Java | dusjh/JAVA | /Chap20(컬렉션프레임워크1)/src/kr/co/bitcamp/stackqueue/StackQueueTest.java | UTF-8 | 1,012 | 3.796875 | 4 | [] | no_license | package kr.co.bitcamp.stackqueue;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Stack;
public class StackQueueTest {
public static void main(String[] args) {
Stack<String> stack = new Stack<>();
// Queue는 인터페이스를 구현한 LinkedList클래스 생성 후 대입하고 있다.
Que... | true |
bd4484dc1e91d86c890bae519d1c8a82b1b847c9 | Java | apache/directory-studio | /plugins/ldapbrowser.core/src/main/java/org/apache/directory/studio/ldapbrowser/core/model/AttributeHierarchy.java | UTF-8 | 4,097 | 2.359375 | 2 | [
"Apache-2.0",
"EPL-1.0",
"OLDAP-2.8",
"BSD-3-Clause",
"Apache-1.1"
] | 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")... | true |
4565d0df2edc44947abf2626cefff97b78ab8887 | Java | tianfeng94666/MstarStoreTV-master | /app/src/main/java/com/qx/mstarstoretv/json/StoneSearchInfo.java | UTF-8 | 2,092 | 1.921875 | 2 | [] | no_license | package com.qx.mstarstoretv.json;
import java.io.Serializable;
/**
* Created by Administrator on 2017/4/24 0024.
*/
public class StoneSearchInfo implements Serializable{
private String cerAuth;
private String color;
private String shape;
private String purity;
private String cut;
private St... | true |
ec6a6367662f226c2b4d7dc92fc01586ad72dd1f | Java | microcomet/readcore | /backend/src/main/java/xyz/durian/read/cleanread/controller/model/VolumeVO.java | UTF-8 | 862 | 2.140625 | 2 | [
"MIT"
] | permissive | package xyz.durian.read.cleanread.controller.model;
import java.util.List;
public class VolumeVO {
private String bookId;
private String volumeId;
private String volumeName;
private List<ChapterVO> chapters;
public String getBookId() {
return bookId;
}
public void setBookId(Strin... | true |
1ab9dfe9ff08e4e248e2c11e1adc90b6bdee6fd4 | Java | hub4j/github-api | /src/main/java/org/kohsuke/github/GHPullRequest.java | UTF-8 | 20,948 | 1.640625 | 2 | [
"MIT"
] | permissive | /*
* The MIT License
*
* Copyright (c) 2010, Kohsuke Kawaguchi
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use,... | true |
dacb0347f5030244e82b9a7ed591e7bdded6ce45 | Java | antiquity/algorithm | /topcoder/srm/WinterAndPresents.java | UTF-8 | 6,751 | 3.390625 | 3 | [] | no_license | import java.util.*;
import java.util.regex.*;
import java.text.*;
import java.math.*;
import java.awt.geom.*;
import java.util.*;
public class WinterAndPresents {
public long getNumber(int[] apple, int[] orange) {
}
// BEGIN CUT HERE
// -- Begin Cutting Here of the Main Method $&%*@# --
public static void m... | true |
43fb7acd6f75257096e4403a4f4e22f05d8a213b | Java | Blackveiled/RPGMaker | /src/com/RPGMakerDev/RPGMaker/Social/ChatMessages.java | UTF-8 | 700 | 1.945313 | 2 | [] | no_license | /*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package com.RPGMakerDev.RPGMaker.Social;
import net.minecraft.server.v1_7_R3.ChatMessage;
import net.minecraft.server.v1_7_R3.... | true |
5bdda7329fbd3d2fb877ec0e716c6376eb3e43f4 | Java | naskogeorgiev92/homework1 | /app/src/main/java/com/example/naskogeorgiev/homework27082016/Exercise1.java | UTF-8 | 942 | 2.65625 | 3 | [] | no_license | package com.example.naskogeorgiev.homework27082016;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public class Exercise1 extends Activity implements View.OnClickListener {
int count1, count2;
Button button1, button2;
@Override
protecte... | true |
1bb8a1ce7383604135ce5bbc6e48aa3d4d605d0d | Java | CMPUT301W18T13/Lateral | /app/src/main/java/com/lateral/lateral/helper/PhotoGenerator.java | UTF-8 | 2,353 | 2.53125 | 3 | [
"MIT"
] | permissive | /*
* Copyright (c) 2018 Team 13. CMPUT301. University of Alberta - All Rights Reserved.
* You may use, distribute, or modify this code under terms and conditions of the Code of Student Behaviour at University of Alberta.
* You can find a copy of the license in this project. Otherwise, please contact cjmerkos@ualbert... | true |