idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,081,433
public DateType invoke() {<NEW_LINE>if (!SQLDataTypeImpl.class.isInstance(dataType)) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>String[<MASK><NEW_LINE>String name = dataType.getName();<NEW_LINE>String dataTypeString = null;<NEW_LINE>if (signed[1].equalsIgnoreCase(name)) {<NEW_LINE>if (!dataType.isUnsigned()) {<NEW_LIN...
] signed = { "UNSIGNED", "SIGNED" };
1,010,785
public PreloadIconDrawable applyProgressLevel() {<NEW_LINE>if (!(getTag() instanceof ItemInfoWithIcon)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ItemInfoWithIcon info = (ItemInfoWithIcon) getTag();<NEW_LINE>int progressLevel = info.getProgressLevel();<NEW_LINE>if (progressLevel >= 100) {<NEW_LINE>setContentDescripti...
null ? info.contentDescription : "");
535,936
private static void tryAssertion15_16(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "symbol", "volume", "sum(price)" };<NEW_LINE>ResultAssertTestResu...
1200, 0, null, null);
1,762,127
private static FileObject copyFolderRecursively(final FileObject sourceFolder, final FileObject destination) throws IOException {<NEW_LINE>FileUtil.runAtomicAction(new FileSystem.AtomicAction() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() throws IOException {<NEW_LINE>assert sourceFolder.isFolder() : sourc...
createFolder(sourceFolder.getName());
776,420
public static void createSpnegoSPNEntry() throws Exception {<NEW_LINE>String methodName = "createSpnegoSPNEntry";<NEW_LINE>Log.info(c, methodName, "Creating KDC user entries");<NEW_LINE>session = kdcServer<MASK><NEW_LINE>// spnego HTTP service<NEW_LINE>Entry entry = new DefaultEntry(session.getDirectoryService().getSch...
.getDirectoryService().getAdminSession();
623,417
public MutableBooleanCollection select(BooleanPredicate predicate) {<NEW_LINE>MutableBooleanList result = BooleanLists.mutable.empty();<NEW_LINE>if (this.getSentinelValues() != null) {<NEW_LINE>if (this.getSentinelValues().containsZeroKey && predicate.accept(this.getSentinelValues().zeroValue)) {<NEW_LINE>result.add(th...
this.getSentinelValues().oneValue);
990,173
public int readinto(PyObject buf) {<NEW_LINE>if (buf instanceof PyArray) {<NEW_LINE>// PyArray has the buffer interface (for bytes) but this way we can read any type<NEW_LINE>PyArray array = (PyArray) buf;<NEW_LINE>String read = read(array.__len__() * array.getItemsize());<NEW_LINE>array.fromstring(0, read);<NEW_LINE>r...
read(view.getLen());
1,323,022
private void readReplicaVersions() {<NEW_LINE>InternalPartitionServiceImpl partitionService = getService();<NEW_LINE>OperationService operationService = getNodeEngine().getOperationService();<NEW_LINE>PartitionReplicaVersionManager versionManager = partitionService.getPartitionReplicaVersionManager();<NEW_LINE>UrgentPa...
, ns), IPartition.MAX_BACKUP_COUNT);
872,389
public void savePoiFilter() {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this);<NEW_LINE>builder.setTitle(R.string.edit_filter_save_as_menu_item);<NEW_LINE>final EditText editText = new EditText(this);<NEW_LINE>if (filter.isStandardFilter()) {<NEW_LINE>editText.setText((filter.getName() + " " + sear...
, (OsmandApplication) getApplication());
1,478,125
private static String[] formatPathSegments(String[] segments, int index, String groupName) {<NEW_LINE>String[] nameSegments = groupName.split("/");<NEW_LINE>if (nameSegments.length > 1 && segments.length >= nameSegments.length) {<NEW_LINE>for (int i = 0; i < nameSegments.length; i++) {<NEW_LINE>if (!nameSegments[i].equ...
String[segments.length - numMergedIndexes];
1,493,786
private String updateContainer(MetadataContainer container, String parentGUID, String anchorGUID, boolean bNested, String parentQName, Map<String, EntityDetail> assetEntities) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException {<NEW_LINE>String methodName = "updateContainer";<NEW_LINE...
false).getInstanceProperties(methodName));
526,210
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtTextSet = "@name('set') on SupportBean set var1OND = intPrimitive, var2OND = var1OND + 1, var3OND = var1OND + var2OND";<NEW_LINE>env.compileDeploy(stmtTextSet).addListener("set");<NEW_LINE>String[] fieldsVar = new String[<MASK><NEW_LINE>env.assertPropsPer...
] { "var1OND", "var2OND", "var3OND" };
279,033
protected void masterOperation(final ClusterSearchShardsRequest request, final ClusterState state, final ActionListener<ClusterSearchShardsResponse> listener) {<NEW_LINE><MASK><NEW_LINE>String[] concreteIndices = indexNameExpressionResolver.concreteIndexNames(clusterState, request);<NEW_LINE>Map<String, Set<String>> ro...
ClusterState clusterState = clusterService.state();
240,741
private Optional<HttpResponse<Buffer>> respondFromCache(HttpContext<Buffer> context, CachedHttpResponse response) {<NEW_LINE>if (response == null) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>HttpResponse<Buffer<MASK><NEW_LINE>result.headers().set(HttpHeaders.AGE, Long.toString(response.age()));<NEW_LINE>if ...
> result = response.rehydrate();
140,300
public ValueVector visit(FixedSizeListVector deltaVector, Void value) {<NEW_LINE>Preconditions.checkArgument(typeVisitor.equals(deltaVector), "The vector to append must have the same type as the targetVector being appended");<NEW_LINE>if (deltaVector.getValueCount() == 0) {<NEW_LINE>// optimization, nothing to append, ...
getDataVector().setValueCount(deltaListSize);
1,765,350
public void onMessage(quickfix.fix40.NewOrderSingle order, SessionID sessionID) throws FieldNotFound, UnsupportedMessageType, IncorrectTagValue {<NEW_LINE>try {<NEW_LINE>validateOrder(order);<NEW_LINE>OrderQty orderQty = order.getOrderQty();<NEW_LINE>Price price = getPrice(order);<NEW_LINE>quickfix.fix40.ExecutionRepor...
), new AvgPx(0));
880,185
private Set<ModuleLocation> moduleLocations(final Location baseLocation) {<NEW_LINE>if (!forLocation.equals(baseLocation)) {<NEW_LINE>throw new IllegalStateException(// NOI18N<NEW_LINE>String.// NOI18N<NEW_LINE>format("Locations computed for: %s, but queried for: %s", forLocation, baseLocation));<NEW_LINE>}<NEW_LINE>if...
(baseLocation, p, moduleName));
540,206
void logTrailer(long seqId, String serviceName, String methodName, Status status, Metadata metadata, int maxHeaderBytes, GrpcLogRecord.EventLogger eventLogger, String rpcId, @Nullable SocketAddress peerAddress) {<NEW_LINE>checkNotNull(serviceName, "serviceName");<NEW_LINE>checkNotNull(methodName, "methodName");<NEW_LIN...
.setPeerAddress(socketAddressToProto(peerAddress));
876,201
private static Map<String, List<String>> createRequestHeaders(String host, int port, ClientEndpointConfig clientEndpointConfiguration) {<NEW_LINE>Map<String, List<String>> headers = new HashMap<>();<NEW_LINE>List<Extension> extensions = clientEndpointConfiguration.getExtensions();<NEW_LINE>List<String> subProtocols = c...
put(Constants.AUTHORIZATION_HEADER_NAME, authValues);
382,023
public void onEvent(Event event) throws Exception {<NEW_LINE>//<NEW_LINE>if (Events.ON_CLICK.equalsIgnoreCase(event.getName())) {<NEW_LINE>Integer oldValue = (Integer) getValue();<NEW_LINE>int S_ResourceAssignment_ID = oldValue == null ? 0 : oldValue.intValue();<NEW_LINE>MResourceAssignment ma = new MResourceAssignment...
= new InfoSchedule(ma, true);
1,846,366
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {<NEW_LINE>for (Callback c : callbacks) {<NEW_LINE>if (c instanceof NameCallback) {<NEW_LINE>LOG.debug("name callback");<NEW_LINE>} else if (c instanceof PasswordCallback) {<NEW_LINE>LOG.debug("password callback");<NEW_LINE>LOG.wa...
String authid = ac.getAuthenticationID();
321,443
public static DependencyGraphResult createPackageDependencyGraph(Path balaPath) {<NEW_LINE>DependencyGraphResult dependencyGraphResult;<NEW_LINE>if (balaPath.toFile().isDirectory()) {<NEW_LINE>Path dependencyGraphJsonPath = balaPath.resolve(DEPENDENCY_GRAPH_JSON);<NEW_LINE>dependencyGraphResult = createPackageDependenc...
toUri().toString());
1,030,329
protected void paintIcon(Graphics2D g2) {<NEW_LINE>g2.translate(AppPreferences.getScaled(7), AppPreferences.getScaled(7));<NEW_LINE>if (dir.equals(Direction.WEST))<NEW_LINE>g2.rotate((6 * Math.PI) / 4);<NEW_LINE>else if (dir.equals(Direction.SOUTH))<NEW_LINE>g2.rotate(Math.PI);<NEW_LINE>else if (dir.equals(Direction.EA...
final var path = new GeneralPath();
331,517
private List<NameValueCountPair> groupByProcess(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Review.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LINE>Root...
cq.from(Review.class);
208,923
public static List<Entry> parseShort(String url) {<NEW_LINE>String res = getHTTP(url);<NEW_LINE>Document doc = Jsoup.parse(res, "koi8");<NEW_LINE>Elements items = doc.select("tr");<NEW_LINE>List<Entry> list = new ArrayList<Entry>();<NEW_LINE>for (int i = 0; i < items.size(); i++) {<NEW_LINE>Element item = items.get(i);...
(makeEntry(title, author));
812,009
public void updateHealthStatusForPersistentInstance(String namespace, String fullServiceName, String clusterName, String ip, int port, boolean healthy) throws NacosException {<NEW_LINE>String groupName = NamingUtils.getGroupName(fullServiceName);<NEW_LINE>String serviceName = NamingUtils.getServiceName(fullServiceName)...
serviceMetadata = metadataManager.getServiceMetadata(service);
1,124,009
private static void mergeInitContainers(V1PodSpec podSpec, V1PodSpec podSpecFromTemplate) {<NEW_LINE>List<V1Container> podSpecInitContainers = podSpec.getInitContainers();<NEW_LINE>if (null == podSpecInitContainers) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Get init containers from podSpecFromTemplate which are not par...
templateInitContainer.getName())));
1,800,677
public Object visit(ASTMethod node, Object data) {<NEW_LINE>if (node.getParent() instanceof ASTProperty) {<NEW_LINE>// Skip property methods, doc is required on the property itself<NEW_LINE>return data;<NEW_LINE>}<NEW_LINE>ApexDocComment comment = getApexDocComment(node);<NEW_LINE>if (comment == null) {<NEW_LINE>if (sh...
).addViolationWithMessage(node, MISMATCHED_PARAM_MESSAGE);
1,293,079
public com.amazonaws.services.mobile.model.UnauthorizedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.mobile.model.UnauthorizedException unauthorizedException = new com.amazonaws.services.mobile.model.UnauthorizedException(null);<NEW_LINE>int original...
String currentParentElement = context.getCurrentParentElement();
1,841,259
private boolean executeBatch(final WriteBatchTemplate template) {<NEW_LINE>this.readLock.lock();<NEW_LINE>if (this.db == null) {<NEW_LINE>LOG.warn("DB not initialized or destroyed in data path: {}.", this.path);<NEW_LINE>this.readLock.unlock();<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try (final WriteBatch batch = ne...
LOG.error("Execute batch failed with interrupt.", e);
607,859
private static ArrayList<String> listDirectoryContents(RemoteFile serverDir, String fileName) throws Exception {<NEW_LINE>final String method = "serverDirectoryContents";<NEW_LINE>String s = "The specified directoryPath \'" + serverDir.getAbsolutePath() + "\' ";<NEW_LINE>Log.entering(c, method);<NEW_LINE>if (serverDir....
firstLevelFiles = serverDir.list(false);
806,094
void addFunction(final T function) {<NEW_LINE>final List<ParamType> parameters = function.parameters();<NEW_LINE>if (allFunctions.put(parameters, function) != null) {<NEW_LINE>throw new KsqlFunctionException("Can't add function " + function.name() + " with parameters " + function.parameters() + " as a function with the...
children.putIfAbsent(vararg, leaf);
245,494
public void processElement(ProcessContext context) throws Exception {<NEW_LINE>Query query = context.element();<NEW_LINE>String namespace = options.getNamespace();<NEW_LINE>int userLimit = query.hasLimit() ? query.getLimit().getValue() : Integer.MAX_VALUE;<NEW_LINE>boolean moreResults = true;<NEW_LINE>QueryResultBatch ...
numFetch, query.getLimit());
1,003,028
public static String[] partitionCommandLine(final String command) {<NEW_LINE>final ArrayList<String> commands = new ArrayList<>();<NEW_LINE>int index = 0;<NEW_LINE>StringBuffer buffer = new <MASK><NEW_LINE>boolean isApos = false;<NEW_LINE>boolean isQuote = false;<NEW_LINE>while (index < command.length()) {<NEW_LINE>fin...
StringBuffer(command.length());
879,809
private int bound(IntVar var, int val) {<NEW_LINE>Model model = var.getModel();<NEW_LINE>int cost;<NEW_LINE>// // if decision is '<=' ('>='), UB (LB) should be ignored to avoid infinite loop<NEW_LINE>if (dop == DecisionOperatorFactory.makeIntSplit() && val == var.getUB() || dop == DecisionOperatorFactory.makeIntReverse...
.getEnvironment().worldPush();
1,639,476
private DomNode toXmlNode() {<NEW_LINE>DomNode root = new DomNode(nodeNameFor("application"));<NEW_LINE>Map<String, String> rootAttributes = Cast.uncheckedCast(root.attributes());<NEW_LINE>rootAttributes.put("version", version);<NEW_LINE>if (!"1.3".equals(version)) {<NEW_LINE>rootAttributes.put("xmlns:xsi", "http://www...
(root, nodeNameFor("module"));
109,340
public boolean onMenuItemClick(MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case R.id.enableChartActionBar:<NEW_LINE>if (item.isChecked()) {<NEW_LINE>item.setChecked(false);<NEW_LINE>prefs.edit().putBoolean("enableOverviewChartActionBar", false).apply();<NEW_LINE>chartActionBarView.setVisibility(View.G...
ordinal()).commit();
527,286
public ConstructorDeclaration parseStatements(char[] source, int offset, int length, Map<String, String> settings, boolean recordParsingInformation, boolean enabledStatementRecovery) {<NEW_LINE>if (source == null) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>CompilerOptions compilerOptions = new...
.declarationSourceEnd = offset + length - 1;
753,708
private static String makeSessionDestroyedDebugMsg(final PwmSession pwmSession) {<NEW_LINE>final LocalSessionStateBean sessionStateBean = pwmSession.getSessionStateBean();<NEW_LINE>final Map<String, String> debugItems = new LinkedHashMap<>();<NEW_LINE>debugItems.put("requests", sessionStateBean.getRequestCount().toStri...
"firstToLastRequestInterval", timeDuration.asCompactString());
1,572,621
public static char[] hex2CharArray(String hex) {<NEW_LINE>if (hex == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int length = hex.length();<NEW_LINE>if ((1 & length) != 0) {<NEW_LINE>throw new IllegalArgumentException("'" + hex + "' has odd length!");<NEW_LINE>}<NEW_LINE>length /= 2;<NEW_LINE>char[] result = new ...
(char) (digit << 4);
235,465
public GetImageRecipePolicyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetImageRecipePolicyResult getImageRecipePolicyResult = new GetImageRecipePolicyResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
JsonToken token = context.getCurrentToken();
1,345,626
final GetPlayerConnectionStatusResult executeGetPlayerConnectionStatus(GetPlayerConnectionStatusRequest getPlayerConnectionStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPlayerConnectionStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
(super.beforeMarshalling(getPlayerConnectionStatusRequest));
674,207
public static boolean markActionInvoked(@Nonnull Project project, @Nonnull final Editor editor, @Nonnull IntentionAction action) {<NEW_LINE>final int offset = ((EditorEx) editor).getExpectedCaretOffset();<NEW_LINE>List<HighlightInfo> infos = new ArrayList<>();<NEW_LINE>DaemonCodeAnalyzerImpl.processHighlightsNearOffset...
HighlightInfo.IntentionActionDescriptor actionInGroup = pair.first;
710,909
public static void main(String[] args) throws Exception {<NEW_LINE>Properties properties = Utils.readPropertiesFile(ExampleConstants.CONFIG_FILE_NAME);<NEW_LINE>final String eventMeshIp = <MASK><NEW_LINE>final String eventMeshGrpcPort = properties.getProperty(ExampleConstants.EVENTMESH_GRPC_PORT);<NEW_LINE>EventMeshGrp...
properties.getProperty(ExampleConstants.EVENTMESH_IP);
521,876
public static void main(String[] args) {<NEW_LINE>if (args == null) {<NEW_LINE>args = new String[] {};<NEW_LINE>}<NEW_LINE>if (args.length != 0 && args.length != 2 && args.length != 4) {<NEW_LINE>usageAndExit();<NEW_LINE>}<NEW_LINE>// Set defaults by assuming this is run from an eclipse workspace with paho projects loa...
("Unknown arg: " + args[i]);
1,574,989
private PactDslResponse createPactDslResponse(Contract contract, PactDslRequestWithPath pactDslRequest) {<NEW_LINE>Response response = contract.getResponse();<NEW_LINE>PactDslResponse pactDslResponse = pactDslRequest.willRespondWith().status((Integer) response.getStatus().getClientValue());<NEW_LINE>PactDslResponse fin...
pactDslResponse, response.getCookies());
143,586
private void applyRepeatingRequestBuilder(boolean checkStarted, int errorReason) {<NEW_LINE>if ((getState() == CameraState.PREVIEW && !isChangingState()) || !checkStarted) {<NEW_LINE>try {<NEW_LINE>mSession.setRepeatingRequest(mRepeatingRequestBuilder.<MASK><NEW_LINE>} catch (CameraAccessException e) {<NEW_LINE>throw n...
build(), mRepeatingRequestCallback, null);
309,985
public void onAfterTransport(BootEvent event) {<NEW_LINE>// register schema to microservice;<NEW_LINE>Microservice microservice = RegistrationManager.INSTANCE.getMicroservice();<NEW_LINE>String swaggerSchema = "http";<NEW_LINE>for (String endpoint : microservice.getInstance().getEndpoints()) {<NEW_LINE>if (endpoint.sta...
.getScbEngine().getProducerMicroserviceMeta();
778,397
public void handleEvent(Event e) {<NEW_LINE>String alias = alias_field.getText().trim();<NEW_LINE>int strength = strengths[strength_combo.getSelectionIndex()];<NEW_LINE>String dn = "";<NEW_LINE>for (int i = 0; i < fields.length; i++) {<NEW_LINE>String rn = fields[i].getText().trim();<NEW_LINE>if (rn.length() == 0) {<NE...
createSelfSignedCertificate(alias, dn, strength);
168,389
public void writeAll(SubGraph graph, Reporter reporter, ExportConfig config, CSVWriter out) {<NEW_LINE>Map<String, Class> nodePropTypes = collectPropTypesForNodes(graph, db, config);<NEW_LINE>Map<String, Class> relPropTypes = collectPropTypesForRelationships(graph, db, config);<NEW_LINE>List<String> nodeHeader = genera...
), config.getDelim());
1,595,858
public static DescribeBackupsResponse unmarshall(DescribeBackupsResponse describeBackupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBackupsResponse.setRequestId(_ctx.stringValue("DescribeBackupsResponse.RequestId"));<NEW_LINE>describeBackupsResponse.setTotalEcsSnapshotSize(_ctx.longValue("DescribeBackupsResp...
("DescribeBackupsResponse.Items[" + i + "].BackupIntranetDownloadURL"));
1,611,277
default int copyBaseQualities(final int offset, final byte[] destination, final int destinationOffset, final int maxLength) {<NEW_LINE>Utils.nonNull(destination);<NEW_LINE>ParamUtils.isPositiveOrZero(offset, "read base offset must be 0 or greater");<NEW_LINE>ParamUtils.isPositiveOrZero(destinationOffset, "destination a...
offset, destination, destinationOffset, copyLength);
1,503,922
private TaggableItem segment(String field, OperatorNode<ExpressionOperator> ast, String wordData, boolean fromQuery, Class<?> parent, Language language) {<NEW_LINE>String toSegment = wordData;<NEW_LINE>Substring s = getOrigin(ast);<NEW_LINE>Language usedLanguage = language == null ? currentlyParsing.getLanguage() : lan...
) wordItem).addItem(segment);
1,483,025
final PutConfigurationSetReputationOptionsResult executePutConfigurationSetReputationOptions(PutConfigurationSetReputationOptionsRequest putConfigurationSetReputationOptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putConfigurationSetReputationOptionsRequest);<NEW_LINE>AWSRequestMet...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
569,643
public void sendResponse(final Exchange exchange) {<NEW_LINE>boolean ready = true;<NEW_LINE>Response response = exchange.getCurrentResponse();<NEW_LINE>// ensure Token is set<NEW_LINE>response.ensureToken(exchange.<MASK><NEW_LINE>// Insert CON to match ACKs and RSTs to the exchange.<NEW_LINE>// Do not insert ACKs and R...
getCurrentRequest().getToken());
437,465
public void 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_LINE>}<NEW_LINE>String app...
Utils.getValueFromIdByName(id, "resourceGroups");
1,659,539
// ==================================================================================================================<NEW_LINE>private static VariantContext annotateWithImpreciseEvidenceLinks(final VariantContext variant, final PairedStrandedIntervalTree<EvidenceTargetLink> evidenceTargetLinks, final SAMSequenceDiction...
svc = SVContext.of(variant);
396,095
public View render(RenderedAdaptiveCard renderedCard, Context context, FragmentManager fragmentManager, ViewGroup viewGroup, BaseCardElement baseCardElement, ICardActionHandler cardActionHandler, HostConfig hostConfig, RenderArgs renderArgs) throws Exception {<NEW_LINE>ImageSet imageSet = Util.castTo(baseCardElement, I...
ImageVector imageVector = imageSet.GetImages();
485,717
public void marshall(UpdatePatchBaselineRequest updatePatchBaselineRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updatePatchBaselineRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK>...
updatePatchBaselineRequest.getBaselineId(), BASELINEID_BINDING);
1,703,103
protected <E extends Entity> BulkEditorWindow buildEditor(EditorBuilder<E> builder) {<NEW_LINE>FrameOwner origin = builder.getOrigin();<NEW_LINE>Screens screens = getScreenContext(origin).getScreens();<NEW_LINE>if (CollectionUtils.isEmpty(builder.getEntities())) {<NEW_LINE>throw new IllegalStateException(String.format(...
Focusable) listComponent).focus();
1,286,848
private void recipesCloth(@Nonnull Consumer<FinishedRecipe> out) {<NEW_LINE>ShapedRecipeBuilder.shaped(Cloth.balloon, 2).pattern(" f ").pattern("ftf").pattern(" s ").define('f', IEItems.Ingredients.hempFabric).define('t', Items.TORCH).define('s', IETags.getItemTag(IETags.treatedWoodSlab)).unlockedBy("has_hemp_fabric", ...
toPath(Cloth.cushion)));
201,359
public Model<Label> train(Dataset<Label> examples, Map<String, Provenance> runProvenance, int invocationCount) {<NEW_LINE>if (examples.getOutputInfo().getUnknownCount() > 0) {<NEW_LINE>throw new IllegalArgumentException("The supplied Dataset contained unknown Outputs, and this Trainer is supervised.");<NEW_LINE>}<NEW_L...
getValue(), Double::sum);
1,469,487
public static <T extends ImageBase<T>> void down(T input, T output) {<NEW_LINE>if (ImageGray.class.isAssignableFrom(input.getClass())) {<NEW_LINE>if (BoofConcurrency.USE_CONCURRENT) {<NEW_LINE>if (input instanceof GrayU8) {<NEW_LINE>GrayF32 middle = new GrayF32(output.width, input.height);<NEW_LINE>ImplAverageDownSampl...
(middle, (GrayF64) output);
658,285
private void generateCheckin(List<BaseTerminalEvent> eventBatch) {<NEW_LINE>// Generate up to 100 unique terminal ids between 100 and 200<NEW_LINE>String[] termIds = new String[100];<NEW_LINE>for (int i = 0; i < termIds.length; i++) {<NEW_LINE>termIds[i] = Long.toString(i + 1000);<NEW_LINE>}<NEW_LINE>// Swap terminals ...
TerminalInfo(termIds[i]));
388,586
public void updateAllocationLUForTU(final I_M_HU tuHU) {<NEW_LINE>Check.assume(handlingUnitsBL.isTransportUnitOrVirtual(tuHU), "{} shall be a TU", tuHU);<NEW_LINE>final I_M_HU <MASK><NEW_LINE>final IHUContext huContext = huContextFactory.createMutableHUContext(getContextAware(tuHU));<NEW_LINE>//<NEW_LINE>// Iterate all...
luHU = handlingUnitsBL.getLoadingUnitHU(tuHU);
1,294,675
public JsonNode injectTimestamp(final AirbyteRecordMessage message) {<NEW_LINE>final String streamName = message.getStream();<NEW_LINE>final List<String> cursorField = streamCursorFields.get(streamName);<NEW_LINE>final JsonNode data = message.getData();<NEW_LINE>if (timestampInferenceEnabled && cursorField != null) {<N...
LOGGER.info("Unable to parse cursor field: {} into a keen.timestamp", cursorField);
1,786,878
private static void tryMT(RegressionEnvironment env, int numSeconds, int numWriteThreads) throws InterruptedException {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplCreateVariable = "@public create table varagg (c0 int, c1 int, c2 int, c3 int, c4 int, c5 int)";<NEW_LINE>env.compileDeploy(eplC...
[i].getException());
1,303,227
public ListImagePackagesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListImagePackagesResult listImagePackagesResult = new ListImagePackagesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken...
String currentParentElement = context.getCurrentParentElement();
1,413,143
public PipelineState pipelineStateFor(String pipelineName) {<NEW_LINE>String cacheKey = pipelineLockStateCacheKey(pipelineName);<NEW_LINE>PipelineState pipelineState = (PipelineState) goCache.get(cacheKey);<NEW_LINE>if (pipelineState != null) {<NEW_LINE>return pipelineState.equals(PipelineState.NOT_LOCKED) ? null : pip...
setCacheable(false).uniqueResult();
1,827,819
public ActionResult<Wo> call() throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>WorkCompleted workCompleted = emc.find(id, WorkCompleted.cla...
snap.setType(Snap.TYPE_ABANDONEDWORKCOMPLETED);
1,207,933
protected AtomicValue[] atomize(final Axis mOperand) throws SirixXPathException {<NEW_LINE>final XmlNodeReadOnlyTrx trx = asXdmNodeReadTrx();<NEW_LINE>int type = trx.getTypeKey();<NEW_LINE>// (3.) if type is untypedAtomic, cast to string<NEW_LINE>if (type == trx.keyForName("xs:unytpedAtomic")) {<NEW_LINE>type = trx.key...
).getBytes(), type);
1,393,398
public void processElement(ProcessContext c) throws Exception {<NEW_LINE>Iterable<MutationGroup> mutations = c.element();<NEW_LINE>// Batch upsert rows.<NEW_LINE>try {<NEW_LINE>mutationGroupBatchesReceived.inc();<NEW_LINE>mutationGroupsReceived.inc(Iterables.size(mutations));<NEW_LINE>Iterable<Mutation> <MASK><NEW_LINE...
batch = Iterables.concat(mutations);
395,112
private List<ApplicationDictItem> listWithApplicationDictWithPath(String applicationDict, String... paths) throws Exception {<NEW_LINE>EntityManager em = this.emc.get(ApplicationDictItem.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<ApplicationDictItem> cq = <MASK><NEW_LINE>Root<...
cb.createQuery(ApplicationDictItem.class);
899,154
public void marshall(ResourceShareAssociation resourceShareAssociation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (resourceShareAssociation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(resourceShar...
resourceShareAssociation.getExternal(), EXTERNAL_BINDING);
779,049
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndMaxLengthAndAllElementsNotNull(sources, 7, 8);<NEW_LINE>final String from = sources[0].toString();<NEW_LINE>final String fromName = sources[1].toString(...
<File>) sources[7];
1,659,869
private List<JavaMethodHost> buildUpdateMethodHosts(List<JavaParameterHost> allColumns, List<GenTaskBySqlBuilder> currentTableBuilders) throws Exception {<NEW_LINE>List<JavaMethodHost> methods = new ArrayList<>();<NEW_LINE>for (GenTaskBySqlBuilder builder : currentTableBuilders) {<NEW_LINE>if (!builder.getCrud_type().e...
setComments(builder.getComment());
804,654
public final FieldaccessContext fieldaccess() throws RecognitionException {<NEW_LINE>FieldaccessContext _localctx = new FieldaccessContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 56, RULE_fieldaccess);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(430);<NEW...
_la = _input.LA(1);
361,502
public BatchOperator<?> transform(BatchOperator<?> input) {<NEW_LINE>List<<MASK><NEW_LINE>int maxNumThread = getMaxNumThread(this);<NEW_LINE>for (PipelineModel model : pipelineModels) {<NEW_LINE>if (model.transformers.length == 1) {<NEW_LINE>input = model.transformers[0].transform(input);<NEW_LINE>} else {<NEW_LINE>int...
PipelineModel> pipelineModels = splitPipelineModel(true);
1,418,812
private String genSimpleSelectSql(Node node, List<FieldRelation> fieldRelations, NodeRelation relation, List<FilterFunction> filters, FilterStrategy filterStrategy, Map<String, Node> nodeMap) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("SELECT ");<NEW_LINE>Map<String, FieldRelation> fieldRelat...
).getName(), s);
1,573,324
public static String encode(Encoding encoding, String hrp, final byte[] values) {<NEW_LINE>checkArgument(hrp.length() >= 1, "Human-readable part is too short");<NEW_LINE>checkArgument(hrp.length() <= 83, "Human-readable part is too long");<NEW_LINE>hrp = hrp.toLowerCase(Locale.ROOT);<NEW_LINE>byte[] checksum = createCh...
(CHARSET.charAt(b));
904,674
private TUProducerDestination createTUProducerDestination(final int maxTUs) {<NEW_LINE>final I_M_HU_PI tuPI = getTUPI();<NEW_LINE>final TUProducerDestination producer = new TUProducerDestination(tuPI);<NEW_LINE>producer.addCapacityConstraints(productId2tuCapacity.values());<NEW_LINE>//<NEW_LINE>// Set maximum TUs to pr...
producer.setLocatorId(getLocatorId());
1,560,498
private Class findJmxInterface(String beanKey, Class<?> beanClass) {<NEW_LINE>Class cachedInterface = interfaceCache.get(beanKey);<NEW_LINE>if (cachedInterface != null) {<NEW_LINE>return cachedInterface;<NEW_LINE>}<NEW_LINE>Class mbeanInterface = JmxUtils.getMBeanInterface(beanClass);<NEW_LINE>if (mbeanInterface != nul...
metadata = attributeSource.getManagedResource(ifc);
1,183,836
// args of type byte32 should be passed as Hex string for encoding to work<NEW_LINE>private byte[] encodeData(Param[] params, Object... args) {<NEW_LINE>if (args.length > params.length) {<NEW_LINE>throw new CallTransactionException("Too many arguments: " + args.length + " > " + params.length);<NEW_LINE>}<NEW_LINE>int s...
.encode(args[i]);
46,904
private Map<String, String> tokenToValueMap(Map<String, String> flattenValueNodes) {<NEW_LINE>return flattenValueNodes.keySet().stream().flatMap(this::tokensFromKey).distinct().collect(Collectors.toMap(Function.identity(), t -> flattenValueNodes.compute(Config.Key.unescapeName(t), (k, v) -> {<NEW_LINE>if (v == null) {<...
Config.Key.escapeName(v);
1,276,688
public void explain(int p, ExplanationForSignedClause explanation) {<NEW_LINE>IntVar pivot = explanation.readVar(p);<NEW_LINE>assert !explanation.readDom(p).isEmpty();<NEW_LINE>int value = getValue();<NEW_LINE>if (value == 1) {<NEW_LINE>// b is true and X < c holds<NEW_LINE>if (pivot == this) {<NEW_LINE>// b is the piv...
this.unionLit(0, explanation);
692,772
private void maybeReportActiveUploadsOrDownloads(PositionAwareAnsiTerminalWriter terminalWriter) throws IOException {<NEW_LINE><MASK><NEW_LINE>int downloads = activeActionDownloads.get();<NEW_LINE>if (!buildComplete || (uploads == 0 && downloads == 0)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Duration waitTime = Duration...
int uploads = activeActionUploads.get();
1,356,348
/*<NEW_LINE>* Enum type extensions have the potential to be invalid if incorrectly defined.<NEW_LINE>*<NEW_LINE>* The named type must already be defined and must be an Enum type.<NEW_LINE>* All values of an Enum type extension must be unique.<NEW_LINE>* All values of an Enum type extension must not already be a value o...
new NonUniqueNameError(extension, enumValue));
1,313,548
protected Content prepare(@Nonnull T field, @Nonnull Function<? super String, String> onShow) {<NEW_LINE>Font font = field.getFont();<NEW_LINE>FontMetrics metrics = font == null ? null : field.getFontMetrics(font);<NEW_LINE>int height = metrics == null ? 16 : metrics.getHeight();<NEW_LINE>Dimension size = new Dimension...
getWidth(), height * 16);
1,655,473
private static NBTTagCompound migrate(ItemStack stack, NBTTagCompound nbt) {<NEW_LINE><MASK><NEW_LINE>int metadata = 0, metadataAlt;<NEW_LINE>PipeWire wire = null;<NEW_LINE>if (nbt.hasKey("id"))<NEW_LINE>block = Block.REGISTRY.getObjectById(nbt.getInteger("id"));<NEW_LINE>else if (nbt.hasKey("name"))<NEW_LINE>block = B...
Block block = null, blockAlt = null;
273,421
private void loadServices(List<Class> notLazyServices, InjectingContainerBuilder builder) {<NEW_LINE>ExtensionPointName<ServiceDescriptor> ep = getServiceExtensionPointName();<NEW_LINE>if (ep != null) {<NEW_LINE>ExtensionPointImpl<ServiceDescriptor> extensionPoint = myExtensionsArea.getExtensionPointImpl(ep);<NEW_LINE>...
(descriptor.getPluginDescriptor()));
1,837,113
public JobExecution mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>Long id = rs.getLong(1);<NEW_LINE>JobExecution jobExecution;<NEW_LINE>if (jobParameters == null) {<NEW_LINE>jobParameters = getJobParameters(id);<NEW_LINE>}<NEW_LINE>if (jobInstance == null) {<NEW_LINE>jobExecution <MASK><NEW_LINE>} els...
= new JobExecution(id, jobParameters);
170,540
protected double featureCost(Target target, Unit unit, String featureName, FeatureDefinition weights, WeightFunc[] weightFunctions) {<NEW_LINE>if (!this.featureDefinition.hasFeature(featureName)) {<NEW_LINE>throw new IllegalArgumentException("this feature does not exists in feature definition");<NEW_LINE>}<NEW_LINE>Fea...
cumulWeightedCosts[featureIndex] += similarity * weight;
1,747,701
public void run() {<NEW_LINE>try {<NEW_LINE>boolean isShutdown = false;<NEW_LINE>do {<NEW_LINE>isShutdown = isShutdown || shutdownRequested.get();<NEW_LINE>final QueueBatch batch = readClient.readBatch();<NEW_LINE>final boolean isFlush = flushRequested.compareAndSet(true, false);<NEW_LINE>if (batch.filteredSize() > 0 |...
compute(batch, isFlush, false);
16,525
protected void doParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) {<NEW_LINE>String dataSource = element.getAttribute(ATT_DATA_SOURCE);<NEW_LINE>if (dataSource != null) {<NEW_LINE>builder.addPropertyReference("dataSource", dataSource);<NEW_LINE>} else {<NEW_LINE>parserContext.getReader...
builder.addPropertyValue("rolePrefix", rolePrefix);
1,126,190
/*<NEW_LINE>* Loads the icon for the application, either a user provided one or the default one.<NEW_LINE>*/<NEW_LINE>private boolean prepareApplicationIcon(File outputPngFile, List<File> mipmapDirectories, List<Integer> standardICSizes, List<Integer> foregroundICSizes) {<NEW_LINE>String userSpecifiedIcon = Strings.<MA...
nullToEmpty(project.getIcon());
1,201,373
private void loadNode472() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultHttpsGroup_TrustList_Read_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), Localize...
String xml = sb.toString();
455,389
public boolean init() {<NEW_LINE>final ParseLogHandler log = SkriptLogger.startParseLogHandler();<NEW_LINE>try {<NEW_LINE>boolean hasValue = false;<NEW_LINE>final Class<? extends Event>[] es = getParser().getCurrentEvents();<NEW_LINE>if (es == null) {<NEW_LINE>assert false;<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>fo...
e, c, getTime());
1,035,614
public void transform(Picture src, Picture dst) {<NEW_LINE>copy(src.getPlaneData(0), dst.getPlaneData(0), src.getWidth(), dst.getWidth(), dst.getHeight());<NEW_LINE>_copy(src.getPlaneData(1), dst.getPlaneData(1), 0, 0, 1, 2, src.getWidth() >> 1, dst.getWidth() >> 1, src.getHeight() >> 1, dst.getHeight());<NEW_LINE>_cop...
1, dst.getHeight());
1,724,821
public // }<NEW_LINE>void printStdev(AutoTypeImage typeMean, AutoTypeImage typePow2) {<NEW_LINE>String bitWiseMean = typeMean.getBitWise();<NEW_LINE><MASK><NEW_LINE>String typeCast = typeMean.getDataType();<NEW_LINE>String sumType = typeMean.getSumType();<NEW_LINE>out.print("\tpublic static void stdev( " + typeMean.get...
String bitWisePow = typePow2.getBitWise();
330,540
public void show(final String date) {<NEW_LINE>dialog = setDialogLayout();<NEW_LINE>UIUtil.setDialogDefaultFunctions(dialog);<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>ObjectPack objectPack = null;<NEW_LINE>TcpProxy proxy = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<N...
getSingle(RequestCmd.OBJECT_INFO, param);