idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,592,628
public ActionResult useOnBlock(ItemUsageContext context) {<NEW_LINE>PlayerEntity playerEntity = context.getPlayer();<NEW_LINE>BlockPos blockPos = context.getBlockPos();<NEW_LINE>CachedBlockPosition cachedBlockPosition = new CachedBlockPosition(context.getWorld(), blockPos, false);<NEW_LINE>if (playerEntity != null && !...
()).setCaptureBlockStates_BF(true);
1,437,776
public void initializeDefaultPreferences() {<NEW_LINE>IPreferenceStore store = ProverUIActivator.getDefault().getPreferenceStore();<NEW_LINE>store.setDefault(LaunchProverDialog.TOOLBOX_MODE_KEY, true);<NEW_LINE>store.setDefault(LaunchProverDialog.EXTRA_OPTIONS_KEY, "");<NEW_LINE>store.setDefault(LaunchProverDialog.PARA...
(4), ColorPredicate.PREDICATE_STOPPED);
1,701,760
public Entry<K, V> firstEntry() {<NEW_LINE>atomicOperationsManager.acquireReadLock(this);<NEW_LINE>try {<NEW_LINE>acquireSharedLock();<NEW_LINE>try {<NEW_LINE>final OAtomicOperation atomicOperation = atomicOperationsManager.getCurrentOperation();<NEW_LINE>BucketPath bucketPath = getBucket(HASH_CODE_MIN_VALUE, atomicOpe...
bucket.getDepth(), atomicOperation);
1,557,324
protected Handlers createHandlers(Config config) {<NEW_LINE>LoggingOptions loggingOptions = new LoggingOptions(config);<NEW_LINE>Tracer tracer = loggingOptions.getTracer();<NEW_LINE>NetworkOptions networkOptions = new NetworkOptions(config);<NEW_LINE>HttpClient.Factory clientFactory = networkOptions.getHttpClientFactor...
boolean ready = router.isReady();
1,104,351
// Call on EDT<NEW_LINE>public void addMBeanInfo(XMBean mbean, MBeanInfo mbeanInfo) {<NEW_LINE>emptyInfoTable();<NEW_LINE>emptyDescTable();<NEW_LINE>((TitledBorder) infoBorderPanel.getBorder()).setTitle(Messages.MBEAN_INFO);<NEW_LINE>String text = Messages.INFO + ":";<NEW_LINE>DefaultTableModel tableModel = (DefaultTab...
1] = mbeanInfo.getClassName();
1,631,709
public static Pair<Boolean, DecryptedFolderMetadata> retrieveMetadata(OCFile parentFile, OwnCloudClient client, String privateKey, String publicKey) throws UploadException, InvalidAlgorithmParameterException, NoSuchAlgorithmException, NoSuchPaddingException, BadPaddingException, IllegalBlockSizeException, InvalidKeyExc...
).put(0, encryptedMetadataKey);
795,299
static List<String> availablePackages(boolean moveClass, NamedPath selectedRoot) {<NEW_LINE>FileObject rootFolder = getSelectedRoot(selectedRoot);<NEW_LINE>if (rootFolder != null) {<NEW_LINE>List<String> packages;<NEW_LINE>if (moveClass) {<NEW_LINE>packages = new ArrayList<>();<NEW_LINE>packages.add(Bundle.DN_DefaultPa...
.replace('/', '.'));
741,519
public int longestCommonSubsequence(String text1, String text2) {<NEW_LINE>char[<MASK><NEW_LINE>char[] text2Array = text2.toCharArray();<NEW_LINE>int m = text1Array.length;<NEW_LINE>int n = text2Array.length;<NEW_LINE>int[][] array = new int[m][n];<NEW_LINE>// init<NEW_LINE>array[0][0] = text1Array[0] == text2Array[0] ...
] text1Array = text1.toCharArray();
181,108
public DescribeAppAssessmentResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAppAssessmentResult describeAppAssessmentResult = new DescribeAppAssessmentResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
().unmarshall(context));
1,835,285
public void loadState(final Element element) {<NEW_LINE>List featuresList = element.getChildren(FEATURE_TAG);<NEW_LINE>for (Object aFeaturesList : featuresList) {<NEW_LINE>Element featureElement = (Element) aFeaturesList;<NEW_LINE>FeatureDescriptor descriptor = ((ProductivityFeaturesRegistryImpl) myRegistry).getFeature...
fStats = element.getChild(FIXES_STATS_TAG);
172,439
public static List<String> doStrip(File repository, String revision, boolean doForceMultiHead, boolean doBackup, OutputLogger logger) throws HgException {<NEW_LINE>if (repository == null)<NEW_LINE>return null;<NEW_LINE>List<String> command = new ArrayList<String>();<NEW_LINE><MASK><NEW_LINE>command.add(HG_STRIP_CMD);<N...
command.add(getHgCommand());
1,731,613
public void leaderboardGetName(final Response.Listener<InlineResponse200> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/leaderboard/name".replaceAll("\\{format\\}", "json");<NEW_LINE>// query params<NEW...
, "", InlineResponse200.class));
728,581
public HttpResponse updatePetForHttpResponse(Pet body, Map<String, Object> params) throws IOException {<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new IllegalArgumentException("Missing the required parameter 'body' when calling updatePet");<NEW_LINE>}<NEW_LINE>Ur...
GenericUrl genericUrl = new GenericUrl(localVarUrl);
1,058,628
public CacheWrapper<Object> deserialize(final byte[] bytes, Type returnType) throws Exception {<NEW_LINE>if (bytes == null || bytes.length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>CacheWrapper<Object> cacheWrapper = new CacheWrapper<>();<NEW_LINE><MASK><NEW_LINE>cacheWrapper.setExpire(byteBuf.readInt());<NEW_L...
val byteBuf = new ReadByteBuf(bytes);
759,905
protected ListObjectVersionsResponse listObjectVersions(String bucketName, String region, String delimiter, String encodingType, String keyMarker, Integer maxKeys, String prefix, String versionIdMarker, Multimap<String, String> extraHeaders, Multimap<String, String> extraQueryParams) throws NoSuchAlgorithmException, In...
queryParams.put("version-id-marker", versionIdMarker);
948,639
public void saveResponseInformation(File file) throws WebBrowserException {<NEW_LINE>if (file == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (LOG.isLoggable(Level.INFO)) {<NEW_LINE>LOG.info("Saving information about " + this.toString() + " to: " + file);<NEW_LINE>}<NEW_LINE>Vector<String> info = new Vector<String>(...
file, info, false, true);
323,607
final UpdateMatchmakingConfigurationResult executeUpdateMatchmakingConfiguration(UpdateMatchmakingConfigurationRequest updateMatchmakingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateMatchmakingConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
endClientExecution(awsRequestMetrics, request, response);
54,373
protected ErrorDescription[] apply(ExecutableElement subject, ProblemContext ctx) {<NEW_LINE>AnnotationMirror methodAnn = Utilities.findAnnotation(subject, ANNOTATION_WEBMETHOD);<NEW_LINE>Element classEl = subject.getEnclosingElement();<NEW_LINE>if (classEl != null) {<NEW_LINE>AnnotationMirror serviceAnn = Utilities.fi...
getMessage(InvalidWebMethodAnnotation.class, "MSG_WebMethod_NotAllowed");
1,220,485
int compare(/* const */<NEW_LINE>Treap treap, int left, int node) {<NEW_LINE>int right = treap.getElement(node);<NEW_LINE>Edge edge1 = m_helper.m_edges.get(left);<NEW_LINE>Edge edge2 = m_helper.m_edges.get(right);<NEW_LINE>boolean bEdge1Reversed = edge1.getReversed();<NEW_LINE>boolean bEdge2Reversed = edge2.getReversed...
intersectionOfYMonotonicWithAxisX(m_helper.m_yScanline, 0);
226,601
private void maybeOpen() throws SAXException {<NEW_LINE><MASK><NEW_LINE>if (!listOpen) {<NEW_LINE>attrs.clear();<NEW_LINE>attrs.addAttribute("class", "source");<NEW_LINE>if (lineOffset > 0) {<NEW_LINE>attrs.addAttribute("start", Integer.toString(1 + lineOffset));<NEW_LINE>}<NEW_LINE>emitter.startElement("ol", attrs);<N...
assert !(lineOpen && !listOpen);
107,488
protected static void updateExtractRule(AnnotationExtractRule r, Env env, TokenSequencePattern pattern, Expression action, Expression result) {<NEW_LINE>MatchedExpression.SingleAnnotationExtractor annotationExtractor = createAnnotationExtractor(env, r);<NEW_LINE>SequenceMatchResultExtractor<CoreMap> valueExtractor = ne...
r.matchFindType, r.matchWithResults);
983,236
private static void writeRemoveTensor(Map<Object, Object> map, JsonGenerator g) throws IOException {<NEW_LINE>g.writeFieldName("addresses");<NEW_LINE>g.writeStartArray();<NEW_LINE>for (Map.Entry<Object, Object> entry : map.entrySet()) {<NEW_LINE>String k = entry.getKey().toString();<NEW_LINE>String[] <MASK><NEW_LINE>fo...
dimensions = k.split(",");
1,022,207
private final I_M_InOut createReceiptHeader(final I_M_ReceiptSchedule rs) {<NEW_LINE>final Properties ctx = processorCtx.getCtx();<NEW_LINE>final String trxName = processorCtx.getTrx().getTrxName();<NEW_LINE>final I_M_InOut receiptHeader = InterfaceWrapperHelper.create(ctx, I_M_InOut.class, trxName);<NEW_LINE>receiptHe...
(order).toDocumentLocation());
884,783
// sampling with known theta, from maxent<NEW_LINE>private void sampleTopicsForOneDocWithTheta(FeatureSequence tokenSequence, LabelSequence topicSequence, double[] topicDistribution) {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>int[] oneDocTopics = topicSequence.getFeatures();<NEW_LINE>IntIntHashMap currentTy...
betaSum)) * topicDistribution[ti];
1,079,667
protected boolean produceContent(Producer producer) throws IOException {<NEW_LINE>ByteBuffer buffer;<NEW_LINE>boolean last;<NEW_LINE>if (channel == null) {<NEW_LINE>channel = Files.newByteChannel(filePath, StandardOpenOption.READ);<NEW_LINE>if (LOG.isDebugEnabled())<NEW_LINE>LOG.debug("Opened file {}", filePath);<NEW_L...
) -> release(buffer)));
1,313,730
public void layoutContainer(java.awt.Container parent) {<NEW_LINE>int parentWidth = parent.getWidth();<NEW_LINE>int parentHeight = parent.getHeight();<NEW_LINE>int offset = parentWidth - 18;<NEW_LINE>if (closeButton != null) {<NEW_LINE>closeButton.setBounds(<MASK><NEW_LINE>}<NEW_LINE>// have the bar approx 30 percent o...
offset, UPPERMARGIN, 18, mainHeight);
1,362,090
public void run() {<NEW_LINE>try {<NEW_LINE>// Query to the jboss4 server<NEW_LINE>lookup.lookup(JBDeploymentManager.class).invokeRemoteAction(new JBRemoteAction<Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void action(MBeanServerConnection connection, JBoss5ProfileServiceProxy profileService) throws Exceptio...
Level.INFO, null, ex);
1,231,318
private void renderImageDoesNotSupportScaling(Canvas canvas, AnimatedImageFrame frame) {<NEW_LINE>int frameWidth, frameHeight, xOffset, yOffset;<NEW_LINE>if (mDownscaleFrameToDrawableDimensions) {<NEW_LINE>final int fittedWidth = Math.min(frame.getWidth(), canvas.getWidth());<NEW_LINE>final int fittedHeight = Math.min(...
frame.getHeight() / scale);
1,527,271
private void executeScript(final ScriptTab tab, final String script, final Project<BufferedImage> project, final ImageData<BufferedImage> imageData) {<NEW_LINE>if (!(tab.getLanguage() instanceof RunnableLanguage))<NEW_LINE>return;<NEW_LINE>RunnableLanguage runnableLanguage = (RunnableLanguage) tab.getLanguage();<NEW_LI...
(startTime).toString());
1,166,861
public static FreeformNetwork createFeedforward(final int input, final int hidden1, final int hidden2, final int output, final ActivationFunction af) {<NEW_LINE>final FreeformNetwork network = new FreeformNetwork();<NEW_LINE>FreeformLayer lastLayer = network.createInputLayer(input);<NEW_LINE>FreeformLayer currentLayer;...
currentLayer = network.createLayer(hidden2);
141,244
public void actionPerformed(ActionEvent e) {<NEW_LINE>if (e.getActionCommand().equals(ConfirmPanel.A_OK)) {<NEW_LINE>inOKAction = true;<NEW_LINE>if (m_location.getCountry().isHasRegion() && fRegion.getSelectedItem() == null) {<NEW_LINE>if (fCityAutoCompleter.getC_Region_ID() > 0 && fCityAutoCompleter.getC_Region_ID() !...
, fCityAutoCompleter.getC_Region_ID()));
645,288
private Mono<PagedResponse<ModernReservationTransactionInner>> listByBillingProfileSinglePageAsync(String billingAccountId, String billingProfileId, String filter, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpo...
this.client.mergeContext(context);
585,822
private static JSONObject generateNonEnumAttributeObject(Attribute attribute, BaseConfigurator baseConfigurator) {<NEW_LINE>JSONObject attributeType = new JSONObject();<NEW_LINE>Optional<String> description = getDescription(attribute, baseConfigurator);<NEW_LINE>switch(attribute.type.getName()) {<NEW_LINE>case "java.la...
.put("description", desc));
326,743
public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {<NEW_LINE>String[] beanNames = registry.getBeanDefinitionNames();<NEW_LINE>for (String beanName : beanNames) {<NEW_LINE>BeanDefinition bd = registry.getBeanDefinition(beanName);<NEW_LINE>String beanClassName = bd.getBe...
getPropertyValues().getPropertyValue(INTERCEPTORS_PROP);
414,974
public boolean apply(Game game, Ability source) {<NEW_LINE>if (source.getTargets().get(1) != null) {<NEW_LINE>Permanent targetPermanent = game.getPermanent(source.getTargets().get(1).getFirstTarget());<NEW_LINE>if (targetPermanent != null) {<NEW_LINE>targetPermanent.addCounters(CounterType.GLYPH.createInstance(targetPe...
), TargetController.YOU, false);
1,010,110
private void sendOutMessages(@NotNull final List<PUBLISH> retainedPublishes) {<NEW_LINE>if (!channel.isActive()) {<NEW_LINE>for (final PUBLISH publish : retainedPublishes) {<NEW_LINE>payloadPersistence.decrementReferenceCounter(publish.getPublishId());<NEW_LINE>}<NEW_LINE>resultFuture.setException(CLOSED_CHANNEL_EXCEPT...
.add(sendQos0PublishDirectly(publish));
1,146,624
private static void showTree(StringBuilder builder, MetaPackage mp, boolean onlyCompiled) {<NEW_LINE>List<MetaPackage> childPackages = mp.getChildPackages();<NEW_LINE>for (MetaPackage childPackage : childPackages) {<NEW_LINE>showTree(builder, childPackage, onlyCompiled);<NEW_LINE>}<NEW_LINE>List<MetaClass> packageClass...
member)).append(HEADLESS_SEPARATOR);
1,622,957
final DeleteHostedConfigurationVersionResult executeDeleteHostedConfigurationVersion(DeleteHostedConfigurationVersionRequest deleteHostedConfigurationVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteHostedConfigurationVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteHostedConfigurationVersion");
1,056,900
boolean applyFilter(RepositoryRevision rev) {<NEW_LINE>boolean visible = true;<NEW_LINE>String filterText = txtFilter.getText().trim().toLowerCase();<NEW_LINE><MASK><NEW_LINE>if (selectedFilterKind != FilterKind.ALL && !filterText.isEmpty()) {<NEW_LINE>if (selectedFilterKind == FilterKind.MESSAGE) {<NEW_LINE>visible = ...
Object selectedFilterKind = cmbFilterKind.getSelectedItem();
715,837
public Domain unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Domain domain = new Domain();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><NEW_LINE>if ...
JsonToken token = context.getCurrentToken();
1,085,521
public void stateChanged(ChangeEvent e) {<NEW_LINE>boolean enabled = panel.getIssue() != null;<NEW_LINE>panel.errorLabel.setVisible(false);<NEW_LINE>if (enabled) {<NEW_LINE>String repoId = panel.getIssue().getRepository().getId();<NEW_LINE>String taskId = panel<MASK><NEW_LINE>if (repoId.equals(LocalRepository.getInstan...
.getIssue().getID();
1,297,620
public CompletableFuture<TxnStatus> commitTransaction(final String scope, final String stream, final UUID txId, final String writerId, final long timestamp, final long requestId) {<NEW_LINE>Exceptions.checkNotNullOrEmpty(scope, "scope");<NEW_LINE>Exceptions.checkNotNullOrEmpty(stream, "stream");<NEW_LINE>Preconditions....
(scope, stream), ex);
862,397
// encrypt<NEW_LINE>@Override<NEW_LINE>public String decrypt(String value) {<NEW_LINE>if (value == null || value.length() == 0)<NEW_LINE>return value;<NEW_LINE>boolean isEncrypted = value.startsWith(ENCRYPTEDVALUE_START) && value.endsWith(ENCRYPTEDVALUE_END);<NEW_LINE>if (isEncrypted)<NEW_LINE>value = value.substring(E...
= new String(out, "UTF8");
1,451,328
public void handle(Context ctx) throws IOException, ServletException {<NEW_LINE>boolean isTraceMode = Cat.getManager().isTraceMode();<NEW_LINE>HttpServletRequest req = ctx.getRequest();<NEW_LINE>HttpServletResponse res = ctx.getResponse();<NEW_LINE>MessageProducer producer = Cat.getProducer();<NEW_LINE><MASK><NEW_LINE>...
int mode = ctx.getMode();
1,594,567
// TODO: only generate that are overrideable (javaproxyclass)<NEW_LINE>protected void defineInstanceMethods(Set<String> instanceMethods) {<NEW_LINE>Set<String> defined = new HashSet<>();<NEW_LINE>for (Map.Entry<String, DynamicMethod> methodEntry : getMethods().entrySet()) {<NEW_LINE>// TODO: explicitly included but not...
callid, arity, position, methodSignature);
4,605
private static void solve() {<NEW_LINE>Solver solver = new Solver("Map");<NEW_LINE>//<NEW_LINE>// data<NEW_LINE>//<NEW_LINE>int Belgium = 0;<NEW_LINE>int Denmark = 1;<NEW_LINE>int France = 2;<NEW_LINE>int Germany = 3;<NEW_LINE>int Netherlands = 4;<NEW_LINE>int Luxembourg = 5;<NEW_LINE>int n = 6;<NEW_LINE>int max_num_co...
solver.wallTime() + "ms");
1,525,586
public void run() {<NEW_LINE>CommandLine parent = self == null ? null : self.getParent();<NEW_LINE>if (parent == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Help.ColorScheme colors = colorScheme != null ? <MASK><NEW_LINE>if (commands.length > 0) {<NEW_LINE>CommandLine subcommand = parent.getSubcommands().get(commands[...
colorScheme : Help.defaultColorScheme(ansi);
33,110
public static Response executeCreateClusterPseudo(HashMap<String, Object> attributes) {<NEW_LINE>String jobSpaceID = (String) attributes.get("jobSpaceId");<NEW_LINE>IPseudo pseudo = null;<NEW_LINE>try {<NEW_LINE>JobSpace js = JobSpaceManager.getSpace(jobSpaceID);<NEW_LINE>ResourceManager rm = js.getResourceManager();<N...
Integer) attributes.get("type");
675,937
protected void processInvoke(DynamicClassInfo clazz, boolean virtualCall, int index) {<NEW_LINE>byte[] savedCodeBytes = codeBytes;<NEW_LINE>int savedOffset = offset;<NEW_LINE>String[] cms = clazz.getRefMethodsClassNameAndSig(index);<NEW_LINE>if (cms == null) {<NEW_LINE>// That's how coming across our own stuff currentl...
1], cms[2]);
530,986
public String makeRequest(String url, Map<String, String> headers) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>BufferedReader br = null;<NEW_LINE>try {<NEW_LINE>HttpGet getRequest = new HttpGet(url);<NEW_LINE>if (headers != null) {<NEW_LINE>// add all headers<NEW_LINE>for (Entry<String, String> header :...
response = httpClient.execute(getRequest);
1,804,742
public void marshall(BatchPrediction batchPrediction, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (batchPrediction == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.mars...
batchPrediction.getBatchPredictionId(), BATCHPREDICTIONID_BINDING);
1,254,112
final DeleteEndpointResult executeDeleteEndpoint(DeleteEndpointRequest deleteEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
57,848
public MethodHandle findShadowMethodHandle(Class<?> definingClass, String name, MethodType methodType, boolean isStatic) throws IllegalAccessException {<NEW_LINE>return PerfStatsCollector.getInstance().measure("find shadow method handle", () -> {<NEW_LINE>MethodType actualType = isStatic ? methodType : methodType.dropP...
mh = LOOKUP.unreflect(shadowMethod);
974,240
private static void initializeMetrics(boolean enabled, boolean jvmMetricsEnabled, String factoryClass, String appName, HostAndPort address) throws Exception {<NEW_LINE>LOG.info("initializing metrics, enabled:{}, class:{}", enabled, factoryClass);<NEW_LINE>if (enabled && factoryClass != null && !factoryClass.isEmpty()) ...
).bindTo(Metrics.globalRegistry);
833,820
static void createTimestampTriggerNotification(NotificationModel notificationModel, Bundle triggerBundle) {<NEW_LINE>TimestampTriggerModel trigger = TimestampTriggerModel.fromBundle(triggerBundle);<NEW_LINE>String uniqueWorkName <MASK><NEW_LINE>long delay = trigger.getDelay();<NEW_LINE>int interval = trigger.getInterva...
= "trigger:" + notificationModel.getId();
618,485
public static void openInCustomTabsOrBrowser(@NonNull Context context, @NonNull String url) {<NEW_LINE>if (StringUtils.isBlank(url)) {<NEW_LINE>Toasty.warning(context, context.getString(R.string.invalid_url), Toast.LENGTH_LONG).show();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// check http prefix<NEW_LINE>if (!url.contains...
), 0, copyIntent, 0);
814,427
private void updatePopup(boolean isInProgress, boolean canRetry) {<NEW_LINE>int modelSize = rModel.getSize();<NEW_LINE>if (modelSize > 0 && jList1.getSelectedIndex() < 0) {<NEW_LINE>jList1.setSelectedIndex(0);<NEW_LINE>}<NEW_LINE>// plug this popup into layered pane if needed<NEW_LINE>JLayeredPane <MASK><NEW_LINE>if (l...
lPane = JLayeredPane.getLayeredPaneAbove(comboBar);
634,070
private void appendDetails(StringBuilder message, MutuallyExclusiveConfigurationPropertiesException cause, List<Descriptor> descriptors) {<NEW_LINE>descriptors.sort((d1, d2) -> d1.propertyName.compareTo(d2.propertyName));<NEW_LINE>message.append<MASK><NEW_LINE>sortedStrings(cause.getMutuallyExclusiveNames()).forEach((n...
(String.format("The following configuration properties are mutually exclusive:%n%n"));
555,618
final GetDedicatedIpsResult executeGetDedicatedIps(GetDedicatedIpsRequest getDedicatedIpsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDedicatedIpsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
(super.beforeMarshalling(getDedicatedIpsRequest));
507,848
@Consumes(MediaType.MULTIPART_FORM_DATA)<NEW_LINE>public Response uploadFile(@FormDataParam("file") InputStream uploadedInputStream, @FormDataParam("file") FormDataContentDisposition fileDetail) {<NEW_LINE>Config config = createConfig();<NEW_LINE>if (uploadedInputStream == null) {<NEW_LINE>String msg = "input stream is...
())).build();
555,855
public void mousePressed(MouseEvent e) {<NEW_LINE>JTree mTree = (JTree) e.getSource();<NEW_LINE>TreePath path = mTree.getPathForLocation(e.getX(<MASK><NEW_LINE>if (path == null)<NEW_LINE>return;<NEW_LINE>FileTreeNode node = (FileTreeNode) path.getLastPathComponent();<NEW_LINE>if (node.isCheckNode()) {<NEW_LINE>showNode...
), e.getY());
1,019,997
private static void _testPointsInEnvelope2D(Envelope2D env2D, Point2D[] inputPoints, int count, double tolerance, PiPResult[] testResults) {<NEW_LINE>if (inputPoints.length < count || testResults.length < count)<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>if (env2D.isEmpty()) {<NEW_LINE>for (int i = 0; i < ...
testResults[i] = PiPResult.PiPInside;
1,147,997
public void marshall(VulnerablePackage vulnerablePackage, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (vulnerablePackage == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(vulnerablePackage.getArch(), ARCH...
vulnerablePackage.getName(), NAME_BINDING);
21,683
public static boolean isValidLongArrayInRange(final GraphObject node, final PropertyKey<Long[]> key, final String range, final ErrorBuffer errorBuffer) {<NEW_LINE>// we expect expression to have the following format:<NEW_LINE>// - "[" or "]" followed by a number (including negative values<NEW_LINE>// - a comma (must ex...
String type = node.getType();
155,124
public void marshall(DeploymentConfigInfo deploymentConfigInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (deploymentConfigInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(deploymentConfigInfo.get...
deploymentConfigInfo.getComputePlatform(), COMPUTEPLATFORM_BINDING);
349,665
public static List<StatementBase> parse(String originSql, long sqlMode) {<NEW_LINE>List<String> splitSql = splitSQL(originSql);<NEW_LINE>List<StatementBase> statements = Lists.newArrayList();<NEW_LINE>for (int idx = 0; idx < splitSql.size(); ++idx) {<NEW_LINE>String sql = splitSql.get(idx);<NEW_LINE>try {<NEW_LINE>Star...
new OriginStatement(sql, idx));
1,853,936
protected JFreeChart createXYBarChart() throws JRException {<NEW_LINE>IntervalXYDataset <MASK><NEW_LINE>boolean isDate = true;<NEW_LINE>if (getChart().getDataset().getDatasetType() == JRChartDataset.XY_DATASET) {<NEW_LINE>isDate = false;<NEW_LINE>}<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyThem...
tmpDataset = (IntervalXYDataset) getDataset();
102,809
private String _sendRawRequest(String command) {<NEW_LINE>checkConnection();<NEW_LINE>String result = "";<NEW_LINE>try {<NEW_LINE>PrintStream out = new PrintStream(client.getOutputStream(), true);<NEW_LINE>out.print(command + "\r\n");<NEW_LINE>InputStream instr = client.getInputStream();<NEW_LINE>try {<NEW_LINE>byte[] ...
String(buff, 0, ret_read);
1,771,554
private void loadDirectoryAndContainer(SingularityTask task) {<NEW_LINE>final long start = System.currentTimeMillis();<NEW_LINE>final String agentUri = mesosClient.getAgentUri(task.getHostname());<NEW_LINE>LOG.info("Fetching agent data to find log directory and container id for task {} from uri {}", task.getTaskId(), a...
get().getDirectory());
1,043,404
private PrintingQueueProcessingInfo createPrintingQueueProcessingInfo(@NonNull final I_C_Printing_Queue printingQueueRecord, final UserId printJobAD_User_ID) {<NEW_LINE>final ImmutableList<UserId> printToUserIDs;<NEW_LINE>final boolean createWithSpecificHostKey;<NEW_LINE>if (printingQueueRecord.isPrintoutForOtherUser()...
(printingDAO.retrievePrintingQueueRecipientIDs(printingQueueRecord));
243,960
public com.amazonaws.services.codedeploy.model.InvalidSortByException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.InvalidSortByException invalidSortByException = new com.amazonaws.services.codedeploy.model.InvalidSortByException(null);<NEW_L...
String currentParentElement = context.getCurrentParentElement();
938,266
public Mono<Void> unsubscribe(ByteBuffer... channels) {<NEW_LINE>monosListener.acquire();<NEW_LINE>return Mono.defer(() -> {<NEW_LINE>List<CompletableFuture<?>> futures = new ArrayList<>(channels.length);<NEW_LINE>for (ByteBuffer channel : channels) {<NEW_LINE>ChannelName cn = toChannelName(channel);<NEW_LINE>Completab...
this.channels.remove(cn);
1,790,535
private static void update(GuiController controller) {<NEW_LINE>try {<NEW_LINE>String uiFont = controller.config().display().uiFont;<NEW_LINE>String monoFont = controller.config().display().monoFont;<NEW_LINE>String css = ".root { -fx-font-family: \"" + uiFont + "\" !important; }\n" + ".lineno { -fx-font-family: \"" + ...
FONT_CSS, css, StandardCharsets.UTF_8);
189,672
// parse LIMIT & OFFSET<NEW_LINE>private void parseLimitClause(IoTDBSqlParser.LimitClauseContext ctx, Statement statement) {<NEW_LINE>int limit;<NEW_LINE>try {<NEW_LINE>limit = Integer.parseInt(ctx.INTEGER_LITERAL().getText());<NEW_LINE>} catch (NumberFormatException e) {<NEW_LINE>throw new SemanticException("Out of ra...
) statement).setLimit(limit);
750,371
private void useNaptr() {<NEW_LINE>if (c_logger.isTraceDebugEnabled()) {<NEW_LINE>c_logger.traceDebug(this, "useNaptr", "Call to NAPTR resolve the targetUrl = " + _target);<NEW_LINE>}<NEW_LINE>// this is to avoid loops if we got here after sending to a message<NEW_LINE>// conext<NEW_LINE>// for which a Naptr Request wa...
setHost(_target.getHost());
1,288,183
public void actionPerformed(ActionEvent e) {<NEW_LINE>name = this.getValue(Action.NAME).toString();<NEW_LINE>executePane = mainUI.getMainPane().getExecutePane();<NEW_LINE>boolean done = false;<NEW_LINE>if (!FileStatus.isAssembled()) {<NEW_LINE>// note: this should never occur since backstepping is only enabled after su...
.getTextSegmentWindow().highlightStepAtPC();
844,645
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
16,477
private static List<FilterTestMultiStmtExecution> computePermutationsCase(Class originator, PermutationSpec permutationSpec, FilterTestMultiStmtPermutable permutableCase, boolean withStats) {<NEW_LINE>if (!permutationSpec.isAll()) {<NEW_LINE>return Collections.singletonList(caseOf(originator, permutationSpec.getSpecifi...
, permutation, permutableCase, withStats));
785,025
public void doSetup(ServerState serverState) throws Exception {<NEW_LINE>JdbcDriver jdbcDriver = JdbcDriver.from(client);<NEW_LINE>String compression = String.valueOf(Boolean.parseBoolean(System.getProperty("compression", "true")));<NEW_LINE>String additional = System.getProperty("additional", "");<NEW_LINE>try {<NEW_L...
.getDeclaredConstructor().newInstance();
1,847,595
void paint(@Nonnull Graphics2D g) {<NEW_LINE>Rectangle clip = g.getClipBounds();<NEW_LINE>if (clip == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BufferedImage buffer = Registry.is("editor.dumb.mode.available") ? getUserData(BUFFER) : null;<NEW_LINE>if (buffer != null) {<NEW_LINE>Rectangle rect = getContentComponent()...
g.setColor(getDisposedBackground());
1,624,854
public void init(Map<String, Object> properties) throws Exception {<NEW_LINE>SimpleDateFormat timeFormat = new SimpleDateFormat("yyyy_MM_dd_HH_mm_ss");<NEW_LINE>String tableName = (String) properties.getOrDefault("dirtyTableName", "DirtyData_" + properties.get("tableName") + "_" + timeFormat.format(System.currentTimeMi...
String) properties.get("userName");
715,028
public static GetPtsReportsBySceneIdResponse unmarshall(GetPtsReportsBySceneIdResponse getPtsReportsBySceneIdResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPtsReportsBySceneIdResponse.setRequestId<MASK><NEW_LINE>getPtsReportsBySceneIdResponse.setSuccess(_ctx.booleanValue("GetPtsReportsBySceneIdResponse.Success"));<N...
(_ctx.stringValue("GetPtsReportsBySceneIdResponse.RequestId"));
1,172,679
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create " + typeType + " schema Item(name string, price double)", path);<NEW_LINE>env.compileDeploy("@public create " + typeType + " schema PurchaseOrder(orderId string, items Item[])", p...
0].get("name"));
1,601,352
protected ActionResult<List<Wo>> execute(HttpServletRequest request, EffectivePerson effectivePerson, String id, Integer count, String appId, JsonElement jsonElement) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>EqualsTerms equals = new EqualsTerms();<NEW_LINE>LikeTerms likes = new LikeTerm...
likes.put("title", key);
89,937
final SetIdentityPoolRolesResult executeSetIdentityPoolRoles(SetIdentityPoolRolesRequest setIdentityPoolRolesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setIdentityPoolRolesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
endClientExecution(awsRequestMetrics, request, response);
146,615
public static <T> List<T> matches(String query, Collection<T> choices, ChoiceGenerator<T> generator, @SearchType int type) {<NEW_LINE>if (choices == null)<NEW_LINE>return null;<NEW_LINE>if (choices.size() == 0)<NEW_LINE>return Collections.emptyList();<NEW_LINE>List<T> results = new ArrayList<>(choices.size());<NEW_LINE...
text = generator.getChoice(choice);
317,260
public static ClientMessage encodeRequest(com.hazelcast.cp.internal.RaftGroupId groupId, java.lang.String name, @Nullable com.hazelcast.internal.serialization.Data oldValue, @Nullable com.hazelcast.internal.serialization.Data newValue) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>c...
.content, PARTITION_ID_FIELD_OFFSET, -1);
644,345
final DeleteResourcePolicyResult executeDeleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteResourcePolicyRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Delet...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,431,591
final UpdateTopicRuleDestinationResult executeUpdateTopicRuleDestination(UpdateTopicRuleDestinationRequest updateTopicRuleDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateTopicRuleDestinationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "IoT");
566,564
static org.batfish.datamodel.ospf.OspfNetworkType toOspfNetworkType(@Nullable OspfNetworkType type, Warnings warnings) {<NEW_LINE>if (type == null) {<NEW_LINE>// default is broadcast for all Ethernet interfaces<NEW_LINE>// (https://learningnetwork.cisco.com/thread/66827)<NEW_LINE>return org.batfish<MASK><NEW_LINE>}<NEW...
.datamodel.ospf.OspfNetworkType.BROADCAST;
1,246,485
public boolean onContextItemSelected(MenuItem item) {<NEW_LINE>final AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();<NEW_LINE>LinkItem linkItem = (LinkItem) listView.getItemAtPosition(info.position);<NEW_LINE>int id = item.getItemId();<NEW_LINE>switch(id) {<NEW_LINE>ca...
dynamicsLinkList.remove(info.position);
1,230,552
public DevicePosition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DevicePosition devicePosition = new DevicePosition();<NEW_LINE>reader.beg...
)).unmarshall(context));
1,133,789
public List<ReviewDetail> readReviews(String itemId, RatingType type, int start, int finish, RatingSortType sortBy) {<NEW_LINE>RatingSummary summary = <MASK><NEW_LINE>if (summary != null) {<NEW_LINE>List<ReviewDetail> reviews = summary.getReviews();<NEW_LINE>List<ReviewDetail> reviewsToReturn = new ArrayList<ReviewDeta...
this.readRatingSummary(itemId, type);
1,195,565
public static SearchApplicationScopesResponse unmarshall(SearchApplicationScopesResponse searchApplicationScopesResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchApplicationScopesResponse.setRequestId(_ctx.stringValue("SearchApplicationScopesResponse.RequestId"));<NEW_LINE>searchApplicationScopesResponse.setMessage(...
("SearchApplicationScopesResponse.Content[" + i + "].Status"));
615,824
public static Map<PartitionKey, HashIndicesView> split(long[] indices, List<PartitionKey> parts) {<NEW_LINE>Map<PartitionKey, HashIndicesView> ret = new HashMap<>();<NEW_LINE>Map<Integer, LongArrayList> partIndex2Indices = new HashMap<>();<NEW_LINE>SortedMap<Integer, Integer> key2partIndex = new TreeMap<>();<NEW_LINE>f...
partIndex2Indices.put(partIndex, splitIndices);
751,433
private static LocaleUtils createInstance(SelectionProperty localeProp, ConfigurationProperty prop, ConfigurationProperty queryParamProp, ConfigurationProperty cookieProp) {<NEW_LINE>GwtLocale compileLocale = null;<NEW_LINE>Set<GwtLocale> allLocales = new HashSet<GwtLocale>();<NEW_LINE>Set<GwtLocale> allCompileLocales ...
getValues().get(0);
85,203
static SelectionKeysSet optimize(Selector selector, ILogger logger) {<NEW_LINE>checkNotNull(selector, "selector");<NEW_LINE>checkNotNull(logger, "logger");<NEW_LINE>try {<NEW_LINE>SelectionKeysSet set = new SelectionKeysSet();<NEW_LINE>Class<?> selectorImplClass = findOptimizableSelectorClass(selector);<NEW_LINE>if (se...
publicSelectedKeysField.set(selector, set);
635,208
public static void load() {<NEW_LINE>String pkg = Scanner.cutOutLast(ServiceHandlingProxy.class.getName(), ".");<NEW_LINE>Set<String> classes = new Scanner(pkg).process(<MASK><NEW_LINE>Set<String> custom = new Scanner(System.getProperty("scouter.handler")).process();<NEW_LINE>classes.addAll(custom);<NEW_LINE>Iterator<S...
ServiceHandlingProxy.class.getClassLoader());
406,488
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(<MASK><NEW_LINE>m.put(T...
TypeAlias.int16_t, NativeType.SSHORT);
1,210,480
private void fillTimeLine(long start, int hours) {<NEW_LINE>mCurrentGuideStart = Calendar.getInstance();<NEW_LINE>mCurrentGuideStart.setTime(new Date(start));<NEW_LINE>mCurrentGuideStart.set(Calendar.MINUTE, mCurrentGuideStart.get(Calendar.MINUTE) >= 30 ? 30 : 0);<NEW_LINE>mCurrentGuideStart.set(Calendar.SECOND, 0);<NE...
(Calendar) mCurrentGuideStart.clone();