idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,178,391 | final GetVocabularyResult executeGetVocabulary(GetVocabularyRequest getVocabularyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getVocabularyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Transcribe"); |
721,028 | private void registerFileExtension() {<NEW_LINE>try {<NEW_LINE>Regor winreg = new Regor();<NEW_LINE>if (jCheckBoxRegistry.isSelected()) {<NEW_LINE>Key regkey = winreg.openKey(Regor.HKEY_CLASSES_ROOT, ".zkn3");<NEW_LINE>if (null == regkey) {<NEW_LINE>regkey = winreg.<MASK><NEW_LINE>winreg.closeKey(regkey);<NEW_LINE>regk... | createKey(Regor.HKEY_CLASSES_ROOT, ".zkn3"); |
649,381 | public void updateDisplay(Import anImport, int pos) {<NEW_LINE>DB_SOURCE.setText(anImport.getDbSource());<NEW_LINE>RAT.setText(anImport.getRadioAccessTechnology());<NEW_LINE>MCC.setText(valueOf(anImport.getMobileCountryCode()));<NEW_LINE>MNC.setText(valueOf(anImport.getMobileNetworkCode()));<NEW_LINE>LAC.setText(valueO... | ().getLatitude())); |
424,628 | protected Object readProperty(String path, RedisData source, RedisPersistentProperty persistentProperty) {<NEW_LINE>String currentPath = !path.isEmpty() ? path + "." + persistentProperty.getName() : persistentProperty.getName();<NEW_LINE>TypeInformation<?> typeInformation = persistentProperty.getTypeInformation();<NEW_... | .getPropertyPath(currentPath), typeInformation); |
182,731 | private void processSettingAnnotation(Setting settingAnnotation, SettingsParameter settingsParameter) {<NEW_LINE>settingsParameter.useServerConfiguration = settingAnnotation.useServerConfiguration();<NEW_LINE>settingsParameter.settingPath = settingAnnotation.settingPath();<NEW_LINE>settingsParameter.shards = settingAnn... | property.getRequiredAnnotation(Field.class); |
1,545,792 | public void retireApi(Api api, final IAsyncResultHandler<Void> handler) {<NEW_LINE>final String id = getApiId(api);<NEW_LINE>try {<NEW_LINE>DeleteRequest deleteRequest = new DeleteRequest(getIndexPrefix() + EsConstants.INDEX_APIS).id(id).setRefreshPolicy(WriteRequest.RefreshPolicy.IMMEDIATE);<NEW_LINE>DeleteResponse re... | create((Void) null)); |
473,612 | public List<Pair<String, String>> export(Node node, ProgressReporter progressReporter) {<NEW_LINE>final String name = (String) node.getProperty(SystemPropertyKeys.name.name());<NEW_LINE>final String query = (String) node.getProperty(SystemPropertyKeys.statement.name());<NEW_LINE>try {<NEW_LINE>final String selector = t... | name, query, selector, params); |
1,263,638 | boolean registerUsingNextAddress() {<NEW_LINE>if (connection == null)<NEW_LINE>return false;<NEW_LINE>try {<NEW_LINE>if (sipRegistrarConnection.isRegistrarless()) {<NEW_LINE>sipRegistrarConnection.setTransport(getDefaultTransport());<NEW_LINE>sipRegistrarConnection.register();<NEW_LINE>return true;<NEW_LINE>} else if (... | logger.error("Cannot send register!", e); |
1,145,536 | void scoreViewsSelectStereoPairs(SceneStructureMetric scene) {<NEW_LINE>for (int i = 0; i < arrayScores.size; i++) {<NEW_LINE>ViewInfo center = arrayScores.get(i);<NEW_LINE>List<StereoPairGraph.Edge> pairs = center.relations.pairs;<NEW_LINE>BundleAdjustmentCamera candidateCamera = scene.cameras.get(center.metric.camera... | 0.0 && pair.quality3D <= 1.0); |
1,794,294 | public static <CT extends TServiceClient, RT> RT executeRaw(ClientContext context, TServiceClientFactory<CT> factory, ClientExecReturn<RT, CT> exec) throws Exception {<NEW_LINE>while (true) {<NEW_LINE>CT client = null;<NEW_LINE>String server = null;<NEW_LINE>try {<NEW_LINE>Pair<String, CT> pair = ServerClient.<MASK><NE... | getConnection(context, factory, true); |
1,287,532 | // ===== get AccessToken authorisation code flow methods =====<NEW_LINE>protected OAuthRequest createAccessTokenRequest(AccessTokenRequestParams params) {<NEW_LINE>final OAuthRequest request = new OAuthRequest(api.getAccessTokenVerb(), api.getAccessTokenEndpoint());<NEW_LINE>api.getClientAuthentication().addClientAuthe... | CODE, params.getCode()); |
707,978 | public void run(TaskMonitor monitor) {<NEW_LINE>if (plugin.isTaskInProgress()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>DiffController dc = null;<NEW_LINE>plugin.setTaskInProgress(true);<NEW_LINE>monitor.setIndeterminate(true);<NEW_LINE>monitor.setMessage("Checking Program Differences");<NEW_LINE>try {<NEW... | setLocation(plugin.getCurrentAddress()); |
599,996 | public static VectorMeasurementSchema deserializeFrom(ByteBuffer buffer) {<NEW_LINE>VectorMeasurementSchema vectorMeasurementSchema = new VectorMeasurementSchema();<NEW_LINE>vectorMeasurementSchema.deviceId = ReadWriteIOUtils.readString(buffer);<NEW_LINE>int <MASK><NEW_LINE>Map<String, Integer> measurementsToIndexMap =... | measurementSize = ReadWriteIOUtils.readInt(buffer); |
1,150,550 | public T call() {<NEW_LINE>try {<NEW_LINE>// allow preprocessing<NEW_LINE>preprocess();<NEW_LINE>final StringBuilder commandLine = getCommandLine();<NEW_LINE>if (commandLine != null) {<NEW_LINE>cmd = commandLine.toString();<NEW_LINE>String[] args = { "/bin/sh", "-c", cmd };<NEW_LINE>logger.info("Executing {}", cmd);<NE... | proc.getErrorStream(), running); |
856,605 | private void showPopUpInCurrentThread() {<NEW_LINE>popup.setVisible(false);<NEW_LINE>if (textBox.isEnabled() && updateListData() && listBox.getModel().getSize() != 0) {<NEW_LINE>if (!(textBox instanceof JTextField)) {<NEW_LINE>textBox.getDocument().addDocumentListener(documentListener);<NEW_LINE>}<NEW_LINE>textBox.regi... | .getModel().getSize(); |
461,062 | private long updateStatus() {<NEW_LINE>Set<TServerInstance<MASK><NEW_LINE>TreeMap<TabletServerId, TServerStatus> temp = new TreeMap<>();<NEW_LINE>tserverStatus = gatherTableInformation(currentServers, temp);<NEW_LINE>tserverStatusForBalancer = Collections.unmodifiableSortedMap(temp);<NEW_LINE>checkForHeldServer(tserver... | > currentServers = tserverSet.getCurrentServers(); |
1,395,035 | protected Set<String> lookForLocalVariables(CtElement parent) {<NEW_LINE>Set<String> result = new HashSet<>();<NEW_LINE>// try to get the block container<NEW_LINE>// if the first container is the class, then we are not in a block and we can quit now.<NEW_LINE>while (parent != null && !(parent instanceof CtBlock)) {<NEW... | add(variable.getSimpleName()); |
186,784 | private static LineSegment outerTangent(Coordinate c1, double r1, Coordinate c2, double r2) {<NEW_LINE>if (r1 > r2) {<NEW_LINE>LineSegment seg = outerTangent(c2, r2, c1, r1);<NEW_LINE>return new LineSegment(<MASK><NEW_LINE>}<NEW_LINE>double x1 = c1.getX();<NEW_LINE>double y1 = c1.getY();<NEW_LINE>double x2 = c2.getX();... | seg.p1, seg.p0); |
1,146,672 | private ControlNotFlushed createControlNotFlushed(SIBUuid12 stream, long reqID) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createControlNotFlushed", new Object[] { stream, new Long(reqID) });<NEW_LINE>ControlNotFlushed notFlushedMsg;<... | notFlushedMsg.setPriority(SIMPConstants.CTRL_MSG_PRIORITY); |
745,796 | public void marshall(CreateStageRequest createStageRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createStageRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createStageRequest.getRestApiI... | createStageRequest.getVariables(), VARIABLES_BINDING); |
976,022 | public byte[] readMessage(int index) throws IOException {<NEW_LINE>int blockAddress = 0;<NEW_LINE>int blockOffset = 0;<NEW_LINE>m_indexFile.seek(index * 6L);<NEW_LINE>blockAddress = m_indexFile.readInt();<NEW_LINE>blockOffset = m_indexFile.readShort() & 0xFFFF;<NEW_LINE>m_dataFile.seek(blockAddress);<NEW_LINE>byte[] bu... | ] data = new byte[len]; |
1,465,433 | public Metric find(String id) {<NEW_LINE>Metric rec = new Metric();<NEW_LINE>// Create temp object and look in cache for it<NEW_LINE>((Metric_base) rec).initialize(id);<NEW_LINE>rec = (Metric) GenOrmDataSource.getGenOrmConnection().<MASK><NEW_LINE>java.sql.PreparedStatement genorm_statement = null;<NEW_LINE>java.sql.Re... | getCachedRecord(rec.getRecordKey()); |
202,381 | public boolean payCreditMemo(MInvoice creditNote, BigDecimal amount) {<NEW_LINE>int invoiceId = order.getC_Invoice_ID();<NEW_LINE>if (invoiceId == 0)<NEW_LINE>return false;<NEW_LINE>MPayment <MASK><NEW_LINE>if (payment.getC_Invoice_ID() > 0)<NEW_LINE>payment.setC_Invoice_ID(0);<NEW_LINE>if (payment.getC_Order_ID() > 0)... | payment = createPayment(MPayment.TENDERTYPE_Account); |
94,192 | public void marshall(CreateScheduledQueryRequest createScheduledQueryRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createScheduledQueryRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cre... | createScheduledQueryRequest.getNotificationConfiguration(), NOTIFICATIONCONFIGURATION_BINDING); |
566,359 | public State mouseWheelMoved(Widget widget, WidgetMouseWheelEvent event) {<NEW_LINE><MASK><NEW_LINE>int modifiers = scene.getInputBindings().getZoomActionModifiers();<NEW_LINE>if ((event.getModifiers() & modifiers) != modifiers)<NEW_LINE>return State.REJECTED;<NEW_LINE>int amount = event.getWheelRotation();<NEW_LINE>if... | Scene scene = widget.getScene(); |
1,559,268 | public void map(Text key, LongWritable value, OutputCollector<Text, Text> output, Reporter reporter) throws IOException {<NEW_LINE>String name = key.toString();<NEW_LINE>long longValue = value.get();<NEW_LINE>reporter.setStatus("starting " + name + " ::host = " + hostName);<NEW_LINE>AtomicLong execTime = new AtomicLong... | "finished " + name + " ::host = " + hostName); |
858,180 | void convertToNodes() throws CanonicalizationException, ParserConfigurationException, IOException, SAXException {<NEW_LINE>DocumentBuilder db = XMLUtils.createDocumentBuilder(false, secureValidation);<NEW_LINE>// select all nodes, also the comments.<NEW_LINE>try {<NEW_LINE>db.setErrorHandler(new org.docx4j.org.apache.x... | security.utils.IgnoreAllErrorHandler()); |
494,589 | public static void main(final String[] args) {<NEW_LINE>// ---------------------------------------------------------------------------------------------<NEW_LINE>// Instantiate a corpus. The corpus is the collection of all documents and folders created<NEW_LINE>// or discovered while navigating objects and paths.<NEW_L... | final CdmCorpusDefinition cdmCorpus = new CdmCorpusDefinition(); |
1,657,636 | public void paint(Graphics g) {<NEW_LINE><MASK><NEW_LINE>int idx = 0;<NEW_LINE>boolean indent = false;<NEW_LINE>Matrix weights = this.network.getWeights();<NEW_LINE>for (int y = 0; y < this.height; y++) {<NEW_LINE>for (int x = 0; x < this.width; x++) {<NEW_LINE>int index = (y * this.width) + x;<NEW_LINE>int red = conve... | FontMetrics fm = g.getFontMetrics(); |
19,057 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String stmtTextCreateOne = namedWindow ? "@name('create') @public create window MyInfraDC#keepall as (f1 string, f2 int, f3 string, f4 string)" : "@name('create') @public create table MyInfraDC as (f1 string prima... | env.compileDeploy("@name('indexOne') create index MyInfraDCIndex1 on MyInfraDC(f1)", path); |
242,722 | final DeleteConnectionResult executeDeleteConnection(DeleteConnectionRequest deleteConnectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteConnectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
963,342 | public Pair<ConnectionResultType, Object[]> upload() throws UnknownHttpResponseException {<NEW_LINE>// make sure it's ok before we try to upload<NEW_LINE>mCon.publishProgress(R.string.sync_check_upload_file);<NEW_LINE>if (!"ok".equalsIgnoreCase(mCol.getDb().queryString("PRAGMA integrity_check"))) {<NEW_LINE>return new ... | Pair<>(DB_ERROR, null); |
247,466 | final StopLaunchResult executeStopLaunch(StopLaunchRequest stopLaunchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopLaunchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
664,178 | protected void testFactoryAndOtherAppScopedInjectionsByApp(String contextRoot, LibertyServer server) throws Exception {<NEW_LINE>try (WebClient webClient = new WebClient()) {<NEW_LINE>// Construct the URL for the test<NEW_LINE>URL url = JSFUtils.createHttpUrl(server, contextRoot, "FactoryInfo.jsf");<NEW_LINE>HtmlPage p... | , output.contains("FactoryCount:12")); |
1,694,621 | public Boolean call(StoreTransaction txh) throws BackendException {<NEW_LINE>ListMultimap<StaticBuffer, Entry<MASK><NEW_LINE>for (MessageEnvelope env : msgEnvelopes) {<NEW_LINE>mutations.put(env.key, env.entry);<NEW_LINE>long ts = env.entry.getColumn().getLong(0);<NEW_LINE>log.debug("Preparing to write {} to storage wi... | > mutations = ArrayListMultimap.create(); |
508,657 | protected List<ProcessDefinitionEntity> findProcessDefinition(CommandContext commandContext) {<NEW_LINE>// If process definition is already provided (eg. when command is called through the DeployCmd)<NEW_LINE>// we don't need to do an extra database fetch and we can simply return it, wrapped in a list<NEW_LINE>if (proc... | (commandContext).processDefinitionKey(processDefinitionKey); |
1,440,102 | private double[] trainWeightsUsingNonLinearCRF(AbstractCachingDiffFunction func, Evaluator[] evaluators) {<NEW_LINE>Minimizer<DiffFunction> <MASK><NEW_LINE>double[] initialWeights;<NEW_LINE>if (flags.initialWeights == null) {<NEW_LINE>initialWeights = func.initial();<NEW_LINE>} else {<NEW_LINE>log.info("Reading initial... | minimizer = getMinimizer(0, evaluators); |
1,619,762 | private List<InsPersistenceLabel> filterLabelNeededInsert(List<InsPersistenceLabel> insLabels, boolean needLock) {<NEW_LINE>List<InsPersistenceLabelSearchVo> labelSearchVos = insLabels.stream().map(InsPersistenceLabelSearchVo::new).collect(Collectors.toList());<NEW_LINE>List<InsPersistenceLabel> storedLabels = new Arra... | Integer labelId = storedLabel.getId(); |
1,016,975 | protected List<String> bestGuessLossVariables() {<NEW_LINE>List<String> <MASK><NEW_LINE>for (Variable v : variables.values()) {<NEW_LINE>if (// Exclude constants and placeholders<NEW_LINE>// Exclude variables that are inputs to ops<NEW_LINE>v.getVariable().isConstant() || v.getVariable().isPlaceHolder() || // Exclude v... | out = new ArrayList<>(); |
741,612 | public void init(Map<String, Object> params) {<NEW_LINE>super.init(params);<NEW_LINE>if (exception != null) {<NEW_LINE>Label<String> traceLabel = uiComponents.create(Label.NAME);<NEW_LINE>traceLabel.setValue(getExceptionMessage(exception));<NEW_LINE>traceLabel.withUnwrapped(com.vaadin.ui.Label.class, vLabel -> vLabel<M... | .setContentMode(ContentMode.PREFORMATTED)); |
1,576,497 | public static PolicyDefinitionBean unmarshallPolicyDefinition(Map<String, Object> source) {<NEW_LINE>if (source == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>PolicyDefinitionBean bean = new PolicyDefinitionBean();<NEW_LINE>bean.setId(asString(source.get("id")));<NEW_LINE>bean.setName(asString(source.get("name"))... | source.get("deleted"))); |
1,353,214 | public Object calculate(Context ctx) {<NEW_LINE>int count = 1;<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("ptop" <MASK><NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression().calculate(ctx);<NEW_LINE>if (obj instanceof Nu... | + mm.getMessage("function.missingParam")); |
587,553 | public SSLEngine wrapSslEngine(SSLEngine engine, ByteBufAllocator alloc, JdkApplicationProtocolNegotiator applicationNegotiator, boolean isServer) {<NEW_LINE>if (Conscrypt.isEngineSupported(engine)) {<NEW_LINE>return isServer ? ConscryptAlpnSslEngine.newServerEngine(engine, alloc, applicationNegotiator) : ConscryptAlpn... | BouncyCastleAlpnSslEngine(engine, applicationNegotiator, isServer); |
623,418 | private void addCustomClaimToBuilder(VerifiedJwt token, String name, JwtToken.Builder builder) throws JwtInvalidException {<NEW_LINE>// We do not know the type, so we just try them one by one.<NEW_LINE>if (token.isNullClaim(name)) {<NEW_LINE>builder.putCustomClaims(name, JwtClaimValue.newBuilder().setNullValue(NullValu... | value = token.getJsonObjectClaim(name); |
1,416,934 | public void run() {<NEW_LINE>final CachesOverlay overlay = overlayRef.get();<NEW_LINE>if (overlay == null || overlay.updating) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>overlay.updating = true;<NEW_LINE>try {<NEW_LINE>// Initially bring the main list in<NEW_LINE>if (overlay.firstRun || overlay.isInvalidated()) {<NEW_LINE>... | filter(cachesToDisplay, getFilterContext()); |
231,865 | private Node makeView(Object value) {<NEW_LINE>if (value instanceof BooleanProperty) {<NEW_LINE>CheckBox box = new CheckBox();<NEW_LINE>box.selectedProperty().bindBidirectional((BooleanProperty) value);<NEW_LINE>return box;<NEW_LINE>} else if (value instanceof ObjectProperty) {<NEW_LINE>ObjectProperty<?> property = (Ob... | get().getClass()); |
362,258 | final ConfigureLogsResult executeConfigureLogs(ConfigureLogsRequest configureLogsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(configureLogsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ConfigureLogsReq... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
147,223 | public void marshall(FindingSummary findingSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (findingSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(findingSummary.getAction(), ACTION_BINDING... | findingSummary.getError(), ERROR_BINDING); |
379,019 | public boolean isOutdated() {<NEW_LINE>VirtualFile file = fileEditor == null ? null : fileEditor.getFile();<NEW_LINE>PsiFile psiFile = file == null || !file.isValid() ? null : PsiManager.getInstance(project).findFile(file);<NEW_LINE>List<Language> newLanguages = getLanguages(psiFile).toList();<NEW_LINE>if (!Comparing.e... | StructureViewDescriptor[] views = getStructureViews(); |
1,287,839 | public int compareTo(add_index_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.<MASK><NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetMid()).compareTo(other.isSetMid());<NEW_LINE>if (lastComparis... | getClass().getName()); |
861,316 | // supposed to replace all E with 10^num2 not sure if i used it though<NEW_LINE>public static String EP(String input) {<NEW_LINE>double num1 = 0, num2 = 0, ans = 0;<NEW_LINE>int b = 0, t1 = 0, t2 = 0;<NEW_LINE>String anstring = "";<NEW_LINE>String temp = "";<NEW_LINE>int count = 0;<NEW_LINE>while (b < input.length()) {... | input, (b - 1)); |
557,652 | private boolean matchProblem(Diagnostic problem, String expect) {<NEW_LINE>String[] parts = expect.split("\\|");<NEW_LINE>assertEquals(2, parts.length);<NEW_LINE>String badSnippet = parts[0];<NEW_LINE>String snippetBefore;<NEW_LINE>String snippetAfter;<NEW_LINE>String[] badParts = StringUtil.split(badSnippet, '^');<NEW... | getRange().getEnd()); |
1,596,767 | public void informJobInserted(Job job2insert, VehicleRoute inRoute, InsertionData insertionData) {<NEW_LINE>Break aBreak = inRoute.getVehicle().getBreak();<NEW_LINE>if (aBreak != null) {<NEW_LINE>boolean removed = inRoute.getTourActivities().removeJob(aBreak);<NEW_LINE>if (removed) {<NEW_LINE>logger.trace("ruin: {}", a... | getDriver(), Double.MAX_VALUE); |
659,167 | public static IntMap<IrMesh> splitByMaterial(IrMesh mesh) {<NEW_LINE>IntMap<List<IrPolygon>> <MASK><NEW_LINE>for (IrPolygon polygon : mesh.polygons) {<NEW_LINE>int materialIndex = -1;<NEW_LINE>for (IrVertex vertex : polygon.vertices) {<NEW_LINE>if (vertex.material == null) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>if (m... | materialToPolyList = new IntMap<>(); |
1,401,833 | final DescribeProjectResult executeDescribeProject(DescribeProjectRequest describeProjectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeProjectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
22,174 | /*<NEW_LINE>* If user does not specify COLUMNS in load stmt, we fill it here.<NEW_LINE>* eg1:<NEW_LINE>* both COLUMNS and SET clause is empty. after fill:<NEW_LINE>* (k1,k2,k3)<NEW_LINE>*<NEW_LINE>* eg2:<NEW_LINE>* COLUMNS is empty, SET is not empty<NEW_LINE>* SET ( k2 = default_value("2") )<NEW_LIN... | .getName(), null)); |
1,284,605 | private void mergeWith(DoubleExponentialHistogramBuckets other, boolean additive) {<NEW_LINE>if (other.counts.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Find the common scale, and the extended window required to merge the two bucket sets<NEW_LINE>int commonScale = Math.min(this.scale, other.scale);<NEW_LINE>/... | .getOffset() >> deltaOther); |
653,168 | private Mono<Response<PrivateLinkResourceListResultInner>> listPrivateLinkResourcesWithResponseAsync(String resourceGroupName, String serviceName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be nu... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
533,510 | // GEN-LAST:event_browseProjectFolderActionPerformed<NEW_LINE>private void browseAntScriptActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_browseAntScriptActionPerformed<NEW_LINE>JFileChooser chooser = new JFileChooser();<NEW_LINE><MASK><NEW_LINE>chooser.setFileSelectionMode(JFileChooser.FI... | FileUtil.preventFileChooserSymlinkTraversal(chooser, null); |
519,152 | public void addGroupMappingInLDAP(RealmModel realm, GroupModel kcGroup, LDAPObject ldapUser) {<NEW_LINE>String groupName = kcGroup.getName();<NEW_LINE>LDAPObject ldapGroup = loadLDAPGroupByName(groupName);<NEW_LINE>if (ldapGroup == null) {<NEW_LINE>// Needs to partially sync Keycloak groups to LDAP<NEW_LINE>if (config.... | getParent().getName()); |
700,246 | protected static List<IntPair> findTargetStringOffsetsExct(String text, String targetString, int start, int end) {<NEW_LINE>if (start > text.length())<NEW_LINE>return null;<NEW_LINE>if (end > text.length())<NEW_LINE>return null;<NEW_LINE>List<IntPair> offsets = null;<NEW_LINE>int i = text.indexOf(targetString, start);<... | offsets = new ArrayList<>(); |
595,472 | private void paintBase(InstancePainter painter) {<NEW_LINE>final var g = painter.getGraphics();<NEW_LINE>final var facing = painter.getAttributeValue(StdAttr.FACING);<NEW_LINE>final var loc = painter.getLocation();<NEW_LINE>final var x = loc.getX();<NEW_LINE>final var y = loc.getY();<NEW_LINE>g.translate(x, y);<NEW_LIN... | ) g).rotate(rotate); |
1,607,257 | protected void rehash(int newN) {<NEW_LINE>long[] key = this.key;<NEW_LINE>int[] value = this.value;<NEW_LINE>int mask = newN - 1;<NEW_LINE>long[] newKey = new long[newN + 1];<NEW_LINE>int[] newValue = new int[newN + 1];<NEW_LINE>int i = this.n;<NEW_LINE>int pos;<NEW_LINE>for (int size = realSize(); size-- != 0; newVal... | (key[i] == 0L); |
641,434 | protected void addGuiElements() {<NEW_LINE>super.addGuiElements();<NEW_LINE>addRenderableWidget(new GuiInnerScreen(this, 48, 23, 80, 42, () -> List.of(MekanismLang.TEMPERATURE.translate(MekanismUtils.getTemperatureDisplay(tile.getTotalTemperature(), TemperatureUnit.KELVIN, true)), MekanismLang.RESISTIVE_HEATER_USAGE.tr... | energyUsageField.configureDigitalInput(this::setEnergyUsage); |
262,967 | public static String createLiveCopy(CQClient client, String srcPath, String destPath, String title, String label, int... expectedStatus) throws ClientException {<NEW_LINE>FormEntityBuilder feb = FormEntityBuilder.create();<NEW_LINE><MASK><NEW_LINE>feb.addParameter("srcPath", srcPath);<NEW_LINE>feb.addParameter("destPat... | feb.addParameter("cmd", "createLiveCopy"); |
1,644,291 | private static void deleteExtraStatsFiles(File statsDirectory, int maxStatsFile) {<NEW_LINE>if (maxStatsFile <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>File[] files = statsDirectory.listFiles();<NEW_LINE>// One more stats file will be created for the current run.<NEW_LINE>int allowedStatsFile = maxStat... | compareTo(f1.lastModified()); |
1,742,948 | private Mono<PagedResponse<VirtualNetworkInner>> listSinglePageAsync() {<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_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<N... | )).readOnly())); |
1,080,550 | private void debugDump(final PrintWriter pw) {<NEW_LINE>if (getHaplotypeList().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>pw.println("Active Region " + regionForGenotyping.getSpan());<NEW_LINE>pw.println("Extended Act Region " + getRegionForGenotyping().getPaddedSpan());<NEW_LINE>pw.println("Ref haplotype coords... | kmerSizeToCount = new HashMap<>(); |
1,332,712 | final DisassociateResourceSharePermissionResult executeDisassociateResourceSharePermission(DisassociateResourceSharePermissionRequest disassociateResourceSharePermissionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateResourceSharePermissionRequest);<NEW_LINE>AWSRequestMetrics ... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
625,872 | public void prepare(FlinkEnvironment prepareEnv) {<NEW_LINE>fenodes = config.getString("fenodes");<NEW_LINE>username = config.getString("user");<NEW_LINE>tableName = config.getString("table");<NEW_LINE><MASK><NEW_LINE>dbName = config.getString("database");<NEW_LINE>if (config.hasPath("batch_size")) {<NEW_LINE>batchSize... | password = config.getString("password"); |
1,425,190 | public Object reduce(VirtualFrame frame, PBaseSet self, @CachedLibrary("self.getDictStorage()") HashingStorageLibrary lib, @Cached GetClassNode getClassNode, @Cached PyObjectLookupAttr lookup) {<NEW_LINE>HashingStorage storage = self.getDictStorage();<NEW_LINE>int len = lib.length(storage);<NEW_LINE>Iterator<Object> ke... | ).createList(keysArray) }); |
773,332 | public ListMonitoringSchedulesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListMonitoringSchedulesResult listMonitoringSchedulesResult = new ListMonitoringSchedulesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | int originalDepth = context.getCurrentDepth(); |
1,200,399 | protected ProfileStructure saveToData() throws InvalidDataInputException {<NEW_LINE>ProfileStructure.Builder builder = new ProfileStructure.Builder(C.VERSION_CREATED_IN_RUNTIME);<NEW_LINE>builder.setName(editText_profile_name.getText().toString());<NEW_LINE>for (OperationSkillViewContainerFragment<?> fragment : operati... | OperationData data = fragment.getData(); |
1,506,389 | final SetLoadBalancerListenerSSLCertificateResult executeSetLoadBalancerListenerSSLCertificate(SetLoadBalancerListenerSSLCertificateRequest setLoadBalancerListenerSSLCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(setLoadBalancerListenerSSLCertificateRequest);<NEW_LINE>AWSReque... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "SetLoadBalancerListenerSSLCertificate"); |
126,197 | public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.println("Input :");<NEW_LINE>System.out.println("Enter the row size");<NEW_LINE>int row = sc.nextInt();<NEW_LINE>System.out.println("Enter the column size");<NEW_LINE>int colmn = sc.nextInt();<NEW_LINE>int[][] spa... | new int[count][3]; |
934,926 | public static GetLogicDatabaseResponse unmarshall(GetLogicDatabaseResponse getLogicDatabaseResponse, UnmarshallerContext _ctx) {<NEW_LINE>getLogicDatabaseResponse.setRequestId(_ctx.stringValue("GetLogicDatabaseResponse.RequestId"));<NEW_LINE>getLogicDatabaseResponse.setErrorCode(_ctx.stringValue("GetLogicDatabaseRespon... | = new ArrayList<String>(); |
557,792 | public void postPreDeleteEvent(final QualifiedName name, final MetacatRequestContext metacatRequestContext) {<NEW_LINE>if (name.isPartitionDefinition()) {<NEW_LINE>final PartitionsSaveRequestDto partitionsSaveRequestDto = new PartitionsSaveRequestDto();<NEW_LINE>partitionsSaveRequestDto.setPartitionIdsForDeletes(Lists.... | final DatabaseDto dto = new DatabaseDto(); |
658,337 | protected RubyNode translateMethodDefinition(SourceIndexLength sourceSection, RubyNode moduleNode, String methodName, ArgsParseNode argsNode, MethodDefParseNode defNode, ParseNode bodyNode, boolean isDefs, boolean isReceiverSelf) {<NEW_LINE>final Arity arity = argsNode.getArity();<NEW_LINE>final ArgumentDescriptor[] ar... | 0, parseName, null, argumentDescriptors); |
1,830,062 | public Mono<Datasource> populateHintMessages(Datasource datasource) {<NEW_LINE>if (datasource == null) {<NEW_LINE>return Mono.just(new Datasource());<NEW_LINE>}<NEW_LINE>if (datasource.getPluginId() == null) {<NEW_LINE>return Mono.just(datasource);<NEW_LINE>}<NEW_LINE>final Mono<Plugin> pluginMono = pluginService.findB... | getMessages().addAll(datasourceHintMessages); |
1,670,510 | private void addSetterInPathOccurrence(String propertyPath, String[] pathTokens, SpringBean bean, TypeMirror beanType, Collection<ExecutableElement> methods, List<Occurrence> result) throws BadLocationException {<NEW_LINE>Location loc = bean.getLocation();<NEW_LINE>if (loc == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LIN... | int foundOffset = finder.getFoundOffset(); |
608,054 | void addOrReplaceDemandDetail(@NonNull final Candidate candidate, @NonNull final I_MD_Candidate synchedRecord) {<NEW_LINE>if (candidate.getDemandDetail() == null) {<NEW_LINE>// nothing to do<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final I_MD_Candidate_Demand_Detail detailRecordToUpdate;<NEW_LINE>final I_MD_Candidate_Deman... | (demandDetail.getOrderLineId())); |
1,272,677 | final GetFaceDetectionResult executeGetFaceDetection(GetFaceDetectionRequest getFaceDetectionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFaceDetectionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,331,236 | static Feature featureFromStarlark(StarlarkInfo featureStruct) throws EvalException {<NEW_LINE>checkRightProviderType(featureStruct, "feature");<NEW_LINE>String name = getMandatoryFieldFromStarlarkProvider(featureStruct, "name", String.class);<NEW_LINE>Boolean enabled = getMandatoryFieldFromStarlarkProvider(featureStru... | envSets = getStarlarkProviderListFromStarlarkField(featureStruct, "env_sets"); |
1,820,400 | private void newPostSetup() {<NEW_LINE>mIsNewPost = true;<NEW_LINE>if (mSite == null) {<NEW_LINE>showErrorAndFinish(R.string.blog_not_found);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!mSite.isVisible()) {<NEW_LINE>showErrorAndFinish(R.string.error_blog_hidden);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Create a new post<... | PostStatus.DRAFT.toString()); |
1,071,384 | public static void main(String[] args) {<NEW_LINE>Exercise48_DisjointPaths disjointPaths = new Exercise48_DisjointPaths();<NEW_LINE>Graph graph1 = new Graph(5);<NEW_LINE>graph1.addEdge(0, 1);<NEW_LINE>graph1.addEdge(0, 2);<NEW_LINE>graph1.addEdge(0, 3);<NEW_LINE>graph1.addEdge(1, 4);<NEW_LINE>graph1.addEdge(2, 4);<NEW_... | graph2.addEdge(0, 2); |
539,307 | public PTransform<PBegin, PCollection<Row>> buildReader() {<NEW_LINE>return new PTransform<PBegin, PCollection<Row>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public PCollection<Row> expand(PBegin input) {<NEW_LINE>BigQueryIO.TypedRead<TableRow> read = BigQueryIO.readTableRowsWithSchema();<NEW_LINE>read = read.withMeth... | BigQueryIO.TypedRead.Method.EXPORT); |
386,894 | private BuilderTypeInfo findBuilder(TypeElement classElement) {<NEW_LINE>List<? extends TypeMirror> interfaces = classElement.getInterfaces();<NEW_LINE>for (TypeMirror anInterface : interfaces) {<NEW_LINE>if (anInterface instanceof DeclaredType) {<NEW_LINE>DeclaredType type = (DeclaredType) anInterface;<NEW_LINE>if (ty... | Element element = type.asElement(); |
1,713,626 | private static void onPotionStart(PotionEvent.PotionAddedEvent event) {<NEW_LINE>MobEffectInstance newEffect = event.getPotionEffect();<NEW_LINE>if (!newEffect.getEffect().isBeneficial() && !newEffect.getCurativeItems().isEmpty()) {<NEW_LINE>LivingEntity living = event.getEntityLiving();<NEW_LINE>living.getCapability(T... | float max = magicData.getMax(); |
884,439 | public void commitTxn() throws TException, TimeoutException, InterruptedException, ExecutionException {<NEW_LINE>if (!isTxnBegin()) {<NEW_LINE>LOG.warn("No transaction to commit in channel {}, table: {}", id, targetTable);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>flushData();<NEW_LINE>this.txnExecutor.commit... | batchBuffer = new Data<>(); |
1,545,560 | private static void insertEvent(final PrintWriter pw, final SkriptEventInfo<?> info) {<NEW_LINE>if (info.getDescription() == SkriptEventInfo.NO_DOC)<NEW_LINE>return;<NEW_LINE>if (info.getDescription() == null || info.getExamples() == null || info.getSince() == null) {<NEW_LINE>Skript.warning("" + info.getName() + " (" ... | info.getSince(), "events"); |
1,189,742 | public static void main(String[] args) throws Exception {<NEW_LINE>// Build an Athena client<NEW_LINE>AthenaClientFactory factory = new AthenaClientFactory();<NEW_LINE>AmazonAthena athenaClient = factory.createClient();<NEW_LINE>// Build the request<NEW_LINE>ListQueryExecutionsRequest listQueryExecutionsRequest = new L... | System.out.println(queryExecutionIds); |
80,072 | // does this method also need an explicit @Lock(WRITE)?<NEW_LINE>// - I'm assuming not; since it's guaranteed to only be called once,<NEW_LINE>// via @PostConstruct in this @Singleton. -- L.A.<NEW_LINE>@PostConstruct<NEW_LINE>public void startup() {<NEW_LINE>// First, set up the factories<NEW_LINE>try {<NEW_LINE>// @to... | ex.getMessage(), ex); |
1,165,890 | public PageResult<RuleHistoryVO> queryHistory(RuleHistoryQuery query) {<NEW_LINE>PageHelper.startPage(query.getPageNo(), query.getPageSize());<NEW_LINE>Example example = new Example(RuleHistoryPO.class);<NEW_LINE>Example.Criteria criteria = example.createCriteria();<NEW_LINE>criteria.andEqualTo(<MASK><NEW_LINE>List<Rul... | "ruleId", query.getRuleId()); |
1,350,849 | protected static long obtainLongConfigParameter(MessageStoreImpl msi, String parameterName, String defaultValue, long minValue, long maxValue) {<NEW_LINE>long value = Long.parseLong(defaultValue);<NEW_LINE>if (msi != null) {<NEW_LINE>String strValue = msi.getProperty(parameterName, defaultValue);<NEW_LINE>if (TraceComp... | value = Long.parseLong(strValue); |
1,726,186 | private void loadNode264() {<NEW_LINE>DataTypeEncodingTypeNode node = new DataTypeEncodingTypeNode(this.context, Identifiers.ServerOnNetwork_Encoding_DefaultBinary, new QualifiedName(0, "Default Binary"), new LocalizedText("en", "Default Binary"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByt... | this.nodeManager.addNode(node); |
1,145,074 | private void parseProperty(String colName, String colValue, HugeElement owner) {<NEW_LINE>String[] colParts = SplicingIdGenerator.split(colName);<NEW_LINE>assert colParts.length == 2 : colName;<NEW_LINE>// Get PropertyKey by PropertyKey id<NEW_LINE>PropertyKey pkey = owner.graph().propertyKey(readId(colParts[1]));<NEW_... | dataType().clazz()); |
1,576,337 | public boolean visit(TryStatement node) {<NEW_LINE>if (!hasChildrenChanges(node)) {<NEW_LINE>return doVisitUnchangedChildren(node);<NEW_LINE>}<NEW_LINE>int pos = node.getStartPosition();<NEW_LINE>int level = node.getAST().apiLevel();<NEW_LINE>if (level >= JLS4_INTERNAL) {<NEW_LINE>StructuralPropertyDescriptor desc = le... | rewriteRequiredNode(node, TryStatement.BODY_PROPERTY); |
792,307 | private void init(DeploymentInfo deploymentInfo, String replicaTag, String controllerName, RayServeConfig rayServeConfig) {<NEW_LINE>try {<NEW_LINE>// Set the controller name so that Serve.connect() in the user's code will connect to the<NEW_LINE>// instance that this deployment is running in.<NEW_LINE>Serve.setInterna... | newInstance(deploymentInfo.getInitArgs()); |
9,612 | private void startListeningFileChanges() {<NEW_LINE>ExtendedLanguageClient languageClient = serverContext.get(ExtendedLanguageClient.class);<NEW_LINE>List<FileSystemWatcher> watchers = new ArrayList<>();<NEW_LINE>watchers.add(new FileSystemWatcher("/**/*.bal", WatchKind.Create + WatchKind.Delete + WatchKind.Change));<N... | ("/**/modules", WatchKind.Delete)); |
1,656,945 | public synchronized void drawGlyphVector(SunGraphics2D sg2d, GlyphVector glyphVector, float x, float y) {<NEW_LINE>OSXSurfaceData surfaceData = (OSXSurfaceData) sg2d.getSurfaceData();<NEW_LINE>Shape shape = glyphVector.getOutline(x, y);<NEW_LINE>// get final destination compositing bounds (after all transformations if ... | sg2d, surfaceData, srcPixels, compositingBounds); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.