idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,058,976
public static Operation.Error blockUntilComplete(Compute compute, Operation operation, long timeout) throws Exception {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>final long pollInterval = 5 * 1000;<NEW_LINE>// null for global/regional operations<NEW_LINE>String zone = getLastWordFromUrl(operation.getZo...
= System.currentTimeMillis() - start;
686,657
private void doPushPublish(final Map<String, String> pushPublishData, final List<String> identifiers, final User user) throws DotDataException, ParseException, DotPublisherException {<NEW_LINE>final String contentPushPublishDate = pushPublishData.get(Contentlet.WORKFLOW_PUBLISH_DATE);<NEW_LINE>final String contentPushP...
pushPublishData.get(Contentlet.WORKFLOW_NEVER_EXPIRE);
81,155
public static Editor findEditor(@Nonnull PsiElement element) {<NEW_LINE>if (!UIAccess.isUIThread()) {<NEW_LINE>LOG.warn("Invoke findEditor() from EDT only. Otherwise, it causes deadlocks.");<NEW_LINE>}<NEW_LINE>PsiFile psiFile = element.getContainingFile();<NEW_LINE>VirtualFile virtualFile = PsiUtilCore.getVirtualFile(...
).getData(CommonDataKeys.EDITOR);
1,182,296
private // / m2e cruft... copied from hither and tither.<NEW_LINE>ILaunchConfiguration createLaunchConfiguration(IContainer basedir, String goal) {<NEW_LINE>try {<NEW_LINE>ILaunchManager launchManager = DebugPlugin.getDefault().getLaunchManager();<NEW_LINE>ILaunchConfigurationType launchConfigurationType = launchManage...
launchConfigurationType.newInstance(null, safeConfigName);
1,808,173
public static NetworkStatus fromGrid(IGrid grid) {<NEW_LINE>IEnergyService eg = grid.getEnergyService();<NEW_LINE>NetworkStatus status = new NetworkStatus();<NEW_LINE>status.averagePowerInjection = eg.getAvgPowerInjection();<NEW_LINE>status.averagePowerUsage = eg.getAvgPowerUsage();<NEW_LINE>status<MASK><NEW_LINE>statu...
.storedPower = eg.getStoredPower();
1,424,175
public static void main(String[] args) {<NEW_LINE>Stack<Integer> stack = new Stack<>();<NEW_LINE>stack.push(34);<NEW_LINE>stack.push(45);<NEW_LINE>stack.push(2);<NEW_LINE>stack.push(9);<NEW_LINE>stack.push(18);<NEW_LINE>System.out.println(stack.pop());<NEW_LINE>System.out.println(stack.pop());<NEW_LINE>System.out.print...
println(queue.remove());
671,736
final CreateFunctionResult executeCreateFunction(CreateFunctionRequest createFunctionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createFunctionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,286,681
private ExitStatus processExactMatch(CommandProcess process, RowAffect affect, Instrumentation inst, Set<Class<?>> matchedClasses) {<NEW_LINE>Matcher<String> fieldNameMatcher = fieldNameMatcher();<NEW_LINE>Class<?> clazz = matchedClasses.iterator().next();<NEW_LINE>boolean found = false;<NEW_LINE>for (Field field : cla...
(value).get(express);
368,454
private int compareNextToPosition(LayoutInterval newInterval, int newDistance, PositionDef bestSoFar) {<NEW_LINE>if (!bestSoFar.isSet())<NEW_LINE>// best not set yet<NEW_LINE>return 1;<NEW_LINE><MASK><NEW_LINE>LayoutRegion oldSpace = bestSoFar.interval.getCurrentSpace();<NEW_LINE>int oldDistance = Math.abs(bestSoFar.di...
LayoutRegion newSpace = newInterval.getCurrentSpace();
676,072
public TorrentManager addTorrent(TorrentMetadataProvider metadataProvider, PieceStorage pieceStorage, List<TorrentListener> listeners) throws IOException {<NEW_LINE>TorrentMetadata torrentMetadata = metadataProvider.getTorrentMetadata();<NEW_LINE>EventDispatcher eventDispatcher = new EventDispatcher();<NEW_LINE>for (To...
isFinished() ? COMPLETED : STARTED);
304,195
final GetCSVHeaderResult executeGetCSVHeader(GetCSVHeaderRequest getCSVHeaderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCSVHeaderRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,657,352
public static Map<GroupKey, List<Result>> runFileSearch(String userName, List<AbstractFilter> filters, AttributeType groupAttributeType, Group.GroupSortingAlgorithm groupSortingType, ResultsSorter.SortingMethod fileSortingMethod, SleuthkitCase caseDb, CentralRepository centralRepoDb, SearchContext context) throws Disco...
filters, caseDb, centralRepoDb, context);
1,129,393
public void messageArrived(String topic, MqttMessage message) {<NEW_LINE>byte[] payload = message.getPayload();<NEW_LINE>logger.trace("Received message on topic '{}' : {}", topic, new String(payload));<NEW_LINE>List<MqttMessageSubscriber> matches = new ArrayList<>();<NEW_LINE>synchronized (subscribers) {<NEW_LINE>subsc...
"No topic match for '{}' using regex {}", topic, subscriberList.regexMatchTopic);
1,495,807
public void init(ProcessingEnvironment procEnv) {<NEW_LINE>super.init(procEnv);<NEW_LINE>if (System.getProperty("lombok.disable") != null) {<NEW_LINE>lombokDisabled = true;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.processingEnv = procEnv;<NEW_LINE>this.javacProcessingEnv = getJavacProcessingEnvironment(procEnv);<NEW_L...
long[p.size()];
555,068
private Set<File> walkDirectory(Path directory) {<NEW_LINE>final Set<File> walkedFiles = new LinkedHashSet<File>();<NEW_LINE>try {<NEW_LINE>registerWatch(directory);<NEW_LINE>Files.walkFileTree(directory, new SimpleFileVisitor<Path>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public FileVisitResult preVisitDirectory(Path...
directory.toString(), e);
886,943
final StartImportFileTaskResult executeStartImportFileTask(StartImportFileTaskRequest startImportFileTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startImportFileTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,833,850
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UntagResourceRequest> request = null;<NE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,627,071
private Map<NetworkServiceDnsBackend, List<DnsStruct>> workoutDns(VmInstanceSpec spec) {<NEW_LINE>Map<NetworkServiceDnsBackend, List<DnsStruct>> map = new HashMap<NetworkServiceDnsBackend, List<DnsStruct>>();<NEW_LINE>Map<NetworkServiceProviderType, List<L3NetworkInventory>> providerMap = getNetworkServiceProviderMap(N...
= new ArrayList<DnsStruct>();
381,473
private void showMenu(@NonNull View view, @NonNull SuggestionItem item) {<NEW_LINE>if (mSelectionMenu == null) {<NEW_LINE>mSelectionMenu = new SelectionActionWidget(getContext());<NEW_LINE>mSelectionMenu.mWidgetPlacement.parentHandle = getHandle();<NEW_LINE>mSelectionMenu.setActions(Collections.singleton(GeckoSession.S...
ratio, offsetViewBounds.bottom * ratio);
965,621
public static ItemStack fillItem(Level world, int requiredAmount, ItemStack stack, FluidStack availableFluid) {<NEW_LINE>FluidStack toFill = availableFluid.copy();<NEW_LINE>toFill.setAmount(requiredAmount);<NEW_LINE>availableFluid.shrink(requiredAmount);<NEW_LINE>if (stack.getItem() == Items.GLASS_BOTTLE && canFillGlas...
PotionFluidHandler.fillBottle(stack, toFill);
984,357
protected String buildServerOnclick(FacesContext facesContext, UIComponent component, String clientId, FormInfo formInfo, List<UIParameter> validParams) throws IOException {<NEW_LINE>UIComponent nestingForm = formInfo.getForm();<NEW_LINE>String formName = formInfo.getFormName();<NEW_LINE>StringBuilder onClick = new Str...
(component.getClientId(facesContext));
14,627
private void walkJNIRefs(WalkState walkState, UDATAPointer currentRef, int refCount) throws CorruptDataException {<NEW_LINE>swPrintf(walkState, 4, "\tJNI local ref pushes starting at {0} for {1} slots", currentRef.getHexAddress(), refCount);<NEW_LINE>walkState.slotType = (int) J9_STACKWALK_SLOT_TYPE_JNI_LOCAL;<NEW_LINE...
.cast(currentRef), "Indir-Lcl-JNI-Ref");
276,124
private void addColumns(ShowHideColumnHelper support) {<NEW_LINE>Column column = new Column(Messages.ColumnName, SWT.None, 250);<NEW_LINE>column.setLabelProvider(new ColumnLabelProvider() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getText(Object element) {<NEW_LINE>return ((AttributeType) element).getName();...
(this).attachTo(column);
1,239,265
public static InterleavedF64 gaussian(InterleavedF64 input, @Nullable InterleavedF64 output, double sigmaX, int radiusX, double sigmaY, int radiusY, @Nullable InterleavedF64 storage) {<NEW_LINE>output = InputSanityCheck.declareOrReshape(input, output);<NEW_LINE>storage = InputSanityCheck.declareOrReshape(input, storage...
Kernel1D_F64.class, sigmaY, radiusY);
206,141
public static void main(String[] args) throws ExecutionException, InterruptedException {<NEW_LINE>Debug.dumpf("java version: %s"<MASK><NEW_LINE>Debug.dumpf("jvm max mem: %d", Runtime.getRuntime().maxMemory());<NEW_LINE>Future<Boolean> headless = new ParamExecutor(args).run();<NEW_LINE>if (headless != null && headless....
, System.getProperty("java.version"));
1,556,510
private void initHistograms() {<NEW_LINE>for (ProfilerTask task : ProfilerTask.values()) {<NEW_LINE>if (task.isVfs()) {<NEW_LINE>Map<String, ? extends Predicate<? super String>> vfsHeuristics = VfsHeuristics.vfsTypeHeuristics;<NEW_LINE>List<RecorderAndPredicate> recorders = new ArrayList<>(vfsHeuristics.size());<NEW_LI...
= new SingleStatRecorder(task, HISTOGRAM_BUCKETS);
1,781,831
private void captureTablesPK(Database db, HashMap<String, Table> tables) throws SQLException {<NEW_LINE>pkPreparedStatement.setString(1, db.getName());<NEW_LINE>HashMap<String, ArrayList<String>> tablePKMap = new HashMap<>();<NEW_LINE>try (ResultSet rs = pkPreparedStatement.executeQuery()) {<NEW_LINE>for (String tableN...
columnName = rs.getString("COLUMN_NAME");
719,956
public Map<String, Object> updateNode(String userName, AbstractAppConnNode node) throws ExternalOperationFailedException {<NEW_LINE>NodeInfo nodeInfo = nodeInfoMapper.<MASK><NEW_LINE>AppConn appConn = AppConnManager.getAppConnManager().getAppConn(nodeInfo.getAppConnName());<NEW_LINE>DevelopmentIntegrationStandard devel...
getWorkflowNodeByType(node.getNodeType());
143,830
public void marshall(AudioDescription audioDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (audioDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(audioDescription.getAudioChannelTagg...
audioDescription.getRemixSettings(), REMIXSETTINGS_BINDING);
993,439
public EventLogEntryEntity generateEventLogEntry(CommandContext commandContext) {<NEW_LINE>ActivitiMessageEvent messageEvent = (ActivitiMessageEvent) event;<NEW_LINE>Map<String, Object> data = new HashMap<String, Object>();<NEW_LINE>putInMapIfNotNull(data, Fields.ACTIVITY_ID, messageEvent.getActivityId());<NEW_LINE>put...
ACTIVITY_NAME, messageEvent.getActivityName());
463,387
public void onResponse(final Call call, final Response response) throws IOException {<NEW_LINE>final String res = Objects.requireNonNull(response.body()).string();<NEW_LINE>handler.post(() -> {<NEW_LINE>try {<NEW_LINE>JSONArray routeArray = new JSONArray(res);<NEW_LINE>for (int i = 0; i < routeArray.length(); i++) {<NE...
animationView.setVisibility(View.GONE);
1,009,798
public static QueryDeviceBySQLResponse unmarshall(QueryDeviceBySQLResponse queryDeviceBySQLResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDeviceBySQLResponse.setRequestId(_ctx.stringValue("QueryDeviceBySQLResponse.RequestId"));<NEW_LINE>queryDeviceBySQLResponse.setSuccess(_ctx.booleanValue("QueryDeviceBySQLRespons...
+ "].Groups[" + j + "].GroupId"));
1,576,316
private void runAssertionInRange(RegressionEnvironment env, String epl, boolean not, AtomicInteger milestone) {<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportBean_S0(10));<NEW_LINE>env.sendEventBean(new SupportBean_S1(200));<NEW_LINE>env.milestoneInc(milestone);<NEW_LINE>env.a...
, 101, 101, !not);
1,003,181
public static void main(String[] args) throws XGBoostError {<NEW_LINE>// this is the only difference, add a # followed by a cache prefix name<NEW_LINE>// several cache file with the prefix will be generated<NEW_LINE>// currently only support convert from libsvm file<NEW_LINE>DMatrix trainMat = new DMatrix("../../demo/d...
params.put("eta", 1.0);
266,895
private static int floatToInt(final float value) {<NEW_LINE>if (Float.isNaN(value)) {<NEW_LINE>return FLOAT_NAN;<NEW_LINE>} else if (value == Float.POSITIVE_INFINITY) {<NEW_LINE>return FLOAT_POSITIVE_INFINITY;<NEW_LINE>} else if (value == Float.NEGATIVE_INFINITY) {<NEW_LINE>return FLOAT_NEGATIVE_INFINITY;<NEW_LINE>}<NE...
Math.round(sign * mantissa);
613,001
protected void addColumnInternal(Column<E> column, int index) {<NEW_LINE>checkNotNullArgument(column, "Column must be non null");<NEW_LINE>Object columnId = column.getId();<NEW_LINE>component.addContainerProperty(columnId, column.getType(), null);<NEW_LINE>if (StringUtils.isNotBlank(column.getDescription())) {<NEW_LINE...
MetaPropertyPath propertyPath = column.getBoundProperty();
155,436
private void sort(char[] arr) {<NEW_LINE>int n = arr.length;<NEW_LINE>// The output character array that will have sorted arr<NEW_LINE>char[] output = new char[n];<NEW_LINE>// Create a count array to store count of inidividul<NEW_LINE>// characters and initialize count array as 0<NEW_LINE>int[] count = new int[256];<NE...
: arr) ++count[anArr1];
1,372,917
private static void initializePinotMetricsFactory(PinotConfiguration metricsConfiguration) {<NEW_LINE>Set<Class<?>> classes = getPinotMetricsFactoryClasses();<NEW_LINE>if (classes.size() > 1) {<NEW_LINE>LOGGER.warn("More than one PinotMetricsFactory was found: {}", classes);<NEW_LINE>}<NEW_LINE>String metricsFactoryCla...
(metricsFactoryClassName)).findFirst();
1,575,762
public void initParam(Object obj) {<NEW_LINE>long size = Runtime.getRuntime().totalMemory();<NEW_LINE>// initParam happens before display of the panel so the values are appropriately set when<NEW_LINE>// viewed<NEW_LINE>updateMemoryLabel(getSizeMemoryLabel(), "jvm.options.memory.size", size);<NEW_LINE>updateMemoryLabel...
readAllLines(JVM_PROPERTIES_FILE, StandardCharsets.UTF_8);
793,898
public static FilesystemViewerData.Options prepareFsViewerOpts(Context context, boolean doSelectFolder, FilesystemViewerData.SelectionListener listener) {<NEW_LINE>FilesystemViewerData.Options opts = new FilesystemViewerData.Options();<NEW_LINE>ContextUtils cu = new ContextUtils(context);<NEW_LINE>ShareUtil shareUtil =...
.searchButtonImage = R.drawable.ic_search_black_24dp;
1,366,709
public static SSLRepertoire createSSLRepertoire() {<NEW_LINE>String protocol = ApplicationProperties.getProperties().getString(StackProperties.SSL_PROTOCOL);<NEW_LINE>String contextProvider = ApplicationProperties.getProperties(<MASK><NEW_LINE>boolean isClientAuthenticationEnabled = ApplicationProperties.getProperties(...
).getString(StackProperties.SSL_CONTEXT_PROVIDER);
310,529
public void run(RegressionEnvironment env) {<NEW_LINE>String statementText = "@name('s0') select Integer.toBinaryString(7) " + STREAM_MDB_LEN5;<NEW_LINE>env.compileDeploy(statementText).addListener("s0");<NEW_LINE>sendEvent(env, "IBM", 10d, 4L);<NEW_LINE>env.assertEqualsNew("s0", "Integer.toBinaryString(7)", Integer.to...
(statementText).addListener("s0");
1,563,030
public void visitSwitch(JCSwitch tree) {<NEW_LINE>ListBuffer<PendingExit> prevPendingExits = pendingExits;<NEW_LINE>pendingExits = new ListBuffer<>();<NEW_LINE>scan(tree.selector);<NEW_LINE>boolean hasDefault = false;<NEW_LINE>for (List<JCCase> l = tree.cases; l.nonEmpty(); l = l.tail) {<NEW_LINE>alive = true;<NEW_LINE...
alive |= resolveBreaks(tree, prevPendingExits);
867,312
private static int iterateToFixedPoint(List<InstructionBlock> blocks, int frameSize, BlockInfo[] blockInfos, ArrayList<InstructionBlock>[] predecessors) {<NEW_LINE>// by processing the graph bottom-up, we may reach a fixed point more quickly<NEW_LINE>ArrayDeque<InstructionBlock> workList = new ArrayDeque<>(blocks);<NEW...
BitSet(blocks.size());
1,185,910
public static AsymmetricKeyParameter generatePublicKeyParameter(PublicKey key) throws InvalidKeyException {<NEW_LINE>if (key instanceof ECPublicKey) {<NEW_LINE>ECPublicKey k = (ECPublicKey) key;<NEW_LINE>ECParameterSpec s = k.getParameters();<NEW_LINE>return new ECPublicKeyParameters(k.getQ(), new ECDomainParameters(s....
, s.getSeed()));
376,316
private Object JSONUnion(List<Object> parameters) throws ParserException {<NEW_LINE>Set<Object> s = new HashSet<Object>();<NEW_LINE>Object o = asJSON(parameters.get(0).toString());<NEW_LINE>if (o instanceof JSONArray) {<NEW_LINE>s.addAll((JSONArray) o);<NEW_LINE>} else if (o instanceof JSONObject) {<NEW_LINE>s.addAll((...
) o).keySet());
809,421
public void authorizeSubscriptions(@NotNull final ChannelHandlerContext ctx, @NotNull final SUBSCRIBE msg) {<NEW_LINE>final String clientId = ctx.channel().attr(ChannelAttributes.CLIENT_CONNECTION).get().getClientId();<NEW_LINE>if (clientId == null || !ctx.channel().isActive()) {<NEW_LINE>// no more processing needed<N...
> providerMap = authorizers.getAuthorizerProviderMap();
1,282,892
final CreateKeyPairResult executeCreateKeyPair(CreateKeyPairRequest createKeyPairRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createKeyPairRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
endClientExecution(awsRequestMetrics, request, response);
395,257
private Set<StreamPartition<PartitionIdType>> assignPartitions(RecordSupplier<PartitionIdType, SequenceOffsetType, RecordType> recordSupplier) {<NEW_LINE>final Set<StreamPartition<PartitionIdType>> assignment = new HashSet<>();<NEW_LINE>for (Map.Entry<PartitionIdType, SequenceOffsetType> entry : currOffsets.entrySet())...
SequenceOffsetType currOffset = entry.getValue();
1,732,289
public MaintenanceCreateSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MaintenanceCreateSettings maintenanceCreateSettings = new MaintenanceCreateSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
class).unmarshall(context));
873,174
public void onPanelStateChanged(View panel, SlidingUpPanelLayout.PanelState previousState, SlidingUpPanelLayout.PanelState newState) {<NEW_LINE>// As soon as the panel gets hidden, set wasHidden to true to prevent the animation from showing until we finish going to<NEW_LINE>// collapsed from hidden<NEW_LINE>if (previou...
Settings settings = SkyTubeApp.getSettings();
884,703
public static CompletableFuture<CdmDataPartitionDefinition> fromData(final CdmCorpusContext ctx, final Partition obj, final List<CdmTraitDefinition> extensionTraitDefList, final List<CdmTraitDefinition> localExtensionTraitDefList, final CdmFolderDefinition documentFolder) {<NEW_LINE>final CdmDataPartitionDefinition par...
setLastFileModifiedTime(obj.getLastFileModifiedTime());
663,359
final ListCustomDataIdentifiersResult executeListCustomDataIdentifiers(ListCustomDataIdentifiersRequest listCustomDataIdentifiersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCustomDataIdentifiersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
endClientExecution(awsRequestMetrics, request, response);
1,210,990
private void handleViewer(final HttpServletRequest req, final HttpServletResponse resp, final Session session) throws ServletException {<NEW_LINE>final Page page = newPage(req, resp, session, "azkaban/viewer/jobsummary/velocity/jobsummary.vm");<NEW_LINE>page.add("viewerPath", this.viewerPath);<NEW_LINE>page.add("viewer...
(Constants.PATH_DELIMITER, 0));
1,374,859
public Boolean call() throws Exception {<NEW_LINE>try {<NEW_LINE>// Buffer current dir as JournalEntry.<NEW_LINE>mEntryBuffer.put(mDirInode.toJournalEntry());<NEW_LINE>// Enumerate on immediate children.<NEW_LINE>Iterable<? extends Inode> children = mInodeStore.getChildren(mDirInode.asDirectory());<NEW_LINE>children.fo...
put(child.toJournalEntry());
85,762
public void loadModules() {<NEW_LINE>// Modules below level 8 are not dealt with here. Leave it to ClasspathJrt<NEW_LINE>if (this.jdklevel <= ClassFileConstants.JDK1_8) {<NEW_LINE>super.loadModules();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Path modPath = this.fs.getPath(this.releaseInHex);<NEW_LINE>// $NON-NLS-1$<N...
+ "|" + modPath.toString();
254,477
private void deleteMeasurement() {<NEW_LINE>SharedPreferences prefs = PreferenceManager.<MASK><NEW_LINE>boolean deleteConfirmationEnable = prefs.getBoolean("deleteConfirmationEnable", true);<NEW_LINE>if (deleteConfirmationEnable) {<NEW_LINE>AlertDialog.Builder deleteAllDialog = new AlertDialog.Builder(overviewView.getC...
getDefaultSharedPreferences(overviewView.getContext());
1,094,083
public void decode(long[] blocks, int blocksOffset, int[] values, int valuesOffset, int iterations) {<NEW_LINE>for (int i = 0; i < iterations; ++i) {<NEW_LINE>final long block0 = blocks[blocksOffset++];<NEW_LINE>values[valuesOffset++] = (int) (block0 >>> 52);<NEW_LINE>values[valuesOffset++] = (int) ((block0 >>> 40) & 4...
>>> 4) & 4095L);
1,068,193
private void createObjectsTable(Composite parent) {<NEW_LINE>Composite placeholder = UIUtils.createComposite(parent, 1);<NEW_LINE>placeholder.setLayoutData(new GridData(GridData.FILL_BOTH));<NEW_LINE>Group tableGroup = UIUtils.createControlGroup(placeholder, UINavigatorMessages.confirm_deleting_multiple_objects_table_g...
DBNResource) node).getResource();
819,868
public void run() {<NEW_LINE>boolean ok = true;<NEW_LINE>final Feed feed = context.getFeed();<NEW_LINE>List<FeedEntry> entries = context.getEntries();<NEW_LINE>if (entries.isEmpty()) {<NEW_LINE>feed.setMessage("Feed has no entries");<NEW_LINE>} else {<NEW_LINE>List<String> lastEntries = cache.getLastEntries(feed);<NEW_...
cache.buildUniqueEntryKey(feed, entry);
1,225,044
private void processJar(@NonNull File input, @NonNull File output, @NonNull TransformInvocation invocation) {<NEW_LINE>waitableExecutor.execute(() -> {<NEW_LINE>ExceptionRunnable fileCreator = createFile(input, output, invocation);<NEW_LINE>if (userCache != null) {<NEW_LINE>FileCache.Inputs key = new FileCache.Inputs.B...
"process fixStackFrames hit:" + input.getAbsolutePath());
1,781,878
public static void populateForBLS12(final PrecompileContractRegistry registry, final GasCalculator gasCalculator) {<NEW_LINE>populateForIstanbul(registry, gasCalculator);<NEW_LINE>registry.put(Address.BLS12_G1ADD, new BLS12G1AddPrecompiledContract());<NEW_LINE>registry.put(Address.BLS12_G1MUL, new BLS12G1MulPrecompiled...
.BLS12_G2MULTIEXP, new BLS12G2MultiExpPrecompiledContract());
1,796,099
private List<ModelScore> scoreWithElimination(String input, int maxSampleCount) {<NEW_LINE>int[] samplingPoints;<NEW_LINE>if (maxSampleCount <= 0) {<NEW_LINE>samplingPoints = getStepping(input, input.length());<NEW_LINE>} else {<NEW_LINE>samplingPoints = getStepping(input, maxSampleCount);<NEW_LINE>}<NEW_LINE>List<Mode...
Lists.newArrayListWithCapacity(modelIdArray.length);
1,220,429
public static HookInfoPatch toInnerForUpdate(ClientLogger logger, NotificationHook notificationHook) {<NEW_LINE>if (notificationHook instanceof EmailNotificationHook) {<NEW_LINE>EmailNotificationHook emailHook = (EmailNotificationHook) notificationHook;<NEW_LINE>EmailHookInfoPatch innerEmailHook = new EmailHookInfoPatc...
setExternalLink(emailHook.getExternalLink());
319,687
// FIXME: bytelist_love - if we want these mangled names to display properly we should be building this up with encoded data.<NEW_LINE>public static String encodeScopeForBacktrace(IRScope scope) {<NEW_LINE>if (scope instanceof IRMethod) {<NEW_LINE>return "RUBY$method$" + mangleMethodNameInternal(scope.getId());<NEW_LIN...
"unknown scope type for backtrace encoding: " + scope.getClass());
1,676,032
public static GetOrderBaseInfoResponse unmarshall(GetOrderBaseInfoResponse getOrderBaseInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>getOrderBaseInfoResponse.setRequestId(_ctx.stringValue("GetOrderBaseInfoResponse.RequestId"));<NEW_LINE>getOrderBaseInfoResponse.setErrorCode(_ctx.stringValue("GetOrderBaseInfoRespon...
("GetOrderBaseInfoResponse.OrderBaseInfo.RelatedUserList[" + i + "]"));
90,487
public Long execute() throws UserException, BimserverLockConflictException, BimserverDatabaseException {<NEW_LINE>authorization.canWriteExtendedData(roid);<NEW_LINE>User actingUser = getUserByUoid(authorization.getUoid());<NEW_LINE><MASK><NEW_LINE>getIdEObject().setAdded(new Date());<NEW_LINE>File file = getIdEObject()...
getIdEObject().setUser(actingUser);
1,285,856
public void updateMessageListForHandler(String msgIds, String handlerId) {<NEW_LINE>if (msgIds == null) {<NEW_LINE>// Should never happen, but avoid NPEs<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String[] msgStr = msgIds.split(",");<NEW_LINE>ArrayList<String> newMsgList = new ArrayList<String>(Arrays.asList(msgStr));<NEW_LI...
msgRouter.removeMsgFromLogHandler(msgId, handlerId);
532,581
private void checkForCyclesFor(TaskInternal task, Set<TaskInternal> visited, Set<TaskInternal> visiting) {<NEW_LINE>if (visited.contains(task)) {<NEW_LINE>// Already checked<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!visiting.add(task)) {<NEW_LINE>// Visiting dependencies -> have found a cycle<NEW_LINE>CachingDirectedGr...
> cycles = graphWalker.findCycles();
458,342
private boolean addHighlightRule(List<String> parts, int idx, String tokenName) {<NEW_LINE>boolean out = true;<NEW_LINE>if (parts.get(0).equals("color")) {<NEW_LINE>addHighlightRule(syntaxName + <MASK><NEW_LINE>} else if (parts.get(0).equals("icolor")) {<NEW_LINE>addHighlightRule(syntaxName + idx, parts, true, tokenNam...
idx, parts, false, tokenName);
1,066,609
public void onClick() {<NEW_LINE>EditText uriInput = findViewById(R.id.uriInput);<NEW_LINE>String uri = uriInput.getText().toString();<NEW_LINE>EditText requestInput = <MASK><NEW_LINE>byte[] requestBody = requestInput.getText().toString().getBytes(UTF_8);<NEW_LINE>Request request = Request.newBuilder().setBody(ByteStri...
findViewById(R.id.requestInput);
1,599,873
public WorkspaceRead updateWorkspace(final WorkspaceUpdate workspaceUpdate) throws ConfigNotFoundException, IOException, JsonValidationException {<NEW_LINE>final UUID workspaceId = workspaceUpdate.getWorkspaceId();<NEW_LINE>final StandardWorkspace persistedWorkspace = configRepository.getStandardWorkspace(workspaceId, ...
buildWorkspaceReadFromId(workspaceUpdate.getWorkspaceId());
134,552
private Person parsePerson(final String baseURI, final Element ePerson, final Locale locale) {<NEW_LINE>final Person person = new Person();<NEW_LINE>final Element name = ePerson.getChild("name", getAtomNamespace());<NEW_LINE>if (name != null) {<NEW_LINE>person.setName(name.getText());<NEW_LINE>}<NEW_LINE>final Element ...
setEmail(email.getText());
848,946
public void dynInit() throws Exception {<NEW_LINE>// Order Distribution<NEW_LINE>MLookup orderL = MLookupFactory.get(Env.getCtx(), m_WindowNo, 0, MColumn.getColumn_ID(MDDOrder.Table_Name, MDDOrder.COLUMNNAME_DD_Order_ID), DisplayType.Search);<NEW_LINE>fOrder = new VLookup(MDDOrder.COLUMNNAME_DD_Order_ID, true, false, t...
.getCtx(), "InventoryMoveGenerateSel"));
161,301
boolean pruneChildren(EmailContainer parent) {<NEW_LINE>if (parent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<EmailContainer> children = parent.getChildren();<NEW_LINE>if (children == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>EmailContainer grandParent = parent.getParent();<NEW_LINE>Set<EmailCon...
remove = new HashSet<>();
1,764,018
// ~ Methods ----------------------------------------------------------------<NEW_LINE>public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Join origJoin = call.rel(0);<NEW_LINE>final RelNode left = call.rel(1);<NEW_LINE>final RelNode right = call.rel(2);<NEW_LINE>if (origJoin.getJoinType() == JoinRelType.SEMI || ...
.getCluster().getRexBuilder();
744,723
protected CommandExecutionResult executeArg(AbstractEntityDiagram diagram, LineLocation location, RegexResult arg) throws NoSuchColorException {<NEW_LINE>final String codeRaw = StringUtils.eventuallyRemoveStartingAndEndingDoubleQuote(arg.getLazzy("CODE", 0));<NEW_LINE>final String displayRaw = StringUtils.eventuallyRem...
arg.getLazzy("STEREOTYPE", 0);
905,147
private synchronized void updateNodes() {<NEW_LINE>ImmutableSet.Builder<InternalNode> builder = ImmutableSet.builder();<NEW_LINE>Set<InternalNode> aliveNodes = builder.addAll(nodeManager.getNodes(ACTIVE)).addAll(nodeManager.getNodes(SHUTTING_DOWN)).build();<NEW_LINE>ImmutableSet<String> aliveNodeIds = aliveNodes.stream...
).collect(toImmutableSet());
1,517,186
public VpcAttachment unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>VpcAttachment vpcAttachment = new VpcAttachment();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
().unmarshall(context));
1,182,578
public void reduce(final IntWritable key, final Iterator<Text> values, OutputCollector<IntWritable, Text> output, final Reporter reporter) throws IOException {<NEW_LINE>// save vector<NEW_LINE>ArrayList<VectorElem<Integer>> vectorArr = null;<NEW_LINE>// save blocks<NEW_LINE>ArrayList<ArrayList<BlockElem<Integer>>> bloc...
BlockElem<Integer>>>();
1,124,222
public DocIdAndVersion lookupVersion(BytesRef id, boolean loadSeqNo, LeafReaderContext context) throws IOException {<NEW_LINE>assert context.reader().getCoreCacheHelper().getKey().equals(readerKey) : "context's reader is not the same as the reader class was initialized on.";<NEW_LINE>int docID = getDocID(id, context);<...
), SeqNoFieldMapper.NAME, docID);
910,824
public void onBindViewHolder(final BeautyViewHolder beautyViewHolder, final int position) {<NEW_LINE>String code = mBeautyParams.get(position);<NEW_LINE>code = code.toLowerCase();<NEW_LINE>boolean selected = mCurrentPos == position && position != 0;<NEW_LINE>beautyViewHolder.mBeautyLevelImage.setSelected(selected);<NEW...
.getDrawableResId("lsq_ic_" + code));
562,659
private void fillPortfolioContextMenu(IMenuManager manager) {<NEW_LINE>final Portfolio portfolio = (Portfolio) ((IStructuredSelection) portfolios.getSelection()).getFirstElement();<NEW_LINE>if (portfolio == null)<NEW_LINE>return;<NEW_LINE>new SecurityContextMenu(this).menuAboutToShow(manager, null, portfolio);<NEW_LINE...
.add(new Separator());
851,321
public Pair<Gradient, INDArray> backpropGradient(INDArray epsilon, LayerWorkspaceMgr workspaceMgr) {<NEW_LINE>assertInputSet(true);<NEW_LINE>int[] size = ((BaseUpsamplingLayer) layerConf()).getSize();<NEW_LINE>epsilon = epsilon.reshape(epsilon.size(0), epsilon.size(1), epsilon.size(2), 1);<NEW_LINE>// we replicate the ...
getExecutioner().exec(op);
1,678,508
public void handleMessage(int group, byte cmd1, Msg msg, DeviceFeature f, String fromPort) {<NEW_LINE>try {<NEW_LINE>byte <MASK><NEW_LINE>switch(cmd1) {<NEW_LINE>case 0x11:<NEW_LINE>switch(cmd2) {<NEW_LINE>case 0x02:<NEW_LINE>m_feature.publish(OpenClosedType.CLOSED, StateChangeType.CHANGED);<NEW_LINE>break;<NEW_LINE>ca...
cmd2 = msg.getByte("command2");
349,486
public String createSchemaKey(Database database) {<NEW_LINE>if (!database.supportsCatalogs() && !database.supportsSchemas()) {<NEW_LINE>return "all";<NEW_LINE>} else if (database.supportsCatalogs() && database.supportsSchemas()) {<NEW_LINE>if (CatalogAndSchema.CatalogAndSchemaCase.ORIGINAL_CASE.equals(database.getSchem...
"." + schema).toLowerCase();
840,133
public void sortSelected(List<GPXInfo> gpxInfoList) {<NEW_LINE>boolean hasRecording = gpxInfoList.remove(currentlyRecording);<NEW_LINE>final Collator collator = OsmAndCollator.primaryCollator();<NEW_LINE>Collections.sort(gpxInfoList, new Comparator<GPXInfo>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(G...
long time2 = i2.getLastModified();
322,753
public static byte[] infoHashFromBase32(String s) {<NEW_LINE>if (s.isEmpty() || s.length() != 32) {<NEW_LINE>throw new IllegalArgumentException("Invalid string: " + s);<NEW_LINE>}<NEW_LINE>String base32CodeBase = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";<NEW_LINE>StringBuilder hexCache = new StringBuilder();<NEW_LINE>for (in...
.format("%05X", hexValue));
728,671
public void extract(@NotNull final SequentialReader reader, @NotNull final Metadata metadata) {<NEW_LINE>HuffmanTablesDirectory directory = metadata.getFirstDirectoryOfType(HuffmanTablesDirectory.class);<NEW_LINE>if (directory == null) {<NEW_LINE>directory = new HuffmanTablesDirectory();<NEW_LINE>metadata.addDirectory(...
getTables().size());
143,568
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>MariaDBConfig config = new MariaDBConfig(instrumentor.getProfilerConfig());<NEW_LINE>InstrumentClass...
getInstrumentClass(loader, className, classfileBuffer);
679,984
public Appendable renderCCTrayXML(String siteUrlPrefix, String userName, Appendable appendable, Consumer<String> etagConsumer) {<NEW_LINE>boolean isSecurityEnabled = goConfigService.isSecurityEnabled();<NEW_LINE>List<ProjectStatus> statuses = ccTrayCache.allEntriesInOrder();<NEW_LINE>String hashCodes = statuses.stream(...
(xmlRepresentation).append("\n");
134,315
public boolean didExecuteJob(final JobService jobService, final JobParameters params) {<NEW_LINE>List<PersistableBundle> data = getTaskManagerUtils().extractDataFromJobParams(params);<NEW_LINE>ArrayList<Bundle> locationBundles = new ArrayList<>();<NEW_LINE>for (PersistableBundle persistableLocationBundle : data) {<NEW_...
(persistableLocationBundle.getPersistableBundle("coords"));
148,386
public void list(TPrintStream out) {<NEW_LINE>if (out == null) {<NEW_LINE>throw new NullPointerException();<NEW_LINE>}<NEW_LINE>StringBuilder buffer = new StringBuilder(80);<NEW_LINE>TEnumeration<MASK><NEW_LINE>while (keys.hasMoreElements()) {<NEW_LINE>String key = (String) keys.nextElement();<NEW_LINE>buffer.append(ke...
<?> keys = propertyNames();
308,615
public List<String> toRow(long nowMs) {<NEW_LINE>List<String<MASK><NEW_LINE>row.add("" + connectionId);<NEW_LINE>row.add(ClusterNamespace.getNameFromFullName(qualifiedUser));<NEW_LINE>row.add(getMysqlChannel().getRemoteHostPortString());<NEW_LINE>row.add(clusterName);<NEW_LINE>row.add(ClusterNamespace.getNameFromFullNa...
> row = Lists.newArrayList();
806,298
protected double computeOrientation() {<NEW_LINE>computeAngles();<NEW_LINE>double windowRadius = windowSize / 2.0;<NEW_LINE>int w = rect.x1 - rect.x0;<NEW_LINE>double bestScore = -1;<NEW_LINE>double bestAngle = 0;<NEW_LINE>double stepAngle = Math.PI * 2.0 / numAngles;<NEW_LINE>int N = w * (rect.y1 - rect.y0);<NEW_LINE>...
derivX.get(x, y);
1,444,063
// for api level >=23<NEW_LINE>public static Object makeNativeLibraryElement(File dir) throws IOException {<NEW_LINE>if (Build.VERSION.SDK_INT > 25 || Build.VERSION.SDK_INT == 25 && Build.VERSION.PREVIEW_SDK_INT > 0) {<NEW_LINE>try {<NEW_LINE>Class NativeLibraryElement = Class.forName("dalvik.system.DexPathList$NativeL...
throw new IOException("make nativeElement fail", e);
943,313
private MBeanAttributeInfo[] readAttributes(Object in, Map<String, String> urls) throws ConversionException, ClassNotFoundException {<NEW_LINE>if (in == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (!(in instanceof JSONArray)) {<NEW_LINE>throwConversionException("readAttributes() expects a JSONArray.", in);<NEW...
(value.get(N_TYPE));
200,727
public void onAlert(View view, String msg, final IAlertResult alertResult) {<NEW_LINE><MASK><NEW_LINE>IRhoWebView rhoWebView = makeDefExtData(view);<NEW_LINE>boolean res = false;<NEW_LINE>synchronized (mExtensions) {<NEW_LINE>for (IRhoExtension ext : mExtensions.values()) {<NEW_LINE>res = ext.onAlert(this, msg, rhoWebV...
Logger.T(TAG, "onAlert");
548,307
private PatResult strictMatch(String whole, String substr, Pattern pat) {<NEW_LINE>boolean strictLeft = substr.length() > 0 && WORD_CHAR.matcher(String.valueOf(substr.charAt(0))).matches();<NEW_LINE>boolean strictRight = substr.length() > 0 && WORD_CHAR.matcher(String.valueOf(substr.charAt(substr.length() - 1))).matche...
(m.end()));
400,018
public S3Config updateS3Config(S3ConfigUpdateRequest body, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling up...
, apiClient.parameterToString(xSdsAuthToken));