idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
925,611 | public void addContent(ByteBuf buffer, boolean last) throws IOException {<NEW_LINE>if (fileUpload instanceof MemoryFileUpload) {<NEW_LINE>try {<NEW_LINE>checkSize(fileUpload.length() + buffer.readableBytes());<NEW_LINE>if (fileUpload.length() + buffer.readableBytes() > limitSize) {<NEW_LINE>DiskFileUpload diskFileUploa... | ), definedSize, baseDir, deleteOnExit); |
1,310,314 | private void updateTrailData() {<NEW_LINE>if (!isInHerbiboarArea()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean pathActive = false;<NEW_LINE>boolean wasStarted = started;<NEW_LINE>// Get trail data<NEW_LINE>for (HerbiboarSearchSpot spot : HerbiboarSearchSpot.values()) {<NEW_LINE>for (TrailToSpot trail : spot.getTrai... | HB_STARTED) > 0 || currentGroup != null; |
876,460 | // beforeSave<NEW_LINE>@Override<NEW_LINE>protected boolean afterSave(final boolean newRecord, final boolean success) {<NEW_LINE>if (!success || newRecord) {<NEW_LINE>return success;<NEW_LINE>}<NEW_LINE>// Propagate Description changes<NEW_LINE>if (is_ValueChanged("Description") || is_ValueChanged("POReference")) {<NEW... | "FROM C_Order o WHERE i.C_Order_ID=o.C_Order_ID) " + "WHERE DocStatus NOT IN ('RE','CL') AND C_Order_ID=" + getC_Order_ID()); |
1,593,772 | private void internalInitializeLiveRoom() {<NEW_LINE>LoginInfo loginInfo = new LoginInfo();<NEW_LINE>loginInfo.sdkAppID = GenerateTestUserSig.SDKAPPID;<NEW_LINE>loginInfo.userID = ProfileManager.getInstance().getUserModel().userId;<NEW_LINE>loginInfo.userSig = ProfileManager.getInstance().getUserModel().userSig;<NEW_LI... | (R.string.mlvb_phone_live)); |
356,895 | private AmazonS3 createAmazonS3Client(Configuration hadoopConfig, ClientConfiguration clientConfig) {<NEW_LINE>Optional<EncryptionMaterialsProvider> encryptionMaterialsProvider = createEncryptionMaterialsProvider(hadoopConfig);<NEW_LINE>AmazonS3Builder<? extends AmazonS3Builder, ? extends AmazonS3> clientBuilder;<NEW_L... | signerType = hadoopConfig.get(S3_SIGNER_TYPE); |
1,109,148 | public static ListItemsResponse unmarshall(ListItemsResponse listItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listItemsResponse.setRequestId(_ctx.stringValue("ListItemsResponse.requestId"));<NEW_LINE>Result result = new Result();<NEW_LINE>Total total = new Total();<NEW_LINE>total.setInstanceRecommendItem(_ctx.lo... | ("ListItemsResponse.result.detail[" + i + "].categoryPath")); |
878,025 | private Mono<Response<ScalingPlanInner>> updateWithResponseAsync(String resourceGroupName, String scalingPlanName, ScalingPlanPatch scalingPlan, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required a... | scalingPlanName, scalingPlan, accept, context); |
269,573 | final RegisterWorkspaceDirectoryResult executeRegisterWorkspaceDirectory(RegisterWorkspaceDirectoryRequest registerWorkspaceDirectoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerWorkspaceDirectoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,310,788 | final ListRecoveryPointsByBackupVaultResult executeListRecoveryPointsByBackupVault(ListRecoveryPointsByBackupVaultRequest listRecoveryPointsByBackupVaultRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRecoveryPointsByBackupVaultRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,417,922 | public okhttp3.Call readPersistentVolumeCall(String name, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/persistentvolumes/{name}".replaceAll("\\{" + "name" + "\\}", localVarApiC... | localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); |
392,812 | public com.amazonaws.services.computeoptimizer.model.AccessDeniedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.computeoptimizer.model.AccessDeniedException accessDeniedException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context... | computeoptimizer.model.AccessDeniedException(null); |
420,730 | private Mono<Response<QueryPerformanceInsightResetDataResultInner>> resetQueryPerformanceInsightDataWithResponseAsync(String resourceGroupName, String serverName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required ... | )).readOnly())); |
455,400 | public // , ISequentialInStream<NEW_LINE>int // , ISequentialInStream<NEW_LINE>Code(// ISequentialOutStream<NEW_LINE>java.io.InputStream inStream, java.io.OutputStream outStream, long outSize, ICompressProgressInfo progress) throws java.io.IOException {<NEW_LINE>byte[] _buffer = new byte[kBufferSize];<NEW_LINE>long Tot... | (int) (outSize - TotalSize); |
727,948 | private void maybeRecordExportDeclaration(NodeTraversal t, Node n) {<NEW_LINE>if (!currentScript.isModule || !n.getString().equals("exports") || !isAssignTarget(n)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// ClosureCheckModule reports an error for duplicate 'exports = ' assignments, but that error<NEW_LINE>// may be sup... | String localName = defaultExport.getLocalName(); |
1,231,079 | protected void createEdge(LookUpCameraInfo dbCams, String src, String dst, DogArray<AssociatedPair> pairs, DogArray<AssociatedIndex> matches) {<NEW_LINE>DMatrixRMaj fundamental = new DMatrixRMaj(3, 3);<NEW_LINE>DogArray_I32 inlierIdx = new DogArray_I32();<NEW_LINE>// Retrieve any prior information on the cameras<NEW_LI... | dbCams.lookupCalibration(dst, priorB); |
1,671,270 | public static List<Locale> languagesByCountry(String countryCode) {<NEW_LINE>if (countryCode == null) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>List<Locale> langs = LANGUAGES_BY_COUNTRY.get(countryCode);<NEW_LINE>if (langs == null) {<NEW_LINE>langs = new ArrayList<Locale>();<NEW_LINE>List<Locale> l... | langs = LANGUAGES_BY_COUNTRY.get(countryCode); |
292,351 | private void buildCloseViewsActions() {<NEW_LINE>for (ViewInfo info : openViewsList) {<NEW_LINE>tool.removeAction(info.getAction());<NEW_LINE>}<NEW_LINE>openViewsList.clear();<NEW_LINE><MASK><NEW_LINE>if (pdp == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>tool.setMenuGroup(new String[] { ToolConstants.MENU_PROJECT, "C... | ProjectDataPanel pdp = plugin.getProjectDataPanel(); |
1,096,090 | private static Optional<io.swagger.v3.oas.models.media.Schema> toSchema(ParserContext ctx, Map<String, Object> annotation) {<NEW_LINE>Map<String, List<io.swagger.v3.oas.models.media.Schema>> schemaMap = new HashMap<>();<NEW_LINE>schemaType(ctx, annotation, "implementation", schemaMap::put);<NEW_LINE>schemaType(ctx, ann... | annotation, "anyOf", schemaMap::put); |
505,105 | public void marshall(AdministrativeAction administrativeAction, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (administrativeAction == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocol... | administrativeAction.getAdministrativeActionType(), ADMINISTRATIVEACTIONTYPE_BINDING); |
746,005 | private static void callShowWarning(PythonContext context, Object category, Object text, Object message, Object filename, int lineno, Object sourceline, Object sourceIn) {<NEW_LINE>PRaiseNode raise = PRaiseNode.getUncached();<NEW_LINE>Object showFn = getWarningsAttr(context, "_showwarnmsg", sourceIn != null);<NEW_LINE>... | NONE, PNone.NONE, source); |
938,244 | public void marshall(CreateKnowledgeBaseRequest createKnowledgeBaseRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createKnowledgeBaseRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK>... | createKnowledgeBaseRequest.getClientToken(), CLIENTTOKEN_BINDING); |
1,420,394 | public InfrastructureResponse listInfrastructure() {<NEW_LINE>final InfrastructureResponse response = new InfrastructureResponse();<NEW_LINE>response.setZones(dataCenterDao.countAll());<NEW_LINE>response.setPods(podDao.countAll());<NEW_LINE>response.setClusters(clusterDao.countAll());<NEW_LINE>response.setHosts(hostDao... | (VirtualRouter.Role.VIRTUAL_ROUTER)); |
1,844,195 | public void documentSet(String appName, String path, ReadableMap data, ReadableMap options, Promise promise) {<NEW_LINE>FirebaseFirestore firebaseFirestore = getFirestoreForApp(appName);<NEW_LINE>DocumentReference documentReference = getDocumentForFirestore(firebaseFirestore, path);<NEW_LINE>Tasks.call(getTransactional... | setTask = documentReference.set(settableData); |
226,728 | public void lookupDocuments(List<Point2D_F64> dots, int minLandmarks, List<FoundDocument> output) {<NEW_LINE>output.clear();<NEW_LINE>// It needs to have a minimum of this number of points to work<NEW_LINE>if (dots.size() < numberOfNeighborsN + 1)<NEW_LINE>return;<NEW_LINE>votingBooths.reset();<NEW_LINE>foundMap.clear(... | resize(dots.size()); |
909,386 | static ValueSummary<?> castFromAny(Guard pc, ValueSummary<?> def, UnionVS anyVal) {<NEW_LINE>ValueSummary<?> result;<NEW_LINE>if (def instanceof UnionVS) {<NEW_LINE>return anyVal;<NEW_LINE>}<NEW_LINE>Class<? extends ValueSummary> type = def.getClass();<NEW_LINE>Guard typeGuard = anyVal.getGuardFor(type);<NEW_LINE>Guard... | return new PrimitiveVS<>(pc); |
1,062,393 | public boolean dispatchKeyEvent(KeyEvent event) {<NEW_LINE>CommonApplication.getPreferences().setLastUserInteraction(System.currentTimeMillis());<NEW_LINE>mKeyHandler.checkShortcut(event);<NEW_LINE>if (mDisableKeyEvents || mActiveFragment == null) {<NEW_LINE>// 'll be enabled again after fragment switching<NEW_LINE>Log... | dispatchKeyEvent(mEvent) || superDispatchKeyEventWrapper(); |
107,330 | MergeResult _merge(PersonIdent committer, String message) throws IOException {<NEW_LINE>if (revWalk.isMergedInto(branchTip, srcTip)) {<NEW_LINE>// fast-forward<NEW_LINE>mergeCommit = srcTip;<NEW_LINE>refLogMessage = "merge " + src + ": Fast-forward";<NEW_LINE>operationMessage = MessageFormat.format("fast-forwarding {0}... | ObjectInserter odi = repository.newObjectInserter(); |
147,308 | public okhttp3.Call findPetsByStatusCall(List<String> status, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE>b... | HashMap<String, String>(); |
36,584 | public static // and uploads it to the blurred bucket.<NEW_LINE>void blur(BlobInfo blobInfo) throws IOException {<NEW_LINE>String bucketName = blobInfo.getBucket();<NEW_LINE>String fileName = blobInfo.getName();<NEW_LINE>// Download image<NEW_LINE>Blob blob = storage.get(BlobId.of(bucketName, fileName));<NEW_LINE>Path ... | get("/tmp/", "blurred-" + fileName); |
1,232,237 | protected void bindImplementationSpecificMetrics(MeterRegistry registry) {<NEW_LINE>StatisticsGateway stats = getStats();<NEW_LINE>Gauge.builder("cache.remoteSize", stats, StatisticsGateway::getRemoteSize).tags(getTagsWithCacheName()).description("The number of entries held remotely in this cache").register(registry);<... | .BYTES).register(registry); |
744,723 | protected CommandExecutionResult executeArg(AbstractEntityDiagram diagram, LineLocation location, RegexResult arg) throws NoSuchColorException {<NEW_LINE>final String codeRaw = StringUtils.eventuallyRemoveStartingAndEndingDoubleQuote(arg.getLazzy("CODE", 0));<NEW_LINE>final String displayRaw = StringUtils.eventuallyRem... | PACKAGE, currentPackage, NamespaceStrategy.SINGLE); |
39,139 | public void updateItem(Type item, boolean empty) {<NEW_LINE>super.updateItem(item, empty);<NEW_LINE>setGraphic(null);<NEW_LINE>if (empty) {<NEW_LINE>setText(null);<NEW_LINE>} else {<NEW_LINE>List<String> args = new ArrayList<>();<NEW_LINE>for (Type arg : item.getArgumentTypes()) {<NEW_LINE>Type used = arg;<NEW_LINE>int... | ? arg.getDimensions() : 0; |
93,966 | public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.tags_suggestion_list);<NEW_LINE>recyclerView.setHasFixedSize(true);<NEW_LINE>recyclerView.setLayoutManag... | setSelection(mTagsEditText.length()); |
1,212,096 | public void validateSchema(String jsonSchema) throws JRException {<NEW_LINE>ObjectMapper mapper = new ObjectMapper();<NEW_LINE>// relax the JSON rules<NEW_LINE>mapper.configure(JsonParser.Feature.ALLOW_SINGLE_QUOTES, true);<NEW_LINE>mapper.configure(JsonParser.Feature.ALLOW_UNQUOTED_FIELD_NAMES, true);<NEW_LINE>mapper.... | root = mapper.readTree(jsonSchema); |
914,166 | private boolean isCfDefUpdated(ColumnInfo columnInfo, CfDef cfDef, boolean isCql3Enabled, boolean isCounterColumnType, TableInfo tableInfo) throws Exception {<NEW_LINE>boolean columnPresent = false;<NEW_LINE>boolean isUpdated = false;<NEW_LINE>for (ColumnDef columnDef : cfDef.getColumn_metadata()) {<NEW_LINE>if (isColu... | .getType(), isCql3Enabled)); |
7,079 | public static DescribeAppVersionResponse unmarshall(DescribeAppVersionResponse describeAppVersionResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAppVersionResponse.setRequestId(_ctx.stringValue("DescribeAppVersionResponse.RequestId"));<NEW_LINE>AppVersion appVersion = new AppVersion();<NEW_LINE>appVersion.setId(... | (_ctx.stringValue("DescribeAppVersionResponse.AppVersion.DownloadUrl")); |
1,762,947 | public static ListFunctionResponse unmarshall(ListFunctionResponse listFunctionResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFunctionResponse.setRequestId(_ctx.stringValue("ListFunctionResponse.RequestId"));<NEW_LINE>listFunctionResponse.setHttpStatusCode(_ctx.stringValue("ListFunctionResponse.HttpStatusCode"));<N... | ("ListFunctionResponse.DataList[" + i + "].Spec.Memory")); |
84,417 | private void copyExecutableAndClasspath(PackrOutput output) throws IOException {<NEW_LINE>byte[] exe = null;<NEW_LINE>String extension = "";<NEW_LINE>switch(config.platform) {<NEW_LINE>case Windows64:<NEW_LINE>exe = readResource("/packr-windows-x64.exe");<NEW_LINE>extension = ".exe";<NEW_LINE>break;<NEW_LINE>case Linux... | System.out.println("Copying classpath(s) ..."); |
828,813 | final CacheSubnetGroup executeCreateCacheSubnetGroup(CreateCacheSubnetGroupRequest createCacheSubnetGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCacheSubnetGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
138,817 | final ListMonitoringExecutionsResult executeListMonitoringExecutions(ListMonitoringExecutionsRequest listMonitoringExecutionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMonitoringExecutionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | invoke(request, responseHandler, executionContext); |
470,881 | public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length < 2) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>System.err.println("Usage: IconExe <windows executable> <ico file>");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ImageLoader loader = new ImageLoader();<NEW_LINE>List<ImageData> images = new ArrayList<Im... | data = images.toArray(data); |
111,547 | public Result<String> scheduleReservations(String eventName, AdminReservationModification body, boolean singleReservation, String username) {<NEW_LINE>// safety check: if there are more than 150 people in a single reservation, the reservation page could take a while before showing up,<NEW_LINE>// therefore we will limi... | ("DUPLICATE_REFERENCE", "The following codes are duplicate:" + attendeesWithDuplicateReference)); |
692,930 | public static Map<PoolType, Collection<String>> classifyMemoryPools(MBeanServerConnection conn) throws IOException {<NEW_LINE>RuntimeMXBean rtmx = JMX.newMXBeanProxy(conn, RUNTIME_MXBEAN, RuntimeMXBean.class);<NEW_LINE>boolean jrockit = rtmx.getVmName().toUpperCase().contains("JROCKIT");<NEW_LINE>Map<PoolType, Collecti... | ? "JRockit" : gc.getName(); |
322,735 | public Operation.OperationResult executeFixedCostOperation(final MessageFrame frame, final EVM evm) {<NEW_LINE>final Bytes value0 = frame.popStackItem();<NEW_LINE>final Bytes value1 = frame.popStackItem();<NEW_LINE>final Bytes value2 = frame.popStackItem();<NEW_LINE>if (value2.isZero()) {<NEW_LINE>frame.pushStackItem(U... | 1, value1.toArrayUnsafe()); |
308,530 | private Node parseMixin() {<NEW_LINE>Mixin mixinToken = (Mixin) expect(Mixin.class);<NEW_LINE>MixinNode node = new MixinNode();<NEW_LINE>node.setName(mixinToken.getValue());<NEW_LINE>node.setLineNumber(mixinToken.getLineNumber());<NEW_LINE>node.setFileName(filename);<NEW_LINE>if (StringUtils.isNotBlank(mixinToken.getAr... | mixinToken.getValue(), node); |
855,258 | public static QueryPushStatByMsgResponse unmarshall(QueryPushStatByMsgResponse queryPushStatByMsgResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryPushStatByMsgResponse.setRequestId(_ctx.stringValue("QueryPushStatByMsgResponse.RequestId"));<NEW_LINE>List<PushStat> pushStats = new ArrayList<PushStat>();<NEW_LINE>for (... | ("QueryPushStatByMsgResponse.PushStats[" + i + "].MessageId")); |
195,079 | private void requestNewTorIdentity() {<NEW_LINE>switch(torStatus) {<NEW_LINE>case // tor is on, we can ask for a new identity<NEW_LINE>STATUS_ON:<NEW_LINE>Rotate3dAnimation rotation = new Rotate3dAnimation(ROTATE_FROM, ROTATE_TO, imgStatus.getWidth() / 2f, imgStatus.getWidth() / 2f, 20f, false);<NEW_LINE>rotation.setFi... | ((long) 2 * 1000); |
695,946 | private boolean isAnnotationEnabled(Class<? extends Annotation> clazz) {<NEW_LINE>BeanManager bm = CDI<MASK><NEW_LINE>LookupResult<? extends Annotation> lookupResult = lookupAnnotation(annotatedMethod, clazz, bm);<NEW_LINE>if (lookupResult == null) {<NEW_LINE>// not present<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>St... | .current().getBeanManager(); |
1,433,325 | @NoCache<NEW_LINE>@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>@Deprecated()<NEW_LINE>public Response updateFields(@PathParam("typeIdOrVarName") final String typeIdOrVarName, final String fieldsJson, @Context final HttpServletRequest httpSer... | fieldAPI.save(field, user); |
897,589 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>final Activity activity = getActivity();<NEW_LINE>final Story story = (Story) getArguments().getSerializable(STORY);<NEW_LINE>final String commentUserId = getArguments().getString(COMMENT_USER_ID);<NEW_LINE>final String replyId = getArguments().getStrin... | findViewById(R.id.reply_field); |
425,597 | public static void main(String[] args) {<NEW_LINE>ReStructuredTextConverter formatter = new ReStructuredTextConverter();<NEW_LINE>formatter.addSection("Section");<NEW_LINE>formatter.addSubSection("SubSection");<NEW_LINE>formatter.addSubSubSection("SubSubSection");<NEW_LINE>formatter.addChapter("Chapter");<NEW_LINE>form... | formatter.addExternalLink("ADempiere Test 1 ", "http://demo.erpya.com:8888/webui/"); |
61,448 | protected JMenu createMenu() {<NEW_LINE>JMenu menu = new JMenu(this);<NEW_LINE>JMenuItem item;<NEW_LINE>if (lkp == null) {<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(menu, Bundle.CTL_MenuItem_ConflictsMenu());<NEW_LINE>item = new JMenuItem();<NEW_LINE>Action action = SystemAction.get(ResolveConflictsAction.cla... | item, item.getText()); |
1,702,687 | public static CallInstr decode(IRReaderDecoder d) {<NEW_LINE>if (RubyInstanceConfig.IR_READING_DEBUG)<NEW_LINE>System.out.println("decodeCall");<NEW_LINE>int callTypeOrdinal = d.decodeInt();<NEW_LINE>CallType callType = CallType.fromOrdinal(callTypeOrdinal);<NEW_LINE>if (RubyInstanceConfig.IR_READING_DEBUG)<NEW_LINE>Sy... | Variable result = d.decodeVariable(); |
1,167,582 | public PyObject __call__(PyObject[] args, String[] kwds) {<NEW_LINE>if (args.length == 0) {<NEW_LINE>throw Py.TypeError("sorted() takes at least 1 argument (0 given)");<NEW_LINE>} else if (args.length > 4) {<NEW_LINE>throw Py.TypeError(String.format("sorted() takes at most 4 arguments (%s given)", args.length));<NEW_LI... | PyObject[args.length - 1]; |
352,758 | private <T extends Result> CompletableFuture<T> executeRequestOnExecutor(Parameters parameters, long queryStartNanoTime, Supplier<Request> requestSupplier) {<NEW_LINE>return runOnExecutor(() -> {<NEW_LINE>QueryState queryState = new QueryState(clientState);<NEW_LINE>Request request = requestSupplier.get();<NEW_LINE>if ... | (ErrorMessage) response).error); |
33,606 | public Problem prepare(RefactoringElementsBag refactoringElements) {<NEW_LINE>if (cancelled) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ModificationResult modificationResult = new ModificationResult();<NEW_LINE>RefactoringContext context = refactoring.getRefactoringSource(<MASK><NEW_LINE>assert context != null;<NEW_LI... | ).lookup(RefactoringContext.class); |
766,615 | // Utility methods<NEW_LINE>private void cleanAnnotationsAttribute(Clazz clazz, Member member, AnnotationsAttribute attribute, String attributeName) {<NEW_LINE>// Delete marked annotations.<NEW_LINE>AnnotationsAttributeEditor annotationsAttributeEditor = new AnnotationsAttributeEditor(attribute);<NEW_LINE>Annotation[] ... | , (ProgramMember) member, false); |
778,040 | public void read(final InputStream inputStream) throws IOException {<NEW_LINE>LOGGER.trace("CommandMessage.read");<NEW_LINE>// version, unused<NEW_LINE>StreamUtil.checkEnd(inputStream.read());<NEW_LINE>command = StreamUtil.checkEnd(inputStream.read());<NEW_LINE>StreamUtil.checkEnd(inputStream.read());<NEW_LINE>final in... | = new SocksServerReplyException(ServerReply.ADDRESS_TYPE_NOT_SUPPORTED); |
1,583,830 | private static ImmutableList<CToolchain> createToolchains(NdkPaths ndkPaths, StlImpl stlImpl, String hostPlatform) {<NEW_LINE>List<CToolchain.Builder> toolchainBuilders = new ArrayList<>();<NEW_LINE>toolchainBuilders.addAll(new ArmCrosstools(ndkPaths<MASK><NEW_LINE>toolchainBuilders.addAll(new MipsCrosstools(ndkPaths, ... | , stlImpl).createCrosstools()); |
1,481,463 | public TagValues unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TagValues tagValues = new TagValues();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok... | )).unmarshall(context)); |
1,795,018 | final DeletePolicyResult executeDeletePolicy(DeletePolicyRequest deletePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | false), new DeletePolicyResultJsonUnmarshaller()); |
120,694 | private void sendSessionExpiredEvt() {<NEW_LINE>// Get the Application Session Listener from the application's descriptor<NEW_LINE>SipAppDesc desc = m_appSession.getAppDescriptor();<NEW_LINE>// We will not have a Sip Add Descriptor in case the app session<NEW_LINE>// was created from the factory. Seems like a hole in t... | ()).sessionExpired(evt); |
1,479,900 | private static RemoteScreenshot[] takeCurrent(JPDADebugger debugger, DebuggerEngine engine) throws RetrievalException {<NEW_LINE>List<JPDAThread> allThreads = debugger.getThreadsCollector().getAllThreads();<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.log(Level.FINE, "Threads = {0}", allThreads);<NEW_L... | : (ns + " ns."))); |
1,631,610 | final DescribeIndexResult executeDescribeIndex(DescribeIndexRequest describeIndexRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeIndexRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | endClientExecution(awsRequestMetrics, request, response); |
996,619 | public static void convolve(Kernel2D_S32 kernel, InterleavedU16 src, InterleavedI16 dst) {<NEW_LINE>final int[] dataKernel = kernel.data;<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final int height = src.getHeight();<NEW_LINE... | int numBands = src.getNumBands(); |
1,704,971 | public static KafkaProducer<String, String> create(final String projectId, final String apiKey) {<NEW_LINE>final String jaasConfig = String.format("org.apache.kafka.common.security.plain.PlainLoginModule " + "required username=\"%s\" password=\"%s\";", projectId, apiKey);<NEW_LINE><MASK><NEW_LINE>props.put(BOOTSTRAP_SE... | final Properties props = new Properties(); |
1,392,008 | public void refresh() {<NEW_LINE>collectObj();<NEW_LINE>isActive = false;<NEW_LINE>Iterator<Integer> serverIds = serverObjMap.keySet().iterator();<NEW_LINE>final List<Pack> result = new ArrayList<Pack>();<NEW_LINE>while (serverIds.hasNext()) {<NEW_LINE>int serverId = serverIds.next();<NEW_LINE>TcpProxy tcp = TcpProxy.g... | param.put("counter", counter); |
1,246,778 | protected void configureGeneratedSourcesAndJavadoc(Project project) {<NEW_LINE>_generateJavadocTask = project.getTasks().create("generateJavadoc", Javadoc.class);<NEW_LINE>if (_generateSourcesJarTask == null) {<NEW_LINE>//<NEW_LINE>// configuration for publishing jars containing sources for generated classes<NEW_LINE>/... | generatedJavadoc = configurations.maybeCreate("generatedJavadoc"); |
196,733 | protected RelDataType leastRestrictiveStructuredType(final List<RelDataType> types) {<NEW_LINE>final RelDataType type0 = types.get(0);<NEW_LINE>final <MASK><NEW_LINE>// precheck that all types are structs with same number of fields<NEW_LINE>// and register desired nullability for the result<NEW_LINE>boolean isNullable ... | int fieldCount = type0.getFieldCount(); |
268,960 | public void onSensorChanged(SensorEvent sensorEvent) {<NEW_LINE>int currentType = sensorEvent.sensor.getType();<NEW_LINE>if (currentType != this.sensorType) {<NEW_LINE>// not for the current Sensor<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>double tempMs = <MASK><NEW_LINE>if (tempMs - lastReading >= interval) {<NEW_LINE>last... | (double) System.currentTimeMillis(); |
1,450,915 | public MethodDelegationBinder.ParameterBinding<?> bind(AnnotationDescription.Loadable<Morph> annotation, MethodDescription source, ParameterDescription target, Implementation.Target implementationTarget, Assigner assigner, Assigner.Typing typing) {<NEW_LINE>if (!target.getType().asErasure().equals(forwardingMethod.getD... | ).resolve(TypeDescription.class); |
1,459,951 | public Request<UpdateConfigurationSetTrackingOptionsRequest> marshall(UpdateConfigurationSetTrackingOptionsRequest updateConfigurationSetTrackingOptionsRequest) {<NEW_LINE>if (updateConfigurationSetTrackingOptionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_L... | <UpdateConfigurationSetTrackingOptionsRequest>(updateConfigurationSetTrackingOptionsRequest, "AmazonSimpleEmailService"); |
726,759 | public void rangeNotification(IntSeqKey conditionPath, ContextControllerConditionNonHA originEndpoint, EventBean optionalTriggeringEvent, Map<String, Object> optionalTriggeringPattern, EventBean optionalTriggeringEventPattern, Map<String, Object> optionalPatternForInclusiveEval, Map<String, Object> terminationPropertie... | IntSeqKey parentPath = conditionPath.removeFromEnd(); |
428,690 | public void testTls() {<NEW_LINE>Map<String, Object> sslConfig = new HashMap<>();<NEW_LINE>sslConfig.put(SslConfigs.SSL_TRUSTSTORE_LOCATION_CONFIG, TRUSTSTORE_FILENAME);<NEW_LINE>sslConfig.put(SslConfigs.SSL_TRUSTSTORE_PASSWORD_CONFIG, trustStorePassword);<NEW_LINE>sslConfig.put("security.protocol", "SASL_SSL");<NEW_LI... | testUser + "\" password=\"" + testSecret + "\";"); |
748,717 | protected PreparedStatement prepareStatement(String sql, Object[] params) throws SQLException {<NEW_LINE>PreparedStatement statement = connection.prepareStatement(sql);<NEW_LINE>// Spanner requires specific types for NULL according to the column.<NEW_LINE>// This is unlike other databases which have a single "null type... | [i].toString()); |
1,618,174 | BLangStatementExpression desugar(BLangQueryAction queryAction, SymbolEnv env) {<NEW_LINE>containsCheckExpr = false;<NEW_LINE>HashSet<BType> prevCheckedErrorList = this.checkedErrorList;<NEW_LINE>this.checkedErrorList = new HashSet<>();<NEW_LINE>List<BLangNode> clauses = queryAction.getQueryClauses();<NEW_LINE>Location ... | ASTBuilderUtil.createIfStmt(pos, queryBlock); |
162,228 | public boolean insertMonthlyReport(MonthlyReport report, byte[] content) {<NEW_LINE>try {<NEW_LINE>MonthlyReport monthReport = m_monthlyReportDao.findReportByDomainNamePeriod(report.getPeriod(), report.getDomain(), report.<MASK><NEW_LINE>if (monthReport != null) {<NEW_LINE>MonthlyReportContent reportContent = m_monthly... | getName(), MonthlyReportEntity.READSET_FULL); |
728,919 | public String inferModuleName(Context ctx) {<NEW_LINE>Names names = Names.instance(ctx);<NEW_LINE>GeneratedJavaStubFileObject fo = _fo;<NEW_LINE>String packageName = getPackageName(fo);<NEW_LINE>if (ReflectUtil.field(ReflectUtil.method("com.sun.tools.javac.comp.Modules", "instance", Context.class).invokeStatic(ctx), "a... | fromString(getPhysicalClassName(fo))); |
1,017,456 | private String buildUrl(GHGeocodingRequest request) {<NEW_LINE>String url = routeServiceUrl + "?";<NEW_LINE>if (request.isReverse()) {<NEW_LINE>if (!request.getPoint().isValid())<NEW_LINE>throw new IllegalArgumentException("For reverse geocoding you have to pass valid lat and long values");<NEW_LINE>url += "reverse=tru... | encodeURL(request.getLocale()); |
651,681 | public com.amazonaws.services.simplesystemsmanagement.model.InvocationDoesNotExistException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simplesystemsmanagement.model.InvocationDoesNotExistException invocationDoesNotExistException = new com.amazonaws.services... | JsonToken token = context.getCurrentToken(); |
1,547,012 | public static // inside the database of the program<NEW_LINE>void find_match() {<NEW_LINE>respList.clear();<NEW_LINE>// introduce thse new "string variable" to help<NEW_LINE>// support the implementation of keyword ranking<NEW_LINE>// during the matching process<NEW_LINE>String bestKeyWord = "";<NEW_LINE>Vector<Integer... | respIndex = index_vector.elementAt(0); |
413,987 | private Future<ProjectProblemsProvider.Result> resolveByDefiner() {<NEW_LINE>assert definer != null;<NEW_LINE>final RunnableFuture<ProjectProblemsProvider.Result> future = new FutureTask<ProjectProblemsProvider.Result>(new Callable<ProjectProblemsProvider.Result>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Project... | Level.INFO, null, x); |
565,810 | public void exitIpap_access_list(Ipap_access_listContext ctx) {<NEW_LINE>String name = ctx.name.getText();<NEW_LINE>String regex = ctx.regex.getText().trim();<NEW_LINE>LineAction <MASK><NEW_LINE>IpAsPathAccessListLine.OriginType origin = toOriginType(ctx.origin);<NEW_LINE>if (origin != IpAsPathAccessListLine.OriginType... | action = toLineAction(ctx.action); |
550,460 | protected void executeQuery() {<NEW_LINE>// FR [ 245 ]<NEW_LINE>String errorMsg = searchPanel.validateParameters();<NEW_LINE>if (errorMsg == null) {<NEW_LINE>if (getAD_Window_ID() > 1)<NEW_LINE>bZoom.setEnabled(true);<NEW_LINE>bSelectAll.setEnabled(true);<NEW_LINE>bExport.setEnabled(true);<NEW_LINE>if (isDeleteable()) ... | .getCtx(), errorMsg)); |
1,236,859 | static boolean isEqual(Binding declaringElement, Binding declaringElement2, HashSet visitedTypes) {<NEW_LINE>if (declaringElement instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding) {<NEW_LINE>if (!(declaringElement2 instanceof org.eclipse.jdt.internal.compiler.lookup.TypeBinding)) {<NEW_LINE>return false;... | .compiler.lookup.ModuleBinding) declaringElement; |
1,400,040 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>DeviceSession deviceS... | , parser.nextInt(0)); |
667,417 | public Mat run(Mat inputMat, ImageBlob imageBlob) {<NEW_LINE>int origin_w = inputMat.width();<NEW_LINE>int origin_h = inputMat.height();<NEW_LINE>imageBlob.getReshapeInfo().put("resize", new int[] { origin_w, origin_h });<NEW_LINE>int im_size_max = <MASK><NEW_LINE>float scale = (float) (long_size) / (float) (im_size_ma... | Math.max(origin_w, origin_h); |
1,173,928 | private static void expandDataFileRules(Path file) throws IOException {<NEW_LINE>boolean modified = false;<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>try (InputStream stream = Files.newInputStream(file);<NEW_LINE>InputStreamReader reader = new InputStreamReader(stream, StandardCharsets.UTF_8);<NEW_L... | (line).append("\n"); |
122,860 | private JMenu buildFileMenu() {<NEW_LINE>JMenuItem item;<NEW_LINE>fileMenu = new JMenu(tr("File"));<NEW_LINE>fileMenu.setMnemonic(KeyEvent.VK_F);<NEW_LINE>item = newJMenuItem(tr("New"), 'N');<NEW_LINE>item.addActionListener(event -> {<NEW_LINE>try {<NEW_LINE>base.handleNew();<NEW_LINE>} catch (Exception e1) {<NEW_LINE>... | (tr("Quit"), 'Q'); |
1,213,773 | public static SqlDelete collectTableInfo(SqlDelete delete, ExecutionContext ec) {<NEW_LINE>final List<SqlNode> sources = new ArrayList<>();<NEW_LINE>final List<SqlNode> aliases = new ArrayList<>();<NEW_LINE>final Map<SqlNode, List<SqlIdentifier>> subQueryTableMap = new HashMap<>();<NEW_LINE>final SqlNode sourceTableNod... | getOrderList().accept(tableFinder); |
23,025 | private static VaultEntry convertEntry(JSONObject entry) throws DatabaseImporterEntryException {<NEW_LINE>try {<NEW_LINE>AuthyEntryInfo authyEntryInfo = new AuthyEntryInfo();<NEW_LINE>authyEntryInfo.OriginalName = JsonUtils.optString(entry, "originalName");<NEW_LINE>authyEntryInfo.OriginalIssuer = JsonUtils.optString(e... | (entry.getString("decryptedSecret")); |
836,036 | private static void remapModel(String bn, String newbn) {<NEW_LINE>DynmapBlockState frombs = DynmapBlockState.getBaseStateByName(bn);<NEW_LINE>DynmapBlockState tobs = DynmapBlockState.getBaseStateByName(bn);<NEW_LINE>int fcnt = frombs.getStateCount();<NEW_LINE>for (int bs = 0; bs < tobs.getStateCount(); bs++) {<NEW_LIN... | put(tb.globalStateIndex, m); |
1,641,135 | private ArrayList<PointOfInterest> withinSphereChunkSectionSorted(Predicate<PointOfInterestType> predicate, BlockPos origin, int radius, PointOfInterestStorage.OccupationStatus status) {<NEW_LINE>double radiusSq = radius * radius;<NEW_LINE>int minChunkX = origin.getX() - radius - 1 >> 4;<NEW_LINE>int minChunkZ = origin... | ) + radius + 1 >> 4; |
935,432 | private void collectPropertyData(String[] propFiles, TreeMap<Key, String[]> properties, GwtLocaleFactory factory) throws FileNotFoundException, IOException {<NEW_LINE>for (String propFile : propFiles) {<NEW_LINE>if (!propFile.startsWith("DateTimeConstantsImpl") || !propFile.endsWith(".properties")) {<NEW_LINE>continue;... | fromString(suffix).getCanonicalForm(); |
345,152 | public static DescribeEpnInstanceAttributeResponse unmarshall(DescribeEpnInstanceAttributeResponse describeEpnInstanceAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeEpnInstanceAttributeResponse.setRequestId<MASK><NEW_LINE>describeEpnInstanceAttributeResponse.setEPNInstanceId(_ctx.stringValue("DescribeE... | (_ctx.stringValue("DescribeEpnInstanceAttributeResponse.RequestId")); |
314,807 | public SubjectAreaOMASAPIResponse<Project> createProject(String serverName, String userId, Project suppliedProject) {<NEW_LINE>final String methodName = "createProject";<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("==> Method: " + methodName + ",userId=" + userId);<NEW_LINE>}<NEW_LINE>SubjectAreaOMASAPIResp... | exception, auditLog, className, methodName); |
1,196,753 | public void addSign(TransactionSign req, StreamObserver<TransactionExtention> responseObserver) {<NEW_LINE>TransactionExtention.Builder trxExtBuilder = TransactionExtention.newBuilder();<NEW_LINE>Return.Builder retBuilder = Return.newBuilder();<NEW_LINE>try {<NEW_LINE>TransactionCapsule trx = transactionUtil.addSign(re... | getTransactionId().getByteString()); |
34,482 | private Observable<RibbonResponse<Observable<T>>> convertToRibbonResponse(final HystrixObservableCommandChain<T> commandChain, final Observable<ResultCommandPair<T>> hystrixNotificationObservable) {<NEW_LINE>return Observable.create(new OnSubscribe<RibbonResponse<Observable<T>>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LIN... | .getValue().getCommand(); |
127,830 | protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i... | getChildren().get(0); |
1,829,191 | private JPanel buildOptionsPanelRight() {<NEW_LINE>JPanel panel = new JPanel(new PairLayout(10, 2));<NEW_LINE>JLabel minLengthLabel = new GLabel("Minimum Length: ");<NEW_LINE>minLengthLabel.setName("minLen");<NEW_LINE>minLengthLabel.setToolTipText("<html>Searches for valid ascii or ascii unicode strings " + "greater or... | = new IntegerTextField(5, 5L); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.