idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,079,841
public void curve(float x1, float y1, float cx1, float cy1, float cx2, float cy2, float x2, float y2, int segments) {<NEW_LINE>check(ShapeType.Line, null, segments * 2 + 2);<NEW_LINE>float colorBits = color.toFloatBits();<NEW_LINE>// Algorithm from: http://www.antigrain.com/research/bezier_interpolation/index.html#PAGE...
= x1 - cx1 * 2 + cx2;
17,245
public static Single<WebServer> startServer() {<NEW_LINE>// load logging configuration<NEW_LINE>LogConfig.configureRuntime();<NEW_LINE>// By default this will pick up application.yaml from the classpath<NEW_LINE>Config config = Config.create();<NEW_LINE>Single<WebServer> server = WebServer.builder(createRouting(config)...
"Startup failed: " + t.getMessage());
386,267
private void initializeData(ImageData<BufferedImage> imageData) {<NEW_LINE>if (this.imageData != imageData) {<NEW_LINE>if (this.imageData != null)<NEW_LINE>this.imageData.getHierarchy().removePathObjectListener(this);<NEW_LINE>this.imageData = imageData;<NEW_LINE>if (imageData != null) {<NEW_LINE>imageData.getHierarchy...
CountDownLatch(cores.size());
245,455
public byte[] bytesValue() {<NEW_LINE>if (token == JSONToken.HEX) {<NEW_LINE>int start = np + 1, len = sp;<NEW_LINE>if (len % 2 != 0) {<NEW_LINE>throw new JSONException("illegal state. " + len);<NEW_LINE>}<NEW_LINE>byte[] bytes = new byte[len / 2];<NEW_LINE>for (int i = 0; i < bytes.length; ++i) {<NEW_LINE>char c0 = te...
start + i * 2 + 1);
1,088,022
public static IRubyObject newInstance(ThreadContext context, IRubyObject recv, IRubyObject arg, boolean strict, boolean exception) {<NEW_LINE>switch(((RubyBasicObject) arg).getNativeClassIndex()) {<NEW_LINE>case RATIONAL:<NEW_LINE>return handleMissingPrecision(<MASK><NEW_LINE>case FLOAT:<NEW_LINE>RubyBigDecimal res = n...
context, "Rational", strict, exception);
396,590
public void run(RegressionEnvironment env) {<NEW_LINE>String[] cols = "c0,c1,c2,c3,c4".split(",");<NEW_LINE>String epl = "@name('s0') select longPrimitive, " + "sum(longPrimitive) as c0, " + "sum(group_by:(),longPrimitive) as c1, " <MASK><NEW_LINE>env.compileDeploy(soda, epl).addListener("s0");<NEW_LINE>makeSendEvent(e...
+ "sum(longPrimitive,group_by:()) as c2, " + "sum(longPrimitive,group_by:theString) as c3, " + "sum(longPrimitive,group_by:(theString,intPrimitive)) as c4" + " from SupportBean";
815,918
public void connect(final ChannelHandlerContext ctx, final MqttConnectMessage msg) {<NEW_LINE>String clientId = msg<MASK><NEW_LINE>if (StringUtils.isEmpty(clientId)) {<NEW_LINE>ctx.writeAndFlush(wrong(MqttConnectReturnCode.CONNECTION_REFUSED_IDENTIFIER_REJECTED));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String userName = ...
.payload().clientIdentifier();
1,663,305
public static void readReferenceList(ArrayList<String> v_value, ArrayList<String> v_name, ArrayList<String> v_description) {<NEW_LINE>if (v_value == null)<NEW_LINE>throw new IllegalArgumentException("v_value parameter is null");<NEW_LINE>if (v_name == null)<NEW_LINE>throw new IllegalArgumentException("v_name parameter ...
description = resultSet.getString(3);
544,897
public void convert(ProjectRequest request, MutableProjectDescription description, InitializrMetadata metadata) {<NEW_LINE>validate(request, metadata);<NEW_LINE>Version <MASK><NEW_LINE>List<Dependency> resolvedDependencies = getResolvedDependencies(request, platformVersion, metadata);<NEW_LINE>validateDependencyRange(p...
platformVersion = getPlatformVersion(request, metadata);
470,805
private static Double computeAngle(final GeoPoint point, final double sinLatitude, final double cosLatitude, final double sinLongitude, final double cosLongitude) {<NEW_LINE>// Coordinate rotation formula:<NEW_LINE>// x1 = x0 cos T - y0 sin T<NEW_LINE>// y1 = x0 sin T + y0 cos T<NEW_LINE>// We need to rotate the point ...
Math.atan2(z2, y2);
462,079
final DescribeDomainConfigResult executeDescribeDomainConfig(DescribeDomainConfigRequest describeDomainConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeDomainConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeDomainConfig");
1,509,502
public void download(final OutputStream out, final ProgressListener listener, List<Range> rangeList) throws HttpException, CancelledException {<NEW_LINE>if (listener != null) {<NEW_LINE>listener.onProgress(0, null, this.name);<NEW_LINE>}<NEW_LINE>final long[] bytesArr = new long[1];<NEW_LINE>try {<NEW_LINE>host().doGet...
l, l, this.name);
1,709,002
public static CreateNetworkInterfaceResponse unmarshall(CreateNetworkInterfaceResponse createNetworkInterfaceResponse, UnmarshallerContext _ctx) {<NEW_LINE>createNetworkInterfaceResponse.setRequestId(_ctx.stringValue("CreateNetworkInterfaceResponse.RequestId"));<NEW_LINE>createNetworkInterfaceResponse.setStatus(_ctx.st...
(_ctx.stringValue("CreateNetworkInterfaceResponse.ResourceGroupId"));
631,413
protected void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>final LinearLayout layout = new LinearLayout(this);<NEW_LINE>layout.setOrientation(LinearLayout.VERTICAL);<NEW_LINE>final TextView title = new TextView(this);<NEW_LINE>title.setText(R.string.bug_title);<NEW_...
sendBugReport(this, getErrors());
79,575
private float[] process() {<NEW_LINE>int bufferLength = getSubChannelCount() * mTapsPerChannel;<NEW_LINE>float[] inlineInterimOutput = new float[bufferLength];<NEW_LINE>// Multiply each of the samples by the corresponding filter tap<NEW_LINE>for (int x = 0; x < mInlineSamples.length; x++) {<NEW_LINE>inlineInterimOutput...
= filterAccumulator[mTopBlockMap[x]];
212,892
final GetResourcePoliciesResult executeGetResourcePolicies(GetResourcePoliciesRequest getResourcePoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResourcePoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
671,479
private void fillRwSplitUser(UserConfig userConfig, RwSplitUser rwSplitUser, Map<String, WallProvider> blackListMap, ProblemReporter problemReporter) {<NEW_LINE>String tenant = rwSplitUser.getTenant();<NEW_LINE>String dbGroup = rwSplitUser.getDbGroup();<NEW_LINE><MASK><NEW_LINE>UserName userName = new UserName(userConf...
String blacklistStr = rwSplitUser.getBlacklist();
1,577,363
protected String[] processStringArray(String name, String expression, boolean immediateOnly, boolean mask) {<NEW_LINE>final String methodName = "processStringArray";<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, methodName, new Object[] { name, (expression == null) ? ...
IllegalArgumentException("Expected '" + name + "' to evaluate to a String value.");
730,577
public void onMessage(quickfix.fix50.NewOrderSingle order, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {<NEW_LINE>try {<NEW_LINE>validateOrder(order);<NEW_LINE>OrderQty orderQty = order.getOrderQty();<NEW_LINE>Price price = getPrice(order);<NEW_LINE>quickfix.fix50.ExecutionRepor...
(orderQty.getValue()));
1,083,808
public static BError thenReturnSequence(BObject caseObj) {<NEW_LINE>GenericMockObjectValue genericMock = (GenericMockObjectValue) caseObj.get<MASK><NEW_LINE>BObject mockObj = genericMock.getMockObj();<NEW_LINE>String functionName = caseObj.getStringValue(StringUtils.fromString("functionName")).toString();<NEW_LINE>BArr...
(StringUtils.fromString("mockObject"));
254,313
public void listContextJsps(Context context, Summary summary, boolean compile) {<NEW_LINE>ServletConfig servletConfig = (ServletConfig) context.findChild("jsp");<NEW_LINE>if (servletConfig != null) {<NEW_LINE>synchronized (servletConfig) {<NEW_LINE>ServletContext sctx = context.getServletContext();<NEW_LINE>Options opt...
hashMap.put(key, item);
1,375,264
private static void nBody(KernelContext context, int numBodies, float[] refPos, float[] refVel) {<NEW_LINE>int i = context.globalIdx;<NEW_LINE>int body = 4 * i;<NEW_LINE>float[] acc = new float[] { 0.0f, 0.0f, 0.0f };<NEW_LINE>for (int j = 0; j < numBodies; j++) {<NEW_LINE>float[] r = new float[3];<NEW_LINE>int index =...
[k] * r[k];
1,628,284
private PartitionedInOutLineRecords partitionLines(@NonNull final I_M_InOut receipt) {<NEW_LINE>final de.metas.handlingunits.inout.impl.DistributeAndMoveReceiptCreator.PartitionedInOutLineRecords.PartitionedInOutLineRecordsBuilder //<NEW_LINE>builder = PartitionedInOutLineRecords.builder();<NEW_LINE>final List<I_M_InOu...
retrieveLines(receipt, I_M_InOutLine.class);
1,037,048
public Credentials prompt(final Host bookmark, final String username, final String title, final String reason, final LoginOptions options) throws LoginCanceledException {<NEW_LINE>console.printf("%n%s", new StringAppender().append(<MASK><NEW_LINE>try {<NEW_LINE>final Credentials credentials = new Credentials(username);...
title).append(reason));
222,676
public void onBindViewHolder(final RecyclerView.ViewHolder holder, int position) {<NEW_LINE>if (position < getItemCount() && (customHeaderView != null ? position <= stringList.size() : position < stringList.size()) && (customHeaderView != null ? position > 0 : true)) {<NEW_LINE>((ViewHolder) holder).textViewSample.setT...
? position - 1 : position));
770,094
protected int diffInnerComments(JCTree oldT, JCTree newT, int localPointer) {<NEW_LINE>if (innerCommentsProcessed) {<NEW_LINE>return localPointer;<NEW_LINE>}<NEW_LINE>innerCommentsProcessed = true;<NEW_LINE>CommentSet cs = getCommentsForTree(newT, true);<NEW_LINE>CommentSet old = getCommentsForTree(oldT, true);<NEW_LIN...
getComments(CommentSet.RelativePosition.INNER);
974,987
public void removeTag(View view, final int position) {<NEW_LINE>LinearLayout rowFound = null;<NEW_LINE>for (int i = 0; i < getChildCount(); i++) {<NEW_LINE>final LinearLayout row <MASK><NEW_LINE>if (row.findViewWithTag(getViewTag(mTagList.get(position).mTagId)) != null) {<NEW_LINE>rowFound = row;<NEW_LINE>break;<NEW_LI...
= (LinearLayout) getChildAt(i);
1,389,052
public void initialize() {<NEW_LINE>// start background initialization:<NEW_LINE>scheduler.schedule(() -> {<NEW_LINE>boolean start = true;<NEW_LINE>try {<NEW_LINE>initializeThingConfig();<NEW_LINE>logger.debug("{}: Device config: IP address={}, HTTP user/password={}/{}, update interval={}", thingName, config.deviceIp, ...
"<none>" : "***", config.updateInterval);
239,828
void add(Feature feature) {<NEW_LINE>Selector selector = feature.getSelector();<NEW_LINE>FeatureList list = this;<NEW_LINE>if (selector != null) {<NEW_LINE>List<String> path = selector.getPath();<NEW_LINE>for (int i = path.size() - 1; i >= 0; i--) {<NEW_LINE>String name = path.get(i);<NEW_LINE>if (list.lists == null)<N...
feature.getFeatureName(), fs);
561,112
public ApiResponse<FileShare> fileSharesGetByFileIdWithHttpInfo(String id) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'id' when calling fileSharesGetB...
] localVarAccepts = { "application/json", "text/json" };
1,245,301
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>catalogLabel = new javax.swing.JLabel();<NEW_LINE>catalogComboBox = new javax.swing.JComboBox();<NEW_LINE>parentPanel = new...
= java.awt.GridBagConstraints.WEST;
1,374,434
public SsmActionDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SsmActionDefinition ssmActionDefinition = new SsmActionDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
923,057
final DescribeOrganizationHealthResult executeDescribeOrganizationHealth(DescribeOrganizationHealthRequest describeOrganizationHealthRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrganizationHealthRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
endClientExecution(awsRequestMetrics, request, response);
600,891
public static List<List<Writable>> executeJoin(Join join, List<List<Writable>> left, List<List<Writable>> right) {<NEW_LINE>String[] leftColumnNames = join.getJoinColumnsLeft();<NEW_LINE>int[] leftColumnIndexes = new int[leftColumnNames.length];<NEW_LINE>for (int i = 0; i < leftColumnNames.length; i++) {<NEW_LINE>leftC...
FunctionalUtils.cogroup(leftJV, rightJV);
961,816
private static AWTEvent mapXWindowMouseEvent(MouseEvent src) {<NEW_LINE>if (src.getButton() < 6) {<NEW_LINE>// Convert these events(buttons 4&5 in are produced by touchpad, they must be converted to horizontal scrolling events<NEW_LINE>return new MouseWheelEvent(src.getComponent(), MouseEvent.MOUSE_WHEEL, src.getWhen()...
== 4 ? -1 : 1);
390,916
public void run() {<NEW_LINE>try {<NEW_LINE>ConcurrentLog.info("SMWLISTSYNC", "Importer run()");<NEW_LINE>Object obj = this.<MASK><NEW_LINE>JSONObject jsonObject = (JSONObject) obj;<NEW_LINE>JSONArray items = (JSONArray) jsonObject.get("items");<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Iterator<JSONObject> iter...
parser.parse(this.importFile);
834,329
public static void main(String[] args) {<NEW_LINE>final DropShadow ds = new DropShadow();<NEW_LINE>final JPanel canvas = new JPanel() {<NEW_LINE><NEW_LINE>BufferedImage image = null;<NEW_LINE><NEW_LINE>Image shadow = null;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void paintComponent(Graphics g) {<NEW_LINE>Graphi...
2, size.height / 2);
739,484
public Response tpstats() throws IOException, ExecutionException, InterruptedException, JSONException {<NEW_LINE>JMXNodeTool nodeTool;<NEW_LINE>try {<NEW_LINE>nodeTool = JMXNodeTool.instance(config);<NEW_LINE>} catch (JMXConnectionException e) {<NEW_LINE>logger.error("Exception in fetching c* jmx tool . Msgl: {}", e.g...
"active", threadPoolProxy.getActiveCount());
1,276,090
public static void main(String[] args) {<NEW_LINE>String rule_key = "sentinel_demo_rule_key";<NEW_LINE>String yourUserName = "root";<NEW_LINE>String yourPassWord = "12345";<NEW_LINE>String endPoints = "http://127.0.0.1:2379";<NEW_LINE>SentinelConfig.setConfig(EtcdConfig.END_POINTS, endPoints);<NEW_LINE>SentinelConfig.s...
System.out.println(rules);
966,222
private static void encodeTypeDefIdentifiers(List<BIRTypeDefinition> typeDefs, HashMap<String, String> encodedVsInitialIds) {<NEW_LINE>for (BIRTypeDefinition typeDefinition : typeDefs) {<NEW_LINE>typeDefinition.type.tsymbol.name = Names.fromString(encodeNonFunctionIdentifier(typeDefinition.type.tsymbol.name.value, enco...
encodeFunctionIdentifiers(typeDefinition.attachedFuncs, encodedVsInitialIds);
1,482
protected void onBeforeArrayNew(String desc, int dims) {<NEW_LINE>if (where == Where.BEFORE) {<NEW_LINE>String extName = TypeUtils.getJavaType(desc);<NEW_LINE>String type = loc.getClazz();<NEW_LINE>if (matches(type, extName)) {<NEW_LINE>addExtraTypeInfo(om.getSelfParameter()<MASK><NEW_LINE>ValidationResult vr = validat...
, Type.getObjectType(className));
1,721,328
// equals overload calls into this compare method<NEW_LINE>@SuppressWarnings("ReferenceEquality")<NEW_LINE>public int compare(RandomAccessData o1, RandomAccessData o2, int startOffset) {<NEW_LINE>if (o1 == o2) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>if (o1 == POSITIVE_INFINITY) {<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE...
o2.buffer[i] & 0xFF;
627,486
// how's that for a method name....<NEW_LINE>private boolean parsePotentialAssociatedTLCRunToDetermineWhetherResultsPageMustBeShown() {<NEW_LINE>final TLCModelLaunchDataProvider ldp = TLCOutputSourceRegistry.getModelCheckSourceRegistry().getProvider(model);<NEW_LINE>final AtomicBoolean hasStartTime = new AtomicBoolean(...
AtomicBoolean hasZeroCoverage = new AtomicBoolean(false);
1,700,922
private Bitmap createWidgetBitmap(@NonNull AlarmWidgetInfo info, float density) {<NEW_LINE>Bitmap bitmap = Bitmap.createBitmap((int) (WIDGET_BITMAP_SIZE_DP * density), (int) (WIDGET_BITMAP_SIZE_DP * density), Bitmap.Config.ARGB_8888);<NEW_LINE>Canvas canvas = new Canvas(bitmap);<NEW_LINE>Drawable locImg = app.getUIUtil...
bottomText, x, y, textPaint);
695,315
// @Todo: refactor this task configuration to extend a copy task and use replace tokens<NEW_LINE>private void addCreateScriptsTask(Project project, JavaApplication pluginExtension, ApplicationPluginConvention pluginConvention) {<NEW_LINE>project.getTasks().register(TASK_START_SCRIPTS_NAME, CreateStartScripts.class, sta...
).getByType(JavaPluginExtension.class);
1,482,087
public void readFromXML(org.w3c.dom.Node element) throws java.io.IOException {<NEW_LINE>if (!XML_STRING_ARRAY.equals(element.getNodeName()))<NEW_LINE>throw new java.io.IOException();<NEW_LINE>org.w3c.dom.NamedNodeMap attributes = element.getAttributes();<NEW_LINE>String[] stringArray;<NEW_LINE>org.w3c.dom.Node countNod...
valueStr = itemEl.getAttribute(ATTR_VALUE);
138,058
public void performTransition() {<NEW_LINE>// Don't allow new transition before old one is finished or transitions blocked<NEW_LINE>if (isAnimating() || isBlocked()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Defining actual effect for this transaction<NEW_LINE>if (transitionEffects == null || transitionEffects.size() <...
? actualTransitionEffect.getAnimationDelay() : 0;
952,693
final CreatePoolResult executeCreatePool(CreatePoolRequest createPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
687,061
public void init(List<String> keys, List<ParamValue> values) {<NEW_LINE>keys.add(CommonConstants.VERSION_KEY);<NEW_LINE>values.add(new DynamicValues(null));<NEW_LINE>keys.add(CommonConstants.SIDE_KEY);<NEW_LINE>values.add(new FixedParamValue(CommonConstants<MASK><NEW_LINE>keys.add(CommonConstants.INTERFACE_KEY);<NEW_LI...
.CONSUMER_SIDE, CommonConstants.PROVIDER_SIDE));
1,469,129
public void marshall(PolicySummary policySummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (policySummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(policySummary.getPolicyArn(), POLICYARN_BINDI...
policySummary.getDeleteUnusedFMManagedResources(), DELETEUNUSEDFMMANAGEDRESOURCES_BINDING);
1,558,341
private void initNamesView(final View view) {<NEW_LINE>mNamesCaption = (TextView) view.findViewById(R.id.show_additional_names);<NEW_LINE>mNamesCaption.setOnClickListener(this);<NEW_LINE>mAddLanguage = (TextView) view.findViewById(R.id.add_langs);<NEW_LINE>mAddLanguage.setOnClickListener(this);<NEW_LINE>mMoreLanguages ...
(LinearLayoutManager) mNamesView.getLayoutManager();
655,548
private static void removeFileWildcard(File output, String removeFileWildcard, PackrConfig config) throws IOException {<NEW_LINE>if (removeFileWildcard.contains("*")) {<NEW_LINE>String removePath = removeFileWildcard.substring(0, removeFileWildcard.indexOf('*') - 1);<NEW_LINE>String removeSuffix = removeFileWildcard.su...
.indexOf('*') + 1);
401,373
protected void checkEmptyParcelPalletLines(LogisticalForm logisticalForm, List<String> errorMessageList) throws LogisticalFormError {<NEW_LINE>if (logisticalForm.getLogisticalFormLineList() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<LogisticalFormLine, BigDecimal> qtyMap = new HashMap<>();<NEW_LINE>LogisticalF...
LogisticalFormLine logisticalFormLine = entry.getKey();
1,042,104
public void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setTheme();<NEW_LINE>final Intent intent = getIntent();<NEW_LINE>final String action = intent.getAction();<NEW_LINE>final Uri uri = intent.getData();<NEW_LINE>boolean finished = false;<NEW_LINE>final ContentRes...
uri, contentResolver).getFileType();
501,143
public void run() {<NEW_LINE>CoronaEditText view = null;<NEW_LINE>if (id != 0) {<NEW_LINE>view = <MASK><NEW_LINE>}<NEW_LINE>if ((view != null) && focus) {<NEW_LINE>// This puts a focus ring around the text box.<NEW_LINE>view.requestFocus();<NEW_LINE>// We need the following to bring up the keyboard.<NEW_LINE>InputMetho...
getDisplayObjectById(CoronaEditText.class, id);
947,814
private String calculaDigitos(String iESemDigito) {<NEW_LINE>String ieComZero = iESemDigito.substring(0, 3) + "0" + iESemDigito.substring(3);<NEW_LINE>String digito1 = new DigitoPara(ieComZero).complementarAoModulo().comMultiplicadores(2, 1).somandoIndividualmente().mod(10).trocandoPorSeEncontrar(<MASK><NEW_LINE>String...
"0", 10).calcula();
1,264,903
public void run() throws InvalidInputException {<NEW_LINE>if (_input.getTableType().equalsIgnoreCase("REALTIME")) {<NEW_LINE>// no need to estimate segment size & optimal number of segments for realtime only tables;<NEW_LINE>// RT Provisioning Rule will have a comprehensive analysis on that<NEW_LINE>_output.setSegmentS...
SegmentSizeRuleParams segmentSizeRuleParams = _input.getSegmentSizeRuleParams();
674,069
protected void handleExit(Command parsedCommand) {<NEW_LINE>// Pressing return on an empty command line quits most modes rather than execute a command<NEW_LINE>if (parsedCommand == null && isFromVisual) {<NEW_LINE>// Fix caret position, clear selection.<NEW_LINE>editor.changeModeSafely(NormalMode.NAME, new ExecuteComma...
new ExecuteCommandHint.OnEnter(parsedCommand));
1,492,649
public void writeHeader(HollowBlobHeader header, DataOutputStream dos) throws IOException {<NEW_LINE>// / save 4 bytes to indicate FastBlob version header. This will be changed to indicate backwards incompatibility.<NEW_LINE>dos.writeInt(HollowBlobHeader.HOLLOW_BLOB_VERSION_HEADER);<NEW_LINE>// / Write randomized tag ...
writeUTF(headerTag.getValue());
1,370,139
final GetInlinePolicyForPermissionSetResult executeGetInlinePolicyForPermissionSet(GetInlinePolicyForPermissionSetRequest getInlinePolicyForPermissionSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getInlinePolicyForPermissionSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
invoke(request, responseHandler, executionContext);
1,319,488
public void run() {<NEW_LINE>if (SwingUtilities.isEventDispatchThread()) {<NEW_LINE>try {<NEW_LINE>int rm = previewPrefs.getInt(rightMargin, getDefaultAsInt(rightMargin));<NEW_LINE>// NOI18N<NEW_LINE>jep.putClientProperty("TextLimitLine", rm);<NEW_LINE>// NOI18N<NEW_LINE>jep.getDocument().putProperty(SimpleValueNames.T...
putProperty(SimpleValueNames.TAB_SIZE, "");
1,417,251
private void customizeComponents() {<NEW_LINE>filterPanel = new FilesSetDefsPanel(PANEL_TYPE.FILE_INGEST_FILTERS);<NEW_LINE>settingsPanel = new IngestSettingsPanel();<NEW_LINE>profilePanel = new ProfileSettingsPanel();<NEW_LINE>tabbedPane.insertTab(NbBundle.getMessage(IngestOptionsPanel.class, "IngestOptionsPanel.fileF...
.class, "IngestOptionsPanel.profilesTab.toolTipText"), INDEX_OF_PROFILE_PANEL);
174,613
public JComponent createCustomComponent(@Nonnull Presentation presentation, @Nonnull String place) {<NEW_LINE>JComponent component = new ActionButtonWithText(this, presentation, place, ActionToolbar.DEFAULT_MINIMUM_BUTTON_SIZE);<NEW_LINE>UIUtil.putClientProperty(component, MnemonicHelper.MNEMONIC_CHECKER, keyCode -> Ke...
, mask, false), TOGGLE_ACTION_NAME);
826,717
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see com.ibm.wsspi.sib.core.SICoreConnection#cloneConnection()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public SICoreConnection cloneConnection() throws SIConnectionUnavailableException, SIConnectionDroppedException, SIResourceException, SIConnectionLostException, SILimi...
.getConnectionLockManager().unlock();
810,285
protected void readResponse(InputStream input) throws IOException {<NEW_LINE>int imageScaleWidth = -1, imageScaleHeight = -1;<NEW_LINE>if (fastScale) {<NEW_LINE>if (toScale != null) {<NEW_LINE>imageScaleWidth = toScale.getWidth();<NEW_LINE>imageScaleHeight = toScale.getHeight();<NEW_LINE>} else {<NEW_LINE>if (placehold...
(int) (actualH * r2);
35,091
final BatchUpdateDevicePositionResult executeBatchUpdateDevicePosition(BatchUpdateDevicePositionRequest batchUpdateDevicePositionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchUpdateDevicePositionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
resolvedHostPrefix = String.format("tracking.");
802,594
public boolean isMatch(String s, String p) {<NEW_LINE>if (s == null || p == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean[][] dp = new boolean[s.length() + 1][p.length() + 1];<NEW_LINE>dp[0][0] = true;<NEW_LINE>for (int i = 0; i < p.length(); i++) {<NEW_LINE>// here's the p's length, not s's<NEW_LINE>if (p...
1][j - 1]);
1,263,560
private BIRNode.BIRBasicBlock addCheckedInvocation(BIRNode.BIRFunction func, PackageID modId, String initFuncName, BIROperand retVar, BIROperand boolRef) {<NEW_LINE>BIRNode.BIRBasicBlock lastBB = func.basicBlocks.get(func.basicBlocks.size() - 1);<NEW_LINE>BIRNode.BIRBasicBlock nextBB = addAndGetNextBasicBlock(func);<NE...
.BIRBasicBlock trueBB = addAndGetNextBasicBlock(func);
1,070,295
public boolean save() {<NEW_LINE>// Add<NEW_LINE>p_properties.setProperty("ADEMPIERE_MAIN_VERSION", Adempiere.MAIN_VERSION);<NEW_LINE>p_properties.setProperty("ADEMPIERE_DATE_VERSION", Adempiere.DATE_VERSION);<NEW_LINE>p_properties.<MASK><NEW_LINE>// Create Connection<NEW_LINE>String ccType = Database.DB_ORACLE;<NEW_LI...
setProperty("ADEMPIERE_DB_VERSION", Adempiere.DB_VERSION);
1,708,664
protected void encodeRectangles(FacesContext context, GMap map) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>MapModel model = map.getModel();<NEW_LINE>writer.write(",rectangles:[");<NEW_LINE>for (Iterator<Rectangle> rectangles = model.getRectangles().iterator(); rectangles...
rectangle.getStrokeColor() + "'");
1,645,796
private void parse(boolean isSecure) throws URIException, HttpMalformedHeaderException {<NEW_LINE>mIsSecure = isSecure;<NEW_LINE>Matcher matcher = patternRequestLine.matcher(mStartLine);<NEW_LINE>if (!matcher.find()) {<NEW_LINE>mMalformedHeader = true;<NEW_LINE>throw new HttpMalformedHeaderException(<MASK><NEW_LINE>}<N...
"Failed to find pattern " + patternRequestLine + " in: " + mStartLine);
383,820
public static DescribeVsDomainReqBpsDataResponse unmarshall(DescribeVsDomainReqBpsDataResponse describeVsDomainReqBpsDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeVsDomainReqBpsDataResponse.setRequestId(_ctx.stringValue("DescribeVsDomainReqBpsDataResponse.RequestId"));<NEW_LINE>describeVsDomainReqBpsDataRe...
= new ArrayList<DataModule>();
275,529
public static void main(String[] args) {<NEW_LINE>CliqueFinder<String> <MASK><NEW_LINE>finder.add(new HashSet<>(Arrays.asList("A", "B")));<NEW_LINE>finder.add(new HashSet<>(Arrays.asList("B", "C")));<NEW_LINE>finder.add(new HashSet<>(Arrays.asList("C", "D")));<NEW_LINE>finder.add(new HashSet<>(Arrays.asList("A", "D")))...
finder = new CliqueFinder<>();
733,277
private void logRequest(HttpServletRequest request) {<NEW_LINE>LogFormatUtils.traceDebug(logger, traceOn -> {<NEW_LINE>String params;<NEW_LINE>if (StringUtils.startsWithIgnoreCase(request.getContentType(), "multipart/")) {<NEW_LINE>params = "multipart";<NEW_LINE>} else if (isEnableLoggingRequestDetails()) {<NEW_LINE>pa...
) ? "?" + queryString : "");
1,773,918
protected void saveState(IMemento memento) {<NEW_LINE>memento.createChild<MASK><NEW_LINE>if (sourceConnectionPoint != null) {<NEW_LINE>memento.createChild(ELEMENT_SOURCE).putTextData(sourceConnectionPoint.getRootURI().toString());<NEW_LINE>}<NEW_LINE>if (destinationConnectionPoint != null) {<NEW_LINE>memento.createChil...
(ELEMENT_NAME).putTextData(name);
240,903
public boolean put(PathSpec pathSpec, E resource) {<NEW_LINE>MappedResource<E> entry = new <MASK><NEW_LINE>switch(pathSpec.getGroup()) {<NEW_LINE>case EXACT:<NEW_LINE>String exact = pathSpec.getPrefix();<NEW_LINE>if (exact != null)<NEW_LINE>_exactMap.put(exact, entry);<NEW_LINE>break;<NEW_LINE>case PREFIX_GLOB:<NEW_LIN...
MappedResource<>(pathSpec, resource);
538,073
private void sendEnablePushIQ(final AccountItem accountItem, final String pushServiceJid, final String node) {<NEW_LINE>String stanzaID = null;<NEW_LINE>try {<NEW_LINE>EnablePushNotificationsIQ enableIQ = new EnablePushNotificationsIQ(UserJid.from(pushServiceJid).getJid(), node, null);<NEW_LINE>stanzaID = enableIQ.getS...
"Push notification enabling failed: " + e.toString());
1,353,646
private Optional<SerialNoContext> extractSerialNoContext(final I_PP_Order ppOrder) {<NEW_LINE>final IPPOrderBOMBL orderBOMBL = Services.get(IPPOrderBOMBL.class);<NEW_LINE>final IProductDAO productsRepo = Services.get(IProductDAO.class);<NEW_LINE>final PPOrderId ppOrderId = PPOrderId.ofRepoId(ppOrder.getPP_Order_ID());<...
productNo(finishedGoodsProductValue).build();
4,924
public void run() {<NEW_LINE>try {<NEW_LINE>LOG.info("Waiting for container " + container + " to finish.");<NEW_LINE>containerExecutor.waitFor();<NEW_LINE>LOG.log(Level.INFO, "Container {0} is completed. Exit status: {1}", new Object[] { container, containerExecutor.exitValue() });<NEW_LINE>if (isTopologyKilled) {<NEW_...
Level.SEVERE, "Process is interrupted: ", e);
1,064,883
private void tryThrowTargetParsingException(ExtendedEventHandler eventHandler, List<String> targetPatterns, SkyKey key, EvaluationResult<TargetPatternPhaseValue> evalResult) throws TargetParsingException {<NEW_LINE>if (evalResult.hasError()) {<NEW_LINE>ErrorInfo <MASK><NEW_LINE>TargetParsingException exc;<NEW_LINE>if (...
errorInfo = evalResult.getError(key);
1,524,780
private static boolean isConvertibleToMapType(Object sourceValue, BMapType targetType, List<TypeValuePair> unresolvedValues, String varName, List<String> errors, boolean allowAmbiguity) {<NEW_LINE>if (!(sourceValue instanceof MapValueImpl)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean returnVal = true;<NEW_LINE...
valueEntry = (Map.Entry) object;
356,895
private AmazonS3 createAmazonS3Client(Configuration hadoopConfig, ClientConfiguration clientConfig) {<NEW_LINE>Optional<EncryptionMaterialsProvider> encryptionMaterialsProvider = createEncryptionMaterialsProvider(hadoopConfig);<NEW_LINE>AmazonS3Builder<? extends AmazonS3Builder, ? extends AmazonS3> clientBuilder;<NEW_L...
(clientConfig).withMetricsCollector(METRIC_COLLECTOR);
1,122,336
public void actionPerformed(ActionEvent e) {<NEW_LINE>MapViewPane view = frame.getView();<NEW_LINE>if (e.getSource() == zoomInButton) {<NEW_LINE>view.zoom(2, view.getWidth() / 2, view.getHeight() / 2);<NEW_LINE>} else if (e.getSource() == zoomOutButton) {<NEW_LINE>view.zoom(0.5f, view.getWidth() / 2, view.getHeight() /...
getMap().setEntityClassifier(eClassifier);
789,126
private UserConsentModel toConsentModel(RealmModel realm, FederatedUserConsentEntity entity) {<NEW_LINE>if (entity == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StorageId clientStorageId = null;<NEW_LINE>if (entity.getClientId() == null) {<NEW_LINE>clientStorageId = new StorageId(entity.getClientStorageProvider(...
StorageId(entity.getClientId());
1,247,716
protected void performRewrite(JavaFix.TransformationContext ctx) throws Exception {<NEW_LINE>CatchTree oldTree = (CatchTree) ctx.getPath().getLeaf();<NEW_LINE>TryTree oldTry = (TryTree) ctx.getPath().getParentPath().getLeaf();<NEW_LINE>WorkingCopy wcopy = ctx.getWorkingCopy();<NEW_LINE>GeneratorUtilities gen = Generato...
wcopy.rewrite(oldTry, result);
962,039
static Schema maybeAddFacets(Schema property, ElementFacetSource facets) {<NEW_LINE>if (facets == null) {<NEW_LINE>return property;<NEW_LINE>}<NEW_LINE>facets.elementFacet(EnumerationFacet.class).ifPresent(f -> {<NEW_LINE>if (property instanceof StringSchema) {<NEW_LINE>StringSchema stringProperty = (StringSchema) prop...
getAllowedValues(), BigDecimal.class);
1,795,278
private void addAccountApiRoles(RealmModel realm) {<NEW_LINE>ClientModel accountClient = realm.getClientByClientId(Constants.ACCOUNT_MANAGEMENT_CLIENT_ID);<NEW_LINE>RoleModel viewAppRole = accountClient.addRole(AccountRoles.VIEW_APPLICATIONS);<NEW_LINE>viewAppRole.setDescription("${role_" + AccountRoles.VIEW_APPLICATIO...
accountClient.addRole(AccountRoles.VIEW_CONSENT);
590,440
protected static void testSearch(RenderingRulesStorage storage) {<NEW_LINE>// long tm = System.nanoTime();<NEW_LINE>// int count = 100000;<NEW_LINE>// for (int i = 0; i < count; i++) {<NEW_LINE>RenderingRuleSearchRequest searchRequest = new RenderingRuleSearchRequest(storage);<NEW_LINE>searchRequest.setStringFilter(sto...
printResult(searchRequest, System.out);
173,741
protected double maintain() {<NEW_LINE>int attempts = 0;<NEW_LINE>int successes = 0;<NEW_LINE>NodeList activeNodes = nodeRepository().nodes().list(Node.State.active);<NEW_LINE>Map<ApplicationId, NodeList> retiredNodesByApplication = activeNodes.retired().groupingBy(node -> node.allocation().get().owner());<NEW_LINE>for...
ApplicationId application = entry.getKey();
1,580,550
final ListLensReviewsResult executeListLensReviews(ListLensReviewsRequest listLensReviewsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLensReviewsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.SERVICE_ID, "WellArchitected");
116,227
public void marshall(CreateChannelRequest createChannelRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createChannelRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createChannelRequest.get...
createChannelRequest.getMetadata(), METADATA_BINDING);
818,919
private HttpResponse applicationPackage(String tenantName, String applicationName, HttpRequest request) {<NEW_LINE>var tenantAndApplication = TenantAndApplicationId.from(tenantName, applicationName);<NEW_LINE>SortedSet<ApplicationVersion> versions = controller.applications().requireApplication(tenantAndApplication).ver...
.defaultId()), version);
978,973
private Sequence record(Table srcTable, Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("record" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>Expression srcExp;<NEW_LINE>int pos = 0;<NEW_LINE>if (param.isLeaf()) {<NEW_LINE>s...
+ mm.getMessage("function.invalidParam"));
1,678,017
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@name('variables') @public create variable int varhour;\n" + "@public create variable int varmin;\n" + "@public create variable int varsec;\n" + "@public create variable int varmsec;\n";<NEW_LINE>env...
(SupportDateTime.make(null));
1,449,567
// See http://hl7.org/fhir/valueset-filter-operator.html<NEW_LINE>private static boolean conceptMatchesFilter(ConceptDefinition concept, Set<String> classifications, Filter filter) {<NEW_LINE>String codeString = concept.getCode().getValue();<NEW_LINE>String filterValue = filter<MASK><NEW_LINE>switch(filter.getOp().getV...
.getValue().getValue();
1,275,868
public static void vertical(GrayF64 input, GrayF64 output, int radius, @Nullable GrowArray<DogArray_F64> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_F64::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_F64 work = workspaces.grow();<NEW_LINE>final <MASK><NEW_LINE>fi...
int kernelWidth = radius * 2 + 1;
486,396
public void read(org.apache.thrift.protocol.TProtocol prot, getDelegationToken_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming...
struct.sec.read(iprot);
1,697,907
public void cancel(CancelBackupStmt stmt) throws DdlException {<NEW_LINE><MASK><NEW_LINE>Database db = catalog.getDb(dbName);<NEW_LINE>if (db == null) {<NEW_LINE>ErrorReport.reportDdlException(ErrorCode.ERR_BAD_DB_ERROR, dbName);<NEW_LINE>}<NEW_LINE>AbstractJob job = dbIdToBackupOrRestoreJob.get(db.getId());<NEW_LINE>i...
String dbName = stmt.getDbName();
1,300,697
@Operation(summary = "List device assignments for a customer", description = "List device assignments for a customer")<NEW_LINE>public Response listAssignmentSummariesForCustomer(@Parameter(description = "Token that identifies customer", required = true) @PathParam("customerToken") String customerToken, @Parameter(desc...
customerToken, true, getDeviceManagement());
451,972
protected static Map<String, String> responseHeaders(RateLimitingConfig config, RateLimitResponse rtr, String defaultLimitHeader, String defaultRemainingHeader, String defaultResetHeader) {<NEW_LINE>Map<String, String> responseHeaders = new HashMap<>();<NEW_LINE>String limitHeader = config.getHeaderLimit();<NEW_LINE>if...
String resetHeader = config.getHeaderReset();