idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,304,382
public static // d680497.1<NEW_LINE>void validateMergedXML(ModuleInitData mid) throws EJBConfigurationException {<NEW_LINE>if (!validationEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EJBJar mergedEJBJar = mid.getMergedEJBJar();<NEW_LINE>if (mergedEJBJar == null) {<NEW_LINE>// managed beans only<NEW_LINE>return;<NE...
errors.add(MERGE + "contains no EJBs.");
1,214,405
private Principal buildPrincipal(Jwt jwt) {<NEW_LINE>String subject = jwt.subject().orElseThrow(() -> new JwtException("JWT does not contain subject claim, cannot create principal."));<NEW_LINE>String name = jwt.preferredUsername().orElse(subject);<NEW_LINE>Principal.Builder builder = Principal.builder();<NEW_LINE>buil...
JwtUtil.toObject(jsonValue)));
662,054
public SampleLocatableMetadata readActualHeader(final LineIterator reader) {<NEW_LINE>final List<String> samHeaderLines = new ArrayList<>(SAM_HEADER_LINES_INITIAL_CAPACITY);<NEW_LINE>// we check that the SAM header lines and the column header line are present in the correct order, then return the mandatory column heade...
samFileHeader, Metadata.Type.SAMPLE_LOCATABLE);
1,704,842
public void beforePassivation(int i) {<NEW_LINE>cmkey = new CMKey("Test bean for passivation " + i);<NEW_LINE>cmkeyString1 = cmkey.toString();<NEW_LINE>try {<NEW_LINE>createInitialContext();<NEW_LINE>// cmHome = (CMEntityHome) PortableRemoteObject.narrow(new InitialContext().lookup("java:app/StatefulPassivationEJB/CMEn...
ObjectOutputStream ostream = new ObjectOutputStream(bStream);
69,051
public CreateBillingGroupResult createBillingGroup(CreateBillingGroupRequest createBillingGroupRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createBillingGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.g...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
1,789,848
public static long read(ByteArrayInputStream in) throws BTChipException {<NEW_LINE>long result = 0;<NEW_LINE>int val1 = (int) (in.read() & 0xff);<NEW_LINE>if (val1 < 0xfd) {<NEW_LINE>result = val1;<NEW_LINE>} else if (val1 == 0xfd) {<NEW_LINE>result |= (int) (in.read() & 0xff);<NEW_LINE>result |= (((int) in.read() & 0x...
() & 0xff) << 24);
518,644
private FLClientStatus checkSignature(ReturnExchangeKeys bufData, int dataIndex, byte[] cPkByte, byte[] sPkByte) {<NEW_LINE>ByteBuffer signature = bufData.remotePublickeys(dataIndex).signatureAsByteBuffer();<NEW_LINE>if (signature == null) {<NEW_LINE>LOGGER.severe(Common.addTag("[checkSignature] the signature get from ...
(Common.addTag("Get certificate hash success!"));
697,377
protected Node[] createNodes(LibraryManager mgr) {<NEW_LINE>List<Library> libs = new ArrayList<Library>();<NEW_LINE>for (Library lib : mgr.getLibraries()) {<NEW_LINE>if (filter == null || filter.accept(lib)) {<NEW_LINE>libs.add(lib);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (libs.isEmpty()) {<NEW_LINE>return new Node[0];<NEW_...
setDisplayName(mgr.getDisplayName());
953,685
private static void updateColumnFromState(CustomGridColumn column, GridColumnState state) {<NEW_LINE>column.setWidth(state.width);<NEW_LINE>column.setMinimumWidth(state.minWidth);<NEW_LINE>column.setMaximumWidth(state.maxWidth);<NEW_LINE>column.setExpandRatio(state.expandRatio);<NEW_LINE>assert state.rendererConnector ...
column.setHidden(state.hidden);
1,380,614
private static void findEquivalenceClasses(BlazeContext context, Project project, BlazeProjectData blazeProjectData, Map<TargetKey, BlazeResolveConfigurationData> targetToData, BlazeConfigurationResolverResult.Builder builder) {<NEW_LINE>Multimap<BlazeResolveConfigurationData, TargetKey> dataEquivalenceClasses = ArrayL...
, blazeProjectData, data, targets));
1,164,586
protected ErrorCode processFlow(WorkFlow flow, WorkFlowVO vo, int position) {<NEW_LINE>if (vo == null) {<NEW_LINE>vo = new WorkFlowVO();<NEW_LINE>}<NEW_LINE>vo.setChainUuid(chainvo.getUuid());<NEW_LINE>vo.setName(flow.getName());<NEW_LINE><MASK><NEW_LINE>vo.setContext(context.toBytes());<NEW_LINE>vo.setPosition(positio...
vo.setState(WorkFlowState.Processing);
320,253
private int wrapPositionForTabbedTextWithoutOptimization(@Nonnull Editor editor, @Nonnull CharSequence text, int spaceSize, int startLineOffset, int endLineOffset, int targetRangeEndOffset, int reservedWidthInColumns) {<NEW_LINE>int width = 0;<NEW_LINE>int x = 0;<NEW_LINE>int newX;<NEW_LINE>int symbolWidth;<NEW_LINE>in...
c = text.charAt(i);
847,964
public <K> ScoredDocuments searchTweets(String queryString, long t) {<NEW_LINE>SearchHits results = null;<NEW_LINE>String specials = "+-=&|><!(){}[]^\"~*?:\\/";<NEW_LINE>for (int i = 0; i < specials.length(); i++) {<NEW_LINE>char c = specials.charAt(i);<NEW_LINE>queryString = queryString.replace(String.valueOf(c), " ")...
(queryTweetTime).should(queryTerms);
209,583
public static void fstat(EFile efile, String file_name) throws Pausable {<NEW_LINE>// System.err.println("trying entry for "+file_name);<NEW_LINE>try {<NEW_LINE>ZipEntry ent;<NEW_LINE><MASK><NEW_LINE>if (ent == null) {<NEW_LINE>ent = get_entry(file_name);<NEW_LINE>if (ent == null) {<NEW_LINE>efile.reply_posix_error(Pos...
ent = get_entry(file_name + "/");
1,524,320
public PlanFragment visitPhysicalMysqlScan(OptExpression optExpression, ExecPlan context) {<NEW_LINE>PhysicalMysqlScanOperator node = (PhysicalMysqlScanOperator) optExpression.getOp();<NEW_LINE>context.getDescTbl().addReferencedTable(node.getTable());<NEW_LINE>TupleDescriptor tupleDescriptor = context.getDescTbl().crea...
setLimit(node.getLimit());
1,566,198
public ScanProvisionedProductsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ScanProvisionedProductsResult scanProvisionedProductsResult = new ScanProvisionedProductsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
)).unmarshall(context));
726,224
void checkReadable() throws SQLException, IOException {<NEW_LINE>checkClosed();<NEW_LINE>if (state == State.SET_CALLED) {<NEW_LINE>if (domResult != null) {<NEW_LINE>Node node = domResult.getNode();<NEW_LINE>domResult = null;<NEW_LINE>TransformerFactory factory = TransformerFactory.newInstance();<NEW_LINE>try {<NEW_LINE...
()), -1));
1,756,149
public void onComplete() {<NEW_LINE>if (payloadSubscriber != null) {<NEW_LINE>// We have a subscriber that has seen onNext()<NEW_LINE>payloadSubscriber.onComplete();<NEW_LINE>} else {<NEW_LINE>final Object maybeSubscriber = maybePayloadSubUpdater.getAndSet(this, EMPTY_COMPLETED);<NEW_LINE>if (maybeSubscriber instanceof...
>) maybeSubscriber).onComplete();
47,829
Object convertInputIfNecessary(Object input) {<NEW_LINE>List<Object> convertedResults = new ArrayList<Object>();<NEW_LINE>if (input instanceof Tuple2) {<NEW_LINE>convertedResults.add(this.doConvert(((Tuple2) input).getT1(), getInputArgumentType(0)));<NEW_LINE>convertedResults.add(this.doConvert(((Tuple2) input).getT2()...
fromArray(convertedResults.toArray());
1,125,523
protected void findEigenVectors(double[][] imat, double[][] evs, double[] lambda) {<NEW_LINE>final int size = imat.length;<NEW_LINE>Random rnd = random.getSingleThreadedRandom();<NEW_LINE>double[<MASK><NEW_LINE>FiniteProgress prog = LOG.isVerbose() ? new FiniteProgress("Learning projections", tdim, LOG) : null;<NEW_LIN...
] tmp = new double[size];
1,770,857
private void loadEmojiIcons() {<NEW_LINE>final IndexedSprite[] modIcons = client.getModIcons();<NEW_LINE>if (modIconsStart != -1 || modIcons == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Emoji[] emojis = Emoji.values();<NEW_LINE>final IndexedSprite[] newModIcons = Arrays.copyOf(modIcons, modIcons.length + emoji...
BufferedImage image = emoji.loadImage();
650,159
private static void radixSort(int[] array) {<NEW_LINE>int m = array[0];<NEW_LINE>int ex = 1;<NEW_LINE>int n = array.length;<NEW_LINE>// initial bucket<NEW_LINE>int[] b = new int[10];<NEW_LINE>// loop through the array<NEW_LINE>// find the max element<NEW_LINE>for (int i = 1; i < n; i++) {<NEW_LINE>if (array[i] > m)<NEW...
] / ex) % 10]++;
176,642
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,587,138
public void run() {<NEW_LINE>ServiceTask task;<NEW_LINE>ThreadWorkUsage workUsage = null;<NEW_LINE>if (SystemConfig.getInstance().getUseThreadUsageStat() == 1) {<NEW_LINE>String threadName = Thread.currentThread().getName();<NEW_LINE>workUsage = new ThreadWorkUsage();<NEW_LINE>DbleServer.getInstance().getThreadUsedMap(...
currentThread().getName());
788,548
public void start(Blade blade) throws Exception {<NEW_LINE>this.blade = blade;<NEW_LINE>this.environment = blade.environment();<NEW_LINE>this.processors = blade.processors();<NEW_LINE>this.loaders = blade.loaders();<NEW_LINE>long startMs = System.currentTimeMillis();<NEW_LINE>int padSize = 16;<NEW_LINE>log.info("{} {}{...
, System.getProperty("user.timezone"));
710,854
public void process(JCas jcas) throws AnalysisEngineProcessException {<NEW_LINE>JCas questionView, resultView, passagesView;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>resultView = jcas.getView("Result");<NEW_LINE>passagesView = jcas.getView("PickedPassages");<NEW_LINE>} catch (CASException e) {<NEW_LINE>throw new Analysi...
questionView = jcas.getView("Question");
627,534
private void sendShardAction(final String actionName, final ClusterState currentState, final TransportRequest request, final ActionListener<Void> listener) {<NEW_LINE>ClusterStateObserver observer = new ClusterStateObserver(currentState, clusterService, null, logger, threadPool.getThreadContext());<NEW_LINE>DiscoveryNo...
, masterNode, request), exp);
631,308
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent sourcePermanent = game.getPermanentEntering(source.getSourceId());<NEW_LINE>if (sourcePermanent != null && controller != null) {<NEW_LINE>TargetCardInYourGraveyard target = new Tar...
exileId, sourcePermanent.getIdName());
1,048,995
private static RangeFilterValues fromRange(int size, Value[] equalityValues, PropertyIndexQuery.RangePredicate<?> predicate) {<NEW_LINE>Value lower = predicate.fromValue();<NEW_LINE>Value upper = predicate.toValue();<NEW_LINE>if (lower == null || upper == null) {<NEW_LINE>throw new IllegalStateException("Use Values.NO_...
predicate.valueGroup(), lower);
1,233,481
public void configure() throws Exception {<NEW_LINE>errorHandler(noErrorHandler());<NEW_LINE>from(direct(MF_GET_PRODUCTS_ROUTE_ID)).routeId(MF_GET_PRODUCTS_ROUTE_ID).streamCaching().log("Route invoked").process(exchange -> {<NEW_LINE>final Object getProductsRequest = exchange.getIn().getBody();<NEW_LINE>if (!(getProduc...
) lookupRequest).getOrgCode());
119,323
public Request<ListProvisioningTemplateVersionsRequest> marshall(ListProvisioningTemplateVersionsRequest listProvisioningTemplateVersionsRequest) {<NEW_LINE>if (listProvisioningTemplateVersionsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListProvisioningTemplateVersio...
request.addHeader("Content-Type", "application/x-amz-json-1.0");
42,323
public EventLoopGroup init(Bootstrap bootstrap, final DockerClientConfig dockerClientConfig) {<NEW_LINE>EventLoopGroup nioEventLoopGroup = new NioEventLoopGroup(<MASK><NEW_LINE>InetAddress addr = InetAddress.getLoopbackAddress();<NEW_LINE>final SocketAddress proxyAddress = new InetSocketAddress(addr, 8008);<NEW_LINE>Se...
0, new DefaultThreadFactory(threadPrefix));
1,525,181
public static Response apiCall(String method, Map<String, Object> params, String connectionString) throws LbryRequestException {<NEW_LINE>long counter = new Double(System.currentTimeMillis() / 1000.0).longValue();<NEW_LINE>JSONObject requestParams = buildJsonParams(params);<NEW_LINE>JSONObject requestBody = new JSONObj...
requestBody.put("counter", counter);
1,798,713
public void onSuccess(List<V2TIMMessage> v2TIMMessages) {<NEW_LINE>if (v2TIMMessages.size() == 1) {<NEW_LINE>// found message<NEW_LINE>option.setLastMsg(v2TIMMessages.get(0));<NEW_LINE>V2TIMManager.getMessageManager().getHistoryMessageList(option, new V2TIMValueCallback<List<V2TIMMessage>>() {<NEW_LINE><NEW_LINE>@Overr...
(v2TIMMessages.get(i));
1,030,705
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_maps);<NEW_LINE>screenOrientation = getResources().getConfiguration().orientation;<NEW_LINE>Display display = getWindowManager().getDefaultDisplay();<NEW_LINE>outMetrics = new Disp...
= new MapHandlerImpl(this, icon);
322,128
private Set<MetricAnomaly<BrokerEntity>> createSlowBrokerAnomalies(Set<BrokerEntity> detectedMetricAnomalies, int clusterSize) {<NEW_LINE>Set<MetricAnomaly<BrokerEntity>> detectedSlowBrokers = new HashSet<>();<NEW_LINE>Map<BrokerEntity, Long> brokersToDemote = new HashMap<>();<NEW_LINE>Map<BrokerEntity, Long> <MASK><NE...
brokersToRemove = new HashMap<>();
1,420,297
public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>final MarsServiceProfile profile = gFactory.createMarsServiceProfile();<NEW_LINE>stub <MASK><NEW_LINE>// set callback<NEW_LINE>AppLogic.setCallBack(stub);<NEW_LINE>StnLogic.setCallBack(stub);<NEW_LINE>SdtLogic.setCallBack(stub);<NEW_LINE>// Initialize the Mar...
= new MarsServiceStub(this, profile);
140,696
public Response lockDataset(@PathParam("identifier") String id, @PathParam("type") DatasetLock.Reason lockType) {<NEW_LINE>return response(req -> {<NEW_LINE>try {<NEW_LINE>AuthenticatedUser user = findAuthenticatedUserOrDie();<NEW_LINE>if (!user.isSuperuser()) {<NEW_LINE>return error(Response.Status.FORBIDDEN, "This AP...
Status.FORBIDDEN, "dataset already locked with lock type " + lockType);
835,953
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>final long totalBytes = totalBytes();<NEW_LINE>builder.field(TOTAL, new ByteSizeValue(totalBytes));<NEW_LINE>builder.field(TOTAL_IN_BYTES, totalBytes);<NEW_LINE>builder.startObject(INVERTED_INDEX);<NEW_LINE>builder.f...
builder.field(STORED_FIELDS_IN_BYTES, storedFieldBytes);
1,707,291
private void embedTraining(final EncogProgramNode node) {<NEW_LINE>final File dataFile = (File) node.getArgs().get(0).getValue();<NEW_LINE>final MLDataSet data = EncogUtility.loadEGB2Memory(dataFile);<NEW_LINE>addInclude("Encog.ML.Data.Basic");<NEW_LINE>// generate the input data<NEW_LINE>indentLine("public static read...
MLData item = pair.getIdeal();
611,490
public StringBuilder adminEnableDisableTopicAuthControl(HttpServletRequest req, StringBuilder sBuffer, ProcessResult result) {<NEW_LINE>// check and get operation info<NEW_LINE>if (!WebParameterUtils.getAUDBaseInfo(req, true, null, sBuffer, result)) {<NEW_LINE>WebParameterUtils.buildFailResult(sBuffer, result.getErrMsg...
sBuffer, result.getErrMsg());
1,214,201
private void handleResult(Protocol.Digest digest, BatchReadBlobsResponse.Response batchResponse, ImmutableCollection<Callable<WritableByteChannel>> writableByteChannels) throws IOException {<NEW_LINE>if (!Status.fromCodeValue(batchResponse.getStatus().getCode()).isOk()) {<NEW_LINE>throw new BuckUncheckedExecutionExcept...
().getMessage()));
1,292,470
public static ZonedDateTime actionZDTPlusMinusTimePeriod(ZonedDateTime zdt, int factor, TimePeriod tp) {<NEW_LINE>if (tp == null) {<NEW_LINE>return zdt;<NEW_LINE>}<NEW_LINE>if (tp.getYears() != null) {<NEW_LINE>zdt = zdt.plus(factor * tp.getYears(), ChronoUnit.YEARS);<NEW_LINE>}<NEW_LINE>if (tp.getMonths() != null) {<N...
getSeconds(), ChronoUnit.SECONDS);
1,808,755
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);<NEW_LINE>setContentView(R.layout.activity_open_gl);<NEW_LINE>folder = PathUtils.getRecordPath();<NEW_LINE>openGlView = findViewById(R.id.surfac...
findViewById(R.id.switch_camera);
376,160
private void writeAttribute(int tag, VR vr, Object value, SpecificCharacterSet cs, Attributes attrs) throws SAXException {<NEW_LINE>if (TagUtils.isGroupLength(tag) || TagUtils.isPrivateCreator(tag))<NEW_LINE>return;<NEW_LINE>String privateCreator = attrs.getPrivateCreator(tag);<NEW_LINE><MASK><NEW_LINE>startElement("Di...
addAttributes(tag, vr, privateCreator);
1,160,879
private void addEmptyLines(StyledDocument doc, int line, int numLines) {<NEW_LINE>int lastOffset = doc.getEndPosition().getOffset();<NEW_LINE>int totLines = org.openide.text.NbDocument.findLineNumber(doc, lastOffset);<NEW_LINE>// int totLines = doc.getDefaultRootElement().getElementIndex(lastOffset);<NEW_LINE>int offse...
NbDocument.findLineOffset(doc, line);
442,307
protected void initUI() {<NEW_LINE>var pickupWood = getUIFactoryService().newButton(getip(<MASK><NEW_LINE>pickupWood.setStyle("-fx-background-color: saddlebrown");<NEW_LINE>var pickupStone = getUIFactoryService().newButton(getip("stone").asString("Stone: %d"));<NEW_LINE>pickupStone.setStyle("-fx-background-color: grey"...
"wood").asString("Wood: %d"));
511,837
public boolean test(ThreadPool pool) {<NEW_LINE>final <MASK><NEW_LINE>final int queueSize = queue.size();<NEW_LINE>// Is the queue above the threshold?<NEW_LINE>if (queueSize > queueThreshold) {<NEW_LINE>// Yes. Should we grow?<NEW_LINE>// Note that this random number generator is quite fast, and on average is faster t...
WorkQueue queue = pool.getQueue();
193,980
public static void main(String[] args) {<NEW_LINE>if (args.length < 1) {<NEW_LINE>System.out.println("Usage: java twitter4j.examples.suggestedusers.GetMemberSuggestions [slug]");<NEW_LINE>System.exit(-1);<NEW_LINE>}<NEW_LINE>System.out.println("Showing suggested users in " + args[0] + " category.");<NEW_LINE>try {<NEW_...
new TwitterFactory().getInstance();
1,430,988
public void deletePet(Long petId, String apiKey) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE>VolleyError error = new VolleyError("Missing the required pa...
statusCode, volleyError.getMessage());
113,042
public static ZemberekGrpcConfiguration loadFromFile(Path path) throws IOException {<NEW_LINE>KeyValueReader reader <MASK><NEW_LINE>Map<String, String> keyValues = reader.loadFromFile(path.toFile());<NEW_LINE>String lmVal = keyValues.get("normalization.lm");<NEW_LINE>if (lmVal == null) {<NEW_LINE>throw new IllegalState...
= new KeyValueReader("=", "#");
607,239
public void transform(TypeTransformer transformer) {<NEW_LINE>transformer.applyAdviceToMethod(isMethod().and(nameStartsWith("end").or(named("sendHead"))), HttpRequestInstrumentation.class.getName() + "$EndRequestAdvice");<NEW_LINE>transformer.applyAdviceToMethod(isMethod().and(named("handleException")), HttpRequestInst...
class.getName() + "$HandleExceptionAdvice");
427,997
public DataRecord deserialize(final DataInput source, @NonNegative final long recordID, final SirixDeweyID deweyID, final PageReadOnlyTrx pageReadTrx) throws IOException {<NEW_LINE>final int valueSize = source.readInt();<NEW_LINE>final byte[] value = new byte[valueSize];<NEW_LINE>source.readFully(value, 0, valueSize);<...
final long leftChild = getVarLong(source);
495,887
// for the Android compatibility we must use old Java Date class<NEW_LINE>@SuppressWarnings("JdkObsolete")<NEW_LINE>@NotNull<NEW_LINE>protected SentryEvent createEvent(@NotNull final LogEvent loggingEvent) {<NEW_LINE>final SentryEvent event = new SentryEvent(DateUtils.getDateTime(loggingEvent.getTimeMillis()));<NEW_LIN...
getMarker().toString());
1,695,976
private static String serializeHistogram(QuantileDigest digest) {<NEW_LINE>int buckets = 100;<NEW_LINE>long min = digest.getMin();<NEW_LINE><MASK><NEW_LINE>long bucketSize = (max - min + buckets) / buckets;<NEW_LINE>ImmutableList.Builder<Long> boundaryBuilder = ImmutableList.builder();<NEW_LINE>for (int i = 1; i < buck...
long max = digest.getMax();
366,875
private Mono<PagedResponse<EHNamespaceInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parame...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
573,401
void doRefresh(boolean currentBuilderOnly) {<NEW_LINE>if (currentBuilderOnly)<NEW_LINE>LOG.assertTrue(myCurrentViewType != null);<NEW_LINE>if (!isValidBase())<NEW_LINE>return;<NEW_LINE>// seems like we are in the middle of refresh already<NEW_LINE>if (getCurrentBuilder() == null)<NEW_LINE>return;<NEW_LINE>final Ref<Pai...
PsiElement element = mySmartPsiElementPointer.getElement();
842,856
public void addField(final VEditor fieldEditor) {<NEW_LINE>final GridField gridField = fieldEditor.getField();<NEW_LINE>//<NEW_LINE>// Special case: Field which is an Included tab placeholder<NEW_LINE>final int AD_Tab_ID = gridField.getIncluded_Tab_ID();<NEW_LINE>if (AD_Tab_ID > 0) {<NEW_LINE>// Create the included tab...
boolean sameLine = layoutConstraints.isSameLine();
1,337,673
final ListDelegatedAdminAccountsResult executeListDelegatedAdminAccounts(ListDelegatedAdminAccountsRequest listDelegatedAdminAccountsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDelegatedAdminAccountsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
(super.beforeMarshalling(listDelegatedAdminAccountsRequest));
1,076,198
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException {<NEW_LINE>// compute a nonce (do not use remote IP address due to proxy farms) format of<NEW_LINE>// nonce is: base64(expirationTime + ":" + md5Hex(expirationTime + ":" + key))<NEW_L...
+ (this.nonceValiditySeconds * 1000);
88,454
public /* ------------------------------------------------------------------------ */<NEW_LINE>String toTraceString() {<NEW_LINE>if (_traceableString == null) {<NEW_LINE>if (_password != null) {<NEW_LINE>try {<NEW_LINE>MessageDigest digester = MessageDigest.getInstance("SHA-256");<NEW_LINE>digester.update(SALT);<NEW_LI...
((c & 0x00FF)));
84,187
public void run() {<NEW_LINE>try {<NEW_LINE>// Determine first white char before dotPos<NEW_LINE>int rsPos = Utilities.getRowStart(doc, dotPos);<NEW_LINE>int startPos = Utilities.getFirstNonWhiteBwd(doc, dotPos, rsPos);<NEW_LINE>startPos = (startPos >= 0) ? (startPos + 1) : rsPos;<NEW_LINE>int startCol = <MASK><NEW_LIN...
Utilities.getVisualColumn(doc, startPos);
7,835
public JustInTimeLookup create(Key key) {<NEW_LINE>Type type = key.type();<NEW_LINE>if (key.qualifier() != null || !(type instanceof ParameterizedType)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ParameterizedType parameterizedType = ((ParameterizedType) type);<NEW_LINE>Type rawType = parameterizedType.getRawType();<N...
null, new UnlinkedMembersInjectorBinding(targetClass));
50,891
public static ListModulesByPageResponse unmarshall(ListModulesByPageResponse listModulesByPageResponse, UnmarshallerContext _ctx) {<NEW_LINE>listModulesByPageResponse.setRequestId(_ctx.stringValue("ListModulesByPageResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setPageNumber(_ctx.integerValue("Li...
("ListModulesByPageResponse.Data.Items[" + i + "].MinimumPlatformVersion"));
1,752,884
private boolean intersectsPixelClosure(Coordinate p0, Coordinate p1) {<NEW_LINE>double minx = hpx - TOLERANCE;<NEW_LINE>double maxx = hpx + TOLERANCE;<NEW_LINE>double miny = hpy - TOLERANCE;<NEW_LINE>double maxy = hpy + TOLERANCE;<NEW_LINE>Coordinate[<MASK><NEW_LINE>corner[UPPER_RIGHT] = new Coordinate(maxx, maxy);<NEW...
] corner = new Coordinate[4];
1,159,392
public <T> void declareNamedObject(BiConsumer<Value, T> consumer, NamedObjectParser<T, Context> namedObjectParser, ParseField parseField) {<NEW_LINE>if (consumer == null) {<NEW_LINE>throw new IllegalArgumentException("[consumer] is required");<NEW_LINE>}<NEW_LINE>if (namedObjectParser == null) {<NEW_LINE>throw new Ille...
, v), namedObjectParser, parseField);
439,814
public Page<MdmLinkJson> queryLinks(@Nullable String theGoldenResourceId, @Nullable String theSourceResourceId, @Nullable String theMatchResult, @Nullable String theLinkSource, MdmTransactionContext theMdmTransactionContext, MdmPageRequest thePageRequest) {<NEW_LINE>IIdType goldenResourceId = MdmControllerUtil.extractG...
linkSource = MdmControllerUtil.extractLinkSourceOrNull(theLinkSource);
516,085
final ListServicesResult executeListServices(ListServicesRequest listServicesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listServicesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListServices");
1,063,717
private String placeOrder(CurrencyPair currencyPair, Order.OrderType orderSide, BigDecimal amount, BigDecimal price, BTCMarketsOrder.Type orderType, Set<Order.IOrderFlags> flags, String clientOrderId) throws IOException {<NEW_LINE>boolean postOnly = false;<NEW_LINE>if (flags.contains(BTCMarketsOrderFlags.POST_ONLY)) {<...
.Bid : BTCMarketsOrder.Side.Ask;
1,641,024
public void onBindViewHolder(mRecyclerAdapter.mViewHolder holder, final int position) {<NEW_LINE>if (MODE == EditImageActivity.MODE_STICKER_TYPES) {<NEW_LINE>holder.itemView.setTag(stickerPath[position]);<NEW_LINE>}<NEW_LINE>int iconImageSize = (int) getActivity().getResources().getDimension(R.dimen.icon_item_image_siz...
getDimension(R.dimen.editor_filter_mid_row_size);
1,719,839
public void run() {<NEW_LINE>try {<NEW_LINE>logger.atInfo().log("Starting publish job.");<NEW_LINE>Job job = dataflow.projects().locations().jobs().get(projectId, jobRegion, jobId).execute();<NEW_LINE>String state = job.getCurrentState();<NEW_LINE>switch(state) {<NEW_LINE>case JOB_DONE:<NEW_LINE>logger.atInfo(<MASK><NE...
).log("Dataflow job %s finished successfully, publishing results.", jobId);
655,447
public void onDataReceived(@NonNull final BluetoothDevice device, @NonNull final Data data) {<NEW_LINE>super.onDataReceived(device, data);<NEW_LINE>if (data.size() != 6) {<NEW_LINE>onInvalidDataReceived(device, data);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int featuresValue = data.getIntValue(Data.FORMAT_UINT24_LE,...
CGMFeatures features = new CGMFeatures(featuresValue);
178,358
public List<CompletionItem> completeAttributes(CompletionContext context) {<NEW_LINE>// COPIED FROM AngularHtmlExtension<NEW_LINE>List<CompletionItem> items = new ArrayList<>();<NEW_LINE>Element element = context.getCurrentNode();<NEW_LINE>if (element != null) {<NEW_LINE>switch(element.type()) {<NEW_LINE>case OPEN_TAG:...
.next().getInsertPrefix();
176,184
public boolean showMenuAction(@Nullable Object object) {<NEW_LINE>OsmandApplication app = view.getApplication();<NEW_LINE>MapActivity mapActivity = view.getMapActivity();<NEW_LINE>TravelHelper travelHelper = app.getTravelHelper();<NEW_LINE>if (mapActivity != null && object instanceof Amenity) {<NEW_LINE>Amenity amenity...
), amenity.getRef());
717,714
private void processLinesWithPaymentNoInvoice(final List<I_ESR_ImportLine> importLinesWithPaymentNoInvoice, final boolean withPayment) {<NEW_LINE>for (final I_ESR_ImportLine importLine : importLinesWithPaymentNoInvoice) {<NEW_LINE>final BigDecimal sum = importLine.getAmount();<NEW_LINE>refresh(importLine);<NEW_LINE>int...
setC_Payment_ID(payment.getC_Payment_ID());
273,212
private long[] repeatsToMatchShape(Shape desiredShape) {<NEW_LINE>Shape curShape = getShape();<NEW_LINE>int dimension = curShape.dimension();<NEW_LINE>if (desiredShape.dimension() > dimension) {<NEW_LINE>throw new IllegalArgumentException("The desired shape has too many dimensions");<NEW_LINE>}<NEW_LINE>if (desiredShap...
, additionalDimensions).addAll(desiredShape);
1,611,970
private void registerForMetamorphic(String variant, Consumer<FinishedRecipe> consumer) {<NEW_LINE>Block base = Registry.BLOCK.getOptional(prefix(LibBlockNames.METAMORPHIC_PREFIX + variant + "_stone")).get();<NEW_LINE>Block slab = Registry.BLOCK.getOptional(prefix(LibBlockNames.METAMORPHIC_PREFIX + variant + "_stone" + ...
.STAIR_SUFFIX)).get();
1,742,603
public Object constructValue() throws IOException {<NEW_LINE>if (source == null) {<NEW_LINE>throw constructLoadException(INCLUDE_SOURCE_ATTRIBUTE + " is required.");<NEW_LINE>}<NEW_LINE>URL location;<NEW_LINE>final ClassLoader cl = getClassLoader();<NEW_LINE>if (source.charAt(0) == '/') {<NEW_LINE>// FIXME: JIGSAW -- u...
namespace.put(id, controller);
246,662
/* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.web.common.websocket.WebSocketChanelHandler#sendHandshake()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void sendHandshake() throws IOException {<NEW_LINE>String acceptKey = createAcceptKey(getKey());<NEW_LINE>if (acceptKey == null) {<NEW_LINE>close();<NEW_LINE>r...
builder.append(Utils.CRLF);
568,438
public Builder mergeFrom(io.kubernetes.client.proto.V1Scheduling.PriorityClassList other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1Scheduling.PriorityClassList.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE>mergeMetadata(other.getMetadata());<NEW_LINE>}<NEW_LINE>if ...
bitField0_ = (bitField0_ & ~0x00000002);
1,814,319
private void resizeVolume(VolumeInfo volumeInfo) {<NEW_LINE>LOGGER.debug("Resizing PowerFlex volume");<NEW_LINE>Preconditions.checkArgument(volumeInfo != null, "volumeInfo cannot be null");<NEW_LINE>try {<NEW_LINE>String scaleIOVolumeId = ScaleIOUtil.getVolumePath(volumeInfo.getPath());<NEW_LINE>Long storagePoolId = vo...
long oldVolumeSize = volume.getSize();
1,137,609
public S3DestinationSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3DestinationSettings s3DestinationSettings = new S3DestinationSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
().unmarshall(context));
128,671
public static Query<Long> averageSessionLengthPerRegularPlayer(long after, long before, Long threshold) {<NEW_LINE>return database -> {<NEW_LINE>// INNER JOIN limits the users to only those that are regular<NEW_LINE>String selectSessionLengthPerPlayer = SELECT + "p." + SessionsTable.USER_UUID + "," + "p." + SessionsTab...
+ FROM + '(' + selectSessionLengthPerPlayer + ") q1";
800,509
protected void onPostExecute(Cursor cursor) {<NEW_LINE>if (cursor != null) {<NEW_LINE>Cursor c = null;<NEW_LINE>try {<NEW_LINE>c = cursorAdapter.getCursor();<NEW_LINE>} catch (Exception e) {<NEW_LINE>}<NEW_LINE>cursorAdapter = new TimeLineCursorAdapter(context, cursor, true);<NEW_LINE>try {<NEW_LINE>listView.setAdapter...
new GetList().execute();
402,609
public ListTagsForCertificateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListTagsForCertificateResult listTagsForCertificateResult = new ListTagsForCertificateResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
JsonToken token = context.getCurrentToken();
1,751,832
private SchemeGenerator buildSchemeGenerator(ImmutableMap<PBXTarget, Path> targetToProjectPathMap, Path outputDirectory, String schemeName, Optional<PBXTarget> primaryTarget, Optional<XcodeWorkspaceConfigDescriptionArg> schemeConfigArg, ImmutableSet<PBXTarget> orderedBuildTargets, ImmutableSet<PBXTarget> orderedBuildTe...
> applicationLanguage = Optional.empty();
407,214
public void applyWheelTransform() {<NEW_LINE>if (wheelSpatial == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Quaternion localRotationQuat = wheelSpatial.getLocalRotation();<NEW_LINE>Vector3f localLocation = wheelSpatial.getLocalTranslation();<NEW_LINE>if (!applyLocal && wheelSpatial.getParent() != null) {<NEW_LINE>loc...
getParent().getWorldTranslation());
290,991
private ConcurrentHashMap<String, Boolean> initDbLockStatus(DataSource dataSource) throws SQLException, TddlNestableRuntimeException {<NEW_LINE>Connection connection = null;<NEW_LINE>Statement statement = null;<NEW_LINE>List<Triple> expiredLocks = new ArrayList();<NEW_LINE>ConcurrentHashMap<String, Boolean> tmpReadOnly...
(database, table, expireTime));
1,115,985
public void read(RelationshipGroupRecord record, PageCursor cursor, RecordLoad mode, int recordSize, int recordsPerPage) {<NEW_LINE>// [ , x] in use<NEW_LINE>// [ ,xxx ] high next id bits<NEW_LINE>// [ xxx, ] high firstOut bits<NEW_LINE>long headerByte = cursor.getByte();<NEW_LINE>boolean inUse <MASK><NEW_LI...
= isInUse((byte) headerByte);
609,898
public LogicalSubQueryPlan buildLogicalQueryPlan(ContextManager contextManager) {<NEW_LINE><MASK><NEW_LINE>LogicalVertex delegateSourceVertex = getInputNode().getOutputVertex();<NEW_LINE>logicalSubQueryPlan.addLogicalVertex(delegateSourceVertex);<NEW_LINE>LogicalVertex filterVertex = delegateSourceVertex;<NEW_LINE>for ...
LogicalSubQueryPlan logicalSubQueryPlan = new LogicalSubQueryPlan(contextManager);
136,451
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>String clientId = config.getValue("client.clientId", String.class);<NEW_LINE>String clientSecret = config.getValue("client.clientSecret", String.class);<NEW_LINE>JsonObject actualTokenResponse ...
scope = request.getParameter("scope");
1,143,882
public static void run() throws IOException {<NEW_LINE>Path outputDir = Paths.get(Objects.requireNonNull(OUTPUT_DIR, "No output dir provided with the 'fabric-api.datagen.output-dir' property"));<NEW_LINE>List<EntrypointContainer<DataGeneratorEntrypoint>> dataGeneratorInitializers = FabricLoader.getInstance().getEntrypo...
getEntrypoint().onInitializeDataGenerator(dataGenerator);
1,529,415
private Authentication authentication(Map<String, Object> metadata) {<NEW_LINE>byte[] authenticationMetadata = (byte[]) metadata.get("authentication");<NEW_LINE>if (authenticationMetadata == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ByteBuf rawAuthentication <MASK><NEW_LINE>try {<NEW_LINE>rawAuthentication.writ...
= ByteBufAllocator.DEFAULT.buffer();
1,516,800
private void sendResponse(final long listingStartTimeNanos, final long deleteStartTimeNanos) {<NEW_LINE>final Exception exception = failure.get();<NEW_LINE>if (exception == null) {<NEW_LINE>final long completionTimeNanos = System.nanoTime();<NEW_LINE>logger.trace("[{}] completed successfully", request.getDescription())...
+ blobPath + "]", exception));
243,190
public static DescribeApisByTrafficControlResponse unmarshall(DescribeApisByTrafficControlResponse describeApisByTrafficControlResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeApisByTrafficControlResponse.setRequestId(_ctx.stringValue("DescribeApisByTrafficControlResponse.RequestId"));<NEW_LINE>describeApisByTraf...
("DescribeApisByTrafficControlResponse.ApiInfos[" + i + "].ApiId"));
577,032
public static boolean registryCreateKey(WinReg.HKEY hKey, String keyName, int samDesiredExtra) {<NEW_LINE>HKEYByReference phkResult = new HKEYByReference();<NEW_LINE>IntByReference lpdwDisposition = new IntByReference();<NEW_LINE>int rc = Advapi32.INSTANCE.RegCreateKeyEx(hKey, keyName, 0, null, WinNT.REG_OPTION_NON_VOL...
.REG_CREATED_NEW_KEY == lpdwDisposition.getValue();
904,741
void updateObjective(GraphManager graphMgr) {<NEW_LINE>// TODO: We can refine the branching factor by not strictly considering entity types only<NEW_LINE>double cost;<NEW_LINE>if (isSelfClosure()) {<NEW_LINE>cost = 1;<NEW_LINE>} else if (!to.props().labels().isEmpty()) {<NEW_LINE>cost = graphMgr.schema().stats().subTyp...
assert !Double.isNaN(cost);
972,403
private void insertDefault(SQLiteDatabase db) {<NEW_LINE>ContentValues screenValues = new ContentValues();<NEW_LINE>screenValues.put(DB_KEY_SCREEN_COLORS, 32);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_RESOLUTION, 1);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_WIDTH, 1024);<NEW_LINE>screenValues.put(DB_KEY_SCREEN_HEIGHT, 76...
bookmarkValues.put(DB_KEY_BOOKMARK_REDIRECT_SDCARD, 0);
27,019
public void visit(Entry target) {<NEW_LINE>final String property = (String) target.getAttribute("property");<NEW_LINE>if (ResourceController.getResourceController().getBooleanProperty(property, false)) {<NEW_LINE>try {<NEW_LINE>final String keyName = (String) target.getAttribute("actionKey");<NEW_LINE>final AFreeplaneA...
getClassLoader().loadClass(className);
1,507,703
public static Object startLettuceCommand(Object channel, Object redisCommand) {<NEW_LINE>if (TraceContextManager.isForceDiscarded()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TraceContext ctx = TraceContextManager.getContext();<NEW_LINE>if (ctx == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (redisCommand ins...
currentTimeMillis() - ctx.startTime);