idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
861,466
public GetPipelineResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetPipelineResult getPipelineResult = new GetPipelineResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
().unmarshall(context));
1,179,637
public void createUpdateAverageCostDetail(MPPCostCollector costCollectorVariance, BigDecimal costVarianceThisLevel, BigDecimal costVarianceLowLevel, MProduct product, MAcctSchema acctSchema, MCostType costType, MCostElement costElement) {<NEW_LINE>String whereClause = " exists (select 1 from pp_cost_collector pc" + " w...
costLowLevel, model.isSOTrx());
1,664,199
private void createSetMenuEntries(JMenu edit) {<NEW_LINE>edit.add(new ToolTipAction(Lang.get("menu_table_setXTo0")) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>modifyTable(v -> v > 1 ? 0 : v);<NEW_LINE>}<NEW_LINE>}.setToolTip(Lang.get("menu_table_setXTo0_tt")).createJMe...
(v -> (byte) 2);
772,173
public ExportResult<TaskContainerResource> export(UUID jobId, TokensAndUrlAuthData authData, Optional<ExportInformation> exportInformation) {<NEW_LINE>// Create a new tasks service for the authorized user<NEW_LINE>Tasks tasksService = getOrCreateTasksService(authData);<NEW_LINE>IdOnlyContainerResource resource = export...
, Optional.ofNullable(paginationData));
1,394,211
final ExportApiResult executeExportApi(ExportApiRequest exportApiRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exportApiRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
305,540
public FixedModeScheduleActionStartSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FixedModeScheduleActionStartSettings fixedModeScheduleActionStartSettings = new FixedModeScheduleActionStartSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParen...
JsonToken token = context.getCurrentToken();
1,388,935
public void marshall(ApplicationInfo applicationInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (applicationInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(applicationInfo.getResourceGroupName(),...
applicationInfo.getDiscoveryType(), DISCOVERYTYPE_BINDING);
1,596,873
public static final int[] readThisIntArrayXml(XmlPullParser parser, String endTag, String[] name) throws XmlPullParserException, java.io.IOException {<NEW_LINE>int num;<NEW_LINE>try {<NEW_LINE>num = Integer.parseInt(parser<MASK><NEW_LINE>} catch (NullPointerException e) {<NEW_LINE>throw new XmlPullParserException("Need...
.getAttributeValue(null, "num"));
1,036,797
final ListResourcesAssociatedToCustomLineItemResult executeListResourcesAssociatedToCustomLineItem(ListResourcesAssociatedToCustomLineItemRequest listResourcesAssociatedToCustomLineItemRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourcesAssociatedToCustomLineItemRequest);<NEW_LIN...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
3,864
private void renderFullClassFunctionDeclaration(PreparedClass cls, ScopedName jsName, List<FieldHolder> nonStaticFields) throws IOException {<NEW_LINE>boolean thisAliased = false;<NEW_LINE>renderFunctionDeclaration(jsName);<NEW_LINE>writer.append("()").ws().append("{").indent().softNewLine();<NEW_LINE>if (nonStaticFiel...
, naming.getNameFor(fieldRef));
968,933
private static Map<TypeAlias, jnr.ffi.NativeType> buildTypeMap() {<NEW_LINE>Map<TypeAlias, jnr.ffi.NativeType> m = new EnumMap<TypeAlias, jnr.ffi.NativeType>(TypeAlias.class);<NEW_LINE>m.put(TypeAlias.int8_t, NativeType.SCHAR);<NEW_LINE>m.put(TypeAlias.u_int8_t, NativeType.UCHAR);<NEW_LINE>m.put(TypeAlias.int16_t, Nati...
TypeAlias.caddr_t, NativeType.ADDRESS);
1,850,373
private TScanRangeLocations newLocations(TBrokerScanRangeParams params, String brokerName) throws UserException {<NEW_LINE>Backend selectedBackend = backends.get(nextBe++);<NEW_LINE>nextBe <MASK><NEW_LINE>// Generate on broker scan range<NEW_LINE>TBrokerScanRange brokerScanRange = new TBrokerScanRange();<NEW_LINE>broke...
= nextBe % backends.size();
1,756,855
public static Map<String, io.fabric8.kubernetes.client.http.Interceptor> createApplicableInterceptors(Config config, HttpClient.Factory factory) {<NEW_LINE>Map<String, io.fabric8.kubernetes.client.http.Interceptor> interceptors = new LinkedHashMap<>();<NEW_LINE>// Header Interceptor<NEW_LINE>interceptors.put(HEADER_INT...
.NAME, new BackwardsCompatibilityInterceptor());
645,020
public void run() {<NEW_LINE>List<String> listOptions = listActionConfig.listType;<NEW_LINE>if (listOptions == null) {<NEW_LINE>try {<NEW_LINE>printing.<MASK><NEW_LINE>} catch (IOException e) {<NEW_LINE>throw Throwables.propagate(e);<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<String> options = Arrays.asList(l...
printAllSanitizedSecrets(keywhizClient.allSecrets());
1,210,681
public static CodegenExpression codegen(DTLocalZDTIntervalForge forge, CodegenExpression start, CodegenExpression end, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChild(EPTypePremade.BOOLEANBO...
, methodNode, exprSymbol, codegenClassScope));
1,226,266
private void startPreview(@NonNull final Parameters parameters) {<NEW_LINE>if (this.camera.isPresent()) {<NEW_LINE>try {<NEW_LINE>final Camera camera <MASK><NEW_LINE>final Size preferredPreviewSize = getPreferredPreviewSize(parameters);<NEW_LINE>if (preferredPreviewSize != null && !parameters.getPreviewSize().equals(pr...
= this.camera.get();
1,312,276
private void copyHeadersMap(Map<String, List<String>> headerMap, OutgoingSipServletRequest outMsg, boolean isToFromAllowed) {<NEW_LINE>if (headerMap == null)<NEW_LINE>return;<NEW_LINE>for (Entry<String, List<String>> entry : headerMap.entrySet()) {<NEW_LINE>String headerName = entry.getKey();<NEW_LINE>List<String> valu...
addHeaderToFromAllowed(headerName, values, isToFromAllowed);
1,560,406
private Parameter readParam(Swagger swagger, Type type, Class<?> cls, ApiParam param) {<NEW_LINE>PrimitiveType fromType = PrimitiveType.fromType(type);<NEW_LINE>final Parameter para = null == fromType ? new <MASK><NEW_LINE>Parameter parameter = ParameterProcessor.applyAnnotations(swagger, para, type, null == param ? ne...
BodyParameter() : new QueryParameter();
1,562,470
final DeleteVoiceTemplateResult executeDeleteVoiceTemplate(DeleteVoiceTemplateRequest deleteVoiceTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVoiceTemplateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
162,155
public ImmutableMultimap<ShippedCandidateKey, InOutId> retrieveShipmentIdsByCandidateKey(@NonNull final Set<ShippedCandidateKey> shippedCandidateKeys) {<NEW_LINE>final Set<ShipmentScheduleId> scheduleIds = shippedCandidateKeys.stream().map(ShippedCandidateKey::getShipmentScheduleId).collect(ImmutableSet.toImmutableSet(...
lineId2InOut = inOutDAO.retrieveInOutByLineIds(inOutLineIds);
220,527
private static // and uploads it to the blurred bucket.<NEW_LINE>void blur(BlobInfo blobInfo) throws IOException {<NEW_LINE>String bucketName = blobInfo.getBucket();<NEW_LINE>String fileName = blobInfo.getName();<NEW_LINE>// Download image<NEW_LINE>Blob blob = storage.get(BlobId.of(bucketName, fileName));<NEW_LINE>Path...
get("/tmp/", "blurred-" + fileName);
1,638,462
public String findOrphanDescriptors() {<NEW_LINE>com.haulmont.cuba.core.app.filestorage.FileStorage fileStorage;<NEW_LINE>FileStorageAPI fileStorageAPI = AppBeans.get(FileStorageAPI.class);<NEW_LINE>if (fileStorageAPI instanceof com.haulmont.cuba.core.app.filestorage.FileStorage) {<NEW_LINE>fileStorage = (com.haulmont....
Transaction tx = persistence.createTransaction();
1,712,658
public void acceptElement(IBaseResource theResource, IBase theElement, List<String> thePathToElement, BaseRuntimeChildDefinition theChildDefinition, BaseRuntimeElementDefinition<?> theDefinition) {<NEW_LINE>if (myCodeableConceptType.isAssignableFrom(theElement.getClass())) {<NEW_LINE>// Find all existing Codings<NEW_LI...
(nextSourceSystem, code, wantTargetSystem));
870,868
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>setHasOptionsMenu(true);<NEW_LINE>ActionBar actionBar = ((AppCompatActivity) requireActivity()).getSupportActionBar();<NEW_LINE>actionBar.setDisplayHomeAsUpEnabled(true);...
id.virtual_key_star, Keycode.KEY_STAR);
119,852
private static void parseNonDynamicArray(ParseContext context, ObjectMapper mapper, final String lastFieldName, String arrayFieldName) throws IOException {<NEW_LINE>XContentParser parser = context.parser();<NEW_LINE>XContentParser.Token token;<NEW_LINE>final String[] paths = splitAndValidatePath(lastFieldName);<NEW_LIN...
) + "] with array for [" + arrayFieldName + "] tried to parse as array, but got EOF, is there a mismatch in types for the same field?");
967,944
public final ViewExpressionsContext viewExpressions() throws RecognitionException {<NEW_LINE>ViewExpressionsContext _localctx = new ViewExpressionsContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 226, RULE_viewExpressions);<NEW_LINE>paraphrases.push("view specifications");<NEW_LINE>int _la;<NEW_LINE>try {<NEW_L...
_la = _input.LA(1);
1,041,142
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {<NEW_LINE>// If ever there was a valid use of goto, this would be it... if Java had it.<NEW_LINE>if (!(request instanceof HttpServletRequest)) {<NEW_LINE>log.debug("request is not HTTP");<NEW_...
"version " + clientVersion + " state " + status);
924,874
public static boolean isMavenFXProject(@NonNull final Project prj) {<NEW_LINE>if (isMavenProject(prj)) {<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>FileObject pomXml = prj.getProjectDirectory().getFileObject("pom.xml");<NEW_LINE>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBui...
XPathFactory xPathfactory = XPathFactory.newInstance();
558,817
@NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public Response createContentTypeField(@PathParam("typeIdOrVarName") final String typeIdOrVarName, final String fieldJson, @Context final HttpServletRequest httpServletRequest, @...
fieldAPI.save(field, user);
1,678,970
final ListReportGroupsResult executeListReportGroups(ListReportGroupsRequest listReportGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listReportGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListReportGroups");
594,515
public DiskImageVolumeDescription unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DiskImageVolumeDescription diskImageVolumeDescription = new DiskImageVolumeDescription();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.i...
int xmlEvent = context.nextEvent();
450,558
Element writeView(IArchimateDiagramModel dm, Element viewsElement) {<NEW_LINE>Element viewElement = new Element(ELEMENT_VIEW, ARCHIMATE3_NAMESPACE);<NEW_LINE>viewsElement.addContent(viewElement);<NEW_LINE>// Identifier<NEW_LINE>viewElement.setAttribute(ATTRIBUTE_IDENTIFIER, checkID(dm));<NEW_LINE>// Type<NEW_LINE>viewE...
getViewpointName(dm.getViewpoint());
187,423
private void onFloorsLoaded(List<FloorModel> floors) {<NEW_LINE>// if the user should not interact with the gui and<NEW_LINE>// automatically<NEW_LINE>// load the building<NEW_LINE>if (mode != Mode.NONE) {<NEW_LINE>// TODO - automatically choose the floor to be shown if<NEW_LINE>// it's<NEW_LINE>// only one<NEW_LINE>if...
Toast.LENGTH_SHORT).show();
1,572,490
public Notebook deleteNotebook(NotebookSpec spec, String notebookId) throws SubmarineRuntimeException {<NEW_LINE>Notebook notebook = null;<NEW_LINE>final String name = spec.getMeta().getName();<NEW_LINE>String namespace = getServerNamespace();<NEW_LINE>NotebookCR notebookCR = NotebookSpecParser.parseNotebook(spec, null...
.PVC_PREFIX, name), namespace);
1,606,534
final DeletePackageVersionsResult executeDeletePackageVersions(DeletePackageVersionsRequest deletePackageVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePackageVersionsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
560,386
protected void consumeInterfaceHeaderName1() {<NEW_LINE>// InterfaceHeaderName ::= Modifiersopt 'interface' 'Identifier'<NEW_LINE>TypeDeclaration typeDecl = new TypeDeclaration(this.compilationUnit.compilationResult);<NEW_LINE>if (this.nestedMethod[this.nestedType] == 0) {<NEW_LINE>if (this.nestedType != 0) {<NEW_LINE>...
.intStack[this.intPtr--];
287,545
public void testSubList_lastIndexOf() {<NEW_LINE>List<E> list = getList();<NEW_LINE>int size = list.size();<NEW_LINE>List<E> copy = list.subList(0, size);<NEW_LINE>List<E> head = list.subList(0, size - 1);<NEW_LINE>List<E> tail = list.subList(1, size);<NEW_LINE>assertEquals(size - 1, copy.lastIndexOf(list.get(size - 1)...
get(size - 1)));
610,834
void process() {<NEW_LINE>if (requests.isEmpty())<NEW_LINE>return;<NEW_LINE>ChangeMessageVisibilityBatchRequest batchRequest = new ChangeMessageVisibilityBatchRequest().withQueueUrl(qUrl);<NEW_LINE>ResultConverter.<MASK><NEW_LINE>List<ChangeMessageVisibilityBatchRequestEntry> entries = new ArrayList<ChangeMessageVisibi...
appendUserAgent(batchRequest, AmazonSQSBufferedAsyncClient.USER_AGENT);
106,798
private static BMap<String, BRefType<?>> processAttributeAndNamespaces(BMap<String, BRefType<?>> rootNode, LinkedHashMap<String, String> attributeMap, String attributePrefix, String singleElementValue) {<NEW_LINE>boolean singleElement = false;<NEW_LINE>if (rootNode == null) {<NEW_LINE>rootNode = new <MASK><NEW_LINE>sin...
BMap<>(BTypes.typeJSON);
490,449
private void encodeStringLiteral(ByteBuf out, CharSequence string) {<NEW_LINE>int huffmanLength;<NEW_LINE>if (string.length() >= huffCodeThreshold && (huffmanLength = hpackHuffmanEncoder.getEncodedLength(string)) < string.length()) {<NEW_LINE>encodeInteger(out, 0x80, 7, huffmanLength);<NEW_LINE>hpackHuffmanEncoder.enco...
), asciiString.length());
1,830,277
public ScpActionDefinition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ScpActionDefinition scpActionDefinition = new ScpActionDefinition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
1,759,373
static LocalPredictor loadLocalPredictorFromPipelineModel(FilePath filePath, TableSchema inputSchema) throws Exception {<NEW_LINE>Tuple2<TableSchema, List<Row>> readed = AkUtils.readFromPath(filePath);<NEW_LINE>Tuple2<TableSchema, Row> schemaAndMeta = ModelExporterUtils.loadMetaFromAkFile(filePath);<NEW_LINE>Tuple2<Sta...
schemaAndMeta.f1, schemaAndMeta.f0);
1,329,461
public static ListFunctionDeploymentResponse unmarshall(ListFunctionDeploymentResponse listFunctionDeploymentResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFunctionDeploymentResponse.setRequestId(_ctx.stringValue("ListFunctionDeploymentResponse.RequestId"));<NEW_LINE>listFunctionDeploymentResponse.setHttpStatusCode...
(_ctx.stringValue("ListFunctionDeploymentResponse.Code"));
742,498
final DeleteUsageReportSubscriptionResult executeDeleteUsageReportSubscription(DeleteUsageReportSubscriptionRequest deleteUsageReportSubscriptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUsageReportSubscriptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
223,252
private <T> MultiNodeResult<T> collectResults(Map<NodeExecution, Future<NodeResult<T>>> futures) {<NEW_LINE>boolean done = false;<NEW_LINE>MultiNodeResult<T> result = new MultiNodeResult<>();<NEW_LINE>Map<RedisClusterNode, Throwable> exceptions = new HashMap<>();<NEW_LINE>Set<String> saveGuard = new HashSet<>();<NEW_LI...
.currentThread().interrupt();
344,052
private static void PaintSegment(Point lastPoint, Point point, RenderState state) {<NEW_LINE>double distance = lastPoint.getDistanceTo(point);<NEW_LINE>Point vector = point.substract(lastPoint);<NEW_LINE>Point unitVector = new Point(1.0f, 1.0f, 0.0f);<NEW_LINE>float vectorAngle = Math.abs(state.angle) > 0.0f ? state.an...
vector.multiplyByScalar(1.0 / distance);
73,237
public void addExtraCompletions(String token, List<QualifiedName> completions) {<NEW_LINE>Set<String> discoveredIdentifiers = new HashSet<>();<NEW_LINE>Token cursorToken = docDisplay_.<MASK><NEW_LINE>TokenIterator it = docDisplay_.createTokenIterator();<NEW_LINE>for (Token t = it.getCurrentToken(); t != null && t != cu...
getTokenAt(docDisplay_.getCursorPosition());
43,498
protected void send(Map data_map, boolean is_request, boolean record_active) throws BuddyPluginException {<NEW_LINE>try {<NEW_LINE>byte[] <MASK><NEW_LINE>int data_length = data.length;<NEW_LINE>plugin_network.checkMaxMessageSize(data_length);<NEW_LINE>int max_chunk = connection.getMaximumMessageSize() - 1024;<NEW_LINE>...
data = BEncoder.encode(data_map);
238,801
public <G extends FulfillmentGroupItem> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException {<NEW_LINE>CreateResponse<G> createResponse = context.createOrRetrieveCopyInstance(this);<NEW_LINE>if (createResponse.isAlreadyPopulated()) {<NEW_LINE>return createRes...
null : new Money(proratedOrderAdjustment));
572,911
public void write(CompoundTag compound, boolean clientPacket) {<NEW_LINE>NBTHelper.writeEnum(compound, "Mode", mode);<NEW_LINE>NBTHelper.writeEnum(compound, "State", state);<NEW_LINE>compound.putInt("Timer", timer);<NEW_LINE>compound.putBoolean("Powered", redstoneLocked);<NEW_LINE>if (player != null) {<NEW_LINE>ListTag...
getInventory().save(invNBT);
583,805
private void createTableItem(Table table, ChangedFile file, boolean sort) {<NEW_LINE>TableItem item = null;<NEW_LINE>if (sort) {<NEW_LINE>// insert into sorted table<NEW_LINE>TableItem[] items = table.getItems();<NEW_LINE>int index = 0;<NEW_LINE>for (TableItem existing : items) {<NEW_LINE>String path = existing.getText...
getRelativePath().toOSString());
1,824,036
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>String sessionHandle = InputParser.<MASK><NEW_LINE>assert sessionHandle != null;<NEW_LINE>try {<NEW_LINE>JsonObject userDataInDatabase = Session.getSessionData(main, sessionHandle);<NEW_LINE>JsonObject...
getQueryParamOrThrowError(req, "sessionHandle", false);
1,484,790
public List<String> run() throws KeeperException, InterruptedException {<NEW_LINE>// only read volatile once for consistency<NEW_LINE>ImmutableCacheCopies lic = immutableCache;<NEW_LINE>if (lic.childrenCache.containsKey(zPath)) {<NEW_LINE>return lic.childrenCache.get(zPath);<NEW_LINE>}<NEW_LINE>cacheWriteLock.lock();<N...
childrenCache.put(zPath, children);
1,033,603
public static SignalServiceAddress toSignalServiceAddress(@NonNull Context context, @NonNull Recipient recipient) throws IOException {<NEW_LINE>recipient = recipient.resolve();<NEW_LINE>if (!recipient.getServiceId().isPresent() && !recipient.getE164().isPresent()) {<NEW_LINE>throw new AssertionError(recipient.getId() +...
recipient.getId() + " is missing a UUID...");
1,244,962
protected Object createNode(JSContext context, JSBuiltin builtin, boolean construct, boolean newTarget, TemporalPlainYearMonthPrototype builtinEnum) {<NEW_LINE>switch(builtinEnum) {<NEW_LINE>case calendar:<NEW_LINE>case year:<NEW_LINE>case month:<NEW_LINE>case monthCode:<NEW_LINE>case daysInMonth:<NEW_LINE>case daysInY...
().createArgumentNodes(context));
1,038,207
public String render(ClassModel model, int index, int size, Map<String, Object> session) {<NEW_LINE>StringWriter sw = new StringWriter();<NEW_LINE>PrintWriter writer = new PrintWriter(sw);<NEW_LINE>if (index == 0) {<NEW_LINE>Util.generateLicense(writer);<NEW_LINE>writer.printf("/// <reference types=\"%s\" />\n\n", getN...
writer, fqcn.toString());
1,730,917
public NestedArray<T> append(ActiveTail<T> tail) {<NEW_LINE>if (last(last(array)).length < 32) {<NEW_LINE>Object[][][][] updatedNodes = Arrays.copyOf(array, array.length, Object[][][][].class);<NEW_LINE>updatedNodes[updatedNodes.length - 1] = Arrays.copyOf(last(updatedNodes), last(updatedNodes).length, Object[][][].cla...
Object[][].class);
714,729
public void render(MatrixStack matrixStack, int mouseX, int mouseY, float partialTicks) {<NEW_LINE>updateColors();<NEW_LINE><MASK><NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);<NEW_LINE>// GL11.glShadeModel(GL11.GL_SMOOTH);<NEW_LINE>RenderSystem.lineWi...
GL11.glDisable(GL11.GL_CULL_FACE);
285,544
private <T> List<T> filterCompletionItems(Collection<T> data, String search, Comparator<T> comparator, Function<T, String> getString) {<NEW_LINE>List<T> <MASK><NEW_LINE>List<T> matched = new ArrayList<>();<NEW_LINE>Pattern cSearch = Pattern.compile(Pattern.quote(search.substring(0, 1).toUpperCase(Locale.ENGLISH)) + "(?...
containing = new ArrayList<>();
17,555
public Map<String, String> run(EjbJarMetadata metadata) throws Exception {<NEW_LINE>EntityAndSession ejb = (EntityAndSession) metadata.findByEjbClass(ejbClass);<NEW_LINE>Map<String, String> result = new HashMap<String, String>();<NEW_LINE>if (ejb != null) {<NEW_LINE>result.put(Ejb.EJB_NAME, ejb.getEjbName());<NEW_LINE>...
REMOTE, ejb.getRemote());
916,051
// -----------------------------------------------------<NEW_LINE>// Actually Crud<NEW_LINE>// -------------<NEW_LINE>@Execute<NEW_LINE>@Secured({ ROLE })<NEW_LINE>public HtmlResponse create(final CreateForm form) {<NEW_LINE>verifyCrudMode(form.crudMode, CrudMode.CREATE);<NEW_LINE>validate(form, messages -> {<NEW_LINE>...
error("Failed to add {}", entity, e);
1,373,432
void checkOverlays(int opcode, VarnodeData[] in, int isize, VarnodeData out) {<NEW_LINE>if (overlayspace != null) {<NEW_LINE>if ((opcode == PcodeOp.LOAD) || (opcode == PcodeOp.STORE)) {<NEW_LINE>int spaceId = (int) in[0].offset;<NEW_LINE>AddressSpace space = addressFactory.getAddressSpace(spaceId);<NEW_LINE>if (space.i...
v.space).getOverlayedSpace();
108,201
public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.AMBIENT_TEMPERATURE__SENSOR_VALUE:<NEW_LINE>return sensorValue != null;<NEW_LINE>case ModelPackage.AMBIENT_TEMPERATURE__LOGGER:<NEW_LINE>return LOGGER_EDEFAULT == null ? logger != null : !LOGGER_EDEFAULT.equals(logger);<NEW_L...
: !UID_EDEFAULT.equals(uid);
1,178,520
private void writeChunkToOutputStream(byte[] chunk, int offset, int length) {<NEW_LINE>if (compressor == null && !dwrfEncryptor.isPresent()) {<NEW_LINE>compressedOutputStream.write(chunk, offset, length);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>checkArgument(length <= maxBufferSize, "Write chunk length must be less than m...
chunk, offset, length, header);
1,140,869
public static ListHistoryDeployVersionResponse unmarshall(ListHistoryDeployVersionResponse listHistoryDeployVersionResponse, UnmarshallerContext _ctx) {<NEW_LINE>listHistoryDeployVersionResponse.setRequestId(_ctx.stringValue("ListHistoryDeployVersionResponse.RequestId"));<NEW_LINE>listHistoryDeployVersionResponse.setCo...
= new ArrayList<PackageVersion>();
1,805,929
public void onClick(View v) {<NEW_LINE>if (v == buttonRefresh) {<NEW_LINE>DialogUtils.createBothChoicesDialog(mContext, mContext.getString(R.string.title_warn), mContext.getString(R.string.tips_going_to_restart_app), mContext.getString(R.string.title_continue), mContext.getString(R.string.title_cancel), new DialogSuppo...
.get().restarter();
1,078,321
final DeleteAddonResult executeDeleteAddon(DeleteAddonRequest deleteAddonRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAddonRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new DeleteAddonResultJsonUnmarshaller());
1,300,327
public void run(String cmd, String[] args, Context ctx, PrintStream out) throws DDRInteractiveCommandException {<NEW_LINE>hexformat = "0x%0" + (ctx.process.bytesPerPointer() * 2) + "x";<NEW_LINE>if ((DDRInteractive.getPath() == null) || (DDRInteractive.getPath().length() == 0)) {<NEW_LINE>out.println("DDR Interactive w...
ctx, out, extractTo, overwrite);
1,040,303
public MultiDataSet next() {<NEW_LINE>val features = new ArrayList<INDArray>();<NEW_LINE>val labels = new ArrayList<INDArray>();<NEW_LINE>val featuresMask = new ArrayList<INDArray>();<NEW_LINE>val labelsMask <MASK><NEW_LINE>boolean hasFM = false;<NEW_LINE>boolean hasLM = false;<NEW_LINE>int cnt = 0;<NEW_LINE>for (val i...
= new ArrayList<INDArray>();
1,147,445
@Nonnull<NEW_LINE>public List<TextRange> intersectWithAllEditableFragments(@Nonnull PsiFile injectedPsi, @Nonnull TextRange rangeToEdit) {<NEW_LINE>Place shreds = InjectedLanguageUtil.getShreds(injectedPsi);<NEW_LINE>if (shreds == null)<NEW_LINE>return Collections.emptyList();<NEW_LINE>// optimization: TextRange or Arr...
getRangeInsideHost().getLength());
160,598
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>insidePanel = new javax.swing.JPanel();<NEW_LINE>xLabel = new javax.swing.JLabel();<NEW_LINE>xField = new javax.swing.JText...
insidePanel.add(xField, gridBagConstraints);
2,000
// ===========================================================<NEW_LINE>// Methods for/from SuperClass/Interfaces<NEW_LINE>// ===========================================================<NEW_LINE>@Override<NEW_LINE>public void onSensorChanged(final SensorEvent sensorEvent) {<NEW_LINE>int type = sensorEvent.sensor.getTyp...
z = sensorEvent.values[2];
1,032,054
protected void ensureKnown(Address min, Address max) {<NEW_LINE>if (minAddress == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>min = cmax(min, minAddress);<NEW_LINE>max = cmin(max, maxAddress);<NEW_LINE>if (known.contains(min, max)) {<NEW_LINE>// hits++;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// misses++;<NEW_LINE>Addres...
delegate.getAddressRanges(min, true);
410,445
public static List<RexNode> pushThroughJoin(Collection<RexNode> predicates, Join join, List<RexNode> pushed) {<NEW_LINE>final <MASK><NEW_LINE>final int nSysFields = 0;<NEW_LINE>final int nFieldsLeft = join.getInputs().get(0).getRowType().getFieldCount();<NEW_LINE>final int nFieldsRight = join.getInputs().get(1).getRowT...
JoinRelType joinType = join.getJoinType();
817,736
public static View intersectViews(View first, View second) {<NEW_LINE>if (first == null)<NEW_LINE>throw new IllegalArgumentException("View is null");<NEW_LINE>if (second == null)<NEW_LINE>throw new IllegalArgumentException("View is null");<NEW_LINE>View resultView = new <MASK><NEW_LINE>Collection<ViewProperty> firstPro...
View(first.getEntityClass());
1,715,402
// TODO This callback is not called (due to requestPermissions(this.getParent()?), so onCreate() is used<NEW_LINE>@Override<NEW_LINE>public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {<NEW_LINE>if (requestCode == REQUEST_LOCATION) {<NEW_LINE>// Check if ...
).getName(), s);
849,133
public void startRetrieveLogInternal(JobData jobData) {<NEW_LINE>if (!(jobData instanceof LinkisLogData)) {<NEW_LINE>throw new LinkisClientExecutionException("EXE0034", ErrorLevel.ERROR, CommonErrMsg.ExecutionErr, "JobData is not LinkisLogData");<NEW_LINE>}<NEW_LINE>if (jobData.getUser() == null || jobData.getJobID() =...
ERROR, CommonErrMsg.ExecutionErr, "user or jobID is null");
808,547
private void initiateDownload() {<NEW_LINE>mTiledLayer = (ArcGISTiledLayer) mMapView.getMap().getBasemap().getBaseLayers().get(0);<NEW_LINE>// initialize the export task<NEW_LINE>mExportTileCacheTask = new ExportTileCacheTask(mTiledLayer.getUri());<NEW_LINE>final ListenableFuture<ExportTileCacheParameters> parametersFu...
Toast.LENGTH_LONG).show();
1,515,275
public JsonNode executeQuery(Universe universe, RunQueryFormData queryParams, String username, String password) {<NEW_LINE>ObjectNode response = newObject();<NEW_LINE>// TODO: implement execute query for CQL<NEW_LINE>String ysqlEndpoints = universe.getYSQLServerAddresses();<NEW_LINE>String connectString = String.format...
ResultSet result = p.getResultSet();
1,851,792
public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.userId, convLabelName("User Id"));<NEW_LINE>if (err...
ValidatorFactory.getInstance(Validator.INTEGER);
34,521
final ListEventSourcesResult executeListEventSources(ListEventSourcesRequest listEventSourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEventSourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(listEventSourcesRequest));
567,445
public MessageStore create(SessionID sessionID) {<NEW_LINE>try {<NEW_LINE>String dbDir = settings.getString(sessionID, SETTING_SLEEPYCAT_DATABASE_DIR);<NEW_LINE>String seqDbName = "seq";<NEW_LINE>if (settings.isSetting(sessionID, SETTING_SLEEPYCAT_SEQUENCE_DB_NAME)) {<NEW_LINE>seqDbName = settings.getString(sessionID, ...
settings.getString(sessionID, SETTING_SLEEPYCAT_MESSAGE_DB_NAME);
262,026
private CompletableFuture<Version> sealActiveTx(final int epoch, final UUID txId, final boolean commit, final ActiveTxnRecord previous, final Version version, final String writerId, final long timestamp, OperationContext context) {<NEW_LINE>CompletableFuture<ActiveTxnRecord> future;<NEW_LINE>if (commit) {<NEW_LINE>// i...
VersionedMetadata<>(updated, version);
219,167
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.aptana.projects.internal.listeners.IProjectListenersManager#removeListener(com.aptana.projects.listeners.<NEW_LINE>* IStudioProjectListener, java.lang.String)<NEW_LINE>*/<NEW_LINE>public synchronized boolean removeListener(final IStudioProjectListener listener,...
values = listeners.get(projectNature);
1,391,235
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// WUtil.debug(new String("In do Post"),"");<NEW_LINE>HttpSession sess = request.getSession();<NEW_LINE>WebSessionCtx wsc = WebSessionCtx.get(request);<NEW_LINE>Properties ctx = wsc.ctx;<NEW_LINE...
]) sess.getAttribute(IMAGE_MAP);
1,287,962
public List<InetRecord> resolve(final String fqdn, final String address, final DNSAccessRecord.Builder builder) throws UnknownHostException {<NEW_LINE>try {<NEW_LINE>final <MASK><NEW_LINE>Zone zone = getZone(name);<NEW_LINE>final InetAddress addr = InetAddress.getByName(address);<NEW_LINE>final int qtype = (addr instan...
Name name = new Name(fqdn);
568,984
private static Histogram[] sparseBuildFP2(GBDTParam param, boolean[] isFeatUsed, int featLo, FeatureInfo featureInfo, DataSet dataset, GradPair[] gradPairs, int[] nodeToIns, int from, int to) {<NEW_LINE>Histogram[] histograms = new Histogram[isFeatUsed.length];<NEW_LINE>for (int i = 0; i < isFeatUsed.length; i++) {<NEW...
fullHessian, param.isMultiClassMultiTree());
1,678,257
private void realizePublishingTasksLater(final Project project, final PublishingExtension extension) {<NEW_LINE>final NamedDomainObjectSet<MavenPublicationInternal> mavenPublications = extension.getPublications().withType(MavenPublicationInternal.class);<NEW_LINE>final TaskContainer tasks = project.getTasks();<NEW_LINE...
).withType(MavenArtifactRepository.class);
1,034,999
private void addAllDefsFromBundles(Map<ConfigDefinitionKey, UnparsedConfigDefinition> defs, List<Component> components) {<NEW_LINE>for (Component component : components) {<NEW_LINE>Bundle bundle = component.getBundle();<NEW_LINE>for (final Bundle.DefEntry def : bundle.getDefEntries()) {<NEW_LINE>final ConfigDefinitionK...
def.defName, def.defNamespace);
1,609,509
public static void main(String[] args) {<NEW_LINE>Options options = createCommandLineOptions();<NEW_LINE>CommandLine cmd;<NEW_LINE>try {<NEW_LINE>CommandLineParser parser = new DefaultParser();<NEW_LINE>cmd = parser.parse(options, args);<NEW_LINE>} catch (ParseException e) {<NEW_LINE>System.out.println("ERROR: " + e.ge...
getEnvironment().setComplianceLevel(10);
1,121,809
private static Document toDocument(URL url) throws Exception {<NEW_LINE>// web.xml is optional<NEW_LINE>if (url == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try (InputStream is = url.openStream()) {<NEW_LINE>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>factory.setValidating(fa...
factory.setFeature("http://xml.org/sax/features/validation", false);
1,840,091
public Line2D computeExtendedLine(HeadInter head) {<NEW_LINE>if (isRemoved()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Heads in exclusion<NEW_LINE>final Set<Inter> excluded = new LinkedHashSet<>();<NEW_LINE>for (Relation rel : sig.getRelations(head, Exclusion.class)) {<NEW_LINE>excluded.add(sig.getOppositeInter(h...
), median.getY2());
178,258
public final ParseContext parse() throws RecognitionException {<NEW_LINE>ParseContext _localctx = new ParseContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 0, RULE_parse);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(25);<NEW_LINE>_errHandler.sync(this);<NE...
_errHandler.reportError(this, re);
474,919
public static Vector apply(LongLongVector v1, LongDummyVector v2, Binary op) {<NEW_LINE>LongLongVector res;<NEW_LINE>if (v1.isSparse()) {<NEW_LINE>if (op.isKeepStorage()) {<NEW_LINE>throw new AngelException("operation is not support!");<NEW_LINE>} else {<NEW_LINE>// multi-rehash<NEW_LINE>LongLongVectorStorage newStorag...
v2.get(i)));
1,265,188
//<NEW_LINE>"LogNotTimber", //<NEW_LINE>"StringFormatInTimber", //<NEW_LINE>"ThrowableNotAtBeginning", //<NEW_LINE>"BinaryOperationInTimber", //<NEW_LINE>"TimberArgCount", //<NEW_LINE>"TimberArgTypes", //<NEW_LINE>"TimberTagLength", "TimberExceptionLogging" })<NEW_LINE>//<NEW_LINE>@Override<NEW_LINE>protected void onCr...
Timber.tag("abcdefghijklmnopqrstuvw" + "x");
438,135
public T fromString(String value) {<NEW_LINE>if (value == null || value.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (fromStringMethod != null) {<NEW_LINE>try {<NEW_LINE>Object constant = fromStringMethod.invoke(null, value);<NEW_LINE>// return if a value is found<NEW_LINE>if (constant != null) {<NEW_LINE>...
(Collectors.joining(", "));
788,739
public com.squareup.okhttp.Call userCheckReferralCodeAsync(String referralCode, final ApiCallback<Double> callback) throws ApiException {<NEW_LINE>ProgressResponseBody.ProgressListener progressListener = null;<NEW_LINE>ProgressRequestBody.ProgressRequestListener progressRequestListener = null;<NEW_LINE>if (callback != ...
onUploadProgress(bytesWritten, contentLength, done);
399,507
/* (non-Javadoc)<NEW_LINE>* @see com.ibm.ejs.util.am.AlarmListener#alarm(java.lang.Object)<NEW_LINE>*<NEW_LINE>* If this timer alarms, then a Console message will be written to<NEW_LINE>* indicate that no response has been received.<NEW_LINE>*/<NEW_LINE>public void alarm(Object alarmContext) {<NEW_LINE>if (TraceCompone...
new Object[] { meName });
541,721
public boolean deleteRepository(String repositoryName) {<NEW_LINE>RepositoryModel repository = getRepositoryModel(repositoryName);<NEW_LINE>if (!canDelete(repository)) {<NEW_LINE>logger.warn("Attempt to delete {} rejected!", repositoryName);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>close(repositoryName...
("Failed to delete repository {0}", repositoryName), t);
398,484
private Answer serializeIndependentConfigs(NetworkSnapshot snapshot) {<NEW_LINE>Answer answer = new Answer();<NEW_LINE>ConvertConfigurationAnswerElement answerElement = new ConvertConfigurationAnswerElement();<NEW_LINE>answerElement.<MASK><NEW_LINE>if (_settings.getVerboseParse()) {<NEW_LINE>answer.addAnswerElement(ans...
setVersion(BatfishVersion.getVersionStatic());