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
c44b30a12c0c9e9972f289a984c3b8e4f88798c6
Java
markkampe/Java_Terrain
/src/worldBuilder/LegendDisplay.java
UTF-8
1,338
3.265625
3
[ "MIT" ]
permissive
package worldBuilder; import java.awt.*; import javax.swing.*; /** * a JFrame that displays a legend for map colors */ public class LegendDisplay extends JFrame { private static final int BORDER_WIDTH = 5; private static final int V_GAP = 5; private static final int H_GAP = 5; private static final long s...
true
5f38d8648278423ae8b1307275fe8860c03f3c51
Java
sergeevNick/android
/app/src/main/java/ru/sergeev/gettingstarted/DAO/ScheduleRowRepository.java
UTF-8
582
2.234375
2
[]
no_license
package ru.sergeev.gettingstarted.DAO; import io.realm.Realm; import io.realm.RealmResults; import ru.sergeev.gettingstarted.entities.ScheduleRow; public class ScheduleRowRepository { private Realm realm; public void getRealm() { realm = Realm.getDefaultInstance(); } public void...
true
a49508efb0277bfc34ad77ebd8708ff8b18467a8
Java
rekhathamatam/jenkins-job-dsl-plugin-example
/projects/vending-machine-kata-solution/src/test/java/pl/nkoder/katas/vendingmachine/VendingMachineShould.java
UTF-8
8,777
2.59375
3
[ "MIT" ]
permissive
package pl.nkoder.katas.vendingmachine; import org.junit.Before; import org.junit.Test; import pl.nkoder.katas.vendingmachine.parts.shelves.Shelves; import pl.nkoder.katas.vendingmachine.time.DelayedActionsForTests; import static pl.nkoder.katas.vendingmachine.VendingMachineAssertions.assertThat; import static pl.nko...
true
166e05c4c7afaea2198ed97db119a4748f418c2e
Java
kuldeepsingh000/Summer_JavaInternship
/JavaInternshipClg/src/jdbcPractical/UseOfPreparedStatement.java
UTF-8
695
2.875
3
[]
no_license
package jdbcPractical; import java.sql.*; public class UseOfPreparedStatement { public static void main(String[] args) throws Exception { Class.forName("oracle.jdbc.driver.OracleDriver"); Connection con = DriverManager.getConnection("jdbc:oracle:thin:@Localhost:1521:xe", "system", "1234"); String query...
true
88f6895a9bd31269203821d4b00b45b19b53864f
Java
professorbossini/AgendaComFirebaseFatecIpiNoite
/app/src/main/java/br/com/bossini/agendacomfirebasefatecipinoite/Contato.java
UTF-8
1,415
2.453125
2
[]
no_license
package br.com.bossini.agendacomfirebasefatecipinoite; import com.google.firebase.database.Exclude; /** * Created by rodrigo on 18/05/18. */ public class Contato { private String chave; private String nome, fone, email; @Exclude public String getChave() { return chave; } public v...
true
e520cc9925ab0f0ed2bf291cdf0936c1a65d5c45
Java
hamzanasir/Power-Grid-Simulation-System
/SmartAppliance.java
UTF-8
556
2.390625
2
[]
no_license
public class SmartAppliance extends Appliance { double percdropsmart; public SmartAppliance(int l,String apname,int o,double onoff,double drop,boolean r) { super(l,apname,o,onoff,r); percdropsmart=drop; } public void lowvoltage() { double lowvolt=(super.onwattage)-(super.onwattage*percdropsm...
true
3b098e138c31410f7b878d02303a6308f11ca789
Java
bbamrin/AnimeHelperReborn
/app/src/main/java/bbamrin/animehelperreborn/Model/retrofitModel/ResultData/children/Image.java
UTF-8
1,910
2.234375
2
[]
no_license
package bbamrin.animehelperreborn.Model.retrofitModel.ResultData.children; import android.os.Parcel; import android.os.Parcelable; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; public class Image implements Parcelable { @SerializedName("original") @Expose ...
true
feea7613aaaa0ff183f89644fcb89814e58dffc2
Java
rajniss21/QATestPracticeTeam
/src/main/java/pageobjects/login/Login.java
UTF-8
1,245
2.359375
2
[]
no_license
package pageobjects.login; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.interactions.ClickAction; import org.openqa.selenium.support.FindBy; import org.openqa.selenium.support.Pag...
true
09ce3290723b34e8bc7a6eef454965e7d7ace3c8
Java
benjohnston/milton-cloud
/milton-cloud-server-api/src/main/java/io/milton/cloud/server/web/templating/HtmlTemplateRenderer.java
UTF-8
12,715
1.734375
2
[]
no_license
/* * Copyright (C) 2012 McEvoy Software Ltd * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This p...
true
e333f308dde5aa0e612f9d7f64c5a925d0029658
Java
xiaozao1208/AutoInterface
/chapter10/src/main/java/com/learn/server/MyPostMethod.java
UTF-8
2,524
2.875
3
[]
no_license
package com.learn.server; import com.learn.bean.User; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.web.bind.annotation.*; import javax.servlet.http.Cookie; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @RestC...
true
2033c23aac14de174162f2abc28bcaf4dcd9cd77
Java
chauhanvipul87/Spring3DAOFactoryWebApp
/Dao/com/gea/dao/UserLoginDAOImpl.java
UTF-8
815
2.296875
2
[]
no_license
package com.gea.dao; import java.util.ArrayList; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import com.gea.domain.UserLogin; @Repository public class UserLoginDAOImpl implements UserLoginDAO { ...
true
2a7b69023e3ee18ae12f315ed7b7321f30c76efd
Java
lidaxia2020/helloworld
/src/main/java/com/helloworld/shejimoshi/factory/Benchi.java
UTF-8
215
2.515625
3
[]
no_license
package com.helloworld.shejimoshi.factory; /** * @author daxia li * @time 2019/8/4 */ public class Benchi implements Car{ @Override public void run() { System.out.println("我是奔驰"); } }
true
58c6e17d45363e4489dbe9271ae7b440ffbcd455
Java
raza-ahmed/FamousMovies
/app/src/main/java/in/ahmedraza/famousmovies/custom/VideoCollection.java
UTF-8
1,224
2.34375
2
[]
no_license
package in.ahmedraza.famousmovies.custom; import android.os.Parcel; import android.os.Parcelable; import com.google.gson.annotations.SerializedName; import java.util.ArrayList; /** * Created by ahmedraza on 16/04/17. */ public class VideoCollection { public ArrayList<Videos> results; public static clas...
true
3eb0953866478ca97d53be8d463a4a9c65307ca5
Java
cvet-yordanova/Java-Fund-Databse
/Introduction Spring/bookshop_system/src/main/java/bookshop_system/app/repository/AuthorRepository.java
UTF-8
820
2.21875
2
[]
no_license
package bookshop_system.app.repository; import bookshop_system.app.entities.Author; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.data.jpa.repository.Query; import org.springframework.stereotype.Repository; import java.util.List; @Repository public interface AuthorRepositor...
true
b836837265526d2afe2d20c09957ac8c59b9acbf
Java
rpuch/mongo-spark
/src/main/java/com/mongodb/spark/sql/connector/write/MongoBatchWrite.java
UTF-8
5,310
2.328125
2
[ "Apache-2.0" ]
permissive
/* * Copyright 2008-present MongoDB, 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 ag...
true
f3091103a36b29049b08189197be93efe872b708
Java
abhilashgundlapally/ThreadsInJava
/Thread_ProdCons/src/com/java/threads/Producer.java
UTF-8
287
2.921875
3
[]
no_license
package com.java.threads; public class Producer { private CubbyHole cubyhole; public Producer(CubbyHole cubyhole) { this.cubyhole = cubyhole; } public void produce() { int i = 10; while(i > 0) { cubyhole.put(i); System.out.println("Produce :" + i); --i; } } }
true
079068cc62561b141edda28538b53d230256c838
Java
JosebaGarcia153/criminal
/src/main/java/com/criminal/webapp/controller/backoffice/BorrarUsuarioBackOfficeController.java
UTF-8
2,315
2.578125
3
[]
no_license
package com.criminal.webapp.controller.backoffice; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.annotation.WebServlet; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import javax.servlet.http...
true
e3c12d6bf9ec189c8187fdc2ac6771801cd8e976
Java
qinhaihang/MediaExtractorDemo
/app/src/main/java/com/qhh/mediaextractordemo/CodecThread.java
UTF-8
4,314
2.328125
2
[]
no_license
package com.qhh.mediaextractordemo; import android.media.MediaCodec; import android.media.MediaExtractor; import android.media.MediaFormat; import android.view.Surface; import java.io.IOException; import java.nio.ByteBuffer; /** * @author qinhaihang * @version $Rev$ * @time 19-4-7 下午11:29 * @des * @packgename c...
true
56d2091e656edefea536ffbd7e6e52258330b3a3
Java
coder1097/Software-Engineering
/HotelManagement/src/hotelmanagement/ui/viewcustomers/CustomerListController.java
UTF-8
5,305
2.28125
2
[]
no_license
package hotelmanagement.ui.viewcustomers; import com.jfoenix.controls.JFXTextField; import hotelmanagement.DB.DBHandler; import hotelmanagement.ui.addcustomer.CustomerAddController; import java.io.IOException; import java.net.URL; import java.sql.ResultSet; import java.sql.SQLException; import java.util.ResourceBundle...
true
f3c00d9b017afd4f3fe0b139cba0bea3e55cf62e
Java
ramsp2014/java-angular-demo
/src/main/java/com/angulardemo/spring/angularDemo/UserService.java
UTF-8
534
2.171875
2
[]
no_license
package com.angulardemo.spring.angularDemo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class UserService { @Autowired private UserRepository userRepository; @Autowired private LabourRepo labourRepo; public UserDetails addUser(U...
true
a57094cbd0fab66ee91ea3d604c65d436f04e02f
Java
Pubudi123/MAD-Project
/app/src/main/java/com/example/burgerfreakz/Adapters/ProductAdapter.java
UTF-8
1,228
2.5
2
[]
no_license
package com.example.burgerfreakz.Adapters; import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.ArrayAdapter; import android.widget.TextView; import androidx.annotation.NonNull; import androidx.annotation.Nullable; import c...
true
7ce57f2e8aaeb45b7d7a7fb6584e454f25f0cb6d
Java
hoangdvse62687/Anime_Suggestion
/Anime_Suggestion/src/java/sample/objectConfig/Movies.java
UTF-8
962
2.609375
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 sample.objectConfig; import java.util.ArrayList; import java.util.List; import javax.xml.bind.annotation.XmlAccessType; import...
true
6215ef6a4a759e0519c51b6bda8023df9c23cacc
Java
YuanChenM/xcdv1.5
/Restful API/msk-so-order-api/src/main/java/com/msk/order/rest/ISO151422RestController.java
UTF-8
2,515
2.1875
2
[]
no_license
package com.msk.order.rest; import com.msk.common.annotation.valid.CustomValidation; import com.msk.common.bean.RestRequest; import com.msk.common.bean.RestResponse; import com.msk.common.base.BaseRestController; import com.msk.common.constant.SystemConstant; import com.msk.order.bean.param.ISO151422RestParam; import ...
true
0a34b5b8f6b9d0245f8f3a696323d62a4d083fc9
Java
amw2104/julio-chess-skeleton
/src/main/java/chess/pieces/Piece.java
UTF-8
1,204
2.703125
3
[]
no_license
package chess.pieces; import java.util.List; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import chess.GameState; import chess.Player; import chess.Position; public abstract class Piece { pri...
true
f067d1e70ff4d050995361ee4d07e7d7c6a29cdb
Java
Musketeerz/Enzen
/Smart-Home(For Mobile Application)/app/src/main/java/com/example/musketeers/realm/PairActivity.java
UTF-8
2,089
2.109375
2
[]
no_license
package com.example.musketeers.realm; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.widget.TextView; import com.google.firebase.database.DataSnapshot; import com.google.firebase.database.DatabaseError; import com.google.firebase.database.Datab...
true
3203020add05b6f59bb126f69922b1a7056c5327
Java
cazacugmihai/realtime-store
/src/main/java/com/goodow/realtime/store/server/impl/MemoryDeltaStorage.java
UTF-8
7,421
2.078125
2
[]
no_license
/* * Copyright 2014 Goodow.com * * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except * in compliance with the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writi...
true
4b79fb9c92ecd0dc35056f40917d713acffae93f
Java
nico440b/GymBuddy
/app/src/main/java/com/example/gymBroApp/view/activity/HomeActivity.java
UTF-8
1,426
1.828125
2
[]
no_license
package com.example.gymBroApp.view.activity; import android.Manifest; import android.os.Build; import android.os.Bundle; import com.example.gymBroApp.R; import com.example.gymBroApp.adapter.PageTransformer; import com.google.android.material.tabs.TabLayout; import androidx.core.content.ContextCompat; import androidx...
true
5425eca6499442ddde183b9f471f77ea8c268cc3
Java
kevcywu/em
/src/server/movement/LifeMovementFragment.java
UTF-8
159
1.71875
2
[]
no_license
package server.movement; import tools.data.output.LittleEndianWriter; public interface LifeMovementFragment { void serialize(LittleEndianWriter lew); }
true
e1a0c3c8246de147c4e763bf8da22d476d9004b5
Java
JosBarranquero/ColorMixer
/app/src/main/java/com/barranquero/colormixer/ColorMixer.java
UTF-8
3,244
2.640625
3
[]
no_license
package com.barranquero.colormixer; import android.app.Activity; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Color; import android.util.AttributeSet; import android.view.View; import android.widget.RelativeLayout; import android.widget.SeekBar; /** * Created by usua...
true
4f49a9a2e82de064992539df9991546d12e6ce60
Java
bbrown683/NetflixProject
/Source/Client.java
UTF-8
2,253
3.15625
3
[]
no_license
// Authors: Benjamin Brown and Jake Jones // Assignment: Project 2 // Filename: Client.java import java.io.*; import java.util.*; public class Client { public static void main(String args[]) { NetflixFileReader netflix = null; List<Filter> filters = new LinkedList<Filter>(); try { netflix = new Netfl...
true
9467ab1e25aa24897482bf94d9d6ac1c57c34985
Java
kweckwerth/MiscJavaSolutions
/Airplane.java
UTF-8
291
2.28125
2
[]
no_license
package com.test; import java.io.IOException; public class Airplane { public Airplane() throws IOException { System.out.print("airplane"); throw new IOException(); } } class AirJet extends Airplane { public AirJet() throws IOException { } }
true
60cf6e93a22c6da348b803a03418c54ae17d461f
Java
rogerou/yuema
/src/com/exam/date/MyDateYiPing.java
UTF-8
536
2.203125
2
[]
no_license
package com.exam.date; public class MyDateYiPing { private String activity; private String condation; public MyDateYiPing(String activity, String condation) { super(); this.activity = activity; this.condation = condation; } public String getActivity() { return activity; } public voi...
true
98c6a327ba41b19a712df08f2450fecea4fb535c
Java
adjie7x/atm_simulation_01
/src/main/java/com/mitrais/bootcamp/service/integration/minibank/widrawal/WithdrawalServiceImpl.java
UTF-8
2,942
2.453125
2
[]
no_license
/** * Alipay.com Inc. * Copyright (c) 2004‐2020 All Rights Reserved. */ package com.mitrais.bootcamp.service.integration.minibank.widrawal; import com.mitrais.bootcamp.domain.*; import com.mitrais.bootcamp.repository.ATMRepository; import com.mitrais.bootcamp.service.base.ServiceCallback; import com.mitrais.bootcam...
true
6680eb07c5d134795ae869f00c7b32de25ac20ce
Java
prcwolf/examw-collector
/src/main/java/com/examw/collector/interceptors/UserAuthenticationInterceptor.java
UTF-8
3,216
2.34375
2
[ "Apache-2.0" ]
permissive
package com.examw.collector.interceptors; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.Logger; import org.apache.shiro.SecurityUtils; import org.apache.shiro.subject.Subject; import org.springframework.core.NamedThreadLocal; import org.springfram...
true
80e5e113c858bb2e1733493b6cc6a0329a0f594f
Java
dsrfx88/Latihan2-PBO-Pilkom-1608145
/src/KeluarKoridor.java
UTF-8
113
1.890625
2
[]
no_license
public class KeluarKoridor extends Adegan{ public KeluarKoridor(){ oPlayer.isSelesai = true; } }
true
57ff13de884d1d10ba604941cc8d9d788f561ec5
Java
santannaguilherme/cinetoplus
/src/main/java/br/com/iteris/cinetoplus/domain/entities/Filmes.java
UTF-8
1,668
2
2
[]
no_license
package br.com.iteris.cinetoplus.domain.entities; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import lombok.AllA...
true
47b50039fe4043f14adf2749d443947e6c564a88
Java
DmitryBelonogov/Replica
/app/src/main/java/com/nougust3/replica/Model/Database/UpgradeProcessor.java
UTF-8
1,924
2.75
3
[]
no_license
package com.nougust3.replica.Model.Database; import android.util.Log; import com.nougust3.replica.Model.Note; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.util.ArrayList; import java.util.List; class UpgradeProcessor { private final static String METHODS_PREF...
true
b7f47b1a7a8e83ee5252956965107433d385dc12
Java
ymwoo88/elasticsearch
/src/main/java/com/example/elasticsearch/service/BookService.java
UTF-8
329
1.96875
2
[]
no_license
package com.example.elasticsearch.service; import com.example.elasticsearch.domain.Book; import java.util.List; import java.util.Optional; public interface BookService { List<Book> selectAll(); Book selectById(String Id); void save(Book book); Optional<Book> findByBook(String id); List<Book> find...
true
25e724b0659992b9d7b4703baee67e93c29fd7cc
Java
zkxiaozu/zkManager
/src/com/zkmanager/service/impl/BigProServiceImpl.java
UTF-8
922
1.96875
2
[]
no_license
package com.zkmanager.service.impl; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.zkmanager.dao.BigProDao; import com.zkmanager.po.BigPro; import com.zkmanager.service.BigProService; @Service("bigProService") public cl...
true
012309359e6f273fbab633609c8370ab7c6688c2
Java
SvitlanaShe/quality-lab_test
/src/test/java/com/qualitylab/steps/EmailSteps.java
UTF-8
1,451
2.140625
2
[]
no_license
package com.qualitylab.steps; import com.qualitylab.pages.EmailPage; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.support.ui.WebDriverWait; import org.testng.Assert; import java.util.ArrayList; import java.util.List; public class EmailSteps { private We...
true
1b0091d3dd1c2cbb8e3e2557de3debed77ffe0a7
Java
ahornerr/Multiplayer-Commands
/src/main/java/net/epoxide/mpc/registry/CommandRegistry.java
UTF-8
3,940
1.71875
2
[]
no_license
package net.epoxide.mpc.registry; import java.util.HashMap; import java.util.Map; import net.epoxide.mpc.command.CommandAddItem; import net.epoxide.mpc.command.CommandAddTab; import net.epoxide.mpc.command.CommandBack; import net.epoxide.mpc.command.CommandBroadcast; import net.epoxide.mpc.command.CommandCraft; impor...
true
9c870e1f31480f8a7a5652630f4644db54aa1b72
Java
yangcanlaile/firstspring
/src/main/java/com/controller/HelloController.java
UTF-8
951
2.28125
2
[]
no_license
package com.controller; import com.entity.User; import com.service.UserServiceImp; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.we...
true
7318049654fc99c6c2a011d13c38921a88f5c159
Java
fengzhisha/exercisegroup
/pattern/src/main/java/com/dayue/pattern/strategy/service/impl/StoCalculateStrategy.java
UTF-8
327
2.421875
2
[]
no_license
package com.dayue.pattern.strategy.service.impl; import com.dayue.pattern.strategy.service.CalculateStrategy; /** * 计算申通邮费 * @author Fiuty */ public class StoCalculateStrategy implements CalculateStrategy { @Override public Double calculate(Integer weight) { return 12 + weight * 0.8; } }
true
1e171ae0d8fb96f49626b50e7fb244e80fa2136a
Java
RichardChengshaojin/utils
/Z_practice/src/main/java/pattern/observer/java_v/DisplayElement.java
UTF-8
153
2.0625
2
[]
no_license
package pattern.observer.java_v; /** * DEC * * @author chengshaojin * @since 2017/9/15 */ public interface DisplayElement { void display(); }
true
f314d7dff321a08e5170acc659001a6951850730
Java
iavtamvan/T-SMART
/app/src/main/java/com/iav/id/ituteam/fragment/BantuanFragment.java
UTF-8
2,702
2.078125
2
[]
no_license
package com.iav.id.ituteam.fragment; import android.os.Bundle; import android.support.v4.app.Fragment; import android.support.v7.widget.LinearLayoutManager; import android.support.v7.widget.RecyclerView; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget...
true
4318211291944422dc1c50c55d3133095ca703b1
Java
elvis9xu163/xjd-note
/src/main/java/com/xjd/note/dao/mapper/TagDoMapper.java
UTF-8
812
1.953125
2
[]
no_license
package com.xjd.note.dao.mapper; import com.xjd.note.dao.model.TagDo; import com.xjd.note.dao.model.TagDoExample; import java.util.List; import org.apache.ibatis.annotations.Param; public interface TagDoMapper { int countByExample(TagDoExample example); int deleteByExample(TagDoExample example); int del...
true
4c4f5d09c75194d459f393d092ac8d8a5383a5af
Java
PravinBaravkar/SeleniumWebDriver
/OpenDifferentBrowsers/src/com/browsertest/OpenIEBrowser.java
UTF-8
726
2.765625
3
[]
no_license
package com.browsertest; import org.openqa.selenium.WebDriver; import org.openqa.selenium.ie.InternetExplorerDriver; public class OpenIEBrowser { public static void main(String[] args) { // 32 bit IE Driver System.setProperty("webdriver.ie.driver", "./../resources/drivers/IEDriverServer_Win32_3.10.0/IEDriv...
true
9de127260a5aeed2fbe7d882a46e21726e416b70
Java
alexGutierrez23/FacturApp
/app/src/main/java/appInterfaces/RegistrationMethods.java
UTF-8
725
2.03125
2
[]
no_license
package appInterfaces; import android.content.Context; import android.content.Intent; import sqlite.model.Address; import sqlite.model.Taxi_driver_account; /** * Created by Usuario on 26/11/2017. */ public interface RegistrationMethods { String registrarTaxiDriver(Context context, Address adr, Taxi_driver_ac...
true
78009153c51cfe7e34faae45ef62c9eaf6a00fa9
Java
galen2/test
/src/main/java/daemon/DaemonThread.java
UTF-8
885
3.328125
3
[]
no_license
package daemon; /** * 守护线程 说明:守护线程在没有用户线程可服务时自动离开 * 此程序在启动后,守护线程一直在运行,当用户从键盘输入字符并按回车后,main线程结束,守护线程自动结束 * 守护线程一般是为其他线程提供服务的,当其他线程结束时,守护线程没有服务的对象了,所以也就自动结束了生命周期 * * @author zhq * */ public class DaemonThread extends Thread { public DaemonThread() { } /** * 线程的run方法,它将和其他线程同时运行 */ public void run() { ...
true
964285cfbc2ccaa0082cbbcb2195609930db4106
Java
pispo/MiViewTV
/src/android/MiViewTVLib/src/com/movistar/iptv/platform/stb/pm/time/UTCTimeManager.java
UTF-8
1,229
2.390625
2
[ "Apache-2.0" ]
permissive
package com.movistar.iptv.platform.stb.pm.time; import android.os.SystemClock; import java.lang.NumberFormatException; import java.lang.NullPointerException; import com.movistar.iptv.platform.stb.pm.bootup.BootProperties; public class UTCTimeManager { private static long seed = 0; private static long first...
true
680799b7f9c5a567df859e16a25ba943e4992f80
Java
MudugantiShivani/6006_ADS-2
/ADS-2-Assignments/m4/Code Camp - WordNet/WordNet/Solution.java
UTF-8
1,114
3.078125
3
[]
no_license
import java.util.Scanner; /** * Class for solution. */ final class Solution { /** * Constructs the object. */ private Solution() { } /** * main method for the program. * * @param args The arguments */ public static void main(final String[] args) { Scann...
true
ea3801cfac455789c7af82b509af000bc8a88771
Java
vojteq/teoria_wspolbieznosci
/src/lab5/tickety/Main.java
UTF-8
694
2.984375
3
[]
no_license
package lab5.tickety; import java.util.ArrayList; public class Main { public static void main(String[] args) { Monitor monitor = new Monitor(1); int no_producers = 2, no_consumers = 2; ArrayList<Thread> producers = new ArrayList<>(); ArrayList<Thread> consumers = new ArrayList<>();...
true
b5809f91dbaca67292eb6183489ed75c8ad606a3
Java
JarvisBuop/MyRxDemo
/app/src/main/java/com/zjy/myrxdemo/data/source/DataSource.java
UTF-8
1,500
1.632813
2
[]
no_license
package com.zjy.myrxdemo.data.source; import android.graphics.Bitmap; import com.zjy.baselib.data.model.NetWorkResponse; import com.zjy.baselib.data.model.bean.SessionModel; import com.zjy.baselib.data.model.bean.User; import com.zjy.myrxdemo.data.model.login.ShopInfo; import com.zjy.myrxdemo.data.model.login.bean.Co...
true
993540c459d83753db69e2777880f4e2cd1ce33e
Java
eleganon/leetcode
/58.最后一个单词的长度.java
UTF-8
537
3.046875
3
[]
no_license
/* * @lc app=leetcode.cn id=58 lang=java * * [58] 最后一个单词的长度 */ class Solution { public int lengthOfLastWord(String s) { int len = s.length(); int count = 0; if(len == 0){ return 0; } for(int i = len - 1;i >= 0;i--){ if(s.charAt(i) != ' '){ ...
true
3db5c1ec51678f4240c1d8c3494d1bea777913b2
Java
sunxunbang/pms
/src/com/pms/dao/ImportLogDAO.java
UTF-8
155
1.898438
2
[]
no_license
package com.pms.dao; import com.pms.model.ImportLog; public interface ImportLogDAO { public ImportLog ImportLogAdd(ImportLog log) throws Exception; }
true
41d233637a32cc20331e3988d05b959b312cb62c
Java
lspxian/junsp
/src/protectionProba/ProtectionExact.java
UTF-8
4,471
2.359375
2
[]
no_license
package protectionProba; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.HashMap; import java.util.Map; import java.util.StringTokenizer; import vnreal.algorithms.AbstractLinkMapping; import vnreal.algorithms.utils.NodeLinkAssig...
true
1476bb5bebf5dca0cf069100f0f3ab0fd4541270
Java
julienasp/HockeyNite
/Serveur/StartPoint.java
UTF-8
884
2.453125
2
[]
no_license
import org.apache.log4j.Logger; import dataManagement.ListeDesMatchs; import server.TCPServer; import server.UDPServer; public class StartPoint { private static final Logger logger = Logger.getLogger(StartPoint.class); public static void main(String[] args) { //Contain all data ListeDesMatchs matchList = Li...
true
20f7354351fac0fa86627b752e09e9e124adde25
Java
rizalanhari/laporan-praktikum-pbo-2019
/src/1_Pengantar_Konsep_PBO/tugas/Balok1841720218Rizal.java
UTF-8
760
2.59375
3
[ "MIT" ]
permissive
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package tugas; /** * * @author RIZAL */ public class Balok1841720218Rizal extends PersegiPanjang1841720218Rizal{ public Balok1...
true
db24fb03e17485f310cd0ad0f15c642f64537889
Java
weilinwang/weilin
/Ubifallprevent/src/com/weilin/fall/History.java
UTF-8
2,648
2.671875
3
[ "Apache-2.0" ]
permissive
package com.weilin.fall; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import android.app.Activity; import android.database.Cursor; import android.os.Bundle; import android.widget.ListVi...
true
481047118c552dbd7d0317061d668fcf0a9ac35d
Java
apache/drill
/exec/java-exec/src/main/java/org/apache/drill/exec/planner/logical/DrillDistinctJoinToSemiJoinRule.java
UTF-8
3,087
1.828125
2
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "MIT", "LicenseRef-scancode-unknown" ]
permissive
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you ...
true
88d0411b22ca3a30f5cb2a31f43a4f40e041fafc
Java
redsun9/leetcode
/src/leetcode/leetcode13xx/leetcode1383/Solution.java
UTF-8
923
2.859375
3
[]
no_license
package leetcode.leetcode13xx.leetcode1383; import java.util.Arrays; import java.util.Comparator; import java.util.PriorityQueue; @SuppressWarnings("ConstantConditions") public class Solution { public static final int p = 1_000_000_007; public int maxPerformance(int n, int[] speed, int[] efficiency, int k) {...
true
56e68897b72f59c86e8b17ac5b6d34ec776757d9
Java
GiantFrog/Battleship
/core/src/Carrier.java
UTF-8
113
2.375
2
[]
no_license
public class Carrier extends Ship { public Carrier() { size = 5; name = "carrier"; character = 'C'; } }
true
fed3bc9fa6f0b7df37a2a1a4a551a2251bff7a1f
Java
yangruihuahappy/computer_intro
/intro-parent/service/service_intro/src/main/java/com/introtoc/introService/service/SummaryService.java
UTF-8
336
1.554688
2
[]
no_license
package com.introtoc.introService.service; import com.introtoc.introService.entity.Summary; import com.baomidou.mybatisplus.extension.service.IService; /** * <p> * 服务类 * </p> * * @author tengsss * @since 2021-04-16 */ public interface SummaryService extends IService<Summary> { boolean deleteSummary(Strin...
true
9c88d1c0c80218aa7d8cba4c7b920b5695eeb4de
Java
KaranShrestha16/Android4thAssignment
/app/src/main/java/com/example/android4thassignment/Login.java
UTF-8
2,819
2.09375
2
[]
no_license
package com.example.android4thassignment; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; import com.example.an...
true
be07e023bb5a6a348345a88d5616ad43c00d5002
Java
llwindy99ll/bit-java
/javaEx/src/com/java/api/objectclass/v1/LangClassTest.java
UHC
998
3.515625
4
[]
no_license
package com.java.api.objectclass.v1; public class LangClassTest { public static void main(String[] args) { // TODO Auto-generated method stub Point p = new Point(10,20); System.out.println("Cloneable="+ (p instanceof Cloneable) ); //JAVA ֻ Ŭ Object // Ŭ Object ޴´ // Object κ System.out.printl...
true
d447a7e9377a0beeddbfd45eb467d729fe53496c
Java
anhquancao/java-multithread-socket-client-server
/src/client/RentalClient.java
UTF-8
4,538
2.75
3
[]
no_license
package client; import actions.*; import models.Address; import models.Apartment; import utils.ApartmentType; /** * Created by caoquan on 4/5/17. */ public class RentalClient extends Client { public void requestAllAvailableRentals() { RequestRentalAction requestRentalAction = new RequestRentalAction(Re...
true
d1b3812c7e4cac833debc56f4d4d17d8c5495259
Java
chiragramjibhaipatel/JavaCompleteReferenceEleventhEdition
/Chapter 13/AssertDemo.java
UTF-8
254
2.78125
3
[]
no_license
import java.io.*; class AssertDemo{ static int val = 3; private static int getVal(){ return val--; } public static void main(String[] args){ int n = 0; for(int i=0; i<10; i++){ assert (n = getVal()) > 0; System.out.println(n); } } }
true
e990d3a80eaf15e11663cf0428d7d200f17d8aa3
Java
rdzalejandro316/CAQSMain
/CAQS_DAL/src/co/com/caqs/dal/dao/UsuarioDAO.java
UTF-8
4,550
2.53125
3
[]
no_license
package co.com.caqs.dal.dao; import co.com.caqs.dto.ColadeLlamadaDTO; import co.com.caqs.dto.UsuarioDTO; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.util.ArrayList; import java.util.List; import java.util.logging.Level; import java.util.logging.Logger; public ...
true
55cf8694b348f8579358878528e792c6d44e5fcf
Java
hocyadav/jpa-h2-relation-own-JpaMethods
/src/main/java/com/example/demo/CommandLineRunner__.java
UTF-8
2,261
2.796875
3
[]
no_license
package com.example.demo; import java.util.HashSet; import java.util.List; import java.util.Set; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.CommandLineRunner; import org.springframework.stereotype.Component; ...
true
b42efd13ac7eaf788ec6e2a03ac436fc53e7f432
Java
kbs5046/webProject
/src/com/filter/BlockFilter.java
UTF-8
1,958
2.390625
2
[]
no_license
package com.filter; import java.io.IOException; import java.time.LocalDateTime; import java.util.HashSet; import java.util.Set; import javax.servlet.Filter; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.se...
true
e5636632b5a390ff22f57dc46b2e297f59484d36
Java
zhouhan91/pro
/web/src/main/java/com/wemeCity/common/utils/YamlUtils.java
UTF-8
921
2.34375
2
[]
no_license
package com.wemeCity.common.utils; import java.util.HashMap; import java.util.Map; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import org.springframework.stereotype.Component; @Component public class Yam...
true
3c25c59b525493d84a8e142121374e0efa17f9ae
Java
tochkov/coin-eye
/XChange-develop/xchange-bitmarket/src/main/java/com/xeiam/xchange/bitmarket/dto/BitMarketBaseResponse.java
UTF-8
1,215
2.265625
2
[ "MIT" ]
permissive
package com.xeiam.xchange.bitmarket.dto; import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonProperty; /** * @author kpysniak, kfonal */ @JsonIgnoreProperties(ignoreUnknown = true) public class BitMarketBaseResponse<T> { private final boolean success; priva...
true
4d23d46374503350e202d68576c2846977c3bef9
Java
edwardfoux/Android-Reddit-Client-TOP-section-retriever-
/app/src/main/java/com/example/edwardfouxvictorious/redditclient/net/RedditRequest.java
UTF-8
461
1.890625
2
[]
no_license
package com.example.edwardfouxvictorious.redditclient.net; import com.example.edwardfouxvictorious.redditclient.activities.MainActivity; import com.example.edwardfouxvictorious.redditclient.pojo.RedditResponse; import java.util.Map; import retrofit.Call; import retrofit.http.GET; import retrofit.http.QueryMap; publ...
true
33ad7c1eec78455fbdffa43f860b147eb3bd53bf
Java
Se1ah/Sacoor
/src/com/zhyar/view/ViewFactory.java
UTF-8
4,195
2.53125
3
[]
no_license
package com.zhyar.view; import com.zhyar.EmailManager; import com.zhyar.Products; import com.zhyar.controller.*; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; import javafx.scene.Scene; import javafx.scene.text.Font; import javafx.stage.Stage; import java.io.IOException; import java.util.ArrayList; publ...
true
4988e0b4ea0510e96bfc3d7f554dbc2d63dc17f9
Java
momodupi/PiggyBank
/app/src/main/java/com/momodupi/piggybank/MainActivity.java
UTF-8
21,181
1.65625
2
[ "MIT" ]
permissive
package com.momodupi.piggybank; import android.Manifest; import android.app.DatePickerDialog; import android.app.TimePickerDialog; import android.content.Context; import android.content.Intent; import android.content.pm.PackageManager; import android.net.Uri; import android.os.Bundle; import android.text.Editable; imp...
true
aebaf0571747503bcfc26524387f909430fe49ca
Java
Joeliowo/Gemcubation
/src/main/java/com/zozo/gem/entities/ai/EntityAIWander.java
UTF-8
895
2.5625
3
[]
no_license
package com.zozo.gem.entities.ai; import com.zozo.gem.entities.bases.EntityGem; import net.minecraft.entity.EntityCreature; public class EntityAIWander extends net.minecraft.entity.ai.EntityAIWander { public EntityCreature owned; public EntityAIWander(EntityCreature creatureIn, double speedIn) { supe...
true
da68fea816fd1a232fce8cedcfa9f73fd7eb5ca2
Java
raul-arabaolaza/blueocean-display-url-plugin
/src/main/java/org/jenkinsci/plugins/blueoceandisplayurl/BlueOceanDisplayURLImpl.java
UTF-8
3,770
2.171875
2
[ "MIT" ]
permissive
package org.jenkinsci.plugins.blueoceandisplayurl; import com.google.common.collect.ImmutableSet; import hudson.Extension; import hudson.Util; import hudson.model.FreeStyleBuild; import hudson.model.FreeStyleProject; import hudson.model.Job; import hudson.model.Run; import jenkins.branch.MultiBranchProject; import jen...
true
cc46bc918462a48a052fb6861323b2af6bd92857
Java
IndumathiDoc/Assignments
/week3/day1/Student.java
UTF-8
608
3.3125
3
[]
no_license
package week3.day1; public class Student extends Department { public void studentName() { System.out.println("The name of the Student is: Indu"); } public void studentDept() { System.out.println("The Department of Student is: Mechanical & Engineering"); } public void studentId() { System.ou...
true
2bef54e41acc08e73d054b260a38f130e6b61f3f
Java
lbj0314/Javatest
/Day08_Inheritance/src/com/iu/inheritance3/Fly.java
UTF-8
163
2.3125
2
[]
no_license
package com.iu.inheritance3; public interface Fly { //상수 public final int AGE = 24; //추상 메서드 public abstract void flyable(); }
true
29d10055dcd169924ee632200766f85be6773f72
Java
namratha-prabhu-prep/DSA
/src/main/java/Sorting/SelectionSort.java
UTF-8
1,108
4.21875
4
[]
no_license
package Sorting; import java.util.Arrays; public class SelectionSort { public int[] sort(int[] arr) { int min = 0; for(int i = 0; i < arr.length-1; i++) { /* Eg: arr = {1,4,2,0}, i = 0 < 3 1) i = 0, min = 0, j = 1, 1 > 4 j = 2, 1 > 2 j =...
true
cc776bc8655469df1e9bc8c214988d9494dd621b
Java
koodory/migh
/src/main/java/migh/services/PhotosService.java
UTF-8
551
2.453125
2
[]
no_license
package migh.services; import java.util.List; import migh.vo.PhotosVo; /* Service 객체의 호출 규칙 정의 = protocol = interface * - 서비스 객체는 업무 절차를 정의하고 있다. * - 트랜잭션을 정의한다. * - 메서드의 이름은 업무에서 사용하는 용어를 쓴다. */ public interface PhotosService { int count(); List<PhotosVo> list(int pageNo, int pageSize); // void upload(Photos...
true
d6caa59da1ffc485c1d8c3764dd009b0c9611ccf
Java
ttggaa/yxCredit_fin-app
/fin-service/src/main/java/com/zw/rule/areaQuota/service/AreaQuotaService.java
UTF-8
664
1.84375
2
[]
no_license
package com.zw.rule.areaQuota.service; import com.zw.rule.areaQuota.AreaQuota; import java.util.List; import java.util.Map; /** * 区域限额设置服务层接口 * Created by Administrator on 2017/12/6. */ public interface AreaQuotaService { //获取全部区域限额信息 public List<AreaQuota> getAllQuota(Map map); //添加区域限额 public in...
true
6ba68a7e9d1c722188bebdfcfc86a8f91fadf0e9
Java
aescariom/android-care
/AndroidCare_web/src/org/androidcare/web/client/module/dashboard/Dashboard.java
UTF-8
3,315
1.976563
2
[]
no_license
package org.androidcare.web.client.module.dashboard; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.event.logical.shared.SelectionEvent; import com.google....
true
7661286a3121746c5e93967c5825d176e7b0f5f8
Java
XingCloud/web-interface
/src/main/java/com/xingcloud/webinterface/model/StatefulCache.java
UTF-8
1,356
2.375
2
[]
no_license
package com.xingcloud.webinterface.model; import com.xingcloud.webinterface.enums.CacheReference; import com.xingcloud.webinterface.enums.CacheState; import java.util.Map; public class StatefulCache { private CacheReference reference; private CacheState state; private Map<Object, ResultTuple> content; pr...
true
37039c9c971c58537e518da2e7abb594ae581365
Java
pedrop225/rhino-apps
/RhinosDesktop/src/com/desktop/rhinos/gui/table/DocumentTable.java
UTF-8
2,122
2.453125
2
[]
no_license
package com.desktop.rhinos.gui.table; import java.awt.Desktop; import java.io.IOException; import java.text.SimpleDateFormat; import java.util.ArrayList; import javax.swing.JOptionPane; import com.android.rhinos.gest.RhFile; import com.desktop.rhinos.connector.Connector.App; @SuppressWarnings("serial") ...
true
de733c44e650014fc81715c6c53147cabb92018a
Java
Sausky/The-Outlast
/app/src/main/java/com/org/outlast/ui/view/mirror_hidden_thing.java
UTF-8
753
1.945313
2
[]
no_license
package com.org.outlast.ui.view; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.widget.ImageView; import com.org.outlast.R; /** * Created by shen on 15/5/31. */ public class mirror_hidden_thing extends Activity { ImageView notebook; @Override protected v...
true
63261b1f579f8c312678aa56b3873621497d407c
Java
unviable/Spider
/SpiderApplication/src/com/woniu/util/LoadVideo.java
UTF-8
766
2.40625
2
[]
no_license
package com.woniu.util; import java.io.BufferedInputStream; import java.io.FileOutputStream; import java.net.HttpURLConnection; import java.net.URL; public class LoadVideo { public static void getDondow(String url,String pathName)throws Exception{ URL ul = new URL(url); HttpURLConnection conn = (Http...
true
e585c3369ec649595bdced51530c832efa859afb
Java
cmFodWx5YWRhdjEyMTA5/smell-and-machine-learning
/ast_results/linuxtage_glt-companion/app/src/main/java/at/linuxtage/companion/viewmodels/EventViewModel.java
UTF-8
1,010
1.945313
2
[]
no_license
// isComment package at.linuxtage.companion.viewmodels; import android.arch.lifecycle.LiveData; import android.arch.lifecycle.ViewModel; import at.linuxtage.companion.db.DatabaseManager; import at.linuxtage.companion.livedata.AsyncTaskLiveData; import at.linuxtage.companion.model.Event; public class isClassOrIsInterf...
true
f3829bbe324948156a88b1f8d9c968c0173ff66f
Java
hc5/snakeai
/src/snake/Cell.java
UTF-8
208
2.53125
3
[]
no_license
package snake; import java.awt.Color; import java.awt.Point; public class Cell { public Point p; public Cell(Point p, Color c) { super(); this.p = p; this.c = c; } public Color c; }
true
e2e249bd896ea29b7d633623f79b492a089a34d8
Java
suresh-bhanse/flash
/startup/src/startup/Student.java
UTF-8
328
3.109375
3
[]
no_license
package startup; class Calc { int num1,num2; int perform() { return num1+num2; } } public class Student { public static void main(String args[]) { Calc obj = new Calc(); obj.num1=10; obj.num2=20; System.out.print(obj.perform()); ...
true
03111bfba0a15a0b175f1a96bb85f0d3a3904c02
Java
usman-tahir/it-306-code
/dsa-examples/linked-list-stack/LinkedListStackApplication.java
UTF-8
696
3.984375
4
[]
no_license
public class LinkedListStackApplication { public static void main(String[] args) { LinkedListStack list = populateLinkedListStack(); displayLinkedListStack(list); } public static LinkedListStack populateLinkedListStack() { LinkedListStack list = new LinkedListStack(); // Initialize a list of 10...
true
d8f4639b9ef28446aab4ff7d2f4ed3627529d9d4
Java
afmachado/anarxiv
/src/com/nephoapp/anarxiv/anarxiv.java
UTF-8
21,348
1.773438
2
[ "Apache-2.0" ]
permissive
/* * Copyright (C) 2011 Nephoapp * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed t...
true
8b8c3f809446f9498c5fffcf800482718144c429
Java
milovanovicd/Airplane-tickets-Java
/ProjectServer/src/logic/impl/PronadjiRezervacijeSO.java
UTF-8
2,078
2.3125
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 logic.impl; import domain.DomainObject; import domain.Let; import domain.Rezervacija; import java.util.Date; import java.util....
true
168267ed93df8cd45b0f56d6f718ba39805d8d4d
Java
ZhaoPeixiao/leetcode
/src/warmup/page2/squaresofasortedarray/SquaresofaSortedArray.java
UTF-8
296
2.84375
3
[]
no_license
package warmup.page2.squaresofasortedarray; import java.util.Arrays; /** * @Author: Peixiao Zhao */ class Solution { public int[] sortedSquares(int[] A) { for (int i = 0; i < A.length; i ++){ A[i] = (A[i] * A[i]); } Arrays.sort(A); return A; } }
true
7e8056596fb421f008f2025e8cce27d4936e972e
Java
frc1647/FRC-2016
/src/com/subsystem/Messenger.java
UTF-8
1,352
2.515625
3
[ "MIT" ]
permissive
package com.subsystem; import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; public class Messenger extends Subsystem { private double targetForksPosition; private double potVoltage; private boolean forksAtLocation; private boolean intakeEngaged; private String...
true
83eb2d8900680ca558b777ccbde942e2e666ab0b
Java
mingyi621/GPE_Practice
/Trip.java
UTF-8
1,099
3.53125
4
[]
no_license
import java.util.Scanner; import java.util.*; class Trip { public static void main(String args[]) { Scanner sc = new Scanner(System.in); while(sc.hasNextInt()) { int n = sc.nextInt(); if(n == 0) break; double[] money = new double[n]; double total = 0.0, average = 0.0; for(int i = 0; i < n;...
true
4f281399b959f03e06b244775ab21f926d0c7627
Java
UnaCloud/CLCAR2016
/src/uniandes/comit/entities/Variables.java
ISO-8859-1
1,133
1.78125
2
[]
no_license
package uniandes.comit.entities; import java.text.SimpleDateFormat; import java.util.Locale; public class Variables { public static final String CPU1 = "CPU Fsico 1"; public static final String CPU2 = "CPU Fsico 2"; public static final String CPU3 = "CPU Fsico 3"; public static final String CPU4 = "CPU Fsico 4"; ...
true
178b4d5f5185499e2f97acfa5141385368ae8f44
Java
ryangardner/excursion-decompiling
/divestory-CFR/com/syntak/library/MathOp.java
UTF-8
8,903
3.125
3
[]
no_license
/* * Decompiled with CFR <Could not determine version>. */ package com.syntak.library; import java.util.Random; public class MathOp { public static Matrix add(Matrix matrix, Matrix matrix2) throws IllegalDimensionException { if (matrix.getNcols() != matrix2.getNcols()) throw new IllegalDimensionExceptio...
true
b2ee55f92085dd9fc6d33bb2d4bbafcf8754f03b
Java
bitbanger/algohw
/hw4/hw4_problem2_Lawley.java
UTF-8
2,506
3.953125
4
[]
no_license
import java.util.Scanner; public class hw4_problem2_Lawley { // VERSION 1: Done in linear space and quadratic time. // I'm leaving this here just in case my mega-optimized version below doesn't handle every case. public static int countAlternatingSubsequences(int[] a) { // s[i] = number of alternating subsequence...
true
6e893a129ac050aea1af14639e7092b9fc47d8a9
Java
sirencode/MyHybrid
/app/src/main/java/com/hybrid/yongheshen/myhybrid/MainActivity.java
UTF-8
1,683
2.1875
2
[]
no_license
package com.hybrid.yongheshen.myhybrid; import android.app.Activity; import android.os.Bundle; import android.view.View; import android.webkit.WebChromeClient; import android.widget.Button; import com.hybrid.yongheshen.myhybrid.web.BaseWebView; import com.hybrid.yongheshen.myhybrid.web.MyWebViewClient; public class ...
true