idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
77,157
public static GlassFishVersion toValue(@NonNull final String versionStr) {<NEW_LINE>Parameters.notNull("versionStr", versionStr);<NEW_LINE>GlassFishVersion version = stringValuesMap.get(versionStr.toUpperCase(Locale.ENGLISH));<NEW_LINE>if (version == null) {<NEW_LINE>List<Integer> versionNumbers = new ArrayList<>(4);<N...
GlassFishVersion[] candidates = values();
1,373,511
private void processNestedGenerics(DetailAST ast, int[] line, int after) {<NEW_LINE>// In a nested Generic type, so can only be a '>' or ',' or '&'<NEW_LINE>// In case of several extends definitions:<NEW_LINE>//<NEW_LINE>// class IntEnumValueType<E extends Enum<E> & IntEnum><NEW_LINE>// ^<NEW_LINE>// should be whitespa...
log(ast, MSG_WS_NOT_PRECEDED, "&");
916,559
public Object calculate(Context ctx) {<NEW_LINE>Object fo = null;<NEW_LINE>String distribute = null;<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("create" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>fo = para...
+ mm.getMessage("function.paramTypeError"));
1,814,710
public void writeMetrics(MetricQueryResults metricQueryResults) throws Exception {<NEW_LINE>final long metricTimestamp = System.currentTimeMillis() / 1000L;<NEW_LINE>Socket socket = new Socket(InetAddress<MASK><NEW_LINE>BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream(), charset)...
.getByName(address), port);
104,945
private void loadOptionsConfig() throws TemplateModelException {<NEW_LINE>final <MASK><NEW_LINE>final String context = optionService.isEnabledAbsolutePath() ? blogBaseUrl + "/" : "/";<NEW_LINE>configuration.setSharedVariable("options", optionService.listOptions());<NEW_LINE>configuration.setSharedVariable("context", co...
String blogBaseUrl = optionService.getBlogBaseUrl();
730,086
/*<NEW_LINE>* Recursively builds each of the intermediate BDD nodes in the<NEW_LINE>* graphviz DOT format.<NEW_LINE>*/<NEW_LINE>private void dotRec(StringBuilder sb, BDD bdd, Set<BDD> visited) {<NEW_LINE>if (bdd.isOne() || bdd.isZero() || visited.contains(bdd)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int val = dotId(bdd...
(valLow).append("[style=dotted]\n");
526,637
public static int BoyerMooreHorspoolSearch(char[] pattern, char[] text) {<NEW_LINE>int[] shift = new int[256];<NEW_LINE>for (int k = 0; k < 256; k++) {<NEW_LINE>shift[k] = pattern.length;<NEW_LINE>}<NEW_LINE>for (int k = 0; k < pattern.length - 1; k++) {<NEW_LINE>shift[pattern[k]] = pattern.length - 1 - k;<NEW_LINE>}<N...
+ pattern.length - 1]];
1,352,477
public void onEvent(FlowableEvent event) {<NEW_LINE>if (isValidEvent(event)) {<NEW_LINE>Object delegate = DelegateExpressionUtil.resolveDelegateExpression<MASK><NEW_LINE>if (delegate instanceof FlowableEventListener) {<NEW_LINE>// Cache result of isFailOnException() from delegate-instance until next<NEW_LINE>// event i...
(expression, new NoExecutionVariableScope());
1,747,101
private void migrateFieldValue(Helper helper) {<NEW_LINE>final String type = helper.parameters().getString("type");<NEW_LINE>final String field = helper.parameters().getString("field");<NEW_LINE>final String seriesId = helper.newSeriesId();<NEW_LINE>final AggregationSeries.Builder aggregationSeriesBuilder = Aggregation...
aggregationSeriesBuilder.function(AggregationFunction.STDDEV);
130,780
protected void validateFieldDeclarationsForDmn(org.flowable.bpmn.model.Process process, TaskWithFieldExtensions task, List<FieldExtension> fieldExtensions, List<ValidationError> errors) {<NEW_LINE>boolean keyDefined = false;<NEW_LINE>for (FieldExtension fieldExtension : fieldExtensions) {<NEW_LINE>String fieldName = fi...
String fieldValue = fieldExtension.getStringValue();
960,939
public void serialize(final ProcessTask value, final JsonGenerator jsonGenerator, final SerializerProvider provider) throws IOException {<NEW_LINE>final ObjectNode object = OBJECT_MAPPER.createObjectNode();<NEW_LINE>object.put("inputType", this.model.writeObjectAsObjectNode(value.getInputPluginType()));<NEW_LINE>object...
(value.getFilterPluginTypes()));
468,641
public static JSONObject channelSign(JSONObject commentBody, String channelId, String channelName) throws ApiCallException, JSONException {<NEW_LINE>byte[] commentBodyBytes = commentBody.getString("comment").getBytes(StandardCharsets.UTF_8);<NEW_LINE>String encodedCommentBody;<NEW_LINE>if (Build.VERSION.SDK_INT > Build...
= new HashMap<>(3);
18,094
public void write(OutputStream out) throws IOException {<NEW_LINE>try {<NEW_LINE>CMSSignedDataStreamGenerator gen = getGenerator();<NEW_LINE>OutputStream signingStream = <MASK><NEW_LINE>if (content != null) {<NEW_LINE>if (!encapsulate) {<NEW_LINE>writeBodyPart(signingStream, content);<NEW_LINE>} else {<NEW_LINE>Command...
gen.open(out, encapsulate);
224,978
private void readPrefixedNameOrKeyword(Token token) {<NEW_LINE>long posn = reader.getPosition();<NEW_LINE>// Prefix part or keyword<NEW_LINE>String prefixPart = readPrefixPart();<NEW_LINE>token.setImage(prefixPart);<NEW_LINE>token.setType(TokenType.KEYWORD);<NEW_LINE>int ch = reader.peekChar();<NEW_LINE>if (ch == CH_CO...
token.setType(TokenType.PREFIXED_NAME);
1,486,960
public JSONObject toJSONObject() {<NEW_LINE>final Map<String, String> clientMap = new HashMap<String, String>();<NEW_LINE>clientMap.put("app_package_name", appPackageName);<NEW_LINE>clientMap.put("app_title", appTitle);<NEW_LINE>clientMap.put("app_version_name", appVersionName);<NEW_LINE>clientMap.put("app_version_code...
JSONObject clientObj = new JSONObject(clientMap);
416,506
public void filterWsdlRequest(SubmitContext context, WsdlRequest wsdlRequest) {<NEW_LINE>HttpRequest postMethod = (HttpRequest) context.getProperty(BaseHttpRequestTransport.HTTP_METHOD);<NEW_LINE>WsdlInterface wsdlInterface = (WsdlInterface) wsdlRequest<MASK><NEW_LINE>// init content-type and encoding<NEW_LINE>String e...
.getOperation().getInterface();
327,322
public static BigDecimal avg(final Iterable<? extends Number> target) {<NEW_LINE>Validate.notNull(target, "Cannot aggregate on null");<NEW_LINE>Validate.containsNoNulls(target, "Cannot aggregate on array containing nulls");<NEW_LINE>BigDecimal total = BigDecimal.ZERO;<NEW_LINE>int size = 0;<NEW_LINE>for (final Number e...
divisor = BigDecimal.valueOf(size);
110,331
public <T extends AcceptingVisitor> void visit(String key, AttrObject<T> attr) {<NEW_LINE>if (map.containsKey(key)) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Map<String, Object> submap = safeCast(this.map.remove(key), key, Map.class);<NEW_LINE>if (submap == null) {<NEW_LINE>attr.set(null);<NEW_LINE>} else {<NE...
= new LinkedHashMap<>(submap);
1,550,491
private void constructCommandLineOptions() {<NEW_LINE>Option helpOption = OptionBuilder.withLongOpt(HELP_OPT_LONG_NAME).withDescription("Prints command-line options info").create(HELP_OPT_CHAR);<NEW_LINE>Option schemaRegistryLocation = OptionBuilder.withLongOpt(SCHEMA_REGISTRY_LOCATION_LONG_STR).withDescription("Absolu...
hasArg().create(DB_URI_OPT_CHAR);
1,684,909
public String createDocument(final String repositoryId, final Properties properties, final String folderId, final ContentStream contentStream, final VersioningState versioningState, final List<String> policies, final Acl addAces, final Acl removeAces, final ExtensionsData extension) {<NEW_LINE>final App app = StructrAp...
BaseTypeId.CMIS_DOCUMENT, File.class);
1,078,321
final DeleteAddonResult executeDeleteAddon(DeleteAddonRequest deleteAddonRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAddonRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,145,013
public static GetQualityResultResponse unmarshall(GetQualityResultResponse getQualityResultResponse, UnmarshallerContext _ctx) {<NEW_LINE>getQualityResultResponse.setRequestId(_ctx.stringValue("GetQualityResultResponse.RequestId"));<NEW_LINE>getQualityResultResponse.setMessage(_ctx.stringValue("GetQualityResultResponse...
("GetQualityResultResponse.Data.QualityResultResponseList[" + i + "].RuleId"));
1,785,843
public void considerBest(final SAMRecord firstEnd, final SAMRecord secondEnd) {<NEW_LINE>final int thisPairMapq = SAMUtils.combineMapqs(firstEnd.getMappingQuality(<MASK><NEW_LINE>final int thisDistance = CoordMath.getLength(Math.min(firstEnd.getAlignmentStart(), secondEnd.getAlignmentStart()), Math.max(firstEnd.getAlig...
), secondEnd.getMappingQuality());
441,915
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>if (System.getProperty(WebKeys.OSGI_ENABLED) == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String cmd = request.getParameter("cmd");<NEW_LINE>java.lang.reflect.Method meth = null;<NEW_LINE>Cla...
getCause().getMessage());
1,753,369
static // }<NEW_LINE>boolean ExtractResourceName(String str, Ref<String> out_package, Ref<String> out_type, final Ref<String> out_entry) {<NEW_LINE>out_package.set("");<NEW_LINE>out_type.set("");<NEW_LINE>boolean has_package_separator = false;<NEW_LINE>boolean has_type_separator = false;<NEW_LINE>int start = 0;<NEW_LIN...
.substring(start, current));
319,591
private int componentSize(BytesStreamOutput scratchBuffer) throws IOException {<NEW_LINE>scratchBuffer.reset();<NEW_LINE>if (component.type == ShapeField.DecodedTriangle.TYPE.POINT) {<NEW_LINE>scratchBuffer.writeVLong((long) maxX - component.aX);<NEW_LINE>scratchBuffer.writeVLong((long) maxY - component.aY);<NEW_LINE>}...
long) maxY - component.bY);
1,543,906
void assembleMessageParameters() {<NEW_LINE>final ByteBuffer paramsBuffer;<NEW_LINE>LOG.info("Element address: " + MeshAddress.formatAddress(elementAddress, true));<NEW_LINE>LOG.info("Model: " + CompositionDataParser.formatModelIdentifier(modelIdentifier, false));<NEW_LINE>// We check if the model identifier value is w...
.put(modelIdentifier[0]);
1,186,858
public void confirmOfflinePayment(Event event, String reservationId, String username) {<NEW_LINE>TicketReservation ticketReservation = findById(reservationId).orElseThrow(IllegalArgumentException::new);<NEW_LINE>ticketReservationRepository.lockReservationForUpdate(reservationId);<NEW_LINE>Validate.isTrue(ticketReservat...
RESERVATION, ticketReservation.getId());
126,346
private boolean processUninstalledInstallerBundle(long installerBundleId) {<NEW_LINE>// find out if the uninstalled bundle ID was an installer bundle and remove its installees as well<NEW_LINE>Set<Long> bundleIdsToUninstall;<NEW_LINE>boolean tracked;<NEW_LINE>synchronized (bundleOrigins) {<NEW_LINE><MASK><NEW_LINE>// u...
bundleIdsToUninstall = bundleOrigins.remove(installerBundleId);
547,506
public void onDataChange(DataSnapshot snapshot) {<NEW_LINE>if (snapshot.exists()) {<NEW_LINE>try {<NEW_LINE>// Replace the URL with the url of your own listener app.<NEW_LINE>URL dest = new URL("http://gae-firebase-listener-python.appspot.com/log");<NEW_LINE>HttpURLConnection connection = (HttpURLConnection) dest.openC...
"Unable to convert Firebase response to JSON: " + e.getMessage());
1,378,960
final DisassociateEnvironmentOperationsRoleResult executeDisassociateEnvironmentOperationsRole(DisassociateEnvironmentOperationsRoleRequest disassociateEnvironmentOperationsRoleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateEnvironmentOperationsRoleRequest);<NEW_LINE>AWSReque...
(super.beforeMarshalling(disassociateEnvironmentOperationsRoleRequest));
1,823,755
public com.squareup.okhttp.Call apisApiIdGetCall(String apiId, String tenantDomain, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map vari...
localVarHeaderParams.put("Accept", localVarAccept);
130,880
public CreateAppInstanceUserResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateAppInstanceUserResult createAppInstanceUserResult = new CreateAppInstanceUserResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
JsonToken token = context.getCurrentToken();
1,096,441
public Void visitDeclared(DeclaredType type, Void p) {<NEW_LINE>TypeElement element = (TypeElement) type.asElement();<NEW_LINE>String name = element.getQualifiedName().toString();<NEW_LINE>ElementKind kind = element.getEnclosingElement().getKind();<NEW_LINE>if (kind.isClass() || kind.isInterface() || kind == ElementKin...
resolveImport(info, path, name);
155,657
public static void threadDump(final Appendable w) {<NEW_LINE>try {<NEW_LINE>final DateFormat df = DateFormat.getDateTimeInstance();<NEW_LINE>final Date date = new Date(System.currentTimeMillis());<NEW_LINE>w.append(Banner.getBanner());<NEW_LINE>w.append("Thread dump. Date:" + df.format(date));<NEW_LINE>w.append("\n\n")...
putAll(Thread.getAllStackTraces());
244,716
private CollectionEventInfo<Document> removeAndCreateEvent(Document document, WriteResultImpl writeResult) {<NEW_LINE>NitriteId nitriteId = document.getId();<NEW_LINE>document = nitriteMap.remove(nitriteId);<NEW_LINE>if (document != null) {<NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE>documentIndexWriter.r...
document.put(DOC_MODIFIED, time);
258,419
protected void initAppFrameUI() {<NEW_LINE>Dimension preferredSize = new Dimension(SwingUtils.getScreenSize());<NEW_LINE>setMinimumSize(new Dimension(300, 300));<NEW_LINE>setPreferredSize(SwingUtils.getScreenSize());<NEW_LINE>topPanel = new JTabbedPane();<NEW_LINE>topPanel.setName("topPanel");<NEW_LINE>leftPanel = new ...
= new JSplitPane(JSplitPane.VERTICAL_SPLIT);
1,024,980
private static void purchaseReservedNodeOffer() throws IOException {<NEW_LINE>if (matchingNodes.size() == 0) {<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>System.out.println("\nPurchasing nodes.");<NEW_LINE>for (ReservedNodeOffering offering : matchingNodes) {<NEW_LINE>printOfferingDetails(offering);<NEW_LINE>System.ou...
System.out.println("Purchase this offering [Y or N]?");
1,152,331
/*<NEW_LINE>* testBMTNoCommit()<NEW_LINE>*<NEW_LINE>* send a message to MDB BMTBeanNoCommit<NEW_LINE>*/<NEW_LINE>public void testAnnBMTNoCommit() throws Exception {<NEW_LINE><MASK><NEW_LINE>FATMDBHelper.putQueueMessage("Request test results", qcfName, bmtNoCommitRequestQueueName);<NEW_LINE>svLogger.info("Message sent t...
FATMDBHelper.emptyQueue(qcfName, testResultQueueName);
13,610
final RestoreVolumeFromSnapshotResult executeRestoreVolumeFromSnapshot(RestoreVolumeFromSnapshotRequest restoreVolumeFromSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(restoreVolumeFromSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,217,051
public void addBindValues(SpiExpressionRequest request) {<NEW_LINE>if (empty) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Object value : bindValues) {<NEW_LINE>if (value == null) {<NEW_LINE>throw new NullPointerException("null values in 'in(...)' queries must be handled separately!");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>ElP...
addBindValue(new MultiValueWrapper(bindValues));
1,562,875
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(DataStream.NAME_FIELD.getPreferredName(), dataStream.getName());<NEW_LINE>builder.field(DataStream.TIMESTAMP_FIELD_FIELD.getPreferredName(<MASK><NEW_LINE>builder.xContent...
), dataStream.getTimeStampField());
1,584,081
public void serialize(DataOutput out) throws IOException {<NEW_LINE>int startOffset = 0;<NEW_LINE>boolean hasrun = hasRunContainer();<NEW_LINE>if (hasrun) {<NEW_LINE>out.writeInt(Integer.reverseBytes(SERIAL_COOKIE | ((size - 1) << 16)));<NEW_LINE>byte[] bitmapOfRunContainers = new byte[(size + 7) / 8];<NEW_LINE>for (in...
(Integer.reverseBytes(SERIAL_COOKIE_NO_RUNCONTAINER));
634,450
protected void dealNestField(Matcher matcher, AbstractTableInfo tableInfo) {<NEW_LINE>String <MASK><NEW_LINE>Preconditions.checkArgument(!physicalFieldFunPattern.matcher(physicalField).find(), "No need to add data types when using functions, The correct way is : strLen(name) as nameSize, ");<NEW_LINE>String fieldType =...
physicalField = matcher.group(1);
783,007
public void showCustomizer(String preselectedCategory, final String preselectedSubCategory) {<NEW_LINE>if (dialog != null) {<NEW_LINE>dialog.setVisible(true);<NEW_LINE>} else {<NEW_LINE>final String category = (<MASK><NEW_LINE>final AtomicReference<Lookup> context = new AtomicReference<Lookup>();<NEW_LINE>ProgressUtils...
preselectedCategory != null) ? preselectedCategory : lastSelectedCategory;
24,691
public void showIssue(final Issue issue) {<NEW_LINE>setToolbarTitle(getString(R.string.issue).concat(" #").concat(String.valueOf(issue.getNumber())));<NEW_LINE>GlideApp.with(getActivity()).load(issue.getUser().getAvatarUrl()).onlyRetrieveFromCache(!PrefUtils.isLoadImageEnable()).into(userImageView);<NEW_LINE>issueTitle...
container, issueTimelineFragment).commitAllowingStateLoss();
537,273
private void findCategoryChange(Map<IJavaElement, String[]> oldCategoriesMap, Map<IJavaElement, String[]> newCategoriesMap) {<NEW_LINE>if (oldCategoriesMap != null) {<NEW_LINE>// take the union of old and new categories elements (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=125675)<NEW_LINE>Set elements;<NEW_LINE>...
changed(element, IJavaElementDelta.F_CATEGORIES);
739,956
public void generate(NodeLIRBuilderTool nodeLIRBuilderTool) {<NEW_LINE>Logger.traceBuildLIR(Logger.BACKEND.PTX, "emitCast: convertOp=%s, value=%s", op, value);<NEW_LINE>PTXLIRGenerator gen = (PTXLIRGenerator) nodeLIRBuilderTool.getLIRGeneratorTool();<NEW_LINE>LIRKind lirKind = gen.getLIRKind(stamp);<NEW_LINE>final Vari...
(PTXKind) value.getPlatformKind();
1,338,762
final DeleteRetentionPolicyResult executeDeleteRetentionPolicy(DeleteRetentionPolicyRequest deleteRetentionPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRetentionPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
355,165
private static String parseStringValue(Properties properties, String value, String current, Set<String> visitedPlaceholders) {<NEW_LINE>StringBuilder buf = new StringBuilder(current);<NEW_LINE>int startIndex = current.indexOf(PLACEHOLDER_PREFIX);<NEW_LINE>while (startIndex != -1) {<NEW_LINE>int endIndex = findPlacehold...
properties, value, placeholder, visitedPlaceholders);
540,206
void logTrailer(long seqId, String serviceName, String methodName, Status status, Metadata metadata, int maxHeaderBytes, GrpcLogRecord.EventLogger eventLogger, String rpcId, @Nullable SocketAddress peerAddress) {<NEW_LINE>checkNotNull(serviceName, "serviceName");<NEW_LINE>checkNotNull(methodName, "methodName");<NEW_LIN...
statusDetailBytes = metadata.get(STATUS_DETAILS_KEY);
544,147
// GEN-LAST:event_btnAddMimeActionPerformed<NEW_LINE>private void btnRemoveMimeActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_btnRemoveMimeActionPerformed<NEW_LINE><MASK><NEW_LINE>if (selected == 0 || selected == mimeIdentifiers.size() + 1) {<NEW_LINE>return;<NEW_LINE>} else if (selected ...
int selected = listIdentifiers.getSelectedIndex();
288,857
protected void listKeys(PrintStream out, PrintStream err, List<String> args) throws Exception {<NEW_LINE>final String[] usage = { "list-keys - ", "Usage: list-keys ", /* [-t mode-table] [-T key-table] */<NEW_LINE>" -? --help Show help" };<NEW_LINE>Options opt = Options.compile(usage).parse(args);<NE...
substring(prefix.length());
1,798,577
private void addEditor(File filename) {<NEW_LINE>final <MASK><NEW_LINE>if (filename != null) {<NEW_LINE>pane.loadSource(filename);<NEW_LINE>}<NEW_LINE>final Tab tab = new Tab();<NEW_LINE>tab.setContent(pane);<NEW_LINE>tab.setText(pane.getName());<NEW_LINE>EventHandler<Event> closeHandler = new EventHandler<Event>() {<N...
EditorPane pane = new EditorPane(this);
989,488
private T tranResultSet(final ResultSet rs, final T targetObject) throws SQLException {<NEW_LINE>ResultSetMetaData rsmd = rs.getMetaData();<NEW_LINE>int nrOfColumns = rsmd.getColumnCount();<NEW_LINE>List<String> <MASK><NEW_LINE>Map<String, Integer> resultColumnIndexMap = this.tableMapping.getCaseSensitivity() == CaseSe...
resultColumns = new ArrayList<>();
1,306,865
public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {<NEW_LINE>Context context = unlockTorIpsFragment.getContext();<NEW_LINE>if (context == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int position = getAbsoluteAdapterPosition();<NEW_LINE>if (position < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>D...
).getIp(), isChecked);
1,835,948
public MethodVisitor visitMethod(int access, String methodName, String desc, String signature, String[] exceptions) {<NEW_LINE>JvmGraph.Type.MethodType methodType = JvmGraph.Type.rawMethodType(desc);<NEW_LINE>VName methodVName = jvmGraph.emitMethodNode(corpusPath, classType, methodName, methodType);<NEW_LINE>entrySets....
super.visitParameter(parameterName, access);
308,823
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select * from SupportBean#expr_batch(udf(theString, view_reference, expired_count))";<NEW_LINE>env.compileDeployAddListenerMileZero(epl, "s0");<NEW_LINE>ViewExpressionWindow.LocalUDF.setResult(true);<NEW_LINE>env.sendEventBean(new SupportBe...
ViewExpressionWindow.LocalUDF.getViewref());
1,521,947
private PageChangeHolder createPageChangeHolder(JFieldRef idRef, TypeMirror viewParameterType, boolean hasAddOnPageChangeListenerMethod) {<NEW_LINE>AbstractJClass viewClass;<NEW_LINE>JDefinedClass onPageChangeListenerClass;<NEW_LINE>if (getProcessingEnvironment().getElementUtils().getTypeElement(CanonicalNameConstants....
PageChangeHolder(this, viewVariable, onPageChangeListenerClass);
838,653
private Map<UUID, BigDecimal> extractIdsWithAmountFromProperties(final Iterable<PluginProperty> properties) {<NEW_LINE>final PluginProperty prop = getPluginProperty(properties, PROP_IPCD_REFUND_IDS_WITH_AMOUNT_KEY);<NEW_LINE>if (prop == null) {<NEW_LINE>return ImmutableMap.<UUID, BigDecimal>of();<NEW_LINE>}<NEW_LINE>//...
v = m.get(k);
1,233,589
private static List<DomainAlwaysInScopeMatcher> convertOldDomainsInScopeOption(String oldDomainsInScope) {<NEW_LINE>if (oldDomainsInScope == null || oldDomainsInScope.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>ArrayList<DomainAlwaysInScopeMatcher> domainsInScope = new ArrayList<>();<NEW_L...
names = oldDomainsInScope.split(";");
387,234
public static <T> ToDouble<T> floatPowInt(ToFloat<T> expression, int power) {<NEW_LINE>switch(power) {<NEW_LINE>case 0:<NEW_LINE>return ToDouble.constant(1);<NEW_LINE>case 1:<NEW_LINE>return expression.asDouble();<NEW_LINE>case 2:<NEW_LINE>return new IntPower<T, ToFloat<T>>(expression, 2) {<NEW_LINE><NEW_LINE>@Override...
value = inner.applyAsFloat(object);
1,179,791
public void enterBcl_expanded(Bcl_expandedContext ctx) {<NEW_LINE>String name = toString(ctx.name);<NEW_LINE>if (Strings.isNullOrEmpty(name)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String regex = ctx.quoted != null ? ctx.quoted.text != null ? ctx.quoted.text.getText() : "" : ctx.regex.getText();<NEW_LINE>BgpCommunityLi...
("Cannot define expanded community-list '%s' because another community-list with that" + " name but a different type already exists.", name));
459,649
public static double[] makeApproximateDiploidLog10LikelihoodsFromGQ(Genotype g, int nAlleles) {<NEW_LINE>Utils.validate(g.getPloidy() == 2, "This method can only be used to approximate likelihoods for diploid genotypes");<NEW_LINE>Utils.validate(g.hasGQ(), "Genotype must have GQ in order to approximate PLs");<NEW_LINE>...
0, gq, PLOIDY_2_HOM_VAR_SCALE_FACTOR * gq };
1,031,780
public static GridFieldVO createParameter(final Properties ctx, final int WindowNo, final int tabNo, final ResultSet rs) {<NEW_LINE>final AdWindowId adWindowId = null;<NEW_LINE>final int adTabId = 0;<NEW_LINE>final boolean tabReadOnly = false;<NEW_LINE>// because it's used only in Swing UI<NEW_LINE>final boolean applyR...
(rs.getString("IsMandatory"));
701,868
public List<DataFileColumn> prepareData(final DataFileDto readedData, final FileParserMessage msg, final Boolean readFirstColumnAsColumnName) {<NEW_LINE>final List<DataValueType> columnTypes = getRowAsDataValueTypeList(msg, readedData.getRowTypes());<NEW_LINE>final List<DataFileColumn> dataFileColumns = new ArrayList<>...
(i).build());
1,395,782
private void assertConsistency(boolean caseSensitive, @Nonnull Object details) {<NEW_LINE>if (!CHECK || ApplicationInfoImpl.isInPerformanceTest())<NEW_LINE>return;<NEW_LINE><MASK><NEW_LINE>if (childrenIds.length == 0)<NEW_LINE>return;<NEW_LINE>CharSequence prevName = mySegment.vfsData.getNameByFileId(childrenIds[0]);<N...
int[] childrenIds = myData.myChildrenIds;
700,772
public void testCustomValueExtractorOnValidator() throws Exception {<NEW_LINE>StringWrapperValueExtractor.counter = 0;<NEW_LINE>//<NEW_LINE>Validator //<NEW_LINE>validator = //<NEW_LINE>atResourceVF.usingContext().//<NEW_LINE>addValueExtractor(//<NEW_LINE>new StringWrapperValueExtractor()).//<NEW_LINE>addValueExtractor...
IntWrapperValueExtractor()).getValidator();
950,306
private static OpcPackage load(PackageIdentifier pkgIdentifier, final InputStream inputStream, String password) throws Docx4JException {<NEW_LINE>// try to detect the type of file using a bufferedinputstream<NEW_LINE>final BufferedInputStream bis = new BufferedInputStream(inputStream);<NEW_LINE>bis.mark(0);<NEW_LINE>fi...
throw new Docx4JException("Error reading from the stream", e);
949,382
public static CTFramePr apply(CTFramePr source, CTFramePr destination) {<NEW_LINE>if (!isEmpty(source)) {<NEW_LINE>if (destination == null)<NEW_LINE>destination = Context<MASK><NEW_LINE>destination.setDropCap(source.getDropCap());<NEW_LINE>destination.setLines(apply(source.getLines(), destination.getLines()));<NEW_LINE...
.getWmlObjectFactory().createCTFramePr();
292,716
public void write(JmeExporter ex) throws IOException {<NEW_LINE>super.write(ex);<NEW_LINE>OutputCapsule oc = ex.getCapsule(this);<NEW_LINE>oc.<MASK><NEW_LINE>oc.write(eventDispatchImpulseThreshold, "eventDispatchImpulseThreshold", 0f);<NEW_LINE>int count = countLinkedBones();<NEW_LINE>String[] linkedBoneNames = new Str...
write(damping, "damping", 0.6f);
594,198
public OpenApi after(Context<? extends Trait> context, OpenApi openapi) {<NEW_LINE>// Find each known request validator on operation shapes.<NEW_LINE>Set<String> validators = context.getModel().shapes(OperationShape.class).flatMap(shape -> OptionalUtils.stream(shape.getTrait(RequestValidatorTrait.class))).map(RequestVa...
collect(Collectors.toSet());
593,430
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B...
FeatureCollectionLayer featureCollectionLayer = new FeatureCollectionLayer(featureCollection);
907,733
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String privateEndpointName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW...
error(new IllegalArgumentException("Parameter privateEndpointName is required and cannot be null."));
1,135,380
private HttpRequest.Builder findPetsByTagsRequestBuilder(Set<String> tags) throws ApiException {<NEW_LINE>// verify the required parameter 'tags' is set<NEW_LINE>if (tags == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'tags' when calling findPetsByTags");<NEW_LINE>}<NEW_LINE>HttpRequest...
localVarQueryParams = new ArrayList<>();
1,541,484
private FieldMember searchType(ReloadableType rtype, String fieldname) {<NEW_LINE>if (rtype != null) {<NEW_LINE>TypeDescriptor td = rtype.getLatestTypeDescriptor();<NEW_LINE>FieldMember field = td.getField(fieldname);<NEW_LINE>if (field != null) {<NEW_LINE>return field;<NEW_LINE>}<NEW_LINE>String[] interfaces = td.getS...
field = searchType(itype, fieldname);
1,797,826
final DescribeExplainabilityResult executeDescribeExplainability(DescribeExplainabilityRequest describeExplainabilityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeExplainabilityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
198,290
public void accept(CodeVisitor visitor) {<NEW_LINE>if (null != method_owner_) {<NEW_LINE>method_owner_.accept(visitor);<NEW_LINE>}<NEW_LINE>String uniqueMethodName = visitor.visitMethodDefinition(methodName_, parameters_.size(), (null != asterisk_parameter_), default_parameters_.size(), (null != method_owner_));<NEW_LI...
bodyStatement_.lastStatementHasReturnValue() : false);
1,645,005
private void updateSliderPosition(int change, JStorageSlider source) {<NEW_LINE>int remaining = change;<NEW_LINE>while (remaining != 0) {<NEW_LINE>// Get the currently indexed slider<NEW_LINE>JStorageSlider slider = storageSliders.get(sliderIndex);<NEW_LINE>// If it's not the slider that fired the event<NEW_LINE>if (sl...
slider.getValue() - adjustment);
1,136,396
public static void copyRecursive(File src, File dst) {<NEW_LINE>try {<NEW_LINE>if (src.isDirectory()) {<NEW_LINE>if (!dst.exists() && !dst.mkdirs()) {<NEW_LINE>throw new IOException("Cannot create dir " + dst.getAbsolutePath());<NEW_LINE>}<NEW_LINE>String[] children = src.list();<NEW_LINE>for (int i = 0; i < children.l...
OutputStream out = new FileOutputStream(dst);
1,713,308
private void find(char[][] board, boolean[][] visited, int i, int j, int m, int n, Set<String> result, TrieNode212 node) {<NEW_LINE>if (i < 0 || i >= m || j < 0 || j >= n || visited[i][j]) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>node = node.child[board[i][j] - 'a'];<NEW_LINE>visited[i][j] = true;<NEW_LINE>if (node == nu...
m, n, result, node);
1,812,565
private void createAndAddFacts(@NonNull final ImmutableList<CommissionShare> shares, @NonNull final Instant timestamp, @NonNull final CommissionPoints initialForecastedBase, @NonNull final CommissionPoints initialToInvoiceBase, @NonNull final CommissionPoints initialInvoicedBase) {<NEW_LINE>CommissionPoints currentFore...
currentInvoicedBase = currentInvoicedBase.subtract(salesRepInvoiced);
1,569,946
final ListVoiceConnectorTerminationCredentialsResult executeListVoiceConnectorTerminationCredentials(ListVoiceConnectorTerminationCredentialsRequest listVoiceConnectorTerminationCredentialsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listVoiceConnectorTerminationCredentialsRequest);<NE...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
457,754
public void marshall(Session session, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (session == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(session.getId(), ID_BINDING);<NEW_LINE>protocolMarshaller.marsh...
session.getUserId(), USERID_BINDING);
172,159
public static void main(String[] args) {<NEW_LINE>CommandSpec spec = CommandSpec.create();<NEW_LINE>spec.addOption(OptionSpec.builder("-V", "--verbose").build());<NEW_LINE>spec.addOption(// so, this option is of type List<File><NEW_LINE>OptionSpec.builder("-f", "--file").paramLabel("FILES").type(List.class).// so, this...
"-f", "file1", "--file=file2", "-n1,2,3" };
1,712,362
public void read(DataReader in) throws IOException {<NEW_LINE>revision = new UnityVersion(in.readStringNull(255));<NEW_LINE>attributes = in.readInt();<NEW_LINE>embedded = in.readBoolean();<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < numBaseClasses; i++) {<NEW_LINE>int classID = in.readInt();<NEW_LINE>TypeRoot typeRoot...
int numBaseClasses = in.readInt();
1,651,924
public static BufferedImage extrudeBorders(BufferedImage src, int extrudeBorders) {<NEW_LINE>if (extrudeBorders > 0) {<NEW_LINE>src = depalettiseImage(src);<NEW_LINE>int origWidth = src.getWidth();<NEW_LINE>int origHeight = src.getHeight();<NEW_LINE>int newWidth = origWidth + extrudeBorders * 2;<NEW_LINE><MASK><NEW_LIN...
int newHeight = origHeight + extrudeBorders * 2;
1,260,995
static Geobject[] generate(int offset, String[] types, int count, long seed) {<NEW_LINE>Random r = new Random(seed);<NEW_LINE>Geobject[] arr = new Geobject[count];<NEW_LINE>for (int i = 0; i < arr.length; i++) {<NEW_LINE>String t = types[offset + i % (types.length - offset)];<NEW_LINE>Geobject s;<NEW_LINE>switch(t) {<N...
square(r.nextDouble());
868,038
public static Home find() {<NEW_LINE>// Check if ROBOVM_DEV_ROOT has been set. If set it should be<NEW_LINE>// pointing at the root of a complete RoboVM source tree.<NEW_LINE>if (System.getenv("ROBOVM_DEV_ROOT") != null) {<NEW_LINE>File dir = new File(System.getenv("ROBOVM_DEV_ROOT"));<NEW_LINE>return validateDevRootDi...
new File(userHome, ".robovm/home"));
254,707
public void performOperationStep(DeploymentOperation operationContext) {<NEW_LINE>final PlatformServiceContainer serviceContainer = operationContext.getServiceContainer();<NEW_LINE>final AbstractProcessApplication processApplication = operationContext.getAttachment(Attachments.PROCESS_APPLICATION);<NEW_LINE>final JmxMa...
> deploymentMap = deployedProcessApplication.getProcessArchiveDeploymentMap();
1,385,921
public void testAsyncInvoker_postReceiveTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE><MASK><NEW_LINE>cb.property("com.ibm.ws.jaxrs.client.receive.timeout", TIMEOUT);<NEW_LINE>Client c = cb.build()...
ClientBuilder cb = ClientBuilder.newBuilder();
1,713,897
@Operation(summary = "Delete subject compatibility level", description = "Deletes the specified subject-level compatibility level config and " + "reverts to the global default.", responses = { @ApiResponse(responseCode = "200", description = "Operation succeeded. " + "Returns old compatibility level", content = @Conten...
Errors.storeException("Failed to delete compatibility level", e);
1,205,309
public HistoricDetailVariableInstanceUpdateEntity copyAndInsertHistoricDetailVariableInstanceUpdateEntity(VariableInstanceEntity variableInstance) {<NEW_LINE>HistoricDetailVariableInstanceUpdateEntity historicVariableUpdate = historicDetailDataManager.createHistoricDetailVariableInstanceUpdate();<NEW_LINE>historicVaria...
setExecutionId(variableInstance.getExecutionId());
1,731,653
private Object invoke(HashMap<String, Object> event, Context context) throws Exception {<NEW_LINE>Method method = findHandlerMethod(this.clazz, this.handlerName);<NEW_LINE>Class<?> requestClass = method.getParameterTypes()[0];<NEW_LINE>Mapper <MASK><NEW_LINE>Object request = mapper.read(event);<NEW_LINE>if (method.getP...
mapper = MapperFactory.getMapper(requestClass);
1,160,993
protected void createSpecificButtons(final Container container) {<NEW_LINE>final AbstractAction runAllAction = new AbstractAction(TextUtils.getText("reminder.Run_All")) {<NEW_LINE><NEW_LINE>private static final long serialVersionUID = 1L;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(final ActionEve...
JButton runAllButton = new JButton(runAllAction);
182,001
public void reload() {<NEW_LINE>try {<NEW_LINE>SortTaskConfig newSortTaskConfig = SortClusterConfigHolder.getTaskConfig(taskName);<NEW_LINE>LOG.info("start to get SortTaskConfig:taskName:{}:config:{}", taskName, new ObjectMapper().writeValueAsString(newSortTaskConfig));<NEW_LINE>if (this.sortTaskConfig != null && this....
Class.forName(this.jdbcDriver);
1,050,193
protected void deploy(DeploymentInfo deploymentInfo) {<NEW_LINE><MASK><NEW_LINE>DeploymentManager manager = Servlets.defaultContainer().addDeployment(deploymentInfo);<NEW_LINE>manager.deploy();<NEW_LINE>HttpHandler httpHandler;<NEW_LINE>// Get realm from owning agent asset<NEW_LINE>String agentRealm = agent.getRealm();...
LOG.info("Deploying JAX-RS deployment for protocol instance : " + this);
1,028,860
public byte[] marshall(BucketQosInfo bucketQosInfo) {<NEW_LINE>StringBuffer xmlBody = new StringBuffer();<NEW_LINE>xmlBody.append("<QoSConfiguration>");<NEW_LINE>if (bucketQosInfo.getTotalUploadBw() != null) {<NEW_LINE>xmlBody.append("<TotalUploadBandwidth>" + bucketQosInfo.getTotalUploadBw() + "</TotalUploadBandwidth>...
bucketQosInfo.getIntranetQps() + "</IntranetQps>");
1,169,918
public byte[] toByteArray() {<NEW_LINE>if (this._bufferList.peekFirst() == null) {<NEW_LINE>// Return an empty array if the output stream is empty<NEW_LINE>return new byte[0];<NEW_LINE>} else {<NEW_LINE>int totalSize = size();<NEW_LINE>byte[] targetBuffer = new byte[totalSize];<NEW_LINE>int pos = 0;<NEW_LINE>Iterator<b...
targetBuffer, pos, buffer.length);
793,134
private static void initByFallback(Context ctx) {<NEW_LINE>if (skin_list_item_normal == null) {<NEW_LINE>skin_list_item_normal = loadDrawableFromAsset("skin_list_item_normal.9.png", ctx);<NEW_LINE>}<NEW_LINE>if (skin_list_item_pressed == null) {<NEW_LINE>skin_list_item_pressed = loadDrawableFromAsset("skin_list_item_pr...
, 0, 182, 249));