idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
957,656
public void paintComponent(Graphics g) {<NEW_LINE>if (g == null)<NEW_LINE>return;<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setPaint(Color.GRAY);<NEW_LINE>g2.fillRect(0, 0, getWidth(), getHeight());<NEW_LINE>if (segDet == null || segDet.getChunkCount() < 1 || length < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
info = list.get(i);
1,718,762
public void readPermissions(@NonNull ProxyFile libraryDir, int permissionFlag) {<NEW_LINE>// Read permissions from given directory.<NEW_LINE>if (!libraryDir.exists() || !libraryDir.isDirectory()) {<NEW_LINE>if (permissionFlag == ALLOW_ALL) {<NEW_LINE>Log.w(<MASK><NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Itera...
TAG, "No directory " + libraryDir + ", skipping");
749,410
private <T> Future<List<InetSocketAddress>> resolveAddresses(Request request, ProxyServer proxy, NettyResponseFuture<T> future, AsyncHandler<T> asyncHandler) {<NEW_LINE>Uri uri = request.getUri();<NEW_LINE>final Promise<List<InetSocketAddress>> promise = ImmediateEventExecutor.INSTANCE.newPromise();<NEW_LINE>if (proxy ...
getNameResolver(), unresolvedRemoteAddress, asyncHandler);
1,760,025
public void undoAction() {<NEW_LINE>FollowersUIMediator followersUIMediator = Overlap2DFacade.getInstance().retrieveMediator(FollowersUIMediator.NAME);<NEW_LINE>// get the entity<NEW_LINE>Entity entity = EntityUtils.getByUniqueId(entityId);<NEW_LINE>Entity <MASK><NEW_LINE>HashSet<Entity> children = EntityUtils.getChild...
oldParentEntity = EntityUtils.getByUniqueId(parentEntityId);
1,090,607
/*<NEW_LINE>* Retrieve the server audit log<NEW_LINE>* @param userId userId under which the request is performed<NEW_LINE>* @param serverName The name of the server to interrogate<NEW_LINE>* @param methodName The name of the method being invoked<NEW_LINE>* @return the server type as a String<NEW_LINE>*<NEW_LINE>* Exce...
getName(), methodName, e);
1,274,864
public RuleGroupSourceStatelessRuleDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RuleGroupSourceStatelessRuleDefinition ruleGroupSourceStatelessRuleDefinition = new RuleGroupSourceStatelessRuleDefinition();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentPar...
int originalDepth = context.getCurrentDepth();
912,052
private void updateFiles() {<NEW_LINE>if (document == null)<NEW_LINE>return;<NEW_LINE>final View progressBar = findViewById(R.id.progressBar);<NEW_LINE>final TextView filesEmptyView = (TextView) findViewById(R.id.filesEmptyView);<NEW_LINE>fileViewPager = (ViewPager) findViewById(R.id.fileViewPager);<NEW_LINE>fileViewPa...
filesEmptyView.setVisibility(View.VISIBLE);
1,224,053
protected void startUp() {<NEW_LINE>long traceId = LoggerHelpers.traceEnterWithContext(log, this.objectId, "startUp");<NEW_LINE>try {<NEW_LINE>log.info("Attempting to start all event processors in {}", this.toString());<NEW_LINE>eventProcessorMap.entrySet().forEach(entry -> entry.getValue().startAsync());<NEW_LINE>even...
this.objectId, "startUp", traceId);
823,414
private void writeBufferChain(BufferChainOutputStream bufferChain, boolean compressed) {<NEW_LINE>int messageLength = bufferChain.readableBytes();<NEW_LINE>headerScratch.clear();<NEW_LINE>headerScratch.put(compressed ? COMPRESSED : UNCOMPRESSED).putInt(messageLength);<NEW_LINE>WritableBuffer writeableHeader = bufferAll...
<WritableBuffer> bufferList = bufferChain.bufferList;
218,193
public void printTag(String name, HashMap parameters, boolean insertTab, boolean insertNewLine, boolean closeTag) {<NEW_LINE>if (insertTab) {<NEW_LINE>printTabulation();<NEW_LINE>}<NEW_LINE>this.print('<');<NEW_LINE>this.print(name);<NEW_LINE>if (parameters != null) {<NEW_LINE>int length = parameters.size();<NEW_LINE>M...
String) entry2.getKey());
494,413
ReferenceGCSummary extractPrintReferenceGC(String line) {<NEW_LINE>ReferenceGCSummary summary = new ReferenceGCSummary();<NEW_LINE>GCLogTrace trace;<NEW_LINE>if ((trace = extractReferenceBlock(line, SOFT_REFERENCE)) != null)<NEW_LINE>summary.addSoftReferences(trace.getDateTimeStamp(), trace.getIntegerGroup(3), trace.ge...
), trace.getDuration());
1,363,418
private static void aggregateDataTierShardStats(NodeStats nodeStats, Index index, RoutingNode node, TierStatsAccumulator accumulator) {<NEW_LINE>// Shard based stats<NEW_LINE>final List<IndexShardStats> allShardStats = nodeStats.getIndices().getShardStats(index);<NEW_LINE>if (allShardStats != null) {<NEW_LINE>for (Inde...
.getPrimary().getStore();
1,602,522
public boolean isAccepted(String fileName) {<NEW_LINE>if (NORMAL_FILE == this) {<NEW_LINE>return fileName.endsWith(addVersionToExt(IndexConstants.BINARY_MAP_INDEX_EXT_ZIP, IndexConstants.BINARY_MAP_VERSION)) || fileName.endsWith(IndexConstants.EXTRA_ZIP_EXT) || fileName.endsWith(IndexConstants.SQLITE_EXT);<NEW_LINE>} e...
.BINARY_SRTM_FEET_MAP_INDEX_EXT_ZIP, IndexConstants.BINARY_MAP_VERSION));
144,394
public Flux<CommandResponse<GeoRadiusCommand, Flux<GeoResult<GeoLocation<ByteBuffer>>>>> geoRadius(Publisher<GeoRadiusCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Key must not be null!");<NEW_LINE>Assert.notNull(command.getPoint(), "Point must not be nul...
>>>("GEORADIUS_RO", postitionDecoder);
737,219
final DeleteImageResult executeDeleteImage(DeleteImageRequest deleteImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteImageRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DeleteImageRequest> request = null;<NEW_LINE>Respo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,077,188
static List<Mat> applySortedIndsToElements(List<Mat> mats, Mat sortedInds) {<NEW_LINE>int nChannels = mats.get(0).channels();<NEW_LINE>int nRows = mats.get(0).rows();<NEW_LINE>int nCols = mats.get(0).cols();<NEW_LINE>int nImages = mats.size();<NEW_LINE>assert sortedInds.cols() == nImages;<NEW_LINE>assert sortedInds.row...
add(temp.createIndexer());
694,965
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>tsModelPackage = modelPackage.replaceAll("\\.", "/");<NEW_LINE>String tsApiPackage = apiPackage.replaceAll("\\.", "/");<NEW_LINE>String modelRelativeToRoot = getRelativeToRoot(tsModelPackage);<NEW_LINE>String apiRelativeToRoot = getRelativeToRoot(tsApiP...
("configuration.mustache", "", "configuration.ts"));
1,775,617
// : 81792K->0K(81856K), 0.0431036 secs] 90187K->11671K(2097088K) icms_dc=5 , 0.0435503 secs]<NEW_LINE>public void iCMSParNewDefNewTenuringDetails(GCLogTrace trace, String line) {<NEW_LINE>if (GarbageCollectionTypes.ParNew == garbageCollectionTypeForwardReference) {<NEW_LINE>ParNew collection = new ParNew(scavengeTimeS...
(trace.groupCount()));
1,215,148
final GetBlockPublicAccessConfigurationResult executeGetBlockPublicAccessConfiguration(GetBlockPublicAccessConfigurationRequest getBlockPublicAccessConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBlockPublicAccessConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
endClientExecution(awsRequestMetrics, request, response);
355,806
public void attach(Runnable onSuccess, Consumer<Throwable> onError) {<NEW_LINE>ThreadUtil.run(() -> {<NEW_LINE>Throwable thrown;<NEW_LINE>try {<NEW_LINE>String path = SelfReferenceUtil.get().getPath();<NEW_LINE>Log.info("Attempting to attatch to '{}' with agent '{}'", getPid(), path);<NEW_LINE>PluginsManager.getInstanc...
-> onError.accept(thrown));
1,596,766
private void addToImageCache(final URI uri, final BufferedImage img) {<NEW_LINE>synchronized (imgmap) {<NEW_LINE>try {<NEW_LINE>while (imagesize > 1000 * 1000 * 50) {<NEW_LINE>URI olduri = imgmapAccessQueue.removeFirst();<NEW_LINE>BufferedImage <MASK><NEW_LINE>imagesize -= oldimg.getWidth() * oldimg.getHeight() * 4;<NE...
oldimg = imgmap.remove(olduri);
933,656
public static void waitForZkMntr(String namespaceName, String clusterName, Pattern pattern, int... podIndexes) {<NEW_LINE>long timeoutMs = 120_000L;<NEW_LINE>long pollMs = 1_000L;<NEW_LINE>for (int podIndex : podIndexes) {<NEW_LINE>String zookeeperPod = <MASK><NEW_LINE>String zookeeperPort = String.valueOf(12181);<NEW_...
KafkaResources.zookeeperPodName(clusterName, podIndex);
1,572,900
private Set<AlarmStatus> toStatusSet(List<AlarmSearchStatus> statusList) {<NEW_LINE>Set<AlarmStatus> result = new HashSet<>();<NEW_LINE>for (AlarmSearchStatus searchStatus : statusList) {<NEW_LINE>switch(searchStatus) {<NEW_LINE>case ACK:<NEW_LINE>result.add(AlarmStatus.ACTIVE_ACK);<NEW_LINE>result.add(AlarmStatus.CLEA...
result.add(AlarmStatus.ACTIVE_UNACK);
1,082,885
protected final int waitResult() throws InterruptedException {<NEW_LINE>int result = waitResultImpl();<NEW_LINE>// NOI18N<NEW_LINE>String reportFile = getProcessInfo("REPORT");<NEW_LINE>if (reportFile != null) {<NEW_LINE>// NbNativeProcess works in either *nix or cygwin environment;<NEW_LINE>// So it is safe to call /b...
().split("\n"));
1,168,614
private static boolean canConvertAbfAclLine(Ipv4AccessListLine line, String aclName, Warnings warnings) {<NEW_LINE>Ipv4Nexthop nexthop1 = line.getNexthop1();<NEW_LINE>if (nexthop1 == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String vrf1 = nexthop1.getVrf();<NEW_LINE>String vrf2 = line.getNexthop2() == null ? vr...
.getNexthop3().getVrf();
207,172
private static LatLon parseCoordinates(@NonNull String url) {<NEW_LINE>if (url.contains(GEO_PARAMS)) {<NEW_LINE>String geoPart = url.substring(url.indexOf(GEO_PARAMS));<NEW_LINE>int firstValueStart = geoPart.indexOf("=");<NEW_LINE>int firstValueEnd = geoPart.indexOf("&");<NEW_LINE>int secondValueStart = geoPart.indexOf...
, Double.parseDouble(lon));
820,825
private void addWebServerHandlers(WebService webService, PulsarPrometheusMetricsServlet metricsServlet, ServiceConfiguration config) throws PulsarServerException, PulsarClientException, MalformedURLException, ServletException, DeploymentException {<NEW_LINE>Map<String, Object> attributeMap = Maps.newHashMap();<NEW_LINE...
ATTRIBUTE_STATUS_FILE_PATH, config.getStatusFilePath());
504,561
public void hyperlinkUpdate(javax.swing.event.HyperlinkEvent evt) {<NEW_LINE>// retrieve the event type, e.g. if a link was clicked by the user<NEW_LINE>HyperlinkEvent.EventType typ = evt.getEventType();<NEW_LINE>// get the description, to check whether we have a file or a hyperlink to a website<NEW_LINE>String linktyp...
showEntry(dataObj.getCurrentZettelPos());
1,605,216
public IRubyObject invoke(ThreadContext context, IRubyObject[] args) {<NEW_LINE>checkArity(context, args.length - 1);<NEW_LINE>final IRubyObject invokee = args[0];<NEW_LINE>final Object[] arguments = convertArguments(args, 1);<NEW_LINE>if (invokee.isNil()) {<NEW_LINE>return invokeWithExceptionHandling(<MASK><NEW_LINE>}...
context, method, null, arguments);
1,552,104
private static void decodeBaggageItemsFromResponse(MultivaluedMap<String, String> headers) {<NEW_LINE>if (!RpcInvokeContext.isBaggageEnable() || headers == null || headers.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, String> baggageItems = new <MASK><NEW_LINE>for (Map.Entry<String, List<String>> entry ...
HashMap<String, String>();
1,855,259
public static void initialize() {<NEW_LINE>// Update JavaCore options<NEW_LINE>initializeJavaCoreOptions();<NEW_LINE>// Initialize default preferences<NEW_LINE>IEclipsePreferences defEclipsePrefs = DefaultScope.INSTANCE.getNode(IConstants.PLUGIN_ID);<NEW_LINE>defEclipsePrefs.put("org.eclipse.jdt.ui.typefilter.enabled",...
Boolean.FALSE.toString());
1,142,201
public static double[] convolve(double[] input, double[] filter) {<NEW_LINE>double[] conv = new double[input.length];<NEW_LINE>// fade in and out<NEW_LINE>if (input.length == filter.length) {<NEW_LINE>for (int i = 0; i < input.length; i++) {<NEW_LINE>conv[i] += input[i] * filter[i];<NEW_LINE>}<NEW_LINE>} else // convol...
int halfW = filter.length / 2;
692,553
public void exitWccp_id(Wccp_idContext ctx) {<NEW_LINE>if (ctx.group_list != null) {<NEW_LINE>String name = ctx.group_list.getText();<NEW_LINE>int line = ctx.group_list.getStart().getLine();<NEW_LINE>_configuration.referenceStructure(IP_ACCESS_LIST, name, WCCP_GROUP_LIST, line);<NEW_LINE>}<NEW_LINE>if (ctx.redirect_lis...
= ctx.redirect_list.getText();
293,326
public ChangeStatus checkStatus(Database database) {<NEW_LINE>ChangeStatus result = new ChangeStatus();<NEW_LINE>try {<NEW_LINE>Sequence sequence = SnapshotGeneratorFactory.getInstance().createSnapshot(new Sequence(getCatalogName(), getSchemaName(), getSequenceName()), database);<NEW_LINE>result.assertComplete(sequence...
.getMinValue()), "Min Value is different");
1,287,472
private static void addDynamicLayer(ShaderRegistryEntry entry, String texture, int colour, final BiFunction<ShaderLayer, Vector4f, Vector4f> func_getColour, final Consumer<Boolean> func_modifyRender, boolean translucent) {<NEW_LINE>entry.getCase(new ResourceLocation(ImmersiveEngineering.MODID, "revolver")).addLayers(ne...
, func_getColour, func_modifyRender, translucent));
1,050,044
private static String computeExportPolicy(BgpNeighborId bgpNeighborId, Configuration c) {<NEW_LINE>// TODO: support non-IP neighbor-id<NEW_LINE>assert bgpNeighborId instanceof BgpNeighborIdAddress;<NEW_LINE>Conjunction peerExportGuard = new Conjunction();<NEW_LINE>List<BooleanExpr> peerExportConditions = peerExportGuar...
ExitReject.toStaticStatement())));
976,393
public void prepare(Map<String, Object> conf, TopologyContext context, OutputCollector collector) {<NEW_LINE>String mdF = ConfUtils.getString(conf, metadataFilterParamName);<NEW_LINE>if (StringUtils.isNotBlank(mdF)) {<NEW_LINE>// split it in key value<NEW_LINE>int equals = mdF.indexOf('=');<NEW_LINE>if (equals != -1) {...
metadata2field.put(key, value);
819,619
protected PsiReference[] doGetReferencesFromProviders(PsiElement context, PsiReferenceService.Hints hints) {<NEW_LINE>List<ProviderBinding.ProviderInfo<PsiReferenceProvider, ProcessingContext>> providersForContextLanguage = getRegistrar(context.getLanguage()).getPairsByElement(context, hints);<NEW_LINE>List<ProviderBin...
maxPriority = providers[0].priority;
975,472
protected double[] multivariateStandardization(double[] raw) {<NEW_LINE>final int len = raw.length / multiplicity;<NEW_LINE>if (len <= 1) {<NEW_LINE>return raw;<NEW_LINE>}<NEW_LINE>// Two pass normalization is numerically most stable,<NEW_LINE>// And Java should optimize this well enough.<NEW_LINE>double[] mean = new d...
/ istd[j]) : 1;
897,789
public void acceptMethodTypeParameter(char[] declaringTypePackageName, char[] declaringTypeName, char[] selector, int selectorStart, int selectorEnd, char[] typeParameterName, boolean isDeclaration, int start, int end) {<NEW_LINE>IType type = resolveTypeByLocation(declaringTypePackageName, declaringTypeName, NameLookup...
System.out.print("SELECTION - accept method(");
1,329,056
public <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> Record12<T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12> newRecord(Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> field9, Field<T10> field10, Field<T11...
, field10, field11, field12 });
1,632,035
public boolean visit(SQLAlterTableAddPartition x) {<NEW_LINE>boolean printAdd = true;<NEW_LINE>if (x.getParent() instanceof SQLAlterTableStatement) {<NEW_LINE>SQLAlterTableStatement stmt = (SQLAlterTableStatement) x.getParent();<NEW_LINE>int p = stmt.getChildren().indexOf(x);<NEW_LINE>if (p > 0 && stmt.getChildren().ge...
x.getPartitions(), ", ");
1,221,220
public void onSuccess(EntityStream[] results) {<NEW_LINE>if (// entity stream is less than threshold<NEW_LINE>results.length == 1) {<NEW_LINE>StreamResponse response = res.builder().build(results[0]);<NEW_LINE>nextFilter.onResponse(response, requestContext, wireAttrs);<NEW_LINE>} else {<NEW_LINE>EntityStream compressed...
StreamResponseBuilder builder = res.builder();
1,082,728
public static List<OpenSSLX509Certificate> fromPkcs7DerInputStream(InputStream is) throws ParsingException {<NEW_LINE>@SuppressWarnings("resource")<NEW_LINE>OpenSSLBIOInputStream bis <MASK><NEW_LINE>final long[] certRefs;<NEW_LINE>try {<NEW_LINE>certRefs = NativeCrypto.d2i_PKCS7_bio(bis.getBioContext(), NativeCrypto.PK...
= new OpenSSLBIOInputStream(is, true);
705,453
public static SearchTracesResponse unmarshall(SearchTracesResponse searchTracesResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchTracesResponse.setRequestId(_ctx.stringValue("SearchTracesResponse.RequestId"));<NEW_LINE>List<TraceInfo> traceInfos = new ArrayList<TraceInfo>();<NEW_LINE>for (int i = 0; i < _ctx.lengthV...
("SearchTracesResponse.TraceInfos[" + i + "].Timestamp"));
737,380
public void put(@NotNull final String clientId, @NotNull final ClientSession newClientSession, final long timestamp, final int bucketIndex) {<NEW_LINE>checkNotNull(clientId, "Client id must not be null");<NEW_LINE>checkNotNull(newClientSession, "Client session must not be null");<NEW_LINE>checkArgument(timestamp > 0, "...
(ObjectMemoryEstimation.stringSize(clientId));
1,006,147
private // that we can run it after goog.scope processing, and get rid of the inGoogScope check.<NEW_LINE>void checkForUnusedLocalVar(Var v, Reference unusedAssignment) {<NEW_LINE>if (!v.isLocal()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JSDocInfo jsDoc = NodeUtil.getBestJSDocInfo(unusedAssignment.getNode());<NEW_LINE>i...
Node lhs = statement.getFirstChild();
925,475
public void onrequest(HttpServletRequest request, HttpServletResponse response, @RequestParam(value = "p", required = false) String p) {<NEW_LINE>Payload payload <MASK><NEW_LINE>payload.setPattern("/afx/worker/");<NEW_LINE>String finalURI = payload.getFinalURI();<NEW_LINE>Optional<String> optional = Optional.ofNullable...
= new Payload(request, response);
1,441,256
public AmazonOpenSearchParameters unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AmazonOpenSearchParameters amazonOpenSearchParameters = new AmazonOpenSearchParameters();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
JsonToken token = context.getCurrentToken();
520,178
final GetAttributeGroupResult executeGetAttributeGroup(GetAttributeGroupRequest getAttributeGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAttributeGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetAttributeGroup");
1,004,359
private void sendMarketData(OrderCommand cmd) {<NEW_LINE>final L2MarketData marketData = cmd.marketData;<NEW_LINE>if (marketData != null) {<NEW_LINE>final List<IEventsHandler.OrderBookRecord> asks = new ArrayList<>(marketData.askSize);<NEW_LINE>for (int i = 0; i < marketData.askSize; i++) {<NEW_LINE>asks.add(new IEvent...
ArrayList<>(marketData.bidSize);
855,331
public static OnsMessagePageQueryByTopicResponse unmarshall(OnsMessagePageQueryByTopicResponse onsMessagePageQueryByTopicResponse, UnmarshallerContext _ctx) {<NEW_LINE>onsMessagePageQueryByTopicResponse.setRequestId(_ctx.stringValue("OnsMessagePageQueryByTopicResponse.RequestId"));<NEW_LINE>onsMessagePageQueryByTopicRe...
(_ctx.longValue("OnsMessagePageQueryByTopicResponse.MsgFoundDo.CurrentPage"));
811,985
public String[] listOnDeviceMmkvConfig() {<NEW_LINE>checkState();<NEW_LINE>File mmkvBaseDir = new File(MMKV.getRootDir());<NEW_LINE>File[] mmkvConfigListFiles = mmkvBaseDir.listFiles();<NEW_LINE>if (mmkvConfigListFiles == null) {<NEW_LINE>return new String[0];<NEW_LINE>} else {<NEW_LINE>List<String> mmkvConfigList = ne...
String name = mmkvConfigListFile.getName();
93,145
private void editValues(PlayerProfile profile) {<NEW_LINE>mcMMO.p.debug("========================================================================");<NEW_LINE>mcMMO.p.debug("Conversion report for " + profile.getPlayerName() + ":");<NEW_LINE>for (PrimarySkillType primarySkillType : SkillTools.NON_CHILD_SKILLS) {<NEW_LINE...
p.debug(" Total XP " + totalOldXP);
82,991
/*<NEW_LINE>* Performs the logging.<NEW_LINE>*<NEW_LINE>* @param format format-able message.<NEW_LINE>* @param args Arguments for the message, if an exception is being logged last argument is the throwable.<NEW_LINE>*/<NEW_LINE>private void performLogging(LogLevel logLevel, String format, Object... args) {<NEW_LINE>Thr...
tuple.getMessage(), throwable);
58,536
private ObjectNode updateGatewayResponse(Context<? extends Trait> context, CorsTrait trait, Map<CorsHeader, String> sharedHeaders, ObjectNode gatewayResponse) {<NEW_LINE>ObjectNode responseParameters = gatewayResponse.getObjectMember(RESPONSE_PARAMETERS_KEY).orElse(Node.objectNode());<NEW_LINE>// Track all CORS headers...
entry.getValue() + "'");
782,236
public com.amazonaws.services.route53domains.model.UnsupportedTLDException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.route53domains.model.UnsupportedTLDException unsupportedTLDException = new com.amazonaws.services.route53domains.model.UnsupportedTLDExcept...
String currentParentElement = context.getCurrentParentElement();
1,221,295
public static <T extends ImageGray<T>> T convertFrom(IplImage input, @Nullable T output) {<NEW_LINE>if (input.nChannels() != 1)<NEW_LINE>throw new IllegalArgumentException("Expected 1 channel for gray scale images");<NEW_LINE>ImageDataType dataType = depthToBoofType(input.depth());<NEW_LINE><MASK><NEW_LINE>int height =...
int width = input.width();
1,384,140
private static IndexRecord indexColumnRecord(String catalog, String schema, String tableName, boolean nonUnique, String indexName, String indexTableName, String nullable, String indexType, int indexLocation, IndexStatus indexStatus, long version, String indexComment, int seqInIndex, SqlIndexColumnName column, boolean c...
String columnName = column.getColumnNameStr();
1,329,651
String[] list(@Nonnull VirtualFile file) {<NEW_LINE>String path = file.getPath();<NEW_LINE>FileInfo[] fileInfo = myKernel.listChildren(path);<NEW_LINE>if (fileInfo == null || fileInfo.length == 0) {<NEW_LINE>return ArrayUtil.EMPTY_STRING_ARRAY;<NEW_LINE>}<NEW_LINE>String[] names = new String[fileInfo.length];<NEW_LINE>...
nestedMap = map.get(parentId);
973,210
private void loadCustomizedActions(GradleExecConfiguration c) {<NEW_LINE>String id;<NEW_LINE>if (c != null) {<NEW_LINE>id = c.getId();<NEW_LINE>} else {<NEW_LINE>id = GradleExecConfiguration.DEFAULT;<NEW_LINE>}<NEW_LINE>ActionsHolder h = configHolders.get(id);<NEW_LINE>if (h != null) {<NEW_LINE>customActions = h.custom...
> customizedActions = actionP.customizedActions();
734,287
public static UpnpHeader newInstance(UpnpHeader.Type type, String headerValue) {<NEW_LINE>// Try all the UPnP headers and see if one matches our value parsers<NEW_LINE>UpnpHeader upnpHeader = null;<NEW_LINE>for (int i = 0; i < type.getHeaderTypes().length && upnpHeader == null; i++) {<NEW_LINE>Class<? extends UpnpHeade...
"Error instantiating header of type '" + type + "' with value: " + headerValue);
528,403
private static String encrypt(byte[] keyBytes, String plainText) throws Exception {<NEW_LINE><MASK><NEW_LINE>KeyFactory factory = KeyFactory.getInstance("RSA");<NEW_LINE>PrivateKey privateKey = factory.generatePrivate(spec);<NEW_LINE>Cipher cipher = Cipher.getInstance("RSA");<NEW_LINE>try {<NEW_LINE>cipher.init(Cipher....
PKCS8EncodedKeySpec spec = new PKCS8EncodedKeySpec(keyBytes);
1,393,299
public static MPPOrder createMO(MPPProductPlanning pp, int C_OrderLine_ID, int M_AttributeSetInstance_ID, BigDecimal qty, Timestamp dateOrdered, Timestamp datePromised, String description) {<NEW_LINE>MPPProductBOM bom = pp.getPP_Product_BOM();<NEW_LINE>MWorkflow wf = pp.getAD_Workflow();<NEW_LINE>if (pp.getS_Resource_I...
setM_Product_ID(pp.getM_Product_ID());
560,214
private void put(Throwable throwable, StackTraceElement[] enclosingTrace, String caption, String prefix, Set<Throwable> dejaVu) {<NEW_LINE>if (dejaVu.contains(throwable)) {<NEW_LINE>put("\t[CIRCULAR REFERENCE:");<NEW_LINE>put0(throwable);<NEW_LINE>put(']');<NEW_LINE>} else {<NEW_LINE>dejaVu.add(throwable);<NEW_LINE>// ...
(prefix).put(caption);
1,503,412
private TypecheckingResult makeNew(TypecheckingResult result, Concrete.NewExpression expr, Expression expectedType, Set<ClassField> pseudoImplemented) {<NEW_LINE>if (result == null)<NEW_LINE>return null;<NEW_LINE>Expression normExpr = result.expression.normalize(NormalizationMode.WHNF);<NEW_LINE>ClassCallExpression cla...
classCallExpr), classCallExpr), expr);
871,675
protected void run() {<NEW_LINE>try {<NEW_LINE>runInterceptHook();<NEW_LINE>Transaction preparedDelayedPayoutTx = checkNotNull(processModel.getPreparedDelayedPayoutTx());<NEW_LINE>BtcWalletService btcWalletService = processModel.getBtcWalletService();<NEW_LINE>NetworkParameters params = btcWalletService.getParams();<NE...
] sellerMultiSigPubKey = processModel.getMyMultiSigPubKey();
1,274,079
public boolean Define_boolean_isDUbefore(ASTNode caller, ASTNode child, Variable v) {<NEW_LINE>if (caller == getUpdateStmtListNoTransform()) {<NEW_LINE>int i = caller.getIndexOfChild(child);<NEW_LINE>{<NEW_LINE>if (// start a circular evaluation here<NEW_LINE>!isDUbeforeCondition(v))<NEW_LINE>return false;<NEW_LINE>if ...
Define_boolean_isDUbefore(this, caller, v);
1,827,175
public PlanFragment visitPhysicalHiveScan(OptExpression optExpression, ExecPlan context) {<NEW_LINE>PhysicalHiveScanOperator node = (PhysicalHiveScanOperator) optExpression.getOp();<NEW_LINE>ScanOperatorPredicates predicates = node.getScanOperatorPredicates();<NEW_LINE>Table referenceTable = node.getTable();<NEW_LINE>c...
LOG.warn("Hdfs scan node get scan range locations failed : " + e);
537,185
public void marshall(UpdateItemRequest updateItemRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateItemRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateItemRequest.getTableName(),...
updateItemRequest.getKey(), KEY_BINDING);
1,774,938
protected FlowElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap, BpmnJsonConverterContext converterContext) {<NEW_LINE>HttpServiceTask task = new HttpServiceTask();<NEW_LINE>task.setType("http");<NEW_LINE>String parallelInSameTransaction = getPropertyValueAsString(PRO...
"requestHeaders", PROPERTY_HTTPTASK_REQ_HEADERS, elementNode, task);
49,575
public static void vertical(GrayF32 src, GrayI16 dst) {<NEW_LINE>if (src.height < dst.height)<NEW_LINE>throw new IllegalArgumentException("src height must be >= dst height");<NEW_LINE>if (src.width != dst.width)<NEW_LINE>throw new IllegalArgumentException("src width must equal dst width");<NEW_LINE>float scale = src.he...
src.getIndex(x, isrcY0);
1,450,467
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.<MASK><NEW_LINE>}<NEW_LINE>String labNa...
format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
338,393
private boolean visitDependentLink(DependentLink parameters) {<NEW_LINE>for (DependentLink link = parameters; link.hasNext(); link = link.getNext()) {<NEW_LINE>DependentLink link1 = link.getNextTyped(null);<NEW_LINE>Expression type = acceptSelf(<MASK><NEW_LINE>if (type == null) {<NEW_LINE>if (myKeepVisitor != null) {<N...
link1.getTypeExpr(), true);
305,759
protected void prepareContext(Host host, ServletContextInitializer[] initializers) {<NEW_LINE>if (host.getState() == LifecycleState.NEW) {<NEW_LINE>super.prepareContext(host, initializers);<NEW_LINE>} else {<NEW_LINE>File documentRoot = getValidDocumentRoot();<NEW_LINE>StandardContext context = new StandardContext();<N...
(new Tomcat.FixContextListener());
1,743,331
public static <T extends AzureProperties> void copyAzureCommonPropertiesIgnoreNull(AzureProperties source, T target) {<NEW_LINE>copyPropertiesIgnoreNull(source.getClient(), target.getClient());<NEW_LINE>copyHttpLoggingProperties(source, target, true);<NEW_LINE>copyPropertiesIgnoreNull(source.getProxy(), target.getProxy...
), targetRetry.getFixed());
127,764
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static void resume(com.sun.jdi.event.EventSet a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.IllegalThreadStateExc...
jpda.jdi.InternalExceptionWrapper(ex);
727,248
private BoundTransportAddress createBoundTransportAddress(ProfileSettings profileSettings, List<InetSocketAddress> boundAddresses) {<NEW_LINE>String[] boundAddressesHostStrings = new String[boundAddresses.size()];<NEW_LINE>TransportAddress[] transportBoundAddresses = new TransportAddress[boundAddresses.size()];<NEW_LIN...
NetworkService.GLOBAL_NETWORK_PUBLISH_HOST_SETTING.get(settings);
272,139
private void prePassivate(InvocationContext inv) {<NEW_LINE>try {<NEW_LINE>Object results = getResultsObject(inv);<NEW_LINE>addPrePassivate(results, CLASS_NAME, "prePassivate");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object> map = inv.getContextData();<NEW_LINE>String data;<NEW_LINE>if (map....
map.put("InvocationContext", inv);
380,056
private Mono<Response<Flux<ByteBuffer>>> redeployWithResponseAsync(String resourceGroupName, String sqlVirtualMachineName, 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 IllegalArgumentE...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
567,375
final GetAppValidationOutputResult executeGetAppValidationOutput(GetAppValidationOutputRequest getAppValidationOutputRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAppValidationOutputRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
(super.beforeMarshalling(getAppValidationOutputRequest));
1,524,079
public com.amazonaws.services.elasticfilesystem.model.SecurityGroupLimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.elasticfilesystem.model.SecurityGroupLimitExceededException securityGroupLimitExceededException = new com.amazonaws.services...
JsonToken token = context.getCurrentToken();
119,486
public static void printCodeInfo(Log log, UntetheredCodeInfo codeInfo, int state, String name, CodePointer codeStart, CodePointer codeEnd, HasInstalledCode hasInstalledCode, long installedCodeAddress, long installedCodeEntryPoint) {<NEW_LINE>log.string("CodeInfo (").zhex(codeInfo).string(" - ").zhex(((UnsignedWord) cod...
(CodeInfoAccess.stateToString(state));
1,419,290
public void marshall(CreateCanaryRequest createCanaryRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createCanaryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createCanaryRequest.getName...
createCanaryRequest.getExecutionRoleArn(), EXECUTIONROLEARN_BINDING);
299,724
private void delServicesRef(String uuid, String type) {<NEW_LINE>DebugUtils.Assert((uuid != null) && (type != null), "the parameter can't be null");<NEW_LINE>VipNetworkServicesRefVO vipRef = dbf.findByUuid(uuid, VipNetworkServicesRefVO.class);<NEW_LINE>if (vipRef == null) {<NEW_LINE>logger.error(String.format("the serv...
> types = self.getServicesTypes();
1,854,192
public org.bimserver.plugins.modelmerger.ModelMerger createMerger(DatabaseSession databaseSession, Long currentUoid) throws MergeException, BimserverDatabaseException {<NEW_LINE>User user = databaseSession.get(StorePackage.eINSTANCE.getUser(), currentUoid, OldQuery.getDefault());<NEW_LINE><MASK><NEW_LINE>ModelMergerPlu...
UserSettings userSettings = user.getUserSettings();
1,783,296
private static PackageData loadPackageDataFromBalaFile(Path balaPath, PackageManifest packageManifest) {<NEW_LINE>URI zipURI = URI.create("jar:" + balaPath.toUri().toString());<NEW_LINE>try (FileSystem zipFileSystem = FileSystems.newFileSystem(zipURI, new HashMap<>())) {<NEW_LINE>// Load default module<NEW_LINE>String ...
packageRoot = zipFileSystem.getPath("/");
979,950
private void layoutButtons() {<NEW_LINE>final ButtonBar buttonBar = getSkinnable();<NEW_LINE>final List<? extends Node> buttons = buttonBar.getButtons();<NEW_LINE>final double buttonMinWidth = buttonBar.getButtonMinWidth();<NEW_LINE>String buttonOrder = getSkinnable().getButtonOrder();<NEW_LINE>layout.getChildren().cle...
setHgrow(btn, Priority.NEVER);
892,765
final ValidateConfigurationSettingsResult executeValidateConfigurationSettings(ValidateConfigurationSettingsRequest validateConfigurationSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(validateConfigurationSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
217,728
public boolean pay(Ability ability, Game game, Ability source, UUID controllerId, boolean noMana, Cost costToPay) {<NEW_LINE>Player <MASK><NEW_LINE>if (player == null) {<NEW_LINE>return paid;<NEW_LINE>}<NEW_LINE>int oppCount = game.getOpponents(controllerId).size();<NEW_LINE>TargetCard target = new TargetCardInYourGrav...
player = game.getPlayer(controllerId);
518,626
public static void main(String[] args) {<NEW_LINE>int number = 59;<NEW_LINE>System.out.println("Testing with number: " + number);<NEW_LINE>// Get Bit<NEW_LINE>System.out.println("Get Bit");<NEW_LINE>System.out.println(AssortedMethods.toFullBinaryString(number));<NEW_LINE>for (int i = 31; i >= 0; i--) {<NEW_LINE>int res...
System.out.println(num1);
519,999
public boolean isDaylight(TimeZone timeZone) {<NEW_LINE>Date riseDate = getDailyForecast().get(0).sun().getRiseDate();<NEW_LINE>Date setDate = getDailyForecast().get(0).sun().getSetDate();<NEW_LINE>if (riseDate != null && setDate != null) {<NEW_LINE>Calendar calendar = Calendar.getInstance();<NEW_LINE>calendar.setTimeZ...
calendar.get(Calendar.MINUTE);
181,336
public File persist(final IncrementalIndex index, final Interval dataInterval, File outDir, IndexSpec indexSpec, ProgressIndicator progress, @Nullable SegmentWriteOutMediumFactory segmentWriteOutMediumFactory) throws IOException {<NEW_LINE>if (index.isEmpty()) {<NEW_LINE>throw new IAE("Trying to persist an empty index!...
, progress, segmentWriteOutMediumFactory, -1);
1,573,960
public static TrustedAuthority parse(InputStream input) throws IOException {<NEW_LINE>short <MASK><NEW_LINE>Object identifier;<NEW_LINE>switch(identifier_type) {<NEW_LINE>case IdentifierType.cert_sha1_hash:<NEW_LINE>case IdentifierType.key_sha1_hash:<NEW_LINE>{<NEW_LINE>identifier = TlsUtils.readFully(20, input);<NEW_L...
identifier_type = TlsUtils.readUint8(input);
331,088
private void ensureRestDevelopmentReadyImpl(RestConfig restConfig) throws IOException {<NEW_LINE>// check whether project EE level or project/server classpath provide<NEW_LINE>// JAX-RS APIs. The value should be false only in case of EE5 specification<NEW_LINE>// and server without any Jersey on its classpath, eg. Tomc...
support.addJsr311Api(getProject());
578,430
@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public Response createFieldVariableByFieldId(@PathParam("typeId") final String typeId, @PathParam("fieldId") final String fieldId, final String fieldVariableJson,...
fapi.save(fieldVariable, user);
787,446
public JMXServerInfo readJMX(InputStream in) throws ConversionException, IOException {<NEW_LINE>JSONObject json = parseObject(in);<NEW_LINE>JMXServerInfo ret = new JMXServerInfo();<NEW_LINE>ret.version = readIntInternal(json.get(N_VERSION));<NEW_LINE>ret.mbeansURL = readStringInternal(json.get(N_MBEANS));<NEW_LINE>ret....
(json.get(N_DEFAULTDOMAIN));
661,164
public ResponsePartitionKey unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResponsePartitionKey responsePartitionKey = new ResponsePartitionKey();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con...
String currentParentElement = context.getCurrentParentElement();
1,659,572
private void pickSongs(Intent intent, final int action) {<NEW_LINE>// mutable copy<NEW_LINE>int effectiveAction = action;<NEW_LINE>long id = intent.getLongExtra("id", LibraryAdapter.INVALID_ID);<NEW_LINE>int type = mCurrentAdapter.getMediaType();<NEW_LINE>// special handling if we pick one song to be played that is alr...
(this).jumpToQueuePosition(songPosInQueue);
55,073
final DeleteIdentityPoolResult executeDeleteIdentityPool(DeleteIdentityPoolRequest deleteIdentityPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIdentityPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);