idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,390,863
private void decorate(SofaTracerSpan span, CommandStartedEvent event) {<NEW_LINE>String command = event.getCommandName();<NEW_LINE>span.setTag(Tags.COMPONENT.getKey(), COMPONENT_NAME);<NEW_LINE>span.setTag(Tags.DB_STATEMENT.getKey(), event.getCommand().toString());<NEW_LINE>span.setTag(Tags.DB_INSTANCE.getKey(), event....
getServerAddress().getHost());
1,654,075
final SwapEnvironmentCNAMEsResult executeSwapEnvironmentCNAMEs(SwapEnvironmentCNAMEsRequest swapEnvironmentCNAMEsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(swapEnvironmentCNAMEsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,347,745
public CompletableFuture<Boolean> allowTopicPolicyOperationAsync(TopicName topicName, PolicyName policy, PolicyOperation operation, String originalRole, String role, AuthenticationDataSource authData) {<NEW_LINE>try {<NEW_LINE>validateOriginalPrincipal(conf.getProxyRoles(), role, originalRole);<NEW_LINE>} catch (RestEx...
policy, operation, originalRole, authData);
701,463
final GetRoleResult executeGetRole(GetRoleRequest getRoleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRoleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,479,887
public Object doQuery(Object[] objs) {<NEW_LINE>List<String> ls <MASK><NEW_LINE>if (objs.length != 2) {<NEW_LINE>throw new RQException("redis zrank param size " + objs.length + " is not 2");<NEW_LINE>} else {<NEW_LINE>Object[] os = new Object[1];<NEW_LINE>os[0] = objs[0] + "_" + objs[1];<NEW_LINE>// for columns<NEW_LIN...
= new ArrayList<String>();
904,956
private static void addIntersectionTypeModel(IntersectionTypeDescriptorNode typeDescriptor, String typeName, Optional<MetadataNode> optionalMetadataNode, SemanticModel semanticModel, Module module) {<NEW_LINE>boolean isReadonly = typeDescriptor.leftTypeDesc().kind() == SyntaxKind.READONLY_TYPE_DESC || typeDescriptor.ri...
memberTypes = new ArrayList<>();
1,438,611
public SDVariable defineLayer(SameDiff sd, SDVariable layerInput, Map<String, SDVariable> paramTable, SDVariable mask) {<NEW_LINE>SDVariable weights = paramTable.get(DefaultParamInitializer.WEIGHT_KEY);<NEW_LINE>SDVariable logits = sd.tensorMmul(layerInput, weights, new int[] { 2 }, <MASK><NEW_LINE>SDVariable reshapedL...
new int[] { 0 });
41,566
public void run(RegressionEnvironment env) {<NEW_LINE>sendTimeEvent(env, "2002-05-1T08:00:00.000");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create context NineToFive as start (0, 9, *, *, *) end (0, 17, *, *, *)", path);<NEW_LINE>String[] fields = "col1,col2,col3,col4".s...
, 5, 1, "E1" });
681,462
private void writeVariable(JRVariable variable, String variableName) {<NEW_LINE>if (variable != null) {<NEW_LINE>String resetGroupName = getGroupName(variable.getResetGroup());<NEW_LINE>String incrementGroupName = getGroupName(variable.getIncrementGroup());<NEW_LINE>write("JRDesignVariable " + variableName + " = new JR...
getInitialValueExpression(), variableName, "InitialValueExpression");
59,622
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
(super.beforeMarshalling(tagResourceRequest));
1,568,656
private boolean parseArgs(List<String> args) {<NEW_LINE>try {<NEW_LINE>while (!args.isEmpty()) {<NEW_LINE>String arg = args.remove(0);<NEW_LINE>if (arg.equals("-h") || arg.equals("--help")) {<NEW_LINE>help();<NEW_LINE>helpOption = true;<NEW_LINE>return false;<NEW_LINE>} else if ("--name".equals(arg)) {<NEW_LINE><MASK><...
name = getParam(args, arg);
1,043,408
private CompletableFuture<List<Wo>> searchForm(final Wi wi, final List<String> appIdList, final List<String> designerIdList) {<NEW_LINE>CompletableFuture<List<Wo>> cf = CompletableFuture.supplyAsync(() -> {<NEW_LINE>List<Wo> resWos = new ArrayList<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFa...
setDesignerId(woForm.getId());
695,312
public static <T> Message<T> write(Message<T> messageArg, NamedComponent component, MessageBuilderFactory messageBuilderFactory) {<NEW_LINE>Message<T> message = messageArg;<NEW_LINE>Assert.notNull(message, "Message must not be null");<NEW_LINE>Assert.notNull(component, "Component must not be null");<NEW_LINE>Properties...
get(HEADER_NAME, MessageHistory.class);
428,338
public void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>if (request.getHeader("Origin") != null && (getBimServer().getServerInfo().getServerState() != ServerState.MIGRATION_REQUIRED && !getBimServer().getServerSettingsCache().isHostAllowed(request.ge...
(bytes, Charsets.UTF_8));
1,452,032
private static double calculateSingleDistance(ImmutableFeatureMap fMap, long numTrainingExamples, int index, double value) {<NEW_LINE>VariableInfo <MASK><NEW_LINE>if (info instanceof CategoricalInfo) {<NEW_LINE>return 1.0;<NEW_LINE>} else if (info instanceof RealInfo) {<NEW_LINE>RealInfo rInfo = (RealInfo) info;<NEW_LI...
info = fMap.get(index);
1,160,001
private void buildCompiledResourceMergingAction(BusyBoxActionBuilder builder) {<NEW_LINE>Preconditions.checkNotNull(primary);<NEW_LINE>createInputsForBuilder(builder).addInput("--primaryData", AndroidDataConverter.COMPILED_RESOURCE_CONVERTER.map(primary), ImmutableList.of(primary.getCompiledSymbols()));<NEW_LINE>if (de...
maybeAddInput(resources.getCompiledSymbols());
1,735,587
public com.alipay.sofa.jraft.rpc.CliRequests.AddPeerResponse buildPartial() {<NEW_LINE>com.alipay.sofa.jraft.rpc.CliRequests.AddPeerResponse result = new com.alipay.sofa.jraft.rpc.CliRequests.AddPeerResponse(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((bitField0_ & 0x...
bitField0_ = (bitField0_ & ~0x00000001);
629,718
public static AuthRequestModifier buildDigest(AuthChallenge aHeader, String user, String password, String method, String requestTarget) {<NEW_LINE>String clientNonce = DigestLib.generateNonce();<NEW_LINE>AtomicLong ncCounter = new AtomicLong(0);<NEW_LINE>return req -> {<NEW_LINE>// Bump nc<NEW_LINE>String nc = String.f...
true, "username", user, true);
1,123,426
public long spill(long numBytes) throws IOException {<NEW_LINE>synchronized (this) {<NEW_LINE>if (!destructive || dataPages.size() == 1) {<NEW_LINE>return 0L;<NEW_LINE>}<NEW_LINE>long released = 0L;<NEW_LINE>while (dataPages.size() > 0) {<NEW_LINE>MemoryBlock block = dataPages.getLast();<NEW_LINE>// The currentPage is ...
Object base = block.getBaseObject();
1,769,996
public Session load(String id) throws ClassNotFoundException, IOException {<NEW_LINE>// HERCULES:addition<NEW_LINE>// Check to see if it's in our cache first<NEW_LINE>Session sess = sessions.get(id);<NEW_LINE>if (sess != null) {<NEW_LINE>return sess;<NEW_LINE>}<NEW_LINE>// HERCULES:addition<NEW_LINE>// Open an input st...
FileInputStream(file.getAbsolutePath());
443,664
public void tick() {<NEW_LINE>super.tick();<NEW_LINE>if (level.isClientSide || isDummy())<NEW_LINE>return;<NEW_LINE>boolean update = false;<NEW_LINE>if (energyStorage.getEnergyStored() > 0 && processQueue.size() < this.getProcessQueueMaxLength()) {<NEW_LINE>if (tanks[0].getFluidAmount() > 0 || tanks[1].getFluidAmount()...
.get(inputSlot), outputStack);
487,169
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select " + ALL_FIELDS + " from " + " sql:MyDBWithRetain ['select " + ALL_FIELDS + " from mytesttable where ${id} = mytesttable.mybigint'] as s0," + "SupportBean_S0 as s1";<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LIN...
, eventType.getPropertyType("mydecimal"));
1,201,102
final GetEC2RecommendationProjectedMetricsResult executeGetEC2RecommendationProjectedMetrics(GetEC2RecommendationProjectedMetricsRequest getEC2RecommendationProjectedMetricsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEC2RecommendationProjectedMetricsRequest);<NEW_LINE>AWSRequestMet...
false), new GetEC2RecommendationProjectedMetricsResultJsonUnmarshaller());
1,715,094
public void loadFromXml(EwsServiceXmlReader reader, boolean clear, PropertySet requestedPropertySet, boolean onlySummaryPropertiesRequested) throws Exception {<NEW_LINE>if (clear) {<NEW_LINE>this.clear();<NEW_LINE>}<NEW_LINE>// Put the property bag in "loading" mode. When in loading mode, no<NEW_LINE>// checking is don...
().getXmlElementName()));
1,650,932
private void classLeftBracePlacement() {<NEW_LINE>CodeStyle.BracePlacement bracePlacement = cs.getClassDeclBracePlacement();<NEW_LINE><MASK><NEW_LINE>int old = indent = lastIndent;<NEW_LINE>int halfIndent = lastIndent;<NEW_LINE>switch(bracePlacement) {<NEW_LINE>case SAME_LINE:<NEW_LINE>spaces(spaceBeforeLeftBrace ? 1 :...
boolean spaceBeforeLeftBrace = cs.spaceBeforeClassDeclLeftBrace();
848,614
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* net.grinder.console.model.SampleListener#update(net.grinder.statistics<NEW_LINE>* .StatisticsSet, net.grinder.statistics.StatisticsSet)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void update(final StatisticsSet intervalStatistics, final StatisticsSet...
(currentPeriod - lastSamplingPeriod) / interval);
1,346,682
public static void fixedLagSmoothingDemo() {<NEW_LINE>System.out.println("DEMO: Fixed-Lag-Smoothing");<NEW_LINE>System.out.println("=========================");<NEW_LINE>System.out.println("Lag = 1");<NEW_LINE>System.out.println("-------");<NEW_LINE>FixedLagSmoothing uw = new FixedLagSmoothing(HMMExampleFactory.getUmbr...
out.println("Day 2 (Umbrella_t=true) smoothed:\nday 1=" + smoothed);
1,213,954
private FeatureVector createDocumentVector(Terms terms, IndexReader reader, boolean tweetsearch) throws IOException {<NEW_LINE>FeatureVector f = new FeatureVector();<NEW_LINE>BytesRef text;<NEW_LINE>int numDocs = reader.numDocs();<NEW_LINE>TermsEnum termsEnum = terms.iterator();<NEW_LINE>while ((text = termsEnum.next()...
String term = text.utf8ToString();
729,175
public void onClick(View v) {<NEW_LINE>new QMUIDialog.CheckableDialogBuilder(mContext).setCheckedIndex(PixivSearchParamUtil.getSortTypeIndex(Shaft.sSettings.getSearchDefaultSortType())).setSkinManager(QMUISkinManager.defaultInstance(mContext)).addItems(PixivSearchParamUtil.SORT_TYPE_NAME, new DialogInterface.OnClickLis...
.string.string_428), 2);
994,707
public AuthenticationResult createNegotiateHeader(HttpServletResponse resp, SpnegoConfig spnegoConfig) {<NEW_LINE>resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);<NEW_LINE>resp.setHeader("WWW-Authenticate", "Negotiate");<NEW_LINE>resp.setContentType(spnegoConfig.getErrorPageConfig().getSpnegoNotSupportedPageContent...
.getErrorPageConfig().getSpnegoNotSupportedPageCharset();
640,667
public static // '[' callback_function_list? ']'<NEW_LINE>boolean optional_callback_functions(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "optional_callback_functions"))<NEW_LINE>return false;<NEW_LINE>if (!nextTokenIs(b, ERL_BRACKET_LEFT))<NEW_LINE>return false;<NEW_LINE>boolean r, p;<NEW_LINE>Marker m...
(b, l + 1));
430,986
/*<NEW_LINE>* Given an entry in a Zip archive, create a new Asset object.<NEW_LINE>*<NEW_LINE>* If the entry is uncompressed, we may want to create or share a<NEW_LINE>* slice of shared memory.<NEW_LINE>*/<NEW_LINE>static Asset openAssetFromZipLocked(final ZipFileRO pZipFile, final ZipEntryRO entry, AccessMode mode, fi...
Asset.createFromUncompressedMap(dataMap, mode);
581,532
static String createAuthorizationSignatureV4(HttpServletRequest request, S3AuthorizationHeader authHeader, byte[] payload, String uri, String credential) throws InvalidKeyException, IOException, NoSuchAlgorithmException, S3Exception {<NEW_LINE>String canonicalRequest = createCanonicalRequest(request, uri, payload, auth...
.UTF_8), dateKey, algorithm);
1,489,856
public void service(HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException {<NEW_LINE>List<JasperPrint> jasperPrintList = BaseHttpServlet.getJasperPrintList(request);<NEW_LINE>if (jasperPrintList == null) {<NEW_LINE>throw new ServletException("No JasperPrint documents found on th...
(SimpleExporterInput.getInstance(jasperPrintList));
1,437,379
protected void handleAdditionalDependencies(List<HasDependencies.ClientDependency> dependenciesToAdd, List<Dependency> dependencies, LegacyCommunicationManager manager) {<NEW_LINE>for (HasDependencies.ClientDependency dependency : dependenciesToAdd) {<NEW_LINE>String resourcePath;<NEW_LINE><MASK><NEW_LINE>if (dependenc...
String dependencyPath = dependency.getPath();
306,390
public com.amazonaws.services.cloudhsmv2.model.CloudHsmTagException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cloudhsmv2.model.CloudHsmTagException cloudHsmTagException = new com.amazonaws.services.cloudhsmv2.model.CloudHsmTagException(null);<NEW_LINE>int ...
JsonToken token = context.getCurrentToken();
607,199
public void marshall(ExportJournalToS3Request exportJournalToS3Request, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (exportJournalToS3Request == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(exportJourna...
exportJournalToS3Request.getRoleArn(), ROLEARN_BINDING);
194,578
private void initPersistedCoreDumps() {<NEW_LINE>if (!CoreDumpSupport.storageDirectoryExists())<NEW_LINE>return;<NEW_LINE>File[] files = CoreDumpSupport.getStorageDirectory().listFiles(new FilenameFilter() {<NEW_LINE><NEW_LINE>public boolean accept(File dir, String name) {<NEW_LINE>return name.endsWith(Storage.DEFAULT_...
String> unresolvedCoreDumpsS = new HashSet();
786,123
private int checkAugmentedHeads() {<NEW_LINE>logger.debug("S#{} checkAugmentedHeads", system.getId());<NEW_LINE>int modifs = 0;<NEW_LINE>final List<Inter> headChords = sig.inters(HeadChordInter.class);<NEW_LINE>for (Inter hc : headChords) {<NEW_LINE><MASK><NEW_LINE>// Heads, ordered top down<NEW_LINE>final List<? exten...
final HeadChordInter chord = (HeadChordInter) hc;
462,058
public void showAnnotation(FileAnnotation annotation, VirtualFile file, AbstractVcs vcs, int line) {<NEW_LINE>TextEditor textFileEditor;<NEW_LINE>FileEditor fileEditor = FileEditorManager.getInstance(myProject).getSelectedEditor(file);<NEW_LINE>if (fileEditor instanceof TextEditor) {<NEW_LINE>textFileEditor = ((TextEdi...
myProject, file, line, 0);
1,364,462
public ListDeviceResourcesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListDeviceResourcesResult listDeviceResourcesResult = new ListDeviceResourcesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
299,193
public static /*public static ModelSource createModelSource(final FileObject thisFileObj,<NEW_LINE>boolean editable) throws CatalogModelException{<NEW_LINE>assert thisFileObj != null : "Null file object.";<NEW_LINE>final CatalogModel catalogModel = createCatalogModel(thisFileObj);<NEW_LINE>final DataObject dobj;<NEW_LI...
"Can't load data object from "+thisFileObj.getPath());
1,782,708
String resolvedDestination(String destination, DefaultChannels defaultChannel) {<NEW_LINE>try {<NEW_LINE>BindingServiceProperties channelBindingServiceProperties = this.context.getBean(BindingServiceProperties.class);<NEW_LINE>Map<String, String> <MASK><NEW_LINE>for (Map.Entry<String, BindingProperties> entry : channel...
channels = new HashMap<>();
665,187
public static ListProductsResponse unmarshall(ListProductsResponse listProductsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listProductsResponse.setRequestId<MASK><NEW_LINE>listProductsResponse.setTotal(_ctx.integerValue("ListProductsResponse.Total"));<NEW_LINE>listProductsResponse.setUbsmsStatus(_ctx.stringValue("Li...
(_ctx.stringValue("ListProductsResponse.RequestId"));
226,132
public void translate(GeyserSession session, ClientboundContainerSetSlotPacket packet) {<NEW_LINE>if (packet.getContainerId() == 255) {<NEW_LINE>// cursor<NEW_LINE>GeyserItemStack newItem = GeyserItemStack.from(packet.getItem());<NEW_LINE>session.getPlayerInventory().setCursor(newItem, session);<NEW_LINE>InventoryUtils...
InventoryTranslator translator = session.getInventoryTranslator();
1,586,241
private void handleServerChannel(JsonNode jsonChannel) {<NEW_LINE>long channelId = jsonChannel.get("id").asLong();<NEW_LINE>long guildId = jsonChannel.get("guild_id").asLong();<NEW_LINE>ServerImpl server = api.getPossiblyUnreadyServerById(guildId).map(ServerImpl.class::cast).orElse(null);<NEW_LINE>if (server == null) {...
get("name").asText();
1,197,340
private int newCorrelationTypeKnownId(CorrelationAttributeInstance.Type newType) throws CentralRepoException {<NEW_LINE>Connection conn = connect();<NEW_LINE>PreparedStatement preparedStatement = null;<NEW_LINE>PreparedStatement preparedStatementQuery = null;<NEW_LINE>ResultSet resultSet = null;<NEW_LINE>int typeId = 0...
preparedStatement = conn.prepareStatement(insertSql);
1,062,788
public E relaxedPeek() {<NEW_LINE>final int chunkMask = this.chunkMask;<NEW_LINE>final int chunkShift = this.chunkShift;<NEW_LINE>final long cIndex = this.lvConsumerIndex();<NEW_LINE>final int ciChunkOffset = <MASK><NEW_LINE>final long ciChunkIndex = cIndex >> chunkShift;<NEW_LINE>MpmcUnboundedXaddChunk<E> consumerBuff...
(int) (cIndex & chunkMask);
1,539,340
final GetRateBasedRuleManagedKeysResult executeGetRateBasedRuleManagedKeys(GetRateBasedRuleManagedKeysRequest getRateBasedRuleManagedKeysRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRateBasedRuleManagedKeysRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,222,024
public void requestPermissions(String[] permissions) {<NEW_LINE>if (component.isService()) {<NEW_LINE>// https://developer.android.com/training/articles/wear-permissions.html<NEW_LINE>// Inspired by PermissionHelper.java from Michael von Glasow:<NEW_LINE>// https://github.com/mvglasow/satstat/blob/master/src/com/vongla...
permIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
122,922
public static String toJSONString(Object object, SerializeFilter[] filters, SerializerFeature... features) {<NEW_LINE>JSONWriter.Context context = JSONFactory.createWriteContext();<NEW_LINE>config(context, features);<NEW_LINE>try (JSONWriter writer = JSONWriter.of(context)) {<NEW_LINE>writer.setRootObject(object);<NEW_...
context.getObjectWriter(valueClass, valueClass);
1,813,597
public void openURL(String url) {<NEW_LINE>if (TextUtils.isEmpty(url)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String scheme = Uri.parse(url).getScheme();<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>if ("weex://go/scan".equals(url)) {<NEW_LINE>if (ContextCompat.checkSelfPermission(mWXSDKInstance.getCo...
.permission.CAMERA }, CAMERA_PERMISSION_REQUEST_CODE);
1,587,253
final GetFaceSearchResult executeGetFaceSearch(GetFaceSearchRequest getFaceSearchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFaceSearchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
911,303
// To get items having price more than 1000<NEW_LINE>public String[] greaterThanCriteria() {<NEW_LINE>final Session session = HibernateUtil.getHibernateSession();<NEW_LINE>final CriteriaBuilder cb = session.getCriteriaBuilder();<NEW_LINE>final CriteriaQuery<Item> cr = cb.createQuery(Item.class);<NEW_LINE>final Root<Ite...
get("itemPrice"), 1000));
1,324,416
public boolean updateBounds(int lb, int ub, ICause cause) throws ContradictionException {<NEW_LINE>assert cause != null;<NEW_LINE>int olb = this.getLB();<NEW_LINE>int oub = this.getUB();<NEW_LINE>boolean hasChanged = false;<NEW_LINE>if (olb < lb || oub > ub) {<NEW_LINE>IntEventType e = null;<NEW_LINE>if (olb < lb) {<NE...
.getEventObserver().undo();
1,022,104
public static GraphQLInterfaceType createInterfaceType(final String typeName, final Map<String, TypeFetcher> fieldsTypesAndFetchers, final TypeResolver typeResolver) {<NEW_LINE>final GraphQLInterfaceType.Builder builder = GraphQLInterfaceType.newInterface().name(typeName);<NEW_LINE>fieldsTypesAndFetchers.forEach((key, ...
dataFetcher(value.getDataFetcher());
428,176
public void createBip44AccountContext(HDAccountContext context) {<NEW_LINE>_database.beginTransaction();<NEW_LINE>try {<NEW_LINE>// Create accountBacking tables<NEW_LINE>SqliteBtcAccountBacking backing = _backings.get(context.getId());<NEW_LINE>if (backing == null) {<NEW_LINE>createAccountBackingTables(context.getId(),...
(context.getDefaultAddressType()));
41,025
protected void didBecomeActive(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.didBecomeActive(savedInstanceState);<NEW_LINE>presenter.squareClicks().subscribe(new Consumer<BoardCoordinate>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void accept(BoardCoordinate xy) throws Exception {<NEW_LINE>if (board.cells...
getY()] = MarkerType.CROSS;
1,015,112
public void marshall(GetNetworkTelemetryRequest getNetworkTelemetryRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (getNetworkTelemetryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(getNet...
e.getMessage(), e);
1,083,716
public AuditLogModelDao map(final int index, final ResultSet r, final StatementContext ctx) throws SQLException {<NEW_LINE>final UUID id = getUUID(r, "id");<NEW_LINE>final String tableName = r.getString("table_name");<NEW_LINE>final long targetRecordId = r.getLong("target_record_id");<NEW_LINE>final String changeType =...
reasonCode = r.getString("reason_code");
58,618
private static void appendLength(ByteBuffer buffer, int length, boolean masked) {<NEW_LINE>if (length < 0) {<NEW_LINE>throw new IllegalArgumentException("Length cannot be negative");<NEW_LINE>}<NEW_LINE>byte b = (masked ? (byte) 0x80 : 0x00);<NEW_LINE>if (length > 0xFFFF) {<NEW_LINE>buffer.put((byte) (b | 0x7F));<NEW_L...
>> 8) & 0xFF));
816,271
public void removeMarker(BlockPos pos) {<NEW_LINE>if (positions.getFirst().equals(pos)) {<NEW_LINE>positions.removeFirst();<NEW_LINE>loop = false;<NEW_LINE>if (positions.size() < 2) {<NEW_LINE>positions.clear();<NEW_LINE>}<NEW_LINE>subCache.refreshConnection(this);<NEW_LINE>} else if (positions.getLast().equals(pos)) {...
b = new ArrayList<>();
464,629
// snapshot callback<NEW_LINE>public void cloneWindow() {<NEW_LINE>DecompilerProvider newProvider = plugin.createNewDisconnectedProvider();<NEW_LINE>// invoke later to give the window manage a chance to create the new window<NEW_LINE>// (its done in an invoke later)<NEW_LINE>Swing.runLater(() -> {<NEW_LINE>ViewerPositi...
.getDecompilerPanel().getViewerPosition();
655,385
void merge(int[][] tabs) {<NEW_LINE>int len = 0;<NEW_LINE>for (int i = 0; i < tabs.length; i++) {<NEW_LINE>len <MASK><NEW_LINE>}<NEW_LINE>this.base = new int[tabs.length];<NEW_LINE>this.check = new int[len];<NEW_LINE>this.tabMerged = new int[len];<NEW_LINE>Arrays.fill(this.base, -1);<NEW_LINE>Arrays.fill(this.check, -1...
+= tabs[i][0];
1,063,757
public ReduceableSearchResult reduce(Collection<Collector> collectors) throws IOException {<NEW_LINE>final Collection<Collector> <MASK><NEW_LINE>for (final Collector collector : collectors) {<NEW_LINE>if (collector instanceof MultiCollectorWrapper) {<NEW_LINE>subs.addAll(((MultiCollectorWrapper) collector).getCollector...
subs = new ArrayList<>();
1,130,294
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select s1.* as s1 from SupportBean#length(3) as s0, " + "SupportMarketDataBean#keepall as s1";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.assertStatement("s0", statement -> {<NEW_LINE>EventType type = statement.getEvent...
event.get("s1")));
1,057,616
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String integrationAccountName, String mapName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."...
getApiVersion(), accept, context);
1,716,687
public void retain(IndexSet indexSet) {<NEW_LINE>final Map<String, Set<String>> deflectorIndices = indexSet.getAllIndexAliases();<NEW_LINE>final int indexCount = (int) deflectorIndices.keySet().stream().filter(indexName -> !indices.isReopened(indexName)).count();<NEW_LINE>final Optional<Integer> maxIndices = getMaxNumb...
= indexCount - maxIndices.get();
940,934
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>HttpServletRequest req = (HttpServletRequest) request;<NEW_LINE>HttpServletResponse res = (HttpServletResponse) response;<NEW_LINE>String requestPath = req.getRequestURI();<NEW_LINE>...
oldBasePath + logPathEnding, newBasePath + logPathEnding);
997,517
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>TriggerSmartContract.Builder build = TriggerSmartContract.newBuilder();<NEW_LINE>TransactionExtention.Builder trxExtBuilder = TransactionExtention.newBuilder();<NEW_LINE>Return.Builder retBuilder = Return.newBu...
()), trxExtBuilder, retBuilder);
880,244
// Test that testqueueCapacityRemaining is correct as tasks are queued, run, and the maxQueueSize value is changed.<NEW_LINE>@Test<NEW_LINE>public void testQueueCapacityRemaining() throws Exception {<NEW_LINE>PolicyExecutor executor = provider.create("testqueueCapacityRemaining").maxConcurrency(1).maxQueueSize(5);<NEW_...
blockingFuture = executor.submit(blockingTask);
1,504,824
private int remove(@CheckForNull Object key, int hash) {<NEW_LINE><MASK><NEW_LINE>int next = table[tableIndex];<NEW_LINE>if (next == UNSET) {<NEW_LINE>// empty bucket<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int last = UNSET;<NEW_LINE>do {<NEW_LINE>if (getHash(entries[next]) == hash) {<NEW_LINE>if (Objects.equal(key, key...
int tableIndex = hash & hashTableMask();
820,621
private static boolean includeConstraint(SchemaReadCore schemaRead, ConstraintDescriptor constraint) {<NEW_LINE>// If constraint is index backed constraint following rules apply<NEW_LINE>// - Constraint must own index<NEW_LINE>// - Owned index must exist<NEW_LINE>// - Owned index must share name with constraint<NEW_LIN...
1) == constraint.getId();
195,704
public Map<String, TasksAndEventsRepository.AppConfig> readPersistedTasks(SharedPreferences preferences) {<NEW_LINE>Map<String, TasksAndEventsRepository.AppConfig> result = new HashMap<>();<NEW_LINE>Map<String, ?> appScopeKeyToAppConfigsMap = preferences.getAll();<NEW_LINE>for (Map.Entry<String, ?> appScopeKeyToConfig ...
, tasksConfig.get(taskName));
311,210
// GEN-LAST:event_removeToken<NEW_LINE>@Messages({ "LBL_ProvidedTokens_T=Provided &Tokens:", "ACS_ProvidedTokensTitle=Required tokens panel", "ACS_LBL_ProvidedTokens=Required tokens", "ACS_CTL_ProvidedTokensVerticalScroll=Required tokens vertical scroll bar", "ACSD_CTL_ProvidedTokensVerticalScroll=Required tokens verti...
(selected[0], true);
1,177,137
public boolean insertBranchTransactionDO(BranchTransactionDO branchTransactionDO) {<NEW_LINE>String sql = LogStoreSqlsFactory.getLogStoreSqls(dbType).getInsertBranchTransactionSQL(branchTable);<NEW_LINE>Connection conn = null;<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>try {<NEW_LINE>int index = 1;<NEW_LINE>conn = ...
++, branchTransactionDO.getResourceGroupId());
1,275,077
public static IMapEvent createIMapEvent(EventData eventData, EventFilter filter, Member member, SerializationService serializationService) {<NEW_LINE>String source = eventData.getSource();<NEW_LINE>int eventType = eventData.getEventType();<NEW_LINE>if (eventType == EventLostEvent.EVENT_TYPE) {<NEW_LINE>LocalEntryEventD...
Data dataOldValue = localEntryEventData.getOldValueData();
37,279
private static String copyNativeLibraryFromClasspath(Platform platform) {<NEW_LINE>Path tmp = null;<NEW_LINE>try {<NEW_LINE>String libName = System.mapLibraryName(NATIVE_LIB_NAME);<NEW_LINE>Path cacheDir = getCacheDir(platform);<NEW_LINE>Path <MASK><NEW_LINE>if (Files.exists(path)) {<NEW_LINE>return path.toAbsolutePath...
path = cacheDir.resolve(libName);
50,585
public Object hash(DataCommandsParam dataCommandsParam) {<NEW_LINE>AutoCommandResult autoCommandResult = new AutoCommandResult();<NEW_LINE>String command = dataCommandsParam.getCommand();<NEW_LINE>String[] <MASK><NEW_LINE>String cmd = command.toUpperCase();<NEW_LINE>String key = list[1];<NEW_LINE>String type = type(key...
list = SignUtil.splitBySpace(command);
1,067,926
public Iterator<Tuple2<TupleTag<?>, WindowedValue<?>>> call(Iterator<WindowedValue<InputT>> iter) throws Exception {<NEW_LINE>if (!wasSetupCalled && iter.hasNext()) {<NEW_LINE>DoFnInvokers.tryInvokeSetupFor(doFn, options.get());<NEW_LINE>wasSetupCalled = true;<NEW_LINE>}<NEW_LINE>DoFnOutputManager outputManager = new D...
stateInternals = InMemoryStateInternals.forKey(key);
434,964
public static void proxyHibernatePersistence(CtClass clazz) throws Exception {<NEW_LINE>LOGGER.debug("Override org.hibernate.ejb.HibernatePersistence#createContainerEntityManagerFactory and createEntityManagerFactory to create a EntityManagerFactoryProxy proxy.");<NEW_LINE>CtMethod oldMethod = clazz.getDeclaredMethod("...
oldMethod = clazz.getDeclaredMethod("createEntityManagerFactory");
857,380
public Object evaluateRecord(final OIdentifiable iRecord, ODocument iCurrentResult, final OSQLFilterCondition iCondition, Object iLeft, Object iRight, OCommandContext iContext, final ODocumentSerializer serializer) {<NEW_LINE>if (iRight == null || iLeft == null)<NEW_LINE>return null;<NEW_LINE>if (iLeft instanceof Date)...
() * r.floatValue();
305,884
private void mergeIfNeeded(Text first, Text last, int textLength) {<NEW_LINE>if (first != null && last != null && first != last) {<NEW_LINE>StringBuilder sb = new StringBuilder(textLength);<NEW_LINE>sb.append(first.getLiteral());<NEW_LINE>SourceSpans sourceSpans = null;<NEW_LINE>if (includeSourceSpans) {<NEW_LINE>sourc...
addAll(first.getSourceSpans());
772,341
private void _createCoreImageAfterParseError(Exception e) {<NEW_LINE>Builder builder = null;<NEW_LINE>if (_stream == null) {<NEW_LINE>// extract directly from the file<NEW_LINE>builder = new Builder(_coreFile, _reader, 0, _fileResolvingAgent);<NEW_LINE>} else {<NEW_LINE>// extract using the data stream<NEW_LINE>builder...
long creationTime = builder.getCreationTime();
1,145,741
public static String requestWTSSWithSSOPost(String url, Map<String, String> params, AppIntegrationService<SSORequestService> service, Workspace workspace) throws Exception {<NEW_LINE>try {<NEW_LINE>FlowScheduleAction flowScheduleAction = new FlowScheduleAction();<NEW_LINE>flowScheduleAction.getFormParams().putAll(param...
setURL(ssoUrlBuilderOperation.getBuiltUrl());
558,882
private JSType evalMapunion(Node ttlAst, NameResolver nameResolver) {<NEW_LINE>ImmutableList<Node> params = getCallParams(ttlAst);<NEW_LINE>Node unionParam = params.get(0);<NEW_LINE>Node mapFunction = params.get(1);<NEW_LINE>String paramName = getFunctionParameter(mapFunction, 0);<NEW_LINE>// The mapunion variable must...
, elm), nameResolver.nameVars);
749,271
public GetMemberResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetMemberResult getMemberResult = new GetMemberResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
JsonToken token = context.getCurrentToken();
553,519
protected void handleMessage(JsonNode message) {<NEW_LINE>if (message.isArray()) {<NEW_LINE>if (message.size() < 3) {<NEW_LINE>if (message.get(0).asText().equals(HEARTBEAT))<NEW_LINE>return;<NEW_LINE>else if ("1002".equals(message.get(0).asText()))<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int channelId = Integer.parseInt(m...
("error").asText());
1,287,614
public FormInfo execute(CommandContext commandContext) {<NEW_LINE>CmmnEngineConfiguration cmmnEngineConfiguration = CommandContextUtil.getCmmnEngineConfiguration(commandContext);<NEW_LINE>FormService formService = CommandContextUtil.getFormService(commandContext);<NEW_LINE>if (formService == null) {<NEW_LINE>throw new ...
Stage planModel = caseModel.getPlanModel();
714,102
private void openSession() throws SQLException {<NEW_LINE>TSOpenSessionReq openReq = new TSOpenSessionReq();<NEW_LINE>openReq.setUsername(params.getUsername());<NEW_LINE>openReq.setPassword(params.getPassword());<NEW_LINE>openReq.setZoneId(getTimeZone());<NEW_LINE>openReq.putToConfiguration("version", params.getVersion...
.getMessage()), e);
1,849,781
private static TypeArgument parse(final Parser parser, final String definingClassName) throws ParseException {<NEW_LINE>final char peek = parser.peek();<NEW_LINE>if (peek == '*') {<NEW_LINE>parser.expect('*');<NEW_LINE>return new TypeArgument(Wildcard.ANY, null);<NEW_LINE>} else if (peek == '+') {<NEW_LINE>parser.expec...
TypeArgument(Wildcard.SUPER, typeSignature);
915,515
public OutlierResult run(Relation<O> relation) {<NEW_LINE>QueryBuilder<O> qb = new QueryBuilder<>(relation, distance);<NEW_LINE>KNNSearcher<DBIDRef> knnQuery = qb.kNNByDBID(kplus);<NEW_LINE>DistanceQuery<O> distFunc = qb.distanceQuery();<NEW_LINE>// track the maximum value for normalization<NEW_LINE>DoubleMinMax ldofmi...
ldofs.putDouble(iditer, ldof);
849,111
public int[] batchUpdate(List<? extends Model> modelList, int batchSize) {<NEW_LINE>if (modelList == null || modelList.size() == 0)<NEW_LINE>return new int[0];<NEW_LINE>Model model = modelList.get(0);<NEW_LINE>Table table = TableMapping.me().getTable(model.getClass());<NEW_LINE>String[] pKeys = table.getPrimaryKey();<N...
= new ArrayList<String>();
634,360
private Table buildTable(final RestRequest request, ClusterStateResponse state, Map<String, IndexSegments> indicesSegments) {<NEW_LINE>Table table = getTableWithHeader(request);<NEW_LINE>DiscoveryNodes nodes = state<MASK><NEW_LINE>for (IndexSegments indexSegments : indicesSegments.values()) {<NEW_LINE>Map<Integer, Inde...
.getState().nodes();
583,340
public void checkIfCanUpgrade(final VirtualMachine vmInstance, final ServiceOffering newServiceOffering) {<NEW_LINE>if (newServiceOffering == null) {<NEW_LINE>throw new InvalidParameterValueException("Invalid parameter, newServiceOffering can't be null");<NEW_LINE>}<NEW_LINE>if (!(vmInstance.getState().equals(State.Sto...
), vmInstance.getServiceOfferingId());
596,618
public String unrelated(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, Long id, HttpServletRequest request, ModelMap model) {<NEW_LINE>CmsContentRelated <MASK><NEW_LINE>if (null != entity) {<NEW_LINE>if (ControllerUtils.verifyCustom("noright", !(admin.isOwnsAllContent() || entity.getUserId() == admin....
entity = cmsContentRelatedService.getEntity(id);
336,228
public void onClick(DialogInterface dialog, int which) {<NEW_LINE>switch(which) {<NEW_LINE>case (2):<NEW_LINE>{<NEW_LINE>LinkUtil.openExternally(contentUrl);<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case (3):<NEW_LINE>{<NEW_LINE>ShareUtil.shareImage(actuallyLoaded, MediaView.this);<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>case (...
(contentUrl), MediaView.this);
1,591,721
public void deleteKeyValueProperties(DeleteKeyValuePropertiesRequest request) {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>session.beginTransaction();<NEW_LINE>if (request.getDeleteAll()) {<NEW_LINE>StringBuilder stringQueryBuilder = new StringBuilder("delete from ")....
class, id0, LockMode.PESSIMISTIC_WRITE);
1,794,099
private static String parseSoapMethodName(InputStream stream, String charEncoding) {<NEW_LINE>try {<NEW_LINE>// newInstance() et pas newFactory() pour java 1.5 (issue 367)<NEW_LINE>final XMLInputFactory factory = XMLInputFactory.newInstance();<NEW_LINE>// disable DTDs entirely for that factory<NEW_LINE>factory.setPrope...
factory.createXMLStreamReader(stream, charEncoding);
637,761
public HistoricCaseInstanceResponse createHistoricCaseInstanceResponse(HistoricCaseInstance caseInstance, RestUrlBuilder urlBuilder) {<NEW_LINE>HistoricCaseInstanceResponse result = new HistoricCaseInstanceResponse();<NEW_LINE>result.setBusinessKey(caseInstance.getBusinessKey());<NEW_LINE>result.setBusinessStatus(caseI...
setTenantId(caseInstance.getTenantId());