idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
962,061
public ContentType encode(Packet packet, OutputStream out) throws IOException {<NEW_LINE>ContentTypeImpl ctImpl = (ContentTypeImpl) this.getStaticContentType(packet);<NEW_LINE>String boundary = ctImpl.getBoundary();<NEW_LINE>String rootId = ctImpl.getRootId();<NEW_LINE>if (packet.getMessage() != null) {<NEW_LINE>try {<...
getAttachments(), out, boundary);
333,397
public static StorageDirView selectDirWithRequestedSpace(long bytesToBeAvailable, BlockStoreLocation location, BlockMetadataEvictorView mManagerView) {<NEW_LINE>if (location.equals(BlockStoreLocation.anyTier())) {<NEW_LINE>for (StorageTierView tierView : mManagerView.getTierViews()) {<NEW_LINE>for (StorageDirView dirVi...
) >= bytesToBeAvailable) ? dirView : null;
1,531,777
private Node addAdditionalProperties(Node node) {<NEW_LINE>if (!node.isObjectNode()) {<NEW_LINE>return node;<NEW_LINE>}<NEW_LINE>ObjectNode valueNode = node.expectObjectNode();<NEW_LINE>// Unions may be expressed as a "oneOf" which won't have a type.<NEW_LINE>Optional<String> type = valueNode.getStringMember("type").ma...
.add(addAdditionalProperties(element));
255,449
public List<Object[]> showTables(SQLShowTablesStatement statement) {<NEW_LINE>String schemaName = SQLUtils.normalize(statement.getDatabase().getSimpleName());<NEW_LINE>MetadataManager metadataManager = MetaClusterCurrent.wrapper(MetadataManager.class);<NEW_LINE>NameMap<SchemaHandler> schemaMap = metadataManager.getSche...
collect(Collectors.toList());
1,410,889
private void parseFirstRow(Element theDefRow) {<NEW_LINE>for (int i = 0; i < 20; i++) {<NEW_LINE>String nextName = cellValue(theDefRow, i);<NEW_LINE>if (nextName == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>nextName = nextName.toLowerCase().trim().replace(".", "").replace(" ", "");<NEW_LINE>if ("element".equals(ne...
.code(176) + "Unable to determine column: requirements");
1,636,786
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select irstream " + "min(price) as minPrice," + "max(price) as maxPrice " + "from SupportMarketDataBean#length(2)";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.milestone(0);<NEW_LINE>env.sendEventBean(makeMarketDataEven...
.sendEventBean(makeMarketDataEvent(200));
622,425
public void translateToBedrock(CompoundTagBuilder builder, CompoundTag javaTag, String javaId) {<NEW_LINE>if (!javaId.contains("head") && !javaId.contains("skull"))<NEW_LINE>return;<NEW_LINE>String skullType = javaId.substring(0, javaId.indexOf("[")).replace("minecraft:", "");<NEW_LINE>if (javaId.contains("wall")) {<NE...
(skullType).getId());
1,828,060
public double[][] matmul(double[][] a, double[][] b) {<NEW_LINE>int m = a.length, n = a[0].length, <MASK><NEW_LINE>double[][] x = new double[m][p];<NEW_LINE>double[][] c = new double[p][n];<NEW_LINE>for (// transpose<NEW_LINE>// transpose<NEW_LINE>int i = 0; // transpose<NEW_LINE>i < n; ++i) for (int j = 0; j < p; ++j)...
p = b[0].length;
1,791,949
final CreateThemeResult executeCreateTheme(CreateThemeRequest createThemeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createThemeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,394,286
private boolean selectFieldNumber(String defaultFieldName) {<NEW_LINE>int size = 0;<NEW_LINE>if (!(parentDt instanceof Pointer)) {<NEW_LINE>size = accessVn.getSize();<NEW_LINE>}<NEW_LINE>ArrayList<String> allFields = new ArrayList<>();<NEW_LINE>String[] <MASK><NEW_LINE>if (choices.length < 2) {<NEW_LINE>// If only one ...
choices = buildFieldOptions(allFields, size);
137,251
public JSDynamicObject createPrototype(JSRealm realm, JSFunctionObject constructor) {<NEW_LINE>JSContext ctx = realm.getContext();<NEW_LINE>JSObject prototype = JSObjectUtil.createOrdinaryPrototypeObject(realm);<NEW_LINE>JSObjectUtil.putConstructorProperty(ctx, prototype, constructor);<NEW_LINE>JSObjectUtil.putBuiltinA...
(TemporalPlainDateTimePrototypeBuiltins.BUILTINS, MICROSECOND));
1,545,311
public Sequence<Result<TopNResultValue>> query(final TopNQuery query, final StorageAdapter adapter, @Nullable final TopNQueryMetrics queryMetrics) {<NEW_LINE>if (adapter == null) {<NEW_LINE>throw new SegmentMissingException("Null storage adapter found. Probably trying to issue a query against a segment being memory unm...
mapFn.apply(input, queryMetrics);
920,712
public void refreshRecentFile(String fileName) throws Throwable {<NEW_LINE>if (!StringUtils.isValidString(fileName)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GM.setCurrentPath(fileName);<NEW_LINE>String tempFileName;<NEW_LINE>int point = GC.RECENT_MENU_COUNT - 1;<NEW_LINE>for (int i = 0; i < fileItem.length; i++) {<NEW_L...
storeRecentFiles(ConfigFile.APP_DM, fileItem);
1,656,588
public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization authorization, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>if (call.get("redirect_link", null) == null || call.get("image_name", null) == null) {<NEW_LINE>throw new APIException(400, "Bad Request. No e...
.get("redirect_link") + " !");
896,333
private void initMpEventMessageClass() {<NEW_LINE>String messageType = MessageType.event.name();<NEW_LINE>AccountType accountType = AccountType.MP;<NEW_LINE>messageClassMap.put(new WeixinMessageKey(messageType, EventType.scan.name(), accountType), com.foxinmy.weixin4j.<MASK><NEW_LINE>messageClassMap.put(new WeixinMessa...
mp.event.ScanEventMessage.class);
574,895
private BigInteger satcount_rec(int root) {<NEW_LINE>if (ISZERO(root)) {<NEW_LINE>return BigInteger.ZERO;<NEW_LINE>} else if (ISONE(root)) {<NEW_LINE>return BigInteger.ONE;<NEW_LINE>}<NEW_LINE>int <MASK><NEW_LINE>BigIntegerBddCacheData entry = BddCache_lookupBigInteger(countcache, hash);<NEW_LINE>if (entry.a == root &&...
hash = SATCOUHASH(root, miscid);
1,357,318
public Set<UUID> possibleTargets(UUID sourceControllerId, Game game) {<NEW_LINE>Set<UUID> <MASK><NEW_LINE>for (StackObject stackObject : game.getStack()) {<NEW_LINE>if ((stackObject instanceof Spell) || (stackObject instanceof StackAbility)) {<NEW_LINE>Targets objectTargets = stackObject.getStackAbility().getTargets();...
possibleTargets = new HashSet<>();
1,466,856
public void bufferWrite(AbstractConnection c) {<NEW_LINE>ByteBuffer buffer = c.allocate();<NEW_LINE>BufferUtil.writeUB3(buffer, calcPacketSize());<NEW_LINE>buffer.put(packetId);<NEW_LINE>buffer.put(STATUS);<NEW_LINE>if (user != null) {<NEW_LINE>byte[] userData = user.getBytes();<NEW_LINE>buffer = c.checkWriteBuffer(buf...
checkWriteBuffer(buffer, 1, true);
1,485,777
public DescribeAppInstanceUserResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAppInstanceUserResult describeAppInstanceUserResult = new DescribeAppInstanceUserResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth...
String currentParentElement = context.getCurrentParentElement();
488,807
public TFImportStatus merge(@NonNull TFImportStatus other) {<NEW_LINE>List<String> newModelPaths <MASK><NEW_LINE>newModelPaths.addAll(other.modelPaths);<NEW_LINE>List<String> newCantImportModelPaths = new ArrayList<>(cantImportModelPaths);<NEW_LINE>newCantImportModelPaths.addAll(other.cantImportModelPaths);<NEW_LINE>Li...
= new ArrayList<>(modelPaths);
1,397,296
private ServiceContext buildServiceContext(ServiceDescriptorProto serviceProto, ProtoTypeMap typeMap, List<Location> locations, int serviceNumber) {<NEW_LINE>ServiceContext serviceContext = new ServiceContext();<NEW_LINE>serviceContext.setFileName(getClassPrefix() + serviceProto.getName() + getClassSuffix() + ".java");...
Location locationDefault = Location.getDefaultInstance();
395,364
public void validate(final String methodName, final Class<?>[] parameterTypes, final Object[] arguments) throws Exception {<NEW_LINE>List<Class<?>> groups = new ArrayList<>();<NEW_LINE>String methodClassName = clazz.getName() + "$" + toUpperMethodName(methodName);<NEW_LINE>try {<NEW_LINE>Class<?> methodClass = Class.fo...
(Arrays.asList(methodClasses));
1,227,325
/*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.connectors.FilteredOutboundConnector#start(com.sitewhere.spi.<NEW_LINE>* server.lifecycle.ILifecycleProgressMonitor)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void start(ILifecycleProgressMonitor monitor) throws SiteWhereException {<NEW_LINE>// Required for filters.<NEW_...
getSolrConfiguration().getSolrServerUrl());
1,763,068
/*<NEW_LINE>* @Override<NEW_LINE>* protected WebResponse submitExpectedFailedRequest(String url, int requestNum) throws Exception {<NEW_LINE>* WebResponse response = new WebResponse(this, requestNum);<NEW_LINE>* response.setUrl(url);<NEW_LINE>* response.setRequestedUrl(url);<NEW_LINE>* this.populateResponse(response);<...
getResponseHeaders(), response.responseHeaders);
481,136
/* Sample generated code:<NEW_LINE>*<NEW_LINE>* @com.ibm.j9ddr.GeneratedFieldAccessor(offsetFieldName="_lockwordOffset_", declaredType="j9objectmonitor_t*")<NEW_LINE>* public ObjectMonitorReferencePointer lockword() throws CorruptDataException {<NEW_LINE>* return ObjectMonitorReferencePointer.cast(getPointerAtOffse...
field.getName(), returnDesc);
1,544,948
protected void onAuthenticated(@Nullable Bundle savedInstanceState) {<NEW_LINE><MASK><NEW_LINE>setSupportActionBar(findViewById(R.id.toolbar));<NEW_LINE>model = new ViewModelProvider(this).get(ProfilesViewModel.class);<NEW_LINE>progressIndicator = findViewById(R.id.progress_linear);<NEW_LINE>progressIndicator.setVisibi...
setContentView(R.layout.activity_profiles);
992,627
public void hashcode(byte[] bytes, int begin, int end, long[] numbers) {<NEW_LINE>while (end >= begin + 1 && bytes[end - 1] == 0x20) {<NEW_LINE>end--;<NEW_LINE>}<NEW_LINE>long tmp1 = numbers[0] & 0xffffffffL;<NEW_LINE>long tmp2 = numbers[1] & 0xffffffffL;<NEW_LINE>Slice utf8Str = Slices.wrappedBuffer(bytes, begin, end ...
)) + (tmp1 << 8);
404,312
public T apply(T t) {<NEW_LINE>List<Object> dash = new ArrayList<>();<NEW_LINE>for (Object o : t.getList()) {<NEW_LINE>if (o instanceof IllustsBean) {<NEW_LINE>boolean isTagBanned = IllustNovelFilter.judgeTag((IllustsBean) o);<NEW_LINE>boolean isIdBanned = IllustNovelFilter.judgeID((IllustsBean) o);<NEW_LINE>boolean is...
.judgeR18Filter((NovelBean) o);
1,577,368
private void parsePaths(JsonObject json) {<NEW_LINE>String runfilesPrefix = null;<NEW_LINE>List<String> alternativePrefixes = new ArrayList<>();<NEW_LINE>VirtualFile base = baseUrlFile.getValue();<NEW_LINE>if (base != null) {<NEW_LINE>Path baseUrlPath = VfsUtil.<MASK><NEW_LINE>BuildSystemName buildSystem = Blaze.getBui...
virtualToIoFile(base).toPath();
959,517
public Void visitTimestampArithmeticExpr(TimestampArithmeticExpr node, Scope scope) {<NEW_LINE>node.setChild(0, TypeManager.addCastExpr(node.getChild(0), Type.DATETIME));<NEW_LINE>String funcOpName;<NEW_LINE>if (node.getFuncName() != null) {<NEW_LINE>if (addDateFunctions.contains(node.getFuncName().toUpperCase())) {<NE...
Collectors.toList())));
170,366
protected static byte[][] chunksFromScriptBytes(byte[] script) throws ScriptParsingException {<NEW_LINE>try {<NEW_LINE>ByteReader reader = new ByteReader(script);<NEW_LINE>int numChunks = countChunks(reader);<NEW_LINE>if (numChunks == -1) {<NEW_LINE>throw new ScriptParsingException(script);<NEW_LINE>}<NEW_LINE>byte[][]...
int opcode = reader.get();
1,072,200
public void localContactChanged(DHTTransportContact new_local_contact) {<NEW_LINE>logger.log("Transport ID changed, recreating router");<NEW_LINE>List old_contacts = router.findBestContacts(0);<NEW_LINE>byte[] old_router_id = router.getID();<NEW_LINE>createRouter(new_local_contact);<NEW_LINE>// sort for closeness to ne...
(DHTTransportContact) it.next();
837,705
final DescribeBatchInferenceJobResult executeDescribeBatchInferenceJob(DescribeBatchInferenceJobRequest describeBatchInferenceJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeBatchInferenceJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
21,457
private void init() {<NEW_LINE>binding.buttonLatLongitude.setOnClickListener(v -> updateCoordinates());<NEW_LINE>binding.searchCoordinates.setOnClickListener(arg0 -> findByCoordsFn());<NEW_LINE>// standard searches<NEW_LINE>setBasicSearchAction(binding.address, binding.searchAddress, this::findByAddressFn, null);<NEW_L...
true)).show());
312,495
public void optimize(RegularMethodNode method, Program program, boolean friendlyToDebugger) {<NEW_LINE>ReadWriteStatsBuilder stats = new ReadWriteStatsBuilder(method.<MASK><NEW_LINE>stats.analyze(program);<NEW_LINE>applyParametersToWriteStats(stats, method.getReference());<NEW_LINE>boolean[] preservedVars = new boolean...
getVariables().size());
384,771
private void calculateDrawSettings() {<NEW_LINE>// calculate font size based on DP<NEW_LINE>fontSizePixels = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, FONT_SIZE_DP, mContext.getResources().getDisplayMetrics());<NEW_LINE>DESCRIPTION_LINE_HEIGHT = fontSizePixels + 5;<NEW_LINE>// calculate max width bas...
this.mDescriptionPaint.setTextSize(fontSizePixels);
1,527,992
public DistributionInfo toDistributionInfo(List<Column> columns) throws DdlException {<NEW_LINE>List<Column<MASK><NEW_LINE>// check and get distribution column<NEW_LINE>for (String colName : distributionColumnNames) {<NEW_LINE>boolean find = false;<NEW_LINE>for (Column column : columns) {<NEW_LINE>if (column.getName()....
> distributionColumns = Lists.newArrayList();
1,003,215
public void layout() {<NEW_LINE>BitmapFont font = cache.getFont();<NEW_LINE>float oldScaleX = font.getScaleX();<NEW_LINE>float oldScaleY = font.getScaleY();<NEW_LINE>if (fontScaleChanged)<NEW_LINE>font.getData().setScale(fontScaleX, fontScaleY);<NEW_LINE>boolean wrap = this.wrap && ellipsis == null;<NEW_LINE>if (wrap) ...
-= style.font.getDescent();
1,359,685
public static List<OrderByElement> extraOrderBy(SelectBody selectBody) {<NEW_LINE>if (selectBody != null) {<NEW_LINE>if (selectBody instanceof PlainSelect) {<NEW_LINE>List<OrderByElement> orderByElements = ((PlainSelect) selectBody).getOrderByElements();<NEW_LINE>((PlainSelect) selectBody).setOrderByElements(null);<NEW...
.size() - 1));
135,531
public boolean destroy(final List<Contentlet> contentlets, final User user, final boolean respectFrontendRoles) throws DotDataException, DotSecurityException {<NEW_LINE>boolean destroyed = false;<NEW_LINE>if (contentlets == null || contentlets.size() == 0) {<NEW_LINE>Logger.info(this, "No contents passed to delete so r...
contentletsToDelete, user, respectFrontendRoles) : destroyed;
1,132,664
final CreateCustomRoutingAcceleratorResult executeCreateCustomRoutingAccelerator(CreateCustomRoutingAcceleratorRequest createCustomRoutingAcceleratorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCustomRoutingAcceleratorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
false), new CreateCustomRoutingAcceleratorResultJsonUnmarshaller());
835,321
static <R> R autofuzz(FuzzedDataProvider data, Constructor<R> constructor, AutofuzzCodegenVisitor visitor) {<NEW_LINE>if (visitor != null) {<NEW_LINE>// getCanonicalName is correct also for nested classes.<NEW_LINE>visitor.pushGroup(String.format("new %s(", constructor.getDeclaringClass().getCanonicalName()), ", ", ")"...
consumeArguments(data, constructor, visitor);
1,698,825
private void checkPassivationCapable(TypeElement scopeElement, Element element, WebBeansModel model, Result result) {<NEW_LINE>if (!isPassivatingScope(scopeElement, model)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TypeMirror returnType = ((ExecutableElement) element).getReturnType();<NEW_LINE>if (returnType == null) {<NE...
().toString()));
1,670,631
public BoundingBox boundingBoxIntersection(BoundingBox b) {<NEW_LINE>if (!this.intersect(b))<NEW_LINE>return null;<NEW_LINE>double ax1 = this.x;<NEW_LINE>double ax2 = this.x2;<NEW_LINE>double ay1 = this.y;<NEW_LINE>double ay2 = this.y2;<NEW_LINE>double bx1 = b.x;<NEW_LINE>double bx2 = b.x2;<NEW_LINE>double by1 = b.y;<N...
ix1, iy1, ix2, iy2);
1,039,432
public final InsertImpl values(T1 value1, T2 value2, T3 value3, T4 value4, T5 value5, T6 value6, T7 value7, T8 value8, T9 value9, T10 value10, T11 value11, T12 value12, T13 value13, T14 value14, T15 value15, T16 value16, T17 value17, T18 value18, T19 value19, T20 value20, T21 value21, T22 value22) {<NEW_LINE>return val...
, value20, value21, value22 });
315,042
protected void validate(DataFlowOpForgeInitializeContext context) throws ExprValidationException {<NEW_LINE>host = DataFlowParameterValidation.validate("host", host, String.class, context);<NEW_LINE>port = DataFlowParameterValidation.validate("port", <MASK><NEW_LINE>username = DataFlowParameterValidation.validate("user...
port, int.class, context);
881,934
public void testActivationSpecBindings(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>FVTMessageDrivenBeanBinding.messages.clear();<NEW_LINE>ConnectionFactory cf = (ConnectionFactory) new InitialContext().lookup("java:comp/env/jms/cf1");<NEW_LINE>Connection con = cf.createConnecti...
String message = results.next();
1,238,285
final GetCoreDefinitionResult executeGetCoreDefinition(GetCoreDefinitionRequest getCoreDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCoreDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
(super.beforeMarshalling(getCoreDefinitionRequest));
1,036,647
public static List<X509Certificate> publicKeyFromPem(byte[] pem) {<NEW_LINE>Pattern pattern = Pattern.compile("(?s)-----BEGIN CERTIFICATE-----.*?-----END CERTIFICATE-----");<NEW_LINE>Matcher matcher = pattern.matcher(new String(pem, StandardCharsets.UTF_8));<NEW_LINE>List<X509Certificate> <MASK><NEW_LINE>while (matcher...
x509CertificateList = new ArrayList<>();
815,258
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2,c3".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportBean").expression(fields[0], "intPrimitive between BigInteger.valueOf(1) and BigInteger.valueOf(3)").expression(fields[1], "intPrimitive between BigDecim...
false, false, false, false);
1,646,524
private void updateProperties(Parameter param) {<NEW_LINE>PropertySupport<String> ps = new PropertySupport.Name(this);<NEW_LINE>addProperty(ps);<NEW_LINE>switch(param.getDirection()) {<NEW_LINE>case IN:<NEW_LINE>// NOI18N<NEW_LINE>addProperty(TYPE, TYPEDESC, String.class, false, NbBundle.getMessage<MASK><NEW_LINE>break...
(ProcedureParamNode.class, "In"));
1,813,660
public int doStartTag() throws JspException {<NEW_LINE>boolean getSize = ServletRequestUtils.getBooleanParameter(pageContext.<MASK><NEW_LINE>StringBuilder query = new StringBuilder();<NEW_LINE>query.append(param).append("=").append(!getSize);<NEW_LINE>String encoding = pageContext.getResponse().getCharacterEncoding();<...
getRequest(), param, false);
1,169,408
public void start(final String keywords, final DataListener msgListener) {<NEW_LINE>msgListener.onStart();<NEW_LINE>running = true;<NEW_LINE>final Random rnd = new Random();<NEW_LINE>final String aggregatorPrefix = getPrefix();<NEW_LINE>Executors.newSingleThreadExecutor().submit(() -> {<NEW_LINE>final Client resourceCl...
.register(new MoxyJsonFeature());
1,420,855
public void marshall(ExecuteStatementRequest executeStatementRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (executeStatementRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(executeStatemen...
e.getMessage(), e);
446,513
public MetaClass buildAndGetMetaClass(Class<?> clazz) {<NEW_LINE>MetaClass resultMetaClass = null;<NEW_LINE><MASK><NEW_LINE>String packageName;<NEW_LINE>String className;<NEW_LINE>int lastDotIndex = fqClassName.lastIndexOf(C_DOT);<NEW_LINE>if (lastDotIndex != -1) {<NEW_LINE>packageName = fqClassName.substring(0, lastDo...
String fqClassName = clazz.getName();
597,748
private Mono<Response<Void>> resetAllFiltersForHostingEnvironmentWithResponseAsync(String resourceGroupName, String environmentName, String hostingEnvironmentName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpo...
error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is required and cannot be null."));
181,570
static JiffiesAndCpus updateMetrics(JiffiesAndCpus prevTotalJiffies, Instant timeStamp, GetJiffies getJiffies, List<VespaService> services, Map<VespaService, Long> lastCpuJiffiesMetrics) {<NEW_LINE>Map<VespaService, Long> currentServiceJiffies = new HashMap<>();<NEW_LINE>for (VespaService s : services) {<NEW_LINE>curre...
[] size = getMemoryUsage(s);
575,125
private static void handleByteCode(ConfigurationCompiler compiler, Element element) {<NEW_LINE>ConfigurationCompilerByteCode codegen = compiler.getByteCode();<NEW_LINE>parseOptionalBoolean(element, "include-debugsymbols", codegen::setIncludeDebugSymbols);<NEW_LINE>parseOptionalBoolean(element, "include-comments", codeg...
element, "access-modifier-expression", codegen::setAccessModifierExpression);
410,721
private boolean analyzeStaticPatterns(List<BLangMatchStaticBindingPatternClause> matchedPatterns, boolean errorTypeInMatchExpr) {<NEW_LINE>BLangMatchStaticBindingPatternClause finalPattern = matchedPatterns.get(matchedPatterns.size() - 1);<NEW_LINE>if (finalPattern.literal.getKind() == NodeKind.SIMPLE_VARIABLE_REF && (...
pattern.pos, DiagnosticErrorCode.MATCH_STMT_UNREACHABLE_PATTERN);
895,043
private static EnsembleModelProvenance cleanEnsembleProvenance(EnsembleModelProvenance old, ListProvenance<ModelProvenance> memberProvenance, String provenanceHash, StripProvenanceOptions opt) {<NEW_LINE>// Dataset provenance<NEW_LINE>DatasetProvenance datasetProvenance;<NEW_LINE>if (opt.removeProvenances.contains(ALL)...
datasetProvenance, trainerProvenance, instanceProvenance, memberProvenance);
1,450,612
public void process() {<NEW_LINE>// compute match intensities<NEW_LINE>if (mask == null)<NEW_LINE>match.process(template);<NEW_LINE>else<NEW_LINE>match.process(template, mask);<NEW_LINE>GrayF32 intensity = match.getIntensity();<NEW_LINE>int offsetX = 0;<NEW_LINE>int offsetY = 0;<NEW_LINE>// adjust intensity image size ...
= imageHeight - match.getBorderY1();
779,162
private boolean sendEmailReport(Customer c, Universe u, String emailDestinations, boolean sendMailAlways, boolean hasErrors, boolean reportOnlyErrors, JsonNode report) {<NEW_LINE>SmtpData smtpData = emailHelper.getSmtpData(c.uuid);<NEW_LINE>if (!StringUtils.isEmpty(emailDestinations) && (smtpData != null) && (sendMailA...
subject, emailDestinations, smtpData, contentMap);
1,297,521
public void drawLayer(Canvas canvas, Matrix parentMatrix, int parentAlpha) {<NEW_LINE>int backgroundAlpha = Color.alpha(layerModel.getSolidColor());<NEW_LINE>if (backgroundAlpha == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int opacity = transform.getOpacity() == null ? 100 : transform.getOpacity().getValue();<NEW_LINE>...
0], points[1]);
524,050
public static File[] find(@NonNull URL root, boolean javadoc) {<NEW_LINE>String k = root.toString();<NEW_LINE>Preferences n = node(javadoc);<NEW_LINE>String v = n.get(k, null);<NEW_LINE>if (v == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String[] split = StringUtils.split(v, "||");<NEW_LINE>List<File> toRet <MAS...
= new ArrayList<File>();
1,145,604
private void initialize() {<NEW_LINE>iosMode = UIManager.getInstance().isThemeConstant("onOffIOSModeBool", false);<NEW_LINE>removeAll();<NEW_LINE>setFocusable(true);<NEW_LINE>if (iosMode) {<NEW_LINE>button = null;<NEW_LINE>switchMaskImage = UIManager.getInstance().getThemeImageConstant("switchMaskImage");<NEW_LINE>swit...
getInstance().getThemeImageConstant("switchOffImage");
173,394
protected Transferable createTransferable(JComponent c) {<NEW_LINE>if (!(c instanceof XDebuggerFramesList)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>XDebuggerFramesList list = (XDebuggerFramesList) c;<NEW_LINE>// noinspection deprecation<NEW_LINE>Object[] values = list.getSelectedValues();<NEW_LINE>if (values == nul...
coloredTextContainer = new TextTransferable.ColoredStringBuilder();
741,462
private Texture loadTexture(GL10 gl, Bitmap bitmap) {<NEW_LINE>// generate one texture pointer<NEW_LINE>gl.glGenTextures(1, textures, nextSlot);<NEW_LINE>// ...and bind it to our array<NEW_LINE>int id = textures[nextSlot];<NEW_LINE>gl.glBindTexture(GL10.GL_TEXTURE_2D, id);<NEW_LINE>// create nearest filtered texture<NE...
setTexWidth(bitmap.getWidth());
131,864
private void createProperty(Property<?> pro, String featureName) {<NEW_LINE>StringBuilder cypherCreate = new StringBuilder("MATCH (f:FF4J_FEATURE {uid:'" + featureName + "'} ) ");<NEW_LINE>cypherCreate.append("CREATE (p:" + FF4jNeo4jLabels.FF4J_FEATURE_PROPERTY + " { name :'");<NEW_LINE>cypherCreate.append(pro.getName...
append(pro.getType());
1,367,772
protected OutputStream open(ASN1ObjectIdentifier dataType, OutputStream out, ASN1EncodableVector recipientInfos, OutputEncryptor encryptor) throws IOException {<NEW_LINE>//<NEW_LINE>// ContentInfo<NEW_LINE>//<NEW_LINE>BERSequenceGenerator cGen = new BERSequenceGenerator(out);<NEW_LINE>cGen.addObject(CMSObjectIdentifier...
BERSequenceGenerator(envGen.getRawOutputStream());
1,563,892
protected void mergeRegions() {<NEW_LINE>// sort edges<NEW_LINE>// long time0 = System.currentTimeMillis();<NEW_LINE>if (sorterApprox != null) {<NEW_LINE>sorterApprox.computeRange(edges.data, 0, edges.size);<NEW_LINE>sorterApprox.sortObject(edges.data, 0, edges.size);<NEW_LINE>} else {<NEW_LINE>sorter.sort(edges.data, ...
e = edges.get(i);
183,868
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>try {<NEW_LINE>JsonObject result = new JsonObject();<NEW_LINE>result.addProperty("status", "OK");<NEW_LINE>result.addProperty("jwtSigningPublicKey", new Utils.PubPriKey(AccessTokenSigningKey.getInstan...
sendJsonResponse(200, result, resp);
533,274
protected boolean beforeSave(boolean newRecord) {<NEW_LINE>MHREmployee employee = MHREmployee.getActiveEmployee(Env.getCtx(), getC_BPartner_ID(), get_TrxName());<NEW_LINE>if (employee != null) {<NEW_LINE><MASK><NEW_LINE>int activityId = employee.getC_Activity_ID();<NEW_LINE>int user1Id = employee.getUser1_ID();<NEW_LIN...
setAD_Org_ID(employee.getAD_Org_ID());
1,293,058
// guarded by myLock<NEW_LINE>private void initMetricsIfNeeded() {<NEW_LINE>if (myPlainSpaceWidth >= 0)<NEW_LINE>return;<NEW_LINE>Font font = myEditor.getColorsScheme().getFont(EditorFontType.PLAIN);<NEW_LINE>FontMetrics fm = FontInfo.getFontMetrics(font, myFontRenderContext);<NEW_LINE>float width = FontLayoutService.g...
= fontMetricsHeight - myLineHeight + myDescent - descent;
1,778,079
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.ws.sib.msgstore.Transactable#transactableAbort(com.ibm.ws.sib.msgstore.Transaction)<NEW_LINE>*/<NEW_LINE>public final void rollback(final PersistentTransaction transaction) throws SevereMessageStoreException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnable...
SibTr.exit(tc, "rollback");
1,597,970
private static void progMusterErsetzen(JFrame parent, DatenPset pSet) {<NEW_LINE>pSet.arr[DatenPset.PROGRAMMSET_ZIEL_PFAD] = StringUtils.replace(pSet.arr[DatenPset.PROGRAMMSET_ZIEL_PFAD], MUSTER_PFAD_ZIEL, StandardLocations.getStandardDownloadPath());<NEW_LINE>String vlc = "";<NEW_LINE>String ffmpeg = "";<NEW_LINE>// d...
prog = pSet.getProg(p);
1,380,162
final AssociateResolverEndpointIpAddressResult executeAssociateResolverEndpointIpAddress(AssociateResolverEndpointIpAddressRequest associateResolverEndpointIpAddressRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateResolverEndpointIpAddressRequest);<NEW_LINE>AWSRequestMetrics awsRe...
invoke(request, responseHandler, executionContext);
328,275
final DescribeAcceleratorResult executeDescribeAccelerator(DescribeAcceleratorRequest describeAcceleratorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAcceleratorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(describeAcceleratorRequest));
1,176,658
public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.INTEGER);<NEW_LINE>error = validator.validate(values.get("roleId"), convLabel...
"deleteFlag"), convLabelName("Delete Flag"));
1,758,196
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2".split(",");<NEW_LINE>String epl = "@name('s0') select " + "sum(intPrimitive, filter:theString like 'A%') as c0," + "sum(intPrimitive) as c1," + "sum(filter:theString like 'B%', intPrimitive) as c2" + " from SupportBean";<NEW_LINE>env.com...
{ null, 1, null });
354,380
public GetOfferingStatusResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetOfferingStatusResult getOfferingStatusResult = new GetOfferingStatusResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
)).unmarshall(context));
1,729,364
public void read(org.apache.thrift.protocol.TProtocol prot, TMutation struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(5);<NEW_LINE>if (incoming.get(0)) {<NEW_L...
.row = iprot.readBinary();
880,771
public void actionPerformed(ActionEvent arg0) {<NEW_LINE>tableHosts.acceptText();<NEW_LINE>int r = tableHosts.getRowCount();<NEW_LINE>String defaultIP = UnitContext.getDefaultHost();<NEW_LINE>String ip = defaultIP;<NEW_LINE>if (isClusterEditing) {<NEW_LINE>ip = fixedIP;<NEW_LINE>} else {<NEW_LINE>if (r > 0) {<NEW_LINE>...
YES : NO, row, COL_ISLOCAL);
1,716,483
private void dataChanged(AbstractWidget changed, String name) {<NEW_LINE>// TODO this changed to only send diffs, does that work or does MessageMaintenanceKit need to be changed?<NEW_LINE>Slot s = menu.getSlot(0);<NEW_LINE>if (s.getItem().getItem() instanceof IConfigurableTool) {<NEW_LINE>ItemStack stack = s.getItem();...
) changed).getState());
889,313
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_moat);<NEW_LINE>Toolbar toolbar = findViewById(R.id.toolbar);<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>ActionBar actionBar = getSupportActionBar();<NEW_LINE>if (actionBar !=...
mChallenge = savedInstanceState.getString("challenge");
1,443,812
private TaskSocket authorize() throws IOException {<NEW_LINE>final TaskSocket taskSocket = new TaskSocket();<NEW_LINE>final OutputStream output = taskSocket.socket.getOutputStream();<NEW_LINE>final DataInputStream input = new DataInputStream(taskSocket.socket.getInputStream());<NEW_LINE>if (output == null) {<NEW_LINE>t...
logger.trace("Solution '{}' send to EG", solutionMessage);
570,250
public static QueryOfficialFileCustomListResponse unmarshall(QueryOfficialFileCustomListResponse queryOfficialFileCustomListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryOfficialFileCustomListResponse.setRequestId(_ctx.stringValue("QueryOfficialFileCustomListResponse.RequestId"));<NEW_LINE>queryOfficialFileCustom...
("QueryOfficialFileCustomListResponse.Data[" + i + "].Remark"));
995,891
protected Map<String, Response> mapResponseMessages(Set<springfox.documentation.service.ResponseMessage> from) {<NEW_LINE>Map<String, Response> responses = new TreeMap<>();<NEW_LINE>for (springfox.documentation.service.ResponseMessage responseMessage : from) {<NEW_LINE>Property responseProperty;<NEW_LINE>springfox.docu...
.getCode()), response);
4,006
private void updatePlaybackSpeedSettingsForNewPeriod(Timeline newTimeline, MediaPeriodId newPeriodId, Timeline oldTimeline, MediaPeriodId oldPeriodId, long positionForTargetOffsetOverrideUs) {<NEW_LINE>if (!shouldUseLivePlaybackSpeedControl(newTimeline, newPeriodId)) {<NEW_LINE>// Live playback speed control is unused ...
(castNonNull(window.liveConfiguration));
917,635
void promptNameAndSave(final InputStream in, final String attachmentFileName) {<NEW_LINE>TextInputDialogUtils.textInput(this, R.string.title_file_received, attachmentFileName, R.string.action_file_received_edit, text -> {<NEW_LINE>File outFile = saveStreamWithName(in, text);<NEW_LINE>if (outFile == null)<NEW_LINE>retur...
Intent(TERMUX_SERVICE.ACTION_SERVICE_EXECUTE, scriptUri);
788,401
public static KeyStore makeKeyStore(final Path certPath, final Path keyPath, final GraphQLConfigCertificate.Encoding format) throws UnsupportedEncodingException {<NEW_LINE>CertificateFactory certificateFactory;<NEW_LINE>try {<NEW_LINE>certificateFactory = CertificateFactory.getInstance("X509");<NEW_LINE>} catch (Certif...
getInstance(KeyStore.getDefaultType());
1,502,829
public static ListTagResourcesResponse unmarshall(ListTagResourcesResponse listTagResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTagResourcesResponse.setRequestId(_ctx.stringValue("ListTagResourcesResponse.RequestId"));<NEW_LINE>listTagResourcesResponse.setNextToken(_ctx.stringValue("ListTagResourcesRespon...
("ListTagResourcesResponse.TagResources[" + i + "].ResourceType"));
1,342,988
public byte[] decrypt(final String encodedJSON) {<NEW_LINE>byte[] result = null;<NEW_LINE>if (encodedJSON == null)<NEW_LINE>throw new OSecurityException("OSymmetricKey.decrypt(String) encodedJSON is null");<NEW_LINE>try {<NEW_LINE>byte<MASK><NEW_LINE>if (decoded == null)<NEW_LINE>throw new OSecurityException("OSymmetri...
[] decoded = convertFromBase64(encodedJSON);
335,150
public static List<PathElement> parseHeader(String header) {<NEW_LINE>List<PathElement> elements = new ArrayList<>();<NEW_LINE>if (header == null || header.trim().length() == 0) {<NEW_LINE>return elements;<NEW_LINE>}<NEW_LINE>String[] <MASK><NEW_LINE>for (String clause : clauses) {<NEW_LINE>String[] tokens = clause.spl...
clauses = header.split(",");
119,771
public static Dataset<MultiLabel> generateTrainData() {<NEW_LINE>DataSourceProvenance provenance = new SimpleDataSourceProvenance("TrainingData", <MASK><NEW_LINE>MutableDataset<MultiLabel> dataset = new MutableDataset<>(provenance, factory);<NEW_LINE>ArrayExample<MultiLabel> e = new ArrayExample<>(factory.generateOutpu...
OffsetDateTime.now(), factory);
203,915
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>if (savedInstanceState != null) {<NEW_LINE>selectedModel = savedInstanceState.getString(STATE_SELECTED_MODEL, CUSTOM_AUTOML_LABELING);<NEW_LINE>lensFacing = savedInstanceState.getInt(STATE_LENS_FAC...
Log.d(TAG, "onCreate");
1,277,371
private static TriggerConfig createTriggerConfig(ConfigObject triggerObject) {<NEW_LINE>if (Objects.isNull(triggerObject)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TriggerConfig triggerConfig = new TriggerConfig();<NEW_LINE>String triggerName = triggerObject.get("triggerName").unwrapped().toString();<NEW_LINE>trigge...
.unwrapped().toString();
511,727
private ResultMap resultMapElement(XNode resultMapNode, List<ResultMapping> additionalResultMappings, Class<?> enclosingType) {<NEW_LINE>ErrorContext.instance().activity("processing " + resultMapNode.getValueBasedIdentifier());<NEW_LINE>String type = resultMapNode.getStringAttribute("type", resultMapNode.getStringAttri...
flags.add(ResultFlag.ID);
614,460
// / Extract unsatisfiable core example with AssertAndTrack<NEW_LINE>public void unsatCoreAndProofExample2(Context ctx) {<NEW_LINE>System.out.println("UnsatCoreAndProofExample2");<NEW_LINE>Log.append("UnsatCoreAndProofExample2");<NEW_LINE><MASK><NEW_LINE>BoolExpr pa = ctx.mkBoolConst("PredA");<NEW_LINE>BoolExpr pb = ct...
Solver solver = ctx.mkSolver();
855,088
final AssociateMacSecKeyResult executeAssociateMacSecKey(AssociateMacSecKeyRequest associateMacSecKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateMacSecKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Direct Connect");
1,387,592
private static void solveMaxFlow() {<NEW_LINE>System.out.println("Max Flow Problem - Simple interface");<NEW_LINE>final int[] tails = { 0, 0, 0, 0, 1, 2, 3, 3, 4 };<NEW_LINE>final int[] heads = { 1, 2, 3, 4, 3, <MASK><NEW_LINE>final int[] capacities = { 5, 8, 5, 3, 4, 5, 6, 6, 4 };<NEW_LINE>final int expectedTotalFlow ...
4, 4, 5, 5 };