idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
785,559
public static void enableLoggingOfRequestAndResponseIfValidationFails(LogDetail logDetail) {<NEW_LINE>LogConfig logConfig = LogConfig.<MASK><NEW_LINE>config = RestAssured.config().logConfig(logConfig);<NEW_LINE>// Update request specification if already defined otherwise it'll override the configs.<NEW_LINE>// Note tha...
logConfig().enableLoggingOfRequestAndResponseIfValidationFails(logDetail);
139,157
public void deleteById(String id) {<NEW_LINE>String groupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (groupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW...
format("The resource ID '%s' is not valid. Missing path segment 'tasks'.", id)));
1,710,997
public SearchPlaceIndexForPositionResult searchPlaceIndexForPosition(SearchPlaceIndexForPositionRequest searchPlaceIndexForPositionRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchPlaceIndexForPositionRequest);<NEW_LINE>AWSRequestM...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
490,326
public void onViewCreated(@NonNull View rootView, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(rootView, savedInstanceState);<NEW_LINE>if (rootView instanceof ViewGroup)<NEW_LINE>this.rootView = (ViewGroup) rootView;<NEW_LINE>dao = new ObjectBoxDAO(requireContext());<NEW_LINE>long nbLibraryBooks ...
long nbBookmarks = dao.countAllBookmarks();
1,254,013
public static void main(String[] args) throws IOException {<NEW_LINE>if (args.length < 2) {<NEW_LINE>_log.error("Usage: PegasusDataTemplateGenerator targetDirectoryPath [sourceFile or sourceDirectory or schemaName]+");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>final String generateImportedProperty = System.getProper...
System.getProperty(PegasusDataTemplateGenerator.GENERATOR_GENERATE_LOWERCASE_PATH);
1,790,913
synchronized void onRetry(@NonNull Job job, long backoffInterval) {<NEW_LINE>if (backoffInterval <= 0) {<NEW_LINE>throw new IllegalArgumentException("Invalid backoff interval! " + backoffInterval);<NEW_LINE>}<NEW_LINE>int nextRunAttempt = job.getRunAttempt() + 1;<NEW_LINE>long nextRunAttemptTime = System.currentTimeMil...
scheduler.schedule(delay, constraints);
1,783,172
private void generateEPL(final int inputColumns, final int outputColumns) {<NEW_LINE>this.script.getProperties().setProperty(<MASK><NEW_LINE>String vars = "";<NEW_LINE>if (inputColumns > 26) {<NEW_LINE>throw new EncogError("More than 26 input variables is not supported for EPL.");<NEW_LINE>} else if (inputColumns <= 3)...
ScriptProperties.ML_CONFIG_TYPE, MLMethodFactory.TYPE_EPL);
743,945
public int LAPACKE_sggsvp3_work(int arg0, byte arg1, byte arg2, byte arg3, int arg4, int arg5, int arg6, FloatPointer arg7, int arg8, FloatPointer arg9, int arg10, float arg11, float arg12, IntPointer arg13, IntPointer arg14, FloatPointer arg15, int arg16, FloatPointer arg17, int arg18, FloatPointer arg19, int arg20, I...
arg21, arg22, arg23, arg24);
1,824,480
public void purge(SiteMap map, SiteNode node) {<NEW_LINE>SiteNode child = null;<NEW_LINE>synchronized (map) {<NEW_LINE>while (node.getChildCount() > 0) {<NEW_LINE>try {<NEW_LINE>child = (SiteNode) node.getChildAt(0);<NEW_LINE>purge(map, child);<NEW_LINE>} catch (Exception e) {<NEW_LINE>logger.error(e.getMessage(), e);<...
getHistoryReference().getHistoryId());
990,372
public void sendGUINetworkData(Container containerEngine, ICrafting iCrafting) {<NEW_LINE>super.sendGUINetworkData(containerEngine, iCrafting);<NEW_LINE>iCrafting.sendProgressBarUpdate(containerEngine, 15, tankFuel.getFluid() != null && tankFuel.getFluid().getFluid() != null ? tankFuel.getFluid().getFluid().getID() : 0...
).getID() : 0);
1,116,572
public void marshall(FirewallRuleGroupAssociation firewallRuleGroupAssociation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (firewallRuleGroupAssociation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(...
firewallRuleGroupAssociation.getPriority(), PRIORITY_BINDING);
61,193
protected static Set<String> createRelationshipTypes(Set<String> features) {<NEW_LINE>Set<String> relationshipTypes = new TreeSet<String>();<NEW_LINE>if (features.contains(PP_COMMON_MOVE_BOOKMARKS) || features.contains(PP_COMMON_CONTAINERIZATION) || features.contains(PP_COMMON_COMBINE_FIELDS)) {<NEW_LINE>relationshipTy...
relationshipTypes.add(Namespaces.HEADER);
648,691
protected String doIt() throws Exception {<NEW_LINE>log.info("C_Order_ID=" + p_C_Order_ID + <MASK><NEW_LINE>if (p_C_Order_ID == 0)<NEW_LINE>throw new IllegalArgumentException("No Order");<NEW_LINE>MDocType dt = MDocType.get(getCtx(), p_C_DocType_ID);<NEW_LINE>if (dt.get_ID() == 0)<NEW_LINE>throw new IllegalArgumentExce...
", C_DocType_ID=" + p_C_DocType_ID + ", CloseDocument=" + p_IsCloseDocument);
1,033,435
public void applyDiagnosisKeyHourRetentionPolicy(long retentionDays) {<NEW_LINE>Set<String> countries = Set.of(originCountry, euPackageName);<NEW_LINE>countries.forEach(country -> {<NEW_LINE>List<S3Object> diagnosisKeysObjects = objectStoreAccess.getObjectsWithPrefix(getDiagnosisKeyPrefix(country));<NEW_LINE>final Loca...
collect(Collectors.toList());
906,120
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) {<NEW_LINE>final Calc calc = compiler.compileAs(call.getArg(0), null, ResultStyle.ITERABLE_ANY);<NEW_LINE>final boolean includeEmpty = call.getArgCount() < 2 || ((Literal) call.getArg(1)).getValue().equals("INCLUDEEMPTY");<NEW_LINE>return new AbstractI...
).usesHierarchy(hierarchy, true);
499,661
public boolean start() {<NEW_LINE>QueryBuilder<AccountVO> acntq = QueryBuilder.create(AccountVO.class);<NEW_LINE>acntq.and(acntq.entity().getAccountName(), SearchCriteria.<MASK><NEW_LINE>AccountVO acnt = acntq.find();<NEW_LINE>if (acnt != null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>acnt = new AccountVO();<NEW_LIN...
Op.EQ, BaremetalUtils.BAREMETAL_SYSTEM_ACCOUNT_NAME);
427,021
protected void scrollY(ScrollBar vBar) {<NEW_LINE>int vSelection = vBar.getSelection();<NEW_LINE>Rectangle bounds = getVirtualBounds();<NEW_LINE>int y = -vSelection;<NEW_LINE>int cellHeight = getCellHeight();<NEW_LINE>if (cellHeight > 0) {<NEW_LINE>int remainder = y % cellHeight;<NEW_LINE>if (remainder < 0) {<NEW_LINE>...
int deltaY = y - bounds.y;
478,588
final CreateSpotDatafeedSubscriptionResult executeCreateSpotDatafeedSubscription(CreateSpotDatafeedSubscriptionRequest createSpotDatafeedSubscriptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSpotDatafeedSubscriptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
958,885
public void process(Channel channel, Command command) {<NEW_LINE>Preconditions.checkArgument(CommandType.TASK_KILL_REQUEST == command.getType(), String.format("invalid command type : %s", command.getType()));<NEW_LINE>TaskKillRequestCommand killCommand = JSONUtils.parseObject(command.getBody(), TaskKillRequestCommand.c...
getByTaskInstanceId(killCommand.getTaskInstanceId());
1,583,268
private void updateBalance(Account account) {<NEW_LINE>transaction2balance.clear();<NEW_LINE>if (account == null)<NEW_LINE>return;<NEW_LINE>List<AccountTransaction> tx = new ArrayList<>(account.getTransactions());<NEW_LINE>Collections.sort(tx, Transaction.BY_DATE);<NEW_LINE>MutableMoney balance = MutableMoney.of(accoun...
subtract(t.getMonetaryAmount());
692,553
public void exitWccp_id(Wccp_idContext ctx) {<NEW_LINE>if (ctx.group_list != null) {<NEW_LINE>String name = ctx.group_list.getText();<NEW_LINE>int line = ctx.group_list.getStart().getLine();<NEW_LINE>_configuration.referenceStructure(IP_ACCESS_LIST, name, WCCP_GROUP_LIST, line);<NEW_LINE>}<NEW_LINE>if (ctx.redirect_lis...
= ctx.service_list.getText();
681,862
final DescribeScheduledQueryResult executeDescribeScheduledQuery(DescribeScheduledQueryRequest describeScheduledQueryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeScheduledQueryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
113,061
private Module registerModule(Path file) {<NEW_LINE>if (!FS.canReadFile(file)) {<NEW_LINE>throw new IllegalStateException("Cannot read file: " + file);<NEW_LINE>}<NEW_LINE>String shortName = _baseHome.toShortForm(file);<NEW_LINE>try {<NEW_LINE>StartLog.debug("Registering Module: %s", shortName);<NEW_LINE>Module module ...
= new Module(_baseHome, file);
283,366
static Context of(Map<?, ?> map) {<NEW_LINE>int size = Objects.requireNonNull(map, "map").size();<NEW_LINE>if (size == 0)<NEW_LINE>return Context.empty();<NEW_LINE>if (size <= 5) {<NEW_LINE>Map.Entry[] entries = map.entrySet().toArray(new Map.Entry[size]);<NEW_LINE>switch(size) {<NEW_LINE>case 1:<NEW_LINE>return new Co...
[4].getValue());
1,072,575
protected void customize(SSLEngine sslEngine, Request request) {<NEW_LINE>SSLSession sslSession = sslEngine.getSession();<NEW_LINE>if (isSniRequired() || isSniHostCheck()) {<NEW_LINE>String sniHost = (String) sslSession.getValue(SslContextFactory.Server.SNI_HOST);<NEW_LINE>X509 x509 = (X509) sslSession.getValue(X509_CE...
(X509Certificate) certificates[0]);
1,708,869
final ExportTransitGatewayRoutesResult executeExportTransitGatewayRoutes(ExportTransitGatewayRoutesRequest exportTransitGatewayRoutesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exportTransitGatewayRoutesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
756,367
public void run() {<NEW_LINE>// get full control of desktop<NEW_LINE>org.zkoss.zk.ui.Desktop desktop = WTask.this.getDesktop();<NEW_LINE>String cmd = Msg.parseTranslation(Env.getCtx(), m_task.<MASK><NEW_LINE>if (cmd == null || cmd.equals(""))<NEW_LINE>info.setContent("Cannot execute '" + m_task.getOS_Command() + "'");<...
getOS_Command()).trim();
546,488
protected void applyFocusForMetering(@NonNull CaptureRequest.Builder builder) {<NEW_LINE>int[] modesArray = readCharacteristic(CameraCharacteristics.CONTROL_AF_AVAILABLE_MODES, new int[] {});<NEW_LINE>List<Integer> modes = new ArrayList<>();<NEW_LINE>for (int mode : modesArray) {<NEW_LINE>modes.add(mode);<NEW_LINE>}<NE...
CaptureRequest.CONTROL_AF_MODE, CaptureRequest.CONTROL_AF_MODE_AUTO);
1,552,616
final DescribeLoggingConfigurationResult executeDescribeLoggingConfiguration(DescribeLoggingConfigurationRequest describeLoggingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLoggingConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
endClientExecution(awsRequestMetrics, request, response);
366,524
public CodegenExpression codegen(EnumForgeCodegenParams premade, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>ExprForgeCodegenSymbol scope <MASK><NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChildWithScope(returnType(), this.getClass(), scope, codegenClassScope).a...
= new ExprForgeCodegenSymbol(false, null);
1,192,462
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create json schema Book(bookId string, price BigDecimal);\n", path);<NEW_LINE>env.compileDeploy("@public create json schema Shelf(shelfId string, book Book);\n", path);<NEW_LINE>env.comp...
"L", "I1", "S11", null);
570,431
private void updateIconForChangeIndicator(ArchiveNode node, MultiIcon multiIcon) {<NEW_LINE>DataTypeManager dtm = node.getArchive().getDataTypeManager();<NEW_LINE>if (dtm == null) {<NEW_LINE>// for InvalidArchiveNodes<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<SourceArchive> sourceArchives = dtm.getSourceArchives();<NEW...
(CONFLICT_ICON, 6, 9));
617,655
public ApplicationClient adapt(Container root, OverlayContainer rootOverlay, ArtifactContainer artifactContainer, Container containerToAdapt) throws UnableToAdaptException {<NEW_LINE>NonPersistentCache cache = containerToAdapt.adapt(NonPersistentCache.class);<NEW_LINE>ApplicationClient appClient = (ApplicationClient) c...
containerToAdapt.getEntry(ApplicationClient.DD_NAME);
1,423,856
public ConfirmPublicVirtualInterfaceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ConfirmPublicVirtualInterfaceResult confirmPublicVirtualInterfaceResult = new ConfirmPublicVirtualInterfaceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle...
JsonToken token = context.getCurrentToken();
487,425
private Mono<Response<Flux<ByteBuffer>>> listEffectiveNetworkSecurityGroupsWithResponseAsync(String resourceGroupName, String networkInterfaceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is require...
error(new IllegalArgumentException("Parameter networkInterfaceName is required and cannot be null."));
1,543,356
public SigningProfileRevocationRecord unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SigningProfileRevocationRecord signingProfileRevocationRecord = new SigningProfileRevocationRecord();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCu...
JsonToken token = context.getCurrentToken();
191,176
private int calcHitLine(final double y) {<NEW_LINE>final int linecount = m_content.getLineCount();<NEW_LINE>final double lineHeight = m_content.getLineHeight();<NEW_LINE>int hitline = 0;<NEW_LINE>if (y < m_content.getLineContent(0).getBounds().getMinY()) {<NEW_LINE>hitline = 0;<NEW_LINE>} else if (y > (m_content.getLin...
), bounds.getHeight());
1,320,933
@ExceptionMetered<NEW_LINE>@Path("/{id : [a-zA-Z0-9\\-_]+}")<NEW_LINE>@ApiOperation(value = "Update deploy", notes = "Update deploy given a deploy id and a deploy object. Current only " + "acceptanceStatus and description are allowed to change.")<NEW_LINE>public void update(@Context SecurityContext sc, @ApiParam(value ...
"{} successfully updated deploy {} with {}", userName, id, deployBean);
806,597
public final void typeList() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>PascalAST typeList_AST = null;<NEW_LINE>indexType();<NEW_LINE>astFactory.addASTChild(currentAST, returnAST);<NEW_LINE>{<NEW_LINE>_loop45: do {<NEW_LINE>if ((L...
typeList_AST = (PascalAST) currentAST.root;
437,634
public void push(final OutputStream out) throws IOException {<NEW_LINE>Runnable r = () -> {<NEW_LINE>InputStream in = null;<NEW_LINE>try {<NEW_LINE>// byte data[] = new byte[65536];<NEW_LINE>RandomAccessFile rf = new RandomAccessFile(file, "r");<NEW_LINE>arc = SevenZip.openInArchive(<MASK><NEW_LINE>ISimpleInArchive sim...
null, new RandomAccessFileInStream(rf));
1,632,974
public static String markMediaFailed(Context context, @NonNull String postContent, String localMediaId, MediaFile mediaFile) {<NEW_LINE>if (mediaFile != null) {<NEW_LINE>// fill in Aztec with the post's content<NEW_LINE>AztecParser parser = getAztecParserWithPlugins();<NEW_LINE>SpannableStringBuilder builder = getCalyp...
postContent = toHtml(builder, parser);
418,432
public void resolveTable(List<String> names, SqlNameMatcher nameMatcher, Path path, Resolved resolved) {<NEW_LINE>final List<Resolve> imperfectResolves = new ArrayList<>();<NEW_LINE>final List<Resolve> resolves = ((ResolvedImpl) resolved).resolves;<NEW_LINE>if (names.size() == 3) {<NEW_LINE>List<String> finalNames = na...
ResolvedImpl) resolved).clear();
1,793,067
private JPanel createSouthPanel(Table table) {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>TableModel model = null;<NEW_LINE>GTable gTable = new GTable();<NEW_LINE>if (table.getRecordCount() <= 10000) {<NEW_LINE>model = new DbSmallTableModel(table);<NEW_LINE>} else {<NEW_LINE>model = new DbLargeTab...
[] stats = getStats(table);
1,605,056
private void initialize() {<NEW_LINE>// Try to keep the area approximately 1.0<NEW_LINE>width = <MASK><NEW_LINE>height = 1.0 / width;<NEW_LINE>// TODO: center/arrange visualizations?<NEW_LINE>for (Iterator<VisualizationTask> tit = item.tasks.iterator(); tit.hasNext(); ) {<NEW_LINE>VisualizationTask task = tit.next();<N...
Math.sqrt(getRatio());
712,804
final RecordHandlerProgressResult executeRecordHandlerProgress(RecordHandlerProgressRequest recordHandlerProgressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(recordHandlerProgressRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "RecordHandlerProgress");
726,145
public static void main(String[] args) {<NEW_LINE>Loader.loadNativeLibraries();<NEW_LINE>// [START solver]<NEW_LINE>MPSolver solver = MPSolver.createSolver("GLOP");<NEW_LINE>// [END solver]<NEW_LINE>// [START variables]<NEW_LINE>double infinity = java.lang.Double.POSITIVE_INFINITY;<NEW_LINE>// x and y are continuous no...
c0.setCoefficient(x, 1);
1,186,430
public TextChannel createTextChannel(GuildImpl guildObj, DataObject json, long guildId) {<NEW_LINE>boolean playbackCache = false;<NEW_LINE>final long id = json.getLong("id");<NEW_LINE>TextChannelImpl channel = (TextChannelImpl) getJDA().<MASK><NEW_LINE>if (channel == null) {<NEW_LINE>if (guildObj == null)<NEW_LINE>guil...
getTextChannelsView().get(id);
1,063,058
public static DescribeExpressSyncSharesResponse unmarshall(DescribeExpressSyncSharesResponse describeExpressSyncSharesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeExpressSyncSharesResponse.setRequestId(_ctx.stringValue("DescribeExpressSyncSharesResponse.RequestId"));<NEW_LINE>describeExpressSyncSharesResponse...
("DescribeExpressSyncSharesResponse.Shares[" + i + "].GatewayId"));
654,445
public static void main(String[] args) throws IOException {<NEW_LINE>Exchange coingi = CoingiDemoUtils.createExchange();<NEW_LINE>MarketDataService marketDataService = coingi.getMarketDataService();<NEW_LINE>OrderBook orderBook = marketDataService.getOrderBook(CurrencyPair.BTC_EUR);<NEW_LINE>// The following example li...
> asks = orderBook.getAsks();
509,667
public static DescribeDomainQpsWithCacheResponse unmarshall(DescribeDomainQpsWithCacheResponse describeDomainQpsWithCacheResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainQpsWithCacheResponse.setRequestId(_ctx.stringValue("DescribeDomainQpsWithCacheResponse.RequestId"));<NEW_LINE>describeDomainQpsWithCacheRe...
("DescribeDomainQpsWithCacheResponse.Blocks[" + i + "]"));
585,366
final UpdateChannelReadMarkerResult executeUpdateChannelReadMarker(UpdateChannelReadMarkerRequest updateChannelReadMarkerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateChannelReadMarkerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
endClientExecution(awsRequestMetrics, request, response);
11,064
// ----------------//<NEW_LINE>// validateSheets //<NEW_LINE>// ----------------//<NEW_LINE>@Action<NEW_LINE>public void validateSheets(ActionEvent e) {<NEW_LINE>List<Descriptor> sheets = sheetSelector.list.getSelectedValuesList();<NEW_LINE><MASK><NEW_LINE>if (size > 0) {<NEW_LINE>JFrame frame = new JFrame("Sheets " + ...
int size = sheets.size();
689,625
public static void createExternalSymbols(HashMap<String, ArrayList<Function>> symbolMap) {<NEW_LINE>for (Map.Entry<String, ArrayList<Function>> functions : symbolMap.entrySet()) {<NEW_LINE>ExternSymbol extSym = new ExternSymbol();<NEW_LINE>extSym.setName(functions.getKey());<NEW_LINE>for (Function func : functions.getV...
setNoReturn(func.hasNoReturn());
859,478
protected void executeRollbackScript(String rollbackScript, List<ChangeSet> changeSets, Contexts contexts, LabelExpression labelExpression) throws LiquibaseException {<NEW_LINE>final Executor executor = Scope.getCurrentScope().getSingleton(ExecutorService.class).getExecutor("jdbc", database);<NEW_LINE>String rollbackSc...
) changeExecListener).setRollbackScriptContents(rollbackScriptContents);
82,114
private static void addRecordFields(List<String> required, List<Node> recordFieldList, Map.Entry<String, Schema> field, Map<String, NonTerminalNode> typeDefinitionNodes, boolean isRecordTypeDescriptor) throws JsonToRecordConverterException {<NEW_LINE>TypeDescriptorNode fieldTypeName = extractOpenApiSchema(field.getValu...
getKey(), typeDefinitionNodes, isRecordTypeDescriptor);
1,552,409
public void login() {<NEW_LINE>String content = String.format("grant_type=password&username=%1$s&password=%2$s&expires_in=0", urlEncode(username), urlEncode(password));<NEW_LINE>sendCommand(null, "createToken", "particle", "particle", content, new HttpResponseHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public voi...
readValue(responseBody, TokenResponse.class);
311,122
public Observable<HttpClientResponse<O>> call(Server server) {<NEW_LINE>HttpClient<I, O> rxClient = getOrCreateRxClient(server);<NEW_LINE>setHostHeader(request, server.getHost());<NEW_LINE>Observable<HttpClientResponse<O>> o;<NEW_LINE>if (rxClientConfig != null) {<NEW_LINE>o = rxClient.submit(request, rxClientConfig);<...
(count.getAndIncrement()));
138,744
private StoredValue readSetting(final PwmSetting setting) {<NEW_LINE>if (DomainID.systemId().equals(domainID)) {<NEW_LINE>if (setting.getCategory().getScope() == PwmSettingScope.DOMAIN) {<NEW_LINE>final String msg = "attempt to read domain scope setting '" + setting.toMenuLocationDebug(profileID, null) + "' as system s...
.toMenuLocationDebug(profileID, null));
1,130,302
public Void visitIdentifier(IdentifierTree identifierTree, Void unused) {<NEW_LINE>if (identifierTree.getName().contentEquals("this")) {<NEW_LINE>return super.visitIdentifier(identifierTree, unused);<NEW_LINE>}<NEW_LINE>Symbol symbol = getSymbol(identifierTree);<NEW_LINE>if (symbol == null || ASTHelpers.isLocal(symbol)...
getQualifiedName().toString());
1,172,671
public void success(Object response) {<NEW_LINE>if (response != null) {<NEW_LINE>Map<String, Object> responseMap = (<MASK><NEW_LINE>Integer action = (Integer) responseMap.get("action");<NEW_LINE>if (action != null) {<NEW_LINE>switch(action) {<NEW_LINE>case 1:<NEW_LINE>String username = (String) responseMap.get("usernam...
Map<String, Object>) response;
348,474
int offer(ByteBuffer buffer, int newOffset) {<NEW_LINE>if (newOffset < 0) {<NEW_LINE>throw new IllegalArgumentException("Negative offset: " + newOffset);<NEW_LINE>}<NEW_LINE>if (buffers.length == count) {<NEW_LINE>doubleCapacity();<NEW_LINE>}<NEW_LINE>buffers[endIndex] = buffer.asReadOnlyBuffer();<NEW_LINE>bufferIds[en...
buffers[i].limit();
1,837,913
static long doPMmapI64(PMMap mmap, long byteIdx, @Exclusive @Cached LookupInheritedAttributeNode.Dynamic lookupGetItemNode, @Exclusive @Cached CallNode callGetItemNode, @Cached PyLongAsLongNode asLongNode) {<NEW_LINE>long len = mmap.getLength();<NEW_LINE>Object attrGetItem = lookupGetItemNode.execute(mmap, SpecialMetho...
byteIdx)) << shift) & mask;
47,584
public com.squareup.okhttp.Call endpointCertificatesGetCall(String xWSO2Tenant, String alias, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path an...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
671,130
protected void processVariableAggregationDefinitions(VariableAggregationDefinitions aggregations, ObjectNode propertiesNode) {<NEW_LINE>if (aggregations == null) {<NEW_LINE>propertiesNode.putNull(PROPERTY_MULTIINSTANCE_VARIABLE_AGGREGATIONS);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ObjectNode aggregationsNode = properties...
"target", definition.getTarget());
822,007
/* (non-Javadoc)<NEW_LINE>* @see org.openide.nodes.ChildFactory#createKeys(java.util.List)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected boolean createKeys(final List<ResourceNode> keys) {<NEW_LINE>WLDeploymentManager manager = lookup.lookup(WLDeploymentManager.class);<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>suppor...
WLConnectionSupport support = manager.getConnectionSupport();
1,817,273
private List<FrameworkCommand> filter() {<NEW_LINE>List<FrameworkCommand> matching = new ArrayList<>();<NEW_LINE>Pattern pattern = StringUtils.getPattern(filter);<NEW_LINE>if (pattern != null) {<NEW_LINE>for (FrameworkCommand task : tasks) {<NEW_LINE>// NOI18N<NEW_LINE>String command = StringUtils.implode(Arrays.asList...
.getCommands()), " ");
127,450
public void start() {<NEW_LINE>WebClient client = WebClient.create(vertx);<NEW_LINE>vertx.createHttpServer().requestHandler(req -> {<NEW_LINE>switch(req.path()) {<NEW_LINE>case "/hello":<NEW_LINE>client.get(8081, "localhost", "/").expect(ResponsePredicate.SC_OK).send().onSuccess(resp -> req.response().end(resp.body()))...
setStatusCode(500).end();
521,071
public void buildCtrLexMatrix(String id, XVariables.XVarInteger[][] matrix, Types.TypeOperatorRel operator) {<NEW_LINE>switch(operator) {<NEW_LINE>case LT:<NEW_LINE>{<NEW_LINE>model.lexChainLess(vars(matrix)).post();<NEW_LINE>XVariables.XVarInteger[][] tmatrix = ArrayUtils.transpose(matrix);<NEW_LINE>model.lexChainLess...
rmatrix))).post();
296,092
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>HttpServletRequest req = (HttpServletRequest) request;<NEW_LINE>HttpServletResponse resp = (HttpServletResponse) response;<NEW_LINE>String servletPath = servletPathPrefix;<NEW_LINE>i...
resp.setContentType(MediaType.APPLICATION_JSON);
61,899
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>app = requireMyApplication();<NEW_LINE>boolean nightMode = !app.getSettings().isLightActionBar();<NEW_LINE>LayoutInflater themedInflater = UiUtilities.getInflater(requireContext(), n...
setTextHorizontalGravity(houseNumberEditText, Gravity.START);
1,103,223
public void webSocketHandshakeResponseReceived(InspectorWebSocketResponse response) {<NEW_LINE>NetworkPeerManager peerManager = getPeerManagerIfEnabled();<NEW_LINE>if (peerManager != null) {<NEW_LINE>Network.WebSocketHandshakeResponseReceivedParams params = new Network.WebSocketHandshakeResponseReceivedParams();<NEW_LI...
responseJSON = new Network.WebSocketResponse();
1,201,102
final GetEC2RecommendationProjectedMetricsResult executeGetEC2RecommendationProjectedMetrics(GetEC2RecommendationProjectedMetricsRequest getEC2RecommendationProjectedMetricsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEC2RecommendationProjectedMetricsRequest);<NEW_LINE>AWSRequestMet...
(super.beforeMarshalling(getEC2RecommendationProjectedMetricsRequest));
1,850,725
final PutScalingPolicyResult executePutScalingPolicy(PutScalingPolicyRequest putScalingPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putScalingPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
55,129
protected void onHitEntity(@Nonnull EntityHitResult result) {<NEW_LINE>super.onHitEntity(result);<NEW_LINE>if (level.isClientSide) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Entity entity = result.getEntity();<NEW_LINE>if (entity.getType() == EntityType.GHAST && level.dimension() == Level.OVERWORLD) {<NEW_LINE>level.levelE...
withParameter(LootContextParams.THIS_ENTITY, entity);
643,396
/* (non-Javadoc)<NEW_LINE>* @see ghidra.framework.main.DataTreeDialog#buildMainPanel()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected JPanel buildMainPanel() {<NEW_LINE>mainPanel = super.buildMainPanel();<NEW_LINE>mainPanel.setMinimumSize(<MASK><NEW_LINE>splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);<NEW_L...
new Dimension(200, HEIGHT));
302,097
public static void showModulesUpdatedNotification() {<NEW_LINE>Intent intent = new Intent(sContext, WelcomeActivity.class);<NEW_LINE>intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);<NEW_LINE>intent.putExtra(FRAGMENT_ID, 0);<NEW_LINE>PendingIntent pInstallTab = PendingIntent.getActivity(sContext, PENDING_INTENT_OPEN_INST...
getString(R.string.xposed_module_updated_notification_title);
246,987
public String apply() {<NEW_LINE>// This function can be called by the migration window, step tab for both<NEW_LINE>// rollback and apply. Determine if we need to apply or rollback the step<NEW_LINE>if (MMigrationStep.STATUSCODE_Applied.equals(getStatusCode()) && MMigrationStep.APPLY_Rollback.equals(getApply())) {<NEW...
String retval = this.toString();
247,538
public void process(double[] input, double[] output) {<NEW_LINE>// given the current value of v, compute P3<NEW_LINE>// P3 = [cross(T31)'*F31 + T31*v' | T31 ]<NEW_LINE>computeP3(input);<NEW_LINE>// [R,T] = [P3*P2 | P3*u]<NEW_LINE>CommonOps_DDRM.mult(P3, P2inv, R);<NEW_LINE>GeometryMath_F64.mult(P3, u, a);<NEW_LINE>// C...
scale(1.0 / n, F32_est);
1,462,688
private void removeUsedParameters(Expression expression, Map<String, ClassNode> availableParams) {<NEW_LINE>if (expression instanceof MethodCall) {<NEW_LINE>// next find out if there are any existing named args<NEW_LINE>MethodCall call = (MethodCall) expression;<NEW_LINE>Expression arguments = call.getArguments();<NEW_...
.getKeyExpression().getText();
1,427,481
public static GetVehicleRepairPlanResponse unmarshall(GetVehicleRepairPlanResponse getVehicleRepairPlanResponse, UnmarshallerContext _ctx) {<NEW_LINE>getVehicleRepairPlanResponse.setRequestId(_ctx.stringValue("GetVehicleRepairPlanResponse.RequestId"));<NEW_LINE>getVehicleRepairPlanResponse.setHttpCode(_ctx.integerValue...
("GetVehicleRepairPlanResponse.Data.RepairParts[" + i + "].PartsStdCode"));
1,515,618
public void runCoref(Document document) {<NEW_LINE>Map<Pair<Integer, Integer>, Boolean> mentionPairs = CorefUtils.getUnlabeledMentionPairs(document);<NEW_LINE>if (mentionPairs.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Compressor<String> compressor = new Compressor<>();<NEW_LINE>DocumentExamples examples = ext...
mentionType.toString())));
388,021
public static List<Element> fromObject(Document doc, String name, Object o) {<NEW_LINE>if (o instanceof Map) {<NEW_LINE>Map<String, Object> map = (Map) o;<NEW_LINE>Map<String, Object> attribs = (Map) map.get("@");<NEW_LINE>Object value = map.get("_");<NEW_LINE>if (value != null || attribs != null) {<NEW_LINE>List<Eleme...
fromObject(doc, childName, childValue);
287,342
public void saveScripts() {<NEW_LINE>((HierarchicalConfiguration) getConfig()).clearTree(ALL_SCRIPTS_KEY);<NEW_LINE>int i = 0;<NEW_LINE>for (ScriptWrapper script : scripts) {<NEW_LINE>if (script.isLoadOnStart()) {<NEW_LINE>String elementBaseKey = ALL_SCRIPTS_KEY + "(" + i + ").";<NEW_LINE>getConfig().setProperty(elemen...
SCRIPT_ENGINE_KEY, script.getEngineName());
1,453,410
private void performPreAssignmentCleanup(List<DatastreamGroup> datastreamGroups) {<NEW_LINE>// Map between instance to tasks assigned to the instance.<NEW_LINE>Map<String, Set<DatastreamTask>> previousAssignmentByInstance = _adapter.getAllAssignedDatastreamTasks();<NEW_LINE>_log.info("performPreAssignmentCleanup: start...
get(connectorType).getAssignmentStrategy();
1,272,371
public static JPanel createConfigSectionComponent(String labelText) {<NEW_LINE>JLabel label = new JLabel(labelText);<NEW_LINE>label.setBorder(new EmptyBorder(0, 0, 0, 10));<NEW_LINE>label.setFont(label.getFont()<MASK><NEW_LINE>JPanel pnlSectionName = new TransparentPanel();<NEW_LINE>pnlSectionName.setLayout(new GridBag...
.deriveFont(Font.BOLD));
892,505
private Map<String, INDArray> toPlaceholderMap(MultiDataSet ds) {<NEW_LINE>Map<String, INDArray> placeholders = new HashMap<>();<NEW_LINE>int count = 0;<NEW_LINE>for (String s : trainingConfig.getDataSetFeatureMapping()) {<NEW_LINE>placeholders.put(s, ds.getFeatures(count++));<NEW_LINE>}<NEW_LINE>count = 0;<NEW_LINE>if...
ds.getFeaturesMaskArray(count++));
438,547
private void updateProperties(ForeignKeyColumn column) {<NEW_LINE>PropertySupport ps = new PropertySupport.Name(this);<NEW_LINE>addProperty(ps);<NEW_LINE>try {<NEW_LINE>Column referred = column.getReferredColumn();<NEW_LINE>Column referring = column.getReferringColumn();<NEW_LINE>addProperty(FKPOSITION, FKPOSITIONDESC,...
getParent().getName());
41,142
private void createJournal(MJournalBatch journalBatch, int conversionTypeId, int calendarId, int budgetId) {<NEW_LINE>int noPeriods = 0;<NEW_LINE>if (getNoOfPeriods() == 0 || getNoOfPeriods() > 12)<NEW_LINE>noPeriods = 12;<NEW_LINE>else<NEW_LINE>noPeriods = getNoOfPeriods();<NEW_LINE>definePeriods(calendarId);<NEW_LINE...
setC_Currency_ID(journalBatch.getC_Currency_ID());
227,898
public void readStackMap(LLVMStackMapInfo info, CompilationResult compilation, ResolvedJavaMethod method, int id) {<NEW_LINE>String methodSymbolName = SYMBOL_PREFIX + SubstrateUtil.uniqueShortName(method);<NEW_LINE>long startPatchpointID = compilation.getInfopoints().stream().filter(ip -> ip.reason == InfopointReason.M...
get().getCallFrameSeparation());
332,693
public ListInstancesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListInstancesResult listInstancesResult = new ListInstancesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok...
int originalDepth = context.getCurrentDepth();
955,497
private int readFrames(ExtractorInput input, PositionHolder seekPosition) throws IOException {<NEW_LINE>Assertions.checkNotNull(trackOutput);<NEW_LINE>Assertions.checkNotNull(flacStreamMetadata);<NEW_LINE>// Handle pending binary search seek if necessary.<NEW_LINE>if (binarySearchSeeker != null && binarySearchSeeker.is...
nextFrameFirstSampleNumber = findFrame(buffer, foundEndOfInput);
798,109
public void marshall(PackageDetails packageDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (packageDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(packageDetails.getPackageID(), PACKAGEID_B...
packageDetails.getPackageName(), PACKAGENAME_BINDING);
12,589
private static Object updateAttribute(final String key, final Object value, final List<Allele> originalAlleles, final List<Allele> sortedAlleles, final VCFHeaderLineCount count, int ploidy) {<NEW_LINE>if (key.startsWith("AS_")) {<NEW_LINE>return remapASValues(value instanceof List ? String.join(",", ((List<String>) val...
, createAlleleIndexMap(originalAlleles, sortedAlleles));
1,231,479
public void init() {<NEW_LINE>BlueprintCraftingRecipe.addRecipe("specialBullet", BulletHandler.getBulletStack("terrasteel"), new ItemStack(IEContent.itemBullet, 1, 0), Items.GUNPOWDER, "nuggetTerrasteel", "nuggetTerrasteel");<NEW_LINE>try {<NEW_LINE>Class c_BotaniaAPI = Class.forName("vazkii.botania.api.BotaniaAPI");<N...
rarityWeightMap.put(rariryRelic, 2);
749,427
public synchronized static void auditPatternInstance(boolean increase, EvalFactoryNode factoryNode, AgentInstanceContext agentInstanceContext) {<NEW_LINE>if (AuditPath.isInfoEnabled()) {<NEW_LINE>if (patternInstanceCounts == null) {<NEW_LINE>patternInstanceCounts = new LRUCache<>(100);<NEW_LINE>}<NEW_LINE>AuditPatternI...
patternInstanceCounts.put(key, count);
944,705
private Node createNodeDelegateImpl() {<NEW_LINE>try {<NEW_LINE>if (!getPrimaryFile().getFileSystem().isDefault()) {<NEW_LINE>return new DataNode(this, Children.LEAF);<NEW_LINE>}<NEW_LINE>} catch (FileStateInvalidException ex) {<NEW_LINE>err.log(Level.WARNING, null, ex);<NEW_LINE>return new DataNode(this, Children.LEAF...
n = getCookieFromEP(Node.class);
1,134,183
public static LLVMLivenessAnalysisResult computeLiveness(Map<InstructionBlock, List<LLVMPhiManager.Phi>> phis, FunctionDefinition functionDefinition) {<NEW_LINE>LLVMLivenessAnalysis analysis = new LLVMLivenessAnalysis(functionDefinition);<NEW_LINE>List<InstructionBlock> blocks = functionDefinition.getBlocks();<NEW_LINE...
analysis.printResult(blocks, result);
1,812,403
private boolean sendEmail(SenderEmail senderEmail, AlertTemplate mail, String... mails) throws AlertException {<NEW_LINE>log.info(mail.getSubject());<NEW_LINE>try {<NEW_LINE>Map<String, AlertTemplate> out = new HashMap<>(16);<NEW_LINE>out.put("mail", mail);<NEW_LINE>String html = FreemarkerUtils.format(template, out);<...
setFrom(senderEmail.getFrom());
1,729,360
private void createDirectory(User loginUser, String fullName, ResourceType type, Result<Object> result) {<NEW_LINE>String tenantCode = tenantMapper.queryById(loginUser.getTenantId()).getTenantCode();<NEW_LINE>String directoryName = storageOperate.getFileName(type, tenantCode, fullName);<NEW_LINE>String resourceRootPath...
putMsg(result, Status.STORE_OPERATE_CREATE_ERROR);
764,895
public void deserialize(ByteBuffer buffer) throws IllegalPathException {<NEW_LINE>// adapt to old version based on version mark<NEW_LINE>int length = buffer.getInt();<NEW_LINE>boolean isOldVersion = true;<NEW_LINE>if (length == PLAN_SINCE_0_14) {<NEW_LINE>length = buffer.getInt();<NEW_LINE>isOldVersion = false;<NEW_LIN...
tagOffsets = new ArrayList<>();