hexsha stringlengths 40 40 | size int64 8 1.04M | content stringlengths 8 1.04M | avg_line_length float64 2.24 100 | max_line_length int64 4 1k | alphanum_fraction float64 0.25 0.97 |
|---|---|---|---|---|---|
b5d037f11b36120ddfac39f82b00651710f7f2bb | 7,609 | package com.exceptionless.exceptionlessclient;
import com.exceptionless.exceptionlessclient.configuration.Configuration;
import com.exceptionless.exceptionlessclient.enums.EventPropertyKey;
import com.exceptionless.exceptionlessclient.enums.EventType;
import com.exceptionless.exceptionlessclient.models.Event;
import c... | 34.274775 | 99 | 0.726508 |
656efb8fb1cdd8f2a4356a9f859cc2d53daf81b0 | 135 | package com.ngochung.apinetwork;
public interface CSSResultLisstener {
public void onResult(CSSResult<Integer, String> result);
}
| 22.5 | 60 | 0.792593 |
121560559ca9c96a72d311edfa0e877f74cf43c1 | 955 | /*
File Name: Pass.java
Name: Ronny Chan
Class: ICS3U1-31 (B)
Date: March 9, 2016
Description: Displays a random math addition question and asks the user for an answer, then
tells the user whether or not they are correct.
Notes: The length of one tab (\t) will treated as 5 spaces... | 25.131579 | 92 | 0.595812 |
def07524ae79d72c7fe011de7a4ca8e32fbfcc94 | 19,415 | package com.guider.healthring.B18I.b18isystemic;
import android.bluetooth.BluetoothAdapter;
import android.content.Intent;
import android.graphics.Color;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import androi... | 45.790094 | 167 | 0.518774 |
91441ab308ece9989b0f0238b2479ead7746998a | 2,890 | /*
* Copyright 2017 The Polypara 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 applicable law or agre... | 31.413043 | 128 | 0.6609 |
1b2bedcab974e84c626b6b8c568a7245dfd640fd | 1,353 | package divconq.service.db;
import divconq.bus.IService;
import divconq.bus.Message;
import divconq.db.IDatabaseManager;
import divconq.db.DataRequest;
import divconq.db.ObjectFinalResult;
import divconq.hub.Hub;
import divconq.mod.ExtensionBase;
import divconq.work.TaskRun;
public class DomainsService ext... | 26.019231 | 72 | 0.670362 |
41369d6f5a00d063e41952cd57904421d9866016 | 3,847 | /**
* The MIT License (MIT)
*
* Copyright (c) 2015 Arbalo AG
*
* 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, c... | 24.194969 | 92 | 0.645438 |
dc365a1d6bf91f1ff6536fc8363830c7be1c2b54 | 6,846 | /*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package utilesGUIx.tabPane;
import java.awt.Color;
import java.awt.Component;
import java.awt.Graphics;
import java.awt.Insets;
import javax.swing.border.AbstractBorder;
public class BorderTab extends Ab... | 34.23 | 97 | 0.600789 |
3407bac297b1f27029d1c2b43f9f1a9a0201e754 | 832 | package edu.miamioh.meyerjm;
// Created by John Meyer on 4/27/2017.
// CSE 271 F
// Dr. Angel Bravo
// Lab12
/**
* Implements a selection sort
*/
public class SelectionSorter {
/**
* Sorts the given array with a selection sort
* @param array The array to sort
*/
public static void sort(int[] ... | 27.733333 | 62 | 0.552885 |
fc847d6de7d7604d803f8807da5ee7b58c2fb042 | 13,165 | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.autofill_assistant.user_data;
import androidx.annotation.Nullable;
import org.chromium.base.annotations.CalledByNati... | 49.679245 | 100 | 0.699658 |
fe063645299351955255e605730164d7a4c6d1f4 | 1,152 | package com.ktkj.utils;
public class Station {
public static final String provinceManager = "00";//省公司总经理
public static final String provinceViceManager = "01";//省公司副总经理
public static final String provinceDeptManager = "02";//省部门正职
public static final String provinceDeptViceManager = "03";//省部门副职
... | 42.666667 | 76 | 0.733507 |
d3c07107c7165acedd5f1f20097f0cea602430a2 | 307 | package com.raj.frs.util;
import com.raj.frs.bean.CredentialsBean;
public interface Authentication {
public boolean authenticate(CredentialsBean credentialsBean);
public String authorize(String userId);
public boolean changeLoginStatus(CredentialsBean credentialsBean, int loginStatus);
}
| 25.583333 | 85 | 0.798046 |
c8187dfad1bff52b08595f0bfc02e1dc75ab5e44 | 1,583 | package com.xyjune.items;
import android.content.Context;
import android.content.res.TypedArray;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.widget.CompoundButton;
import android.widget.LinearLayout;
import android.widget.Switch;
import androidx.annotation.Nullable;
public final c... | 29.867925 | 109 | 0.723942 |
c8437c6bc98e93a478c7438d4c31f22918c1013c | 597 | package org.fxmisc.material_time_picker_fx;
import com.sun.javafx.scene.control.behavior.ComboBoxBaseBehavior;
import java.time.LocalTime;
public class MaterialTimePickerBehaviour extends ComboBoxBaseBehavior<LocalTime> {
public MaterialTimePickerBehaviour(final MaterialTimePicker timePicker) {
super(timePicker,... | 25.956522 | 90 | 0.795645 |
22001f75a723382dc25f5232dde2f5662913e508 | 2,468 | package ru.otus.testing.exercise.impl;
import org.assertj.core.api.Assertions;
import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.mockito.BDDMockito;
import org.mockito.Mockito;
import ru.otus.testing.exercise.MessageBuilder;
import ru.otus.... | 41.133333 | 101 | 0.77269 |
e6dfb7aeba3902ef0fe6e438edf2a636b04c7d35 | 780 | package com.exciter.androidbasic.thread;
import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
public class TestCallable {
public static class MyTestCallable implements Callable {
@Override
pub... | 27.857143 | 70 | 0.664103 |
e3afcec551bc3e6e7bdfbc4c923b95b8553d6182 | 4,002 | /*
* Copyright 2019 GridGain Systems, Inc. and Contributors.
*
* Licensed under the GridGain Community Edition License (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.gridgain.com/products/software/community-edition... | 21.989011 | 102 | 0.5997 |
606242a7f791b2435ac4413c61e06993fd2e59b3 | 370 | package com.statemachinesystems.envy.parsers;
import org.junit.Test;
import static org.hamcrest.CoreMatchers.is;
import static org.junit.Assert.assertThat;
public class LongValueParserTest {
@Test
public void parsesLongs() {
long value = Long.MAX_VALUE;
assertThat(new LongValueParser().parse... | 23.125 | 87 | 0.732432 |
c7ad2f4d772d4474149d5fc2d94a9ade99190396 | 4,963 | /*
* Copyright 2001-2012 Stephen Colebourne
*
* 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 a... | 36.226277 | 118 | 0.67439 |
d93e94886879c3d9f2a3520e1f2b90b1e08ef9ab | 289 | package me.dwliu.framework.core.log.producer;
import me.dwliu.framework.core.log.dto.AbstractLogOperationDTO;
/**
* 日志生产者
*
* @author liudw
* @date 2020/7/5 11:40
**/
public interface LogProducer {
/**
* 保存日志
*
* @param dto
*/
void saveLog(AbstractLogOperationDTO dto);
}
| 15.210526 | 63 | 0.685121 |
57cf874a31a946a49a8dd8b1140bca9e090f27ff | 541 | package players;
import java.util.ArrayList;
import ai.RandomBiasedAI;
import ai.CMAB.CMABBuilder;
import ai.core.AI;
import ai.evaluation.SimpleSqrtEvaluationFunction3;
import rts.units.UnitTypeTable;
/**
* Encapsulates the creation of a standard instance of A2N
* @author artavares
*
*/
public class A2N extends... | 21.64 | 71 | 0.743068 |
47c3fee494186ac95c91a1129157375a48336333 | 278 | package com.example.demo.service;
import com.example.demo.model.Scores;
import org.springframework.web.multipart.MultipartFile;
import java.util.List;
public interface ScoresService {
public List selectAllScores();
void addScore(Scores scores, MultipartFile file);
}
| 23.166667 | 55 | 0.791367 |
8f7c6cb719f9ca5627ace31188cb5d08534a5420 | 1,986 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.cognitiveservices.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Co... | 27.205479 | 86 | 0.663646 |
a3a80682f4e196ce8b5f9b4f7876d0bf1749214a | 866 | package com.thtf.base.server;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.Enab... | 30.928571 | 72 | 0.712471 |
7e70a443bed4bee0d71187f1cbfbfff9b5a61ce6 | 2,111 | package com.leetcode.stock.one;
import java.util.Arrays;
/**
* 88. 合并两个有序数组
*
* 给定两个有序整数数组 nums1 和 nums2,将 nums2 合并到 nums1 中,使得 num1 成为一个有序数组。
*
* 说明:
*
* 初始化 nums1 和 nums2 的元素数量分别为 m 和 n。
* 你可以假设 nums1 有足够的空间(空间大小大于或等于 m + n)来保存 nums2 中的元素。
* 示例:
*
* 输入:
* nums1 = [1,2,3,0,0,0], m = 3
* nums2 = [2,5,6],... | 25.433735 | 85 | 0.500711 |
6813cb53f3b94060e301d9e811f207939fee1141 | 3,935 | package com.solvd.automation.lab.carina.demo;
import com.qaprosoft.carina.core.foundation.AbstractTest;
import com.solvd.automation.lab.carina.demo.gui.pages.GSMArenaHomePage;
import com.solvd.automation.lab.carina.demo.gui.pages.GSMArenaSignUpPage;
import com.solvd.automation.lab.carina.demo.gui.TestData;
import org.... | 38.960396 | 120 | 0.716391 |
ce6447baaa0f54a21c1017f93fd846cebaa063db | 1,900 | /*
* Copyright 2012 Stormpath, Inc. and contributors.
*
* 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 applic... | 34.545455 | 110 | 0.712105 |
1f8d6c1555ce748f45552f2ec1ea9da58736b35d | 3,137 | package ru.krista.io.asn1.core;
import java.io.IOException;
@Asn1Tag(value = Tag.SEQUENCE, type = Tag.TagType.CONSTRUCTED)
public class Struct extends Constructable {
@Override
public Parser.Container createContainer() {
Binding[] bindings = Binding.getBinds(this.getClass());
Parser.Constructa... | 43.569444 | 153 | 0.552757 |
a92c44822211e25fe7e9d0913b60d15e8ff2691f | 781 | package de.bogenliga.application.services.v1.sportjahr.model;
import de.bogenliga.application.business.sportjahr.SportjahrDO;
import de.bogenliga.application.common.service.mapping.DataTransferObjectMapper;
import de.bogenliga.application.services.v1.sportjahr.SportjahrDTO;
import java.util.function.*;
import java.util... | 33.956522 | 84 | 0.761844 |
6182923abb5576e1139e3e3f5d34205b788dc52f | 5,185 | /*
* Copyright 2012-2017 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 ap... | 30.863095 | 86 | 0.699132 |
5c06b8bd9b5d076605c0981ce499a5048247ac58 | 1,679 | // Automatically generated by xdrgen
// DO NOT EDIT or your changes may be overwritten
package ir.kuknos.sdk.xdr;
import com.google.common.base.Objects;
import java.io.IOException;
// === xdr source ============================================================
// struct Liabilities
// {
// int64 buying;
// ... | 27.983333 | 107 | 0.650387 |
71e0e173975ef9e81ddefcb39f806bb133a2ebb9 | 3,628 | // Copyright 2012 Google Inc. All Rights Reserved.
//
// 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... | 18.701031 | 75 | 0.681918 |
4ffc4559f68c674fec41856bc448eb929d82febe | 300 |
public class InterfaceImpl implements Interface
{
public String getString() { return "foo"; }
public Integer getInteger() { return Integer.valueOf(5); }
public int getPrimitiveInt() { return 7; }
public boolean getPrimitiveBool() { return true; }
public Object getNull() { return null; }
}
| 27.272727 | 62 | 0.72 |
908be354f61651d669990619abac8bb23c2a6ce1 | 6,868 | package conveyorio;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.image.BufferedImage;
import java.awt.image.ImageObserver;
import java.util.LinkedList;
import objects.GuiTiles.CoalTile;
import objects.GuiTiles.ConveyorTile;
import objects.GuiTiles.CurvedConveyorTile;
im... | 30.798206 | 167 | 0.695108 |
3101d5567618150d591c52f40b833cc04b59030b | 39,167 |
/**
*
* @author RECEP
*/
package signup;
import admin.PanelColors;
import java.io.File;
import javax.swing.JOptionPane;
import java.awt.*;
import java.nio.file.Paths;
import keeptoo.Drag;
public class webSite extends javax.swing.JFrame {
String path = Paths.get("").toAbsolutePath().toString();
/**
*... | 54.023448 | 153 | 0.683228 |
f838fefb89e4bfbdd82b051b2cae46b6eb8855c3 | 2,694 | package org.jeecg.modules.wanbang.payment.entity;
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotati... | 30.269663 | 60 | 0.687082 |
2b3515d64122538dc16ef0f8ae361a41216cccf9 | 833 | package com.example.service;
import java.util.List;
import com.example.dao.ClientDAOImpl;
import com.example.model.Client;
public class ClientService {
private ClientDAOImpl cDao;
public ClientService() {
}
public ClientService(ClientDAOImpl cDao) {
super();
this.cDao = cDao;
}
public Client find... | 18.511111 | 58 | 0.740696 |
457e16c98bb09b80ee886554b21d1a132d370410 | 161 | package com.shubhit.jwt.controller;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class FrontController {
}
| 16.1 | 63 | 0.776398 |
9918cdc26731b3050ef9b61fe57f2408f8f415f8 | 2,878 | package ltu;
import static org.junit.Assert.*;
import java.beans.Transient;
import org.junit.Test;
public class Apples2ApplesTest
{
@Test // 1. Read all the green apples (adjectives) from a file and add to the green apples deck.
public void test_if_green_apples_are_read()
{
assertEquals(1, 1);... | 29.070707 | 126 | 0.646977 |
ab03ba95693cf43db1da06a60d232b88d63cc2ac | 14,677 | /*
* Copyright 2003 - 2019 The eFaps Team
*
* 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 ... | 36.329208 | 114 | 0.569258 |
8f433e2ecb3e75c43906bde12785edc0b198ab52 | 3,003 | // Given an expression string array, return the final result of this expression
// Example
// For the expression 2*6-(23+7)/(1+2), input is
// [
// "2", "*", "6", "-", "(",
// "23", "+", "7", ")", "/",
// (", "1", "+", "2", ")"
// ],
// return 2
// Note
// The expression contains only integer, +, -, *, /, (, )... | 29.15534 | 110 | 0.422244 |
9d83682198ec91f9c2dc6cb92658efb9820a4eb0 | 88 | package org.soraworld.cbaubles.proxy;
public class ServerProxy extends CommonProxy {
}
| 17.6 | 46 | 0.818182 |
c570e92de5735699ebfa73aa0d29939ff67696b9 | 13,988 | /*
* Copyright 2006-2009, 2017, 2020 United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA World Wind Java (WWJ) platform is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this f... | 37.907859 | 119 | 0.647412 |
1b62a42acdb71c95a221383b5509647141b21662 | 1,075 | package com.vilderlee.distributelock.redis;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotat... | 26.219512 | 113 | 0.750698 |
c431b4896bfdf9f802667ff68626abb56ae2e4fa | 950 | // Copyright (c) 2001 Dustin Sallings <dustin@spy.net>
package net.spy.util;
import java.util.Timer;
import net.spy.SpyObject;
/**
* Monitor TTLs.
*
* @see TTL
*/
public final class TTLMonitor extends SpyObject {
private static TTLMonitor instance=null;
private final Timer timer;
/**
* Get an instance ... | 16.666667 | 72 | 0.668421 |
c160cf4b89650565b5613452663294fc63f93316 | 1,732 | package graph;
/**
*
* @author vietan
*/
public class GraphEdge implements Comparable<GraphEdge> {
private final GraphNode source;
private final GraphNode target;
private double weight;
public GraphEdge(GraphNode s, GraphNode t) {
this(s, t, 0.0);
}
public GraphEdg... | 23.405405 | 65 | 0.55254 |
719c0970afce608b4bd55f9c091ebba21a697e52 | 2,397 | /*
* MIT License
*
* Copyright (c) 2020 mdashlw
*
* 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, copy, modify, ... | 39.95 | 118 | 0.761786 |
92db1080a5af39a59568c1f05c334bd9c10c3065 | 403 | package android.support.v4.widget;
import android.annotation.TargetApi;
import android.graphics.drawable.Drawable;
import android.widget.TextView;
@TargetApi(18)
class ab {
public static void m2375a(TextView textView, Drawable drawable, Drawable drawable2, Drawable drawable3, Drawable drawable4) {
textVie... | 31 | 129 | 0.791563 |
41b5aa00a33a462cb5dbb667e9ef1d57d1cbafd0 | 1,903 | /**
* Copyright (c) 2015 HStreams contributors
*
* 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... | 29.276923 | 105 | 0.774566 |
1de81735598f54cae81cf5d1d266bff8d6212153 | 2,956 | /*
* Copyright 2020 White Magic Software, Ltd.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright
* notice, this li... | 39.413333 | 80 | 0.739513 |
823f8b42b0dc8c10c6384786cc135b808c9d2dd6 | 2,055 | /**
* This applet will download a file and execute it
**/
import java.applet.*;
import java.awt.*;
import java.io.*;
import java.net.URL;
import java.util.*;
public class Java extends Applet
{
private Object initialized = null;
public Object isInitialized()
{
return inita... | 35.431034 | 102 | 0.424818 |
532d47804b5576468e47c2cfca3c819de065e2df | 823 | package ceui.lisa.adapters;
import android.content.Context;
import android.view.View;
import java.util.List;
import ceui.lisa.databinding.RecyIllustStaggerBinding;
import ceui.lisa.models.IllustsBean;
public class IAdapterWithStar extends IAdapter {
private boolean hideStarIcon;
public IAdapterWithStar(Li... | 27.433333 | 107 | 0.747266 |
c35fdc35f9df5739d855c066ee3775582642c549 | 176 | package com.dubture.twig.core.model;
public interface ITwigCallable extends ITwigModelElement {
public String[] getParameterNames();
public String getInternalFunction();
}
| 22 | 58 | 0.806818 |
e33c4fbd4d534ad5d8bf3b59a8ec612a3eacbb90 | 1,178 | package cz.cuni.mff.d3s.deeco.analysis.def;
/**
*
* Abstract generator. Task of generator is to generate values from a given interval.
*
* @param <T> Type of values that should be returned by the generator.
*/
public abstract class Generator<T> {
/* Start of the interval. */
protected T start;
/* End of the ... | 32.722222 | 94 | 0.719015 |
4995030c7fedb3ea1e688a056774736512f7268b | 14,102 | /*
* Copyright 2017 Crown Copyright
*
* 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... | 39.063712 | 177 | 0.588924 |
9f5a3ef928c09bc6e2254ab529e27502095a1126 | 90 | package com.seanshubin.condorcet.backend.genericdb.javadoc;
public class JavaDocStub {
}
| 18 | 59 | 0.822222 |
5199dbbff7cd6f8e81b112b2e8b8ead45ef16c0b | 2,047 | package model;
import java.util.HashMap;
import java.util.Map;
public class SalesOrder {
public enum SalesOrderTupe {
Restocked(0),
Purched(1),
Requested(2),
Completed(3);
private int value;
private static Map map = new HashMap<>();
private SalesOrderTup... | 21.322917 | 152 | 0.574988 |
1ce2aa638504c9d88b0da0afe72defad99b69606 | 6,687 | package Signatures;
import GrammarNotions.Context_Terms.CContext;
import GrammarNotions.Context_Terms.CContextKind;
import GrammarNotions.Context_Terms.CTerm;
import GrammarNotions.Context_Terms.CTermTuple;
//SortDefBody=C[memDefs:MemberDefinition*] T[ancestor:SortUse]<_Term
/**
*
* @author HP
*/
p... | 27.8625 | 78 | 0.507103 |
3920047ce66b631e13a8251dbd5f8e4729529ec4 | 2,806 | package com.neojal.javaSE11.liveCoding;
import java.util.Arrays;
public class Exercises {
/**
*
* @param arr
* @return
*/
public int magicIndex(int[] arr) {
int l = 0;
int r = arr.length-1;
while(l<=r) {
int m = l + (r-l)/2;
... | 19.622378 | 61 | 0.397006 |
82b54669bd6a3e23a169d72e8e537a60a2217331 | 2,777 | package com.kenshine.ini4j.example;
import com.google.common.io.Resources;
import org.apache.commons.lang3.StringUtils;
import org.ini4j.Config;
import org.ini4j.Ini;
import org.ini4j.Profile;
import java.io.IOException;
import java.net.URL;
import java.util.Map;
import java.util.Set;
/**
* @author :kenshine
* @da... | 34.7125 | 82 | 0.580483 |
a7c082395496d36263d85527070263e119b99237 | 2,963 | package com.lupicus.nasty.item;
import com.lupicus.nasty.entity.ExplosiveArrowEntity;
import com.lupicus.nasty.entity.MagicArrowEntity;
import com.lupicus.nasty.entity.ModEntities;
import net.minecraft.client.color.item.ItemColors;
import net.minecraft.core.Position;
import net.minecraft.core.dispenser.Abstra... | 47.031746 | 216 | 0.794465 |
b863e469c8dc4a2c8cfded5d63233c146ce4d344 | 1,596 | /**
* Copyright (C) 2010-2015 Morgner UG (haftungsbeschränkt)
*
* This file is part of Structr <http://structr.org>.
*
* Structr 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
... | 30.692308 | 90 | 0.712406 |
55c7dd309e5befae6f0c0095df2abf64e7ae9e9c | 1,049 | package com.alibaba.alink.operator.common.timeseries;
import org.apache.flink.api.java.tuple.Tuple2;
import org.apache.flink.ml.api.misc.param.Params;
import org.apache.flink.table.api.TableSchema;
import com.alibaba.alink.params.timeseries.ShiftParams;
import java.sql.Timestamp;
public class ShiftMapper extends Ti... | 26.225 | 79 | 0.714013 |
f0f27a8e31f9220fb325b8fda65dd0c563b79cb1 | 564 | /*
* Decompiled with CFR 0.150.
*
* Could not load the following classes:
* net.runelite.mapping.ObfuscatedName
* net.runelite.mapping.ObfuscatedSignature
*/
import net.runelite.mapping.ObfuscatedName;
import net.runelite.mapping.ObfuscatedSignature;
@ObfuscatedName(value="fm")
public class class75 {
@Obf... | 24.521739 | 67 | 0.718085 |
f6f13b69fa97ce4c803d5dfdeb4b797f32cec38f | 8,101 | package com.di.ioc.services;
import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Set;
import com.di.ioc.config.configurations.InstantiationConfiguration;
import com.di.ioc.enums.ScopeType;
import com.di.ioc.exceptions.ServiceInstantiationException;
import com.di.ioc.... | 42.862434 | 158 | 0.704234 |
7df1db4035731de0de42ef2208918b1f558d0b2a | 5,469 | package club.mineplex.clans.utils;
import club.mineplex.clans.ClansMod;
import club.mineplex.clans.utils.object.Pair;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.util.ChatComponentText;
import net.minecraft.util.EnumChatFormatting;
import net.minecraft.util.IChatComponent;
import java.util.A... | 36.218543 | 129 | 0.462425 |
53acd9cfe8efe152f971f2cf20be30e2a0111166 | 1,482 | /*
* 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 retailordermanagementsystem;
/**
*
* @author Maxine
*/
public class Payment {
private String PName;
pr... | 23.15625 | 81 | 0.578947 |
b62a883023220190dc37056fbc76c78f156cda00 | 10,253 | /**
* 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... | 32.343849 | 112 | 0.676582 |
a8db3bd3c22c02ff439b7a1949fabd09aa4c0ca8 | 753 | package elf.license;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
@JsonIgnoreProperties(ignoreUnknown=true)
@javax.xml.bin... | 22.818182 | 91 | 0.774236 |
f55cafb843846ec67bf87c5e302ef5d9da43ca72 | 1,953 | // =================================================================================================
// Copyright 2011 Twitter, Inc.
// -------------------------------------------------------------------------------------------------
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use ... | 43.4 | 100 | 0.64977 |
4690cf1776d4bdbfb924dbe23dc29309426f0ff5 | 1,304 | package net.minecraft.client.network.handshake;
import net.minecraft.network.NetworkManager;
import net.minecraft.network.handshake.IHandshakeNetHandler;
import net.minecraft.network.handshake.client.CHandshakePacket;
import net.minecraft.network.login.ServerLoginNetHandler;
import net.minecraft.server.MinecraftServer... | 37.257143 | 118 | 0.805215 |
618424cc7ef024982dc9f26c1592d1103d4b87b0 | 2,439 | package com.pic.ala;
import java.net.InetAddress;
import java.util.Arrays;
import java.util.List;
import org.elasticsearch.action.index.IndexResponse;
import org.elasticsearch.client.Client;
import org.elasticsearch.client.transport.TransportClient;
import org.elasticsearch.cluster.node.DiscoveryNode;
import org.elas... | 34.842857 | 429 | 0.717917 |
6910f9d4256de05942ae2d063b4a9cb4b7b5a1a1 | 14,109 | package sige.finance.consultaclientes;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import javax.swing.*;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;
import j... | 43.81677 | 134 | 0.619463 |
9060ccf455d37c2b9f2ce9ae4710d57da1727891 | 5,201 | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 35.380952 | 118 | 0.663719 |
49f42b9a09228ca4940b960a23e8e588ba469c1e | 5,698 | // Copyright 2009 Distributed Systems Group, University of Kassel
// This program is distributed under the GNU Lesser General Public License (LGPL).
//
// This file is part of the Carpe Noctem Software Framework.
//
// The Carpe Noctem Software Framework is free software: you can redistribute it and/or modify
// ... | 29.677083 | 97 | 0.713408 |
265c46c475e236525f6747ec651c7111b30f4520 | 1,551 | /*
* DISCLAIMER
*
* Copyright 2016 ArangoDB GmbH, Cologne, Germany
*
* 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 req... | 23.5 | 116 | 0.707286 |
54256baa5d62233d636c0ebc37049ed142fede99 | 603 | package chapter17;
import java.util.*;
public class Synchronization {
public static void main(String[] args) {
Collection<String> c = Collections.synchronizedCollection(new ArrayList<>());
List<String> list = Collections.synchronizedList(new ArrayList<>());
Set<String> s = Collections.s... | 27.409091 | 85 | 0.681592 |
e329400edd5c10aee3f3c2089fd5604448385fa4 | 9,260 | package com.yb.socket.service;
import com.yb.socket.exception.SocketRuntimeException;
import com.yb.socket.future.InvokeFuture;
import com.yb.socket.pojo.Heartbeat;
import com.yb.socket.pojo.Request;
import com.yb.socket.pojo.Response;
import com.yb.socket.service.server.Server;
import com.yb.socket.service.server.Ser... | 25.722222 | 108 | 0.62743 |
c69c2f6a06b64e4357d9f9cea336e704b56b73e0 | 148 | class A {
private int i;
private int j;
public A(int i, int j) {
<selection>this.i = i;</selection>
this.j = j;
}
} | 16.444444 | 42 | 0.493243 |
efd9a5e876ce8e2de7fd7dd4ea93d402dc7ad4f1 | 781 | import java.io.*;
import java.util.*;
import java.text.*;
import java.math.*;
import java.util.regex.*;
public class Solution {
public static void main(String[] args) {
/* Enter your code here. Read input from STDIN. Print output to STDOUT. Your class should be named Solution. */
Scanner in = new ... | 30.038462 | 119 | 0.501921 |
bf71a209a174b408ac1fcd9cabe7ce30f998ee82 | 290 | /*** line 8: "foo" is not a valid qualifier for reference "c"
* COMP 520
* Identification
*/
class Fail328 {
public static void main(String[] args) {
F05 c = new F05();
c = c.foo.next;
}
}
class F05 {
public F05 next;
public F05 foo() {return this;}
}
| 18.125 | 61 | 0.572414 |
b04d0406c18da1a920d9831159dbfff247a5cb34 | 57,845 | /*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 1997-2010 Oracle and/or its affiliates. All rights reserved.
*
* Oracle and Java are registered trademarks of Oracle and/or its affiliates.
* Other names may be trademarks of their respective owners.
*
* The contents of this file are su... | 43.755673 | 193 | 0.564612 |
ff3708545cd47f9adc61efb20ee265e9c7a67d70 | 11,278 |
package soot.JastAddJ;
import java.util.HashSet;import java.util.LinkedHashSet;import java.io.File;import java.util.*;import beaver.*;import java.util.ArrayList;import java.util.zip.*;import java.io.*;import java.io.FileNotFoundException;import java.util.Collection;import soot.*;import soot.util.*;import soot.jimple.*... | 36.498382 | 461 | 0.674765 |
e595fb5be34fc6be5fa1147f075dd128729053e6 | 1,097 | package org.devgateway.toolkit.persistence.validator;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import javax.validation.Constraint;
import javax.validation.Payload;
import javax.validation.ReportAsSi... | 29.648649 | 97 | 0.767548 |
b3905703aa08642709c5f5288beb01de8a88ebfe | 2,824 | package org.dezzPro.app.engine.geometry;
public class Vector2D {
protected double x = 0.00D;
protected double y = 0.00D;
public Vector2D(double d)
{
this(d, d);
}
public Vector2D(double x, double y)
{
this.x = x;
this.y = y;
}
public double x() {
... | 21.393939 | 120 | 0.554178 |
70f747b898599a1759f75678316a50c2b9349559 | 31,751 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.hybrid.network.models;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure... | 59.126629 | 120 | 0.755976 |
0acd4ab20f5b0dda480e330e4957ff7a94a1f876 | 1,640 | package de.altenerding.biber.pinkie.presentation.filter;
import de.altenerding.biber.pinkie.business.login.boundary.AuthenticateService;
import de.altenerding.biber.pinkie.business.members.entity.Member;
import de.altenerding.biber.pinkie.business.members.entity.Role;
import de.altenerding.biber.pinkie.presentation.se... | 32.156863 | 120 | 0.810976 |
67bd09699a37815790aba95e417126627138e4b4 | 282 | package ir.fassih.workshopautomation.repository;
import ir.fassih.workshopautomation.entity.rawmaterial.RawMaterialEntity;
import org.springframework.stereotype.Repository;
@Repository
public interface RawMaterialRepository extends AbstractRepository<RawMaterialEntity, Long> {
}
| 31.333333 | 92 | 0.868794 |
d7a4c454ec0d1dbd197fb87dff61b8a043a5bbb9 | 2,390 | package com.tal.wangxiao.conan.admin.controller;
import com.tal.wangxiao.conan.admin.service.MessagesService;
import com.tal.wangxiao.conan.common.api.ApiResponse;
import com.tal.wangxiao.conan.common.entity.db.Messages;
import com.tal.wangxiao.conan.common.model.Result;
import com.tal.wangxiao.conan.common.model.vo.M... | 37.936508 | 163 | 0.719247 |
0a08b5a7f3face9041bef45a8e04166cd73b2cec | 4,916 | /*
* Licensed to Metamarkets Group Inc. (Metamarkets) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. Metamarkets licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); yo... | 31.922078 | 120 | 0.711147 |
85e0aaebee92496e94c6eadda35ba0231604d399 | 4,902 | /*
* This file is part of SpongeAPI, licensed under the MIT License (MIT).
*
* Copyright (c) SpongePowered <https://www.spongepowered.org>
* Copyright (c) contributors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... | 51.6 | 132 | 0.799266 |
40935ac656c51c033a3ef5314755f3cfc51a807e | 2,070 | package softuni.fundamentals.midexamprep;
import java.util.Scanner;
public class ArrayModifier {
public static int[] parseArray(String numbers) {
String[] numbersString = numbers.split(" ");
int[] array = new int[numbersString.length];
for (int i = 0; i < array.length; i++) {
... | 27.236842 | 110 | 0.527536 |
52c66849e6fe1c76907d5ddb6c3a13c047b0c0ba | 1,076 | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.ai.formrecognizer.implementation;
import com.azure.ai.formrecognizer.models.Appearance;
import com.azure.ai.formrecognizer.models.Style;
/**
* The helper class to set the non-public properties of an {@l... | 29.081081 | 100 | 0.709108 |
3bb2da5f29e942630a5d97d08bd3b9dfa026bc2e | 3,407 | package com.mixmaru.my_contracts_j.domain.application;
import com.mixmaru.my_contracts_j.domain.entity.CorporationUserEntity;
import com.mixmaru.my_contracts_j.domain.entity.IndividualUserEntity;
import com.mixmaru.my_contracts_j.domain.repository.CorporationUserRepository;
import com.mixmaru.my_contracts_j.domain.re... | 33.07767 | 158 | 0.707661 |
e559b9b2074123ff2cd3a70fd4638cef42d9a3f4 | 2,685 | /*
* Copyright 2002-2013 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 requi... | 37.291667 | 147 | 0.678212 |
ac854b570027b1743b9cebf69048d0f4a4a5f211 | 921 | package com.cis4350.game;
import android.graphics.Rect;
public class Bird {
final int JUMPSPEED = -15;
final int MOVESPEED = 5;
private int centerX = 100;
private int centerY = 377;
private int speedY = 0;
public static Rect boundingBox = new Rect(0, 0, 0, 0);
public void update() {
centerY += speedY;
... | 15.610169 | 74 | 0.65798 |
851d2281154de54287a47342e4b74fb31c352d74 | 1,501 | package com.company;
public class Main {
public static void main(String[] args) {
System.out.println(norm("caravaggio"));
System.out.println(norm("VERMEER"));
System.out.println(init("johann sebastian bach lol kek"));
System.out.println(init("i. babeL"));
System.out.println... | 30.632653 | 106 | 0.552965 |
4dfb018225201665fb5be8cd2ce6bbe59e2ec66c | 1,274 | /**
* Copyright 2020 ArcSoft Corporation Limited. All rights reserved.
*
* 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 require... | 39.8125 | 152 | 0.615385 |
b235faef40a1cffcff75a7e0995149aa4c10ef45 | 11,815 | package org.gruppe2.game.session;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.ConcurrentLinkedQueue;
imp... | 33.188202 | 126 | 0.555311 |
08d6b5f1a9f2abe39e74661f53d95bcd880b2a61 | 1,915 | package cc.whohow.markup.impl;
import java.nio.charset.StandardCharsets;
import java.util.Base64;
/**
* 搜索分页标识符
*/
public class SearchCursor {
private String prefix;
private String keyword;
private int count;
private int offset;
private String key;
public SearchCursor() {
}
public ... | 22.797619 | 98 | 0.54517 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.