idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
679,966
public boolean isAllowable(URL url, Invocation invocation) {<NEW_LINE>int rate = url.getMethodParameter(invocation.getMethodName(), TPS_LIMIT_RATE_KEY, -1);<NEW_LINE>long interval = url.getMethodParameter(invocation.getMethodName(), TPS_LIMIT_INTERVAL_KEY, DEFAULT_TPS_LIMIT_INTERVAL);<NEW_LINE>String serviceKey = url.g...
statItem = stats.get(serviceKey);
1,081,150
private ALight buildLight(Model l) {<NEW_LINE>int m = l.properties.lightType != null ? l.properties.lightType : ALight.POINT_LIGHT;<NEW_LINE>switch(m) {<NEW_LINE>case // Point<NEW_LINE>ALight.POINT_LIGHT:<NEW_LINE>PointLight light = new PointLight();<NEW_LINE>light.setPosition(l.properties.lclTranslation);<NEW_LINE>lig...
setPosition(l.properties.lclTranslation);
1,070,690
private void handler(final ServiceBean<?> serviceBean) {<NEW_LINE>Object refProxy = serviceBean.getRef();<NEW_LINE>Class<?> clazz = refProxy.getClass();<NEW_LINE>if (AopUtils.isAopProxy(refProxy)) {<NEW_LINE>clazz = AopUtils.getTargetClass(refProxy);<NEW_LINE>}<NEW_LINE>final ShenyuDubboClient beanShenyuClient = Annota...
methods = ReflectionUtils.getDeclaredMethods(clazz);
1,195,909
private RelationPlan planStatementWithoutOutput(Analysis analysis, Statement statement) {<NEW_LINE>if (statement instanceof CreateTableAsSelect) {<NEW_LINE>if (analysis.getCreate().orElseThrow().isCreateTableAsSelectNoOp()) {<NEW_LINE>throw new TrinoException(NOT_SUPPORTED, "CREATE TABLE IF NOT EXISTS is not supported ...
(analysis, (Insert) statement);
1,293,815
private void addBindings() {<NEW_LINE>if (dataModel.getDirection() == OfferDirection.BUY) {<NEW_LINE>volumeDescriptionLabel.bind(createStringBinding(() -> Res.get("createOffer.amountPriceBox.buy.volumeDescription", dataModel.getTradeCurrencyCode().get()), dataModel.getTradeCurrencyCode()));<NEW_LINE>} else {<NEW_LINE>v...
, dataModel.getTradeCurrencyCode()));
1,338,029
final GetComponentVersionArtifactResult executeGetComponentVersionArtifact(GetComponentVersionArtifactRequest getComponentVersionArtifactRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getComponentVersionArtifactRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
invoke(request, responseHandler, executionContext);
180,160
private static long addUnsignedReturnOverflow(Slice left, Slice right, Slice result, boolean resultNegative) {<NEW_LINE>// TODO: consider two 7 bytes operations<NEW_LINE>int l0 = getInt(left, 0);<NEW_LINE>int l1 = getInt(left, 1);<NEW_LINE>int l2 = getInt(left, 2);<NEW_LINE>int l3 = getInt(left, 3);<NEW_LINE>int r0 = g...
+ (intermediateResult >>> 32);
1,024,185
private void onStartCommand(String commandDisplayName) {<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>switch(state) {<NEW_LINE>case Broken:<NEW_LINE>throw new DaemonUnavailableException("This daemon is in a broken state and will stop.");<NEW_LINE>case StopRequested:<NEW_LINE>throw new DaemonUnavailableException("This ...
.format("This daemon is currently executing: %s", currentCommandExecution));
1,473,794
public StaticObject toGuestComponent(Meta meta, ObjectKlass klass) {<NEW_LINE>assert meta.getJavaVersion().java16OrLater();<NEW_LINE><MASK><NEW_LINE>StaticObject component = meta.java_lang_reflect_RecordComponent.allocateInstance();<NEW_LINE>Symbol<Name> nameSymbol = pool.symbolAt(name);<NEW_LINE>Symbol<Type> typeSymbo...
RuntimeConstantPool pool = klass.getConstantPool();
1,336,378
public Object execute(CommandContext commandContext) {<NEW_LINE>if (taskId == null) {<NEW_LINE>throw new FlowableIllegalArgumentException("Task id should not be null");<NEW_LINE>}<NEW_LINE>ProcessEngineConfigurationImpl <MASK><NEW_LINE>TaskEntity task = processEngineConfiguration.getTaskServiceConfiguration().getTaskSe...
processEngineConfiguration = CommandContextUtil.getProcessEngineConfiguration(commandContext);
471,489
public TabularData canInvoke(Map<String, List<String>> bulkQuery) throws Exception {<NEW_LINE><MASK><NEW_LINE>for (Map.Entry<String, List<String>> entry : bulkQuery.entrySet()) {<NEW_LINE>String objectName = entry.getKey();<NEW_LINE>List<String> methods = entry.getValue();<NEW_LINE>if (methods.size() == 0) {<NEW_LINE>b...
TabularData table = new TabularDataSupport(CAN_INVOKE_TABULAR_TYPE);
193,086
public Object read(SourceRecord record) {<NEW_LINE>Object obj = converter.read(record);<NEW_LINE>if (obj == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Struct value = (Struct) record.value();<NEW_LINE>Schema valueSchema = record.valueSchema();<NEW_LINE>Schema beforeSchema = valueSchema.field(Envelope.FieldName.BE...
field = beforeSchema.field(fieldName);
787,886
final QueryLineageResult executeQueryLineage(QueryLineageRequest queryLineageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(queryLineageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<QueryLineageRequest> ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,123,351
public void process(Operator operator, List<COSBase> arguments) throws IOException {<NEW_LINE>if (arguments.isEmpty()) {<NEW_LINE>throw new MissingOperandException(operator, arguments);<NEW_LINE>}<NEW_LINE>COSBase <MASK><NEW_LINE>if (!(base0 instanceof COSName)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>COSName name = (CO...
base0 = arguments.get(0);
776,913
public void checkMessages(XMLFile messagesDoc) throws DocumentException {<NEW_LINE>// Detector elements must all have a class attribute<NEW_LINE>// and details child element.<NEW_LINE>for (Iterator<Node> i = messagesDoc.xpathIterator("/MessageCollection/Detector"); i.hasNext(); ) {<NEW_LINE>Node node = i.next();<NEW_LI...
"Abbreviations not described by BugCode elements", messagesDoc, declaredAbbrevsSet, describedAbbrevsSet);
34,232
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(getContext());<NEW_LINE>View contentView = inflater.inflate(R.layout.procedure_definition_mutator_dialog, null, false);<NEW_LINE>String headerFormat = getString(R.string.mutator_procedure_def_header_format);...
findViewById(R.id.mutator_procedure_def_header);
1,094,855
public ASTNode visitTableFactor(final TableFactorContext ctx) {<NEW_LINE>if (null != ctx.subquery()) {<NEW_LINE>SQLServerSelectStatement subquery = (SQLServerSelectStatement) visit(ctx.subquery());<NEW_LINE>SubquerySegment subquerySegment = new SubquerySegment(ctx.subquery().start.getStartIndex(), ctx.subquery().<MASK>...
stop.getStopIndex(), subquery);
119,802
public void aggregate(long address, long addressSize, int columnSizeHint, int workerId) {<NEW_LINE>if (address != 0) {<NEW_LINE>// Neumaier compensated summation<NEW_LINE>final double x = Vect.sumDoubleNeumaier(address, addressSize / Double.BYTES);<NEW_LINE>if (x == x) {<NEW_LINE>final int offset = workerId * Misc.CACH...
sum = this.sum[offset];
189,783
private void restartProxies() {<NEW_LINE>List<ProxiesParamProxy> proxyParams = this.getParam().getProxies();<NEW_LINE>Map<String, ProxiesParamProxy> newProxies = new HashMap<>();<NEW_LINE>Map<String, org.parosproxy.paros.core.proxy.ProxyServer> currentProxies = proxyServers;<NEW_LINE>proxyServers = new HashMap<>();<NEW...
proxyServers.put(key, proxy);
1,164,771
public int compare(Object o1, Object o2) {<NEW_LINE>if (o1 instanceof JPDADVThreadGroup) {<NEW_LINE>if (o2 instanceof JPDADVThreadGroup) {<NEW_LINE>String tgn1 = ((JPDADVThreadGroup) o1).getName();<NEW_LINE>String tgn2 = ((JPDADVThreadGroup) o2).getName();<NEW_LINE>return java.text.Collator.getInstance().compare(tgn1, ...
JPDADVThread) o2).getName();
757,553
private Attributes extract(Attributes emf, int frame, String cuid, boolean enhanced) {<NEW_LINE>Attributes dest = new Attributes(emf.size() * 2);<NEW_LINE>dest.addNotSelected(emf, EXCLUDE_TAGS);<NEW_LINE>if (enhanced) {<NEW_LINE>Attributes sfgs = emf.getNestedDataset(Tag.SharedFunctionalGroupsSequence);<NEW_LINE>if (sf...
addPixelData(dest, emf, frame);
1,316,040
private void addTableToUpdate(String tableName) {<NEW_LINE>StringBuffer keyColumnNames = new StringBuffer();<NEW_LINE>String uuidKey = I_AD_Table.COLUMNNAME_UUID;<NEW_LINE>String uuidWhereClause = uuidKey + " IS NOT NULL";<NEW_LINE>if (isOnlyUUIDMissing()) {<NEW_LINE>uuidKey = "getUUID()";<NEW_LINE>uuidWhereClause = I_...
] keyColumn = table.getKeyColumns();
1,349,957
public AvroHttpRequest build() {<NEW_LINE>try {<NEW_LINE>AvroHttpRequest record = new AvroHttpRequest();<NEW_LINE>record.requestTime = fieldSetFlags()[0] ? this.requestTime : (java.lang.Long) defaultValue(fields()[0]);<NEW_LINE>if (clientIdentifierBuilder != null) {<NEW_LINE>record.clientIdentifier = this.clientIdentif...
(fields()[2]);
1,781,489
private void updateVolumeAfterMigration(Answer answer, DataObject srcData, DataObject destData) {<NEW_LINE>VolumeVO destinationVO = volDao.findById(destData.getId());<NEW_LINE>if (!(answer instanceof MigrateVolumeAnswer)) {<NEW_LINE>// OfflineVmwareMigration: reset states and such<NEW_LINE>VolumeVO sourceVO = volDao.fi...
sourceVO.getId(), sourceVO);
1,812,001
public static JSONObject create(JSONObject ui) {<NEW_LINE>if (ui == null) {<NEW_LINE>ui = new JSONObject();<NEW_LINE>}<NEW_LINE>// Main Window Position & Size<NEW_LINE>ui.put("main-window-position", new JSONArray("[]"));<NEW_LINE>ui.put("gtp-console-position", new JSONArray("[]"));<NEW_LINE>ui.put("board-position-propo...
"winrate-position", new JSONArray("[]"));
1,498,687
private static String unionPreambleToString(final Memory mem, final Family family, final int preLongs) {<NEW_LINE>final ResizeFactor rf = ResizeFactor.getRF(extractResizeFactor(mem));<NEW_LINE>final int serVer = extractSerVer(mem);<NEW_LINE>// Flags<NEW_LINE>final int flags = extractFlags(mem);<NEW_LINE>final String fl...
.toUpperCase() + " PREAMBLE SUMMARY" + LS;
94,701
private void displayCancellingProgressMessages() {<NEW_LINE>if (usingNetBeansGUI) {<NEW_LINE>SwingUtilities.invokeLater(() -> {<NEW_LINE>if (dataSourceIngestProgressBar != null) {<NEW_LINE>dataSourceIngestProgressBar.setDisplayName(NbBundle.getMessage(getClass(), "IngestJob.progress.dataSourceIngest.initialDisplayName"...
().getName()));
641,867
private static List<RingEntry> buildRing(Map<EquivalentAddressGroup, Long> serverWeights, long totalWeight, double scale) {<NEW_LINE>List<RingEntry> ring = new ArrayList<>();<NEW_LINE>double currentHashes = 0.0;<NEW_LINE>double targetHashes = 0.0;<NEW_LINE>for (Map.Entry<EquivalentAddressGroup, Long> entry : serverWeig...
sb.length() - 1);
937,363
public OutlierResult autorun(Database database) {<NEW_LINE>Object <MASK><NEW_LINE>OutlierResult or = getOutlierResult(innerresult);<NEW_LINE>final DoubleRelation scores = or.getScores();<NEW_LINE>if (scaling instanceof OutlierScaling) {<NEW_LINE>((OutlierScaling) scaling).prepare(or);<NEW_LINE>}<NEW_LINE>WritableDouble...
innerresult = algorithm.autorun(database);
660,909
public static void main(String[] args) {<NEW_LINE>final Properties options = StringUtils.argsToProperties(args, argOptionDefs());<NEW_LINE>if (args.length < 1 || options.containsKey("help")) {<NEW_LINE>log.info(usage());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Pattern posPattern = options.containsKey("searchPos") ? ...
tr, posPattern, wordPattern, plainPrint);
386,571
public ListResponsePlansResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListResponsePlansResult listResponsePlansResult = new ListResponsePlansResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken...
String currentParentElement = context.getCurrentParentElement();
489,067
public Mapper.Builder<AnnotatedTextFieldMapper.Builder, AnnotatedTextFieldMapper> parse(String fieldName, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException {<NEW_LINE>AnnotatedTextFieldMapper.Builder builder = new AnnotatedTextFieldMapper.Builder(fieldName);<NEW_LINE>builder.fieldType...
String propName = entry.getKey();
1,264,989
protected void taskOnceLoop() {<NEW_LINE>try {<NEW_LINE>WeEvent event = this.eventQueue.poll(this.idleTime, TimeUnit.MILLISECONDS);<NEW_LINE>// empty queue, try next.<NEW_LINE>if (event == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log.debug("poll from notify queue, event: {}", event);<NEW_LINE>// avoid duplicate wit...
long now = System.currentTimeMillis();
326,389
public static ClientMessage encodeRequest(com.hazelcast.cp.internal.RaftGroupId groupId, java.lang.String name, com.hazelcast.internal.serialization.Data function, int returnValueType) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMe...
StringCodec.encode(clientMessage, name);
920,783
public Dialog createDialog(Activity activity, Bundle args) {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(mapActivity);<NEW_LINE>builder.setTitle(R.string.gps_status);<NEW_LINE>LinearLayout ll = new LinearLayout(activity);<NEW_LINE>final ListView lv = new ListView(activity);<NEW_LINE>final int dp24 = ...
getPrimaryTextColor(activity, isNightMode());
1,023,146
public T resultOrThrow() {<NEW_LINE>// Avoid changing behavior. Old implementation would throw an exception if<NEW_LINE>// this method was called from the UI thread<NEW_LINE>if (Looper.myLooper() == Looper.getMainLooper()) {<NEW_LINE>throw new AppException(ErrorCode<MASK><NEW_LINE>}<NEW_LINE>execute(this);<NEW_LINE>try...
.NETWORK_UNKNOWN, new NetworkOnMainThreadException());
623,153
public void cancelPendingBuilds(Job<?, ?> job, Integer projectId, String branch) {<NEW_LINE>Queue queue = Jenkins<MASK><NEW_LINE>for (Queue.Item item : queue.getItems()) {<NEW_LINE>if (!job.getName().equals(item.task.getName())) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>GitLabWebHookCause queueItemGitLabWebHookCause = g...
.getInstance().getQueue();
295,282
public void addSyntheticArrayConstructor(SyntheticMethodBinding methodBinding) {<NEW_LINE>generateMethodInfoHeader(methodBinding);<NEW_LINE>int methodAttributeOffset = this.contentsOffset;<NEW_LINE>// this will add exception attribute, synthetic attribute, deprecated attribute,...<NEW_LINE>int attributeNumber = generat...
).compilationResult.getLineSeparatorPositions());
179,959
private void traverseRecurse(DataSchema schema) {<NEW_LINE>if (schema instanceof NamedDataSchema) {<NEW_LINE>_path.add(((NamedDataSchema<MASK><NEW_LINE>} else {<NEW_LINE>_path.add(schema.getUnionMemberKey());<NEW_LINE>}<NEW_LINE>if (_callbacks.containsKey(Order.PRE_ORDER)) {<NEW_LINE>_callbacks.get(Order.PRE_ORDER).cal...
) schema).getFullName());
237,178
// reverseCorrectIt<NEW_LINE>MJournal reverseCorrectIt(final int GL_JournalBatch_ID) {<NEW_LINE>log.info("{}", this);<NEW_LINE>// Journal<NEW_LINE>final MJournal reverse = new MJournal(this);<NEW_LINE>reverse.setGL_JournalBatch_ID(GL_JournalBatch_ID);<NEW_LINE>reverse.setDateDoc(getDateDoc());<NEW_LINE>reverse.setDateA...
"(->" + getDocumentNo() + ")");
818,444
public ProcessStatus restCheckVerification(final PwmRequest pwmRequest) throws IOException, PwmUnrecoverableException, ServletException {<NEW_LINE>final HelpdeskProfile helpdeskProfile = getHelpdeskProfile(pwmRequest);<NEW_LINE>final Map<String, String> bodyMap = pwmRequest.readBodyAsJsonStringMap(PwmHttpRequestWrapper...
checkIfRequiredVerificationPassed(userIdentity, state, helpdeskProfile);
890,067
public static Set<ParamType> constituentGenerics(final ParamType type) {<NEW_LINE>if (type instanceof ArrayType) {<NEW_LINE>return constituentGenerics(((ArrayType) type).element());<NEW_LINE>} else if (type instanceof MapType) {<NEW_LINE>return Sets.union(constituentGenerics(((MapType) type).key()), constituentGenerics...
type).returnType()));
1,489,233
private void updateNodes() {<NEW_LINE>final DayEntryView view = getSkinnable();<NEW_LINE>final ObservableMap<Pos, List<Node>> nodes = view.getNodes();<NEW_LINE>if (nodes != null) {<NEW_LINE>Set<Pos> previouslyUsedPositions = null;<NEW_LINE>if (nodePanes != null) {<NEW_LINE>previouslyUsedPositions = nodePanes.keySet();<...
> iterator = previouslyUsedPositions.iterator();
1,459,091
private void updateWatchlistBox(final CacheDetailActivity activity) {<NEW_LINE>final boolean supportsWatchList = cache.supportsWatchList();<NEW_LINE>binding.watchlistBox.setVisibility(supportsWatchList ? <MASK><NEW_LINE>if (!supportsWatchList) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int watchListCount = cache.getW...
View.VISIBLE : View.GONE);
1,850,056
public FixResult executeFix(Map<String, String> issue, Map<String, Object> clientMap, Map<String, String> ruleParams) {<NEW_LINE>String resourceId = issue.get("resourceDisplayId");<NEW_LINE>String defaultCidrIp = ruleParams.get("defaultCidrIp");<NEW_LINE>Map<String, Object> ec2ClinetMap = null;<NEW_LINE>List<SecurityGr...
publiclyAccessible = new HashSet<>();
1,174,312
private static void addMavenCoordinates(File modifiedJsonFile, JsonArray jsonArray, Map<String, LibertyFeature> features) throws IOException {<NEW_LINE>JsonArrayBuilder jsonArrayBuilder = Json.createArrayBuilder();<NEW_LINE>for (int i = 0; i < jsonArray.size(); i++) {<NEW_LINE>JsonObject <MASK><NEW_LINE>JsonObjectBuild...
jsonObject = jsonArray.getJsonObject(i);
1,642,330
private String convert(RuntimeConstant cst) {<NEW_LINE>switch(cst.getKind()) {<NEW_LINE>case RuntimeConstant.INT:<NEW_LINE>return String.valueOf(cst.getInt());<NEW_LINE>case RuntimeConstant.LONG:<NEW_LINE>return String.valueOf(cst.getLong());<NEW_LINE>case RuntimeConstant.FLOAT:<NEW_LINE>return String.valueOf(cst.getFl...
"Unexpected runtime constant type: " + cst.getKind());
115,556
public static ListIndexesResponse unmarshall(ListIndexesResponse listIndexesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listIndexesResponse.setRequestId(_ctx.stringValue("ListIndexesResponse.RequestId"));<NEW_LINE>listIndexesResponse.setErrorCode(_ctx.stringValue("ListIndexesResponse.ErrorCode"));<NEW_LINE>listIndex...
(_ctx.booleanValue("ListIndexesResponse.Success"));
1,362,359
public void handleSourceEvents(SourceEvent sourceEvent) {<NEW_LINE>if (sourceEvent instanceof FinishedSnapshotSplitsAckEvent) {<NEW_LINE>FinishedSnapshotSplitsAckEvent ackEvent = (FinishedSnapshotSplitsAckEvent) sourceEvent;<NEW_LINE>LOG.debug("The subtask {} receives ack event for {} from enumerator.", subtaskId, ackE...
) sourceEvent).getMetaGroupId());
1,118,683
public void marshall(StepExecution stepExecution, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (stepExecution == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(stepExecution.getStepName(), STEPNAME_BINDING...
stepExecution.getNextStep(), NEXTSTEP_BINDING);
563,384
public String delete(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, Long[] ids, HttpServletRequest request, ModelMap model) {<NEW_LINE>if (CommonUtils.notEmpty(ids)) {<NEW_LINE>Set<Integer> categoryIdSet = new HashSet<>();<NEW_LINE>for (CmsContent entity : service.delete(site.getId(), admin, ids)) {<N...
ids, CommonConstants.COMMA)));
1,729,943
public void applyBeanDefinitions(SimpleDIContext context) throws Exception {<NEW_LINE>// TargetType<NEW_LINE>context.def(RunTargetType.class, CloudFoundryRunTargetType::new);<NEW_LINE>// Auto sync of cf deployed apps with JMX over SSH tunnel with boot ls (for live hover/data features).<NEW_LINE>context.def(RemoteBootAp...
.class, new JmxSshTunnelManager());
1,386,747
protected Volume liveMigrateVolume(Volume volume, StoragePool destPool) throws StorageUnavailableException {<NEW_LINE>VolumeInfo vol = volFactory.getVolume(volume.getId());<NEW_LINE>DataStore dataStoreTarget = dataStoreMgr.getDataStore(destPool.<MASK><NEW_LINE>AsyncCallFuture<VolumeApiResult> future = volService.migrat...
getId(), DataStoreRole.Primary);
113,210
final UpdateCustomLineItemResult executeUpdateCustomLineItem(UpdateCustomLineItemRequest updateCustomLineItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateCustomLineItemRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
841,834
public static TypePatternElement fromString(String s, int expressionIndex) {<NEW_LINE>boolean isNullable = s.startsWith("-");<NEW_LINE>if (isNullable)<NEW_LINE>s = s.substring(1);<NEW_LINE>int flagMask = ~0;<NEW_LINE>if (s.startsWith("*")) {<NEW_LINE>s = s.substring(1);<NEW_LINE>flagMask &= ~SkriptParser.PARSE_EXPRESSI...
= new boolean[classes.length];
814,869
private void updateScrolledCompositeMinSize() {<NEW_LINE>// because this method can be called *after* calculating data in the<NEW_LINE>// background, all widgets can already be disposed<NEW_LINE>if (scrolledComposite.isDisposed())<NEW_LINE>return;<NEW_LINE>Composite parent = scrolledComposite.getParent();<NEW_LINE>if (...
clientArea.width, SWT.DEFAULT);
1,624,443
public void paintComponent(Graphics g0) {<NEW_LINE>super.paintComponent(g0);<NEW_LINE>Graphics2D g = (Graphics2D) g0.create();<NEW_LINE>try {<NEW_LINE>g.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL, RenderingHints.VALUE_STROKE_PURE);<NEW_LINE>g.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALU...
int y = startY + i * dotSpacingPixels;
1,640,522
public void encryptStr(String text, String key, String vector) {<NEW_LINE>try {<NEW_LINE>if (TopFragment.debug) {<NEW_LINE>key = key.substring(key.length() - 16);<NEW_LINE>// Create key and cipher<NEW_LINE>Key aesKey = new SecretKeySpec(key.getBytes(), "AES");<NEW_LINE>Cipher cipher = Cipher.getInstance("AES/CBC/PKCS5P...
).getAppDataDir() + "/logs");
440,045
public static Recurrence fromLegacyPeriod(long period) {<NEW_LINE>int result = (int) (period / RecurrenceParser.YEAR_MILLIS);<NEW_LINE>if (result > 0) {<NEW_LINE>Recurrence recurrence = new Recurrence(PeriodType.YEAR);<NEW_LINE>recurrence.setMultiplier(result);<NEW_LINE>return recurrence;<NEW_LINE>}<NEW_LINE>result = (...
= new Recurrence(PeriodType.WEEK);
150,823
private static CloudHealthcare createClient() throws IOException {<NEW_LINE>// Use Application Default Credentials (ADC) to authenticate the requests<NEW_LINE>// For more information see https://cloud.google.com/docs/authentication/production<NEW_LINE>GoogleCredentials credential = GoogleCredentials.getApplicationDefau...
headers.set("X-GFE-SSL", "yes");
865,610
public void showComments(final RequestContext context) {<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final AbstractFreeMarkerRenderer renderer = new SkinRenderer(context, "admin/comments.ftl");<NEW_LINE>final Map<String, Object> dataModel = renderer.getDataModel();<NEW_LINE>final int pageNum = Pagin...
put(Pagination.PAGINATION_CURRENT_PAGE_NUM, pageNum);
334,222
public ClusterEndpoint unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ClusterEndpoint clusterEndpoint = new ClusterEndpoint();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
303,253
public String[] childrenNames() {<NEW_LINE>Statistics.StopWatch sw = Statistics.getStopWatch(Statistics.CHILDREN_NAMES, true);<NEW_LINE>try {<NEW_LINE>FileObject folder = toFolder();<NEW_LINE>List<String> folderNames = new ArrayList<String>();<NEW_LINE>if (folder != null) {<NEW_LINE>for (FileObject fo : Collections.lis...
add(fo.getName());
1,575,536
public static StringBuilder append(StringBuilder sb, Pod.Value v) {<NEW_LINE>switch(v.getValCase()) {<NEW_LINE>case VAL_NOT_SET:<NEW_LINE>return sb.append("[null]");<NEW_LINE>case STRING:<NEW_LINE>return sb.append(v.getString());<NEW_LINE>case BOOL:<NEW_LINE>return sb.append(v.getBool());<NEW_LINE>case FLOAT64:<NEW_LIN...
getStringArray().getValList());
1,511,570
public io.kubernetes.client.proto.V1Apps.ReplicaSetStatus buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Apps.ReplicaSetStatus result = new io.kubernetes.client.proto.V1Apps.ReplicaSetStatus(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x0000...
bitField0_ = (bitField0_ & ~0x00000020);
1,589,348
private Structure createDefaultFileAssetStructure() throws DotDataException {<NEW_LINE>String inode = FileAssetAPI.DEFAULT_FILE_ASSET_STRUCTURE_INODE;<NEW_LINE>Structure fileAsset = new Structure();<NEW_LINE>fileAsset.setInode(inode);<NEW_LINE>fileAsset.setFixed(true);<NEW_LINE>fileAsset.setHost(Host.SYSTEM_HOST);<NEW_...
addParam(fileAsset.getName());
733,681
public void visitToken(DetailAST ast) {<NEW_LINE>final int currentType = ast.getType();<NEW_LINE>if (!isNotRelevantSituation(ast, currentType)) {<NEW_LINE>final int[] line = getLineCodePoints(ast.getLineNo() - 1);<NEW_LINE>final int before = ast.getColumnNo() - 1;<NEW_LINE>final int after = ast.getColumnNo() + ast<MASK...
.getText().length();
1,163,428
public void marshall(SamplingRuleUpdate samplingRuleUpdate, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (samplingRuleUpdate == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(samplingRuleUpdate.getRuleName...
samplingRuleUpdate.getReservoirSize(), RESERVOIRSIZE_BINDING);
1,661,197
private void createPortsTab() {<NEW_LINE>RowLayout rowLayout = createRowLayout();<NEW_LINE>portsTab = new Composite(tabFolder, SWT.NONE);<NEW_LINE>portsTab.setLayout(rowLayout);<NEW_LINE>GridLayout groupLayout = new GridLayout();<NEW_LINE>groupLayout.numColumns = 2;<NEW_LINE>Group timingGroup = new Group(portsTab, SWT....
(Labels.getLabel("preferences.ports.portsDescription"));
1,625,080
public void paint(Graphics2D gr, Rectangle bounds) {<NEW_LINE>Paint oldPaint = gr.getPaint();<NEW_LINE>RoundRectangle2D rect = new RoundRectangle2D.Double(bounds.x + 0.5f, bounds.y + 0.5f, bounds.width - depth - 1, bounds.height - depth - 1, radius, radius);<NEW_LINE>if (drawColor != null) {<NEW_LINE>RoundRectangle2D o...
Area raisedArea = new Area(outerRect);
1,391,847
protected Control createDialogArea(Composite parent) {<NEW_LINE>setTitle("Select Deployment Manifest for project '" + model.getProjectName() + "'");<NEW_LINE>Composite container = (Composite) super.createDialogArea(parent);<NEW_LINE>final Composite composite = new Composite(container, parent.getStyle());<NEW_LINE>compo...
workspaceViewer.getSelection(), true);
64,859
protected void initLineBuffers() {<NEW_LINE>boolean createBuffer = bufLineVertex == null;<NEW_LINE>if (createBuffer)<NEW_LINE>bufLineVertex = new VertexBuffer(pg, PGL.ARRAY_BUFFER, 4, PGL.SIZEOF_FLOAT, PGL.bufferUsageRetained);<NEW_LINE>pgl.bindBuffer(PGL.ARRAY_BUFFER, bufLineVertex.glId);<NEW_LINE>tessGeo.initLineVert...
SIZEOF_INDEX, PGL.bufferUsageRetained, true);
26,928
public String execute(SampleResult previousResult, Sampler currentSampler) throws InvalidVariableException {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String str = "";<NEW_LINE>CompoundVariable var <MASK><NEW_LINE>String exp = var.execute();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String varName = "";<NEW_LINE>if (values.length > 1) {...
= (CompoundVariable) values[0];
267,838
public void process(char character) throws UnsupportedAudioFileException, LineUnavailableException {<NEW_LINE>final float[] floatBuffer = DTMF.generateDTMFTone(character);<NEW_LINE>final AudioFormat format = new AudioFormat(44100, 16, 1, true, false);<NEW_LINE>JVMAudioInputStream.toTarsosDSPFormat(format);<NEW_LINE>fin...
AudioDispatcher(stream, stepSize, 0);
1,131,382
public void unannounce(String path) {<NEW_LINE>final ZKPaths.PathAndNode pathAndNode = ZKPaths.getPathAndNode(path);<NEW_LINE>final <MASK><NEW_LINE>final ConcurrentMap<String, byte[]> subPaths = announcements.get(parentPath);<NEW_LINE>if (subPaths == null || subPaths.remove(pathAndNode.getNode()) == null) {<NEW_LINE>lo...
String parentPath = pathAndNode.getPath();
1,742,663
protected RestChannelConsumer prepareRequest(RestRequest request, NodeClient client) throws IOException {<NEW_LINE>PostStartTrialRequest startTrialRequest = new PostStartTrialRequest();<NEW_LINE>startTrialRequest.setType(request.param("type", License.LicenseType.TRIAL.getTypeName()));<NEW_LINE>startTrialRequest.acknowl...
builder.field("trial_was_started", false);
1,395,406
public byte[] encrypt(byte[] plain) {<NEW_LINE>try {<NEW_LINE>byte[] salt = new byte[saltSize];<NEW_LINE>SECURE_RANDOM_INSTANCE.nextBytes(salt);<NEW_LINE>SecretKey <MASK><NEW_LINE>SecretKey secret = new SecretKeySpec(tmp.getEncoded(), cipherAlgName);<NEW_LINE>// error-prone warns if the transformation is not a compile-...
tmp = getKeyFromPassword(passPhrase, salt);
1,347,762
// NOI18N<NEW_LINE>@org.netbeans.api.annotations.common.SuppressWarnings(value = { "DMI_COLLECTION_OF_URLS" }, justification = "URLs have never host part")<NEW_LINE>public void run(final Result result, final SchedulerEvent event) {<NEW_LINE>final CompilationInfo info = CompilationInfo.get(result);<NEW_LINE>final Classp...
cpInfo.getClassPath(PathKind.SOURCE);
369,102
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.fragment_flexiblespacewithimagegridview, container, false);<NEW_LINE>final ObservableGridView gridView = (ObservableGridView) view.findViewById(R.id.scroll);<NEW_LINE>// Set...
args.getInt(ARG_SCROLL_Y, 0);
1,152,338
public void build(Model model, Datas datas, String id, List<Expression> exps, List<EAnnotation> annotations) {<NEW_LINE>BoolVar[] as = exps.get(0).toBoolVarArray(model);<NEW_LINE>BoolVar[] bs = exps.get(1).toBoolVarArray(model);<NEW_LINE>BoolVar r = exps.get<MASK><NEW_LINE>int PL = as.length;<NEW_LINE>int NL = bs.lengt...
(2).boolVarValue(model);
399,246
public <T extends JpaObject, W extends Object> List<T> listEqualAndInAndNotEqual(Class<T> cls, String firstAttribute, Object firstValue, String secondAttribute, Collection<W> secondValues, String thirdAttribute, Object thirdValue) throws Exception {<NEW_LINE>EntityManager em = this.get(cls);<NEW_LINE>CriteriaBuilder cb...
.get(firstAttribute), firstValue);
1,499,908
private void drawIcon(Graphics graphics) {<NEW_LINE>if (!isIconVisible()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>graphics.pushState();<NEW_LINE>graphics.setLineWidth(1);<NEW_LINE>graphics.setForegroundColor(isEnabled() ? ColorConstants.black : ColorConstants.gray);<NEW_LINE>graphics.setBackgroundColor(isEnabled() ? Col...
3, 3, 0, 360);
1,459,462
public BaseConnectionParam createConnectionParams(BaseDataSourceParamDTO datasourceParam) {<NEW_LINE>HiveDataSourceParamDTO hiveParam = (HiveDataSourceParamDTO) datasourceParam;<NEW_LINE>StringBuilder address = new StringBuilder();<NEW_LINE>address.append(Constants.JDBC_HIVE_2);<NEW_LINE>for (String zkHost : hiveParam....
(hiveParam.getOther()));
276,422
public <T> Object execute(T... args) {<NEW_LINE>LOG.warn("Some workers are dead during upgrade, upgrade fails, rolling back...");<NEW_LINE>try {<NEW_LINE>StormBase stormBase = data.getStormClusterState().storm_base(topologyId, null);<NEW_LINE>if (stormBase.getStatus().getStatusType() == StatusType.rollback) {<NEW_LINE>...
LOG.info("Restoring storm jar with key:{}", stormJarKeyBak);
1,031,650
private void createNormalTable(Model model) throws StorageException {<NEW_LINE>ElasticSearchClient esClient = (ElasticSearchClient) client;<NEW_LINE>String tableName = IndexController.INSTANCE.getTableName(model);<NEW_LINE>Mappings mapping = createMapping(model);<NEW_LINE>if (!esClient.isExistsIndex(tableName)) {<NEW_L...
structures.diffStructure(tableName, historyMapping);
433,234
public static String toCTypeName(ResolvedJavaMethod method, ResolvedJavaType type, Optional<String> useSiteTypedef, boolean isConst, boolean isUnsigned, MetaAccessProvider metaAccess, NativeLibraries nativeLibs) {<NEW_LINE>boolean isNumericInteger = type.getJavaKind().isNumericInteger();<NEW_LINE>UserError.guarantee(is...
cTypeForObject(type, metaAccess, nativeLibs);
900,793
static void UpdateNfaData(int maxState, int startStateName, int lexicalStateIndex, int matchAnyCharKind) {<NEW_LINE>// Cleanup the state set.<NEW_LINE>final Set<Integer> done = new HashSet<Integer>();<NEW_LINE>List<NfaState> cleanStates = new ArrayList<NfaState>();<NEW_LINE>NfaState startState = null;<NEW_LINE>for (int...
done.add(tmp.stateName);
1,121,374
private RequestPartitionId validateAndNormalizePartitionNames(RequestPartitionId theRequestPartitionId) {<NEW_LINE>List<Integer> ids = null;<NEW_LINE>for (int i = 0; i < theRequestPartitionId.getPartitionNames().size(); i++) {<NEW_LINE>PartitionEntity partition;<NEW_LINE>try {<NEW_LINE>partition = myPartitionConfigSvc....
().get(i));
1,056,095
/* public static RuleDataSet merge(RuleDataSet original, RuleDataSet modified) {<NEW_LINE>if (modified.dataList.size() > 0) {<NEW_LINE>for (Integer integer : modified.dataList) {<NEW_LINE>if (integer > 0) {<NEW_LINE>original.dataList.add(integer);<NEW_LINE>} else {<NEW_LINE>original.dataList.remove(Integer.valueOf(-int...
original.vpnList.add(integer);
1,328,171
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {<NEW_LINE>chosenFile = fileList.get(position).file;<NEW_LINE>File sel = new File(path + "/" + chosenFile);<NEW_LINE>Log.d(LOGTAG, "Clicked:" + chosenFile);<NEW_LINE>if (sel.isDirectory()) {<NEW_LINE>if (sel.canRead()) {<NEW_LINE>// Adds c...
LOGTAG, path.getAbsolutePath());
1,809,383
public void doSetupArtifact(String gav, ClassRealm realm) throws MalformedURLException {<NEW_LINE>String[] parts = gav.split(":");<NEW_LINE>Artifact root = system.createArtifact(parts[0], parts[1], parts[2], "pom");<NEW_LINE>ArtifactResolutionResult result;<NEW_LINE>result = system.resolve(new ArtifactResolutionRequest...
equals(artifact.getScope());
1,184,996
private void waitForFutureCompletion(GroupByQuery query, List<ListenableFuture<Void>> futures, IncrementalIndex closeOnFailure) {<NEW_LINE>ListenableFuture<List<Void>> <MASK><NEW_LINE>try {<NEW_LINE>queryWatcher.registerQueryFuture(query, future);<NEW_LINE>if (QueryContexts.hasTimeout(query)) {<NEW_LINE>future.get(Quer...
future = Futures.allAsList(futures);
1,780,609
public void mapPartition(Iterable<Row> values, Collector<Tuple2<Integer, Long>> out) throws Exception {<NEW_LINE>StreamSupport.stream(values.spliterator(), false).flatMap(x -> {<NEW_LINE>long[] counts = new long[x.getArity()];<NEW_LINE>Arrays.fill(counts, 0L);<NEW_LINE>for (int i = 0; i < x.getArity(); ++i) {<NEW_LINE>...
y, counts[y]));
1,853,061
private void initViews() {<NEW_LINE>if (mPusherPlayQRCodeFragment == null) {<NEW_LINE>mPusherPlayQRCodeFragment = new QRCodeGenerateFragment();<NEW_LINE>}<NEW_LINE>mEditInputURL = findViewById(R.id.livepusher_et_input_url);<NEW_LINE>mEditInputURL.setOnEditorActionListener(new TextView.OnEditorActionListener() {<NEW_LIN...
.toString().trim();
467,752
public final CursorStatementContext cursorStatement() throws RecognitionException {<NEW_LINE>CursorStatementContext _localctx = new CursorStatementContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>setState(4271);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LIN...
enterRule(_localctx, 364, RULE_cursorStatement);
1,571,140
private CompletableFuture<ContainerHandle> startContainerInternal(int containerId) {<NEW_LINE>ContainerWithHandle newContainer = new ContainerWithHandle(this.factory.createStreamSegmentContainer(containerId), new SegmentContainerHandle(containerId));<NEW_LINE>ContainerWithHandle existingContainer = this.containers.putI...
thenApply(v -> newContainer.handle);
1,556,998
public void loadSettings(DBWHandlerConfiguration configuration) {<NEW_LINE>if (isCertificatesSupported()) {<NEW_LINE>if (caCertPath != null) {<NEW_LINE>caCertPath.setText(CommonUtils.notEmpty(configuration.getStringProperty(SSLHandlerTrustStoreImpl.PROP_SSL_CA_CERT)));<NEW_LINE>}<NEW_LINE>clientCertPath.setText(CommonU...
getStringProperty(SSLHandlerTrustStoreImpl.PROP_SSL_KEYSTORE)));
27,249
public final ILock retrieveLockForOwner(@NonNull final LockOwner lockOwner) {<NEW_LINE>Check.assumeNotNull(lockOwner.<MASK><NEW_LINE>final String sql = "SELECT " + " " + I_T_Lock.COLUMNNAME_IsAutoCleanup + ", COUNT(1) as CountLocked" + " FROM " + I_T_Lock.Table_Name + " WHERE " + " " + I_T_Lock.COLUMNNAME_Owner + "=?" ...
isRealOwner(), "Lock owner shall be real owner but it was {}", lockOwner);
63,952
protected Representation toHtml(StatusInfo status) {<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("<html>\n");<NEW_LINE>sb.append("<head>\n");<NEW_LINE>sb.append(" <title>Status page</title>\n");<NEW_LINE>sb.append("</head>\n");<NEW_LINE>sb.append("<body style=\"font-family: sans-serif;\"...
append(status.getHomeRef());
1,518,320
public void actionPerformed(@NotNull AnActionEvent e) {<NEW_LINE>final AnAction action = ActionManager.getInstance().getAction("ExtractMethod");<NEW_LINE>if (action != null) {<NEW_LINE>final FlutterOutline outline = getWidgetOutline();<NEW_LINE>if (outline != null) {<NEW_LINE>TransactionGuard.submitTransaction(project,...
getCaretModel().moveToOffset(offset);