idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,084,542
public StageDeclaration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StageDeclaration stageDeclaration = new StageDeclaration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
JsonToken token = context.getCurrentToken();
1,226,717
public void restoreWebView() {<NEW_LINE>if (mRhoCustomView != null) {<NEW_LINE>view.removeView(mRhoCustomView.getContainerView());<NEW_LINE>mRhoCustomView.destroyView();<NEW_LINE>mRhoCustomView = null;<NEW_LINE>if (navBar != null) {<NEW_LINE>view.removeView(navBar);<NEW_LINE>}<NEW_LINE>if (toolBar != null) {<NEW_LINE>v...
(FILL_PARENT, 0, 1));
1,690,639
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, String portalFlag) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Bu...
Wo.copier.copy(widget);
610,645
public BasicMessageContext<InboundMessageType, OutboundMessageType, NameIdentifierType> handleSAMLLogoutRequest(HttpServletRequest req, HttpServletResponse res, SsoSamlService ssoService, String externalRelayState, SsoRequest samlRequest) throws SamlException {<NEW_LINE>BasicMessageContext<InboundMessageType, OutboundM...
(LogoutRequest) messageContext.getInboundMessage();
779,905
public static QuerySpeechDeviceResponse unmarshall(QuerySpeechDeviceResponse querySpeechDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySpeechDeviceResponse.setRequestId(_ctx.stringValue("QuerySpeechDeviceResponse.RequestId"));<NEW_LINE>querySpeechDeviceResponse.setSuccess(_ctx.booleanValue("QuerySpeechDevice...
("QuerySpeechDeviceResponse.Data.List[" + i + "].AvailableSpace"));
1,479,548
public static ListLastMonthInvoiceResponse unmarshall(ListLastMonthInvoiceResponse listLastMonthInvoiceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listLastMonthInvoiceResponse.setRequestId<MASK><NEW_LINE>listLastMonthInvoiceResponse.setAmount(_ctx.stringValue("ListLastMonthInvoiceResponse.Amount"));<NEW_LINE>listLas...
(_ctx.stringValue("ListLastMonthInvoiceResponse.RequestId"));
190,622
private void clueLookup(ChatMessage chatMessage, String message) {<NEW_LINE>if (!config.clue()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String search;<NEW_LINE>if (message.equalsIgnoreCase(CLUES_COMMAND_STRING)) {<NEW_LINE>search = "total";<NEW_LINE>} else {<NEW_LINE>search = message.substring(CLUES_COMMAND_STRING.lengt...
.format("%,d", rank));
1,576,909
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(DatafeedConfig.ID.getPreferredName(), datafeedId);<NEW_LINE>builder.field(DatafeedState.STATE.getPreferredName(), datafeedState.toString());<NEW_LINE>if (node ...
), entry.getValue());
547,952
static StructOrError<Route> parseRoute(io.envoyproxy.envoy.config.route.v3.Route proto, FilterRegistry filterRegistry, boolean parseHttpFilter, Map<String, PluginConfig> pluginConfigMap) {<NEW_LINE>StructOrError<RouteMatch> routeMatch = parseRouteMatch(proto.getMatch());<NEW_LINE>if (routeMatch == null) {<NEW_LINE>retu...
) + "] contains invalid HttpFilter config: " + overrideConfigsOrError.errorDetail);
1,684,810
public void run() {<NEW_LINE>InsightBuilder insight = new InsightBuilder();<NEW_LINE>stream.appendTimeoutInsight(insight);<NEW_LINE>// DelayedStream.cancel() is safe to call from a thread that is different from where the<NEW_LINE>// stream is created.<NEW_LINE>long seconds = Math.abs(remainingNanos) / <MASK><NEW_LINE>l...
TimeUnit.SECONDS.toNanos(1);
263,082
public void loadTagMappingFile(String file) {<NEW_LINE>if (file != null) {<NEW_LINE><MASK><NEW_LINE>if (!f.exists()) {<NEW_LINE>throw new IllegalArgumentException("tag mapping file parameter points to a file that does not exist");<NEW_LINE>}<NEW_LINE>if (f.isDirectory()) {<NEW_LINE>throw new IllegalArgumentException("t...
File f = new File(file);
931,073
public net.osmand.binary.OsmandOdb.TransportStopsTree buildPartial() {<NEW_LINE>net.osmand.binary.OsmandOdb.TransportStopsTree result = new net.osmand.binary.OsmandOdb.TransportStopsTree(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x0...
util.Collections.unmodifiableList(leafs_);
958,568
final DescribeOrderableDBInstanceOptionsResult executeDescribeOrderableDBInstanceOptions(DescribeOrderableDBInstanceOptionsRequest describeOrderableDBInstanceOptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOrderableDBInstanceOptionsRequest);<NEW_LINE>AWSRequestMetrics awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
504,617
// implement SqlValidator<NEW_LINE>public void declareCursor(SqlSelect select, SqlValidatorScope parentScope) {<NEW_LINE>cursorSet.add(select);<NEW_LINE>// add the cursor to a map that maps the cursor to its select based on<NEW_LINE>// the position of the cursor relative to other cursors in that call<NEW_LINE>FunctionP...
cursorMap.put(numCursors, select);
1,161,216
public void init(IExportDialogAdapter adapter, Composite container, IFigure figure) {<NEW_LINE>setFigure(figure);<NEW_LINE>container.setLayout(new GridLayout(8, false));<NEW_LINE>container.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));<NEW_LINE>fSetViewboxButton = new Button(container, SWT.CHECK);<NEW_LINE>fSet...
setText(" " + Messages.SVGExportProvider_4);
1,397,760
public // intervened since the last call to getEncodedLength so we can trust the length field.<NEW_LINE>int encode(byte[] frame, int offset) throws JMFUninitializedAccessException, JMFSchemaViolationException, JMFModelNotImplementedException, JMFMessageCorruptionException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabl...
next, elem, indirect, primaryMessage);
320,523
protected void popupShouldSave(ActionEvent e) {<NEW_LINE>log.debug("popupShouldSave");<NEW_LINE>if (GuiPackage.getInstance().getTestPlanFile() == null) {<NEW_LINE>if (// $NON-NLS-1$<NEW_LINE>JOptionPane.// $NON-NLS-1$<NEW_LINE>showConfirmDialog(// $NON-NLS-1$<NEW_LINE>GuiPackage.getInstance().getMainFrame(), // $NON-NL...
(), ActionNames.SAVE));
37,250
private void pasteAfterCopy(PsiElement[] elements, Module module, PsiElement target, boolean tryFromFiles) {<NEW_LINE>PsiDirectory targetDirectory = elements.length == 1 && elements[0] == target ? <MASK><NEW_LINE>try {<NEW_LINE>if (CopyHandler.canCopy(elements)) {<NEW_LINE>CopyHandler.doCopy(elements, targetDirectory);...
null : getTargetDirectory(module, target);
1,244,162
public void open(AudioFormat fmt, int frames) {<NEW_LINE>DataLine.Info info = new DataLine.Info(SourceDataLine.class, fmt);<NEW_LINE>if (!AudioSystem.isLineSupported(info)) {<NEW_LINE>Mixer.Info[] mixers = AudioSystem.getMixerInfo();<NEW_LINE>for (Mixer.Info mixerInfo : mixers) {<NEW_LINE>System.out.println("Found Mixe...
m = AudioSystem.getMixer(mixerInfo);
959,354
private void handle(APIChangeSecurityGroupStateMsg msg) {<NEW_LINE>SecurityGroupStateEvent sevt = SecurityGroupStateEvent.valueOf(msg.getStateEvent());<NEW_LINE>SecurityGroupVO vo = dbf.findByUuid(msg.getUuid(), SecurityGroupVO.class);<NEW_LINE>if (sevt == SecurityGroupStateEvent.enable) {<NEW_LINE>vo.setState(Security...
returnHostSecurityGroupMember(msg.getUuid());
468,318
public ProjectTask updateDiscount(ProjectTask projectTask) {<NEW_LINE>PriceList priceList = projectTask.getProject().getPriceList();<NEW_LINE>if (priceList == null) {<NEW_LINE>this.emptyDiscounts(projectTask);<NEW_LINE>return projectTask;<NEW_LINE>}<NEW_LINE>PriceListLine priceListLine = this.getPriceListLine(projectTa...
priceList, projectTask.getUnitPrice());
1,048,047
@RequiresPermissions("app:view")<NEW_LINE>public RestResponse list(Application app, RestRequest request) {<NEW_LINE>IPage<Application> applicationList = applicationService.page(app, request);<NEW_LINE>List<Application> appRecords = applicationList.getRecords();<NEW_LINE>List<Long> appIds = appRecords.stream().map(Appli...
pipeStates = appBuildPipeService.listPipelineStatus(appIds);
11,117
public static ListAppResponse unmarshall(ListAppResponse listAppResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAppResponse.setRequestId(_ctx.stringValue("ListAppResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setPageNum(_ctx.integerValue("ListAppResponse.Data.PageNum"));<NEW_LINE>data.setPageS...
("ListAppResponse.Data.AppList[" + i + "].Package"));
1,563,558
public ApiResponse<File> filesCopyWithHttpInfo(String id, CopyFileRequest copyFileRequest) throws ApiException {<NEW_LINE>Object localVarPostBody = copyFileRequest;<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' ...
localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
1,235,742
public void createControl(Composite ancestor) {<NEW_LINE>Font font = ancestor.getFont();<NEW_LINE>Composite parent = SWTFactory.createComposite(ancestor, font, 2, 1, GridData.FILL_BOTH);<NEW_LINE>control = parent;<NEW_LINE>SWTFactory.createLabel(parent, "ngrok Installations:", 2);<NEW_LINE>table = new Table(parent, SWT...
= new GridData(GridData.FILL_BOTH);
1,242,584
// Writes ic_launcher.xml to initialize adaptive icon<NEW_LINE>private boolean writeICLauncher(File adaptiveIconFile, boolean isRound) {<NEW_LINE><MASK><NEW_LINE>String packageName = Signatures.getPackageName(mainClass);<NEW_LINE>try {<NEW_LINE>BufferedWriter out = new BufferedWriter(new OutputStreamWriter(new FileOutp...
String mainClass = project.getMainClass();
1,671,102
private void removeDefaultCutCopyPaste(InputMap map) {<NEW_LINE>// NOI18N<NEW_LINE>putActionDelegate(map, KeyStroke.getKeyStroke("control C"));<NEW_LINE>// NOI18N<NEW_LINE>map.put(KeyStroke.getKeyStroke("control V"), "none");<NEW_LINE>// NOI18N<NEW_LINE>map.put(KeyStroke.getKeyStroke("control X"), "none");<NEW_LINE>// ...
, InputEvent.CTRL_DOWN_MASK), "none");
827,870
public void doHandle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {<NEW_LINE>ServletHolder servletHolder = (ServletHolder) baseRequest.getUserIdentityScope();<NEW_LINE>FilterChain chain = null;<NEW_LINE>// find the servlet<NEW_LINE>if...
handle(baseRequest, req, res);
1,359,640
public Object visitar(NoCaso noCaso) throws ExcecaoVisitaASA {<NEW_LINE>setarPaiDoNo(noCaso);<NEW_LINE>if (noCaso.getExpressao() != null) {<NEW_LINE>TipoDado tipoDado = (TipoDado) noCaso.getExpressao().aceitar(this);<NEW_LINE>if ((tipoDadoEscolha.peek() == TipoDado.INTEIRO) || (tipoDadoEscolha.peek() == TipoDado.CARACT...
analisarListaBlocos(noCaso.getBlocos());
1,118,781
void validate() {<NEW_LINE>Collections.sort(positionalParameters, new PositionalParametersSorter());<NEW_LINE>validatePositionalParameters(positionalParameters);<NEW_LINE>List<String> wrongUsageHelpAttr = new ArrayList<String>();<NEW_LINE>List<String> wrongVersionHelpAttr <MASK><NEW_LINE>List<String> usageHelpAttr = ne...
= new ArrayList<String>();
1,512,916
protected HyperParameters samplingHyperParameters(HyperParameters hyperParameters, DenseMatrix factors, DenseVector normalMu0, double normalBeta0, DenseMatrix WishartScale0, double WishartNu0) throws LibrecException {<NEW_LINE><MASK><NEW_LINE>int numColumns = factors.columnSize();<NEW_LINE>DenseVector mean = new Vector...
int numRows = factors.rowSize();
1,118,185
public static void main(String[] args) {<NEW_LINE>Options options = new Options();<NEW_LINE>options.addRequiredOption("p", "port", true, "port number");<NEW_LINE>options.addRequiredOption("l", "loadPath", true, ".jar files path for dynamic loading");<NEW_LINE>CommandLine line = null;<NEW_LINE>try {<NEW_LINE>CommandLine...
formatter.printHelp("Parser Command Line", options);
249,547
final ResetEbsDefaultKmsKeyIdResult executeResetEbsDefaultKmsKeyId(ResetEbsDefaultKmsKeyIdRequest resetEbsDefaultKmsKeyIdRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resetEbsDefaultKmsKeyIdRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,435,921
public static void down(GrayF64 input, GrayF64 output) {<NEW_LINE>int maxY = input.height - input.height % 2;<NEW_LINE>int maxX = input.width - input.width % 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, maxY, 2, y -> {<NEW_LINE>for (int y = 0; y < maxY; y += 2) {<NEW_LINE>int indexOut = output.startIndex ...
.stride + output.width - 1;
1,412,032
private Object processFallbackStage(FaultToleranceInvocation invocation) throws Exception {<NEW_LINE>if (!isFallbackPresent()) {<NEW_LINE>return processRetryStage(invocation);<NEW_LINE>}<NEW_LINE>logger.log(Level.FINER, "Proceeding invocation with fallback semantics");<NEW_LINE>invocation.trace("executeFallbackMethod")...
fallbackHandle(fallback.value, ex);
1,576,592
public String handleVoiceMessage(String myDom) throws JDOMException, IOException {<NEW_LINE>String mobileNum = "";<NEW_LINE>List<String> listVal = new ArrayList<>();<NEW_LINE>listVal.add("application/json");<NEW_LINE>Map<String, List<String>> values = new HashMap<>();<NEW_LINE><MASK><NEW_LINE>ClientOverrideConfiguratio...
values.put("Content-Type", listVal);
1,211,777
public LiteralExpression visitFilterProjection(FilterProjectionExpression expression) {<NEW_LINE>LiteralExpression leftResult = expression.getLeft().accept(this);<NEW_LINE>// If LHS is not an array or is empty, then just do basic checks on RHS using ANY + ARRAY.<NEW_LINE>if (!leftResult.isArrayValue() || leftResult.exp...
= new TypeChecker(literalValue, problems);
1,074,554
public ParameterAttribute unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ParameterAttribute parameterAttribute = new ParameterAttribute();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
JsonToken token = context.getCurrentToken();
645,396
public RDSDatabaseCredentials unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RDSDatabaseCredentials rDSDatabaseCredentials = new RDSDatabaseCredentials();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok...
String currentParentElement = context.getCurrentParentElement();
1,434,657
@SaCheckPermission("cms.link.class")<NEW_LINE>public Object data(@Param("searchName") String searchName, @Param("searchKeyword") String searchKeyword, @Param("pageNumber") int pageNumber, @Param("pageSize") int pageSize, @Param("pageOrderName") String pageOrderName, @Param("pageOrderBy") String pageOrderBy) {<NEW_LINE>...
, PageUtil.getOrder(pageOrderBy));
1,425,888
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void createPartControl(Composite parent) {<NEW_LINE>WebBrowserEditorInput input = getWebBrowserEditorInput();<NEW_LINE>int style = 0;<NEW_LINE...
worked(event.current - progressWorked);
239,265
private File loadIncludeFile(String includeName) {<NEW_LINE>try {<NEW_LINE>includeName += ".usl";<NEW_LINE>File cacheFile = new File(cacheFolder, includeName);<NEW_LINE>File tmpFile = new File(tmpFolder, includeName);<NEW_LINE>if (cacheFile.exists())<NEW_LINE>return cacheFile;<NEW_LINE>boolean snapshot = includeName.en...
+ includeName).append("\n");
360,159
private Map<String, Object> toColumnTypeDefault(String defaultValue, String dataType, String dataFormat) {<NEW_LINE>String <MASK><NEW_LINE>String sqlDefault = "";<NEW_LINE>if (defaultValue == null || defaultValue.toUpperCase(Locale.ROOT).equals("NULL")) {<NEW_LINE>sqlType = "null";<NEW_LINE>}<NEW_LINE>// special case f...
sqlType = toColumnType(dataType, dataFormat);
661,524
public void replayDropDb(String dbName, boolean isForceDrop) throws DdlException {<NEW_LINE>tryLock(true);<NEW_LINE>try {<NEW_LINE>Database db = fullNameToDb.get(dbName);<NEW_LINE>db.writeLock();<NEW_LINE>try {<NEW_LINE>Set<String> tableNames = db.getTableNamesWithLock();<NEW_LINE>unprotectDropDb(db, isForceDrop, true)...
).recycleDatabase(db, tableNames);
867,178
public Result restoreBackup(UUID customerUUID) {<NEW_LINE>Customer customer = Customer.getOrBadRequest(customerUUID);<NEW_LINE>RestoreBackupParams taskParams = parseJsonAndValidate(RestoreBackupParams.class);<NEW_LINE>if (taskParams.newOwner != null) {<NEW_LINE>if (!Pattern.matches(VALID_OWNER_REGEX, taskParams.newOwne...
throw new PlatformServiceException(BAD_REQUEST, "Backup information not provided");
659,198
public InputClippingSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InputClippingSettings inputClippingSettings = new InputClippingSettings();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
int originalDepth = context.getCurrentDepth();
1,338,538
public static // '(' ('...' | top_type_list?) ')' top_type_clause<NEW_LINE>boolean fun_type_100_t(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "fun_type_100_t"))<NEW_LINE>return false;<NEW_LINE>if (!nextTokenIs(b, "<type>", ERL_PAR_LEFT))<NEW_LINE>return false;<NEW_LINE>boolean r, p;<NEW_LINE>Marker m = ...
m, r, p, null);
865,648
final ListUsersResult executeListUsers(ListUsersRequest listUsersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUsersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,427,816
public void execute() throws ResourceAllocationException, ResourceUnavailableException {<NEW_LINE>HealthCheckPolicy policy = null;<NEW_LINE>boolean success = false;<NEW_LINE>try {<NEW_LINE>CallContext.current().setEventDetails("Load balancer health check policy ID : " + getEntityId());<NEW_LINE>success = _lbService.app...
HealthCheckPolicy.class, getEntityId());
521,323
private void copyOrUpdateFromSelectionToGivenSchemaAndProduct(@NonNull CopyDiscountSchemaBreaksRequest request) {<NEW_LINE>final PricingConditionsId pPricingConditionsId = request.getPricingConditionsId();<NEW_LINE>final ProductId productId = request.getProductId();<NEW_LINE>final boolean allowCopyToSameSchema = reques...
PricingConditionsBreak> exitentTargetDiscountBreaks = retrieveDiscountSchemaBreakRecords(breaksForGivenPorductAndPricingConditions);
1,635,121
private void write(int pdutype, int result, int source, int reason, boolean blocking) throws IOException {<NEW_LINE>if (blocking) {<NEW_LINE>writeLock.lock();<NEW_LINE>} else {<NEW_LINE>try {<NEW_LINE>int timeout = as.getConnection().getAbortTimeout();<NEW_LINE>Timeout.LOG.debug("{}: start A-ABORT timeout of {}ms", as,...
as, e.getMessage());
999,424
public boolean execute(final OHttpRequest iRequest, OHttpResponse iResponse) throws Exception {<NEW_LINE>checkSyntax(iRequest.getUrl(), 2, "Syntax error: document/<database>");<NEW_LINE>iRequest.getData().commandInfo = "Create document";<NEW_LINE>ODatabaseDocument db = null;<NEW_LINE>ODocument doc;<NEW_LINE>try {<NEW_L...
fromJSON(iRequest.getContent());
1,511,978
public void testLogViewerInvalidOption() throws Exception {<NEW_LINE>CommonTasks.writeLogMsg(Level.INFO, "executing logViewer on " + server.getServerName());<NEW_LINE>// generate a random option that is between 3 and 15 characters long startServering with "bad".<NEW_LINE>String alphabet = "abcdefghijklmnopqrstuvwxyz";<...
().trim()));
133,296
protected Aggregator doCreateInternal(SearchContext searchContext, Aggregator parent, CardinalityUpperBound cardinality, Map<String, Object> metadata) throws IOException {<NEW_LINE>TermsAggregatorSupplier aggregatorSupplier = queryShardContext.getValuesSourceRegistry().getAggregator(TermsAggregationBuilder.REGISTRY_KEY...
collectMode, showTermDocCountError, cardinality, metadata);
1,621,263
public void updateBackground(int x0, int y0, int x1, int y1, T frame) {<NEW_LINE>interpolationInput.setImage(frame);<NEW_LINE>final float minusLearn = 1.0f - learnRate;<NEW_LINE>transform.setModel(worldToCurrent);<NEW_LINE>for (int y = y0; y < y1; y++) {<NEW_LINE>int indexBG = background.startIndex + y * background.str...
background.data[indexBG] = inputValue;
1,198,803
public String generate() {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>appendPackageAndCommonImports(builder, apiClassname, Arrays.<HollowSchema>asList(schema));<NEW_LINE>builder.append("import " + HollowList.class.getName() + ";\n");<NEW_LINE>builder.append("import " + HollowListSchema.class.getName...
append("public class " + className + "<T> extends HollowList<T> {\n\n");
207,109
public void deleteIfExistsCodeSnippets() {<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteIfExists<NEW_LINE>client.deleteIfExists();<NEW_LINE>// END: com.azure.storage.file.datalake.DataLakeFileSystemClient.deleteIfExists<NEW_LINE>// BEGIN: com.azure.storage.file.datalake.DataLakeFile...
deleteIfExistsWithResponse(options, timeout, context);
1,015,522
static Bundle jsonFromGoogleUser(@NonNull GoogleSignInAccount acct) {<NEW_LINE>Bundle auth = new Bundle();<NEW_LINE>auth.putString("accessToken", null);<NEW_LINE>auth.putString("accessTokenExpirationDate", null);<NEW_LINE>auth.putString("refreshToken", null);<NEW_LINE>auth.putString("idToken", acct.getIdToken());<NEW_L...
"uid", acct.getId());
612,529
private void addNewKeys(ArrayList<String> keys, ParamAttack state, int bucketSize, ParamHolder paramBuckets, ArrayList<String> candidates, Attack paramGuess) {<NEW_LINE>if (!config.getBoolean("dynamic keyload")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ArrayList<String> discoveredParams = new ArrayList<>();<NEW_LINE>for ...
saveParams(paramGuess.getFirstRequest());
1,215,180
public static void checkGremlinConfig(String conf) {<NEW_LINE>YamlConfiguration yamlConfig = new YamlConfiguration();<NEW_LINE>try {<NEW_LINE>yamlConfig.load(conf);<NEW_LINE>} catch (ConfigurationException e) {<NEW_LINE>throw new HugeException("Failed to load yaml config file '%s'", conf);<NEW_LINE>}<NEW_LINE>List<Conf...
get(0).getChildren();
1,167,314
public static DescribeSagLanListResponse unmarshall(DescribeSagLanListResponse describeSagLanListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSagLanListResponse.setRequestId(_ctx.stringValue("DescribeSagLanListResponse.RequestId"));<NEW_LINE>List<TaskState> taskStates = new ArrayList<TaskState>();<NEW_LINE>fo...
("DescribeSagLanListResponse.Lans[" + i + "].Lease"));
823,611
public void run(RegressionEnvironment env) {<NEW_LINE>// test scalar-collection only<NEW_LINE>String[] fieldsScalarColl = "c2,c3".split(",");<NEW_LINE>String eplScalarColl = "@name('s0') select " + "sc(theString) as c0, " + "sc(intPrimitive) as c1, " + "sc(theString).allOf(v => v = 'E1') as c2, " + "sc(intPrimitive).al...
(eplScalarColl).addListener("s0");
168,045
public String replaceLanguageInHtml(String from) {<NEW_LINE>if (isEmpty()) {<NEW_LINE>return from;<NEW_LINE>}<NEW_LINE>Matcher <MASK><NEW_LINE>List<String> foundScripts = new ArrayList<>();<NEW_LINE>while (scriptMatcher.find()) {<NEW_LINE>foundScripts.add(scriptMatcher.toMatchResult().group(0));<NEW_LINE>}<NEW_LINE>Tra...
scriptMatcher = FIND_SCRIPT.matcher(from);
1,746,694
public void serializeRef(Object value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException {<NEW_LINE>jgen.writeStartObject();<NEW_LINE>int ref = this.debugger.getReferenceManager().getReference(value);<NEW_LINE>jgen.writeNumberField("ref", ref);<NEW_LINE>if (value == Types.UNDE...
JSFunction) value).getSource();
95,003
public static UUID createHashicorpCAConfig(UUID customerUUID, String label, String storagePath, HashicorpVaultConfigParams hcVaultParams) throws Exception {<NEW_LINE>if (Strings.isNullOrEmpty(hcVaultParams.vaultAddr) || Strings.isNullOrEmpty(hcVaultParams.vaultToken) || Strings.isNullOrEmpty(hcVaultParams.engine) || St...
paths.getLeft(), hcVaultParams);
358,673
public DeleteMapResult deleteMap(DeleteMapRequest deleteMapRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMapRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMet...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
943,107
public static String xmlFreeText(String documentText, Annotation annotation) {<NEW_LINE>int firstTokenCharIndex = annotation.get(CoreAnnotations.TokensAnnotation.class).get(0).<MASK><NEW_LINE>// add white space for all text before first token<NEW_LINE>String cleanedText = documentText.substring(0, firstTokenCharIndex)....
get(CoreAnnotations.CharacterOffsetBeginAnnotation.class);
80,332
public static ByteBuffer convertValue(Column storeColumn, BigInteger value) {<NEW_LINE>int precision = storeColumn.getPrecision();<NEW_LINE>int scale = storeColumn.getScale();<NEW_LINE>int bytesNeeded = getDecimalColumnSpace(precision, scale);<NEW_LINE>ByteBuffer result = ByteBuffer.allocateDirect(bytesNeeded);<NEW_LIN...
precision, scale, result, bytesNeeded);
975,942
private void startTesters(int threads) {<NEW_LINE>// Load and run actual test stub<NEW_LINE>Class<?> testClass;<NEW_LINE>try {<NEW_LINE>testClass = Class.forName(testClassName);<NEW_LINE>threadList.clear();<NEW_LINE>testRunners.clear();<NEW_LINE>for (int i = 0; i < threads; i++) {<NEW_LINE>Tester tester = (Tester) test...
Thread t = new Thread(testRunner);
724,631
private Geometry bufferPolygon_() {<NEW_LINE>if (m_distance == 0)<NEW_LINE>// return input to the output.<NEW_LINE>return m_geometry;<NEW_LINE>OperatorSimplify simplify = (OperatorSimplify) OperatorFactoryLocal.getInstance().getOperator(Operator.Type.Simplify);<NEW_LINE>generateCircleTemplate_();<NEW_LINE>m_geometry = ...
Polygon(m_geometry.getDescription());
1,252,657
public void extract(EmbeddedArtifact embeddedArtifact, Path directory) {<NEW_LINE>final Path extractTo = directory.resolve(embeddedArtifact.getFilename());<NEW_LINE>final Path parent = extractTo.getParent();<NEW_LINE>try {<NEW_LINE>if (parent != null) {<NEW_LINE>Files.createDirectories(parent);<NEW_LINE>}<NEW_LINE>} ca...
(embeddedArtifact.getContent()));
1,227
private void rewriteAgentConfigTablePart2() throws Exception {<NEW_LINE>if (!tableExists("agent_config_temp")) {<NEW_LINE>// previously failed mid-upgrade prior to updating schema version<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>dropTableIfExists("agent_config");<NEW_LINE>session.createTableWithLCS("create table if not exi...
, row.getUUID(3));
1,200,618
private static long calcConcatColumnHeaderAndSize(ArrayList<SerializedColumnHeader> outHeaders, ColumnBufferProvider[] providers) {<NEW_LINE>long totalSize = 0;<NEW_LINE>int numTables = providers.length;<NEW_LINE>long rowCount = 0;<NEW_LINE>long nullCount = 0;<NEW_LINE>for (ColumnBufferProvider provider : providers) {<...
totalSize += calcConcatColumnHeaderAndSize(childHeaders, childColumnProviders);
1,628,248
protected void tick(Block b) {<NEW_LINE>BlockMenu inv = BlockStorage.getInventory(b);<NEW_LINE>CraftingOperation currentOperation = processor.getOperation(b);<NEW_LINE>if (currentOperation != null) {<NEW_LINE>if (takeCharge(b.getLocation())) {<NEW_LINE>if (!currentOperation.isFinished()) {<NEW_LINE>processor.<MASK><NEW...
updateProgressBar(inv, 22, currentOperation);
1,741,136
public boolean execute(final SecurityContext securityContext, final ErrorBuffer errorBuffer) throws FrameworkException {<NEW_LINE>final ConfigurationProvider config = StructrApp.getConfiguration();<NEW_LINE>final Set<String> viewNames = new HashSet<>();<NEW_LINE>// do not create nodes for the internal views<NEW_LINE>vi...
.getProperty(AbstractNode.name));
423,995
private void reportStats() {<NEW_LINE>ConcurrentMap<OwnerId, ToUsageStatsServiceMsg.Builder> report = new ConcurrentHashMap<>();<NEW_LINE>for (ApiUsageRecordKey key : ApiUsageRecordKey.values()) {<NEW_LINE>ConcurrentMap<OwnerId, AtomicLong> statsForKey = stats.get(key);<NEW_LINE>statsForKey.forEach((ownerId, statsValue...
getId().getLeastSignificantBits());
1,614,227
protected boolean isValidTemplateFile(File file) throws IOException {<NEW_LINE>if (file == null || !file.exists()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Ensure the template is of the right kind<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String xmlString = ZipUtils.extractZipEntry(file, ZIP_ENTRY_MANIFEST<MASK><NEW_LINE...
, Charset.forName("UTF-8"));
1,075,855
public synchronized void highlight(Parent pane, String query) {<NEW_LINE>if (this.parent != null && !boxes.isEmpty()) {<NEW_LINE>clear();<NEW_LINE>}<NEW_LINE>if (query == null || query.isEmpty())<NEW_LINE>return;<NEW_LINE>this.parent = pane;<NEW_LINE>Set<Node> nodes = getTextNodes(pane);<NEW_LINE>ArrayList<Rectangle> a...
HighLightRectangle rect = new HighLightRectangle(text);
344,449
public synchronized void unfollow(final String followerId, final String followingId, final int followingType) throws RepositoryException {<NEW_LINE>followRepository.removeByFollowerIdAndFollowingId(followerId, followingId, followingType);<NEW_LINE>if (Follow.FOLLOWING_TYPE_C_TAG == followingType) {<NEW_LINE>final JSONO...
article = articleRepository.get(followingId);
634,912
final DisassociateResolverQueryLogConfigResult executeDisassociateResolverQueryLogConfig(DisassociateResolverQueryLogConfigRequest disassociateResolverQueryLogConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateResolverQueryLogConfigRequest);<NEW_LINE>AWSRequestMetrics awsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
676,922
public List<ItemParam> calcWeaponUpgradeReturnItems(GenshinPlayer player, long targetGuid, List<Long> foodWeaponGuidList, List<ItemParam> itemParamList) {<NEW_LINE>GenshinItem weapon = player.getInventory().getItemByGuid(targetGuid);<NEW_LINE>// Sanity checks<NEW_LINE>if (weapon == null || weapon.getItemType() != ItemT...
min(expGain, reqExp - exp);
88,288
public static DescribeWatchItemsResponse unmarshall(DescribeWatchItemsResponse describeWatchItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeWatchItemsResponse.setRequestId(_ctx.stringValue("DescribeWatchItemsResponse.RequestId"));<NEW_LINE>describeWatchItemsResponse.setSuccess<MASK><NEW_LINE>describeWatchIt...
(_ctx.booleanValue("DescribeWatchItemsResponse.Success"));
1,812,030
protected static ImmutableList<Integer> parseFrameRange(String frameRange) {<NEW_LINE>Matcher singleFrameMatcher = SINGLE_FRAME_PATTERN.matcher(frameRange);<NEW_LINE>if (singleFrameMatcher.matches()) {<NEW_LINE>return ImmutableList.of(Integer.valueOf(frameRange));<NEW_LINE>}<NEW_LINE>Matcher simpleRangeMatcher = SIMPLE...
(rangeWithStepMatcher.group("step"));
1,797,979
public void run() {<NEW_LINE>if (delayTimer == null)<NEW_LINE>delayTimer = new Timer("BlueMap-RegionFileWatchService-DelayTimer", true);<NEW_LINE>try {<NEW_LINE>while (!closed) {<NEW_LINE>WatchKey key = this.watchService.take();<NEW_LINE>for (WatchEvent<?> event : key.pollEvents()) {<NEW_LINE>WatchEvent.Kind<?> kind = ...
Object fileObject = event.context();
633,861
public static DisableApplicationScalingRuleResponse unmarshall(DisableApplicationScalingRuleResponse disableApplicationScalingRuleResponse, UnmarshallerContext _ctx) {<NEW_LINE>disableApplicationScalingRuleResponse.setRequestId(_ctx.stringValue("DisableApplicationScalingRuleResponse.RequestId"));<NEW_LINE>disableApplic...
(_ctx.integerValue("DisableApplicationScalingRuleResponse.AppScalingRule.Metric.MinReplicas"));
1,790,204
private int transitionsBetween(ResultPoint from, ResultPoint to) {<NEW_LINE>// See QR Code Detector, sizeOfBlackWhiteBlackRun()<NEW_LINE>int fromX = (int) from.getX();<NEW_LINE>int fromY = (int) from.getY();<NEW_LINE>int toX = (int) to.getX();<NEW_LINE>int toY = Math.min(image.getHeight() - 1, (int) to.getY());<NEW_LIN...
fromX, steep ? fromX : fromY);
1,246,301
private void startRoutePlanningWithDestination(LatLon latLon, PointDescription pointDescription, TargetPointsHelper targets) {<NEW_LINE>MapActivity mapActivity = getMapActivity();<NEW_LINE>MapActions mapActions = mapActivity != null ? mapActivity.getMapActions() : app<MASK><NEW_LINE>boolean hasPointToStart = settings.r...
.getOsmandMap().getMapActions();
1,130,143
final CreateDatasetResult executeCreateDataset(CreateDatasetRequest createDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.SERVICE_ID, "DataBrew");
1,154,966
private void parse(InputStream in, boolean recurse) throws IOException, MessagingException {<NEW_LINE>mHeader.clear();<NEW_LINE>mFrom = null;<NEW_LINE>mTo = null;<NEW_LINE>mCc = null;<NEW_LINE>mBcc = null;<NEW_LINE>mReplyTo = null;<NEW_LINE>xOriginalTo = null;<NEW_LINE>deliveredTo = null;<NEW_LINE>xEnvelopeTo = null;<N...
MimeStreamParser parser = new MimeStreamParser(parserConfig);
1,808,204
protected String call() throws TSSException {<NEW_LINE>checkInputs();<NEW_LINE>List<Utils.IOSVersion> iosVersions = getIOSVersions();<NEW_LINE>System.out.println("iosVersions = " + iosVersions);<NEW_LINE>ArrayList<String> args = constructArgs();<NEW_LINE>final int urlIndex = args.size() - 1;<NEW_LINE>StringBuilder resp...
TSSException("There was an error starting tsschecker.", true, e);
1,231,773
public void addJaxWsExtension(AntBuildExtender ext) throws IOException {<NEW_LINE>TransformerUtils.transformClients(project.<MASK><NEW_LINE>FileObject jaxws_build = project.getProjectDirectory().getFileObject(TransformerUtils.JAXWS_BUILD_XML_PATH);<NEW_LINE>assert jaxws_build != null;<NEW_LINE>AntBuildExtender.Extensio...
getProjectDirectory(), JAX_WS_STYLESHEET_RESOURCE, true);
579,959
public static ClientMessage encodeRequest(java.lang.String name, java.util.UUID txnId, long threadId, com.hazelcast.internal.serialization.Data key) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMessage.setOperationName("Transactiona...
new byte[REQUEST_INITIAL_FRAME_SIZE], UNFRAGMENTED_MESSAGE);
188,951
private static UpdatedBodyAndMentions update(@Nullable CharSequence body, @NonNull List<Mention> mentions, @NonNull Function<Mention, CharSequence> replacementTextGenerator) {<NEW_LINE>if (body == null || mentions.isEmpty()) {<NEW_LINE>return new UpdatedBodyAndMentions(body, mentions);<NEW_LINE>}<NEW_LINE>SortedSet<Men...
updatedMentions = new ArrayList<>();
979,932
public static DescribeMonitorGroupInstanceAttributeResponse unmarshall(DescribeMonitorGroupInstanceAttributeResponse describeMonitorGroupInstanceAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeMonitorGroupInstanceAttributeResponse.setRequestId(_ctx.stringValue("DescribeMonitorGroupInstanceAttributeRespo...
+ "].Tags[" + j + "].Value"));
1,241,590
public void initialize() {<NEW_LINE>m_statisticsServices = StatisticsServicesImplementation.getInstance();<NEW_LINE>List<Instrumenter> list = new ArrayList<>();<NEW_LINE>DCRContextImplementation context = DCRContextImplementation.create(LOGGER);<NEW_LINE>if (context == null) {<NEW_LINE>String file = ExposeInstrumentati...
add(new JavaDCRInstrumenterEx(context));
196,680
public String rma(final ICalloutField calloutField) {<NEW_LINE>final I_M_InOut inout = calloutField.getModel(I_M_InOut.class);<NEW_LINE>final <MASK><NEW_LINE>if (rma == null) {<NEW_LINE>return NO_ERROR;<NEW_LINE>}<NEW_LINE>// No Callout Active to fire dependent values<NEW_LINE>if (isCalloutActive()) {<NEW_LINE>return N...
I_M_RMA rma = inout.getM_RMA();
1,210,445
// Cleanup: default<NEW_LINE>@Nullable<NEW_LINE>public List<ChannelFeed> createMultipleChannels(@NonNull List<ChannelInfo> channels) {<NEW_LINE>List<ChannelFeed> channelFeeds = null;<NEW_LINE>try {<NEW_LINE>String jsonFromObject = GsonUtils.getJsonFromObject(channels, new TypeToken<List<ChannelInfo>>() {<NEW_LINE>}.get...
getObjectFromJson(createChannelResponse, MultipleChannelFeedApiResponse.class);
136,469
public static String prettifyModel(Model model) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>List<Integer<MASK><NEW_LINE>Collections.sort(states);<NEW_LINE>sb.append("Model(states=").append(states).append(", ").append("successors={");<NEW_LINE>for (int state : states) {<NEW_LINE>for (int next : model.get...
> states = model.getStates();
204,282
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* org.springframework.web.servlet.HandlerExceptionResolver#resolveException<NEW_LINE>* (javax.servlet.http.HttpServletRequest,<NEW_LINE>* javax.servlet.http.HttpServletResponse, java.lang.Object,<NEW_LINE>* java.lang.Exception)<NEW_LINE>*/<NEW_LINE>@Suppre...
response.getWriter(), jsonResponse);
335,062
private void addAnchorUrls(Document html, HTTPSampleResult result, HTTPSamplerBase config, List<HTTPSamplerBase> potentialLinks) {<NEW_LINE>String base = "";<NEW_LINE>// $NON-NLS-1$<NEW_LINE>NodeList baseList = html.getElementsByTagName("base");<NEW_LINE>if (baseList.getLength() > 0) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>...
getNamedItem("href").getNodeValue();