idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
900,746
public void accept(ClassWriter writer, Type controller, String handlerInternalName, MethodVisitor visitor, ParamDefinition parameter, NameGenerator nameGenerator) throws Exception {<NEW_LINE>String methodName = parameter.getName();<NEW_LINE>String name = parameter.getHttpName();<NEW_LINE>visitor.visitLdcInsn(name);<NEW...
handlerInternalName, methodName, "(Lio/jooby/Context;Ljava/lang/String;)Ljava/lang/Object;", false);
1,527,224
public INDArray activate(boolean training, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>if (input.rank() != 3)<NEW_LINE>throw new DL4JInvalidInputException("Got rank " + input.rank() + " array as input to Subsampling1DLayer with shape " + Arrays.toString(input.shape()) + ". Expected rank 3 array with shape [minibatchSize...
maskOut, acts, 0, 2);
143,360
public void uncaughtException(@NonNull Thread thread, @NonNull Throwable exception) {<NEW_LINE>Timber.e(exception);<NEW_LINE>// Log the exception<NEW_LINE>Timber.i("Logging crash exception");<NEW_LINE>try {<NEW_LINE>List<LogHelper.LogEntry> log = new ArrayList<>();<NEW_LINE>log.add(new LogHelper.LogEntry(StringHelper.p...
exception.getMessage())));
1,240,583
protected Map<String, DiagramNode> fixFlowNodePositionsIfModelFromAdonis(Document bpmnModel, Map<String, DiagramNode> elementBoundsFromBpmnDi) {<NEW_LINE>if (isExportedFromAdonis50(bpmnModel)) {<NEW_LINE>Map<String, DiagramNode> mapOfFixedBounds = new HashMap<>();<NEW_LINE>XPathFactory xPathFactory = XPathFactory.newIn...
String elementId = entry.getKey();
1,381,333
public static List<ClickHouseColumn> parse(String args) {<NEW_LINE>if (args == null || args.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>String name = null;<NEW_LINE>ClickHouseColumn column = null;<NEW_LINE>List<ClickHouseColumn> list = new LinkedList<>();<NEW_LINE>StringBuilder builder = n...
colList = new LinkedList<>();
90,185
public void visitVariableExpression(final VariableExpression e) {<NEW_LINE>if (e.getAccessedVariable() instanceof Parameter) {<NEW_LINE>Parameter p = (Parameter) e.getAccessedVariable();<NEW_LINE>if (p.hasInitialExpression() && !Arrays.asList(params).contains(p)) {<NEW_LINE>VariableScope blockScope = code.getVariableSc...
setModifiers(p.getModifiers());
1,358,262
public void write(JsonWriter out, ComplexQuadrilateral value) throws IOException {<NEW_LINE>JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject();<NEW_LINE>obj.remove("additionalProperties");<NEW_LINE>// serialize additonal properties<NEW_LINE>if (value.getAdditionalProperties() != null) {<NEW_LINE>for (Map....
elementAdapter.write(out, obj);
1,444,263
// @see org.eclipse.swt.widgets.Composite#computeSize(int, int, boolean)<NEW_LINE>@Override<NEW_LINE>public Point computeSize(int wHint, int hHint, boolean changed) {<NEW_LINE>int border = getBorderWidth() * 2;<NEW_LINE>if (border == 0 && (canvas.getStyle() & SWT.BORDER) > 0) {<NEW_LINE>border = 2;<NEW_LINE>}<NEW_LINE>...
+= (border + vpadding) * 2;
1,725,415
private Component createUinPassPanel() {<NEW_LINE>JPanel uinPassPanel = new TransparentPanel(new BorderLayout(10, 10));<NEW_LINE>JPanel labelsPanel = new TransparentPanel();<NEW_LINE>JPanel valuesPanel = new TransparentPanel();<NEW_LINE>labelsPanel.setLayout(new BoxLayout(labelsPanel, BoxLayout.Y_AXIS));<NEW_LINE>value...
(valuesPanel, BoxLayout.Y_AXIS));
556,310
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {<NEW_LINE>try {<NEW_LINE>if (sessionHandler == null) {<NEW_LINE>// No session handler available, do nothing<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (sessionHandler.beforeHandle()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (this.isClosed())...
), proxyMessage.sourcePort());
121,960
private JavaScriptNode enterIdentNodeSuper(IdentNode identNode) {<NEW_LINE>if (!identNode.isDirectSuper()) {<NEW_LINE>// ES6 12.3.5.3 Runtime Semantics: MakeSuperPropertyReference(propertyKey, strict)<NEW_LINE>// ES6 8.1.1.3.5 GetSuperBase()<NEW_LINE>JavaScriptNode getSuperBase = factory.createGetPrototype(environment....
factory.createTargetableWrapper(superConstructor, receiver);
468,416
private void dynamicPriority() {<NEW_LINE>// suspend activities with dynamic priority node<NEW_LINE>String sql = // suspended<NEW_LINE>"SELECT * " + "FROM AD_WF_Activity a " + "WHERE Processed='N' AND WFState='OS'" + " AND EXISTS (SELECT * FROM AD_Workflow wf" + " INNER JOIN AD_WF_Node wfn ON (wf.AD_Workflow_ID=wfn.AD_...
setDynPriorityStart(activity.getPriority());
1,249,344
public static Runnable updateInjectedFoldRegions(@Nonnull final Editor editor, @Nonnull final PsiFile file, final boolean applyDefaultState) {<NEW_LINE>if (file instanceof PsiCompiledElement)<NEW_LINE>return null;<NEW_LINE>ApplicationManager.getApplication().assertReadAccessAllowed();<NEW_LINE>final Project project = f...
InjectedLanguageUtil.getInjectedEditorForInjectedFile(editor, injectedFile);
1,561,177
private void loadConfigFromFile() {<NEW_LINE>SharedPreferences sp = <MASK><NEW_LINE>switchCustomizeKeyboard.setChecked(sp.getBoolean(sp_enable_ckb, true));<NEW_LINE>switchPCKeyboard.setChecked(sp.getBoolean(sp_enable_onscreenkeyboard, false));<NEW_LINE>switchPCMouse.setChecked(sp.getBoolean(sp_enable_onscreenmouse, fal...
context.getSharedPreferences(spFileName, spMode);
78,682
private Mono<Response<Flux<ByteBuffer>>> performMaintenanceWithResponseAsync(String resourceGroupName, String vmName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentExcept...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
850,326
public Object returnOriginalState(List<OMultiValueChangeEvent<OIdentifiable, OIdentifiable>> multiValueChangeEvents) {<NEW_LINE>final OEmbeddedRidBag reverted = new OEmbeddedRidBag();<NEW_LINE>for (OIdentifiable identifiable : this) reverted.add(identifiable);<NEW_LINE>final ListIterator<OMultiValueChangeEvent<OIdentif...
add(event.getOldValue());
272,007
public boolean isCallerInRole(EJBComponentMetaData cmd, EJBRequestData request, String roleName, String roleLink, Subject subject) {<NEW_LINE>String role = roleLink == null ? roleName : roleLink;<NEW_LINE>String appName = getApplicationName(request.getEJBMethodMetaData());<NEW_LINE>waitForSecurity();<NEW_LINE>SecurityS...
= new ArrayList<String>();
215,303
public void incLiveness(final String userId, final String field) {<NEW_LINE>Stopwatchs.start("Inc liveness");<NEW_LINE>final String date = DateFormatUtils.format(System.currentTimeMillis(), "yyyyMMdd");<NEW_LINE>try {<NEW_LINE>JSONObject liveness = livenessRepository.getByUserAndDate(userId, date);<NEW_LINE>if (null ==...
put(Liveness.LIVENESS_VOTE, 0);
484,130
protected void modified(Map<?, ?> newProperties) {<NEW_LINE>final String originalProvider = (String) props.get("defaultPersistenceProvider");<NEW_LINE>final String originalDefaultJtaDataSourceJndiName = (String) props.get("defaultJtaDataSourceJndiName");<NEW_LINE>final String originalDefaultNonJtaDataSourceJndiName = (...
Dictionary<String, Object>) newProperties;
740,037
protected boolean doTokensMatchPattern(List<Token> previousTokens, Token current, Pattern regex) {<NEW_LINE>if (regex == PLSQL_PACKAGE_DEFINITION_REGEX && previousTokens.stream().anyMatch(t -> t.getType() == TokenType.KEYWORD && t.getText().equalsIgnoreCase("ACCESSIBLE"))) {<NEW_LINE>ArrayList<String> tokenStrings = ne...
add(prevToken.getText());
1,220,886
private void croppingResult(Activity activity, final int requestCode, final int resultCode, final Intent data) {<NEW_LINE>if (data != null) {<NEW_LINE>Uri resultUri = UCrop.getOutput(data);<NEW_LINE>if (resultUri != null) {<NEW_LINE>try {<NEW_LINE>if (width > 0 && height > 0) {<NEW_LINE>File resized = compression.resiz...
E_NO_IMAGE_DATA_FOUND, ex.getMessage());
724,238
private static Map<? extends Number, Long> convertToValueMap(DictIdsWrapper dictIdsWrapper) {<NEW_LINE>Dictionary dictionary = dictIdsWrapper._dictionary;<NEW_LINE>Int2IntOpenHashMap dictIdCountMap = dictIdsWrapper._dictIdCountMap;<NEW_LINE>int numValues = dictIdCountMap.size();<NEW_LINE>ObjectIterator<Int2IntMap.Entry...
Entry next = iterator.next();
1,213,515
public static DescribeLiveStreamsControlHistoryResponse unmarshall(DescribeLiveStreamsControlHistoryResponse describeLiveStreamsControlHistoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLiveStreamsControlHistoryResponse.setRequestId(_ctx.stringValue("DescribeLiveStreamsControlHistoryResponse.RequestId"));<NE...
("DescribeLiveStreamsControlHistoryResponse.ControlInfo[" + i + "].Action"));
713,034
public name.abuchen.portfolio.model.proto.v1.PPortfolio buildPartial() {<NEW_LINE>name.abuchen.portfolio.model.proto.v1.PPortfolio result = new name.abuchen.portfolio.model.proto.v1.PPortfolio(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>result.uuid_ = uuid_;<NEW_LINE>resul...
.updatedAt_ = updatedAtBuilder_.build();
1,749,397
public static int clang_indexSourceFileFullArgv(@NativeType("CXIndexAction") long action, @NativeType("CXClientData") long client_data, @NativeType("IndexerCallbacks *") IndexerCallbacks index_callbacks, @NativeType("unsigned") int index_callbacks_size, @NativeType("unsigned") int index_options, @NativeType("char const...
, memAddressSafe(out_TU), TU_options);
1,162,797
public static void main(String[] args) throws Exception {<NEW_LINE>MySqlSource<String> mySqlSource = // set captured database<NEW_LINE>MySqlSource.<String>builder().hostname(SOURCE_IP).port(SOURCE_PORT).// set captured database<NEW_LINE>databaseList(// set captured table<NEW_LINE>SOURCE_DB).// set captured table<NEW_LI...
String> cleanStream = cleanData(fifterStream);
1,830,150
private <T extends DataRecord> List<T> filterForRecordsWithCorrectPlatformId(@NonNull final List<T> records, @NonNull final ImmutableList.Builder<LocalToRemoteSyncResult> resultToAddErrorsTo) {<NEW_LINE>final Predicate<T> predicate = r -> Objects.equals(r.getPlatformId(), platformId);<NEW_LINE>final String errorMessage...
).forEach(resultToAddErrorsTo::add);
1,259,876
private void createDashboard(VisualisCommonResponseRef dashboardCreateResponseRef, NodeRequestRef requestRef) throws ExternalOperationFailedException {<NEW_LINE>String url = getBaseUrl() + URLUtils.dashboardPortalUrl + "/" + dashboardCreateResponseRef.getDashboardId() + "/dashboards";<NEW_LINE>VisualisPostAction visual...
ExternalOperationFailedException(90177, "Create Dashboard Exception", e);
225,137
private JPanel createTargetPanel() {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>targetFunctionsCB = new JComboBox<>();<NEW_LINE><MASK><NEW_LINE>targetFunctionsCB.setModel(targetFunctionsCBModel);<NEW_LINE>targetFunctionsCB.setRenderer(new FunctionListCellRenderer());<NEW_LINE>targetFunctionsCB.add...
targetFunctionsCBModel = new DefaultComboBoxModel<>();
1,262,214
final GetAssetPropertyValueHistoryResult executeGetAssetPropertyValueHistory(GetAssetPropertyValueHistoryRequest getAssetPropertyValueHistoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAssetPropertyValueHistoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.SERVICE_ID, "IoTSiteWise");
389,946
public boolean isTriggerActive(IStatementContainer container, IStatementParameter[] parameters) {<NEW_LINE>if (!(container instanceof IGate) || parameters.length < 1 || !(parameters[0] instanceof StatementParameterRedstoneLevel)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int level = ((StatementParameterRedstoneLevel...
) parameters[0]).level;
1,370,231
private void log(final String output) {<NEW_LINE>final String msg = StringUtil.toIsoDate(Instant.now()) + " " + output + "\n";<NEW_LINE>if (debugWriter != null) {<NEW_LINE>try {<NEW_LINE>debugWriter.append(msg);<NEW_LINE>debugWriter.flush();<NEW_LINE>} catch (final IOException e) {<NEW_LINE>LOGGER.warn(pwNotifyService....
internalLog.delete(0, nextLf);
1,508,338
public void crop() {<NEW_LINE>if (croppedImage == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>setNewImageName(getRandomImageName());<NEW_LINE>ExternalContext externalContext = FacesContext.getCurrentInstance().getExternalContext();<NEW_LINE>String newFileName = externalContext.getRealPath("") + File.separator + "resou...
FileImageOutputStream(new File(newFileName));
102,728
private void loadConfigFile() throws IngestModuleException {<NEW_LINE>Document xmlinput;<NEW_LINE>try {<NEW_LINE>String path = PlatformUtil.getUserConfigDirectory() + File.separator + XMLFILE;<NEW_LINE>File f = new File(path);<NEW_LINE>// NON-NLS<NEW_LINE>logger.log(Level.INFO, "Load successful");<NEW_LINE>DocumentBuil...
DocumentBuilder db = dbf.newDocumentBuilder();
152,049
void load(byte[] data, int dataOffset, RandomAccessData variableData, long variableOffset, JarEntryFilter filter) throws IOException {<NEW_LINE>// Load fixed part<NEW_LINE>this.header = data;<NEW_LINE>this.headerOffset = dataOffset;<NEW_LINE>long compressedSize = Bytes.littleEndianValue(data, dataOffset + 20, 4);<NEW_L...
data, dataOffset + 24, 4);
36,886
private static String expandRedirectUri(ServerHttpRequest request, ClientRegistration clientRegistration) {<NEW_LINE>Map<String, String> uriVariables = new HashMap<>();<NEW_LINE>uriVariables.put("registrationId", clientRegistration.getRegistrationId());<NEW_LINE>// @formatter:off<NEW_LINE>UriComponents uriComponents = ...
String host = uriComponents.getHost();
1,356,309
public ECPoint twicePlus(ECPoint b) {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return b;<NEW_LINE>}<NEW_LINE>if (b.isInfinity()) {<NEW_LINE>return twice();<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>if (X1.isZero()) {<NEW_LINE>// A point with X == 0 is its own a...
square().multiply(X2Z1Sq);
1,147,197
public static DescribeBackupSourceGroupsResponse unmarshall(DescribeBackupSourceGroupsResponse describeBackupSourceGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupSourceGroupsResponse.setRequestId(_ctx.stringValue("DescribeBackupSourceGroupsResponse.RequestId"));<NEW_LINE>describeBackupSourceGroupsRe...
(_ctx.booleanValue("DescribeBackupSourceGroupsResponse.Success"));
138,792
public static SearchPipelineResponse unmarshall(SearchPipelineResponse searchPipelineResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchPipelineResponse.setRequestId(_ctx.stringValue("SearchPipelineResponse.RequestId"));<NEW_LINE>searchPipelineResponse.setTotalCount(_ctx.longValue("SearchPipelineResponse.TotalCount")...
("SearchPipelineResponse.PipelineList[" + i + "].Name"));
1,024,844
public void run(RegressionEnvironment env) {<NEW_LINE>String text = "@name('s0') select irstream symbol, price from SupportMarketDataBean#unique(symbol) order by symbol";<NEW_LINE>if (optionalAnnotation != null) {<NEW_LINE>text = optionalAnnotation + text;<NEW_LINE>}<NEW_LINE>env.compileDeployAddListenerMileZero(text, ...
102.0 }, { 5.0 } });
210,769
public static void fillRectangle(GrayS32 image, int value, int x0, int y0, int width, int height) {<NEW_LINE>int x1 = x0 + width;<NEW_LINE>int y1 = y0 + height;<NEW_LINE>if (x0 < 0)<NEW_LINE>x0 = 0;<NEW_LINE>if (x1 > image.width)<NEW_LINE>x1 = image.width;<NEW_LINE>if (y0 < 0)<NEW_LINE>y0 = 0;<NEW_LINE>if (y1 > image.h...
+ y * image.stride + _x0;
610,416
static IndexMetadata buildIndexMetadata(String indexName, List<AliasMetadata> aliases, Supplier<DocumentMapper> documentMapperSupplier, Settings indexSettings, int routingNumShards, @Nullable IndexMetadata sourceMetadata, boolean isSystem) {<NEW_LINE>IndexMetadata.Builder indexMetadataBuilder = createIndexMetadataBuild...
mappingsMetadata = new HashMap<>();
103,175
private void submitForm(boolean fromConfirmAccount) {<NEW_LINE>logDebug("fromConfirmAccount - " + fromConfirmAccount + " email: " + this.emailTemp + "__" + this.passwdTemp);<NEW_LINE>lastEmail = this.emailTemp;<NEW_LINE>lastPassword = this.passwdTemp;<NEW_LINE>imm.hideSoftInputFromWindow(et_user.getWindowToken(), 0);<N...
prepareNodesText.setVisibility(View.GONE);
874,682
private long findRecoverySeq(List<Path> recoveryLogs, Set<String> tabletFiles, int tabletId) throws IOException {<NEW_LINE>HashSet<String> suffixes = new HashSet<>();<NEW_LINE>for (String path : tabletFiles) suffixes.add(getPathSuffix(path));<NEW_LINE>long lastStart = 0;<NEW_LINE>long lastFinish = 0;<NEW_LINE>long reco...
"Unexpected negative seq %s for tabletId %s", key.seq, tabletId);
537,647
private static float[][] convertData(float[][] lpcc, int lpcOrder) {<NEW_LINE>int nCep = lpcc[0].length;<NEW_LINE>double[] c = new double[nCep];<NEW_LINE>double[] a = new double[lpcOrder + 1];<NEW_LINE>float[][] lpc = new float[lpcc.length][lpcOrder + 1];<NEW_LINE>// For each LPC vector:<NEW_LINE>for (int i = 0; i < lp...
exp(c[0]));
1,104,429
ActionResult<WrapOutMap> execute(String appId) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<WrapOutMap> <MASK><NEW_LINE>WrapOutMap wrap = new WrapOutMap();<NEW_LINE>List<FormField> list = new ArrayList<>();<NEW_LINE>Business bus...
result = new ActionResult<>();
580,720
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>ByteBuf buf = (ByteBuf) msg;<NEW_LINE>if (BitUtil.check(buf.getByte(buf.readerIndex()), 7)) {<NEW_LINE>int content = buf.readUnsignedByte();<NEW_LINE>if (BitUtil.check(content, 0)) {<NEW_LINE>String id = ByteBu...
skipBytes(buf.readUnsignedByte());
759,869
public boolean apply(Layer layer, SubLayer sublayer, Ability source, Game game) {<NEW_LINE>for (Iterator<MageObjectReference> it = affectedObjectList.iterator(); it.hasNext(); ) {<NEW_LINE>Permanent perm = it.next().getPermanent(game);<NEW_LINE>if (perm == null) {<NEW_LINE>it.remove();<NEW_LINE>continue;<NEW_LINE>}<NEW...
addCardType(game, CardType.CREATURE);
1,605,375
private static String allErrorsToString(List<String> allErrors) {<NEW_LINE>if (allErrors == null || allErrors.size() == 0)<NEW_LINE>// should never be<NEW_LINE>return "Error list empty";<NEW_LINE>StringBuilder b = new StringBuilder();<NEW_LINE>b.append("Number of errors: ").append(allErrors.size()).append("+").append("...
= new ArrayList<>(allErrors);
374,537
// Use invokeAll where the group of tasks to invoke is a single task and where it is no tasks at all.<NEW_LINE>// When a single task is invoked, it runs on the current thread if a permit is available, and otherwise on a separate thread.<NEW_LINE>// However, if using CallerRuns, then it always runs on the current thread...
1, futures.size());
408,078
public double impliedVolatilityFromPresentValue(ResolvedSwaption swaption, RatesProvider ratesProvider, DayCount dayCount, double presentValue) {<NEW_LINE>double sign = swaption.getLongShort().sign();<NEW_LINE>ArgChecker.isTrue(presentValue * sign > 0, "Present value sign must be in line with the option Long/Short flag...
expiry, 0.01, numeraire, putCall);
408,552
private HttpURLConnection connect0(final URI ipUri, final String method, final byte[] entity, final Map<String, List<String>> headers, final String endpointHost) throws IOException {<NEW_LINE>if (log.isTraceEnabled()) {<NEW_LINE>log.trace("req: {} {} {} {} {} {}", method, ipUri, headers.size(), Joiner.on(',').withKeyVa...
getOutputStream().write(entity);
1,040,014
final ListSatellitesResult executeListSatellites(ListSatellitesRequest listSatellitesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSatellitesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
endClientExecution(awsRequestMetrics, request, response);
1,315,510
public void readFieldValue(JSONReader jsonReader, T object) {<NEW_LINE>ObjectReader objectReader;<NEW_LINE>if (this.fieldObjectReader != null) {<NEW_LINE>objectReader = this.fieldObjectReader;<NEW_LINE>} else {<NEW_LINE>ObjectReader formattedObjectReader = FieldReaderObject.createFormattedObjectReader(fieldType, fieldC...
jsonReader, fieldType, fieldName, features);
1,169,555
public void execute(SchemaModel sm) throws IOException {<NEW_LINE>DefaultSchemaGenerator.this.sm = sm;<NEW_LINE>DefaultSchemaGenerator.this.am = AXIModelFactory.getDefault().getModel(sm);<NEW_LINE>SchemaUpdate su = SchemaGeneratorUtil.getSchemaUpdate(am);<NEW_LINE>Collection<SchemaUpdate.UpdateUnit> us = su.getUpdateUn...
AXIModelImpl) am).enableAutoSync();
789,442
public static DescribeGtmInstanceAddressPoolsResponse unmarshall(DescribeGtmInstanceAddressPoolsResponse describeGtmInstanceAddressPoolsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGtmInstanceAddressPoolsResponse.setRequestId(_ctx.stringValue("DescribeGtmInstanceAddressPoolsResponse.RequestId"));<NEW_LINE>des...
("DescribeGtmInstanceAddressPoolsResponse.AddrPools[" + i + "].MinAvailableAddrNum"));
510,078
public boolean onPreferenceChange(Preference preference, Object newValue) {<NEW_LINE>int timeout = Util.objectToInt(newValue);<NEW_LINE>if (timeout > 0) {<NEW_LINE>Context context = preference.getContext();<NEW_LINE>boolean fromServer = coreKey.equals("delete_server_after");<NEW_LINE>int delCount = DcHelper.getContext(...
getSelectedSummary(preference, newValue)));
35,832
public void run(RegressionEnvironment env) {<NEW_LINE>if (env.isHA()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String epl = "@name('flow') create dataflow RollingTopWords\n" + "create objectarray schema WordEvent (word string),\n" + "Emitter -> wordstream<WordEvent> {name:'a'} // Produces word stream\n" + "Select(wordstr...
eventService().advanceTime(0);
1,630,981
final ListBuildBatchesResult executeListBuildBatches(ListBuildBatchesRequest listBuildBatchesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBuildBatchesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
765,468
private RowExpression toRowExpression(Subfield subfield, List<Type> types) {<NEW_LINE>List<Subfield.PathElement> path = subfield.getPath();<NEW_LINE>if (path.isEmpty()) {<NEW_LINE>return new VariableReferenceExpression(Optional.empty(), subfield.getRootName(), types.get(0));<NEW_LINE>}<NEW_LINE>RowExpression base = toR...
.getIndex()), indexType);
1,565,784
private HttpResponse patchVCMR(HttpRequest request, String vcmrId) {<NEW_LINE>var optionalChangeRequest = controller.curator().readChangeRequest(vcmrId);<NEW_LINE>if (optionalChangeRequest.isEmpty()) {<NEW_LINE>return ErrorResponse.notFoundError("No VCMR with id: " + vcmrId);<NEW_LINE>}<NEW_LINE>var changeRequest = opt...
("status").asString());
56,210
private static <T extends IPart> ColoredItemDefinition<ColoredPartItem<T>> constructColoredDefinition(String nameSuffix, String idSuffix, Class<T> partClass, Function<ColoredPartItem<T>, T> factory) {<NEW_LINE>PartModels.registerModels(PartModelsHelper.createModels(partClass));<NEW_LINE>var definition = new ColoredItem...
= color.registryPrefix + '_' + idSuffix;
1,692,362
protected Object doInBackground() throws Exception {<NEW_LINE>downloadTaskRunning = true;<NEW_LINE>AndroidSdkHandler mHandler = AndroidSdkHandler.getInstance(sdkFolder);<NEW_LINE>FileSystemFileOp fop = (FileSystemFileOp) FileOpUtils.create();<NEW_LINE>CustomSettings settings = new CustomSettings();<NEW_LINE>Downloader ...
0, progress, downloader, settings);
1,666,070
/*<NEW_LINE>* @see com.sitewhere.grpc.service.BatchManagementGrpc.BatchManagementImplBase#<NEW_LINE>* listBatchElements(com.sitewhere.grpc.service.GListBatchElementsRequest,<NEW_LINE>* io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void listBatchElements(GListBatchElementsRequest request, S...
setCount(apiResult.getNumResults());
1,676,084
public void rollback(FlowRollback trigger, Map data) {<NEW_LINE>if (s) {<NEW_LINE>LocalStorageDirectlyDeleteBitsMsg msg = new LocalStorageDirectlyDeleteBitsMsg();<NEW_LINE>msg.setHostUuid(dstHostUuid);<NEW_LINE>msg.<MASK><NEW_LINE>msg.setPrimaryStorageUuid(vol.getPrimaryStorageUuid());<NEW_LINE>bus.makeTargetServiceIdB...
setPath(vol.getInstallPath());
1,154,458
protected FilterResults performFiltering(CharSequence constraint) {<NEW_LINE>FilterResults results = new FilterResults();<NEW_LINE>String favorites = app.getString(R.string.shared_string_favorites).toLowerCase();<NEW_LINE>if (constraint == null || constraint.length() == 0) {<NEW_LINE>results.values = null;<NEW_LINE>res...
.count = filter.size();
598,421
private void genInterfaceMethodDecl(StringBuilder sb, Method mi, Class ifaceType) {<NEW_LINE>if (mi.isDefault() || Modifier.isStatic(mi.getModifiers())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (mi.getAnnotation(ExtensionMethod.class) != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (StructuralTypeProxyGenerator.isO...
(" p").append(i);
992,134
public void runAssertion(RegressionEnvironment env, String createSchemaEPL, Consumer<NullableObject<Map<String, String>>> sender) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy(createSchemaEPL, path);<NEW_LINE>env.compileDeploy("@name('s0') select * from LocalEvent", path).addListener...
(Collections.emptyMap()));
560,418
public void onPreviewFrame(byte[] data, Camera camera) {<NEW_LINE>Camera.Parameters parameters = camera.getParameters();<NEW_LINE>int width = parameters.getPreviewSize().width;<NEW_LINE>int height <MASK><NEW_LINE>int rotation = calculateCaptureRotation();<NEW_LINE>YuvOperator yuvOperator = new YuvOperator(data, width, ...
= parameters.getPreviewSize().height;
1,112,619
public static DescribeSlsProjectResponse unmarshall(DescribeSlsProjectResponse describeSlsProjectResponse, UnmarshallerContext context) {<NEW_LINE>describeSlsProjectResponse.setRequestId(context.stringValue("DescribeSlsProjectResponse.RequestId"));<NEW_LINE>List<SlsProjectDataItem> slsProjectData = new ArrayList<SlsPro...
+ "].LogStore[" + j + "]"));
398,476
final DeleteJobResult executeDeleteJob(DeleteJobRequest deleteJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteJobRequest> request = null;<NE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,365,553
protected void onUpdateServer() {<NEW_LINE>super.onUpdateServer();<NEW_LINE>energySlot.drainContainer();<NEW_LINE>fuelSlot.fillOrBurn();<NEW_LINE>FloatingLong prev = getEnergyContainer().getEnergy().copyAsConst();<NEW_LINE>heatCapacitor.handleHeat(getBoost().doubleValue());<NEW_LINE>if (MekanismUtils.canFunction(this) ...
get().doubleValue());
185,078
private void interpolateSegments(Vector<Double> f0) {<NEW_LINE>int i, n, interval;<NEW_LINE>double slope;<NEW_LINE>// check where there are zeros and interpolate<NEW_LINE>int[] index = new int[2];<NEW_LINE>double[] value = new double[2];<NEW_LINE>index[0] = 0;<NEW_LINE>value[0] = 0.0;<NEW_LINE>for (i = 0; i < f0.size()...
value[0]) / interval);
1,565,532
public void removeConversation(final Contact contact, final Integer channelKey, String response) {<NEW_LINE>if (getActivity() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if ("success".equals(response)) {<NEW_LINE>this.getActivity().runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run...
remove(contact.getUserId());
1,530,083
public OverrideAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OverrideAction overrideAction = new OverrideAction();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.g...
int originalDepth = context.getCurrentDepth();
1,408,146
// prints BFS traversal from a given source s<NEW_LINE>void BFS(int s) {<NEW_LINE>// Mark all the vertices as not visited(By default<NEW_LINE>// set as false)<NEW_LINE>boolean[] visited = new boolean[V];<NEW_LINE>// Create a queue for BFS<NEW_LINE>LinkedList<Integer> queue = new LinkedList<Integer>();<NEW_LINE>// Mark ...
out.print(s + " ");
280,350
private void loadNode456() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfigurationType_CertificateGroups_DefaultApplicationGroup_TrustList_GetPosition_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputA...
DataValue(new Variant(o));
467,955
public void performOperation(final Random rnd, final Genome[] parents, final int parentIndex, final Genome[] offspring, final int offspringIndex) {<NEW_LINE>final EncogProgram parent1 = (EncogProgram) parents[0];<NEW_LINE>final EncogProgram parent2 = (EncogProgram) parents[1];<NEW_LINE>offspring[0] = null;<NEW_LINE>fin...
EncogProgramContext context = parent1.getContext();
1,096,244
protected void frameStateChanged() {<NEW_LINE>if (window == null || rootPane.getWindowDecorationStyle() != JRootPane.FRAME)<NEW_LINE>return;<NEW_LINE>if (window instanceof Frame) {<NEW_LINE>Frame frame = (Frame) window;<NEW_LINE>boolean resizable = frame.isResizable();<NEW_LINE>boolean maximized = ((frame.getExtendedSt...
int oldExtendedState = frame.getExtendedState();
1,036,720
public void process(Element element, EComponentWithViewSupportHolder holder) throws Exception {<NEW_LINE>String methodName = element<MASK><NEW_LINE>ExecutableElement executableElement = (ExecutableElement) element;<NEW_LINE>List<? extends VariableElement> parameters = executableElement.getParameters();<NEW_LINE>int sta...
.getSimpleName().toString();
295,653
public void run() {<NEW_LINE>try {<NEW_LINE>SQLiteDatabase database = mSQLiteHelper.getDatabase();<NEW_LINE>if (database == null) {<NEW_LINE>callback.onError("Database Error");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String sql = "INSERT OR REPLACE INTO " + mSQLiteHelper.getTableName() + " VALUES (?, ?);";<NEW_LINE>SQLite...
bindString(2, keyValue.value);
834,427
public XContentBuilder doXContentBody(XContentBuilder builder) throws IOException {<NEW_LINE>builder.field(Job.ID.getPreferredName(), jobId);<NEW_LINE>builder.field(Result.RESULT_TYPE.getPreferredName(), RESULT_TYPE_VALUE);<NEW_LINE>builder.field(MODEL_BYTES_FIELD.getPreferredName(), modelBytes);<NEW_LINE>if (peakModel...
TOTAL_PARTITION_FIELD_COUNT_FIELD.getPreferredName(), totalPartitionFieldCount);
1,058,729
protected void prepare() {<NEW_LINE>for (ProcessInfoParameter para : getParameter()) {<NEW_LINE>String name = para.getParameterName();<NEW_LINE>if (para.getParameter() == null)<NEW_LINE>;<NEW_LINE>else if (name.equals(X_M_Product.COLUMNNAME_M_Product_ID)) {<NEW_LINE>p_M_Product_ID = para.getParameterAsInt();<NEW_LINE>}...
(String) para.getParameter();
802,682
private void writeSuiteGroups(XMLStringBuffer xmlBuffer, ISuite suite) {<NEW_LINE>xmlBuffer.push(XMLReporterConfig.TAG_GROUPS);<NEW_LINE>Map<String, Collection<ITestNGMethod>> methodsByGroups = suite.getMethodsByGroups();<NEW_LINE>for (Map.Entry<String, Collection<ITestNGMethod>> entry : methodsByGroups.entrySet()) {<N...
getUniqueMethodSet(entry.getValue());
1,661,813
private void initHotkeys() {<NEW_LINE>// Don't change focus on TAB<NEW_LINE>setFocusTraversalKeys(KeyboardFocusManager.FORWARD_TRAVERSAL_KEYS, new HashSet<KeyStroke>());<NEW_LINE>final InputMap inputMap = this.getInputMap();<NEW_LINE>final ActionMap actionMap = getActionMap();<NEW_LINE>inputMap.put(KeyStroke.getKeyStro...
actionMap.put("shift PAGE_UP", m_pageUpAction);
136,917
private void init_custom_card_expand_inside() {<NEW_LINE>// Create a Card<NEW_LINE>Card card = new Card(getActivity());<NEW_LINE>// Create a CardHeader<NEW_LINE>CardHeader header = new CardHeader(getActivity());<NEW_LINE>// Set the header title<NEW_LINE>header.setTitle(getString<MASK><NEW_LINE>// Add Header to card<NEW...
(R.string.demo_header_expand_area_inside));
918,513
public LeaderPingResult pingLeaderWithUuid(UUID uuid) {<NEW_LINE>Optional<LeaderPingerContext<PingableLeader<MASK><NEW_LINE>if (!suspectedLeader.isPresent()) {<NEW_LINE>return LeaderPingResults.pingReturnedFalse();<NEW_LINE>}<NEW_LINE>LeaderPingerContext<PingableLeader> leader = suspectedLeader.get();<NEW_LINE>Multiple...
>> suspectedLeader = getSuspectedLeader(uuid);
1,355,216
private void loadNode1249() {<NEW_LINE>SessionSecurityDiagnosticsTypeNode node = new SessionSecurityDiagnosticsTypeNode(this.context, Identifiers.SessionsDiagnosticsSummaryType_ClientName_Placeholder_SessionSecurityDiagnostics, new QualifiedName(0, "SessionSecurityDiagnostics"), new LocalizedText("en", "SessionSecurity...
.expanded(), true));
593,204
public String encode(WeixinResponse response) throws WeixinException {<NEW_LINE>WeixinMessageTransfer messageTransfer = WeiXin4jContextAwareImpl<MASK><NEW_LINE>EncryptType encryptType = messageTransfer.getEncryptType();<NEW_LINE>StringBuilder content = new StringBuilder();<NEW_LINE>content.append(XML_START);<NEW_LINE>c...
.getWeixinMessageTransfer().get();
1,592,266
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (player.chooseUse(Outcome.PutCardInPlay, "Put a creature card from your hand onto the battlefield?", source, game)) {<NEW_LINE...
getPermanent(target.getFirstTarget());
71,956
public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {<NEW_LINE>HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest;<NEW_LINE>Subject subject = SecurityUtils.getSubject();<NEW_LINE>if (subject.isAuthent...
"login error, msg: {}", ex.getMessage());
89,650
public Frame decorrelateRel(Join rel) {<NEW_LINE>// For SEMI/ANTI join decorrelate it's input directly,<NEW_LINE>// because the correlate variables can only be propagated from<NEW_LINE>// the left side, which is not supported yet.<NEW_LINE>if (!rel.getJoinType().projectsRight()) {<NEW_LINE>return decorrelateRel((RelNod...
.getRowType().getFieldCount();
795,642
public VoidResponse unassignValidValueFromConsumer(String serverName, String userId, String validValueGUID, String consumerGUID, NullRequestBody requestBody) {<NEW_LINE>final String methodName = "unassignValidValueFromConsumer";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCall(serverName, userId, methodName);<...
getValidValuesHandler(userId, serverName, methodName);
665,422
public MultipleObjectsBundle filter(MultipleObjectsBundle objects) {<NEW_LINE>final int size = objects.dataLength();<NEW_LINE>if (size == 0) {<NEW_LINE>return objects;<NEW_LINE>}<NEW_LINE>MultipleObjectsBundle bundle = new MultipleObjectsBundle();<NEW_LINE>for (int r = 0; r < objects.metaLength(); r++) {<NEW_LINE>@Supp...
SingularValueDecomposition svd = new SingularValueDecomposition(mat);
142,414
public TimeSeriesDatabaseConnection deleteById(String id) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW_LI...
Utils.getValueFromIdByName(id, "resourceGroups");
1,375,642
public DescribeAlarmsForMetricResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAlarmsForMetricResult describeAlarmsForMetricResult = new DescribeAlarmsForMetricResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>i...
XMLEvent xmlEvent = context.nextEvent();
1,026,754
public static void initType(PythonObjectSlowPathFactory factory, PythonLanguage language, Object klass, Descriptor desc) {<NEW_LINE>assert IsSubtypeNode.getUncached().execute(klass, PythonBuiltinClassType.PTuple);<NEW_LINE>// create descriptors for accessing named fields by their names<NEW_LINE>int unnamedFields = 0;<N...
klass, N_SEQUENCE_FIELDS, desc.inSequence);
1,355,545
Expression optimize(Expression filterExpression) {<NEW_LINE><MASK><NEW_LINE>FilterKind filterKind = FilterKind.valueOf(filterFunction.getOperator());<NEW_LINE>List<Expression> operands = filterFunction.getOperands();<NEW_LINE>if (filterKind == FilterKind.AND || filterKind == FilterKind.OR || filterKind == FilterKind.NO...
Function filterFunction = filterExpression.getFunctionCall();
1,362,324
private void fireJSSnap(int x, int y, int w, int h) {<NEW_LINE>// System.out.println("[WebviewSnapshotter::fireJSSnap("+x+","+y+","+w+","+h);<NEW_LINE>if (!CN.isEdt()) {<NEW_LINE>CN.callSerially(() -> {<NEW_LINE>fireJSSnap(<MASK><NEW_LINE>});<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>web.execute("window.snapper = window.sna...
x, y, w, h);
1,240,630
public void assertAccountValid(final I_C_ValidCombination account, final I_GL_JournalLine glJournalLine) {<NEW_LINE>Check.assumeNotNull(account, "account not null");<NEW_LINE>Check.assume(account.getC_ValidCombination_ID() > 0, "account exists");<NEW_LINE>final I_C_ElementValue accountEV = account.getAccount();<NEW_LIN...
"@PostingTypeActualError@ - @Line@=" + lineNo + " - " + accountEV);