idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
93,629 | public void testAsyncInvoker_getConnectionTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String target = null;<NEW_LINE>if (isZOS()) {<NEW_LINE>// https://stackoverflow.com/a/904609/6575578<NEW_LINE>target = "http://example.com:81";<NEW_LINE>} else {<NEW_LINE>// Connect to telnet port - which should b... | System.out.println("testAsyncInvoker_getConnectionTimeout Failed ExecutionException"); |
1,408,118 | public synchronized void deregisterSSLConfigChangeListener(SSLConfigChangeListener listener) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "deregisterSSLConfigChangeListener", new Object[] { listener });<NEW_LINE>if (null == listener) {<NEW_LINE>if (TraceComponent.isA... | Tr.exit(tc, "deregisterSSLConfigChangeListener"); |
1,369,815 | private void updateUpdateAllButton() {<NEW_LINE>View view = getView();<NEW_LINE>if (view == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DownloadResources indexes = getMyActivity().getDownloadThread().getIndexes();<NEW_LINE>final List<IndexItem> indexItems = indexes.getItemsToUpdate();<NEW_LINE>final TextView updateAll... | valueOf(downloadsSize >> 20)); |
1,696,183 | protected void importAddress(Person googlePerson, Partner partner, Boolean updateContactField) {<NEW_LINE>if (googlePerson.getAddresses() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>com.google.api.services.people.v1.model.Address googleAddr = Mapper.toBean(com.google.api.services.people.v1.model.Address.class, goog... | + googleAddr.getCity() + "'"; |
995,731 | public static TcpSackPermittedOption newInstance(byte[] rawData, int offset, int length) throws IllegalRawDataException {<NEW_LINE>ByteArrays.validateBounds(rawData, offset, length);<NEW_LINE>if (length < 2) {<NEW_LINE>StringBuilder sb = new StringBuilder(50);<NEW_LINE>sb.append("The raw data length must be more than 1... | IllegalRawDataException(sb.toString()); |
1,570,620 | private void createMBeans(HazelcastInstanceImpl hazelcastInstance, ManagementService managementService, Node node, ExecutionService executionService) {<NEW_LINE>this.nodeMBean = new NodeMBean(hazelcastInstance, node, managementService);<NEW_LINE>this.partitionServiceMBean = new PartitionServiceMBean(hazelcastInstance, ... | (ExecutionService.SYSTEM_EXECUTOR), service); |
1,660,795 | protected IResource[] collectResourcesOfInterest(IPackageFragment source) throws CoreException {<NEW_LINE>IJavaElement[] children = source.getChildren();<NEW_LINE>int childOfInterest = IJavaElement.COMPILATION_UNIT;<NEW_LINE>if (source.getKind() == IPackageFragmentRoot.K_BINARY) {<NEW_LINE>childOfInterest = IJavaElemen... | .add((IResource) element); |
1,743,933 | public DatastoreActivity unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DatastoreActivity datastoreActivity = new DatastoreActivity();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | class).unmarshall(context)); |
1,498,874 | private void loadRewardedAd() {<NEW_LINE>if (rewardedAd == null) {<NEW_LINE>isLoading = true;<NEW_LINE>AdRequest adRequest = new AdRequest.Builder().build();<NEW_LINE>RewardedAd.load(this, AD_UNIT_ID, adRequest, new RewardedAdLoadCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onAdFailedToLoad(@NonNull L... | TAG, loadAdError.getMessage()); |
1,793,685 | public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length < 1) {<NEW_LINE>throw new IllegalArgumentException("This program takes one argument: the path to an environment configuration file.");<NEW_LINE>}<NEW_LINE>TransformStream ts = new TransformStream();<NEW_LINE>Properties envProps = ts.load... | streamProps = ts.buildStreamsProperties(envProps); |
1,461,400 | public io.kubernetes.client.proto.V1Autoscaling.MetricSpec buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Autoscaling.MetricSpec result = new io.kubernetes.client.proto.V1Autoscaling.MetricSpec(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x0... | .object_ = objectBuilder_.build(); |
1,784,374 | public com.amazonaws.services.opsworks.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.opsworks.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.opsworks.model.ResourceNotFoundException(null);... | String currentParentElement = context.getCurrentParentElement(); |
21,919 | public PsiFile copyFileFrom(@Nonnull String newName, @Nonnull PsiFile originalFile) throws IncorrectOperationException {<NEW_LINE>checkCreateFile(newName);<NEW_LINE>final Document document = PsiDocumentManager.getInstance(getProject()).getDocument(originalFile);<NEW_LINE>if (document != null) {<NEW_LINE>FileDocumentMan... | getInstance().saveDocument(document); |
528,128 | private static void populatePrimitiveValue(FhirContext theContext, IBaseResource theSubscription, String theChildName, String theValue) {<NEW_LINE>RuntimeResourceDefinition def = theContext.getResourceDefinition(theSubscription);<NEW_LINE>Validate.isTrue(def.getName().equals("Subscription"), "theResource is not a subsc... | statusChild = def.getChildByName(theChildName); |
474,316 | public void log(final OAuditingOperation operation, final String dbName, OSecurityUser user, final String message) {<NEW_LINE>// If dbName is null, then we submit the log message to the global auditing hook.<NEW_LINE>// Otherwise, we submit it to the hook associated with dbName.<NEW_LINE>if (dbName != null) {<NEW_LINE>... | operation, dbName, user, message); |
927,993 | private static JSFunctionObject createBufferGetterFunction(JSRealm realm) {<NEW_LINE>JSContext context = realm.getContext();<NEW_LINE>JSFunctionData getterData = context.getOrCreateBuiltinFunctionData(JSContext.BuiltinFunctionKey.WebAssemblyMemoryGetBuffer, (c) -> {<NEW_LINE>CallTarget callTarget = new JavaScriptRootNo... | (Strings.GET_SPC, BUFFER)); |
1,352,802 | private JSType evalRecordType(Node ttlAst, NameResolver nameResolver) {<NEW_LINE>int paramCount = getCallParamCount(ttlAst);<NEW_LINE>ImmutableList.Builder<ObjectType> recTypesBuilder = new ImmutableList.Builder<>();<NEW_LINE>for (int i = 0; i < paramCount; i++) {<NEW_LINE>JSType type = evalRecordParam(getCallArgument(... | add(recType.toMaybeObjectType()); |
42,875 | public CompletableFuture<Object> processCommand(NbCodeLanguageClient client, String command, List<Object> arguments) {<NEW_LINE>if (arguments.size() > 2) {<NEW_LINE>String uri = gson.fromJson(gson.toJson(arguments.get(0)), String.class);<NEW_LINE>QuickPickItem type = gson.fromJson(gson.toJson(arguments.get(1)), QuickPi... | command, type, selected, name); |
973,948 | public boolean closeOthers(boolean force) {<NEW_LINE>IWorkbenchPage page = editor.getSite().getPage();<NEW_LINE>if (page.getEditorReferences().length < 2) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>boolean success = (force || page.getDirtyEditors().length == 0);<NEW_LINE>// Vim behavior is to close all clean editors, ... | = new ArrayList<IEditorReference>(); |
109,084 | public void marshall(CreateServiceTemplateVersionRequest createServiceTemplateVersionRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createServiceTemplateVersionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protoco... | createServiceTemplateVersionRequest.getTags(), TAGS_BINDING); |
187,369 | public SmithyBuildResult build() {<NEW_LINE>SmithyBuildResult.Builder resultBuilder = SmithyBuildResult.builder();<NEW_LINE>Map<String, Throwable> errors = Collections.synchronizedMap(new TreeMap<>());<NEW_LINE>build(resultBuilder::addProjectionResult, errors::put);<NEW_LINE>if (!errors.isEmpty()) {<NEW_LINE>StringBuil... | ()).append(" Smithy build projections failed."); |
78,355 | public void postExecute() {<NEW_LINE>if (startNanos > 0) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (transaction.isLogSql() && !batchThisRequest) {<NEW_LINE>transaction.logSql(Str.add(TrimLogSql.trim(updateSql.getGeneratedSql()), "; -- bind(", bindLog, ") rows(", String.valueOf(rowCount), ")"));<NEW_LINE>}<NEW_LINE>if (u... | persistExecute.collectSqlUpdate(label, startNanos); |
623,947 | protected void paintComponent(Graphics g) {<NEW_LINE>final Graphics2D g2d = (Graphics2D) g;<NEW_LINE>final Rectangle bounds = getBounds();<NEW_LINE>final Insets insets = getInsets();<NEW_LINE>final GraphicsConfig cfg = new GraphicsConfig(g);<NEW_LINE>cfg.setAntialiasing(true);<NEW_LINE>final Shape shape = new RoundRect... | g2d.setColor(JBColor.WHITE); |
782,045 | protected void bitcoinSerializeToStream(OutputStream stream, boolean useSegwit) throws IOException {<NEW_LINE>// version<NEW_LINE>uint32ToByteStreamLE(version, stream);<NEW_LINE>// marker, flag<NEW_LINE>if (useSegwit) {<NEW_LINE>stream.write(0);<NEW_LINE>stream.write(1);<NEW_LINE>}<NEW_LINE>// txin_count, txins<NEW_LIN... | getWitness().bitcoinSerializeToStream(stream); |
371,171 | public Map<String, LinkedList<BinaryMapDataObject>> cacheAllCountries() throws IOException {<NEW_LINE>quadTree = new QuadTree<String>(new QuadRect(0, 0, Integer.MAX_VALUE, Integer.MAX_VALUE), 8, 0.55f);<NEW_LINE>final ResultMatcher<BinaryMapDataObject> resultMatcher = new ResultMatcher<BinaryMapDataObject>() {<NEW_LINE... | y = object.getPoint31YTile(i); |
541,972 | public void encodeThumbnails(FacesContext context, Galleria galleria) throws IOException {<NEW_LINE>UIComponent facet = galleria.getFacet("thumbnail");<NEW_LINE>boolean <MASK><NEW_LINE>if (galleria.isShowThumbnails() && shouldRenderFacet) {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>writer.s... | shouldRenderFacet = ComponentUtils.shouldRenderFacet(facet); |
463,834 | public CompletableFuture<Object> invoke(Map<String, ?> arguments) {<NEW_LINE>String ret = (boolean) arguments.get("Stop") ? " return 'stop'; " : "";<NEW_LINE>String addr = (String) arguments.get("Address");<NEW_LINE>if (!addr.startsWith("0x")) {<NEW_LINE>addr = "0x" + addr;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>getManag... | String cmd = kernel ? "Kernel" : "Memory"; |
458,940 | public static ClientMessage encodeRequest(java.lang.String schedulerName, java.lang.String taskName, boolean mayInterruptIfRunning) {<NEW_LINE><MASK><NEW_LINE>clientMessage.setRetryable(true);<NEW_LINE>clientMessage.setOperationName("ScheduledExecutor.CancelFromPartition");<NEW_LINE>ClientMessage.Frame initialFrame = n... | ClientMessage clientMessage = ClientMessage.createForEncode(); |
1,525,655 | private static LifecycleInjector init() throws Exception {<NEW_LINE>System.out.println("Creating injector for Example Service");<NEW_LINE>LifecycleInjector injector = InjectorBuilder.fromModules(new EurekaModule(), new ExampleServiceModule()).overrideWith(new AbstractModule() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>pro... | System.out.println("Done creating the injector"); |
1,015,677 | private static Map<String, List<Service>> parseServices(TruffleLanguage.Env env) {<NEW_LINE>TruffleFile services_file = env.getPublicTruffleFile("/etc/services");<NEW_LINE>try {<NEW_LINE>BufferedReader br = services_file.newBufferedReader();<NEW_LINE>String line;<NEW_LINE>Map<String, List<Service>> <MASK><NEW_LINE>whil... | parsedServices = new HashMap<>(); |
1,465,267 | public static void doInsertMethod(final Document document, final int pos, OperationNode operationNode) {<NEW_LINE>Node portNode = operationNode.getParentNode();<NEW_LINE>Node serviceNode = portNode.getParentNode();<NEW_LINE>Node wsdlNode = serviceNode.getParentNode();<NEW_LINE>WsdlOperation operation = operationNode.ge... | clientSupport = JAXWSClientSupport.getJaxWsClientSupport(srcRoot); |
1,482,505 | public DescribeAuthenticationProfilesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeAuthenticationProfilesResult describeAuthenticationProfilesResult = new DescribeAuthenticationProfilesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = o... | ().unmarshall(context)); |
256,315 | public ManufOrder generateManufOrder(Product product, BigDecimal qtyRequested, int priority, boolean isToInvoice, BillOfMaterial billOfMaterial, LocalDateTime plannedStartDateT, LocalDateTime plannedEndDateT, int originType) throws AxelorException {<NEW_LINE>if (billOfMaterial == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_... | billOfMaterial = this.getBillOfMaterial(product); |
56,302 | public boolean isRectangleCover(int[][] rectangles) {<NEW_LINE>long area = 0;<NEW_LINE>int minX = rectangles[0][0], minY = rectangles[0][1];<NEW_LINE>int maxX = rectangles[0][2], maxY = rectangles[0][3];<NEW_LINE>Map<Pair, Integer> cnt = new HashMap<>();<NEW_LINE>for (int[] r : rectangles) {<NEW_LINE>area += (r[2] - r[... | new Pair(minX, maxY)); |
603,661 | public JobDetail mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>JobDetail job = new JobDetail();<NEW_LINE>job.id = rs.getString("pk_job");<NEW_LINE>job.showId = rs.getString("pk_show");<NEW_LINE>job.facilityId = rs.getString("pk_facility");<NEW_LINE>job.deptId = rs.getString("pk_dept");<NEW_LINE>job.gr... | maxGpuUnits = rs.getInt("int_max_gpus"); |
238,921 | private void loadNode885() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.ServerType_ServerStatus_BuildInfo_SoftwareVersion, new QualifiedName(0, "SoftwareVersion"), new LocalizedText("en", "SoftwareVersion"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.val... | (1), 1000.0, false); |
267,557 | public void run(RegressionEnvironment env) {<NEW_LINE>EPCompiled compiled = env.compile(EPL_OBJECTS);<NEW_LINE>env.deploy(compiled);<NEW_LINE>String idCreate = env.deploymentId("eplobjects");<NEW_LINE>env.stageService().getStage("S1");<NEW_LINE>stageIt(env, "S1", idCreate);<NEW_LINE>tryInvalidDeploy(env, env.compile(EP... | .compile(EPL_EVENT_TYPE), "A precondition is not satisfied: event type by name 'MyEvent' is already defined by stage 'S1'"); |
792,021 | private void pinNote() {<NEW_LINE>PendingIntent notifyIntent = IntentHelper.getNotePendingIntent(getContext(), SnoozeActivity.class, ACTION_PINNED, note);<NEW_LINE>Spanned[] titleAndContent = TextHelper.parseTitleAndContent(getContext(), note);<NEW_LINE>String pinnedTitle = titleAndContent[0].toString();<NEW_LINE>Strin... | (0), 128, 128); |
772,826 | // builds directives from a type and its extensions<NEW_LINE>@NotNull<NEW_LINE>GraphQLDirective buildDirective(BuildContext buildCtx, Directive directive, Set<GraphQLDirective> directiveDefinitions, DirectiveLocation directiveLocation, GraphqlTypeComparatorRegistry comparatorRegistry) {<NEW_LINE>GraphQLDirective.Builde... | (comparatorRegistry).validLocations(directiveLocation); |
397,819 | public void readFields(DataInput in) throws IOException {<NEW_LINE>super.readFields(in);<NEW_LINE>// Read MySQL meta<NEW_LINE>int size = in.readInt();<NEW_LINE>Map<String, String<MASK><NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>String key = Text.readString(in);<NEW_LINE>String value = Text.readString(in);<NEW_L... | > serializeMap = Maps.newHashMap(); |
60,167 | public static // 'for' paramNameDef '=' expr ',' expr (',' expr)? 'do' <<lazyBlock>> 'end'<NEW_LINE>boolean forAStat(PsiBuilder b, int l) {<NEW_LINE>if (!recursion_guard_(b, l, "forAStat"))<NEW_LINE>return false;<NEW_LINE>if (!nextTokenIs(b, FOR))<NEW_LINE>return false;<NEW_LINE>boolean r, p;<NEW_LINE>Marker m = enter_... | (b, l + 1)); |
1,152,581 | private void ensureInitialized() {<NEW_LINE>if (mFactory != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PeerConnectionFactory.initialize(InitializationOptions.builder(context).setEnableInternalTracer(true).createInitializationOptions());<NEW_LINE>// Initialize EGL contexts required for HW acceleration.<NEW_LINE>EglBas... | setAudioDeviceModule(audioDeviceModule).createPeerConnectionFactory(); |
839,503 | private void handleSubquery(TransformExpressionTree expression, long requestId, JsonNode jsonRequest, @Nullable RequesterIdentity requesterIdentity, RequestStatistics requestStatistics) throws Exception {<NEW_LINE>if (expression.getExpressionType() != TransformExpressionTree.ExpressionType.FUNCTION) {<NEW_LINE>return;<... | subqueryExpression = children.get(1); |
1,328,784 | final DeleteCoreNetworkPolicyVersionResult executeDeleteCoreNetworkPolicyVersion(DeleteCoreNetworkPolicyVersionRequest deleteCoreNetworkPolicyVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCoreNetworkPolicyVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | addHandlerContext(HandlerContextKey.SERVICE_ID, "NetworkManager"); |
1,418,608 | public AsyncJobResponse newAsyncJobResponse(final AsyncJobJoinVO job) {<NEW_LINE>final AsyncJobResponse jobResponse = new AsyncJobResponse();<NEW_LINE>jobResponse.setAccountId(job.getAccountUuid());<NEW_LINE>jobResponse.setUserId(job.getUserUuid());<NEW_LINE>jobResponse.setCmd(job.getCmd());<NEW_LINE>jobResponse.setCre... | current().setUuidTranslation(savedValue); |
525,456 | final UpdateAssessmentFrameworkShareResult executeUpdateAssessmentFrameworkShare(UpdateAssessmentFrameworkShareRequest updateAssessmentFrameworkShareRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAssessmentFrameworkShareRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | invoke(request, responseHandler, executionContext); |
752,723 | public ActionNotificationExportEntity postActionNotificationExports(ActionNotificationExportsBody body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/action_notification_exports";<NEW_LINE>// query params<NEW_LINE>List<Pair> loc... | localVarAuthNames = new String[] {}; |
176,980 | private static byte[] decodeBase64(String s, int maxolen) throws IllegalArgumentException {<NEW_LINE>final StringBuilder rs = new StringBuilder();<NEW_LINE>int off = 0, slen = s.length(), olen = 0;<NEW_LINE>byte[] ret;<NEW_LINE>byte c1, c2, c3, c4, o;<NEW_LINE>if (maxolen <= 0)<NEW_LINE>throw new IllegalArgumentExcepti... | (c2 & 0x30) >> 4; |
1,401,263 | protected void consumeConstructorHeaderNameWithTypeParameters() {<NEW_LINE>long selectorSourcePositions = this.identifierPositionStack[this.identifierPtr];<NEW_LINE>int selectorSourceEnd = (int) selectorSourcePositions;<NEW_LINE>int currentAstPtr = this.astPtr;<NEW_LINE>if (this.currentElement != null && this.lastIgnor... | [this.astPtr], selectorSourceEnd); |
1,090,981 | private FileStatus newFileStatus(Path p, Pointer buf, int size, boolean readlink) throws IOException {<NEW_LINE>int <MASK><NEW_LINE>// Go<NEW_LINE>boolean isdir = ((mode >>> 31) & 1) == 1;<NEW_LINE>int stickybit = (mode >>> 20) & 1;<NEW_LINE>FsPermission perm = new FsPermission((short) ((mode & 0777) | (stickybit << 9)... | mode = buf.getInt(0); |
1,855,406 | private Node split(Node node) {<NEW_LINE>Node[] nodes <MASK><NEW_LINE>System.arraycopy(children, 0, nodes, 0, B);<NEW_LINE>nodes[B] = node;<NEW_LINE>double[][] dist = pdist(nodes);<NEW_LINE>IntPair farthest = MathEx.whichMax(dist);<NEW_LINE>k = 0;<NEW_LINE>int n = 0;<NEW_LINE>Node[] sister = new Node[B];<NEW_LINE>for (... | = new Node[B + 1]; |
236,202 | protected void onCreate(Bundle state, boolean ready) {<NEW_LINE>super.onCreate(state, ready);<NEW_LINE><MASK><NEW_LINE>webView.getSettings().setBlockNetworkLoads(!loadRemoteContent);<NEW_LINE>// setBuiltInZoomControls() adds pinch-to-zoom as well as two on-screen zoom control buttons.<NEW_LINE>// The latter are a bit a... | loadRemoteContent = Prefs.getAlwaysLoadRemoteContent(this); |
98,605 | private void construct() {<NEW_LINE>int i, p, r;<NEW_LINE>for (i = 0; i < N; ++i) c[rank[i] = T[i]]++;<NEW_LINE>for (i = 1; i < ALPHABET_SZ; ++i) c[i<MASK><NEW_LINE>for (i = N - 1; i >= 0; --i) sa[--c[T[i]]] = i;<NEW_LINE>for (p = 1; p < N; p <<= 1) {<NEW_LINE>for (r = 0, i = N - p; i < N; ++i) sa2[r++] = i;<NEW_LINE>f... | ] += c[i - 1]; |
1,583,890 | public com.amazonaws.services.glue.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.glue.model.ValidationException validationException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>S... | glue.model.ValidationException(null); |
596,302 | static void doExecuteConverterGeneric(ConversionNodeSupplier supplier, int index, Object converter, Object inputArgument, Object outputArgument, @CachedLibrary("converter") InteropLibrary converterLib, @CachedLibrary(limit = "1") InteropLibrary resultLib, @Cached(value = "createTN(supplier)", uncached = "getUncachedTN(... | CALLING_ARG_CONVERTER_FAIL_INCOMPATIBLE_PARAMS, e.getSuppliedValues()); |
1,102,431 | public PReferenceType refType(Object cls, PythonAbstractNativeObject pythonObject, Object callback, @Cached GetClassNode getClassNode, @Cached IsBuiltinClassProfile profile) {<NEW_LINE>Object actualCallback = callback instanceof PNone ? null : callback;<NEW_LINE>Object clazz = getClassNode.execute(pythonObject);<NEW_LI... | execute(clazz, NativeMember.TP_WEAKLISTOFFSET); |
654,917 | @ResponseBody<NEW_LINE>public ReadableOrderList list(@RequestParam(value = "count", required = false, defaultValue = DEFAULT_ORDER_LIST_COUNT) Integer count, @RequestParam(value = "page", required = false, defaultValue = "0") Integer page, @RequestParam(value = "name", required = false) String name, @RequestParam(value... | orderFacade.getReadableOrderList(orderCriteria, merchantStore); |
871,041 | public static ListTableThemeResponse unmarshall(ListTableThemeResponse listTableThemeResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTableThemeResponse.setRequestId(_ctx.stringValue("ListTableThemeResponse.RequestId"));<NEW_LINE>listTableThemeResponse.setErrorCode(_ctx.stringValue("ListTableThemeResponse.ErrorCode")... | ("ListTableThemeResponse.Data.ThemeList[" + i + "].ProjectId")); |
415,538 | private void okPressed() {<NEW_LINE>try {<NEW_LINE>this<MASK><NEW_LINE>} catch (InvalidObjectIdException | IllegalArgumentException e) {<NEW_LINE>JOptionPane.showMessageDialog(this, e.getMessage(), getTitle(), JOptionPane.WARNING_MESSAGE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>this.value = Hex.decode(jtaE... | .oid = joidCustomOID.getObjectId(); |
1,271,037 | protected void dscal(long N, double alpha, INDArray X, int incX) {<NEW_LINE>Preconditions.checkArgument(X.dataType() == DataType.DOUBLE, "Double dtype expected");<NEW_LINE>Nd4j<MASK><NEW_LINE>CudaContext ctx = allocator.getFlowController().prepareAction(X);<NEW_LINE>CublasPointer xCPointer = new CublasPointer(X, ctx);<... | .getExecutioner().push(); |
1,295,866 | public static void buildXML(StringBuilder buf, Varnode[] varnodes, long logicalsize) {<NEW_LINE>if (varnodes == null) {<NEW_LINE>buf.append("<addr/>");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if ((varnodes.length == 1) && (logicalsize == 0)) {<NEW_LINE>AddressXML.buildXML(buf, varnodes[0].getAddress(), varnodes[0].getSize... | ), vn.getSize()); |
74,228 | private void loadNode1092() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerState_EnumStrings, new QualifiedName(0, "EnumStrings"), new LocalizedText("en", "EnumStrings"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new Dat... | Object o = decoder.readVariantValue(); |
290,934 | protected JFreeChart createPieChart() throws JRException {<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());<NEW_LINE>JFreeChart jfreeChart = ChartFactory.createPieChart(evaluateTextExpression(getChart().getTitleExpression()), (PieDataset) getDataset(), isShowLegend(), true, false);<NEW_LINE>... | ? true : jrPiePlot.getShowLabels(); |
1,326,211 | protected JMenu createMenu() {<NEW_LINE><MASK><NEW_LINE>JMenuItem item;<NEW_LINE>if (dest.equals(ActionDestination.MainMenu)) {<NEW_LINE>item = new JMenuItem();<NEW_LINE>Action action = (Action) SystemAction.get(CheckoutRevisionAction.class);<NEW_LINE>Utils.setAcceleratorBindings(Annotator.ACTIONS_PATH_PREFIX, action);... | JMenu menu = new JMenu(this); |
1,174,825 | public void onReceive(Context context, Intent intent) {<NEW_LINE>if (BooksService.RESULT_SEARCH_FINISH.equals(intent.getStringExtra(Intent.EXTRA_TEXT))) {<NEW_LINE>searchAndOrderAsync();<NEW_LINE>searchEditText.<MASK><NEW_LINE>onRefresh.setActivated(true);<NEW_LINE>if (AppsConfig.IS_LOG) {<NEW_LINE>searchEditText.setHi... | setHint(R.string.search); |
318,090 | protected void onAddWidgets() {<NEW_LINE>NewProjectResources.Styles styles = NewProjectResources.INSTANCE.styles();<NEW_LINE>VerticalPanel urlPanel = new VerticalPanel();<NEW_LINE>urlPanel.addStyleName(styles.wizardMainColumn());<NEW_LINE>txtRepoUrl_ = new TextBox();<NEW_LINE>txtRepoUrl_.addDomHandler(new KeyDownHandle... | addStyleName(styles.wizardTextEntryLabel()); |
1,852,770 | private static CodegenExpression makeTypeResolver(Object type, CodegenMethodScope parent, ModuleEventTypeInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>if (type instanceof EPType) {<NEW_LINE>EPType eptype = (EPType) type;<NEW_LINE>return CodegenExpressionEPType.toExpression(eptype);<NEW_LINE>} else ... | resolveTypeCodegen(innerType, ModuleEventTypeInitializeSymbol.REF_INITSVC); |
1,407,583 | protected ExecutionResult markRows(QueryResults queryResults, Iterable<MatchedResult> potentialMatchesByScore) {<NEW_LINE>int rowCount = table.getRowCount();<NEW_LINE>List<Integer> unmatchedResultRows = unmatchedRows(queryResults.getRows().size());<NEW_LINE>for (int tableRow = 2; tableRow < rowCount; tableRow++) {<NEW_... | ? ExecutionResult.FAIL : ExecutionResult.PASS; |
849,439 | public static void addSealedMissingModifierProposal(IInvocationContext context, IProblemLocationCore problem, Collection<ChangeCorrectionProposal> proposals) {<NEW_LINE>if (proposals == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ASTNode selectedNode = problem.getCoveringNode(context.getASTRoot());<NEW_LINE>if (!(sele... | SimpleName) selectedNode).getParent(); |
680,610 | public synchronized void flush() throws IOException, JournalClosedException {<NEW_LINE>checkIsWritable();<NEW_LINE>maybeRecoverFromUfsFailures();<NEW_LINE>if (mJournalOutputStream == null || mJournalOutputStream.bytesWritten() == 0) {<NEW_LINE>// There is nothing to flush.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW... | mJournalOutputStream.bytesWritten(), mMaxLogSize); |
1,605,778 | // We have to post Runnables in a loop. Typically there will be very few callbacks. Acessor method<NEW_LINE>// warning seems to be false positive.<NEW_LINE>@SuppressWarnings({ "WeakerAccess", "PMD.AvoidInstantiatingObjectsInLoops", "PMD.AccessorMethodGeneration" })<NEW_LINE>@Synthetic<NEW_LINE>void notifyCallbacksOfExc... | copy.size() + 1); |
758,570 | public com.amazonaws.services.pinpointemail.model.AccountSuspendedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.pinpointemail.model.AccountSuspendedException accountSuspendedException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = c... | pinpointemail.model.AccountSuspendedException(null); |
472,652 | private void rePublishMyProposalsOnceWellConnected() {<NEW_LINE>// We republish at each startup at any block during the cycle. We filter anyway for valid blind votes<NEW_LINE>// of that cycle so it is 1 blind vote getting rebroadcast at each startup to my neighbors.<NEW_LINE>int minPeers = Config.baseCurrencyNetwork().... | ).forEach(this::addToP2PNetworkAsProtectedData); |
394,820 | public static void main(String[] args) {<NEW_LINE>// Inline illustrative data.<NEW_LINE>String data = // This rdf:ID starts with a digit which normal causes a warning.<NEW_LINE>StrUtils.// This rdf:ID starts with a digit which normal causes a warning.<NEW_LINE>strjoinNL(// This rdf:ID starts with a digit which normal c... | Model model = ModelFactory.createDefaultModel(); |
342,904 | public void replaceWith(DataType dataType) {<NEW_LINE>if (!(dataType instanceof Enum)) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>Enum enumm = (Enum) dataType;<NEW_LINE>lock.acquire();<NEW_LINE>try {<NEW_LINE>checkDeleted();<NEW_LINE>bitGroups = null;<NEW_LINE>nameMap = new HashMap<>();<NEW_LI... | dataMgr.dataTypeChanged(this, false); |
100,046 | public Cursor handle(RelNode logicalPlan, ExecutionContext executionContext) {<NEW_LINE>String appName = executionContext.getAppName();<NEW_LINE>RecycleBin bin = RecycleBinManager.instance.getByAppName(appName);<NEW_LINE>if (bin == null) {<NEW_LINE>throw new TddlRuntimeException(ErrorCode.ERR_RECYCLEBIN_EXECUTE, "can't... | addColumn("NAME", DataTypes.StringType); |
1,673,476 | public void LAPACK_zheevr(BytePointer arg0, BytePointer arg1, BytePointer arg2, int[] arg3, double[] arg4, int[] arg5, double[] arg6, double[] arg7, int[] arg8, int[] arg9, double[] arg10, int[] arg11, double[] arg12, double[] arg13, int[] arg14, int[] arg15, double[] arg16, int[] arg17, double[] arg18, int[] arg19, in... | arg19, arg20, arg21, arg22); |
1,321,995 | public List<WorkflowAction> findAvailableActions(final Contentlet contentlet, final User user, final RenderMode renderMode) throws DotDataException, DotSecurityException {<NEW_LINE>if (contentlet == null || contentlet.getStructure() == null) {<NEW_LINE>Logger.debug(this, () -> "the Contentlet: " + contentlet + " or the... | getVersionableAPI().isDeleted(contentlet); |
162,015 | /*<NEW_LINE>* Transform SentenceSentiment's opinion mining to output that user can use.<NEW_LINE>*/<NEW_LINE>private static IterableStream<SentenceOpinion> toSentenceOpinionList(com.azure.ai.textanalytics.implementation.models.SentenceSentiment sentenceSentiment, List<DocumentSentiment> documentSentimentList) {<NEW_LIN... | new IterableStream<>(assessmentSentiments)); |
1,086,130 | private Mono<Response<HostPoolInner>> updateWithResponseAsync(String resourceGroupName, String hostPoolName, HostPoolPatch hostPool, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,601,857 | public final boolean test(ShardedRequests<?, ?> shardedRequests) {<NEW_LINE>long localJobs = Math.max(<MASK><NEW_LINE>double memoryRatio = 1.0 / localJobs;<NEW_LINE>long maxUsableByShardRequests = Math.max((long) (queryCircuitBreaker.getFree() * BREAKER_LIMIT_PERCENTAGE * memoryRatio), MIN_ACCEPTABLE_BYTES);<NEW_LINE>l... | 1, nodeLimit.numInflight()); |
1,683,860 | public static Mat detectFace(Mat inputImage) {<NEW_LINE>MatOfRect facesDetected = new MatOfRect();<NEW_LINE>CascadeClassifier cascadeClassifier = new CascadeClassifier();<NEW_LINE>int minFaceSize = Math.round(<MASK><NEW_LINE>cascadeClassifier.load("./src/main/resources/haarcascades/haarcascade_frontalface_alt.xml");<NE... | inputImage.rows() * 0.1f); |
1,387,006 | public boolean applies(GameEvent event, Ability source, Game game) {<NEW_LINE>// Prevent untap event of creatures of target player<NEW_LINE>if (game.getTurn().getStepType() == PhaseStep.UNTAP) {<NEW_LINE>Plane cPlane = game.getState().getCurrentPlane();<NEW_LINE>if (cPlane == null) {<NEW_LINE>return false;<NEW_LINE>}<N... | new FixedTarget(permanent, game)); |
571,051 | public RestAction<Invite> expand() {<NEW_LINE>if (this.expanded)<NEW_LINE>return new CompletedRestAction<>(getJDA(), this);<NEW_LINE>if (this.type != Invite.InviteType.GUILD)<NEW_LINE>throw new IllegalStateException("Only guild invites can be expanded");<NEW_LINE>final net.dv8tion.jda.api.entities.Guild guild = this.ap... | this.channel.getIdLong()); |
739,273 | public static ListObjectsResponse unmarshall(ListObjectsResponse listObjectsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listObjectsResponse.setRequestId(_ctx.stringValue("ListObjectsResponse.RequestId"));<NEW_LINE>listObjectsResponse.setBucketName(_ctx.stringValue("ListObjectsResponse.BucketName"));<NEW_LINE>listObj... | ("ListObjectsResponse.Contents[" + i + "].Key")); |
56,258 | public final // JPA2.g:544:1: function_name : STRING_LITERAL ;<NEW_LINE>JPA2Parser.function_name_return function_name() throws RecognitionException {<NEW_LINE>JPA2Parser.function_name_return retval = new JPA2Parser.function_name_return();<NEW_LINE>retval.start = input.LT(1);<NEW_LINE>Object root_0 = null;<NEW_LINE>Toke... | match(input, STRING_LITERAL, FOLLOW_STRING_LITERAL_in_function_name4984); |
1,503,698 | protected void encodeHeaders(FacesContext context, TabView tabView) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>boolean scrollable = tabView.isScrollable();<NEW_LINE>if (scrollable) {<NEW_LINE>writer.startElement("div", null);<NEW_LINE>writer.writeAttribute(<MASK><NEW_LIN... | "class", TabView.NAVIGATOR_SCROLLER_CLASS, null); |
385,964 | // DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static void addClassExclusionFilter(com.sun.jdi.request.MonitorContendedEnterRequest a, java.lang.String b) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<... | [] { a, b }); |
840,927 | protected String convertJavaTypeToWDLType(final WorkflowOutput workflowOutput, final Class<?> argumentClass, final String docType, final String sourceContext) {<NEW_LINE>String convertedWDLType;<NEW_LINE>if (FeatureInput.class.isAssignableFrom(argumentClass)) {<NEW_LINE>if (!docType.contains(FeatureInput.class.getSimpl... | String> typeConversionPair = transformToWDLType(argumentClass); |
1,543,816 | public void marshall(ResourceIdentifier resourceIdentifier, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (resourceIdentifier.getDeviceCertificateId() != null) {<NEW_LINE>String deviceCertificateId = resourceIdentifier.getDeviceCertificateId();<NEW_LINE>jsonWriter.name("dev... | String account = resourceIdentifier.getAccount(); |
1,068,997 | public void serialize(ByteBuf buf) {<NEW_LINE>// sample happens here to avoid memory copy on servers<NEW_LINE>Random rand = new Random(System.currentTimeMillis());<NEW_LINE>// write partition id first<NEW_LINE>buf.writeInt(partId);<NEW_LINE>buf.writeBoolean(sampleTypes);<NEW_LINE>buf.writeInt(keys.length);<NEW_LINE><MA... | int writeIndex = buf.writerIndex(); |
1,771,441 | private void fillLuhmannNumbers(MutableTreeNode node, int zettelpos, int selection) {<NEW_LINE>// is current entry = to be selected entry?<NEW_LINE>if (zettelpos == selection) {<NEW_LINE>selectedLuhmannNode = (DefaultMutableTreeNode) node;<NEW_LINE>}<NEW_LINE>// get the text from the luhmann-numbers<NEW_LINE>String lnr... | lnrs = lnr.split(","); |
1,801,874 | final SendTestEventNotificationResult executeSendTestEventNotification(SendTestEventNotificationRequest sendTestEventNotificationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendTestEventNotificationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest... | addHandlerContext(HandlerContextKey.SERVICE_ID, "MTurk"); |
822,223 | private static int hashCodeAscii(Buffer buffer, int startPos, int length) {<NEW_LINE>int hash = HASH_CODE_ASCII_SEED;<NEW_LINE>final int remainingBytes = length & 7;<NEW_LINE>final int end = startPos + remainingBytes;<NEW_LINE>for (int i = startPos - 8 + length; i >= end; i -= 8) {<NEW_LINE>hash = hashCodeAsciiCompute(... | .getInt(startPos + 2)); |
1,673,777 | public static void main(String[] args) {<NEW_LINE>BufferedImage buffered = UtilImageIO.loadImageNotNull(UtilIO.pathExample("standard/boat.jpg"));<NEW_LINE>GrayF32 input = ConvertBufferedImage.convertFrom(buffered, (GrayF32) null);<NEW_LINE>// Compute the image gradient<NEW_LINE>GrayF32 derivX = input.createSameShape();... | GrayF32 intensity = featureIntensity.getIntensity(); |
1,718,077 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>LayoutInflater inflater = getActivity().getLayoutInflater();<NEW_LINE>@SuppressLint("InflateParams")<NEW_LINE>View layout = inflater.inflate(R.layout.followed_sites_dialog, null);<NEW_LINE>mRadioGroupEmailPosts = layout.findViewById(R.id.email_new_posts... | .getBoolean(ARG_NOTIFICATION_POSTS, false)); |
156,210 | public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent targetedPermanent = game.<MASK><NEW_LINE>// store the permanent that was targeted<NEW_LINE>game.getState().setValue("MysticReflection" + source.getSourceId().toString(), targetedPermanent);<NEW_LINE>MysticReflectionWatcher watcher = game.getState().ge... | getPermanent(source.getFirstTarget()); |
1,273,386 | private boolean checkValidity() {<NEW_LINE>String pName = packageName.getEditor().getItem() == null ? "" : packageName.getEditor().getItem().toString().trim();<NEW_LINE>if (!Utilities.isJavaIdentifier(getClassName())) {<NEW_LINE>setError(getMessage("MSG_ClassNameMustBeValidJavaIdentifier"));<NEW_LINE>} else if (getDisp... | .getCreatedModifiedFiles().getInvalidPaths(); |
1,825,794 | List<Future<?>> insert(String agentRollupId, long captureTime, String syntheticMonitorId, String syntheticMonitorDisplay) throws Exception {<NEW_LINE>long rollupCaptureTime = CaptureTimes.getRollup(captureTime, DAYS.toMillis(1));<NEW_LINE>SyntheticMonitorKey rateLimiterKey = ImmutableSyntheticMonitorKey.builder().agent... | (session.writeAsync(boundStatement)); |
738,825 | public Request<DescribeNotificationConfigurationsRequest> marshall(DescribeNotificationConfigurationsRequest describeNotificationConfigurationsRequest) {<NEW_LINE>if (describeNotificationConfigurationsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LI... | request.setHttpMethod(HttpMethodName.POST); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.