idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,679,257
public void showFrame() {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>editorAntialiasBox.setSelected(Preferences.getBoolean("editor.smooth"));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>inputMethodBox.setSelected(Preferences.getBoolean("editor.input_method_support"));<NEW_LINE>errorCheckerBox.setSelected(Preferences.getBoolean("pdex.errorC...
(Preferences.getBoolean("run.options.memory"));
676,551
private void createVPM(final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>fileId = addFile(atomicOperation, getFullName());<NEW_LINE>final int sizeOfIntInBytes = Integer.SIZE / 8;<NEW_LINE>numberOfPages = (int) Math.ceil((DEFAULT_VERSION_ARRAY_SIZE * sizeOfIntInBytes * 1.0) / OVersionPage.PAGE_SIZE);...
foundNumberOfPages = getFilledUpTo(atomicOperation, fileId);
710,346
private static Node superTypeHierarchy(@NonNull final DeclaredType type, @NonNull final ClasspathInfo cpInfo, @NonNull final HierarchyFilters filters, final int order) {<NEW_LINE>final TypeElement element = (TypeElement) type.asElement();<NEW_LINE>final TypeMirror superClass = element.getSuperclass();<NEW_LINE>final Li...
> interfaces = element.getInterfaces();
1,380,227
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View v = inflater.inflate(R.layout.layout_drawlines, null);<NEW_LINE>btnRotateLeft = v.findViewById(R.id.btnRotateLeft);<NEW_LINE>btnRotateRight = v.<MASK><NEW_LINE>btnRotateRight.setOnClickListener(this);<NEW_L...
findViewById(R.id.btnRotateRight);
42,280
private static void queryCaches(XmlGenerator gen, Map<String, Map<String, QueryCacheConfig>> queryCaches) {<NEW_LINE>if (queryCaches.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>gen.open("query-caches");<NEW_LINE>for (Map.Entry<String, Map<String, QueryCacheConfig>> entry : queryCaches.entrySet()) {<NEW_LINE><MASK...
String mapName = entry.getKey();
1,492,113
public void processTimeEvent(long timeEventTime) {<NEW_LINE>if (!specification.isEnableMetricsReporting()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>schedule.setTime(timeEventTime);<NEW_LINE>if (!isScheduled) {<NEW_LINE>if (executionContext != null) {<NEW_LINE>scheduleExecutions();<NEW_LINE>isScheduled = true;<NEW_LINE>} ...
metricsExecutor.execute(execution, executionContext);
1,507,832
protected void createSocksGroup(Composite parent) {<NEW_LINE>final Composite composite = UIUtils.createControlGroup(parent, "SOCKS", 4, GridData.FILL_HORIZONTAL, SWT.DEFAULT);<NEW_LINE>// $NON-NLS-2$<NEW_LINE>hostText = UIUtils.createLabelText(<MASK><NEW_LINE>hostText.setLayoutData(new GridData(GridData.FILL_HORIZONTAL...
composite, UIConnectionMessages.dialog_connection_network_socket_label_host, null);
1,447,881
protected void createRemotePack(final AttachSettings settings) {<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE>// NOI18N<NEW_LINE>File tmpDir = new File(System.getProperty("java.io.tmpdir"));<NEW_LINE>chooser.<MAS...
setDialogTitle(Bundle.AttachDialog_RemotePackDialogCaption());
950,460
private Object readValue(ByteBuf buf, int sensorType) {<NEW_LINE>switch(sensorType) {<NEW_LINE>case 0:<NEW_LINE>return false;<NEW_LINE>case 1:<NEW_LINE>return true;<NEW_LINE>case 3:<NEW_LINE>return 0;<NEW_LINE>case 4:<NEW_LINE>return buf.readUnsignedByte();<NEW_LINE>case 5:<NEW_LINE>return buf.readUnsignedShortLE();<NE...
StandardCharsets.US_ASCII).toString();
708,963
private int querySkuDetails(String itemType, Inventory inv, List<String> moreSkus) throws RemoteException, JSONException {<NEW_LINE>logDebug("Querying SKU details.");<NEW_LINE>ArrayList<String> skuList = new ArrayList<>(inv.getAllOwnedSkus(itemType));<NEW_LINE>if (moreSkus != null) {<NEW_LINE>for (String sku : moreSkus...
= new SkuDetails(itemType, thisResponse);
318,001
public Object configure(String json) throws IOException {<NEW_LINE>IDHCPService dhcpService = (IDHCPService) getContext().getAttributes().get(IDHCPService.class.getCanonicalName());<NEW_LINE>if (json == null) {<NEW_LINE>setStatus(org.restlet.data.Status.CLIENT_ERROR_BAD_REQUEST, "One or more required fields missing.");...
leaseGCPeriodNode = jsonNode.get("lease-gc-period");
992,041
public ResponseEntity<Void> updateUserWithHttpInfo(String username, User body) throws RestClientException {<NEW_LINE>Object postBody = body;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the requi...
authNames = new String[] {};
506,493
private List<OsmNodeNamed> readLonlats(final Bundle params) {<NEW_LINE>final List<OsmNodeNamed> wplist = new ArrayList<>();<NEW_LINE>final String lonLats = params.getString("lonlats");<NEW_LINE>if (lonLats == null) {<NEW_LINE>throw new IllegalArgumentException("lonlats parameter not set");<NEW_LINE>}<NEW_LINE>final Str...
) - 1).name = "to";
1,248,667
public IntermediateLayer constructIntermediateLayer(long queryId, UDTFPlan udtfPlan, RawQueryInputLayer rawTimeSeriesInputLayer, Map<Expression, IntermediateLayer> expressionIntermediateLayerMap, Map<Expression, TSDataType> expressionDataTypeMap, LayerMemoryAssigner memoryAssigner) throws QueryProcessException, IOExcep...
, queryId, memoryBudgetInMB, transformer));
745,797
public void updateStatusTypes(List<StatusTypeFilter> statusTypes) {<NEW_LINE>if (this.statusTypeItems == null && statusTypes != null) {<NEW_LINE>statusTypeSeparator = new ViewHolderAdapter(FilterSeparatorView_.build(context).setText(context.getString(<MASK><NEW_LINE>statusTypeSeparator.setViewVisibility(statusTypes.isE...
R.string.navigation_status)));
497,109
public void updateClient(String organizationId, String clientId, UpdateClientBean bean) throws ClientNotFoundException, NotAuthorizedException {<NEW_LINE>securityContext.checkPermissions(PermissionType.clientEdit, organizationId);<NEW_LINE>try {<NEW_LINE>storage.beginTx();<NEW_LINE>ClientBean clientForUpdate = getClien...
setDescription(bean.getDescription());
1,036,272
void createDataChannel(String label, ConstraintsMap config, Result result) {<NEW_LINE>DataChannel.Init init = new DataChannel.Init();<NEW_LINE>if (config != null) {<NEW_LINE>if (config.hasKey("id")) {<NEW_LINE>init.id = config.getInt("id");<NEW_LINE>}<NEW_LINE>if (config.hasKey("ordered")) {<NEW_LINE>init.ordered = con...
success(params.toMap());
1,340,417
public TreePath findNextPathElement(final TreePath irParentPath, final String isName, final int inIndex) {<NEW_LINE>if (!isExpanded(irParentPath)) {<NEW_LINE>expandPath(irParentPath);<NEW_LINE>}<NEW_LINE>TreePath lrTreePath;<NEW_LINE>Timeouts lrTimes <MASK><NEW_LINE>// behavior should be similar to JTreeOperator, so we...
= getTimeouts().cloneThis();
1,229,605
final CreateUserResult executeCreateUser(CreateUserRequest createUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
274,208
private void fillInFunctionDefinition(ExpressionDeserialization defDeserializer, DefinitionProtos.Definition.FunctionData functionProto, FunctionDefinition functionDef) throws DeserializationException {<NEW_LINE>functionDef.setOmegaParameters(functionProto.getOmegaParameterList());<NEW_LINE>functionDef.setLevelParamete...
> recursiveDefIndices = functionProto.getRecursiveDefinitionList();
588,307
public FailedTimeBookingId save(@NonNull final FailedTimeBooking failedTimeBooking) {<NEW_LINE>final Supplier<FailedTimeBookingId> failedIdByExternalIdAndSystemSupplier = () -> getOptionalByExternalIdAndSystem(failedTimeBooking.getExternalSystem(), failedTimeBooking.getExternalId()).map(FailedTimeBooking::getFailedTime...
getExternalSystem().getCode());
489,191
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>HttpServletRequest r = <MASK><NEW_LINE>if (Utils.webSocketEnabled(r)) {<NEW_LINE>int draft = r.getIntHeader("Sec-WebSocket-Version");<NEW_LINE>if (draft < 0) {<NEW_LINE>draft = r.get...
HttpServletRequest.class.cast(request);
358,073
public RuleClass build(RuleClass.Builder builder, RuleDefinitionEnvironment env) {<NEW_LINE>return builder.requiresConfigurationFragments(CppConfiguration.class)./* <!-- #BLAZE_RULE(fdo_prefetch_hints).ATTRIBUTE(profile) --><NEW_LINE>Label of the hints profile. The hints file has the .afdo extension<NEW_LINE>The label ...
FdoPrefetchHintsProvider.class).build();
786,057
public void marshall(User user, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (user == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(user.getUserId(), USERID_BINDING);<NEW_LINE>protocolMarshaller.marshall(...
user.getDisplayName(), DISPLAYNAME_BINDING);
566,254
final AssociateEncryptionConfigResult executeAssociateEncryptionConfig(AssociateEncryptionConfigRequest associateEncryptionConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateEncryptionConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
endClientExecution(awsRequestMetrics, request, response);
191,025
public final WeekDayOperatorContext weekDayOperator() throws RecognitionException {<NEW_LINE>WeekDayOperatorContext _localctx = new WeekDayOperatorContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 452, RULE_weekDayOperator);<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(2983);...
).i = match(IDENT);
346,112
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length != 2) {<NEW_LINE>System.err.println("Usage: YodaQA_GS INPUT.json OUTPUT.TSV");<NEW_LINE>System.err.println("Measures YodaQA performance on some Gold Standard questions.");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>CollectionReaderDesc...
], JSONQuestionReader.PARAM_LANGUAGE, "en");
1,466,089
public CanvasSize estimateViewport() {<NEW_LINE>if (viewport == null) {<NEW_LINE>final int dim = proj.getDimensionality();<NEW_LINE>DoubleMinMax minmaxx = new DoubleMinMax();<NEW_LINE>DoubleMinMax minmaxy = new DoubleMinMax();<NEW_LINE>// Origin<NEW_LINE>final double[] vec = new double[dim];<NEW_LINE>double[] orig = pr...
.put(diag[0]);
1,096,473
public void forget(Xid xid) throws XAException {<NEW_LINE>svLogger.entering(CLASSNAME, "forget", new Object[] { this, ivMC, xid });<NEW_LINE>if (ivXid == null) {<NEW_LINE>// d131094<NEW_LINE>svLogger.info("XAResource.start was never issued; allowing to forget for recovery.");<NEW_LINE>}<NEW_LINE>// For XAResource.forge...
(XAException.XA_RBPROTO), currClass);
632,368
private void initKafkaConsumerPool(ClusterDO clusterDO) {<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>GenericObjectPool<KafkaConsumer<String, String>> objectPool = KAFKA_CONSUMER_POOL.<MASK><NEW_LINE>if (objectPool != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GenericObjectPoolConfig<KafkaConsumer<String, String>> ...
get(clusterDO.getId());
651,791
private void consolidateEntry(final int entryIndex) {<NEW_LINE>int previousVersionIndex = getPreviousVersionIndex(entryIndex);<NEW_LINE>if (previousVersionIndex == 0)<NEW_LINE>return;<NEW_LINE>if (getPreviousVersionIndex(previousVersionIndex) != 0) {<NEW_LINE>throw new IllegalStateException("Encountered Previous Versio...
(entryIndex, (short) 0);
1,534,517
private InputStream openResource(Context context) throws IOException {<NEW_LINE>if (BuildConfig.DEBUG)<NEW_LINE>Log.v(TAG, "Trying to open resources in a package");<NEW_LINE>PackageInfo pi = getPackageInfo(context);<NEW_LINE>if (pi == null) {<NEW_LINE>if (BuildConfig.DEBUG)<NEW_LINE>Log.v(TAG, "No package found");<NEW_...
Resources resources = pkgContext.getResources();
295,372
protected Control createCustomArea(Composite parent) {<NEW_LINE>Composite container = createComposite(parent, new GridLayout(2, false));<NEW_LINE>container.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));<NEW_LINE>createLabel(container, Messages.COMMAND_ID + ":");<NEW_LINE>text = createTextbox(container, ""...
= new ArrayList<Long>();
358,954
protected void startup() {<NEW_LINE>super.startup();<NEW_LINE>View view = getMainView();<NEW_LINE>view.setMenuBar(createMenuBar());<NEW_LINE>view.setToolBar(createToolBar());<NEW_LINE>view.setComponent(createMainPanel());<NEW_LINE>// Build the popup menu.<NEW_LINE>popupMenu = new JPopupMenu() {<NEW_LINE><NEW_LINE>{<NEW...
Rectangle bounds = mainFrame.getBounds();
1,160,470
//<NEW_LINE>// graphics methods<NEW_LINE>//<NEW_LINE>@Override<NEW_LINE>public void paintInstance(InstancePainter painter) {<NEW_LINE>Graphics g = painter.getGraphics();<NEW_LINE>FontMetrics fm = g.getFontMetrics();<NEW_LINE>int asc = fm.getAscent();<NEW_LINE>painter.drawBounds();<NEW_LINE>String s0;<NEW_LINE>String ty...
) / 2 + asc) / 2;
1,428,082
final protected CommandExecutionResult executeArg(SequenceDiagram diagram, LineLocation location, RegexResult arg) throws NoSuchColorException {<NEW_LINE>final String code = arg.get("CODE", 0);<NEW_LINE>if (diagram.participantsContainsKey(code)) {<NEW_LINE>diagram.putParticipantInLast(code);<NEW_LINE>return CommandExec...
boolean stereotypePositionTop = skinParam.stereotypePositionTop();
1,121,404
// Task: parser string with text and show all indexes of all words<NEW_LINE>public static void main(String[] args) {<NEW_LINE>String INPUT_TEXT = "Hello World! Hello All! Hi World!";<NEW_LINE>// Parse text to words and index<NEW_LINE>List<String> words = Arrays.asList(INPUT_TEXT.split(" "));<NEW_LINE>// Create Multimap...
+ multiMap.get("Hello"));
214,370
private void compareByIndex(Node newNode, Node current) {<NEW_LINE>NodeList newnodes = newNode.getChildNodes();<NEW_LINE>NodeList children = current.getChildNodes();<NEW_LINE>int oldTreesize = children.getLength();<NEW_LINE>int newTreesize = newnodes.getLength();<NEW_LINE>int lastEqualIndex = Math.min(oldTreesize, newT...
, false, false), i);
1,603,030
private static boolean startsWithBrace(int ln, StyledDocument document, org.netbeans.modules.editor.indent.spi.Context context, Object[] params, Set<Integer> whitespaces) throws BadLocationException {<NEW_LINE>int start = NbDocument.findLineOffset(document, ln);<NEW_LINE>int end = document.getLength();<NEW_LINE>try {<N...
nlIdx = id.indexOf("\n");
1,826,390
private JsMessage addLinkProps(JsMessage msg) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "addLinkProps");<NEW_LINE>// Add Link specific properties to message<NEW_LINE>msg.setGuaranteedCrossBusLinkName(linkName);<NEW_LINE>msg.setGuaranteedCrossBusSourceBusUUID(me...
LinkHandler) destinationHandler).getOutboundUserid();
1,809,283
private com.netflix.genie.proto.JobMetadata toJobMetadataProto(final AgentJobRequest jobRequest) throws GenieConversionException {<NEW_LINE>final JobMetadata jobMetadata = jobRequest.getMetadata();<NEW_LINE>final ExecutionEnvironment jobResources = jobRequest.getResources();<NEW_LINE>final com.netflix.genie.proto.JobMe...
setName(jobMetadata.getName());
804,756
public static void convolve(Kernel2D_F32 kernel, GrayF32 src, GrayF32 dest) {<NEW_LINE>final float[] dataKernel = kernel.data;<NEW_LINE>final float[] dataSrc = src.data;<NEW_LINE>final float[] dataDst = dest.data;<NEW_LINE>final <MASK><NEW_LINE>final int height = src.getHeight();<NEW_LINE>int offsetL = kernel.offset;<N...
int width = src.getWidth();
691,682
public static ListRolesResponse unmarshall(ListRolesResponse listRolesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRolesResponse.setRequestId(_ctx.stringValue("ListRolesResponse.RequestId"));<NEW_LINE>listRolesResponse.setPageSize<MASK><NEW_LINE>listRolesResponse.setTotalCount(_ctx.integerValue("ListRolesResponse...
(_ctx.integerValue("ListRolesResponse.PageSize"));
1,720,880
public void run(RegressionEnvironment env) {<NEW_LINE>SupportBeanCombinedProps combined = SupportBeanCombinedProps.makeDefaultBean();<NEW_LINE>SupportBeanComplexProps complex = SupportBeanComplexProps.makeDefaultBean();<NEW_LINE>assertEquals("0ma0", combined.getIndexed(0).getMapped("0ma").getValue());<NEW_LINE>String e...
, theEvent.get("nested.nested"));
1,771,858
public static DescribeDeletedInstancesResponse unmarshall(DescribeDeletedInstancesResponse describeDeletedInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDeletedInstancesResponse.setRequestId(_ctx.stringValue("DescribeDeletedInstancesResponse.RequestId"));<NEW_LINE>describeDeletedInstancesResponse.setTo...
("DescribeDeletedInstancesResponse.Instances[" + i + "].ModuleStackVersion"));
1,682,198
protected boolean doGeneric(JSDynamicObject proxy, Object key, @Cached("createBinaryProfile()") ConditionProfile trapFunProfile) {<NEW_LINE>assert JSProxy.isJSProxy(proxy);<NEW_LINE>Object propertyKey = toPropertyKeyNode.execute(key);<NEW_LINE>JSDynamicObject handler = JSProxy.getHandlerChecked(proxy, errorBranch);<NEW...
Errors.createTypeError("Proxy can't successfully access a non-writable, non-configurable property", this);
526,386
public boolean updateGpsFiltersConfig(@NonNull GpxDataItem item, @NonNull FilteredSelectedGpxFile selectedGpxFile) {<NEW_LINE>SQLiteConnection db = openConnection(false);<NEW_LINE>if (db != null) {<NEW_LINE>try {<NEW_LINE>double smoothingThreshold = selectedGpxFile.getSmoothingFilter().getSelectedMaxValue();<NEW_LINE>d...
.getSpeedFilter().getSelectedMaxValue();
282,110
final ListPartsResult executeListParts(ListPartsRequest listPartsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPartsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,049,575
private static SpanContext extractContextFromTraceParent(String traceparent) {<NEW_LINE>// TODO(bdrutu): Do we need to verify that version is hex and that<NEW_LINE>// for the version the length is the expected one?<NEW_LINE>boolean isValid = (traceparent.length() == TRACEPARENT_HEADER_SIZE || (traceparent.length() > TR...
.byteFromBase16(firstTraceFlagsChar, secondTraceFlagsChar));
53,213
public Response harvestingClient(@PathParam("nickName") String nickName, @QueryParam("key") String apiKey) throws IOException {<NEW_LINE>HarvestingClient harvestingClient = null;<NEW_LINE>try {<NEW_LINE>harvestingClient = harvestingClientService.findByNickname(nickName);<NEW_LINE>} catch (Exception ex) {<NEW_LINE>logge...
retrievedHarvestingClient.getName() + " with the GetHarvestingClient command.");
1,461,894
private static void generateGetMsg(StringBuilder pysb, Class<?> clazz) {<NEW_LINE>String actionName = populateActionName(clazz);<NEW_LINE>pysb.append(String.format("\n\nclass %s(inventory.%s):", actionName, clazz.getSimpleName()));<NEW_LINE>pysb.append(String.format("\n%sdef __init__(self):", whiteSpace(4)));<NEW_LINE>...
"\n%sself.out = None", whiteSpace(8)));
998,501
private void drawTextHelper(final StringStyle line, PointDouble p, AlignHorizontal align, double fontSize) {<NEW_LINE>ctxSetFont(fontSize, line);<NEW_LINE>String textToDraw = line.getStringWithoutMarkup();<NEW_LINE>if (textToDraw == null || textToDraw.isEmpty()) {<NEW_LINE>// if nothing should be drawn return (some bro...
, p.y + vDist));
487,822
public final List findByRowKeys(Class entityClass, List<String> relationNames, boolean isWrapReq, EntityMetadata metadata, Object... rowIds) {<NEW_LINE>List entities = null;<NEW_LINE>MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(metadata.getPersistenceUnit());<NEW_LINE>...
AbstractManagedType) entityType).getSubManagedType();
1,596,091
public static Value RandomSetOfSubsets(final Value v1, final Value v2, final Value v3) {<NEW_LINE>// first parameter<NEW_LINE>if (!(v1 instanceof IntValue)) {<NEW_LINE>throw new EvalException(EC.TLC_MODULE_ARGUMENT_ERROR, new String[] { "first", "RandomSetOfSubsets", "nonnegative integer", Values.ppr(v1.toString()) });...
Integer.toString(numberOfPicks) });
558,162
private List<InputValueDefinition> createInputValueDefinitions(JSGraphQLEndpointArgumentsDefinition argumentsDefinition, List<GraphQLException> errors) {<NEW_LINE>if (argumentsDefinition != null && argumentsDefinition.getInputValueDefinitions() != null) {<NEW_LINE>final List<InputValueDefinition> result = Lists.newArra...
final Type type = createType(psiCompositeType);
468,571
private int addLeases(List<VirtualMachineLease> leases) {<NEW_LINE>if (logger.isDebugEnabled())<NEW_LINE>logger.debug("Adding leases");<NEW_LINE>for (AssignableVirtualMachine avm : vmCollection.getAllVMs<MASK><NEW_LINE>int rejected = 0;<NEW_LINE>for (VirtualMachineLease l : leases) {<NEW_LINE>if (vmCollection.addLease(...
()) avm.resetResources();
884,035
public static void vertical(Kernel1D_F64 kernel, GrayF64 input, GrayF64 output) {<NEW_LINE>final double[] dataSrc = input.data;<NEW_LINE>final double[] dataDst = output.data;<NEW_LINE>final double[] dataKer = kernel.data;<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int offsetL = kernel.getOffset(...
int imgWidth = output.getWidth();
1,201,693
private Map<Long, Set<String>> separateClustersByOrg(Set<Long> orgIds) {<NEW_LINE>XpipeMeta xpipeMeta = metaCache.getXpipeMeta();<NEW_LINE>if (null == xpipeMeta)<NEW_LINE>return null;<NEW_LINE>Map<Long, Set<String>> clustersByOrg = new HashMap<<MASK><NEW_LINE>orgIds.forEach(orgId -> clustersByOrg.put(orgId, new HashSet...
>(orgIds.size());
390,168
public View createTabView(ViewGroup container, int position, PagerAdapter adapter) {<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(container.getContext());<NEW_LINE>Resources res = container.getContext().getResources();<NEW_LINE>View tab = inflater.inflate(R.layout.custom_tab_icon_and_notification_mark, contai...
findViewById(R.id.custom_tab_notification_mark);
974,931
private byte[] encryptPassword(String pwd) {<NEW_LINE>// Changed to handle non ascii passwords<NEW_LINE>if (pwd == null)<NEW_LINE>pwd = "";<NEW_LINE>int len = pwd.length();<NEW_LINE>byte[] data = new byte[len * 2];<NEW_LINE>for (int i1 = 0; i1 < len; i1++) {<NEW_LINE>int j1 = pwd.charAt(i1) ^ 0x5a5a;<NEW_LINE>j1 = (j1 ...
j1 & 0xFF00) >> 8);
758,816
SecurityDomainBuildItem build(ElytronRecorder recorder, List<SecurityRealmBuildItem> realms) throws Exception {<NEW_LINE>if (realms.size() > 0) {<NEW_LINE>// Configure the SecurityDomain.Builder from the main realm<NEW_LINE>SecurityRealmBuildItem realmBuildItem = realms.get(0);<NEW_LINE>RuntimeValue<SecurityDomain.Buil...
realmBuildItem.getName(), realm);
315,849
public static String compileQuery(FAFQueryMethodForge query, String classPostfix, CompilerAbstractionClassCollection compilerState, ModuleCompileTimeServices compileTimeServices, CompilerPath path) throws StatementSpecCompileException {<NEW_LINE>String statementFieldsClassName = CodeGenerationIDGenerator.generateClassN...
).removeFrom(compilerState::remove);
339,382
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.fasterxml.jackson.databind.ser.std.StdSerializer#serialize(java.lang.Object, com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.databind.SerializerProvider)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>@SuppressWarnings("null")<NEW_LINE>public void serialize(Links...
relation = transformingMapper.map(rel);
1,475,393
public boolean isValid(final String value) throws ValidationException {<NEW_LINE>if (selectValues == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Set<String> <MASK><NEW_LINE>if (value.indexOf(',') > 0) {<NEW_LINE>Stream<String> stream = Arrays.stream(value.split(", *"));<NEW_LINE>propvalset.addAll(stream.map(new F...
propvalset = new HashSet<>();
1,593,573
private void acquireEventTickets(PaymentProxy paymentProxy, String reservationId, PurchaseContext purchaseContext, Event event) {<NEW_LINE>TicketStatus ticketStatus = paymentProxy.isDeskPaymentRequired() ? TicketStatus.TO_BE_PAID : TicketStatus.ACQUIRED;<NEW_LINE>AdditionalServiceItemStatus asStatus = paymentProxy.isDe...
, Function.identity()));
16,466
final OptionGroup executeCreateOptionGroup(CreateOptionGroupRequest createOptionGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createOptionGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Fie...
invoke(request, responseHandler, executionContext);
1,831,988
private static void outputConfigurationToLog(final PwmApplication pwmApplication) {<NEW_LINE>final Instant startTime = Instant.now();<NEW_LINE>final Function<Map.Entry<String, String>, String> valueFormatter = entry -> {<NEW_LINE>final String spacedValue = entry.getValue().replace("\n", "\n ");<NEW_LINE>return " " + ...
LOGGER::trace).count();
167,484
public JavaFileObject createFileObject(@NonNull final Location location, @NonNull final File file, @NonNull final File root, @NullAllowed final JavaFileFilterImplementation filter, @NullAllowed final Charset encoding) {<NEW_LINE>final String[] pkgNamePair = FileObjects.getFolderAndBaseName(FileObjects.getRelativePath(r...
addFile(location, pname, cfo);
658,057
public AbstractIntegrationMessageBuilder<T> popSequenceDetails() {<NEW_LINE>List<List<Object>> incomingSequenceDetails = getSequenceDetails();<NEW_LINE>if (incomingSequenceDetails == null) {<NEW_LINE>return this;<NEW_LINE>} else {<NEW_LINE>incomingSequenceDetails = new ArrayList<>(incomingSequenceDetails);<NEW_LINE>}<N...
setHeader(IntegrationMessageHeaderAccessor.SEQUENCE_DETAILS, incomingSequenceDetails);
140,035
private static boolean hasFillerValue(Type type, List<Type> unanalyzedTypes) {<NEW_LINE>if (type == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>int typeTag = type.getTag();<NEW_LINE>if (TypeTags.isXMLTypeTag(typeTag)) {<NEW_LINE>return typeTag == TypeTags.XML_TAG || typeTag == TypeTags.XML_TEXT_TAG;<NEW_LINE>}<NE...
return checkFillerValue((BObjectType) type);
100,559
public synchronized JSONObject startEatingSnake(final String userId) {<NEW_LINE>final JSONObject ret = new JSONObject().put(Keys.CODE, StatusCodes.ERR);<NEW_LINE>final int startPoint = pointtransferRepository.getActivityEatingSnakeAvg(userId);<NEW_LINE>final boolean succ = null != pointtransferMgmtService.transfer(user...
put(Keys.MSG, msg);
1,426,856
private DataSet generateDataSet(int batchSize) {<NEW_LINE>int w = (int) originalImage.getWidth();<NEW_LINE>int h = (int) originalImage.getHeight();<NEW_LINE>PixelReader reader = originalImage.getPixelReader();<NEW_LINE>INDArray xy = Nd4j.zeros(batchSize, 2);<NEW_LINE>INDArray out = Nd4j.zeros(batchSize, 3);<NEW_LINE>fo...
0, c.getRed());
493,730
public static void validateSettings(Settings settings) {<NEW_LINE>// wan means all node restrictions are off the table<NEW_LINE>if (settings.getNodesWANOnly()) {<NEW_LINE>Assert.isTrue(!settings.getNodesDiscovery(), "Discovery cannot be enabled when running in WAN mode");<NEW_LINE>Assert.isTrue(!<MASK><NEW_LINE>Assert....
settings.getNodesClientOnly(), "Client-only nodes cannot be enabled when running in WAN mode");
1,696,120
private void testSynthesizeFromDatagrams(LinkedList<HnmDatagram> datagrams, int startIndex, int endIndex, DataOutputStream output) throws IOException {<NEW_LINE>HntmSynthesizer s = new HntmSynthesizer();<NEW_LINE>// TODO: These should come from timeline and user choices...<NEW_LINE>HntmAnalyzerParams hnmAnalysisParams ...
int samplingRateInHz = this.getSampleRate();
1,662,987
private OnHeapValueHolder<V> newUpdateValueHolder(K key, OnHeapValueHolder<V> oldValue, V newValue, long now, StoreEventSink<K, V> eventSink) {<NEW_LINE>Objects.requireNonNull(oldValue);<NEW_LINE>Objects.requireNonNull(newValue);<NEW_LINE>Duration duration = strategy.getUpdateDuration(key, oldValue, newValue);<NEW_LINE...
eventSink.removed(key, oldValue);
1,597,616
private ImmutableList<DocumentLayoutElementGroupDescriptor.Builder> createLayoutElemementTab(@NonNull final DataEntrySection dataEntrySection) {<NEW_LINE>final int columnCount = dataEntrySection.getLines().stream().map(DataEntryLine::getFields).map(Collection::size).max(Comparator.naturalOrder<MASK><NEW_LINE>final Immu...
()).orElse(0);
798,777
public void execute() throws BuildException {<NEW_LINE>DownloadXml downloadXml = this.parseDownloadXml();<NEW_LINE>// If we weren't supplied a download xml file then exit now<NEW_LINE>if (downloadXml == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DownloadItem downloadItem = new DownloadItem();<NEW_LINE>downloadItem.se...
downloadItem.setProductInstallType(this.installType);
1,504,851
public XContentBuilder toXContentEmbedded(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>if (seqNo != UNASSIGNED_SEQ_NO) {<NEW_LINE>// seqNo may not be assigned if read from an old node<NEW_LINE>builder.field(_SEQ_NO, seqNo);<NEW_LINE>builder.field(_PRIMARY_TERM, primaryTerm);<NEW_LINE>}<NEW_LINE...
builder.field(FOUND, exists);
40,214
public final void moduleName() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST moduleName_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case CONSTANT:<NEW_LINE>{<NEW_LINE>AST tmp379_AST = null;<NEW_LINE>tmp379_AST = astFactory.crea...
astFactory.makeASTRoot(currentAST, tmp384_AST);
1,714,884
public void marshall(ExportJobProperties exportJobProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (exportJobProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(exportJobProperties.getJobI...
exportJobProperties.getSubmitTime(), SUBMITTIME_BINDING);
1,142,856
public static void response(ByteString stmt, ServerConnection c, int offset, boolean hasMore) {<NEW_LINE>List<SQLStatement> stmtList = FastsqlUtils.parseSql(stmt);<NEW_LINE>if (stmtList.size() != 1) {<NEW_LINE>c.writeErrMessage(ErrorCode.ERR_HANDLE_DATA, "dose not support multi statement in flush tables");<NEW_LINE>ret...
OkPacket.OK_WITH_MORE : OkPacket.OK);
415,260
private void insertIntoDatabaseInTrx(final List<ImpDataLine> lines) {<NEW_LINE>final SqlAndParamsExtractor<ImpDataLine> sqlAndParamsExtractor = getInsertIntoImportTableSql();<NEW_LINE>final String sql = sqlAndParamsExtractor.getSql();<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>final ResultSet rs = null;<NEW_LINE...
()).build());
1,350,211
// Non-static to support DI.<NEW_LINE>@SuppressWarnings("MethodMayBeStatic")<NEW_LINE>public long parse(final String text) {<NEW_LINE>final String date;<NEW_LINE>final String time;<NEW_LINE>final String timezone;<NEW_LINE>if (text.contains("T")) {<NEW_LINE>date = text.substring(0, text.indexOf('T'));<NEW_LINE>final Str...
- timezone.length()));
1,084,272
private Dll closestDll(Edb edb, long address) throws IOException {<NEW_LINE>Dll closestDll = null;<NEW_LINE>long closestDist = Long.MAX_VALUE;<NEW_LINE>for (Dll dll = edb.getFirstDll(); dll != null; dll = dll.getNext()) {<NEW_LINE>final DllFunction[] f = dll.getFunctions();<NEW_LINE>for (int i = 0; i < f.length; ++i) {...
[i].address - address);
1,191,170
public void sendHttpRequest(final HttpRequest httpRequest, final HttpResponseListener httpResultListener) {<NEW_LINE>if (httpRequest.getUrl() == null) {<NEW_LINE>httpResultListener.failed(new GdxRuntimeException("can't process a HTTP request without URL set"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String method =...
method.equals(HttpMethods.PUT);
1,547,111
public DescribeMovingAddressesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeMovingAddressesResult describeMovingAddressesResult = new DescribeMovingAddressesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>i...
().unmarshall(context));
581,606
private Map<String, List<Token>> readSimpleDict() throws IOException {<NEW_LINE>Map<String, List<Token>> dict = new HashMap<String, List<Token>>();<NEW_LINE>int length = read(<MASK><NEW_LINE>read(Token.NAME, "dict");<NEW_LINE>readMaybe(Token.NAME, "dup");<NEW_LINE>read(Token.NAME, "begin");<NEW_LINE>for (int i = 0; i <...
Token.INTEGER).intValue();
902,332
private HoodieLogBlock createCorruptBlock() throws IOException {<NEW_LINE>LOG.info("Log " + logFile + <MASK><NEW_LINE>long currentPos = inputStream.getPos();<NEW_LINE>long nextBlockOffset = scanForNextAvailableBlockOffset();<NEW_LINE>// Rewind to the initial start and read corrupted bytes till the nextBlockOffset<NEW_L...
" has a corrupted block at " + inputStream.getPos());
258,348
public static String resetPassword(Main main, String token, String password) throws ResetPasswordInvalidTokenException, NoSuchAlgorithmException, StorageQueryException, StorageTransactionLogicException {<NEW_LINE>String hashedToken = Utils.hashSHA256(token);<NEW_LINE>String hashedPassword = PasswordHashing.getInstance(...
storage.deleteAllPasswordResetTokensForUser_Transaction(con, userId);
135,442
private static File downLoadEnv(MLContext MLContext) throws IOException {<NEW_LINE>Path remote = new Path(MLContext.getEnvPath());<NEW_LINE>FileSystem fs = remote.getFileSystem(new Configuration());<NEW_LINE>// virtual env is shared across jobs, so we can't use mlContext's temp dir here<NEW_LINE>File tmp = Files.create...
, LOG::info), "Failed to unzip virtual env");
848,044
public void initGui() {<NEW_LINE>super.initGui();<NEW_LINE>Keyboard.enableRepeatEvents(true);<NEW_LINE>optionRotate = new GuiBetterButton(0, guiLeft + 5, <MASK><NEW_LINE>buttonList.add(optionRotate);<NEW_LINE>optionExcavate = new GuiBetterButton(1, guiLeft + 5, guiTop + 55, 79, "");<NEW_LINE>buttonList.add(optionExcava...
guiTop + 30, 79, "");
315,929
public void create(final ConnectorRequestContext context, final DatabaseInfo databaseInfo) {<NEW_LINE>final QualifiedName name = databaseInfo.getName();<NEW_LINE>final String createdBy = PolarisUtils.getUserOrDefault(context);<NEW_LINE>// check exists then create in non-transactional optimistic manner<NEW_LINE>if (exis...
throw new InvalidMetaException(name, exception);
100,655
protected Pattern predefinedToPattern(YamlContract.PredefinedRegex predefinedRegex) {<NEW_LINE>switch(predefinedRegex) {<NEW_LINE>case only_alpha_unicode:<NEW_LINE>return RegexPatterns.onlyAlphaUnicode().getPattern();<NEW_LINE>case number:<NEW_LINE>return RegexPatterns.number().getPattern();<NEW_LINE>case any_double:<N...
.email().getPattern();
1,069,673
public DeleteRelationalDatabaseResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteRelationalDatabaseResult deleteRelationalDatabaseResult = new DeleteRelationalDatabaseResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
JsonToken token = context.getCurrentToken();
1,158,624
public int maxPoints(int[][] points) {<NEW_LINE>int n = points.length;<NEW_LINE>if (n < 3) {<NEW_LINE>return n;<NEW_LINE>}<NEW_LINE>int res = 0;<NEW_LINE>for (int i = 0; i < n - 1; ++i) {<NEW_LINE>Map<String, Integer> kCounter = new HashMap<>();<NEW_LINE>int max = 0;<NEW_LINE>int duplicate = 0;<NEW_LINE>for (int j = i ...
- points[j][1];
1,814,144
public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> objs, List<ModelMap> allModels) {<NEW_LINE>objs = super.postProcessOperationsWithModels(objs, allModels);<NEW_LINE>Map<String, Object> operations = (Map<String, Object>) objs.get("operations");<NEW_LINE>HashMap<String, CodegenModel> modelMap...
(p, modelMaps, processedModelMaps));
293,410
private Map<String, Map<String, List<String>>> buildAlertLinks(Map<String, StorageAlertInfo> alertInfos, String type) {<NEW_LINE>Map<String, Map<String, List<String>>> links = new LinkedHashMap<String, Map<String, List<String>>>();<NEW_LINE>String format = m_storageGroupConfigManager.queryLinkFormat(type);<NEW_LINE>if ...
buildUrl(format, id, ip);
1,382,778
final RevokeSecurityGroupEgressResult executeRevokeSecurityGroupEgress(RevokeSecurityGroupEgressRequest revokeSecurityGroupEgressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(revokeSecurityGroupEgressRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
endClientExecution(awsRequestMetrics, request, response);
1,283,556
final StartDeploymentResult executeStartDeployment(StartDeploymentRequest startDeploymentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startDeploymentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "StartDeployment");
1,348,256
private void writeRelationFiles(String festivalUtt) throws IOException {<NEW_LINE>BufferedReader buf = new BufferedReader(new StringReader(festivalUtt));<NEW_LINE>String line;<NEW_LINE>String relation = null;<NEW_LINE>PrintWriter pw = null;<NEW_LINE>while ((line = buf.readLine()) != null) {<NEW_LINE>if (line.startsWith...
"mary." + relation), "ISO-8859-15"));