idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,777,723
private static void tryAssertion12(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "symbol", "sum(price)" };<NEW_LINE>ResultAssertTestResult expected =...
{ { "IBM", 49d } });
1,474,973
private static void appendResponseHeader(StringBuilder buf, DnsResponse msg) {<NEW_LINE>buf.append(StringUtil.simpleClassName(msg)).append('(');<NEW_LINE>appendAddresses(buf, msg).append(msg.id()).append(", ").append(msg.opCode()).append(", ").append(msg.code()).append(',');<NEW_LINE>boolean hasComma = true;<NEW_LINE>i...
length() - 1, ')');
1,447,881
protected void createRemotePack(final AttachSettings settings) {<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE>// NOI18N<NEW_LINE>File tmpDir = new File<MASK><NEW_LINE>chooser.setDialogTitle(Bundle.AttachDialog_Re...
(System.getProperty("java.io.tmpdir"));
424,562
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>@Var<NEW_LINE>int size1;<NEW_LINE>@Var<NEW_LINE>int size2;<NEW_LINE>int version = in.readInt();<NEW_LINE>size1 = in.readInt();<NEW_LINE>// Deserialization doesn't call the unnamed class initializer, so do it here<NEW_LIN...
j] = in.readInt();
265,180
protected void checkInvokeExpr(Body b, InvokeExpr ie, Stmt s) {<NEW_LINE>final SootMethodRef methodRef = ie.getMethodRef();<NEW_LINE>if ("clone".equals(methodRef.name()) && methodRef.parameterTypes().isEmpty() && ie instanceof InstanceInvokeExpr && ((InstanceInvokeExpr) ie).getBase().getType() instanceof ArrayType) {<N...
getTag(SourceLnPosTag.NAME)));
220,231
private void initSwitchLineAction() {<NEW_LINE>final KeyStroke keyLinesDown = KeyStroke.getKeyStroke(KeyEvent.VK_DOWN, Event.SHIFT_MASK);<NEW_LINE>final KeyStroke keyLinesUp = KeyStroke.getKeyStroke(KeyEvent.VK_UP, Event.SHIFT_MASK);<NEW_LINE>aSwitchLinesDownAction = new SwitchAction("switchLinesDown", keyLinesDown, th...
).put(keyLinesDown, "none");
365,097
private void updateBars() {<NEW_LINE>GraphicMinMax gr = getCircuitSize();<NEW_LINE>if (gr.getMin() == null || gr.getMax() == null || !circuitComponent.isManualScale()) {<NEW_LINE>horizontal.setVisible(false);<NEW_LINE>vertical.setVisible(false);<NEW_LINE>} else {<NEW_LINE>Point2D min = new Point2D.Float();<NEW_LINE>Poi...
gr.getMax().x);
1,058,886
public static void main(String[] args) {<NEW_LINE>try {<NEW_LINE>final Path tempDir = Files.createTempDirectory(TEMP_DIR_PREFIX);<NEW_LINE>final REPL repl = new REPL(tempDir);<NEW_LINE>// TODO: Allow external spec file to be loaded into REPL context.<NEW_LINE>if (args.length == 1) {<NEW_LINE>String res = repl.processIn...
System.out.println("Welcome to the TLA+ REPL!");
734,596
synchronized private Wo executeCommand(String ctl, String nodeName, int nodePort) throws Exception {<NEW_LINE>Wo wo = new Wo();<NEW_LINE>// wo.setNode(nodeName);<NEW_LINE>wo.setStatus("success");<NEW_LINE>try (Socket socket = new Socket(nodeName, nodePort)) {<NEW_LINE>socket.setKeepAlive(true);<NEW_LINE>socket.setSoTim...
(XGsonBuilder.toJson(commandObject));
484,930
public int execute(Meterpreter meterpreter, TLVPacket request, TLVPacket response) throws Exception {<NEW_LINE>Transport t = meterpreter<MASK><NEW_LINE>// check if this is the last transport<NEW_LINE>if (t == t.getNext()) {<NEW_LINE>// cant' delete the last transport<NEW_LINE>return ERROR_FAILURE;<NEW_LINE>}<NEW_LINE>S...
.getTransports().current();
1,748,528
public void testWriteContents_ALL_SESSION_ATTRIBUTES(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>HttpSession session = request.getSession(true);<NEW_LINE>try {<NEW_LINE>LinkedList<Long> list = new LinkedList<>();<NEW_LINE>list.addAll(Arrays.asList(150l, 151l, 152l));<NEW_LINE>s...
IBMSession) session).sync();
1,461,872
public Map<DateTime, Map<String, Long>> fieldHistogram(String fieldName, Set<String> indices, Optional<Set<String>> includedStreams, long interval) {<NEW_LINE>final BoolQueryBuilder queryBuilder = buildStreamIdFilter(includedStreams);<NEW_LINE>final FilterAggregationBuilder the_filter = AggregationBuilders.filter(AGG_F...
).addType(IndexMapping.TYPE_MESSAGE);
1,692,188
private void startBridge() throws IOException {<NEW_LINE>@Nullable<NEW_LINE>final HomekitServer homekitServer = this.homekitServer;<NEW_LINE>if (homekitServer != null && bridge == null) {<NEW_LINE>final HomekitRoot bridge = homekitServer.createBridge(authInfo, settings.name, HomekitAccessoryCategories.BRIDGES, HomekitS...
setConfigurationIndex(changeListener.getConfigurationRevision());
1,618,406
public void runScript(Script script, StreamConsumer buildOutputConsumer, EnvironmentVariableContext environmentVariableContext, ProcessTag processTag) throws CheckedCommandLineException {<NEW_LINE>LOG.info("Running command: {}", toStringForDisplay());<NEW_LINE>CompositeConsumer errorStreamConsumer = new CompositeConsum...
streamConsumer.addArguments(getArguments());
1,623,020
final ListOrganizationAdminAccountsResult executeListOrganizationAdminAccounts(ListOrganizationAdminAccountsRequest listOrganizationAdminAccountsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOrganizationAdminAccountsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
29,020
public ResponseEntity<Set<Pet>> findPetsByTagsWithHttpInfo(Set<String> tags) throws RestClientException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'tags' is set<NEW_LINE>if (tags == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the require...
final String[] localVarContentTypes = {};
1,606,219
public Object execute(final Map<Object, Object> iArgs) {<NEW_LINE>final ODatabaseDocumentInternal database = getDatabase();<NEW_LINE>database.checkSecurity(ORule.ResourceGeneric.SERVER, "remove", ORole.PERMISSION_EXECUTE);<NEW_LINE>if (!(database instanceof ODatabaseDocumentDistributed)) {<NEW_LINE>throw new OCommandEx...
), databaseName, false, true);
271,647
public OAuthClientService createOAuthClientService(String handle, String tokenUrl, @Nullable String authorizationUrl, String clientId, @Nullable String clientSecret, @Nullable String scope, @Nullable Boolean supportsBasicAuth) {<NEW_LINE>PersistedParams params = oAuthStoreHandler.loadPersistedParams(handle);<NEW_LINE>P...
oauthClientServiceCache.put(handle, clientImpl);
757,791
public okhttp3.Call readNamespacedJobStatusCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/batch/v1/namespaces/{namespace}/jobs/{name}/status".re...
= new String[] { "BearerToken" };
1,146,451
// <Play Services Functions><NEW_LINE>private boolean checkPlayServices() {<NEW_LINE>// Check that Google Play services is available<NEW_LINE>int <MASK><NEW_LINE>// If Google Play services is available<NEW_LINE>if (ConnectionResult.SUCCESS == resultCode) {<NEW_LINE>// In debug mode, log the status<NEW_LINE>Log.d("Locat...
resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(this);
797,422
public static void main(String[] args) throws IOException {<NEW_LINE>Cmd cmd = MainUtils.parseArguments(args, FLAGS);<NEW_LINE>if (cmd.argsLength() < 1) {<NEW_LINE>MainUtils.printHelpArgs(FLAGS, new String[] { "output file" });<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int speed = 4;<NEW_LINE>final int ballSize = 40;<...
g.setColor(Color.BLACK);
1,095,501
final DeletePipelineResult executeDeletePipeline(DeletePipelineRequest deletePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePipelineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeletePipel...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
441,219
private void approveFetchingOfBigFile(final MatchingObject mo, final int partIndex) {<NEW_LINE>FileObject fo = mo.getFileObject();<NEW_LINE>long fileSize = fo.getSize() / 1024;<NEW_LINE>JButton showButton = new JButton(Bundle.LBL_ContextView_Show());<NEW_LINE>JButton skipButton = new JButton(Bundle.LBL_ContextView_Skip...
APPROVED_FILES.put(fo, app);
1,649,675
void maybeSendCapture() {<NEW_LINE>if (!shouldSendCapture()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Payload payload = new Payload();<NEW_LINE>for (Capturable capturable : capturables) {<NEW_LINE>StringWriter content = new StringWriter();<NEW_LINE>PrintWriter writer = new PrintWriter(content);<NEW_LINE>ca...
().getMillis() * 1000;
1,317,397
protected void unsetRequestInterceptor(ServiceReference<RequestInterceptor> reference) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, "RegisterRequestInterceptor.unsetRequestInterceptor(), reference:" + reference + ", InterceptPoints: " + (String) reference<MASK><NEW_L...
.getProperty(RequestInterceptor.INTERCEPT_POINTS_PROPERTY));
1,740,892
public void componentRegistered(Element element, AndroidManifest androidManifest, boolean printWarning, ElementValidation valid) {<NEW_LINE>TypeElement typeElement = (TypeElement) element;<NEW_LINE>if (typeElement.getModifiers().contains(Modifier.ABSTRACT)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (androidManifest.isL...
String generatedComponentQualifiedName = componentQualifiedName + classSuffix();
53,097
protected static Object doAttributeOperation(MBeanServerConnection mbsc, ObjectInstance instance, String command, MBeanAttributeInfo[] infos) throws Exception {<NEW_LINE>// Usually we get attributes. If an argument, then we're being asked<NEW_LINE>// to set attribute.<NEW_LINE>CommandParse parse = new CommandParse(comm...
instance.getObjectName(), names);
151,267
public void onStatistics(MonitoringStatistics statistics) {<NEW_LINE>if (domain == null) {<NEW_LINE>final String globalSubType = ",subType=" + PROPERTY_SUBTYPE_GLOBAL;<NEW_LINE>final ApplicationInfo appStats = applicationInfoProvider.get();<NEW_LINE>String appName = appStats.getResourceConfig().getApplicationName();<NE...
getExceptionMapperStatistics(), this, globalSubType);
1,016,940
protected void prepareFileTypeAnalyzer(Engine engine) throws InitializationException {<NEW_LINE>super.prepareFileTypeAnalyzer(engine);<NEW_LINE>if (!isEnabled()) {<NEW_LINE>LOGGER.debug("{} Analyzer is disabled skipping yarn executable check", getName());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final List<String> args = n...
LOGGER.debug("The {} has been disabled. Yarn executable was not found.", ex);
1,428,151
public Option<Histogram>[] buildHistograms(int[] sampleFeats, int featLo, Option<FeatureRow>[] featureRows, FeatureInfo featureInfo, DataInfo dataInfo, int nid, GradPair sumGradPair) throws Exception {<NEW_LINE>Option<Histogram>[] histograms = new Option[sampleFeats.length];<NEW_LINE>if (param.numThread > 1) {<NEW_LINE...
, nid, sumGradPair, histograms));
1,134,875
private void findUiChildren(JClassType ownerType) throws UnableToCompleteException {<NEW_LINE>while (ownerType != null) {<NEW_LINE>JMethod[] methods = ownerType.getMethods();<NEW_LINE>for (JMethod method : methods) {<NEW_LINE>UiChild annotation = method.getAnnotation(UiChild.class);<NEW_LINE>if (annotation != null) {<N...
.create(method, limit));
1,241,731
final ListSecurityConfigurationsResult executeListSecurityConfigurations(ListSecurityConfigurationsRequest listSecurityConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSecurityConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
215,851
public static CommentHeader readVorbisCommentHeader(ParsableByteArray headerData, boolean hasMetadataHeader, boolean hasFramingBit) throws ParserException {<NEW_LINE>if (hasMetadataHeader) {<NEW_LINE>verifyVorbisHeaderCapturePattern(/* headerType= */<NEW_LINE>0x03, headerData, /* quiet= */<NEW_LINE>false);<NEW_LINE>}<N...
comments[i].length();
303,034
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>cbSkip = new javax.swing.JCheckBox();<NEW_LINE>lblMessage = new javax.swing.JLabel();<NEW_LINE>setMinimumSize(new java.awt.Dimension(450, 112));<NEW_LINE>setPreferredSize(new java....
java.awt.BorderLayout.NORTH);
1,000,329
void showCameraWindowForImage(String destinationFile) {<NEW_LINE>MediaEventGenerator eventGenerator = new ImagePickerEventGenerator();<NEW_LINE>String outputFile = destinationFile;<NEW_LINE>if (outputFile == null) {<NEW_LINE>java.io.File saveDirectory = this.getApplicationContext().getCacheDir();<NEW_LINE>saveDirectory...
android.net.Uri imageUri = null;
538,622
protected boolean isProtocolInfoMatch(List<ProtocolInfo> supportedProtocols, Res resource) {<NEW_LINE>ProtocolInfo resourceProtocolInfo = resource.getProtocolInfo();<NEW_LINE>if (!resourceProtocolInfo.getProtocol().equals(Protocol.HTTP_GET))<NEW_LINE>return false;<NEW_LINE>MimeType resourceMimeType;<NEW_LINE>try {<NEW_...
"Illegal resource mime type: " + resourceProtocolInfo.getContentFormat());
485,328
public RFuture<Map<K, V>> readAllMapAsync() {<NEW_LINE>Map<K, V> result = new HashMap<K, V>();<NEW_LINE>List<Object> mapKeys = new ArrayList<Object>();<NEW_LINE>for (CacheValue value : cache.values()) {<NEW_LINE>if (value == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>mapKeys.add(encodeMapKey(value.getKey()));<NEW_L...
return new CompletableFutureWrapper<>(result);
228,254
private static InetSocketAddress createInetSocketAddress(String address) throws UnknownHostException {<NEW_LINE>final char firstChar = address.charAt(0);<NEW_LINE>if (firstChar == '_' || (firstChar == 'u' && "unknown".equals(address))) {<NEW_LINE>// To early return when the address is not an IP address.<NEW_LINE>// - a...
hostAndPort = HostAndPort.fromString(addr);
398,465
public Result process(CvPipeline pipeline) throws Exception {<NEW_LINE>if (contoursStageName == null || contoursStageName.trim().isEmpty()) {<NEW_LINE>throw new Exception("contoursStageName is required.");<NEW_LINE>}<NEW_LINE>Result result = pipeline.getExpectedResult(contoursStageName);<NEW_LINE>if (result.model == nu...
getExpectedListModel(MatOfPoint.class, null);
229,640
private void processLevel(final int currentLevel) {<NEW_LINE>final int fromLayerIndex = this.layerIndex[currentLevel + 1];<NEW_LINE>final int toLayerIndex = this.layerIndex[currentLevel];<NEW_LINE>final int fromLayerSize = this.layerCounts[currentLevel + 1];<NEW_LINE>final int <MASK><NEW_LINE>double dropoutRate = 0;<NE...
toLayerSize = this.layerFeedCounts[currentLevel];
823,024
protected void updateToolbar(int verticalOffset) {<NEW_LINE>float absOffset = Math.abs(verticalOffset);<NEW_LINE>float totalScrollRange = appBar.getTotalScrollRange();<NEW_LINE>boolean collapsed = totalScrollRange > 0 && Math.abs(verticalOffset) == totalScrollRange;<NEW_LINE>float alpha = ColorUtilities.getProportional...
, Math.abs(verticalOffset));
806,158
// snippet-start:[kendra.java2.index.main]<NEW_LINE>public static String createIndex(KendraClient kendra, String indexDescription, String indexName, String indexRoleArn) {<NEW_LINE>try {<NEW_LINE>System.out.println("Creating an index named " + indexName);<NEW_LINE>CreateIndexRequest createIndexRequest = CreateIndexRequ...
createIndexResponse = kendra.createIndex(createIndexRequest);
1,047,501
private Mono<PagedResponse<DatadogMonitorResourceInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_...
.nextLink(), null));
387,596
private static EntityData.RunLengthEncoding8 runLengthEncode8(TeraArray array) {<NEW_LINE>EntityData.RunLengthEncoding8.Builder builder = EntityData.RunLengthEncoding8.newBuilder();<NEW_LINE>TByteList values = new TByteArrayList(16384);<NEW_LINE>byte lastItem = (byte) array.get(0, 0, 0);<NEW_LINE>int counter = 0;<NEW_L...
(values.toArray()));
1,170,617
public Network implement(final Network network, final NetworkOffering offering, final DeployDestination dest, final ReservationContext context) throws InsufficientVirtualNetworkCapacityException {<NEW_LINE>assert network.getState() == State.Implementing : "Why are we implementing " + network;<NEW_LINE>final long dcId =...
physicalNetworkId, offering.isRedundantRouter());
483,660
public ReadableState<Iterator<Map.Entry<KeyT, ValueT>>> readIterator() {<NEW_LINE>final ByteArray maxKey = createMaxKey();<NEW_LINE>final KeyValueIterator<ByteArray, StateValue<ValueT>> kvIter = store.<MASK><NEW_LINE>openIterators.add(kvIter);<NEW_LINE>return new ReadableState<Iterator<Map.Entry<KeyT, ValueT>>>() {<NEW...
range(getEncodedStoreKey(), maxKey);
800,085
// private Ehcache cache = ApplicationCache.instance().getCache(File.class);<NEW_LINE>ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, String applicationFlag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo...
getClass(), flag, applicationFlag);
393,072
private static Object[] format(String me, TraceComponent tc, String msgKey, Object objs) {<NEW_LINE>String resourceBundle = tc.getResourceBundleName();<NEW_LINE>TraceNLS nls = TraceNLS.getTraceNLS(resourceBundle);<NEW_LINE>Object[] objs1 = new Object[] { null };<NEW_LINE>if (objs != null) {<NEW_LINE>if (objs.getClass()...
Object[] { me, formattedMsg };
1,214,615
private Identity createIdentity(Business business, PullResult result, Person person, Unit unit, User user, Long order) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>emc.beginTransaction(Identity.class);<NEW_LINE>Identity identity = new Identity();<NEW_LINE>identity...
setUnitLevel(unit.getLevel());
1,407,406
private static void updateNaturalId(EntityManagerFactory emf, Map<String, Counts> counts) {<NEW_LINE>Statistics stats = getStatistics(emf);<NEW_LINE>EntityManager em = emf.createEntityManager();<NEW_LINE><MASK><NEW_LINE>transaction.begin();<NEW_LINE>final Session session = em.unwrap(Session.class);<NEW_LINE>final Natur...
EntityTransaction transaction = em.getTransaction();
1,306,060
protected void readData(int piece_number, int piece_offset, int length, ExternalSeedHTTPDownloaderListener listener) throws ExternalSeedException {<NEW_LINE>long piece_end = piece_offset + length - 1;<NEW_LINE>String str = url_prefix + "&piece=" + piece_number + "&ranges=" + piece_offset + "-" + piece_end;<NEW_LINE>set...
new ExternalSeedException("URL encode fails", e));
985,151
protected void rebalanceForBroker(Broker broker, ClusterModel clusterModel, Set<Goal> optimizedGoals, OptimizationOptions optimizationOptions) {<NEW_LINE>double balanceThreshold = balanceThreshold(clusterModel, broker.id());<NEW_LINE>if (broker.leadershipLoadForNwResources().expectedUtilizationFor(Resource.NW_IN) < bal...
Replica leaderReplica = leaderReplicaIt.next();
311,893
private List<ConfigAttribute> processAnnotations(Annotation[] annotations) {<NEW_LINE>if (annotations == null || annotations.length == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<ConfigAttribute> attributes = new ArrayList<ConfigAttribute>();<NEW_LINE>// Process DenyAll, Permit all, then Roles, then Keys<NEW_LI...
attributes.add(ConsumerSecurityConfig.DENY_ALL_ATTRIBUTE);
1,452,314
private static final void exportSequence0(Configuration configuration, InformationSchema result, Sequence<?> q) {<NEW_LINE>org.jooq.util.xml.jaxb.Sequence iq = new org.jooq.util.xml.jaxb.Sequence();<NEW_LINE>String catalogName = catalogName(q);<NEW_LINE>String schemaName = schemaName(q);<NEW_LINE>if (!isBlank(catalogNa...
getDataType().scale());
1,831,630
private static void maybeAddVarargsPreamble(Variable varargsParameter, Block body) {<NEW_LINE>ArrayTypeDescriptor varargsParameterTypeDescriptor = (ArrayTypeDescriptor) varargsParameter.getTypeDescriptor();<NEW_LINE>if (varargsParameterTypeDescriptor.isUntypedArray()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// TODO(b/36...
(body.getSourcePosition()));
619,824
private void extractAndPutDataTo(ExtensionTabData.Builder extensionTab, ExtensionDescription description, ResultSet set) throws SQLException {<NEW_LINE>String groupValue = set.getString("group_value");<NEW_LINE>if (groupValue != null) {<NEW_LINE>extensionTab.putGroupData(ExtensionStringData.regularString(description, g...
set.getDouble(ExtensionPlayerValueTable.DOUBLE_VALUE);
1,782,495
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.iiordanov.bVNC.input.InputHandlerDirectSwipePan#onScroll(android.view.MotionEvent, android.view.MotionEvent, float, float)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {<NEW_LINE>// If we...
= canvas.canvasZoomer.getZoomFactor();
1,100,392
private void Bind() {<NEW_LINE>SettingValues.expandedSettings = true;<NEW_LINE>setSettingItems();<NEW_LINE>final ScrollView mScrollView = ((ScrollView) findViewById(R.id.base));<NEW_LINE>prefsListener = new SharedPreferences.OnSharedPreferenceChangeListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onShared...
ViewTreeObserver observer = mScrollView.getViewTreeObserver();
1,024,372
static String doString(String self, int tabsize) {<NEW_LINE>StringBuilder sb = PythonUtils.newStringBuilder(self.length());<NEW_LINE>int linePos = 0;<NEW_LINE>// It's ok to iterate with charAt, we just pass surrogates through<NEW_LINE>for (int i = 0; i < self.length(); i++) {<NEW_LINE>char ch = PString.charAt(self, i);...
= tabsize - (linePos % tabsize);
1,306,400
protected List<String> enumConstantsOf(Dbms dbms, Table table, String columnName) throws SQLException {<NEW_LINE>final DbmsType dbmsType = dbmsTypeOf(dbmsHandlerComponent, dbms);<NEW_LINE>final DatabaseNamingConvention naming = dbmsType.getDatabaseNamingConvention();<NEW_LINE>final String sql = String.format("show colu...
ps = conn.prepareStatement(sql);
839,267
protected PreloaderCallback createPreloaderPanel(String logoUrl) {<NEW_LINE>final Panel preloaderPanel = new VerticalPanel();<NEW_LINE>preloaderPanel.setStyleName("gdx-preloader");<NEW_LINE>final Image logo = new Image(logoUrl);<NEW_LINE>logo.setStyleName("logo");<NEW_LINE>preloaderPanel.add(logo);<NEW_LINE>final Panel...
setWidth(0, Unit.PCT);
393,277
public static void createPdfCanvasDataUrl(Diagram diagram, DownloadPopupPanel receiver, DownloadType type) {<NEW_LINE>ThemeFactory.THEMES currentTheme = ThemeFactory.getActiveThemeEnum();<NEW_LINE>ThemeFactory.changeTheme(ThemeFactory.THEMES.LIGHT, null, false);<NEW_LINE>// Calculate and set canvas width<NEW_LINE>Recta...
changeTheme(currentTheme, null, true);
1,320,944
private static ImmutableList<RecordRefWithLogEntry> deriveLocationLogEntries(@NonNull final TableRecordReference recordRef, @NonNull final ImmutableList<I_C_Location> unOrderedLocationRecords) {<NEW_LINE>final POInfo poInfo = POInfo.getPOInfo(I_C_Location.Table_Name);<NEW_LINE>final ImmutableList.Builder<RecordRefWithL...
newRecord = orderedLocationRecords.get(recordIdx);
91,118
private // by SmallRye GraphQL<NEW_LINE>GraphQLClientConfiguration toSmallRyeNativeConfiguration(GraphQLClientConfig quarkusConfig) {<NEW_LINE>GraphQLClientConfiguration transformed = new GraphQLClientConfiguration();<NEW_LINE>transformed.setHeaders(quarkusConfig.headers);<NEW_LINE>quarkusConfig.url.ifPresent(transform...
executeSingleResultOperationsOverWebsocket.ifPresent(transformed::setExecuteSingleOperationsOverWebsocket);
1,397,985
@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Generates an API key and returns its value", response = ApiKey.class, code = 201)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 401, message = "Unauthorized"), @ApiResponse(code = 404, message = "The team could not be found") })<NEW_LINE>@Perm...
apiKey = qm.createApiKey(team);
1,289,848
private Collection<? extends GradleActionsProvider> providers() {<NEW_LINE>if (providers != null) {<NEW_LINE>return providers.allInstances();<NEW_LINE>}<NEW_LINE>LOG.log(Level.FINER, "Initializing providers lookup for: {0}", project);<NEW_LINE>Lookup combined = new ProxyLookup(Lookup.getDefault(), project.getLookup());...
combined.lookupResult(GradleActionsProvider.class);
718,472
public static void commentMonitors(List<Op03SimpleStatement> statements) {<NEW_LINE>List<Op03SimpleStatement> monitors = Functional.filter(statements, new TypeFilter<MonitorStatement>(MonitorStatement.class));<NEW_LINE>if (monitors.isEmpty())<NEW_LINE>return;<NEW_LINE>for (Op03SimpleStatement monitor : monitors) {<NEW_...
> sourceBlocks = source.getBlockIdentifiers();
627,715
private void _deleteDefinitionMetadata(@Nullable final List<QualifiedName> names) {<NEW_LINE>if (names != null && !names.isEmpty()) {<NEW_LINE>final SqlParameterValue[] aNames = names.stream().filter(name -> !name.isPartitionDefinition()).map(n -> new SqlParameterValue(Types.VARCHAR, n)).toArray(SqlParameterValue[]::ne...
collect(Collectors.toList());
971,602
protected Map<String, Object> handleCommonTaskFields(TaskEntity task) {<NEW_LINE>Map<String, Object> data = new HashMap<>();<NEW_LINE>putInMapIfNotNull(data, Fields.ID, task.getId());<NEW_LINE>putInMapIfNotNull(data, Fields.NAME, task.getName());<NEW_LINE>putInMapIfNotNull(data, Fields.TASK_DEFINITION_KEY, task.getTask...
TENANT_ID, task.getTenantId());
624,871
public static void deleteLifecycle(HandlerContext handlerCtx) {<NEW_LINE>List<Map<String, Object>> selectedList = (List<Map<String, Object>>) handlerCtx.getInputValue("selectedList");<NEW_LINE>String endpoint = <MASK><NEW_LINE>Map<String, Object> attrs = new HashMap<>();<NEW_LINE>try {<NEW_LINE>for (Map<String, Object>...
GuiUtil.getSessionValue(REST_URL) + "/applications/application/delete-lifecycle-module";
115,829
final DeleteAccountCustomizationResult executeDeleteAccountCustomization(DeleteAccountCustomizationRequest deleteAccountCustomizationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAccountCustomizationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecut...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
503,458
private Cell parseCellInfo(CellInfo info) {<NEW_LINE>try {<NEW_LINE>if (info instanceof CellInfoGsm) {<NEW_LINE>CellIdentityGsm identity = ((CellInfoGsm) info).getCellIdentity();<NEW_LINE>if (identity.getMcc() == Integer.MAX_VALUE)<NEW_LINE>return null;<NEW_LINE>CellSignalStrengthGsm strength = ((<MASK><NEW_LINE>return...
CellInfoGsm) info).getCellSignalStrength();
636,234
public // todo: add IP?<NEW_LINE>void // todo: add IP?<NEW_LINE>updateProjectPermission(// todo: add IP?<NEW_LINE>final Project project, // todo: add IP?<NEW_LINE>final String name, // todo: add IP?<NEW_LINE>final Permission perm, // todo: add IP?<NEW_LINE>final boolean group, final User modifier) throws ProjectManager...
eventData.put("updatedUser", "null");
1,271,036
public Integer call() throws Exception {<NEW_LINE>try {<NEW_LINE>output.debug("Creating a new project with initial parameters: %s", this);<NEW_LINE>output.throwIfUnmatchedArguments(spec.commandLine());<NEW_LINE>setSingleProjectGAV(gav);<NEW_LINE>setTestOutputDirectory(output.getTestDirectory());<NEW_LINE>if (checkProje...
execute(invocation).isSuccess();
483,712
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>Dialog res = super.onCreateDialog(savedInstanceState);<NEW_LINE>res.requestWindowFeature(Window.FEATURE_NO_TITLE);<NEW_LINE>View content = View.inflate(getActivity(), R.layout.fragment_storage_permissions, null);<NEW_LINE>res.setContentView(content);<NE...
findViewById(R.id.tv__title);
224,020
public static void registerClassDesiredAssertionStatusPlugin(InvocationPlugins plugins, SnippetReflectionProvider snippetReflection) {<NEW_LINE>Registration r = new Registration(plugins, Class.class);<NEW_LINE>r.register(new RequiredInvocationPlugin("desiredAssertionStatus", Receiver.class) {<NEW_LINE><NEW_LINE>@Overri...
, ConstantNode.forBoolean(desiredAssertionStatus));
1,707,554
Optional<Long> readFileAttributeAsLong(Path file, String attribute, UserDefinedFileAttributeView view, List<String> knownAttributes) {<NEW_LINE>if (knownAttributes.contains(attribute)) {<NEW_LINE>try {<NEW_LINE>LOG.trace("Attempting to read attribute {}, from file {}", attribute, file);<NEW_LINE>ByteBuffer buf = ByteBu...
debug("No attrbiute {} found for file {}", attribute, file);
1,842,490
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>Cards cards = new CardsImpl(controller.getLibrary().getTopCards(game, 5));<NEW_LINE>if (!cards.isEmpty()) {<NEW_LINE>FilterCard filterPutInHand = new Filte...
Zone.HAND, source, game);
953,831
private RefactoringStatus initialize(JavaRefactoringArguments arguments) {<NEW_LINE>final String selection = arguments.getAttribute(JavaRefactoringDescriptorUtil.ATTRIBUTE_SELECTION);<NEW_LINE>if (selection != null) {<NEW_LINE>int offset = -1;<NEW_LINE>int length = -1;<NEW_LINE>final StringTokenizer tokenizer = new Str...
(RefactoringCoreMessages.InitializableRefactoring_argument_not_exist, ATTRIBUTE_QUALIFY));
1,761,228
private void writeParent(Parent parent, String tagName, XmlSerializer serializer) throws java.io.IOException {<NEW_LINE>serializer.startTag(NAMESPACE, tagName);<NEW_LINE>flush(serializer);<NEW_LINE>StringBuffer b = b(serializer);<NEW_LINE>int start = b.length();<NEW_LINE>if (parent.getGroupId() != null) {<NEW_LINE>writ...
parent.getVersion(), parent);
510,166
public void decryptAndDecompressRecord(AbstractRecord record) {<NEW_LINE>if (record instanceof Record) {<NEW_LINE>if (!tlsContext.getChooser().getSelectedProtocolVersion().isTLS13() || (tlsContext.getChooser().getSelectedProtocolVersion().isTLS13() && record.getContentMessageType() == ProtocolMessageType.APPLICATION_DA...
setUsedTls13KeySetType(tlsContext.getActiveKeySetTypeRead());
813,318
private void onTableChange(@Nonnull TableModelEvent e) {<NEW_LINE>final int signum;<NEW_LINE>switch(e.getType()) {<NEW_LINE>case TableModelEvent.INSERT:<NEW_LINE>signum = 1;<NEW_LINE>break;<NEW_LINE>case TableModelEvent.DELETE:<NEW_LINE>signum = -1;<NEW_LINE>for (int i = e.getLastRow(); i >= e.getFirstRow(); i--) {<NEW...
getLastRow() + 1) * signum;
792,730
public static void interleavedToBuffered(InterleavedU8 src, DataBufferInt buffer, WritableRaster dst) {<NEW_LINE>if (src.getNumBands() != dst.getNumBands())<NEW_LINE>throw new IllegalArgumentException("Unequal number of bands src = " + src.getNumBands() + " dst = " + dst.getNumBands());<NEW_LINE>final int[] dstData = b...
.data[indexSrc++] & 0xFF;
577,095
public void add(String groupKey, Object result) {<NEW_LINE>Comparable newKey = _aggregationFunction.extractFinalResult(result);<NEW_LINE>ImmutablePair<String, Object> groupKeyResultPair = new ImmutablePair<>(groupKey, result);<NEW_LINE>List<ImmutablePair<String, Object>> groupKeyResultPairs = _treeMap.get(newKey);<NEW_...
> maxEntry = _treeMap.lastEntry();
958,851
public void addHistoricTaskLogEntry(TaskInfo task, String logEntryType, String data) {<NEW_LINE>if (this.configuration.isEnableHistoricTaskLogging()) {<NEW_LINE>HistoricTaskLogEntryEntity taskLogEntry = getHistoricTaskLogEntryEntityManager().create();<NEW_LINE>taskLogEntry.setTaskId(task.getId());<NEW_LINE>taskLogEntry...
setProcessInstanceId(task.getProcessInstanceId());
1,840,699
public Attributes createFileMetaInformation(String iuid, String cuid, String tsuid) {<NEW_LINE><MASK><NEW_LINE>fmi.setBytes(Tag.FileMetaInformationVersion, VR.OB, new byte[] { 0, 1 });<NEW_LINE>fmi.setString(Tag.MediaStorageSOPClassUID, VR.UI, cuid);<NEW_LINE>fmi.setString(Tag.MediaStorageSOPInstanceUID, VR.UI, iuid);<...
Attributes fmi = new Attributes(7);
449,829
public final Iterator<V> valuesIterator() {<NEW_LINE>return new Iterator<V>() {<NEW_LINE><NEW_LINE>private final Iterator<CacheEntry<K, V>> iterator = cache<MASK><NEW_LINE><NEW_LINE>private volatile boolean hasNextCalled;<NEW_LINE><NEW_LINE>private volatile CacheEntry<K, V> nextEntry;<NEW_LINE><NEW_LINE>@Override<NEW_L...
.values().iterator();
773,915
private static int readHeaderBuffer(BytesReference headerBuffer) throws IOException {<NEW_LINE>if (headerBuffer.get(0) != 'E' || headerBuffer.get(1) != 'S') {<NEW_LINE>if (appearsToBeHTTPRequest(headerBuffer)) {<NEW_LINE>throw new HttpRequestOnTransportException("This is not a HTTP port");<NEW_LINE>}<NEW_LINE>if (appea...
throw new StreamCorruptedException("SSL/TLS request received but SSL/TLS is not enabled on this node, got " + firstBytes);
1,288,583
public static void main(String[] args) {<NEW_LINE>CharsetDecoder dec = Charset.forName("UTF-8").newDecoder();<NEW_LINE>dec.onMalformedInput(CodingErrorAction.REPORT);<NEW_LINE>dec.onUnmappableCharacter(CodingErrorAction.REPORT);<NEW_LINE>byte[] bytes = { (byte) 0xF0, (byte) 0x9D, (byte) 0x80, (byte) 0x80 };<NEW_LINE>by...
System.out.println(byteBuf);
1,311,582
@Path("{name}")<NEW_LINE>@POST<NEW_LINE>@Consumes(APPLICATION_JSON)<NEW_LINE>public Response createOrUpdateSecret(@Auth AutomationClient automationClient, @PathParam("name") String name, @Valid CreateOrUpdateSecretRequestV2 request) {<NEW_LINE>SecretBuilder builder = secretController.builder(name, request.content(), au...
.class).path(name);
47,320
private void rescanIconPacks() {<NEW_LINE>_iconPacks.clear();<NEW_LINE>File[] dirs = _iconsBaseDir.listFiles();<NEW_LINE>if (dirs == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (File dir : dirs) {<NEW_LINE>if (!dir.isDirectory()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>UUID uuid;<NEW_LINE>try {<NEW_LINE>uuid = UU...
bytes = IOUtils.readAll(inStream);
398,657
public Builder mergeFrom(org.mlflow.api.proto.MlflowArtifacts.ListArtifacts.Response other) {<NEW_LINE>if (other == org.mlflow.api.proto.MlflowArtifacts.ListArtifacts.Response.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (filesBuilder_ == null) {<NEW_LINE>if (!other.files_.isEmpty()) {<NEW_LINE>if (files_.is...
filesBuilder_.addAllMessages(other.files_);
1,329,083
private void performRequest(AsyncCallback<Boolean> callback) {<NEW_LINE>xhr.setOnReadyStateChange(() -> {<NEW_LINE>if (xhr.getReadyState() != XMLHttpRequest.DONE) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>responseCode = xhr.getStatus();<NEW_LINE>responseMessage = xhr.getStatusText();<NEW_LINE>if (responseCode == 0) {<NEW_...
send(array.getBuffer());
308,266
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {<NEW_LINE>// Using SQLiteQueryBuilder instead of query() method<NEW_LINE>SQLiteQueryBuilder queryBuilder = new SQLiteQueryBuilder();<NEW_LINE>// Check if the caller has requested a column which does not exists...
throw new IllegalArgumentException("Unknown URI: " + uri);
307,747
private Mono<Response<Flux<ByteBuffer>>> createWithResponseAsync(String resourceGroupName, String monitorName, LogzMonitorResourceInner body, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and ...
this.client.mergeContext(context);
875,066
final DescribeHostsResult executeDescribeHosts(DescribeHostsRequest describeHostsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeHostsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,082,586
public void secureResponse(Object serverAuthConfig, StreamingHandler implementor, SOAPMessageContext msgContext) {<NEW_LINE>if (serverAuthConfig != null) {<NEW_LINE>ServerAuthConfig config = (ServerAuthConfig) serverAuthConfig;<NEW_LINE>SOAPMessage reqmsg = (req.get() != null) ? req.get().get() : msgContext.getMessage(...
.get().clear();
507,760
public ResultSetLoader makeTableLoader(CustomErrorContext errorContext, TupleMetadata readerSchema, long localLimit) {<NEW_LINE>ResultSetOptionBuilder options = new ResultSetOptionBuilder();<NEW_LINE>options.rowCountLimit(Math.min(readerBatchSize<MASK><NEW_LINE>options.vectorCache(scanOrchestrator.vectorCache);<NEW_LIN...
, scanOrchestrator.options.scanBatchRecordLimit));
1,553,731
private void createOrSelectContentIfNeeded() {<NEW_LINE>ToolWindow toolWindow = getToolWindow(myVcs.getProject());<NEW_LINE>if (myRefresherI.isFirstTime()) {<NEW_LINE>ContentManager manager = toolWindow.getContentManager();<NEW_LINE>boolean selectedExistingContent = ContentUtilEx.selectContent(manager, myFileHistoryPan...
ShortVcsRevisionNumber) myStartingRevisionNumber).toShortString();
506,868
public void findAndDisplayAppliedDataTypeAddresses(DataType dataType, FieldMatcher fieldMatcher) {<NEW_LINE>ProgramManager programManagerService = tool.getService(ProgramManager.class);<NEW_LINE>GoToService goToService = tool.getService(GoToService.class);<NEW_LINE>Program program = programManagerService.getCurrentProg...
provider = findProvider(locationDescriptor, navigatable);