idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
5,488 | public static void main(String[] args) throws IOException {<NEW_LINE>ClassicMp4ContainerSource classicMp4ContainerSource = null;<NEW_LINE>try {<NEW_LINE>classicMp4ContainerSource = new ClassicMp4ContainerSource(new URI("http://org.mp4parser.s3.amazonaws.com/examples/Cosmos%20Laundromat%20small%20faststart.mp4").<MASK><... | toURL().openStream()); |
1,347,607 | private static boolean matches(String pattern, String str, Cache<String, Pattern> patternCache) {<NEW_LINE>if (pattern.length() == 0 || str.length() == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// Common case: **<NEW_LINE>if (pattern.equals("**")) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// Common case: *<NEW_... | .substring(0, lastIndex)); |
1,359,200 | /* (non-Javadoc)<NEW_LINE>* @see javax.servlet.http.HttpServlet#service(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void service(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>... | .getMethod().toUpperCase(); |
340,520 | protected void addChestSideInventory() {<NEW_LINE>if (tile == null || inv == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Level world = tile.getLevel();<NEW_LINE>if (world != null) {<NEW_LINE>// detect side inventory<NEW_LINE>BlockEntity inventoryTE = null;<NEW_LINE>Direction accessDir = null;<NEW_LINE>BlockPos pos = t... | Direction side = dir.getOpposite(); |
1,266,203 | public InstanceStorageInfo unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceStorageInfo instanceStorageInfo = new InstanceStorageInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE... | new ArrayList<DiskInfo>()); |
1,779,413 | private void runAssertionOnDelete(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>SupportVirtualDW window = registerTypeSetMapData(env, path);<NEW_LINE>// test no-criteria on-delete<NEW_LINE>env.compileDeploy("@name('s0') on SupportBean_ST0 delete from MyVDW vdw", path).addLis... | , path).addListener("s0"); |
562,031 | private boolean visit(FunctionCall call) {<NEW_LINE>if (!(call.getTarget() instanceof PropertyGet)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>PropertyGet propertyGet = (PropertyGet) call.getTarget();<NEW_LINE>MethodReference methodRef = getJavaMethodSelector(propertyGet.getTarget());<NEW_LINE>if (methodRef == null ||... | ()).add(caller); |
168,562 | public void marshall(LicenseConfiguration licenseConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (licenseConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(licenseConfiguration.get... | licenseConfiguration.getManagedResourceSummaryList(), MANAGEDRESOURCESUMMARYLIST_BINDING); |
591,618 | private void createSuperBlockCopies(Program program, BinaryReader reader, int groupSize, int numGroups, boolean is64Bit, boolean isSparseSuper, TaskMonitor monitor) throws Exception {<NEW_LINE>monitor.setMessage("Creating super block and group descriptor copies...");<NEW_LINE>monitor.setMaximum(numGroups);<NEW_LINE>for... | + Integer.toHexString(j)); |
760,263 | protected void rrdToolCreateDatabase(RrdDef def) throws Exception {<NEW_LINE>List<String> commands = new ArrayList<>();<NEW_LINE>commands.add(this.binaryPath + "/rrdtool");<NEW_LINE>commands.add("create");<NEW_LINE>commands.add(this.outputFile.getCanonicalPath());<NEW_LINE>commands.add("-s");<NEW_LINE>commands.add(Stri... | (def.getStep())); |
1,403,715 | /*<NEW_LINE>* Return meta data that stores some useful information about the transform index, stored as "_meta":<NEW_LINE>*<NEW_LINE>* {<NEW_LINE>* "created_by" : "transform",<NEW_LINE>* "_transform" : {<NEW_LINE>* "transform" : "id",<NEW_LINE>* "version" : {<NEW_LINE>* "created" : "8.0.0"<NEW_LINE>* ... | metadata = new HashMap<>(); |
1,402,596 | private static long hashLen33to64(byte[] byteArray) {<NEW_LINE>int len = byteArray.length;<NEW_LINE>long mul = k2 + len * 2L;<NEW_LINE>long a = fetch64(byteArray, 0) * k2;<NEW_LINE>long b = fetch64(byteArray, 8);<NEW_LINE>long c = fetch64(byteArray, len - 24);<NEW_LINE>long d = fetch64(byteArray, len - 32);<NEW_LINE>lo... | e + f, 42) + c; |
451,463 | public void sendNoWait(MqttWireMessage message, MqttToken token) throws MqttException {<NEW_LINE>final String methodName = "sendNoWait";<NEW_LINE>if (isConnected() || (!isConnected() && message instanceof MqttConnect) || (isDisconnecting() && message instanceof MqttDisconnect)) {<NEW_LINE>if (disconnectedMessageBuffer ... | disconnectedMessageBuffer.putMessage(message, token); |
979,171 | private void startStreamWithTask() {<NEW_LINE>GetLiveStreamURL.AsyncResponse callback = url -> {<NEW_LINE>try {<NEW_LINE>if (!url.isEmpty()) {<NEW_LINE>updateQualitySelections(url);<NEW_LINE>qualityURLs = url;<NEW_LINE>if (!isAudioOnlyModeEnabled()) {<NEW_LINE>startStreamWithQuality(new Settings(getContext()).getPrefSt... | [settings.getStreamPlayerType()]); |
1,722,638 | private static int estimateGrid(ByteProcessor bp, int[] locs, int minSeparation, boolean doHorizontal) {<NEW_LINE>int nMaxima = locs.length;<NEW_LINE>int[] maxima = new int[nMaxima];<NEW_LINE>Arrays.fill(maxima, -1);<NEW_LINE>ImagePlus impTemp = new ImagePlus("Temp", bp);<NEW_LINE>impTemp.setRoi(new Roi(0, 0, bp.getWid... | , bp.getHeight())); |
1,480,922 | private TransportStop readTransportRouteStop(int[] dx, int[] dy, long did, TIntObjectHashMap<String> stringTable, int filePointer) throws IOException {<NEW_LINE>TransportStop dataObject = new TransportStop();<NEW_LINE>dataObject.setFileOffset(codedIS.getTotalBytesRead());<NEW_LINE>dataObject.setReferencesToRoutes(new i... | int t = codedIS.readTag(); |
71,736 | public void finish() {<NEW_LINE>if (mIsCancelled) {<NEW_LINE>setResult(RESULT_CANCELED);<NEW_LINE>} else {<NEW_LINE>RadioGroup group = findViewById(R.id.radioProfiles);<NEW_LINE>int selectedId = group.getCheckedRadioButtonId();<NEW_LINE>RadioButton radioButton = findViewById(selectedId);<NEW_LINE>// int id = Integer.pa... | idx = group.indexOfChild(radioButton); |
947,911 | final DeleteDatasetResult executeDeleteDataset(DeleteDatasetRequest deleteDatasetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDatasetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteDatasetReq... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,820,890 | protected void writeOptionalAttributes(TagWriter tagWriter) throws JspException {<NEW_LINE>tagWriter.writeOptionalAttributeValue(CLASS_ATTRIBUTE, resolveCssClass());<NEW_LINE>tagWriter.writeOptionalAttributeValue(STYLE_ATTRIBUTE, ObjectUtils.getDisplayString(evaluate("cssStyle", getCssStyle())));<NEW_LINE>writeOptional... | tagWriter, LANG_ATTRIBUTE, getLang()); |
1,424,878 | private SQLQueryAdapter create() {<NEW_LINE>ExpectedErrors errors = ExpectedErrors.from("does not support the create option", "doesn't have this option", "is not supported for this operation", "Data truncation", "Specified key was too long");<NEW_LINE>errors.add("Data truncated for functional index ");<NEW_LINE>sb.appe... | toString(), errors, couldAffectSchema); |
1,455,693 | /*<NEW_LINE>* Updates particle life and processes particle affectors<NEW_LINE>* */<NEW_LINE>private void updateParticles(final ParticleEmitterComponent particleSystem, final float delta) {<NEW_LINE>updateLifeRemaining(particleSystem.particlePool, delta);<NEW_LINE>particleSystem.affectorFunctionMap.forEach((component, a... | (component, random, delta)); |
1,728,596 | private void submitTask(long beId, TRoutineLoadTask tTask) throws LoadException {<NEW_LINE>Backend backend = Catalog.getCurrentSystemInfo().getBackend(beId);<NEW_LINE>if (backend == null) {<NEW_LINE>throw new LoadException("failed to send tasks to backend " + beId + " because not exist");<NEW_LINE>}<NEW_LINE>TNetworkAd... | backendPool.invalidateObject(address, client); |
1,298,079 | public static void main(String[] args) throws IOException {<NEW_LINE>if (args.length < 2) {<NEW_LINE>System.out.println("H264 Text Embed");<NEW_LINE>System.out.println("Syntax: <in> <out>");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SeekableByteChannel sink = null;<NEW_LINE>SeekableByteChannel source = null;<NEW_LINE>try {<... | meta.getCodec(), videoCodecMeta); |
417,965 | public void addIndexes(int maxIndex, int[] dictionaryIndexes, int indexCount) {<NEW_LINE>if (indexCount == 0 && indexRetainedBytes > 0) {<NEW_LINE>// Ignore empty segment, since there are other segments present.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>checkState(maxIndex >= lastMaxIndex, "LastMax is greater than the curre... | ] shortIndexes = new short[indexCount]; |
540,008 | public void onChildDrawOver(@NonNull Canvas c, @NonNull RecyclerView recyclerView, @NonNull RecyclerView.ViewHolder viewHolder, float dX, float dY, int actionState, boolean isCurrentlyActive) {<NEW_LINE>super.onChildDrawOver(c, recyclerView, viewHolder, <MASK><NEW_LINE>if (actionState == ItemTouchHelper.ACTION_STATE_SW... | dX, dY, actionState, isCurrentlyActive); |
312,799 | public boolean remove(final Connection connection, final boolean removeFromSessionCache) {<NEW_LINE>boolean removed;<NEW_LINE>SessionId sessionId = connection.getEstablishedSessionIdentifier();<NEW_LINE>synchronized (this) {<NEW_LINE>removed = connections.remove(connection.getConnectionId(), connection) == connection;<... | ), pendings.size()); |
1,483,927 | private void extractValues(GraphicFactory graphicFactory, String elementName, XmlPullParser pullParser) throws XmlPullParserException {<NEW_LINE>for (int i = 0; i < pullParser.getAttributeCount(); ++i) {<NEW_LINE>String name = pullParser.getAttributeName(i);<NEW_LINE>String value = pullParser.getAttributeValue(i);<NEW_... | .parseNonNegativeInteger(name, value)); |
308,090 | public FullHttpRequest toFullHttpRequest() {<NEW_LINE>ByteBuf buffer = Unpooled.buffer();<NEW_LINE>MessageContent content = getContent();<NEW_LINE>if (content != null) {<NEW_LINE>buffer.writeBytes(content.getContent());<NEW_LINE>}<NEW_LINE>QueryStringEncoder encoder = new QueryStringEncoder(uri);<NEW_LINE>for (Map.Entr... | String key = entry.getKey(); |
1,619,084 | public void onSearchSuccess(Comic comic) {<NEW_LINE>hideProgressBar();<NEW_LINE>mResultAdapter.add(comic);<NEW_LINE>if (App.getPreferenceManager().getBoolean(PreferenceManager.PREF_OTHER_FIREBASE_EVENT, true)) {<NEW_LINE>Bundle bundle = new Bundle();<NEW_LINE>bundle.putString(FirebaseAnalytics.Param.CHARACTER, getInten... | SOURCE, comic.getSource()); |
180,436 | public GetDocumentAnalysisResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetDocumentAnalysisResult getDocumentAnalysisResult = new GetDocumentAnalysisResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE... | )).unmarshall(context)); |
688,886 | private void headerSubElements(Element element, ParserContext parserContext, final BeanDefinitionBuilder builder) {<NEW_LINE>List<Element> subElements;<NEW_LINE>subElements = DomUtils.getChildElementsByTagName(element, "header");<NEW_LINE>if (!CollectionUtils.isEmpty(subElements)) {<NEW_LINE>ManagedMap<String, Object> ... | builder.addPropertyValue("headerExpressions", expressions); |
1,716,800 | protected void activate(ComponentContext context) {<NEW_LINE>Dictionary<String, ?> props = context.getProperties();<NEW_LINE>final <MASK><NEW_LINE>if (trace && tc.isEntryEnabled())<NEW_LINE>Tr.entry(this, tc, "activate", props);<NEW_LINE>String contextSvcName = (String) props.get(JNDI_NAME);<NEW_LINE>if (contextSvcName... | boolean trace = TraceComponent.isAnyTracingEnabled(); |
1,151,446 | public Beneficiario toBeneficiario(Emissor emissor) {<NEW_LINE>Endereco endereco = Endereco.novoEndereco().comLogradouro(emissor.getEndereco());<NEW_LINE>return // BB<NEW_LINE>Beneficiario.novoBeneficiario().comAgencia(emissor.getAgencia()).comDigitoAgencia(emissor.getDigitoAgencia()).comCarteira(emissor.getCarteira())... | comNumeroConvenio(emissor.getNumeroConvenio()); |
919,511 | synchronized boolean addKeyValuePair(@NonNull final K key, @NonNull final V value) {<NEW_LINE>int size = 0;<NEW_LINE>int indexToAdd = -1;<NEW_LINE>boolean hasValue = false;<NEW_LINE>for (int index = 0; index < keysValues.length; index += 2) {<NEW_LINE>final Object keysValue = keysValues[index];<NEW_LINE>if (keysValue =... | keysValues[indexToAdd + 1] = value; |
1,501,101 | boolean reconnect() {<NEW_LINE>boolean flag = false;<NEW_LINE>for (int i = 1; i <= Config.RETRY_NUM; i++) {<NEW_LINE>try {<NEW_LINE>if (transport != null) {<NEW_LINE>transport.close();<NEW_LINE>openTransport();<NEW_LINE>if (Config.rpcThriftCompressionEnable) {<NEW_LINE>setClient(new TSIService.Client(new TCompactProtoc... | .currentThread().interrupt(); |
909,243 | private static MobileDoc createPage(MobileSessionCtx wsc, WWindowStatus ws, String formName, String fieldName, String fieldValue, String locationValue) {<NEW_LINE>// plain<NEW_LINE>MobileDoc <MASK><NEW_LINE>body body = doc.getBody();<NEW_LINE>log.info("Location-createpage: " + locationValue);<NEW_LINE>// Info<NEW_LINE>... | doc = MobileDoc.create(true); |
1,443,585 | final ListDelegatedServicesForAccountResult executeListDelegatedServicesForAccount(ListDelegatedServicesForAccountRequest listDelegatedServicesForAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDelegatedServicesForAccountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
353,864 | public void apply(Skeleton skeleton, float lastTime, float time, @Null Array<Event> events, float alpha, MixBlend blend, MixDirection direction) {<NEW_LINE>Bone bone = skeleton.bones.get(boneIndex);<NEW_LINE>if (!bone.active)<NEW_LINE>return;<NEW_LINE>float[] frames = this.frames;<NEW_LINE>if (time < frames[0]) {<NEW_L... | shearX - bone.shearX) * alpha; |
1,084,512 | public void checkSharedDates(Budget budget) throws AxelorException {<NEW_LINE>if (budget.getBudgetLineList() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<BudgetLine> budgetLineList = budget.getBudgetLineList();<NEW_LINE>for (int i = 0; i < budgetLineList.size() - 1; i++) {<NEW_LINE>BudgetLine budgetLineA = budg... | , I18n.get("Two or more budget lines share dates")); |
1,217,531 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>browserLabel = new JLabel();<NEW_LINE>browserComboBox = createBrowserComboBox();<NEW_LINE>reloadOnSaveCheckBox = new JCheckBox();<NEW_LINE>reloadInfoLabel = new JLabel();<NEW_LINE>... | (CustomizerBrowser.class, "CustomizerBrowser.reloadOnSaveCheckBox.text")); |
554,262 | public void run() {<NEW_LINE>ConfigurationPanel.this.removeAll();<NEW_LINE>ConfigurationPanel.this.setLayout(new BorderLayout());<NEW_LINE>try {<NEW_LINE>ConfigurationPanel.this.add(callable.call(), BorderLayout.CENTER);<NEW_LINE>} catch (Exception ex) {<NEW_LINE>Exceptions.<MASK><NEW_LINE>Exceptions.printStackTrace(ex... | attachSeverity(ex, Level.INFO); |
1,577,368 | private void parsePaths(JsonObject json) {<NEW_LINE>String runfilesPrefix = null;<NEW_LINE>List<String> alternativePrefixes = new ArrayList<>();<NEW_LINE>VirtualFile base = baseUrlFile.getValue();<NEW_LINE>if (base != null) {<NEW_LINE>Path baseUrlPath = VfsUtil.virtualToIoFile(base).toPath();<NEW_LINE>BuildSystemName b... | ()).toString()); |
88,357 | public static CraftingStatus create(IncrementalUpdateHelper changes, CraftingCpuLogic logic) {<NEW_LINE>boolean full = changes.isFullUpdate();<NEW_LINE>ImmutableList.Builder<CraftingStatusEntry> newEntries = ImmutableList.builder();<NEW_LINE>for (var what : changes) {<NEW_LINE>long storedCount = logic.getStored(what);<... | activeCount = logic.getWaitingFor(what); |
1,159,349 | public void putAll(Map<? extends K, ? extends V> map) {<NEW_LINE>if (map instanceof UnifiedMapWithHashingStrategy<?, ?>) {<NEW_LINE>this.copyMap((UnifiedMapWithHashingStrategy<MASK><NEW_LINE>} else if (map instanceof UnsortedMapIterable) {<NEW_LINE>MapIterable<K, V> mapIterable = (MapIterable<K, V>) map;<NEW_LINE>mapIt... | <K, V>) map); |
1,726,236 | // Parsing loaded plugin<NEW_LINE>public AbstractTableInfo parseWithTableType(int tableType, CreateTableParser.SqlParserResult parserResult, String localPluginRoot, String pluginLoadMode) throws Exception {<NEW_LINE>AbstractTableParser absTableParser = null;<NEW_LINE>Map<String, Object> props = parserResult.getPropMap(... | targetTableInfoMap.put(type, absTableParser); |
1,692,724 | public CurrentPerformanceRiskRatings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CurrentPerformanceRiskRatings currentPerformanceRiskRatings = new CurrentPerformanceRiskRatings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren... | class).unmarshall(context)); |
290,741 | final DescribeLoggingStatusResult executeDescribeLoggingStatus(DescribeLoggingStatusRequest describeLoggingStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLoggingStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
796,921 | private void reassignEarlyHolders8(Context context) {<NEW_LINE>ReflectUtil.field(Attr.instance(context), RESOLVE_FIELD).set(this);<NEW_LINE>ReflectUtil.field(DeferredAttr.instance(context), RESOLVE_FIELD).set(this);<NEW_LINE>ReflectUtil.field(Check.instance(context), RESOLVE_FIELD).set(this);<NEW_LINE>ReflectUtil.field... | , "resolve").set(this); |
147,823 | public void executeEvent(WorkflowExecuteThread workflowExecuteThread) {<NEW_LINE>if (!workflowExecuteThread.isStart() || workflowExecuteThread.eventSize() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (multiThreadFilterMap.containsKey(workflowExecuteThread.getKey())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>multiThread... | error("handle events {} failed", processInstanceId, ex); |
1,644,925 | private void updateCloseButton() {<NEW_LINE>// Do not continue if proxy was released.<NEW_LINE>if (this.proxy == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Fetch the search view.<NEW_LINE>SearchView searchView = getSearchView();<NEW_LINE>if (searchView == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Fetch close... | findViewById(R.id.search_close_btn); |
314,593 | final ListResourcesResult executeListResources(ListResourcesRequest listResourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | (super.beforeMarshalling(listResourcesRequest)); |
1,747,151 | public boolean eventOccurred(UISWTViewEvent event) {<NEW_LINE>switch(event.getType()) {<NEW_LINE>case UISWTViewEvent.TYPE_CREATE:<NEW_LINE>swtView = (UISWTView) event.getData();<NEW_LINE>if (swtView.getInitialDataSource() instanceof Number) {<NEW_LINE>dht_type = ((Number) swtView.getInitialDataSource()).intValue();<NEW... | .getString(getTitleID())); |
223,290 | public static EdgesContainer create(PageItemNode parent, List<PageItemNode> pins) {<NEW_LINE>List<Edge> rightEdges = new LinkedList<>();<NEW_LINE>List<Edge> leftEdges = new LinkedList<>();<NEW_LINE>List<Edge> bottomEdges = new LinkedList<>();<NEW_LINE>List<Edge> topEdges = new LinkedList<>();<NEW_LINE>Point[] parentPoi... | p[2], true)); |
210,221 | public void marshall(DataReplicationInfo dataReplicationInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (dataReplicationInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(dataReplicationInfo.getData... | dataReplicationInfo.getLagDuration(), LAGDURATION_BINDING); |
1,184,115 | public void openURL(String url) throws NullPointerException {<NEW_LINE>CustomTabsIntent.Builder <MASK><NEW_LINE>builder.setStartAnimations(context, R.anim.slide_in_right, R.anim.slide_out_left);<NEW_LINE>builder.setExitAnimations(context, R.anim.slide_in_left, R.anim.slide_out_right);<NEW_LINE>CustomTabsIntent customTa... | builder = new CustomTabsIntent.Builder(); |
1,142,285 | public boolean openForm(int AD_Form_ID) {<NEW_LINE>Properties ctx = Env.getCtx();<NEW_LINE>//<NEW_LINE>String name = null;<NEW_LINE>String className = null;<NEW_LINE>String sql = "SELECT Name, Description, ClassName, Help FROM AD_Form WHERE AD_Form_ID=?";<NEW_LINE>boolean trl = !Env.isBaseLanguage(ctx, "AD_Form");<NEW_... | openForm(AD_Form_ID, className, name); |
1,582,829 | private List createHandlesForUserBendpoints() {<NEW_LINE>List list = new ArrayList();<NEW_LINE>ConnectionEditPart connEP = (ConnectionEditPart) getHost();<NEW_LINE>PointList points = getConnection().getPoints();<NEW_LINE>List bendPoints = (List<MASK><NEW_LINE>int bendPointIndex = 0;<NEW_LINE>Point currBendPoint = null;... | ) getConnection().getRoutingConstraint(); |
244,722 | public void testFlowableRxInvoker_postIbmReceiveTimeout(Map<String, String> param, StringBuilder ret) {<NEW_LINE>long timeout = messageTimeout;<NEW_LINE>if (isZOS()) {<NEW_LINE>timeout = zTimeout;<NEW_LINE>}<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE... | ClientBuilder cb = ClientBuilder.newBuilder(); |
1,445,641 | public static void testParameterTypes() {<NEW_LINE>JsBiFunction tIntegerJsBiFunction <MASK><NEW_LINE>JsBiFunction doubleDoubleJsBiFunction = new DoubleDoubleJsBiFunction();<NEW_LINE>callInterfaceRaw(tIntegerJsBiFunction, "a", 1);<NEW_LINE>callInterfaceRaw(doubleDoubleJsBiFunction, 1.1, 1.1);<NEW_LINE>callInterfaceParam... | = new TIntegerJsBiFunction<String>(); |
1,595,769 | private void editFontSize() {<NEW_LINE>MaterialDialog.Builder builder = DialogUtils.getInstance().createCustomDialogWithoutContent(<MASK><NEW_LINE>MaterialDialog dialog = builder.customView(R.layout.dialog_font_size, true).onPositive((dialog1, which) -> {<NEW_LINE>final EditText fontInput = dialog1.getCustomView().find... | mActivity, R.string.font_size_edit); |
355,827 | public CapacitySpecificationSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CapacitySpecificationSummary capacitySpecificationSummary = new CapacitySpecificationSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar... | class).unmarshall(context)); |
554,619 | protected void configureHttpProtocol(final ServiceLocator habitat, final NetworkListener networkListener, final Http http, final FilterChainBuilder filterChainBuilder, boolean secure) {<NEW_LINE>transactionTimeoutMillis = Long.parseLong(http.getRequestTimeoutSeconds()) * 1000;<NEW_LINE>filterChainBuilder.add(new IdleTi... | ).getSsl(), filterChainBuilder); |
1,366,897 | private boolean tryImplicitReceiver(final Expression origin, final Expression message, final Expression arguments, final MethodCallerMultiAdapter adapter, final boolean safe, final boolean spreadSafe) {<NEW_LINE>Object implicitReceiver = origin.getNodeMetaData(StaticTypesMarker.IMPLICIT_RECEIVER);<NEW_LINE>if (implicit... | putNodeMetaData(StaticTypesMarker.IMPLICIT_RECEIVER, implicitReceiver); |
460,406 | public static MutableRoaringBitmap or(final MutableRoaringBitmap x1, final MutableRoaringBitmap x2) {<NEW_LINE>final MutableRoaringBitmap answer = new MutableRoaringBitmap();<NEW_LINE>int pos1 = 0, pos2 = 0;<NEW_LINE>final int length1 = x1.highLowContainer.size(), length2 = x2.highLowContainer.size();<NEW_LINE>main: if... | x1.highLowContainer.getKeyAtIndex(pos1); |
1,490,426 | private void genWorkerReceiveIns(BIRTerminator.WorkerReceive ins, int localVarOffset) {<NEW_LINE>this.mv.visitVarInsn(ALOAD, localVarOffset);<NEW_LINE>if (!ins.isSameStrand) {<NEW_LINE>this.mv.visitFieldInsn(GETFIELD, STRAND_CLASS, "parent", GET_STRAND);<NEW_LINE>}<NEW_LINE>this.mv.visitFieldInsn(GETFIELD, STRAND_CLASS... | this.mv.visitLabel(jumpAfterReceive); |
644,424 | private void processStrayInvite(ServerTransaction serverTransaction) {<NEW_LINE>logger.info("got an INVITE for a dead dialog. Rejecting");<NEW_LINE>Request inviteRequest = serverTransaction.getRequest();<NEW_LINE>// Send 481 Call/Transaction Does Not exist<NEW_LINE>Response noSuchCall = null;<NEW_LINE>try {<NEW_LINE>no... | createResponse(Response.CALL_OR_TRANSACTION_DOES_NOT_EXIST, inviteRequest); |
1,119,033 | void collectAndAggregateAccountStorageStats(Map<Long, Map<Short, Map<Short, ContainerStorageStats>>> hostStorageStatsMap, PartitionId partitionId, List<PartitionId> unreachablePartitions) {<NEW_LINE>Store store = storageManager.getStore(partitionId, false);<NEW_LINE>if (store == null) {<NEW_LINE>unreachablePartitions.a... | time.milliseconds() - fetchAndAggregatePerStoreStartTimeMs); |
1,111,772 | public void onEnable() {<NEW_LINE>GeyserLocale.init(this);<NEW_LINE>if (!configDir.exists())<NEW_LINE>configDir.mkdirs();<NEW_LINE>File configFile;<NEW_LINE>try {<NEW_LINE>configFile = FileUtils.fileOrCopiedFromResource(new File(configDir, "config.yml"), "config.yml", (file) -> file.replaceAll("generateduuid", UUID.ran... | (GeyserLocale.getLocaleStringLog("geyser.config.failed")); |
1,035,866 | public static /*<NEW_LINE>int MXImperativeInvokeEx(Pointer creator, int num_inputs, PointerByReference inputs,<NEW_LINE>IntBuffer num_outputs, PointerByReference outputs, int num_params,<NEW_LINE>String param_keys[], String param_vals[],<NEW_LINE>PointerByReference out_stypes);<NEW_LINE><NEW_LINE>int MXNDArraySyncCopyF... | handle, Pointer data, NativeSize size); |
806,011 | public BaseFont awtToPdf(Font awtFont) {<NEW_LINE>ourLogger.debug("Searching for BaseFont for awtFont={} charset={} cache={}", awtFont, charset, myFontCache);<NEW_LINE>if (myFontCache.containsKey(awtFont)) {<NEW_LINE>ourLogger.debug("Found in cache.");<NEW_LINE>return myFontCache.get(awtFont);<NEW_LINE>}<NEW_LINE>Strin... | .get("font." + family)); |
504,347 | private List<Throwable> validateInterceptorBindingTarget(AnnotationInstance binding, AnnotationTarget target) {<NEW_LINE>List<Throwable> throwables = new ArrayList<>();<NEW_LINE>switch(target.kind()) {<NEW_LINE>case CLASS:<NEW_LINE>ClassInfo classInfo = target.asClass();<NEW_LINE>if (!INTERCEPTORS.contains(classInfo.na... | "Unexpected cache interceptor binding target: " + target.kind()); |
1,326,682 | final DeleteBucketAccessKeyResult executeDeleteBucketAccessKey(DeleteBucketAccessKeyRequest deleteBucketAccessKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBucketAccessKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Lightsail"); |
1,024,374 | public MHRMovement saveMovement() {<NEW_LINE>MHRConcept concept = MHRConcept.getById(Env.getCtx(), getConceptId(), null);<NEW_LINE>MHRMovement movement = new MHRMovement(Env.getCtx(), movementId, null);<NEW_LINE>I_HR_Period payrollPeriod = getPayrollProcess().getHR_Period();<NEW_LINE>movement.setSeqNo(concept.getSeqNo(... | movement.setHR_Concept_ID(getConceptId()); |
1,341,033 | protected Control createDetailsContents(Composite composite) {<NEW_LINE>Composite group = new Composite(composite, SWT.NONE);<NEW_LINE>group.setLayout(new GridLayout(1, true));<NEW_LINE>group.setLayoutData(new GridData(GridData.FILL_BOTH));<NEW_LINE>Composite previewFrame = new Composite(group, SWT.BORDER);<NEW_LINE>Gr... | showError("Can't create SQL panel", "Error creating SQL panel", e); |
121,806 | public void add(final Transfer transfer, final TransferBackgroundAction action) {<NEW_LINE>if (collection.size() > preferences.getInteger("queue.size.warn")) {<NEW_LINE>final NSAlert alert = // title<NEW_LINE>NSAlert.// title<NEW_LINE>alert(// message<NEW_LINE>TransferToolbarFactory.TransferToolbarItem.cleanup.label(),... | .localizedString("Cancel"), null); |
1,210,580 | public boolean isObsolete() throws JdiProxyException {<NEW_LINE>checkValid();<NEW_LINE>if (myIsObsolete != ThreeState.UNSURE) {<NEW_LINE>return myIsObsolete.toBoolean();<NEW_LINE>}<NEW_LINE>InvalidStackFrameException error = null;<NEW_LINE>for (int attempt = 0; attempt < 2; attempt++) {<NEW_LINE>try {<NEW_LINE>Method m... | error.getMessage(), error); |
930,353 | protected NDList forwardInternal(ParameterStore parameterStore, NDList inputs, boolean training, PairList<String, Object> params) {<NEW_LINE>// TODO refactor the forward to not take ParameterStore<NEW_LINE>if (isTrain != training) {<NEW_LINE>isTrain = training;<NEW_LINE>if (isTrain) {<NEW_LINE>JniUtils.enableTrainingMo... | ), array.getShape()); |
1,265,360 | private void loadLessThan32IntoYMMOrdered(CompilationResultBuilder crb, AMD64MacroAssembler asm, DataSection.Data xmmTailShuffleMask, Register arr, Register lengthTail, Register tmp, Register vecArray, Register vecTmp1, Register vecTmp2) {<NEW_LINE>// array is between 16 and 31 bytes long, load it into a YMM register v... | .getBytes() * 2)); |
1,365,959 | public BuiltInScalarFunctionImplementation specialize(BoundVariables boundVariables, int arity, FunctionAndTypeManager functionAndTypeManager) {<NEW_LINE>DistinctType type = (DistinctType) boundVariables.getTypeVariable("T");<NEW_LINE>if (!type.isOrderable()) {<NEW_LINE>throw new PrestoException(INVALID_ARGUMENTS, form... | , type.getDisplayName())); |
715,670 | public static ServiceSet fromConfig(MDBConfig mdbConfig, MDBArtifactStoreConfig mdbArtifactStoreConfig) throws IOException {<NEW_LINE>var set = new ServiceSet();<NEW_LINE>set.uac = UAC.FromConfig(mdbConfig);<NEW_LINE>set.authService = MDBAuthServiceUtils.FromConfig(mdbConfig, set.uac);<NEW_LINE>set.mdbRoleService = MDB... | set.artifactStoreService = initializeArtifactStore(mdbArtifactStoreConfig); |
245,915 | protected synchronized void initChannelFactory(Class<?> type, ChannelFactory factory, Map<Object, Object> properties) throws ChannelFactoryException {<NEW_LINE>// if no properties were provided, then we must retrieve them from<NEW_LINE>// channelFactoriesProperties using the factory type as the key; if<NEW_LINE>// the ... | " threw non-ChannelFactoryException " + e.getMessage()); |
1,801,668 | public void decorateWithCastForReturn(AExpression userExpressionNode, AStatement parent, SemanticScope semanticScope, ScriptClassInfo scriptClassInfo) {<NEW_LINE>Location location = userExpressionNode.getLocation();<NEW_LINE>Class<?> valueType = semanticScope.getDecoration(userExpressionNode, Decorations.ValueType.clas... | valueType, targetType, isExplicitCast, isInternalCast); |
1,148,250 | private void addPosItems(Map<Long, List<String>> posIds, long pos, String menuName, String actionName) {<NEW_LINE>for (long i = -10; i <= 10; i++) {<NEW_LINE>String title = String.valueOf(i);<NEW_LINE>switch((int) i) {<NEW_LINE>case -10:<NEW_LINE>title += " (further in front)";<NEW_LINE>break;<NEW_LINE>case 0:<NEW_LINE... | ids = posIds.get(i); |
1,582,282 | final GetTagsResult executeGetTags(GetTagsRequest getTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
722,455 | void checkOperationChains(List<OperationChain> opChains) throws Exception {<NEW_LINE>Map<PartitionId, Integer> <MASK><NEW_LINE>double blobsPut = 0;<NEW_LINE>for (OperationChain opChain : opChains) {<NEW_LINE>if (!opChain.latch.await(AWAIT_TIMEOUT, TimeUnit.SECONDS)) {<NEW_LINE>Assert.fail("Timeout waiting for operation... | partitionCount = new HashMap<>(); |
1,280,764 | private static CodegenExpression makeDeepSupertypes(Set<EventType> deepSuperTypes, CodegenMethodScope parent, ModuleEventTypeInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>if (deepSuperTypes == null || deepSuperTypes.isEmpty()) {<NEW_LINE>return staticMethod(Collections.class, "emptySet");<NEW_LINE>... | ), CompilerHelperModuleProvider.class, classScope); |
685,241 | public void remove(final String iPoolName) {<NEW_LINE>lock();<NEW_LINE>try {<NEW_LINE>final OReentrantResourcePool<String, DB> pool = pools.remove(iPoolName);<NEW_LINE>if (pool != null) {<NEW_LINE>for (DB db : pool.getResources()) {<NEW_LINE>final OStorage stg = db.getStorage();<NEW_LINE>if (stg != null && stg.getStatu... | "Error: %d", e.toString()); |
128,612 | public CodegenMethod make(CodegenMethodScope parent, CodegenClassScope classScope) {<NEW_LINE>int size = filterTypes.size() + arrayEventTypes.size();<NEW_LINE>CodegenMethod method = parent.makeChild(EventBean.EPTYPEARRAY, this.getClass(), classScope).addParam(MatchedEventMap.EPTYPE, "mem");<NEW_LINE>if (size == 0 || (s... | allTags, entry.getKey()); |
728,654 | final DeleteRouteResponseResult executeDeleteRouteResponse(DeleteRouteResponseRequest deleteRouteResponseRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRouteResponseRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.SERVICE_ID, "ApiGatewayV2"); |
413,027 | private Throwable enrichError(final Throwable t) {<NEW_LINE>Throwable throwable;<NEW_LINE>CloseEvent closeReason;<NEW_LINE>if (t instanceof AbortedFirstWriteException) {<NEW_LINE>if ((closeReason = this.closeReason) != null) {<NEW_LINE>throwable = new RetryableClosedChannelException(wrapWithCloseReason(closeReason, t.g... | ClosedChannelException) t.getCause()); |
809,421 | public void authorizeSubscriptions(@NotNull final ChannelHandlerContext ctx, @NotNull final SUBSCRIBE msg) {<NEW_LINE>final String clientId = ctx.channel().attr(ChannelAttributes.CLIENT_CONNECTION).get().getClientId();<NEW_LINE>if (clientId == null || !ctx.channel().isActive()) {<NEW_LINE>// no more processing needed<N... | channel(), serverInformation, clientId); |
1,350,020 | public FieldVisitor visitField(int access, String name, String desc, String signature, Object value) {<NEW_LINE>FieldsType ft = cit.getFields();<NEW_LINE>if (ft == null) {<NEW_LINE>ft = new FieldsType();<NEW_LINE>cit.setFields(ft);<NEW_LINE>}<NEW_LINE>final List<FieldInfoType<MASK><NEW_LINE>final FieldInfoType fit = ne... | > fieldList = ft.getField(); |
1,837,277 | public boolean isBetween(Object valueUncast, Object lowerUncast, Object upperUncast) {<NEW_LINE>if ((valueUncast == null) || (lowerUncast == null) || ((upperUncast == null))) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>BigDecimal value = numberCoercerValue<MASK><NEW_LINE>BigDecimal lower = numberCoercerLower.coerceBox... | .coerceBoxedBigDec((Number) valueUncast); |
1,676,970 | public void prepareData(CodeGenContext context) throws Exception {<NEW_LINE>List<String> exceptions = new ArrayList<>();<NEW_LINE>CSharpCodeGenContext ctx = (CSharpCodeGenContext) context;<NEW_LINE>try {<NEW_LINE>LoggerManager.getInstance().info(String.format("Begin to prepare csharp table data for project %s"<MASK><NE... | , ctx.getProjectId())); |
1,186,933 | private AckEvent drillbitUnregistered(DrillbitEndpoint dbe) {<NEW_LINE>String key = toKey(dbe);<NEW_LINE>DrillbitTracker tracker = registry.get(key);<NEW_LINE>assert tracker != null;<NEW_LINE>if (tracker == null) {<NEW_LINE>// Something is terribly wrong.<NEW_LINE>// Have seen this when a user kills the Drillbit just a... | tracker.task.toString()); |
154,959 | // submit the map/reduce job.<NEW_LINE>public int run(final String[] args) throws Exception {<NEW_LINE>if (args.length != 4) {<NEW_LINE>return printUsage();<NEW_LINE>}<NEW_LINE>int ret_val = 0;<NEW_LINE>nreducers = Integer.parseInt(args[0]);<NEW_LINE>Path y_path = new Path(args[1]);<NEW_LINE>Path x_path = new Path(args... | saxpy_output.getName() + "\n"); |
1,271,474 | public void updateWorklogWithNewRemainingEstimate(java.lang.String in0, com.atlassian.jira.rpc.soap.beans.RemoteWorklog in1, java.lang.String in2) throws java.rmi.RemoteException, com.atlassian.jira.rpc.exception.RemotePermissionException, com.atlassian.jira.rpc.exception.RemoteValidationException, com.atlassian.jira.r... | client.Call _call = createCall(); |
1,156,693 | private void checkStructure() {<NEW_LINE>if (mScene == null) {<NEW_LINE>Log.e(TAG, "CHECK: motion scene not set! set \"app:layoutDescription=\"@xml/file\"");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>checkStructure(mScene.getStartId(), mScene.getConstraintSet(mScene.getStartId()));<NEW_LINE>SparseIntArray startToEnd = new S... | "CHECK: you can't have reverse transitions" + startString + "->" + endString); |
152,493 | public ValidationResult<TransactionInvalidReason> validateForSender(final Transaction transaction, final Account sender, final TransactionValidationParams validationParams) {<NEW_LINE>Wei senderBalance = Account.DEFAULT_BALANCE;<NEW_LINE>long senderNonce = Account.DEFAULT_NONCE;<NEW_LINE>Hash codeHash = Hash.EMPTY;<NEW... | , transaction.getSender())); |
945,817 | protected void subscribeActual(Subscriber<? super T> s) {<NEW_LINE>Publisher<T>[] array = sources;<NEW_LINE>int n;<NEW_LINE>if (array == null) {<NEW_LINE>array = new Publisher[8];<NEW_LINE>n = 0;<NEW_LINE>try {<NEW_LINE>for (Publisher<T> p : sourcesIterable) {<NEW_LINE>if (n == array.length) {<NEW_LINE>array = Arrays.c... | Objects.requireNonNull(p, "a source is null"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.