idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
381,015
public ParameterMapping unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ParameterMapping parameterMapping = new ParameterMapping();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
().unmarshall(context));
363,854
public void updateMessageWithNewAttachments(final String messageId, final List<File> files) {<NEW_LINE>Realm realm = MessageDatabaseManager.getInstance().getNewBackgroundRealm();<NEW_LINE>realm.executeTransaction(new Realm.Transaction() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute(Realm realm) {<NEW_LINE...
setImageHeight(imageSize.getHeight());
1,836,868
public Collection<? extends AlternativeLocation> overrides(ParserResult info, ElementHandle handle) {<NEW_LINE>assert handle instanceof ModelElement;<NEW_LINE>if (handle instanceof MethodScope) {<NEW_LINE>MethodScope method = (MethodScope) handle;<NEW_LINE>final ElementFilter methodNameFilter = ElementFilter.forName(Na...
(getInheritedClassConstants(info, constant));
1,195,700
protected CmmnElement convert(XMLStreamReader xtr, ConversionHelper conversionHelper) {<NEW_LINE>Case caze = new Case();<NEW_LINE>caze.setName(xtr.getAttributeValue(null, CmmnXmlConstants.ATTRIBUTE_NAME));<NEW_LINE>caze.setInitiatorVariableName(xtr.getAttributeValue(CmmnXmlConstants.FLOWABLE_EXTENSIONS_NAMESPACE, CmmnX...
getAttributeValue(CmmnXmlConstants.ATTRIBUTE_CASE_CANDIDATE_GROUPS, xtr);
57,166
public void authorizeContainer(String apiKey, String containerName) {<NEW_LINE>_logger.infof("Authorizing %s for %s\n", apiKey, containerName);<NEW_LINE>// add the container if it does not exist; update datelastaccessed if it<NEW_LINE>// does<NEW_LINE>java.sql.Date now = new java.sql.Date(new <MASK><NEW_LINE>String ins...
Date().getTime());
1,704,663
final DeleteNotificationResult executeDeleteNotification(DeleteNotificationRequest deleteNotificationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteNotificationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
928,036
private static List<URL> serviceItemToUrls(ConfigItem item, ConfiguratorConfig config) {<NEW_LINE>List<URL> urls = new ArrayList<>();<NEW_LINE>List<<MASK><NEW_LINE>addresses.forEach(addr -> {<NEW_LINE>StringBuilder urlBuilder = new StringBuilder();<NEW_LINE>urlBuilder.append("override://").append(addr).append('/');<NEW...
String> addresses = parseAddresses(item);
1,838,810
public void main() {<NEW_LINE>super.main();<NEW_LINE>RMat4 inverseV = (RMat4) getGlobal(DefaultShaderVar.U_INVERSE_VIEW_MATRIX);<NEW_LINE>RVec4 color = (RVec4) getGlobal(DefaultShaderVar.G_COLOR);<NEW_LINE>RVec4 cmColor = new RVec4("cmColor");<NEW_LINE>RVec3 eyeDir = (RVec3) getGlobal(DefaultShaderVar.V_EYE_DIR);<NEW_L...
dot(reflected, reflected)));
999,212
private BulkResponse bulkIndexWithRetry(BulkRequest bulkRequest, String jobId, Supplier<Boolean> shouldRetry, Consumer<String> retryMsgHandler, BiConsumer<BulkRequest, ActionListener<BulkResponse>> actionExecutor) {<NEW_LINE>if (isShutdown || isResetMode) {<NEW_LINE>throw new ElasticsearchException("Bulk indexing has f...
> getResponse = PlainActionFuture.newFuture();
114,908
private Object mapValue(Map<String, Object> options, String key, Map<String, Object> map) {<NEW_LINE>Object out = null;<NEW_LINE>if (map.containsKey(key)) {<NEW_LINE>out = map.get(key);<NEW_LINE>} else if (key.contains(".")) {<NEW_LINE>String[] keys = key.split("\\.");<NEW_LINE>out = map.get(keys[0]);<NEW_LINE>for (int...
.get(keys[i]);
932,973
public void send(Destination destination, Message message, int deliveryMode, int priority, long timeToLive) throws JMSException {<NEW_LINE>if (!(message instanceof TextMessage))<NEW_LINE>throw new MessageFormatException("Message: " + message);<NEW_LINE>String tableName;<NEW_LINE>if (destination instanceof Queue)<NEW_LI...
notifyEndpoints(destination, message, deliveryMode);
269,818
private static synchronized void _focusLost(JTextComponent c, Component newFocused, List<PropertyChangeEvent> events) {<NEW_LINE>Item item = item(c);<NEW_LINE>// NOI18N<NEW_LINE>assert (item != null) : "Not registered!";<NEW_LINE>// For explicit close notifications: in practice the closing comes first before focus lost...
+ dumpComponent(c) + '\n');
1,362,691
private // TODO: This will only handle first-order dependencies and does not check for circular dependencies<NEW_LINE>List<WorldRasterizer> ensureRasterizerOrdering(ListMultimap<Class<? extends WorldFacet>, FacetProvider> providerChains, boolean scalable) {<NEW_LINE>List<WorldRasterizer> orderedRasterizers = Lists.newA...
asList(requiresRasterizer.value());
413,954
public UpdateSecurityProfileResult updateSecurityProfile(UpdateSecurityProfileRequest updateSecurityProfileRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSecurityProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = exe...
UpdateSecurityProfileRequestMarshaller().marshall(updateSecurityProfileRequest);
586,289
private static AggregateCall rollUp(int groupCount, RelBuilder relBuilder, AggregateCall aggregateCall, TileKey tileKey) {<NEW_LINE>if (aggregateCall.isDistinct()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>final Pair<SqlAggFunction, List<Integer>> seek = Pair.of(aggregation, aggregateCall.getArg...
SqlAggFunction aggregation = aggregateCall.getAggregation();
1,266,536
private static Map<String, String> createDefaultCheckerSetMap() {<NEW_LINE>Map<String, String> folderMap = new HashMap<>();<NEW_LINE>folderMap.put(Tool.COVERITY.name(), "codecc_default_rules_" + Tool.COVERITY.name().toLowerCase());<NEW_LINE>folderMap.put(Tool.KLOCWORK.name(), "codecc_default_rules_" + Tool.KLOCWORK.nam...
name().toLowerCase());
1,035,866
public static /*<NEW_LINE>int MXImperativeInvokeEx(Pointer creator, int num_inputs, PointerByReference inputs,<NEW_LINE>IntBuffer num_outputs, PointerByReference outputs, int num_params,<NEW_LINE>String param_keys[], String param_vals[],<NEW_LINE>PointerByReference out_stypes);<NEW_LINE><NEW_LINE>int MXNDArraySyncCopyF...
MXNDArrayToDLPack(Pointer handle, PointerByReference out_dlpack);
483,799
FragmentResult runRemoteQueryAt(Location.Remote location, TransactionMode transactionMode, String queryString, MapValue parameters) {<NEW_LINE>ExecutionOptions executionOptions = plan.inFabricContext() ? new ExecutionOptions(location.getGraphId()) : new ExecutionOptions();<NEW_LINE>lifecycle.startExecution(true);<NEW_L...
= new CompletionDelegatingOperator(records, fabricWorkerExecutor);
418,549
private String buildMainQuery(String orderBy, OrmQueryRequest<?> request, CQueryPredicates predicates, SpiRawSql.Sql sql) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(sql.getPreFrom());<NEW_LINE>sb.append(" ");<NEW_LINE>String s = sql.getPreWhere();<NEW_LINE>BindParams bindParams = request.quer...
dynamicWhere = descriptor.idBinderIdSql(null);
1,733,068
public ApiResponse<Subscription> subscriptionGetSubscriptionWithHttpInfo() throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/v4/subscription";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();...
HashMap<String, String>();
1,221,749
private void internalCheck(Set<String> sqlServerSet, Map<String, Set<String>> connStrMap) throws Exception {<NEW_LINE>StringBuilder errorInfo = new StringBuilder();<NEW_LINE>boolean sqlServerSetMark = false;<NEW_LINE>if (sqlServerSet.size() > 0) {<NEW_LINE>errorInfo.append(System.lineSeparator());<NEW_LINE>errorInfo.ap...
.join(value, ", "));
708,417
public static String computeDefinitionName(String ref, Set<String> reserved) {<NEW_LINE>final String[] refParts = ref.split("#/");<NEW_LINE>if (refParts.length > 2) {<NEW_LINE>throw new RuntimeException("Invalid ref format: " + ref);<NEW_LINE>}<NEW_LINE>final String file = refParts[0];<NEW_LINE>final String definitionP...
filePathElements[filePathElements.length - 1];
296,723
public void add(final long rangeStart, final long rangeEnd) {<NEW_LINE>rangeSanityCheck(rangeStart, rangeEnd);<NEW_LINE>if (rangeStart >= rangeEnd) {<NEW_LINE>// empty range<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int hbStart = (Util.highbits(rangeStart));<NEW_LINE>final int lbStart = (Util.lowbits(rangeStart));<NEW...
highLowContainer.setContainerAtIndex(i, c);
319,540
public static void main(String[] args) {<NEW_LINE>Exercise39_DeleteTheMinimum deleteTheMinimum = new Exercise39_DeleteTheMinimum();<NEW_LINE>RedBlackBSTDeleteMin<Integer, Integer> redBlackBST = deleteTheMinimum.new RedBlackBSTDeleteMin<>();<NEW_LINE>redBlackBST.put(10, 10);<NEW_LINE>redBlackBST.put(4, 4);<NEW_LINE>redB...
redBlackBST.put(2, 2);
1,671,638
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_LINE>JFrame jframe = new JFrame("Balloon Tips on FilteredTextField");<NEW_LINE>jframe.setDefaultCloseOperati...
jframe.setSize(400, 75);
1,076,653
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource");
886,574
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {<NEW_LINE>InternalLogId logId = InternalLogId.allocate(ServletAdapter.class, null);<NEW_LINE>logger.log(FINE, "[{0}] RPC started", logId);<NEW_LINE>if (!ServletAdapter.isGrpc(req)) {<NEW_LINE>resp.sendError(HttpServletResponse.SC_B...
stream.transportState()::onStreamAllocated);
448,678
private ICompletionProposal[] filterProposals(ICompletionProposal[] proposals, IDocument document, int offset, DocumentEvent event) {<NEW_LINE>int length = proposals <MASK><NEW_LINE>List<ICompletionProposal> filtered = new ArrayList<ICompletionProposal>(length);<NEW_LINE>for (int i = 0; i < length; i++) {<NEW_LINE>ICom...
== null ? 0 : proposals.length;
533,609
public void removeLogicalColumnList(String logicalTableName, List<String> columnNameList) {<NEW_LINE>CacheLine cacheLine = getCacheLine(logicalTableName);<NEW_LINE>for (String columnName : columnNameList) {<NEW_LINE>columnName = columnName.toLowerCase();<NEW_LINE>Map<String, Histogram> histogramMap = cacheLine.getHisto...
).removeLogicalTableColumnList(logicalTableName, columnNameList);
65,677
private int readProcessId(int dft) throws IOException {<NEW_LINE>ByteBuffer bb = ByteBuffer.allocate(128);<NEW_LINE>fileChannel.position(0);<NEW_LINE>int <MASK><NEW_LINE>fileChannel.position(0);<NEW_LINE>if (len == 0)<NEW_LINE>return dft;<NEW_LINE>if (len == 128)<NEW_LINE>// Too much.<NEW_LINE>return dft;<NEW_LINE>// B...
len = fileChannel.read(bb);
818,196
public void testQueryParameterCollectionFormat(List<String> pipe, List<String> ioutil, List<String> http, List<String> url, List<String> context) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'pipe' is set<NEW_LINE>if (pipe == null) {<NEW_LINE>throw new ApiExce...
throw new ApiException(400, "Missing the required parameter 'context' when calling testQueryParameterCollectionFormat");
471,282
private IStatus performOperation(ProfileChangeOperation operation, IProgressMonitor monitor) {<NEW_LINE>IStatus <MASK><NEW_LINE>if (status.isOK()) {<NEW_LINE>ProvisioningJob provisioningJob = operation.getProvisioningJob(monitor);<NEW_LINE>if (provisioningJob == null) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>System.err.print...
status = operation.resolveModal(monitor);
890,671
public static void addToolChain(NativeToolChainRegistryInternal toolChainRegistry, ServiceRegistry serviceRegistry) {<NEW_LINE>final FileResolver fileResolver = <MASK><NEW_LINE>final ExecActionFactory execActionFactory = serviceRegistry.get(ExecActionFactory.class);<NEW_LINE>final CompilerOutputFileNamingSchemeFactory ...
serviceRegistry.get(FileResolver.class);
81,423
void initLocalServerModel(List<DocumentRoot> documentRoots) {<NEW_LINE>if (canceled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int size = documentRoots.size();<NEW_LINE>List<LocalServer> localServers <MASK><NEW_LINE>LocalServer selected = null;<NEW_LINE>for (DocumentRoot root : documentRoots) {<NEW_LINE>String srcRoot = n...
= new ArrayList<>(size);
285,862
public void marshall(ReservationResourceSpecification reservationResourceSpecification, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (reservationResourceSpecification == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshall...
reservationResourceSpecification.getSpecialFeature(), SPECIALFEATURE_BINDING);
1,639,187
public ParseNode visitCreateTableAsSelect(StarRocksParser.CreateTableAsSelectContext context) {<NEW_LINE>Map<String, String> properties = new HashMap<>();<NEW_LINE>if (context.properties() != null) {<NEW_LINE>List<Property> propertyList = visit(context.properties().property(), Property.class);<NEW_LINE>for (Property pr...
), property.getValue());
481,116
public void close() {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "close");<NEW_LINE>}<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "SocketChannel close starting, local: " + socket.getLocalSocketAddress() + " remo...
" remote: " + socket.getRemoteSocketAddress());
342,939
protected TaskManager createTaskManagerImpl(TaskConfiguration taskConfig) {<NEW_LINE>PoiWriterConfiguration configuration = new PoiWriterConfiguration();<NEW_LINE>configuration.setAllTags(getBooleanArgument(taskConfig, PARAM_ALL_TAGS, true));<NEW_LINE>configuration.addBboxConfiguration(getStringArgument(taskConfig, PAR...
(taskConfig, PARAM_WAYS, true));
1,227,018
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
String tmpVar1 = environment.getNextVariableString();
1,587,733
public static int[] HSLtoRGB(final float h, final float s, final float l, final float alpha) {<NEW_LINE>if (s < 0.0f || s > 100.0f) {<NEW_LINE>Timber.w("Color parameter outside of expected range - Saturation");<NEW_LINE>}<NEW_LINE>if (l < 0.0f || l > 100.0f) {<NEW_LINE>Timber.w("Color parameter outside of expected rang...
] { r, g, b };
558,768
private Map<String, Object> fillProperties(IsochronesIntersection intersection, IsochronesRequest request) throws InternalServerException {<NEW_LINE>Map<String, Object> props = new HashMap<>();<NEW_LINE>List<Integer[]> contours = new ArrayList<>();<NEW_LINE>for (Pair<Integer, Integer> ref : intersection.getContourRefs(...
props.put("contours", contours);
792,314
private static void printHelp(Parser.Command command) {<NEW_LINE>Collection<AdminCommand.CommandDescriptor> commands;<NEW_LINE>if (command == null) {<NEW_LINE>// All commands.<NEW_LINE>commands = AdminCommand.Factory.getDescriptors();<NEW_LINE><MASK><NEW_LINE>} else {<NEW_LINE>// Commands specific to a component.<NEW_L...
System.out.println("All available commands:");
1,367,663
// intentionally raised by test case's ManagedTask implementation<NEW_LINE>@ExpectedFFDC("java.lang.IllegalMonitorStateException")<NEW_LINE>@Test<NEW_LINE>public void testFailManagedTask() throws Exception {<NEW_LINE>ManagedCounterTask task = new ManagedCounterTask();<NEW_LINE>task.failToGetExecutionProperties = true;<...
(Collections.singleton(task));
1,784,695
protected void handleSubscriptionException(CompletableFuture<Void> future, BackOffExecution backOffExecution, Throwable ex) {<NEW_LINE>getRequiredSubscriber().closeConnection();<NEW_LINE>if (ex instanceof RedisConnectionFailureException && isRunning()) {<NEW_LINE>BackOffExecution loggingBackOffExecution = () -> {<NEW_L...
, ex, recoveryInterval), ex);
833,662
protected void onLayout(boolean changed, int l, int t, int r, int b) {<NEW_LINE>int childCount = getChildCount();<NEW_LINE>for (int i = 0; i < childCount; i++) {<NEW_LINE>View child = getChildAt(i);<NEW_LINE>if (child.getVisibility() == GONE) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (child instanceof BlockGroup) {<N...
bg.getFirstBlockPosition(), mTemp);
511,980
/*<NEW_LINE>* Resolve @param tags while method scope<NEW_LINE>*/<NEW_LINE>private void resolveParamTags(MethodScope scope, boolean reportMissing, boolean considerParamRefAsUsage) {<NEW_LINE>AbstractMethodDeclaration methodDecl = scope.referenceMethod();<NEW_LINE>int paramTagsSize = this.paramReferences == null ? 0 : th...
sourceEnd, methodDecl.binding.modifiers);
1,451,443
public Image _getIcon(int iconType, String iconURL) {<NEW_LINE>Image icon = null;<NEW_LINE>try {<NEW_LINE>icon = ImageUtilities.loadImage(iconURL);<NEW_LINE>} catch (Exception ex) {<NEW_LINE>Logger.getLogger(getClass().getName()).log(<MASK><NEW_LINE>}<NEW_LINE>if (null == icon) {<NEW_LINE>try {<NEW_LINE>// the URL may ...
Level.INFO, null, ex);
1,041,987
public boolean onContextItemSelected(MenuItem item) {<NEW_LINE>if (selectedUrl == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final int itemId = item.getItemId();<NEW_LINE>if (itemId == R.id.open_in_browser_item) {<NEW_LINE>IntentUtils.openInBrowser(getContext(), selectedUrl);<NEW_LINE>} else if (itemId == R.id....
).getSystemService(Context.CLIPBOARD_SERVICE);
639,978
protected void consumeCaseLabel() {<NEW_LINE>// // SwitchLabel ::= 'case' ConstantExpression ':'<NEW_LINE>// this.expressionLengthPtr--;<NEW_LINE>// Expression expression = this.expressionStack[this.expressionPtr--];<NEW_LINE>// CaseStatement caseStatement = new CaseStatement(expression, expression.sourceEnd, this.intS...
problemReporter().multiConstantCaseLabelsNotSupported(caseStatement);
398,572
public void exitRmsc_community_list(Rmsc_community_listContext ctx) {<NEW_LINE>List<String> names = ctx.names.stream().map(AristaControlPlaneExtractor::toString).<MASK><NEW_LINE>if (ctx.DELETE() != null) {<NEW_LINE>extractSetCommunityListDelete(ctx, names);<NEW_LINE>} else if (ctx.ADDITIVE() != null) {<NEW_LINE>extract...
collect(ImmutableList.toImmutableList());
182,205
static LithoNode render(final LayoutStateContext layoutStateContext, final ComponentContext c, final Component component, @Nullable final String globalKeyToReuse, final int widthSpec, final int heightSpec, @Nullable final LithoNode current, @Nullable final PerfEvent layoutStatePerfEvent) {<NEW_LINE>if (layoutStatePerfE...
= current == null ? EVENT_END_CREATE_LAYOUT : EVENT_END_RECONCILE;
890,247
public void select(int imageWidth, int imageHeight, @Nullable FastAccess<Point> prior, FastAccess<Point> detected, int limit, FastArray<Point> selected) {<NEW_LINE>BoofMiscOps.checkTrue(limit > 0);<NEW_LINE>selected.reset();<NEW_LINE>// the limit is more than the total number of features. Return them all!<NEW_LINE>if (...
initialize(targetCellSize, imageWidth, imageHeight);
1,546,120
private void init(Class<?> jaxRsClass, ThreadLocalizedContext tlContext, boolean lcEnc) throws IllegalPathParamTypeException {<NEW_LINE>do {<NEW_LINE>for (final Field field : jaxRsClass.getDeclaredFields()) {<NEW_LINE>if (field.isAnnotationPresent(PathParam.class)) {<NEW_LINE>add(field, newPathParamGetter(field, tlCont...
(method, tlContext, lcEnc));
867,734
public void deleteTopics(final List<String> topicsToDelete) {<NEW_LINE>if (!isDeleteTopicEnabled) {<NEW_LINE>log.info("Cannot delete topics since 'delete.topic.enable' is false. ");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final DeleteTopicsResult deleteTopicsResult = adminClient.deleteTopics(topicsToDelete);<NEW_LINE>fina...
Collectors.joining(",")));
1,476,492
private void cleanModuleFolder(Context context) {<NEW_LINE>if (ModulesStatus.getInstance().getDnsCryptState() != STOPPED) {<NEW_LINE>Toast.makeText(context, R.string.btnDNSCryptStop, Toast.LENGTH_SHORT).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>cachedExecutor.submit(() -> {<NEW_LINE>boolean successfully1 = !FileMana...
context, appDataDir + "/app_data/dnscrypt-proxy", "public-resolvers.md");
337,384
private void install(NpmPackage npmPackage, PackageInstallationSpec theInstallationSpec, PackageInstallOutcomeJson theOutcome) throws ImplementationGuideInstallationException {<NEW_LINE>String name = npmPackage.getNpm().get("name").getAsString();<NEW_LINE>String version = npmPackage.getNpm().get("version").getAsString(...
, version, e), e);
176,918
public RecyclerView.ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {<NEW_LINE>LayoutInflater inflater = UiUtilities.getInflater(app, nightMode);<NEW_LINE>AdapterItemType type = <MASK><NEW_LINE>View view;<NEW_LINE>switch(type) {<NEW_LINE>case DESCRIPTION:<NEW_LINE>view = inflater.inflate(R.layout...
AdapterItemType.values()[viewType];
532,037
protected void encodeScript(FacesContext context, PickList pickList) throws IOException {<NEW_LINE>WidgetBuilder wb = getWidgetBuilder(context);<NEW_LINE>wb.init("PickList", pickList).attr("effect", pickList.getEffect()).attr("effectSpeed", pickList.getEffectSpeed()).attr("escape", pickList.isEscape()).attr("showSource...
pickList.isTransferOnCheckboxClick(), false);
734,494
protected void doInit() {<NEW_LINE>super.doInit();<NEW_LINE>myResourceTreeModel.updateResources();<NEW_LINE>getTable().getModel().addTableModelListener(new ModelListener());<NEW_LINE>getVerticalScrollBar().addAdjustmentListener(vscrollController.get());<NEW_LINE>getTableHeader().addMouseListener(new MouseAdapter() {<NE...
getHumanResourceManager().getResources());
782,133
private MultiValuesMap<VirtualFile, Artifact> computeFileToArtifactsMap() {<NEW_LINE>final MultiValuesMap<VirtualFile, Artifact> result = new MultiValuesMap<VirtualFile, Artifact>();<NEW_LINE>for (final Artifact artifact : myArtifactManager.getArtifacts()) {<NEW_LINE>final <MASK><NEW_LINE>ArtifactUtil.processPackagingE...
PackagingElementResolvingContext context = myArtifactManager.getResolvingContext();
70,620
private void init() {<NEW_LINE>if (gridField != null) {<NEW_LINE>getComponent().setTooltiptext(gridField.getDescription());<NEW_LINE>int displayLength = gridField.getDisplayLength();<NEW_LINE>if (displayLength > MAX_DISPLAY_LENGTH)<NEW_LINE>displayLength = MAX_DISPLAY_LENGTH;<NEW_LINE>else if (displayLength <= 0 || dis...
setContext(popupMenu.getId());
438,470
public void swapDirectory(final File directory) {<NEW_LINE>localFileListFragmentInterface.setLoading(true);<NEW_LINE>final Handler uiHandler = new Handler(Looper.getMainLooper());<NEW_LINE>Executors.newSingleThreadExecutor().execute(() -> {<NEW_LINE>List<File> fileList;<NEW_LINE>if (directory == null) {<NEW_LINE>fileLi...
final List<File> newFiles = fileList;
550,138
private void forcePrint(String text, Object... params) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>for (int i = 0; i < indent; i++) sb.append(" ");<NEW_LINE>sb.append(text);<NEW_LINE>Object[] t;<NEW_LINE>if (printClassNames && params.length > 0) {<NEW_LINE>sb.append(" [");<NEW_LINE>for (int i = 0; i < ...
[i] = params[i];
1,560,490
private void updatePorts(Instance instance) {<NEW_LINE>final var nrBits = instance.getAttributeValue(StdAttr.WIDTH).getWidth();<NEW_LINE>var nrOfPorts = nrBits;<NEW_LINE>final var dir = instance.getAttributeValue(PioAttributes.PIO_DIRECTION);<NEW_LINE>final var hasIrq = hasIrqPin(instance.getAttributeSet());<NEW_LINE>i...
(S.getter("SocPioIrqOutput"));
23,882
public static GetRefPackageJobResponse unmarshall(GetRefPackageJobResponse getRefPackageJobResponse, UnmarshallerContext _ctx) {<NEW_LINE>getRefPackageJobResponse.setRequestId(_ctx.stringValue("GetRefPackageJobResponse.RequestId"));<NEW_LINE>getRefPackageJobResponse.setPageIndex(_ctx.integerValue("GetRefPackageJobRespo...
(_ctx.integerValue("GetRefPackageJobResponse.TotalPage"));
1,117,259
public List<DataFetcherResult<MLModel>> batchLoad(final List<String> urns, final QueryContext context) throws Exception {<NEW_LINE>final List<Urn> mlModelUrns = urns.stream().map(UrnUtils::getUrn).collect(Collectors.toList());<NEW_LINE>try {<NEW_LINE>final Map<Urn, EntityResponse> mlModelMap = _entityClient.batchGetV2(...
null, context.getAuthentication());
711,789
private static void transform(CFGModel model, Map<String, Object> bindings, ModelChecker.Witness witness, Set<StateElementPair> done) {<NEW_LINE>if (witness.binding instanceof List<?>) {<NEW_LINE>// we're at at a leaf of the witness trees<NEW_LINE>// The witness binding is a list of operations, apply them<NEW_LINE>List...
BranchKind kind = node.getKind();
985,329
public String search(@RequestParam(value = "identifier") String email, Model m, Authentication auth, HttpServletRequest req) {<NEW_LINE>// check locally first<NEW_LINE>UserInfo localUser = userInfoService.getByEmailAddress(email);<NEW_LINE>if (localUser != null) {<NEW_LINE>Map<String, Object> e = new HashMap<>();<NEW_L...
(config.getIssuer()));
1,432,520
public ListBackendEnvironmentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListBackendEnvironmentsResult listBackendEnvironmentsResult = new ListBackendEnvironmentsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
JsonToken token = context.getCurrentToken();
487,210
private double[] determineMinMaxDistance(Relation<ParameterizationFunction> relation, int dimensionality) {<NEW_LINE>double[] min = new double[dimensionality - 1];<NEW_LINE>double[] max = new double[dimensionality - 1];<NEW_LINE>Arrays.fill(max, Math.PI);<NEW_LINE>HyperBoundingBox box = new HyperBoundingBox(min, max);<...
.POSITIVE_INFINITY, d_max = Double.NEGATIVE_INFINITY;
633,581
public static ListSensitiveColumnsDetailResponse unmarshall(ListSensitiveColumnsDetailResponse listSensitiveColumnsDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>listSensitiveColumnsDetailResponse.setRequestId(_ctx.stringValue("ListSensitiveColumnsDetailResponse.RequestId"));<NEW_LINE>listSensitiveColumnsDetailRe...
("ListSensitiveColumnsDetailResponse.SensitiveColumnsDetailList[" + i + "].EnvType"));
98,724
private boolean isSqlServerTableSequenceAvailable(String incrementerName) {<NEW_LINE>boolean result = false;<NEW_LINE>DatabaseMetaData metaData;<NEW_LINE>Connection connection = null;<NEW_LINE>try {<NEW_LINE>connection = this.incrementerDataSource.getConnection();<NEW_LINE>metaData = connection.getMetaData();<NEW_LINE>...
null, null, "%", types);
1,379,146
private IT createInitialTransform() {<NEW_LINE>float scale = 0.8f;<NEW_LINE>IT fitModel = createFitModelStructure();<NEW_LINE>if (fitModel instanceof Affine2D_F64) {<NEW_LINE>Affine2D_F64 H = new Affine2D_F64(scale, 0, 0, scale, stitchWidth / 4, stitchHeight / 4);<NEW_LINE>return (IT) H.invert(null);<NEW_LINE>} else if...
IT) H.invert(null);
296,685
private DefaultArtifactSources processJarPluginExecutionConfig(Object config, boolean test) {<NEW_LINE>if (config == null || !(config instanceof Xpp3Dom)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Xpp3Dom dom = (Xpp3Dom) config;<NEW_LINE>final List<String> includes = collectChildValues(dom.getChild("includes"));<NEW_...
DefaultArtifactSources(classifier, sources, resources);
159,846
public static DynamicConfigAddReplicatedMapConfigCodec.RequestParameters decodeRequest(ClientMessage clientMessage) {<NEW_LINE>ClientMessage.ForwardFrameIterator iterator = clientMessage.frameIterator();<NEW_LINE>RequestParameters request = new RequestParameters();<NEW_LINE>ClientMessage.Frame initialFrame = iterator.n...
mergePolicy = StringCodec.decode(iterator);
438,015
public static Boolean monitor_nodes(EHandle caller, boolean on, ESeq opts_list) {<NEW_LINE>boolean all = false, visible = false, hidden = false;<NEW_LINE>int opts = 0;<NEW_LINE>for (; !opts_list.isNil(); opts_list = opts_list.tail()) {<NEW_LINE>EObject opt = opts_list.head();<NEW_LINE>ETuple2 tp;<NEW_LINE>if (opt == am...
(caller, on, opts));
1,146,816
protected void flushToNode(ContainerUnloader container, NodeDraft nodeDraft, Node node) {<NEW_LINE>if (nodeDraft.getColor() != null) {<NEW_LINE>node.<MASK><NEW_LINE>}<NEW_LINE>if (nodeDraft.getLabel() != null) {<NEW_LINE>if (node.getLabel() == null || !nodeDraft.isCreatedAuto()) {<NEW_LINE>node.setLabel(nodeDraft.getLa...
setColor(nodeDraft.getColor());
1,143,667
protected void compareCandidatesBest(Record record, Collection<Record> candidates) {<NEW_LINE>double max = 0.0;<NEW_LINE>Record best = null;<NEW_LINE>// go through all candidates, and find the best<NEW_LINE>for (Record candidate : candidates) {<NEW_LINE>if (isSameAs(record, candidate))<NEW_LINE>continue;<NEW_LINE>doubl...
prob = compare(record, candidate);
702,135
public Pack threadList(Pack param) {<NEW_LINE>MapPack mpack = ThreadUtil.getThreadList();<NEW_LINE>ListValue ids = mpack.getList("id");<NEW_LINE>ListValue txid = mpack.newList("txid");<NEW_LINE>ListValue elapsed = mpack.newList("elapsed");<NEW_LINE>ListValue service = mpack.newList("service");<NEW_LINE>for (int i = 0; ...
(ids.get(i));
71,733
final BundleInstanceResult executeBundleInstance(BundleInstanceRequest bundleInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(bundleInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,031,072
private Boolean isSlaMissed(final ExecutableFlow flow) {<NEW_LINE>final SlaType type = slaOption.getType();<NEW_LINE>logger.info("SLA type for flow " + flow.<MASK><NEW_LINE>if (flow.getStartTime() < 0) {<NEW_LINE>logger.info("Start time is less than 0 for flow " + flow.getId());<NEW_LINE>return false;<NEW_LINE>}<NEW_LI...
getId() + " is " + type);
147,966
public void onDrawOver(@NonNull Canvas c, @NonNull RecyclerView parent, @NonNull RecyclerView.State state) {<NEW_LINE>super.onDrawOver(c, parent, state);<NEW_LINE>final int childCount = parent.getChildCount();<NEW_LINE>for (int i = 0; i < childCount; i++) {<NEW_LINE>final View child = parent.getChildAt(i);<NEW_LINE>int...
), childRight, childBottom, mDividerPaint);
231,665
private static void createRocksDB(RocksDBReference reference, RocksDBConfig dbConfig) {<NEW_LINE>try {<NEW_LINE>List<ColumnFamilyHandle> columnFamilyHandleList = new ArrayList<>();<NEW_LINE>RocksDB db = RocksDB.open(reference.getDbOptions(), dbConfig.filePath(), reference.getColumnFamilyDescriptors(), columnFamilyHandl...
throw new NitriteIOException("failed to open database", e);
1,807,161
public static byte[] convertDate4(Date v) {<NEW_LINE>ByteArrayOutputStream bb = new ByteArrayOutputStream(4 + 1);<NEW_LINE>LittleEndianDataOutputStream out = new LittleEndianDataOutputStream(bb);<NEW_LINE>try {<NEW_LINE>if (v instanceof OriginalDate) {<NEW_LINE>MysqlDateTime t = MySQLTimeTypeUtil.toMysqlDate(v);<NEW_LI...
int) t.getDay());
647,019
public ListApprovedOriginsResult listApprovedOrigins(ListApprovedOriginsRequest listApprovedOriginsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listApprovedOriginsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont...
new JsonResponseHandler<ListApprovedOriginsResult>(unmarshaller);
266,690
private String uploadFile(String sourceFile, String destinationUrl) throws IOException, URISyntaxException {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_DEBUG, "Start"));<NEW_LINE>String result = ERROR;<NEW_LINE>httpClient = createHttpsClient();<NEW_LINE>HttpParams params = httpClient.getParams();<NEW_LINE>...
File sourceFileObject = new File(sourceFile);
857,806
private void parseAndWrite(ConsumerRecord<?, ?> record, byte[] recordArray) {<NEW_LINE>stream.setValue(new ByteArrayInputStream(recordArray));<NEW_LINE>if (kafkaJsonLoader == null) {<NEW_LINE>JsonLoaderOptions jsonLoaderOptions = new JsonLoaderOptions();<NEW_LINE>jsonLoaderOptions.allTextMode = readOptions.isAllTextMod...
KAFKA_OFFSET, record.offset());
1,013,778
public void processOpts() {<NEW_LINE>super.processOpts();<NEW_LINE>// use default library if unset<NEW_LINE>if (StringUtils.isEmpty(library)) {<NEW_LINE>setLibrary(DEFAULT_MSF4J_LIBRARY);<NEW_LINE>}<NEW_LINE>if (additionalProperties.containsKey(CodegenConstants.IMPL_FOLDER)) {<NEW_LINE>implFolder = (String) additionalP...
".", "/"), "JodaLocalDateProvider.java"));
565,310
private static void buildNewBoundForSplitHashOrKey(int partColCnt, int actualPartColCnt, PartitionStrategy strategy, SqlPartition sqlPartition, SingleValuePartitionBoundSpec newBound) {<NEW_LINE><MASK><NEW_LINE>SearchDatumInfo newBndValDatum;<NEW_LINE>if (partColCnt <= 1) {<NEW_LINE>SqlPartitionValueItem oneValItem = p...
SqlPartitionValue partVals = sqlPartition.getValues();
1,268,845
private TreeItem<Object> findOrCreateTreeItem(final TreeItem<Object> parent, final Object value) {<NEW_LINE>ObservableList<TreeItem<Object>> children = parent.getChildren();<NEW_LINE>TreeItem<Object> found = null;<NEW_LINE>int placeToInsert = 0;<NEW_LINE>boolean foundInsertPos = false;<NEW_LINE>for (TreeItem<Object> ch...
compareTo(value.toString());
763,565
private // d472972 - rewrote entire method to pass CTS.<NEW_LINE>EJBInterceptorBinding validateAndMergeStyle2Bindings(EJBInterceptorBinding binding1, EJBInterceptorBinding binding2) throws EJBConfigurationException {<NEW_LINE>// Add binding 2 interceptor-class list, unless it is empty.<NEW_LINE>ArrayList<String> interc...
binding1.ivEjbName, interceptorNames, interceptorOrder);
322,873
protected void handleTagNMethod(Tag tag) {<NEW_LINE>Map<String, String> tagAttributes = tag.getAttributes();<NEW_LINE>String attrCompiler = tagAttributes.get(ATTR_COMPILER);<NEW_LINE>renameCompilationCompletedTimestamp(tag);<NEW_LINE>if (attrCompiler != null && attrCompiler.length() > 0) {<NEW_LINE>if (C1.equalsIgnoreC...
handleMethodLine(tag, EventType.NMETHOD_C2N);
1,229,918
default String defaultToString() {<NEW_LINE>if (equals(Constants.DOT)) {<NEW_LINE>return ".";<NEW_LINE>}<NEW_LINE>if (equals(Constants.LINE_TERMINATOR)) {<NEW_LINE>return "[\\r\\n\\u2028\\u2029]";<NEW_LINE>}<NEW_LINE>if (equals(Constants.DIGITS)) {<NEW_LINE>return "\\d";<NEW_LINE>}<NEW_LINE>if (equals(Constants.NON_DIG...
return "[" + rangesToString() + "]";
52,284
public void prepare() throws IOException {<NEW_LINE>for (StringItem s : this) {<NEW_LINE>if (s.data.length() > 0x7FFF) {<NEW_LINE>useUTF8 = false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>ByteArrayOutputStream baos = new ByteArrayOutputStream();<NEW_LINE>int i = 0;<NEW_LINE>int offset = 0;<NEW_LINE>baos.reset();<NEW_LINE>Map<Str...
int length = stringData.length();
1,479,448
public static void logAddRoute(Logger log, Route route) {<NEW_LINE>String method = StringKit.padRight(route.getHttpMethod().name(), 6);<NEW_LINE>switch(route.getHttpMethod()) {<NEW_LINE>case ALL:<NEW_LINE>method = Ansi.BgBlack.and(Ansi.White).format(" %s ", method);<NEW_LINE>break;<NEW_LINE>case GET:<NEW_LINE>method = ...
).format(" %s ", method);
889,509
public static GetSipAgentGroupInfoResponse unmarshall(GetSipAgentGroupInfoResponse getSipAgentGroupInfoResponse, UnmarshallerContext context) {<NEW_LINE>getSipAgentGroupInfoResponse.setRequestId(context.stringValue("GetSipAgentGroupInfoResponse.RequestId"));<NEW_LINE>getSipAgentGroupInfoResponse.setSuccess(context.bool...
("GetSipAgentGroupInfoResponse.SipAgents[" + i + "].Id"));
202,042
public static void processAllEntryProbeExtensions(Event event, RequestContext requestContext) {<NEW_LINE>if (event == requestContext.getRootEvent()) {<NEW_LINE>// Add the request to Active Request list<NEW_LINE>requestContext.setRequestContextIndex(activeRequests.add(requestContext));<NEW_LINE>}<NEW_LINE>List<ProbeExte...
probeExtension.processEntryEvent(event, requestContext);
191,840
public static String injectAfterAnnotation(Message extend, Message by, String extendProto, String byContent) {<NEW_LINE>// Insert after annotated message<NEW_LINE>Pattern messageRegexp = Pattern.compile("[\\n\\r]?([ \\t]*)(message\\s+" + extend.getName() + "\\s+\\{)", Pattern.MULTILINE);<NEW_LINE>int messageIndex = -1,...
matcher = messageRegexp.matcher(extendProto);
187,699
public void init(SortedKeyValueIterator<Key, Value> source, Map<String, String> options, IteratorEnvironment env) throws IOException {<NEW_LINE>super.init(source, options, env);<NEW_LINE>combineAllColumns = false;<NEW_LINE>if (options.containsKey(ALL_OPTION)) {<NEW_LINE>combineAllColumns = Boolean.parseBoolean<MASK><NE...
(options.get(ALL_OPTION));
1,249,857
final PutMetricDataResult executePutMetricData(PutMetricDataRequest putMetricDataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putMetricDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
(super.beforeMarshalling(putMetricDataRequest));