idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
115,450
public static DescribeIngressResponse unmarshall(DescribeIngressResponse describeIngressResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeIngressResponse.setRequestId(_ctx.stringValue("DescribeIngressResponse.RequestId"));<NEW_LINE>describeIngressResponse.setCode(_ctx.stringValue("DescribeIngressResponse.Code"));<...
(_ctx.stringValue("DescribeIngressResponse.ErrorCode"));
1,622,118
private static Certificate selfSign(KeyPair keyPair, String subjectDN) throws Exception {<NEW_LINE>Provider bcProvider = new BouncyCastleProvider();<NEW_LINE>Security.addProvider(bcProvider);<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>Date startDate = new Date(now);<NEW_LINE>X500Name dnName = new X500Name...
("2.5.29.19"), true, basicConstraints);
999,216
private boolean pruneProductConfig() {<NEW_LINE>log.fine("In pruneProductConfig");<NEW_LINE>boolean retVal = false;<NEW_LINE>DefaultMutableTreeNode rootProductConfig = this.m_RadioButtonTreeCellRenderer.root;<NEW_LINE>Enumeration children = rootProductConfig.breadthFirstEnumeration();<NEW_LINE>log.fine("About to prune"...
(DefaultMutableTreeNode) children.nextElement();
1,579,142
public void marshall(UpdateLocationSmbRequest updateLocationSmbRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateLocationSmbRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateLocati...
updateLocationSmbRequest.getAgentArns(), AGENTARNS_BINDING);
1,432,103
private void dbUpdateErrorMessages(@NonNull final ImportRecordsSelection selection) {<NEW_LINE>StringBuilder sql;<NEW_LINE>int no;<NEW_LINE>sql = new StringBuilder("UPDATE I_DiscountSchema ").append("SET I_IsImported='E', I_ErrorMsg=I_ErrorMsg||'ERR=No BPartner, ' ").append("WHERE C_BPartner_ID IS NULL ").append("AND I...
append(selection.toSqlWhereClause());
1,540,496
public void matchFound(Map<String, Object> matchEvent, EventBean optionalTriggeringEvent) {<NEW_LINE>Map<String, Object> matchEventInclusive = null;<NEW_LINE>if (pattern.isInclusive()) {<NEW_LINE>if (matchEvent.size() < 2) {<NEW_LINE>matchEventInclusive = matchEvent;<NEW_LINE>} else {<NEW_LINE>// need to reorder accord...
data = new HashMap<>();
1,380,457
// doIt<NEW_LINE>private String createFormat(MTable table) throws Exception {<NEW_LINE>log.info("Table Name:" + table.getTableName());<NEW_LINE>MColumn[] cols = table.getColumns(true);<NEW_LINE>String unique = null;<NEW_LINE>boolean fieldname = false;<NEW_LINE>for (MColumn col : cols) {<NEW_LINE>if (col.isIdentifier() ...
setHelp(table.getHelp());
378,501
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case IArchimatePackage.DIAGRAM_MODEL_NOTE__CONTENT:<NEW_LINE>return CONTENT_EDEFAULT == null ? content != null : !CONTENT_EDEFAULT.equals(content);<NEW_LINE>case IArchimatePackage.DIAGRAM_MODEL_NOTE__TEXT_POSITION:<NEW_LINE>return textPosition...
: !IMAGE_PATH_EDEFAULT.equals(imagePath);
622,932
/*<NEW_LINE>* This method retrieves all the types from the server in a TypeExplorer object.<NEW_LINE>* In the RequestBody:<NEW_LINE>* serverName is the name of the repository server to be interrogated.<NEW_LINE>* serverURLRoot is the root of the URL to use to connect to the server.<NEW_LINE>* enterpriseOption is ...
userId, serverName, serverURLRoot, enterpriseOption);
1,770,068
public String downloadS3Template(S3TO s3, long id, String url, String name, ImageFormat format, boolean hvm, Long accountId, String descr, String cksum, String installPathPrefix, String user, String password, long maxTemplateSizeInBytes, Proxy proxy, ResourceType resourceType) {<NEW_LINE>UUID uuid = UUID.randomUUID();<...
throw new CloudRuntimeException("Scheme is not supported " + url);
1,789,783
public SDVariable var(@NonNull final SDVariable v) {<NEW_LINE>if (variables.containsKey(v.name()) && variables.get(v.name()).getVariable().getArr() != null)<NEW_LINE>return variables.get(v.name()).getVariable();<NEW_LINE>if (v.name() == null)<NEW_LINE>throw new IllegalArgumentException("Name for variable must be define...
getArr().dup());
1,565,977
public void bindArguments() {<NEW_LINE>if (this.arguments != null) {<NEW_LINE>// by default arguments in abstract/native methods are considered to be used (no complaint is expected)<NEW_LINE>if (this.binding == null) {<NEW_LINE>for (int i = 0, length = this.arguments.length; i < length; i++) {<NEW_LINE>this.arguments[i...
AnnotationBinding[][] paramAnnotations = null;
597,761
public void keyReleased(KeyEvent keyEvent) {<NEW_LINE>if (keyEvent.getSource().equals(fieldProductName)) {<NEW_LINE>if (keyEvent.getKeyCode() == KeyEvent.VK_DOWN) {<NEW_LINE>if (productLookupComboBox != null) {<NEW_LINE>productLookupComboBox.requestFocus();<NEW_LINE>}<NEW_LINE>} else if (KeyEvent.VK_TAB == keyEvent.get...
null, exception.getLocalizedMessage());
1,541,390
public static DefaultOverdueCondition toOverdueCondition(final OverdueConditionJson input) {<NEW_LINE>final DefaultOverdueCondition result = new DefaultOverdueCondition();<NEW_LINE>if (input.getTimeSinceEarliestUnpaidInvoiceEqualsOrExceeds() != null) {<NEW_LINE>result.setTimeSinceEarliestUnpaidInvoiceEqualsOrExceeds(ne...
setControlTagExclusion(input.getControlTagExclusion());
679,400
public void checkPass(PortalRegistryService service, String token) {<NEW_LINE>String key = service.getTag() == null ? service.getServiceId() : service.getServiceId() + "|" + service.getTag();<NEW_LINE>String checkId = String.format("%s:%s:%s", key, service.getAddress(), service.getPort());<NEW_LINE>if (logger.isTraceEn...
map.put("pass", true);
38,438
public List<RoutingPolicy> fromSlime(ApplicationId owner, Slime slime) {<NEW_LINE>List<RoutingPolicy> policies = new ArrayList<>();<NEW_LINE><MASK><NEW_LINE>var field = root.field(routingPoliciesField);<NEW_LINE>field.traverse((ArrayTraverser) (i, inspect) -> {<NEW_LINE>Set<EndpointId> instanceEndpoints = new LinkedHas...
var root = slime.get();
129,942
public static DescribeRdsPerformanceSummaryResponse unmarshall(DescribeRdsPerformanceSummaryResponse describeRdsPerformanceSummaryResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRdsPerformanceSummaryResponse.setRequestId<MASK><NEW_LINE>describeRdsPerformanceSummaryResponse.setSuccess(_ctx.booleanValue("DescribeR...
(_ctx.stringValue("DescribeRdsPerformanceSummaryResponse.RequestId"));
700,703
public ModelPackageValidationSpecification unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ModelPackageValidationSpecification modelPackageValidationSpecification = new ModelPackageValidationSpecification();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle...
)).unmarshall(context));
1,068,969
public void marshall(SAMLOptionsInput sAMLOptionsInput, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (sAMLOptionsInput == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(sAMLOptionsInput.getEnabled(), ENABL...
sAMLOptionsInput.getSubjectKey(), SUBJECTKEY_BINDING);
841,623
private void configurePorts(Instance instance) {<NEW_LINE>BitWidth inWidth = <MASK><NEW_LINE>int inputs = instance.getAttributeValue(NUM_INPUTS);<NEW_LINE>int outWidth = computeOutputBits(inWidth.getWidth(), inputs);<NEW_LINE>int y;<NEW_LINE>int dy = 10;<NEW_LINE>switch(inputs) {<NEW_LINE>case 1:<NEW_LINE>y = 0;<NEW_LI...
instance.getAttributeValue(StdAttr.WIDTH);
7,609
protected void saveDecoderConfiguration() {<NEW_LINE>DecodeConfigNBFM config;<NEW_LINE>if (getItem().getDecodeConfiguration() instanceof DecodeConfigNBFM) {<NEW_LINE>config = (DecodeConfigNBFM) getItem().getDecodeConfiguration();<NEW_LINE>} else {<NEW_LINE>config = new DecodeConfigNBFM();<NEW_LINE>}<NEW_LINE>DecodeConf...
.getSelectedToggle().getUserData();
176,081
public String amount(Properties ctx, int WindowNo, GridTab mTab, GridField mField, Object value) {<NEW_LINE>if (isCalloutActive()) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>// get values<NEW_LINE>BigDecimal ExpenseAmt = (BigDecimal) mTab.getValue("ExpenseAmt");<NEW_LINE>CurrencyId C_Currency_From_ID = CurrencyId.ofRepo...
.getContextAsInt(ctx, "$C_Currency_ID"));
803,450
protected void initializePreparedStatements() throws SiteWhereException {<NEW_LINE>this.insertDeviceEventById = getClient().getSession().prepare("insert into " + getClient().getConfiguration(<MASK><NEW_LINE>this.insertDeviceEventByAltId = getClient().getSession().prepare("insert into " + getClient().getConfiguration()....
).getKeyspace() + ".events_by_id (device_id, event_id, alt_id, event_type, assignment_id, customer_id, area_id, asset_id, event_date, received_date, location, measurement, alert, invocation, response, state_change) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)");
1,550,961
private void cleanAndSave(Business business, ScriptVersion scriptVersion, Integer count) throws Exception {<NEW_LINE>List<String> keepIds = this.keepIds(business, scriptVersion, count);<NEW_LINE>EntityManager em = business.entityManagerContainer().get(ScriptVersion.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBu...
), scriptVersion.getScript());
1,771,943
private void recursiveUpdate(Deque<String> transformsToUpgrade, Map<UpdateResult.Status, Long> updatesByStatus, boolean dryRun, TimeValue timeout, ActionListener<Void> listener) {<NEW_LINE>String next = transformsToUpgrade.pollFirst();<NEW_LINE>// extra paranoia: return if next is null<NEW_LINE>if (next == null) {<NEW_...
updatesByStatus, dryRun, timeout, listener);
1,023,350
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent attachement = game.getPermanent(source.getSourceId());<NEW_LINE>if (attachement != null && attachement.getAttachedTo() != null) {<NEW_LINE>ObjectColor color = (ObjectColor) game.getState().getValue(attachement.getId() + "_color");<NEW_LINE>if (color !...
getPermanent(attachement.getAttachedTo());
505,943
protected void configure() {<NEW_LINE>LOGGER.debug("installing module: {}", UserDirectoryModule.class.getSimpleName());<NEW_LINE>Properties properties = <MASK><NEW_LINE>String userToolsClassName = getProperty("user.lookup.class.name", properties, "com.intuit.wasabi.userdirectory.impl.DefaultUserDirectory");<NEW_LINE>bi...
create(PROPERTY_NAME, UserDirectoryModule.class);
724,796
public static void sortByDimension(int[][] vectors, int currentDimension, int maxDimension, int leftBound, int rightBound) {<NEW_LINE>VectorSort comparator = new VectorSort(currentDimension);<NEW_LINE>sort(vectors, comparator, leftBound, rightBound);<NEW_LINE>if (currentDimension == maxDimension) {<NEW_LINE>return;<NEW...
1, maxDimension, rightBoundNew, rightBound);
31,094
final ListDeadLetterSourceQueuesResult executeListDeadLetterSourceQueues(ListDeadLetterSourceQueuesRequest listDeadLetterSourceQueuesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDeadLetterSourceQueuesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
818,196
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'pipe' is set<NEW_LINE>if (pipe == null) {<NEW_LINE>throw new ApiExce...
throw new ApiException(400, "Missing the required parameter 'url' when calling testQueryParameterCollectionFormat");
1,133,573
// Assumes arrival time is sorted<NEW_LINE>public static void schedule(int[] pid, int[] run, int[] arrival) {<NEW_LINE>int current_time = arrival[0];<NEW_LINE>int count = 0;<NEW_LINE>int[] q = new int[100];<NEW_LINE>boolean allArrived = false;<NEW_LINE>int qcount = 0;<NEW_LINE>for (int i = 0; i < arrival.length; i++) {...
pidmax] - (updated_time - current_time);
53,799
static boolean isConstant(CompilationInfo info, TreePath fieldPath) {<NEW_LINE>VariableTree var = (VariableTree) fieldPath.getLeaf();<NEW_LINE>if (!var.getModifiers().getFlags().containsAll(CONSTANT_MODS)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>TypeMirror tm = info.<MASK><NEW_LINE>switch(tm.getKind()) {<NEW_LINE>...
getTrees().getTypeMirror(fieldPath);
955,829
public void addBodyFileUpload(String name, String filename, File file, String contentType, boolean isText) throws ErrorDataEncoderException {<NEW_LINE>checkNotNull(name, "name");<NEW_LINE>checkNotNull(file, "file");<NEW_LINE>if (filename == null) {<NEW_LINE>filename = StringUtil.EMPTY_STRING;<NEW_LINE>}<NEW_LINE>String...
null, file.length());
1,092,553
public static void register(ProxyPreferences proxyPrefs) {<NEW_LINE>if (proxyPrefs.shouldUseProxy()) {<NEW_LINE>// NetworkTabView.java ensures that proxyHostname and proxyPort are not null<NEW_LINE>System.setProperty("http.proxyHost", proxyPrefs.getHostname());<NEW_LINE>System.setProperty("http.proxyPort", proxyPrefs.g...
"https.proxyHost", proxyPrefs.getHostname());
566,029
public Representation delete() throws ResourceException {<NEW_LINE>if (!this.directory.isModifiable()) {<NEW_LINE><MASK><NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Request contextRequest = new Request(Method.DELETE, this.targetUri);<NEW_LINE>Response contextResponse = new Response(contextRequest);<NEW_LINE>if (this.dire...
setStatus(Status.CLIENT_ERROR_METHOD_NOT_ALLOWED, "The directory is not modifiable.");
1,809,752
protected byte[] engineWrap(Key key) throws IllegalBlockSizeException, InvalidKeyException {<NEW_LINE>byte[] encoded = key.getEncoded();<NEW_LINE>if (encoded == null) {<NEW_LINE>throw new InvalidKeyException("Cannot wrap key, null encoding.");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>SecretWithEncapsulation secEnc = kemGen.g...
kWrap.init(true, keyParameter);
1,297
private void _initJIT2() {<NEW_LINE>if (isAdvancedDebugging()) {<NEW_LINE>buildLog = new StringAppender();<NEW_LINE>}<NEW_LINE>cw = new ClassWriter(<MASK><NEW_LINE>synchronized (Runtime.getRuntime()) {<NEW_LINE>cw.visit(OPCODES_VERSION, Opcodes.ACC_PUBLIC + Opcodes.ACC_SUPER, className = "ASMAccessorImpl_" + valueOf(cw...
ClassWriter.COMPUTE_MAXS + ClassWriter.COMPUTE_FRAMES);
489,225
static void extractJsonResults(String jsonStr, List<String> topics, Map<String, TopicWorkload> workloads) {<NEW_LINE>try {<NEW_LINE>JSONObject jsonObj = JSON.parseObject(jsonStr);<NEW_LINE>if (jsonObj == null) {<NEW_LINE>LOGGER.info("Failed to parse C3 result: " + jsonStr);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Str...
totalBytes = metrics.getLong("totalBytes");
1,668,237
public boolean startActivityForUrl(@Nullable WebView tab, @NonNull String url) {<NEW_LINE>Intent intent;<NEW_LINE>try {<NEW_LINE>intent = Intent.parseUri(url, Intent.URI_INTENT_SCHEME);<NEW_LINE>} catch (URISyntaxException ex) {<NEW_LINE>Log.w("Browser", "Bad URI " + url + <MASK><NEW_LINE>return false;<NEW_LINE>}<NEW_L...
": " + ex.getMessage());
984,751
public Pair<AlignedChunkReader, Long> nextReader() throws IOException {<NEW_LINE>AlignedChunkMetadata alignedChunkMetadata = alignedChunkMetadataList.get(++curIdx);<NEW_LINE>IChunkMetadata timeChunkMetadata = alignedChunkMetadata.getTimeChunkMetadata();<NEW_LINE>List<IChunkMetadata> valueChunkMetadataList = alignedChun...
Chunk[schemaList.size()];
705,828
private void markupGnuHashTable(TaskMonitor monitor) {<NEW_LINE>ElfDynamicTable dynamicTable = elf.getDynamicTable();<NEW_LINE>if (dynamicTable == null || !dynamicTable.containsDynamicValue(ElfDynamicType.DT_GNU_HASH)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DataType dt = DWordDataType.dataType;<NEW_LINE>Address hashTab...
addr, CodeUnit.EOL_COMMENT, "GNU Hash Table - chain");
212,235
public static ListMigrationWorkflowInstancesResponse unmarshall(ListMigrationWorkflowInstancesResponse listMigrationWorkflowInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMigrationWorkflowInstancesResponse.setRequestId(_ctx.stringValue("ListMigrationWorkflowInstancesResponse.RequestId"));<NEW_LINE>listMigr...
("ListMigrationWorkflowInstancesResponse.Data[" + i + "].Status"));
222,165
final DescribeCertificatesResult executeDescribeCertificates(DescribeCertificatesRequest describeCertificatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeCertificatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
667,883
public Object convert(Object dest, Object source, Class<?> arg2, Class<?> arg3) {<NEW_LINE>if (source == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (source instanceof Personne3) {<NEW_LINE>Personne3 person = (Personne3) source;<NEW_LINE>Date date = new <MASK><NEW_LINE>DateFormat format = new SimpleDateFormat(...
Date(person.getDtob());
1,665,428
public io.kubernetes.client.proto.Meta.StatusDetails buildPartial() {<NEW_LINE>io.kubernetes.client.proto.Meta.StatusDetails result = new io.kubernetes.client.proto.Meta.StatusDetails(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x0000...
util.Collections.unmodifiableList(causes_);
25,486
private boolean taskSucceeded(TaskControl lockedTask, TaskResult result) {<NEW_LINE>logger.trace("Task succeeded with result {}: {}", result, lockedTask.get());<NEW_LINE>if (lockedTask.getState() != TaskStateCode.RUNNING) {<NEW_LINE>logger.debug("Ignoring taskSucceeded callback to a {} task", lockedTask.getState());<NE...
updated = lockedTask.setRunningToPlannedSuccessful(result);
1,257,221
private static int runREPL(Context context) {<NEW_LINE>ConsoleHandler console;<NEW_LINE>try {<NEW_LINE>console = setupConsole();<NEW_LINE>} catch (IOException ioe) {<NEW_LINE>ioe.printStackTrace();<NEW_LINE>return 1;<NEW_LINE>}<NEW_LINE>int lineNumber = 0;<NEW_LINE>for (; ; ) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>i...
String line = console.readLine();
1,095,781
public void run(RegressionEnvironment env) {<NEW_LINE><MASK><NEW_LINE>String statementText = "@name('s0') select System.currentTimeMillis() " + STREAM_MDB_LEN5;<NEW_LINE>env.compileDeploy(statementText).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportMarketDataBean("IBM", 10d, 4L, ""));<NEW_LINE>env.assertEven...
Long startTime = System.currentTimeMillis();
419,188
@ConditionalOnProperty(prefix = "rocketmq", value = { "name-server", "producer.group" })<NEW_LINE>public DefaultMQProducer defaultMQProducer(RocketMQProperties rocketMQProperties) {<NEW_LINE>RocketMQProperties.Producer producerConfig = rocketMQProperties.getProducer();<NEW_LINE>String nameServer = rocketMQProperties.ge...
.getProducer().isEnableMsgTrace();
661,373
public final void term() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>PascalAST term_AST = null;<NEW_LINE>signedFactor();<NEW_LINE>astFactory.addASTChild(currentAST, returnAST);<NEW_LINE>{<NEW_LINE>_loop110: do {<NEW_LINE>if (((LA(1...
(1), getFilename());
1,853,472
public boolean onTouchEvent(final MotionEvent ev) {<NEW_LINE>if (!mSwipeInProgress) {<NEW_LINE>if (swipeStartLogic(ev)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>return super.onTouchEvent(ev);<NEW_LINE>}<NEW_LINE>if (mSwipeStart == null) {<NEW_LINE>throw new RuntimeException();<NEW_LINE>}<NEW_LINE>final int action = ...
.getAction() & MotionEvent.ACTION_MASK;
334,331
public void removeIndexLabelFromBaseLabel(IndexLabel indexLabel) {<NEW_LINE>HugeType baseType = indexLabel.baseType();<NEW_LINE>Id baseValue = indexLabel.baseValue();<NEW_LINE>SchemaLabel schemaLabel;<NEW_LINE>if (baseType == HugeType.VERTEX_LABEL) {<NEW_LINE>schemaLabel = this.getVertexLabel(baseValue);<NEW_LINE>} els...
"The base label '{}' of index label '{}' " + "may be deleted before", baseValue, indexLabel);
924,825
public void onResponse(Call call, final Response response) throws IOException {<NEW_LINE>if (!response.isSuccessful()) {<NEW_LINE>latch.countDown();<NEW_LINE>throw new IOException("Unexpected code " + response);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String res = response.body().string();<NEW_LINE>Log.d("Body", res);<NEW_L...
keyURL, new JSONArray(res));
128,228
public static DescribeDcdnUserSecDropByMinuteResponse unmarshall(DescribeDcdnUserSecDropByMinuteResponse describeDcdnUserSecDropByMinuteResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnUserSecDropByMinuteResponse.setRequestId(_ctx.stringValue("DescribeDcdnUserSecDropByMinuteResponse.RequestId"));<NEW_LINE>des...
("DescribeDcdnUserSecDropByMinuteResponse.Rows[" + i + "].RuleName"));
1,295,434
private boolean authenticate(OAuth2ClientAuthenticationToken clientAuthentication, RegisteredClient registeredClient) {<NEW_LINE>Map<String, Object> parameters = clientAuthentication.getAdditionalParameters();<NEW_LINE>if (!authorizationCodeGrant(parameters)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>OAuth2Authoriza...
OAuth2AuthorizationRequest.class.getName());
59,034
/*<NEW_LINE>* Creates a horizontal group and adds it to currentGroup.<NEW_LINE>* PARAMETERS:<NEW_LINE>* c: the context (this)<NEW_LINE>* currentArray: current JSON array containing the items of the group<NEW_LINE>* currentGroup: the group to add the menu<NEW_LINE>* label: the name of the menu<NEW_LINE>* currentGro...
LinearLayout localVerticalGroup = new LinearLayout(c);
1,292,734
public GetInstanceSnapshotResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetInstanceSnapshotResult getInstanceSnapshotResult = new GetInstanceSnapshotResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
JsonToken token = context.getCurrentToken();
1,026,727
public boolean onMenuItemClick(MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.context_menu_delete:<NEW_LINE>BackupManager.backupActiveBook();<NEW_LINE>mTransactionsDbAdapter.deleteRecord(transactionId);<NEW_LINE>WidgetConfigurationActivity.updateAllWidgets(getActivity());<NEW_LINE>refresh();<NE...
= new long[] { transactionId };
1,749,407
protected void encodePanel(FacesContext context, SelectOneMenu menu, List<SelectItem> selectItems) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String panelStyle = menu.getPanelStyle();<NEW_LINE>String panelStyleClass = menu.getPanelStyleClass();<NEW_LINE>panelStyleClass =...
"style", "max-height:" + height, null);
448,610
private static boolean isSecurePort(String hostname, int port, int depth) throws IOException, ConnectException, SocketTimeoutException {<NEW_LINE>// Open the socket with a short timeout for connects and reads.<NEW_LINE>Socket socket = new Socket();<NEW_LINE>try {<NEW_LINE>Logger.getLogger("glassfish-socket-connect-diag...
PrintWriter(socket.getOutputStream());
468,846
protected CommunicationChannel connect() {<NEW_LINE>logger.info("Connecting to INT-RS module at {}", this.port);<NEW_LINE>try {<NEW_LINE>CommPortIdentifier portIdentifier = CommPortIdentifier.getPortIdentifier(this.port);<NEW_LINE>SerialPort serialPort = portIdentifier.open("org.openhab.binding.satel", 2000);<NEW_LINE>...
error("Unsupported comm operation on port {}.", this.port);
92,295
private static void changePriorityAuto(List<DiskManagerFileInfo> file_list) {<NEW_LINE>int priority = 0;<NEW_LINE>Map<DownloadManager, ArrayList<DiskManagerFileInfo>> mapDMtoDMFI = new IdentityHashMap<>();<NEW_LINE>for (DiskManagerFileInfo file : file_list) {<NEW_LINE>DownloadManager dm = file.getDownloadManager();<NEW...
list = mapDMtoDMFI.get(dm);
1,292,294
public static void squashMultilines(Element rootElement) {<NEW_LINE>// Compute groups of consecutive sibling content with only newlines (and whitespace)<NEW_LINE>List<List<Text>> newLineGroups = new ArrayList<>();<NEW_LINE>List<Text> currentGroup = new ArrayList<>();<NEW_LINE>for (Content descendant : rootElement.getDe...
get(0).getParent();
1,633,490
public void testRequiredNonXAOptionA() throws Exception {<NEW_LINE>String deliveryID = "MD_test4b";<NEW_LINE>prepareTRA();<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("CMTJMSRequired");<NEW_LINE>// Add a option A delivery.<NEW_LINE><MASK><NEW_LINE>me...
message.add("CMTJMSRequired", "message1");
737,304
protected Pair<Boolean, Collection.CheckDatabaseResult> task(@NonNull Collection col, @NonNull ProgressSenderAndCancelListener<String> collectionTask) {<NEW_LINE>Timber.d("doInBackgroundCheckDatabase");<NEW_LINE>// Don't proceed if collection closed<NEW_LINE>if (col == null) {<NEW_LINE>Timber.e("doInBackgroundCheckData...
Pair<>(true, result);
1,121,496
public void generateCode(BlockScope currentScope, CodeStream codeStream, boolean valueRequired) {<NEW_LINE>cleanUpInferenceContexts();<NEW_LINE>int pc = codeStream.position;<NEW_LINE>// generate receiver/enclosing instance access<NEW_LINE>MethodBinding codegenBinding = this.binding instanceof PolymorphicMethodBinding ?...
codeStream.generateImplicitConversion(this.implicitConversion);
423,505
private void onPropertyRemove(EntityCursor entity, EntityType entityType, PropertyCursor propertyCursor, long[] tokens, int propertyKeyId, int[] existingPropertyKeyIds, Value value) {<NEW_LINE>assert noSchemaChangedInTx();<NEW_LINE>Collection<IndexDescriptor> indexes = storageReader.valueIndexesGetRelated(tokens, prope...
valueTuple = ValueTuple.of(values);
393,937
public NicProfile addVmToNetwork(final VirtualMachine vm, final Network network, final NicProfile requested) throws ConcurrentOperationException, ResourceUnavailableException, InsufficientCapacityException {<NEW_LINE>final <MASK><NEW_LINE>if (jobContext.isJobDispatchedBy(VmWorkConstants.VM_WORK_JOB_DISPATCHER)) {<NEW_L...
AsyncJobExecutionContext jobContext = AsyncJobExecutionContext.getCurrentExecutionContext();
1,633,285
protected void consumeSingleRequiresModuleName() {<NEW_LINE>ModuleReference impt;<NEW_LINE>int length;<NEW_LINE>char[][] tokens = new char[length = this.identifierLengthStack[this.identifierLengthPtr--]][];<NEW_LINE>this.identifierPtr -= length;<NEW_LINE>long[] positions = new long[length];<NEW_LINE>System.arraycopy(th...
1, tokens, 0, length);
1,543,480
protected void showSQLQuery(String query, String htmlQuery) {<NEW_LINE>HTMLTextArea area = new HTMLTextArea(htmlQuery);<NEW_LINE>JScrollPane areaScroll = new JScrollPane(area);<NEW_LINE>areaScroll.setPreferredSize(<MASK><NEW_LINE>JLabel label = new JLabel(Bundle.SnapshotResultsWindow_SqlQueryLabel(), JLabel.LEADING);<N...
new Dimension(500, 250));
843,230
public void onEvent(String keyword, String data) {<NEW_LINE>String[] payload = data.split(" ");<NEW_LINE>if (TorControlCommands.EVENT_BANDWIDTH_USED.equals(keyword)) {<NEW_LINE>handleBandwidth(Long.parseLong(payload[0]), Long.parseLong(payload[1]));<NEW_LINE>} else if (TorControlCommands.EVENT_NEW_DESC.equals(keyword))...
handleCircuitStatusExpandedNotifications(status, circuitId, path);
1,270,016
public S3 unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>S3 s3 = new S3();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == null)<NE...
int originalDepth = context.getCurrentDepth();
902,209
final GetMLTaskRunsResult executeGetMLTaskRuns(GetMLTaskRunsRequest getMLTaskRunsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMLTaskRunsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,325,771
private BLangLambdaFunction createLambdaFunction(Location pos, TypeNode returnType, BLangReturn returnNode, boolean isPassthrough) {<NEW_LINE>// function(_Frame frame) ... and ref to frame<NEW_LINE><MASK><NEW_LINE>BVarSymbol frameSymbol = new BVarSymbol(0, names.fromString(FRAME_PARAMETER_NAME), this.env.scope.owner.pk...
BType frameType = getFrameTypeSymbol().type;
1,051,687
public void nodeAtPosition(int p) {<NEW_LINE>if (p >= 0) {<NEW_LINE>System.out.print("Node at a position " + p + ": ");<NEW_LINE>int cnt = 0;<NEW_LINE>Node n = head;<NEW_LINE>Node temp = head;<NEW_LINE>while (n.next != head) {<NEW_LINE>n = n.next;<NEW_LINE>cnt++;<NEW_LINE>}<NEW_LINE>Node nnode = head;<NEW_LINE>if (n.ne...
System.out.println("Invalid position");
1,670,344
// CHECKSTYLE:OFF<NEW_LINE>private List<MavenArtifact> parseDependenciesNode(Node dependenciesNode) {<NEW_LINE>// CHECKSTYLE:ON<NEW_LINE>final List<MavenArtifact> deps = new ArrayList<>();<NEW_LINE>final NodeList dependencyNodes = dependenciesNode.getChildNodes();<NEW_LINE>for (int j = 0; j < dependencyNodes.getLength(...
.artifactId = childDependencyNode.getTextContent();
776,330
private List<NameValueCountPair> groupByStartTimeMonth(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Read.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LINE...
list = new ArrayList<>();
1,836,876
public void executeDDLs(File f, Statement sql) throws IOException {<NEW_LINE>BufferedReader reader = null;<NEW_LINE>StringBuilder warningBuf = new StringBuilder();<NEW_LINE>try {<NEW_LINE>reader = new BufferedReader(new FileReader(f));<NEW_LINE>String s;<NEW_LINE>while ((s = reader.readLine()) != null) {<NEW_LINE>try {...
"Java2DBProcessorHelper.sqlexception", s, null, ex);
243,684
protected void onBindPreferences() {<NEW_LINE>super.onBindPreferences();<NEW_LINE>ThanosManager thanos = ThanosManager.from(getContext());<NEW_LINE>if (!thanos.isServiceInstalled()) {<NEW_LINE>getPreferenceScreen().setEnabled(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SwitchPreferenceCompat nrt = findPreference(getSt...
NotificationRecord.Types.TYPE_GENERAL_NOTIFICATION, checked);
1,653,914
private void parseSize(VDTree apath, Attributes attributes) {<NEW_LINE>Pattern pattern = Pattern.compile("^\\s*(\\d+(\\.\\d+)*)\\s*([a-zA-Z]+)\\s*$");<NEW_LINE>HashMap<String, Integer> m = new HashMap<String, Integer>();<NEW_LINE>m.put("px", 1);<NEW_LINE>m.put("dip", 1);<NEW_LINE>m.put("dp", 1);<NEW_LINE>m.put("sp", 1)...
group(3).toLowerCase();
144,657
final public // ( <ESCAPE> <STRING_LITERAL> )?<NEW_LINE>Selector LikePredicate() throws ParseException {<NEW_LINE>Selector id;<NEW_LINE>Token pat;<NEW_LINE>Token esc = null;<NEW_LINE>boolean neg = false;<NEW_LINE>id = FieldRef();<NEW_LINE>switch((jj_ntk == -1) ? jj_ntk() : jj_ntk) {<NEW_LINE>case NOT:<NEW_LINE>jj_consu...
OperatorImpl(Operator.NOT, ans);
1,428,194
public static void main(String[] args) throws Exception {<NEW_LINE>BriefLogFormatter.init();<NEW_LINE>System.out.println("Connecting to node");<NEW_LINE>final <MASK><NEW_LINE>BlockStore blockStore = new MemoryBlockStore(params);<NEW_LINE>BlockChain chain = new BlockChain(params, blockStore);<NEW_LINE>PeerGroup peerGrou...
NetworkParameters params = TestNet3Params.get();
461,625
public static ClassTree addMethod(WorkingCopy copy, ClassTree tree, Modifier[] modifiers, String[] annotations, Object[] annotationAttrs, String name, Object returnType, String[] parameters, Object[] paramTypes, Object[] paramAnnotationsArray, Object[] paramAnnotationAttrsArray, String bodyText, String comment) {<NEW_L...
returnTypeTree = createTypeTree(copy, returnType);
801,347
private void createGetSizeMethod(ClassWriter cw, Map<String, BField> fields, String className) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, "size", "()I", null, null);<NEW_LINE>mv.visitCode();<NEW_LINE>int sizeVarIndex = 1;<NEW_LINE>mv.visitVarInsn(ALOAD, 0);<NEW_LINE>mv.visitMethodInsn(INVOKESPECIAL, MAP_V...
mv.visitVarInsn(ISTORE, sizeVarIndex);
22,695
public void sendBrowseStatus(int status, long browseId) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "sendBrowseStatus", new Object[] { Integer.valueOf(status), Long.valueOf(browseId) });<NEW_LINE>try {<NEW_LINE>ControlMessageFactory cmf;<NEW_LINE>ControlBrowseSta...
msg, _destMEUuid, _gatheringTargetDestUuid, null);
1,371,821
protected TableColumnDescriptor<VTMatch> createTableColumnDescriptor() {<NEW_LINE>TableColumnDescriptor<VTMatch> descriptor = new TableColumnDescriptor<>();<NEW_LINE>descriptor.addHiddenColumn(new SessionNumberTableColumn());<NEW_LINE>descriptor.addVisibleColumn(new StatusTableColumn(), 1, true);<NEW_LINE>descriptor.ad...
.addVisibleColumn(new SourceNamespaceTableColumn());
299,035
final DeleteProjectResult executeDeleteProject(DeleteProjectRequest deleteProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
558,218
private static double hexFloatLiteralToDouble(int index, boolean isNegative, long digits, long exponent, int virtualIndexOfPoint, long expNumber, boolean isDigitsTruncated, int skipCountInTruncatedDigits) {<NEW_LINE>if (digits == 0) {<NEW_LINE>return isNegative ? -0.0 : 0.0;<NEW_LINE>}<NEW_LINE>final double outDouble;<...
+ 1, (int) truncatedExponent);
408,397
public static Result dashboard() {<NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long finishDate = now - DAY;<NEW_LINE>// Update statistics only after FETCH_DELAY<NEW_LINE>if (now - _lastFetch > FETCH_DELAY) {<NEW_LINE>_numJobsAnalyzed = AppResult.find.where().gt(AppResult.TABLE.FINISH_TIME, finishDate).find...
render("Latest analysis", results)));
70,875
public void write(Record<T> record) {<NEW_LINE>SinkRecord<T> sinkRecord = (SinkRecord<T>) record;<NEW_LINE>TypedMessageBuilder<T> msg = pulsarSinkProcessor.newMessage(sinkRecord);<NEW_LINE>if (record.getKey().isPresent() && !(record.getSchema() instanceof KeyValueSchema && ((KeyValueSchema) record.getSchema()).getKeyVa...
eventTime.ifPresent(msg::eventTime);
963,445
public List<TableInfo> list(final ConnectorRequestContext requestContext, final QualifiedName name, @Nullable final QualifiedName prefix, @Nullable final Sort sort, @Nullable final Pageable pageable) {<NEW_LINE>try {<NEW_LINE>final String tableFilter = (prefix != null && prefix.isTableDefinition()) ? prefix.getTableNam...
-> t.getTblName()));
588,562
protected void masterOperation(Task task, final ResizeRequest resizeRequest, final ClusterState state, final ActionListener<ResizeResponse> listener) {<NEW_LINE>// there is no need to fetch docs stats for split but we keep it simple and do it anyway for simplicity of the code<NEW_LINE>final String sourceIndex = IndexNa...
getTargetIndexRequest().index());
1,520,379
private Member findMember(final DecoratedType value) {<NEW_LINE>if (FieldAndMethodAccessMode.CompositeDecoratedType.class.isInstance(value)) {<NEW_LINE>// unwrap to use the right reader<NEW_LINE>final FieldAndMethodAccessMode.CompositeDecoratedType<?> decoratedType = FieldAndMethodAccessMode.CompositeDecoratedType.clas...
DecoratedType type1 = decoratedType.getType1();
970,767
default void updateOrInsert(Map<String, List<String>> values, int ticketId, int eventId) {<NEW_LINE>Map<String, TicketFieldValue> toUpdate = findAllByTicketIdGroupedByName(ticketId);<NEW_LINE>values = Optional.ofNullable(values).orElseGet(Collections::emptyMap);<NEW_LINE>var additionalFieldsForEvent = findAdditionalFie...
.get(fieldName), fieldValue);
135,562
private void onLoadSkin(GameProfile profile, PlayerSkinProvider.SkinTextureAvailableCallback callback, boolean requireSecure, CallbackInfo ci) {<NEW_LINE>// Can't @Inject nicely because everything is wrapped in a lambda.<NEW_LINE>// Had to replace the whole method.<NEW_LINE>Runnable runnable = () -> {<NEW_LINE>HashMap<...
> map = Maps.newHashMap();
1,427,866
private void reloadPasswordValidator() {<NEW_LINE>try {<NEW_LINE>synchronized (passwordValidatorSynch) {<NEW_LINE>if (passwdValDoc != null && isEnabled(passwdValDoc)) {<NEW_LINE>if (passwordValidator != null) {<NEW_LINE>passwordValidator.dispose();<NEW_LINE>passwordValidator = null;<NEW_LINE>}<NEW_LINE>Class<?> cls = g...
error(this, "ODefaultServerSecurity.reloadPasswordValidator() class is not an OPasswordValidator", null);
432,107
private static Class<?> asClass(Type type) {<NEW_LINE>if (type instanceof WildcardType) {<NEW_LINE>WildcardType wildcardType = (WildcardType) type;<NEW_LINE>if (wildcardType.getUpperBounds()[0] instanceof Class) {<NEW_LINE>return (Class<?>) wildcardType.getUpperBounds()[0];<NEW_LINE>} else if (wildcardType.getUpperBoun...
GenericArrayType) type).getGenericComponentType();
1,158,136
static boolean clearLengthAtOffset(Structure structure, int offset, int length, TaskMonitor monitor) throws CancelledException {<NEW_LINE>if (structure.getLength() < offset + length) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<Integer> offsetsToClear <MASK><NEW_LINE>int endOfClear = offset + length;<NEW_LINE>whil...
= new ArrayList<Integer>();
1,286,977
private Optional<String> handleMrdEncryptedPrivateKey(String encryptedPrivateKey) {<NEW_LINE>EncryptionParameters encryptionParameters = mbwManager.getCachedEncryptionParameters();<NEW_LINE>// Try and decrypt with cached parameters if we have them<NEW_LINE>if (encryptionParameters != null) {<NEW_LINE>try {<NEW_LINE>Str...
, mbwManager.getNetwork()));
1,315,815
public void upgrade() throws IOException {<NEW_LINE>if (!DirectoryReader.indexExists(dir)) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>if (!deletePriorCommits) {<NEW_LINE>final Collection<IndexCommit> commits = DirectoryReader.listCommits(dir);<NEW_LINE>if (commits.size() > 1) {<NEW_LINE>throw new IllegalArgumentEx...
IndexNotFoundException(dir.toString());