idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,210,391 | public void run() {<NEW_LINE>if (!lock.getLock()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (log.isTraceEnable()) {<NEW_LINE>log.info(this, "NodeInfoWatcher RUN START.");<NEW_LINE>}<NEW_LINE>Map<String, String> data = cm.getHashAll(UAV_CACHE_REGION, "node.info");<NEW_LINE>if (!lock.isLockInHand()) {<NEW_LINE>return;<NE... | (JSONHelper.toString(mdflist)); |
329,086 | public void flash() {<NEW_LINE>HashMap<String, String> variables = new HashMap<>();<NEW_LINE>//<NEW_LINE>variables.put("tx_isolation", Objects.toString(tx_isolation));<NEW_LINE>//<NEW_LINE>variables.put("transaction_isolation", transaction_isolation);<NEW_LINE>variables.put("auto_increment_increment", Objects.toString(... | , Objects.toString(sql_mode)); |
549,731 | final GetCompatibleKafkaVersionsResult executeGetCompatibleKafkaVersions(GetCompatibleKafkaVersionsRequest getCompatibleKafkaVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCompatibleKafkaVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
1,115,775 | public void save(boolean async) {<NEW_LINE>if (this.closed) {<NEW_LINE>throw new IllegalStateException("Tried to save closed player");<NEW_LINE>}<NEW_LINE>super.saveNBT();<NEW_LINE>if (this.level != null) {<NEW_LINE>this.namedTag.putString("Level", this.level.getFolderName());<NEW_LINE>if (this.spawnPosition != null &&... | "EXP", this.getExperience()); |
1,263,084 | private List<Pair<String, MapSqlParameterSource>> collectTicketCategoryMigrationData(String srcPriceCtsParam, boolean eventVatIncluded, BigDecimal vatPercentage, Map<String, Integer> eventIdParam) {<NEW_LINE>return jdbc.queryForList("select id, price_cts from ticket_category where event_id = :eventId and price_cts > 0 ... | category.get("id"))); |
1,707,083 | public com.amazonaws.services.iotfleethub.model.ConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.iotfleethub.model.ConflictException conflictException = new com.amazonaws.services.iotfleethub.model.ConflictException(null);<NEW_LINE>int originalD... | String currentParentElement = context.getCurrentParentElement(); |
1,697,081 | public UpdateJobQueueResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateJobQueueResult updateJobQueueResult = new UpdateJobQueueResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | class).unmarshall(context)); |
1,071,079 | final ListObjectPoliciesResult executeListObjectPolicies(ListObjectPoliciesRequest listObjectPoliciesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listObjectPoliciesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,000,388 | final GetEffectiveRecommendationPreferencesResult executeGetEffectiveRecommendationPreferences(GetEffectiveRecommendationPreferencesRequest getEffectiveRecommendationPreferencesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEffectiveRecommendationPreferencesRequest);<NEW_LINE>AWSReque... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
185,000 | public void init(MonthDescriptor month, List<List<MonthCellDescriptor>> cells, boolean displayOnly, Typeface titleTypeface, Typeface dateTypeface) {<NEW_LINE>Logr.d("Initializing MonthView (%d) for %s", System.identityHashCode(this), month);<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>title.setText(month... | cellView, cell.getDate()); |
1,417,442 | public int writeHeaderType(DebugContext context, HeaderTypeEntry headerTypeEntry, byte[] buffer, int p) {<NEW_LINE>int pos = p;<NEW_LINE>String name = headerTypeEntry.getTypeName();<NEW_LINE>byte size = (byte) headerTypeEntry.getSize();<NEW_LINE>log(context, " [0x%08x] header type %s", pos, name);<NEW_LINE>setIndirect... | writeAttrData1(size, buffer, pos); |
1,789,506 | public RestartRequirement onApply(UserPrefs rPrefs) {<NEW_LINE>RestartRequirement restartRequirement = super.onApply(rPrefs);<NEW_LINE>if (dirty_) {<NEW_LINE>JsArrayString panes = JsArrayString.createArray().cast();<NEW_LINE>panes.push(leftTop_.getValue(leftTop_.getSelectedIndex()));<NEW_LINE>panes.push(leftBottom_.get... | .createArray().cast(); |
862,775 | private byte[] readTileImage(int x, int y, int zoom) {<NEW_LINE>if (mTileBounds != null) {<NEW_LINE>Integer[] bounds = mTileBounds.get(zoom);<NEW_LINE>if (bounds == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (x < bounds[0] || x > bounds[1] || y < bounds[2] || y > bounds[3]) {<NEW_LINE>return null;<NEW_LINE>}<... | getTileFile(x, y, zoom); |
215,299 | public int onBackPressed() {<NEW_LINE>logDebug("onBackPressed");<NEW_LINE>parentHandle = adapter.getParentHandle();<NEW_LINE>MegaNode parentNode = megaApi.getParentNode<MASK><NEW_LINE>if (parentNode != null) {<NEW_LINE>boolean parentIsRoot = false;<NEW_LINE>if (parentNode.getType() == MegaNode.TYPE_ROOT) {<NEW_LINE>par... | (megaApi.getNodeByHandle(parentHandle)); |
399,229 | public ExtendedDataSchema convertFromSObject(SExtendedDataSchema input, ExtendedDataSchema result, DatabaseSession session) throws BimserverDatabaseException {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>result.setName(input.getName());<NEW_LINE>result.setUrl(input.getUrl());<NEW_LINE>result... | , OldQuery.getDefault())); |
418,380 | public void updateContact(VCard vcard, Long key) throws RemoteException, OperationApplicationException {<NEW_LINE>List<NonEmptyContentValues> contentValues = new ArrayList<NonEmptyContentValues>();<NEW_LINE>convertName(contentValues, vcard);<NEW_LINE>convertNickname(contentValues, vcard);<NEW_LINE>convertPhones(content... | ContentValues cv = account.getContentValues(); |
227,289 | public void flatMap(Tuple2<Long, Object> value, Collector<Row> out) throws Exception {<NEW_LINE>long nTable = vectorSize + 2L;<NEW_LINE>Timestamp curModelTimestamp = <MASK><NEW_LINE>if (getRuntimeContext().getIndexOfThisSubtask() == 0 && (modelId != value.f0)) {<NEW_LINE>out.collect(Row.of(curModelTimestamp, nTable, -1... | new Timestamp(-value.f0); |
141,777 | private void launchApplication(FrameworkStatus frameworkStatus, ApplicationSubmissionContext applicationContext) throws Exception {<NEW_LINE>String frameworkName = frameworkStatus.getFrameworkName();<NEW_LINE>Integer frameworkVersion = frameworkStatus.getFrameworkVersion();<NEW_LINE>String applicationId = frameworkStat... | "[%s][%s][%s]: launchApplication: ", frameworkName, frameworkVersion, applicationId); |
912,201 | public int addConstraint(String tableName, String constraintClassName) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {<NEW_LINE>EXISTING_TABLE_NAME.validate(tableName);<NEW_LINE>TreeSet<Integer> <MASK><NEW_LINE>TreeMap<String, Integer> constraintClasses = new TreeMap<>();<NEW_LINE>int i;<N... | constraintNumbers = new TreeSet<>(); |
986,786 | public RichIterable<BooleanIterable> chunk(int size) {<NEW_LINE>if (size <= 0) {<NEW_LINE>throw new IllegalArgumentException("Size for groups must be positive but was: " + size);<NEW_LINE>}<NEW_LINE>MutableList<BooleanIterable> result = Lists.mutable.empty();<NEW_LINE>switch(this.state) {<NEW_LINE>case 0:<NEW_LINE>retu... | .mutable.with(true)); |
1,721,972 | private static ValgrindError parseErrorTag(SMInputCursor error) throws XMLStreamException {<NEW_LINE>SMInputCursor child = error.childElementCursor();<NEW_LINE>String kind = null;<NEW_LINE>String text = null;<NEW_LINE>var details = new ArrayList<String>();<NEW_LINE>var stacks = new ArrayList<ValgrindStack>();<NEW_LINE>... | .add(parseStackTag(child)); |
1,521,326 | private static JCExpression cloneType0(JavacTreeMaker maker, JCTree in) {<NEW_LINE>if (in == null)<NEW_LINE>return null;<NEW_LINE>if (in instanceof JCPrimitiveTypeTree) {<NEW_LINE>return maker.TypeIdent(TypeTag.typeTag(in));<NEW_LINE>}<NEW_LINE>if (in instanceof JCIdent) {<NEW_LINE>return maker.Ident(((JCIdent) in).nam... | (cloneType0(maker, typeArg)); |
1,375,480 | public void writeNode(java.io.Writer out, String nodeName, String namespace, String indent, java.util.Map namespaceMap) throws java.io.IOException {<NEW_LINE>out.write(indent);<NEW_LINE>out.write("<");<NEW_LINE>if (namespace != null) {<NEW_LINE>out.write((String) namespaceMap.get(namespace));<NEW_LINE>out.write(":");<N... | namespaceMap.put("http://www.w3.org/2001/XMLSchema-instance", "xsi"); |
779,697 | protected JComponent createCenterComponent() {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>final JComponent component = super.createCenterComponent();<NEW_LINE>panel.add(component, BorderLayout.CENTER);<NEW_LINE>String preselect = PropertiesComponent.getInstance(myProject).getValue(SELECTED_SCOPE);... | add(chooserPanel, BorderLayout.NORTH); |
198,884 | public void assertValid(@NonNull final List<RefundConfig> refundConfigs) {<NEW_LINE>Check.assumeNotEmpty(refundConfigs, "refundConfigs");<NEW_LINE>final IMsgBL msgBL = Services.get(IMsgBL.class);<NEW_LINE>if (hasDifferentValues(refundConfigs, RefundConfig::getRefundBase)) {<NEW_LINE><MASK><NEW_LINE>final ITranslatableS... | Loggables.addLog("The given refundConfigs need to all have the same RefundBase; refundConfigs={}", refundConfigs); |
719,320 | public double[][] inverse() {<NEW_LINE>if (!this.isNonsingular()) {<NEW_LINE>throw new MatrixError("Matrix is singular");<NEW_LINE>}<NEW_LINE>int rows = this.LU.length;<NEW_LINE>int columns = LU[0].length;<NEW_LINE>int count = rows;<NEW_LINE>double[][] lu = LU;<NEW_LINE>double[][] X = new double[rows][columns];<NEW_LIN... | /= lu[k][k]; |
816,927 | public CurrentReceivingHU execute() {<NEW_LINE>final I_PP_Order ppOrder = ppOrderBL.getById(ppOrderId);<NEW_LINE>final I_PP_Order_BOMLine coProductLine;<NEW_LINE>final LocatorId locatorId;<NEW_LINE>final UomId uomId;<NEW_LINE>final IPPOrderReceiptHUProducer huProducer;<NEW_LINE>if (coProductBOMLineId != null) {<NEW_LIN... | ), coProductLine.getM_Locator_ID()); |
421,301 | private void changeWorkflowAccess(@NonNull final RoleId roleId, @NonNull final ClientId clientId, @NonNull final OrgId orgId, final int adWorkflowId, @NonNull final Consumer<I_AD_Workflow_Access> updater) {<NEW_LINE>Preconditions.checkArgument(adWorkflowId > 0, "adWorkflowId > 0");<NEW_LINE>I_AD_Workflow_Access workflo... | ).firstOnly(I_AD_Workflow_Access.class); |
860,565 | public static void init(Connection conn) throws SQLException {<NEW_LINE>try (Statement stat = conn.createStatement()) {<NEW_LINE>stat.execute("CREATE SCHEMA IF NOT EXISTS " + SCHEMA);<NEW_LINE>stat.execute("CREATE TABLE IF NOT EXISTS " + SCHEMA + ".INDEXES(SCHEMA VARCHAR, `TABLE` VARCHAR, " + "COLUMNS VARCHAR, PRIMARY ... | execute("CREATE ALIAS IF NOT EXISTS FTL_CREATE_INDEX FOR '" + className + ".createIndex'"); |
1,011,334 | public RowMap deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException {<NEW_LINE>ObjectNode node = jsonParser.getCodec().readTree(jsonParser);<NEW_LINE>JsonNode encrypted = node.get("encrypted");<NEW_LINE>if (encrypted != null) {<NEW_LINE>String iv = encrypted.get("iv").text... | get("bytes").textValue(); |
1,657,402 | protected void loadFromModelData(TFTableModelClassificationModelData modelData, TableSchema modelSchema) {<NEW_LINE>Params meta = modelData.getMeta();<NEW_LINE>String tfOutputSignatureDef = meta.get(TFModelDataConverterUtils.TF_OUTPUT_SIGNATURE_DEF);<NEW_LINE>TypeInformation<?> tfOutputSignatureType = AlinkTypes.FLOAT_... | pipelineModelSchema = TableUtil.schemaStr2Schema(preprocessPipelineModelSchemaStr); |
982,616 | private void writeDefAssignment(TreeLogger logger, SourceWriter sw, JMethod toImplement, CssStylesheet cssStylesheet) throws UnableToCompleteException {<NEW_LINE>SubstitutionCollector collector = new SubstitutionCollector();<NEW_LINE>collector.accept(cssStylesheet);<NEW_LINE>String name = toImplement.getName();<NEW_LIN... | getSubstitutions().get(name); |
1,570,431 | private static String mkMessage(ExecutionStepInfo executionStepInfo, ResultPath path) {<NEW_LINE>GraphQLType unwrappedTyped = executionStepInfo.getUnwrappedNonNullType();<NEW_LINE>if (executionStepInfo.hasParent()) {<NEW_LINE>GraphQLType unwrappedParentType = executionStepInfo.getParent().getUnwrappedNonNullType();<NEW... | unwrappedTyped), simplePrint(unwrappedParentType)); |
1,477,931 | protected void doAction() {<NEW_LINE>try {<NEW_LINE>KeyStoreHistory history = kseFrame.getActiveKeyStoreHistory();<NEW_LINE>KeyStoreState currentState = history.getCurrentState();<NEW_LINE>String alias = kseFrame.getSelectedEntryAlias();<NEW_LINE>Password password = getEntryPassword(alias, currentState);<NEW_LINE>if (p... | keyPairType = KeyPairUtil.getKeyPairType(privateKey); |
310,508 | private static LedgerMetadata parseVersion1Config(long ledgerId, InputStream is) throws IOException {<NEW_LINE>try (BufferedReader reader = new BufferedReader(new InputStreamReader(is, UTF_8.name()))) {<NEW_LINE>LedgerMetadataBuilder builder = LedgerMetadataBuilder.create().withId(ledgerId).withMetadataFormatVersion(1)... | parse(parts[j])); |
1,421,633 | private static void deleteUnknownLibs(Context context, PxAll all) {<NEW_LINE>HashSet<String> names = new HashSet<>();<NEW_LINE>for (PluginInfo p : all.getPlugins()) {<NEW_LINE>names.add(p.getOldNativeLibsDir().getName());<NEW_LINE>}<NEW_LINE>File dir = context.getDir(Constant.LOCAL_PLUGIN_DATA_LIB_DIR, 0);<NEW_LINE>Fil... | "delete unknown libs=" + f.getAbsolutePath()); |
28,706 | private void createTorsoLink(VectorSet vertexLocations, Mesh[] meshes) {<NEW_LINE>if (vertexLocations == null || vertexLocations.numVectors() == 0) {<NEW_LINE>throw new IllegalArgumentException("No mesh vertices for the torso." + " Make sure the root bone is not linked.");<NEW_LINE>}<NEW_LINE>Joint bone = RagUtils.find... | center = vertexLocations.mean(null); |
569,797 | private static boolean _cutteeStartCutterEndEvent(int eventIndex, EditShape editShape, ArrayList<CutEvent> cutEvents, int ipartCuttee, int ivertexCuttee, int ipartCutter, int ivertexCutter, int ifirstVertexCuttee) {<NEW_LINE>Segment segmentCuttee;<NEW_LINE>Segment segmentCutter;<NEW_LINE>Line lineCuttee = new Line();<N... | cutEvents.size() - 1); |
1,491,702 | public static PsiLanguageInjectionHost findInjectionHost(@Nullable PsiElement psi) {<NEW_LINE>if (psi == null)<NEW_LINE>return null;<NEW_LINE>// * formatting<NEW_LINE>PsiFile containingFile = psi<MASK><NEW_LINE>// * quick-edit-handler<NEW_LINE>PsiElement fileContext = containingFile.getContext();<NEW_LINE>if (fileConte... | .getContainingFile().getOriginalFile(); |
1,172,446 | protected void addCompletions(@NotNull final CompletionParameters parameters, @NotNull ProcessingContext context, @NotNull CompletionResultSet result) {<NEW_LINE>Document document = parameters<MASK><NEW_LINE>int line = document.getLineNumber(parameters.getOffset());<NEW_LINE>PsiElement prevVisibleLeaf = PsiTreeUtil.pre... | .getEditor().getDocument(); |
1,596,717 | private Object doInvokeMethod(Object target, String methodName, Object[] arguments, boolean isStatic) {<NEW_LINE>Object[] args = GroovyRuntimeUtil.asArgumentArray(arguments);<NEW_LINE>if (isGetMetaClassCallOnGroovyObject(target, methodName, args, isStatic)) {<NEW_LINE>// We handle this case explicitly because strangely... | target, methodName, args, isStatic); |
1,739,784 | public static final boolean featureDialog(final FeatureInfo featureInfo, final String notFoundMessage, final String featureName) {<NEW_LINE>final CountDownLatch called = new CountDownLatch(1);<NEW_LINE>final boolean[] result = new boolean[] { false };<NEW_LINE>final DialogDescriptor[] descriptor = new DialogDescriptor[... | [] { DialogDescriptor.CANCEL_OPTION }); |
1,446,142 | public static void main(String[] args) {<NEW_LINE>OkHttpClient http = new OkHttpClient();<NEW_LINE>PokemonGo api = new PokemonGo(http);<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>api.login(new PtcCredentialProvider(http, ExampleConstants.LOGIN, ExampleConstants.PASSWORD), hasher);<NEW_LINE>api.setLocation(ExampleConstants... | HashProvider hasher = ExampleConstants.getHashProvider(); |
1,658,212 | final StartImportResult executeStartImport(StartImportRequest startImportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startImportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | endClientExecution(awsRequestMetrics, request, response); |
117,244 | public String encryptSecret(String plainText) {<NEW_LINE>if (plainText.length() > MAX_PLAINTEXT_LENGTH) {<NEW_LINE>throw new IllegalArgumentException("Too long text");<NEW_LINE>}<NEW_LINE>byte[] nonce = generateNonce();<NEW_LINE>Cipher cipher = <MASK><NEW_LINE>byte[] plainTextBytes = plainText.getBytes(UTF_8);<NEW_LINE... | cipher(ENCRYPT_MODE, sharedSecret, nonce); |
159,683 | private OvsVpcRoutingPolicyConfigCommand prepareVpcRoutingPolicyUpdate(long vpcId) {<NEW_LINE>List<OvsVpcRoutingPolicyConfigCommand.Acl> acls = new ArrayList<>();<NEW_LINE>List<OvsVpcRoutingPolicyConfigCommand.Tier> tiers = new ArrayList<>();<NEW_LINE>VpcVO vpc = _vpcDao.findById(vpcId);<NEW_LINE>List<? extends Network... | .getProtocol(), sourceCidrs)); |
885,103 | private void mountGlobalRestFailureHandler(Router mainRouter) {<NEW_LINE>GlobalRestFailureHandler globalRestFailureHandler = SPIServiceUtils.getPriorityHighestService(GlobalRestFailureHandler.class);<NEW_LINE>Handler<RoutingContext> failureHandler = null == globalRestFailureHandler ? ctx -> {<NEW_LINE>if (ctx.response(... | ().writeValueAsString(unknownError)); |
1,113,011 | public void onActivityResult(int requestCode, int resultCode, Intent intent) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, intent);<NEW_LINE>if (onActivityResultCallbackContext != null && intent != null) {<NEW_LINE>intent.putExtra("requestCode", requestCode);<NEW_LINE>intent.putExtra("resultCode", resultCo... | .OK, getIntentJson(canceledIntent)); |
1,285,737 | public static <T> T compatibleCast(Object value, Class<T> type) {<NEW_LINE>if (value == null || type == null || type.isAssignableFrom(value.getClass())) {<NEW_LINE>return (T) value;<NEW_LINE>}<NEW_LINE>if (value instanceof Number) {<NEW_LINE>Number number = (Number) value;<NEW_LINE>if (type == int.class || type == Inte... | (Integer) number.intValue(); |
1,100,429 | private static double[][] bcucof(double[] y, double[] y1, double[] y2, double[] y12, double d1, double d2) {<NEW_LINE>double d1d2 = d1 * d2;<NEW_LINE>double[] cl = new double[16];<NEW_LINE>double[] x = new double[16];<NEW_LINE>double[][] c = new double[4][4];<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>x[i] = y[i];... | j] = cl[l++]; |
1,259,700 | private void updateButtonState(boolean next) {<NEW_LINE>if (showFilterItem != null) {<NEW_LINE>showFilterItem.setVisible(filter != null && !isNameSearch());<NEW_LINE>}<NEW_LINE>if (filter != null) {<NEW_LINE>int maxLength = 24;<NEW_LINE>String name = filter.getGeneratedName(maxLength);<NEW_LINE>// Next displays the act... | getSupportActionBar().setTitle(name); |
1,132,741 | private boolean areDOMsEqual() {<NEW_LINE>// result<NEW_LINE>boolean result = true;<NEW_LINE>XPathFactory factory = XPathFactory.newInstance();<NEW_LINE>XPath xpathJ9DDR = factory.newXPath();<NEW_LINE>XPath xpathJExtract = factory.newXPath();<NEW_LINE>for (Iterator<Object> i = xpathQueries.keySet().iterator(); i.hasNex... | xpath, xmlJ9DDR, XPathConstants.NODESET); |
1,375,262 | private void addGoalsNotIncludedInTargetCriteria(List<ExecutionResult> results) {<NEW_LINE>List<Properties.Criterion> requiredCriteria = new ArrayList<>(Arrays.asList(Properties.Criterion.OUTPUT, Properties.Criterion.INPUT, Properties.Criterion.METHOD, Properties.Criterion.METHODNOEXCEPTION, Properties.Criterion.EXCEPT... | goalFactory = FitnessFunctions.getFitnessFactory(c); |
1,019,731 | private void startNewUpload(User user, List<String> requestedUploads, boolean onWifiOnly, boolean whileChargingOnly, NameCollisionPolicy nameCollisionPolicy, int localAction, boolean isCreateRemoteFolder, int createdBy, OCFile file, boolean disableRetries) {<NEW_LINE>if (file.getStoragePath().startsWith("/data/data/"))... | = new OCUpload(file, user); |
944,203 | public EPPreparedQueryResult execute(FAFQueryMethodSelect select, ContextPartitionSelector[] contextPartitionSelectors, FAFQueryMethodAssignerSetter assignerSetter, ContextManagementService contextManagementService) {<NEW_LINE>FireAndForgetProcessor processor = select.getProcessors()[0];<NEW_LINE>ContextPartitionSelect... | ), select.getSubselects()); |
716,424 | public void read(org.apache.thrift.protocol.TProtocol iprot, key_value struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apach... | struct.key.read(iprot); |
1,090,995 | private static void write(Argument arg) throws Exception {<NEW_LINE>try {<NEW_LINE>Document document = DocumentHelper.createDocument();<NEW_LINE>Element persistence = document.addElement("persistence", "http://java.sun.com/xml/ns/persistence");<NEW_LINE>persistence.addAttribute(QName.get("schemaLocation", "xsi", "http:... | PersistenceProviderImpl.class.getCanonicalName()); |
1,321,508 | private int parseSubject(int c) throws IOException, RDFParseException, RDFHandlerException {<NEW_LINE>final State state = peek();<NEW_LINE>// subject is either an uriref (<foo://bar>) or a nodeID (_:node1)<NEW_LINE>// OR a Statement.<NEW_LINE>if (c == '<') {<NEW_LINE>if (isStatement(c)) {<NEW_LINE>// Embedded statement... | createBNode(sb.toString()); |
700,858 | protected boolean createKeys(List<Content> list) {<NEW_LINE>if (accounts == null || accounts.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>CommunicationsManager communicationManager;<NEW_LINE>try {<NEW_LINE>communicationManager = Case.getCurrentCaseThrows().getSleuthkitCase().getCommunicationsManager();<NEW_LI... | accountFileInstanceList = communicationManager.getAccountFileInstances(account); |
894,896 | public void apply(Project project) {<NEW_LINE>if (project != project.getRootProject()) {<NEW_LINE>throw new IllegalStateException(this.getClass().getName() + " can only be applied to the root project.");<NEW_LINE>}<NEW_LINE>Provider<DockerSupportService> dockerSupportServiceProvider = project.getGradle().getSharedServi... | .getRootDir(), DOCKER_ON_LINUX_EXCLUSIONS_FILE)); |
314,564 | public void start() throws Exception {<NEW_LINE>LOG.info("TracevisServer base location: " + _staticContentLocation + ", heapster location: " + _heapsterContentLocation);<NEW_LINE>LOG.info("Starting TracevisServer on port: " + _port + ", graphviz location: " + _dotLocation + ", cache size: " + _cacheSize + ", graphviz t... | .setAttribute("org.eclipse.jetty.server.Request.maxFormContentSize", -1); |
1,128,922 | public void probeMemory() {<NEW_LINE>long freeMemoryBytes = Runtime.getRuntime().freeMemory();<NEW_LINE>long totalMemoryBytes = Runtime<MASK><NEW_LINE>long maxMemoryBytes = Runtime.getRuntime().maxMemory();<NEW_LINE>long totalGcTimeMs = 0;<NEW_LINE>for (GarbageCollectorMXBean gcMxBean : ManagementFactory.getGarbageColl... | .getRuntime().totalMemory(); |
1,503,522 | public static DescribeDnsGtmLogsResponse unmarshall(DescribeDnsGtmLogsResponse describeDnsGtmLogsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDnsGtmLogsResponse.setRequestId(_ctx.stringValue("DescribeDnsGtmLogsResponse.RequestId"));<NEW_LINE>describeDnsGtmLogsResponse.setTotalItems(_ctx.integerValue("Describe... | ("DescribeDnsGtmLogsResponse.Logs[" + i + "].Id")); |
1,471,827 | public CodeActionResult codeActions(CodeActionContext context) {<NEW_LINE>CodeActionResult result = new CodeActionResult();<NEW_LINE>codeActionsMap.getOrDefault(context.diagnostic().diagnosticInfo().code(), Collections.emptyList()).forEach(codeActionDescriptor -> {<NEW_LINE>String codeActionName = getModifiedCodeAction... | setArguments(codeActionInfo.getArguments()); |
1,269,361 | public static BaseRawValueBasedPredicateEvaluator newRawValueBasedEvaluator(EqPredicate eqPredicate, DataType dataType) {<NEW_LINE>String value = eqPredicate.getValue();<NEW_LINE>switch(dataType) {<NEW_LINE>case INT:<NEW_LINE>return new IntRawValueBasedEqPredicateEvaluator(eqPredicate, Integer.parseInt(value));<NEW_LIN... | , Double.parseDouble(value)); |
1,525,941 | protected void addCompilerSetupSteps(BuildContext context, ProjectFilesystem projectFilesystem, BuildTarget target, CompilerParameters compilerParameters, ResourcesParameters resourcesParameters, Builder<Step> steps) {<NEW_LINE>// Always create the output directory, even if there are no .java files to compile because t... | ).getParent()))); |
1,846,739 | private List<NameValueCountPair> listCreatorUnit(Business business, EffectivePerson effectivePerson, Application application) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer(<MASK><NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(St... | ).get(Work.class); |
46,691 | // c: marshal_load<NEW_LINE>@JRubyMethod()<NEW_LINE>public IRubyObject marshal_load(ThreadContext context, IRubyObject arg) {<NEW_LINE>RubyArray load = arg.convertToArray();<NEW_LINE>if (load.size() != 3) {<NEW_LINE>throw <MASK><NEW_LINE>}<NEW_LINE>if (!(load.eltInternal(0) instanceof RubyBignum)) {<NEW_LINE>throw cont... | context.runtime.newArgumentError("wrong dump data"); |
407,870 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | endClientExecution(awsRequestMetrics, request, response); |
1,398,786 | static EObject apply(EProc proc, EObject fun, EObject args) throws Pausable {<NEW_LINE>ESeq a = args.testSeq();<NEW_LINE>if (a == null)<NEW_LINE>throw ERT.badarg(fun, args);<NEW_LINE>EObject res;<NEW_LINE>EFun f = fun.testFunction();<NEW_LINE>if (f != null) {<NEW_LINE>res = apply_last(proc, f, a);<NEW_LINE>} else {<NEW... | t2 = ETuple2.cast(t); |
1,406,654 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create schema SupportBeanTwo as " + SupportBeanTwo.class.getName() + ";\n" + "on SupportBean event insert into astream select transpose(" + EPLInsertIntoTransposeStream.class.getName() + ".makeSB2Event(event));\n" + "on SupportBean event insert into bs... | new SupportBean("E1", 1)); |
1,393,953 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>Settings.applyDarkThemeSetting(<MASK><NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>Intent intent = getIntent();<NEW_LINE>if (intent == null) {<NEW_LINE>finish();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mSocketPath = intent.getStringExtra("socket");<NEW... | this, R.style.RequestThemeDark); |
212,035 | public void doLayout() {<NEW_LINE>Dimension size = getSize();<NEW_LINE>if (!myTopStripe.isVisible()) {<NEW_LINE>myTopStripe.setBounds(0, 0, 0, 0);<NEW_LINE>myBottomStripe.setBounds(0, 0, 0, 0);<NEW_LINE>myLeftStripe.setBounds(0, 0, 0, 0);<NEW_LINE>myRightStripe.setBounds(0, 0, 0, 0);<NEW_LINE>myLayeredPane.setBounds(0,... | size.width, bottomSize.height); |
1,187,025 | private Program doLoad(ByteProvider provider, String programName, DomainFolder programFolder, LoadSpec loadSpec, List<Option> options, MessageLog log, Object consumer, TaskMonitor monitor, Set<String> unprocessedLibraries) throws CancelledException, IOException {<NEW_LINE>LanguageCompilerSpecPair pair = loadSpec.getLan... | ), language, compilerSpec, consumer); |
1,805,666 | private List<String> splitSqlStatement(final String sql) {<NEW_LINE>List<String> parts = new ArrayList<>();<NEW_LINE>int apCount = 0;<NEW_LINE>int off = 0;<NEW_LINE>boolean skip = false;<NEW_LINE>for (int i = 0; i < sql.length(); i++) {<NEW_LINE>char c = sql.charAt(i);<NEW_LINE>if (skip) {<NEW_LINE>skip = false;<NEW_LI... | .substring(off, i)); |
299,245 | final ListEnvironmentAccountConnectionsResult executeListEnvironmentAccountConnections(ListEnvironmentAccountConnectionsRequest listEnvironmentAccountConnectionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEnvironmentAccountConnectionsRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
45,903 | final UpdateStreamingDistributionResult executeUpdateStreamingDistribution(UpdateStreamingDistributionRequest updateStreamingDistributionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateStreamingDistributionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | addHandlerContext(HandlerContextKey.SERVICE_ID, "CloudFront"); |
55,557 | private boolean tooMuchTaskLag(long now, List<SingularityDisasterDataPoint> dataPoints) {<NEW_LINE>Optional<Long> criticalAvgLagTriggeredSince = Optional.empty();<NEW_LINE>Optional<Long> warningAvgLagTriggeredSince = Optional.empty();<NEW_LINE>Optional<Long> criticalPortionTriggeredSince = Optional.empty();<NEW_LINE>Op... | > warningPortionTriggeredSince = Optional.empty(); |
874,790 | public static SearchHistoricalSnapshotsResponse unmarshall(SearchHistoricalSnapshotsResponse searchHistoricalSnapshotsResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchHistoricalSnapshotsResponse.setRequestId(_ctx.stringValue("SearchHistoricalSnapshotsResponse.RequestId"));<NEW_LINE>searchHistoricalSnapshotsResponse... | ("SearchHistoricalSnapshotsResponse.Snapshots[" + i + "].CreatedTime")); |
626,487 | public void invoke(@Nonnull Project project, Editor editor, PsiFile file, DataContext dataContext) {<NEW_LINE>int offset = editor.getCaretModel().getOffset();<NEW_LINE>editor.getScrollingModel().scrollToCaret(ScrollType.MAKE_VISIBLE);<NEW_LINE>PsiElement <MASK><NEW_LINE>while (true) {<NEW_LINE>if (element == null) {<NE... | element = file.findElementAt(offset); |
932,466 | private MetaDataContexts buildChangedMetaDataContextWithAddedDataSource(final ShardingSphereMetaData originalMetaData, final Map<String, DataSourceProperties> addedDataSourceProps) throws SQLException {<NEW_LINE>Map<String, DataSource> dataSourceMap = new HashMap<>(originalMetaData.getResource().getDataSources());<NEW_... | ().orElse(null)); |
1,722,083 | public void addManagedBean(FileObject referenceFO, String beanName, String className) {<NEW_LINE>try {<NEW_LINE>WebModule webModule = WebModule.getWebModule(referenceFO);<NEW_LINE>if (webModule == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FileObject cfFileObject = null;<NEW_LINE>FileObject documentBase = webModule.g... | cfFileObject = documentBase.getFileObject(file); |
1,432,518 | public void start() {<NEW_LINE>if (this.running.compareAndSet(false, true)) {<NEW_LINE>EventListener eventListener = listenerMap.computeIfAbsent(buildKey(), event -> new EventListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onEvent(Event event) {<NEW_LINE>if (event instanceof NamingEvent) {<NEW_LINE>List<... | getNamingService(properties.getNacosProperties()); |
678,686 | protected void internalWrite(Server server, Query query, ImmutableList<Result> results) throws Exception {<NEW_LINE>for (Result result : results) {<NEW_LINE>log.debug("Query result: [{}]", result);<NEW_LINE>if (isNumeric(result.getValue())) {<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put("serverA... | "className", result.getClassName()); |
370,627 | final RemoveTagsFromVaultResult executeRemoveTagsFromVault(RemoveTagsFromVaultRequest removeTagsFromVaultRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeTagsFromVaultRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
212,776 | // used by union and above<NEW_LINE>static final HllSketch heapify(final Memory srcMem, final boolean checkRebuild) {<NEW_LINE>final CurMode curMode = checkPreamble(srcMem);<NEW_LINE>final HllSketch heapSketch;<NEW_LINE>if (curMode == CurMode.HLL) {<NEW_LINE>final TgtHllType tgtHllType = extractTgtHllType(srcMem);<NEW_... | (Hll6Array.heapify(srcMem)); |
770,843 | public void invoke(PHPRuleContext context, List<Hint> result) {<NEW_LINE>PHPParseResult phpParseResult = (PHPParseResult) context.parserResult;<NEW_LINE>if (phpParseResult.getProgram() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (CancelSupport.getDefault().isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>fi... | .getSource().getFileObject(); |
170,179 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "ori");<NEW_LINE>final Triple<IOperandTree, IOper... | get(0).getValue(); |
1,217,882 | public void onMessage(WebSocket webSocket, ByteBuffer bytes) {<NEW_LINE>byte streamID = bytes.get(0);<NEW_LINE>if (bytes.remaining() > 1) {<NEW_LINE>bytes.position(1);<NEW_LINE>KubernetesClientException exception = null;<NEW_LINE>String stringValue = StandardCharsets.UTF_8.<MASK><NEW_LINE>if (streamID == 3) {<NEW_LINE>... | decode(bytes).toString(); |
1,095,177 | private <T> Payload clientRequestPayloadToRSocketPayload(ClientRequestPayload<T> payload, TProtocolType protocolType) {<NEW_LINE>ByteBuf data = null;<NEW_LINE>ByteBuf metadata = null;<NEW_LINE>try {<NEW_LINE>data = alloc.buffer();<NEW_LINE>metadata = alloc.buffer();<NEW_LINE>final ByteBufTProtocol in = protocolType.app... | getRequestRpcMetadata().write0(metadataProtocol); |
1,156,146 | final GetSMSSandboxAccountStatusResult executeGetSMSSandboxAccountStatus(GetSMSSandboxAccountStatusRequest getSMSSandboxAccountStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSMSSandboxAccountStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | (super.beforeMarshalling(getSMSSandboxAccountStatusRequest)); |
931,679 | public synchronized void handleFinishedReplica(AgentTask task, TTabletInfo finishTabletInfo, long reportVersion) throws MetaNotFoundException {<NEW_LINE>// report version is unused here<NEW_LINE>Preconditions.checkArgument(task instanceof CreateRollupTask);<NEW_LINE>CreateRollupTask createRollupTask = (CreateRollupTask... | rollupReplica = rollupTablet.getReplicaById(rollupReplicaId); |
403,184 | private static void moveDirectory(File srcDir, File dstDir) throws IOException {<NEW_LINE>if (!srcDir.isDirectory()) {<NEW_LINE>throw new IllegalArgumentException("Source is not a directory: " + srcDir.getPath());<NEW_LINE>}<NEW_LINE>if (!srcDir.exists()) {<NEW_LINE>String msg = String.format(Locale.US, "Source directo... | "Failed to delete directory: " + src.getPath()); |
505,486 | public Answer execute(final MaintainCommand command, final CitrixResourceBase citrixResourceBase) {<NEW_LINE>final Connection conn = citrixResourceBase.getConnection();<NEW_LINE>try {<NEW_LINE>final XsHost xsHost = citrixResourceBase.getHost();<NEW_LINE>final String uuid = xsHost.getUuid();<NEW_LINE>final Host host = H... | s_logger.warn("Unable to put server in maintainence mode", e); |
1,763,406 | public GeoMatchSet unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GeoMatchSet geoMatchSet = new GeoMatchSet();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentTok... | int originalDepth = context.getCurrentDepth(); |
1,612,829 | void defineDestructuringPatternInVarDeclaration(Node pattern, TypedScope scope, Supplier<RValueInfo> patternTypeSupplier) {<NEW_LINE>for (DestructuredTarget target : DestructuredTarget.createAllNonEmptyTargetsInPattern(typeRegistry, () -> patternTypeSupplier.get().type, pattern)) {<NEW_LINE>Supplier<RValueInfo> typeSup... | Node name = target.getNode(); |
567,399 | // / Driver code<NEW_LINE>public static void main(String[] args) {<NEW_LINE>Scanner infile = new Scanner(System.in);<NEW_LINE>int w, n, i;<NEW_LINE><MASK><NEW_LINE>n = infile.nextInt();<NEW_LINE>System.out.println("Enter the maximum weight of knapsack: ");<NEW_LINE>w = infile.nextInt();<NEW_LINE>int[] val = new int[n];... | System.out.println("Enter the number of elements: "); |
146,470 | public ExecutionResult executeInVR(String routerIp, String script, String args, Duration timeout) {<NEW_LINE>if (!script.contains(domRCloudPath)) {<NEW_LINE>script = domRCloudPath + "/" + script;<NEW_LINE>}<NEW_LINE>String cmd = script + " " + args;<NEW_LINE>logger.debug("executeInVR via " + agentName + " on " + router... | CloudstackPlugin cSp = new CloudstackPlugin(c); |
1,365,852 | public void update(ViewerCell cell) {<NEW_LINE>DBPNamedObject element = <MASK><NEW_LINE>if (cell.getColumnIndex() == 0) {<NEW_LINE>cell.setText(element.getName());<NEW_LINE>DBPImage icon = null;<NEW_LINE>if (element instanceof DBPDriver) {<NEW_LINE>icon = ((DBPDriver) element).getIcon();<NEW_LINE>} else if (element ins... | (DBPNamedObject) cell.getElement(); |
1,634,818 | public List<ShelvedChangeList> importChangeLists(final Collection<VirtualFile> files, final Consumer<VcsException> exceptionConsumer) {<NEW_LINE>final List<ShelvedChangeList> result = new ArrayList<>(files.size());<NEW_LINE>try {<NEW_LINE>final FilesProgress filesProgress = new FilesProgress(files.size(), "Processing "... | final File patchPath = getPatchFileInConfigDir(schemeNameDir); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.