idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
583,635 | public int compareTo(getManagerStats_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetSuccess(), other.isSetSuccess());<NEW... | ), other.isSetTnase()); |
264,184 | public boolean eIsSet(int featureID) {<NEW_LINE>switch(featureID) {<NEW_LINE>case ModelPackage.MBRICKLET_MULTI_TOUCH__LOGGER:<NEW_LINE>return LOGGER_EDEFAULT == null ? logger != null : !LOGGER_EDEFAULT.equals(logger);<NEW_LINE>case ModelPackage.MBRICKLET_MULTI_TOUCH__UID:<NEW_LINE>return UID_EDEFAULT == null ? uid != n... | : !ENABLED_A_EDEFAULT.equals(enabledA); |
1,377,775 | public void encodeChildren(FacesContext facesContext, UIComponent component) throws IOException {<NEW_LINE>if (facesContext == null) {<NEW_LINE>throw new NullPointerException("context");<NEW_LINE>}<NEW_LINE>if (component == null) {<NEW_LINE>throw new NullPointerException("component");<NEW_LINE>}<NEW_LINE>Map<String, Ob... | writer.endElement(HTML.SCRIPT_ELEM); |
1,523,864 | public void write(CompoundTag compound, boolean clientPacket) {<NEW_LINE>if (!clientPacket) {<NEW_LINE>compound.put("Inventory", inventory.serializeNBT());<NEW_LINE>if (state == State.RUNNING) {<NEW_LINE>compound.putBoolean("Running", true);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// Gui information<NEW_LINE>compound.putFloat("... | "State", state.name()); |
1,594,880 | private static void parseAnnotation(AnnotationModelHelper helper, AnnotationMirror annotationMirror, List<EjbRef> resultEjbRefs, List<EjbLocalRef> resultEjbLocalRefs) {<NEW_LINE>String name;<NEW_LINE>String beanInterface;<NEW_LINE>String beanName;<NEW_LINE>String mappedName;<NEW_LINE>String description;<NEW_LINE>TypeEl... | get("beanName", String.class); |
1,060,044 | int dbgGetMethodsForName(PrintStream out, String pattern) throws CorruptDataException {<NEW_LINE>int dot = pattern.indexOf('.');<NEW_LINE>String classStart = (dot == -1) ? "*" : pattern.substring(0, dot);<NEW_LINE>int paren = pattern.indexOf('(', dot + 1);<NEW_LINE>String nameStart = (paren == -1) ? pattern.substring(d... | J9ClassPointer clazz = classIterator.next(); |
392,449 | private TreeNode<K, V> deleteNode(TreeNode<K, V> root, Object key) {<NEW_LINE>if (root == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>int cmp = comparator.compare((K) key, root.getKey());<NEW_LINE>if (cmp < 0) {<NEW_LINE>root.left = deleteNode(root.left, key);<NEW_LINE>} el... | deleteNode(root.right, key); |
1,696,912 | public TraceContent unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>TraceContent traceContent = new TraceContent();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | class).unmarshall(context)); |
1,274,634 | public static byte[] privKeyTweakMul(byte[] privkey, byte[] tweak) throws AssertFailException {<NEW_LINE>Preconditions.checkArgument(privkey.length == 32);<NEW_LINE>ByteBuffer byteBuff = nativeECDSABuffer.get();<NEW_LINE>if (byteBuff == null || byteBuff.capacity() < privkey.length + tweak.length) {<NEW_LINE>byteBuff = ... | }).intValue() & 0xFF; |
67,354 | public void deleteProcessInstance(String processInstanceId, String deleteReason, boolean cascade, boolean directDeleteInDatabase) {<NEW_LINE>ExecutionEntity processInstanceExecution = findById(processInstanceId);<NEW_LINE>if (processInstanceExecution == null) {<NEW_LINE>throw new FlowableObjectNotFoundException("No pro... | getCurrentFlowElement()).getBehavior(); |
1,361,704 | public void handleExpansion(long[] ces, int start, int length) {<NEW_LINE>if (length <= 1) {<NEW_LINE>// We do not need to add single CEs into the map.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// number of CE "halves"<NEW_LINE>int count = 0;<NEW_LINE>for (int i = 0; i < length; ++i) {<NEW_LINE>count += ceNeedsTwoParts(ces[... | oldCount = maxExpansions.get(lastHalf); |
1,566,935 | public <T extends AstNode> ApexNode<T> build(T astNode) {<NEW_LINE>// Create a Node<NEW_LINE>AbstractApexNode<<MASK><NEW_LINE>node.handleSourceCode(sourceCode);<NEW_LINE>// Append to parent<NEW_LINE>Node parent = nodes.isEmpty() ? null : nodes.peek();<NEW_LINE>if (parent != null) {<NEW_LINE>parent.jjtAddChild(node, par... | T> node = createNodeAdapter(astNode); |
5,487 | public void execute(EditorAdaptor editorAdaptor, int count) throws CommandExecutionException {<NEW_LINE>editorAdaptor.getHistory().beginCompoundChange();<NEW_LINE>TextContent modelContent = editorAdaptor.getModelContent();<NEW_LINE>String editorNewline = editorAdaptor.getConfiguration().getNewLine();<NEW_LINE>String te... | text.substring(start, i); |
862,866 | // ========================================<NEW_LINE>// MouseListener methods<NEW_LINE>// ========================================<NEW_LINE>@Override<NEW_LINE>public void mouseClicked(MouseEvent e) {<NEW_LINE>if (UIUtils.isRightMouseClick(e)) {<NEW_LINE>TreePath rightClickedPath = varTree.getClosestPathForLocation(e.ge... | ), e.getY()); |
1,085,557 | public ArrowTipView show(String text, int gravity, int arrowMarginStart, int top) {<NEW_LINE>((TextView) findViewById(R.id.text)).setText(text);<NEW_LINE>ViewGroup parent = mActivity.getDragLayer();<NEW_LINE>parent.addView(this);<NEW_LINE>DragLayer.LayoutParams params = (DragLayer.LayoutParams) getLayoutParams();<NEW_L... | .getDeviceProfile().workspacePadding.left; |
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, ... | IEditorPart current = page.getActiveEditor(); |
379,249 | private void createConstantDeclaration() throws CoreException {<NEW_LINE>Type type = getConstantType();<NEW_LINE>IExpressionFragment fragment = getSelectedExpression();<NEW_LINE>Expression initializer = getSelectedExpression().createCopyTarget(fCuRewrite.getASTRewrite(), true);<NEW_LINE>AST ast = fCuRewrite.getAST();<N... | ASTResolving.getNarrowingTypes(ast, typeBinding); |
1,484,987 | public CreateSecurityProfileResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateSecurityProfileResult createSecurityProfileResult = new CreateSecurityProfileResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE... | String currentParentElement = context.getCurrentParentElement(); |
1,832,612 | public void slotsChanged(Container inventory) {<NEW_LINE>final NullMenu cn = new NullMenu();<NEW_LINE>final CraftingContainer ic = new CraftingContainer(cn, 3, 3);<NEW_LINE>for (int x = 0; x < 9; x++) {<NEW_LINE>ic.setItem(x, this.craftingSlots[x].getItem());<NEW_LINE>}<NEW_LINE>Level level = this.getPlayerInventory().... | .currentRecipe.assemble(ic)); |
1,380,584 | public boolean onPreferenceChange(Preference preference, Object newValue) {<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "clicked raw: " + newValue);<NEW_LINE>if (newValue.equals("preference_raw_yes")) {<NEW_LINE>// we check done_raw_info every time, so that this works if the user selects RAW<NEW_LINE>// again without... | setTitle(R.string.preference_raw); |
1,623,823 | public String longestPalindrome(String s) {<NEW_LINE><MASK><NEW_LINE>if (strLength < 2) {<NEW_LINE>return s;<NEW_LINE>}<NEW_LINE>int resultLength = 0;<NEW_LINE>String result = "";<NEW_LINE>for (int i = 0; i < s.length(); i++) {<NEW_LINE>// Odd length<NEW_LINE>int left = i, right = i;<NEW_LINE>while (left >= 0 && right ... | int strLength = s.length(); |
807,774 | public void initialise() throws FileNotFoundException {<NEW_LINE>bSilent = false;<NEW_LINE>// double [] tmpx = input.getAllData();<NEW_LINE>// double [] x = new double[origLen+pm.totalZerosToPadd];<NEW_LINE>// Arrays.fill(x, 0.0);<NEW_LINE>// System.arraycopy(tmpx, 0, x, 0, origLen);<NEW_LINE>psFrm = new PsolaFrameProv... | .log(2.0)))); |
1,096,359 | public Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response) throws AuthenticationException, IOException, ServletException {<NEW_LINE>String username = StringUtils.trimToNull(request.getParameter("u"));<NEW_LINE>String password = decrypt(StringUtils.trimToNull(request.getParamet... | .getContext().getAuthentication(); |
1,443,024 | private void prepareNamedGroup(EncryptedServerNameIndicationExtensionMessage msg) {<NEW_LINE>List<NamedGroup> implementedNamedGroups = KeyShareCalculator.getImplemented();<NEW_LINE>List<NamedGroup> clientSupportedNamedGroups = chooser.getConfig().getClientSupportedEsniNamedGroups();<NEW_LINE>List<NamedGroup> serverSupp... | getKeyShareEntry().setGroupConfig(selectedNamedGroup); |
1,754,230 | // POST /api/admin/dict/mapping/upload/{dictId}<NEW_LINE>@Execute<NEW_LINE>public JsonResponse<ApiResult> post$upload(final String dictId, final UploadForm form) {<NEW_LINE>form.dictId = dictId;<NEW_LINE>validateApi(form, messages -> {<NEW_LINE>});<NEW_LINE>final CharMappingFile file = charMappingService.getCharMapping... | .OK).result()); |
886,725 | private void syntaxError(int id, int startPosition, int endPosition, int currentKind, char[] currentTokenSource, String errorTokenName, String expectedToken) {<NEW_LINE>if (currentKind == TerminalTokens.TokenNameAT && expectedToken != null && expectedToken.equals("@")) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>// In the diagn... | = new String[] { eTokenName }; |
1,093,569 | public final static int copyDir(File originalDir, File copyDir, FileFilter filter, TaskMonitor monitor) throws IOException, CancelledException {<NEW_LINE>if (monitor == null) {<NEW_LINE>monitor = TaskMonitor.DUMMY;<NEW_LINE>}<NEW_LINE>if (!originalDir.exists()) {<NEW_LINE>// nothing to do<NEW_LINE>return 0;<NEW_LINE>}<... | destinationFile, false, TaskMonitor.DUMMY); |
858,337 | public boolean loadMetaInfo() throws DbusEventBufferMetaInfo.DbusEventBufferMetaInfoException {<NEW_LINE>//<NEW_LINE>BufferedReader br = null;<NEW_LINE>_valid = false;<NEW_LINE>boolean debugEnabled = DbusEventBuffer.LOG.isDebugEnabled();<NEW_LINE>try {<NEW_LINE>InputStreamReader isr = new InputStreamReader(new FileInpu... | idx = line.indexOf(KEY_VALUE_SEP); |
951,895 | public void deleteLocksPath(String path, String token) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'path' is set<NEW_LINE>if (path == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'path' when calling deleteLocksPath");<NEW_LINE>... | (path.toString())); |
391,815 | private void showStatsToUser() {<NEW_LINE>BoofSwingUtil.checkGuiThread();<NEW_LINE>algorithms.lock();<NEW_LINE>results.lock();<NEW_LINE>try {<NEW_LINE>double averageError = 0.0;<NEW_LINE>double maxError = 0.0;<NEW_LINE>List<ImageResults> errors <MASK><NEW_LINE>if (errors.isEmpty())<NEW_LINE>return;<NEW_LINE>for (int i ... | = algorithms.calibrator.computeErrors(); |
1,136,530 | private boolean initAttributes() {<NEW_LINE>if (m_M_Product_ID == 0)<NEW_LINE>return false;<NEW_LINE>MAttributeSet as = null;<NEW_LINE>if (m_M_Product_ID != 0) {<NEW_LINE>// Get Model<NEW_LINE>m_masi = MAttributeSetInstance.get(Env.<MASK><NEW_LINE>if (m_masi == null) {<NEW_LINE>log.error("No Model for M_AttributeSetIns... | getCtx(), m_M_AttributeSetInstance_ID, m_M_Product_ID); |
124,068 | private static void createReceiver(UdpMulticastConnector.Builder builder, UDPConnector connector) {<NEW_LINE>UdpMulticastConnector multicastConnector = builder.setMulticastReceiver(true).build();<NEW_LINE>multicastConnector.setLoopbackMode(LOOPBACK);<NEW_LINE>try {<NEW_LINE>multicastConnector.start();<NEW_LINE>} catch ... | .getLocalAddress().getPort(); |
571,985 | public String confirmAndCreateAccount() {<NEW_LINE>ShibAuthenticationProvider shibAuthProvider = new ShibAuthenticationProvider();<NEW_LINE>String lookupStringPerAuthProvider = userPersistentId;<NEW_LINE>AuthenticatedUser au = null;<NEW_LINE>try {<NEW_LINE>au = authSvc.createAuthenticatedUser(new UserRecordIdentifier(s... | ), internalUserIdentifer, displayInfo, true); |
1,248,278 | /* (non-Javadoc)<NEW_LINE>* @see org.spongepowered.asm.mixin.transformer.MixinApplicator<NEW_LINE>* #prepareInjections(<NEW_LINE>* org.spongepowered.asm.mixin.transformer.MixinTargetContext)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void prepareInjections(MixinTargetContext mixin) {<NEW_LINE>// disabl... | InjectionInfo.parse(mixin, method); |
718,614 | public static ByteString synthesizeText(String text) throws Exception {<NEW_LINE>// Instantiates a client<NEW_LINE>try (TextToSpeechClient textToSpeechClient = TextToSpeechClient.create()) {<NEW_LINE>// Set the text input to be synthesized<NEW_LINE>SynthesisInput input = SynthesisInput.newBuilder().setText(text).build(... | ByteString audioContents = response.getAudioContent(); |
1,348,822 | private void addUserVMCmdlineArgs(Long vmId, VirtualMachineProfile profile, DeployDestination dest, StringBuilder buf) {<NEW_LINE>UserVmVO k8sVM = _vmDao.findById(vmId);<NEW_LINE>buf.append(" template=domP");<NEW_LINE>buf.append(" name=").append(profile.getHostName());<NEW_LINE>buf.append(" type=").append(k8sVM.getUser... | ("mask=").append("0.0.0.0"); |
78,732 | public void init(int maxCapacity, Properties props) throws Exception {<NEW_LINE><MASK><NEW_LINE>segmentSize = DEFAULT_HASHTABLE_SEGMENT_SIZE;<NEW_LINE>if (props != null) {<NEW_LINE>String prop = props.getProperty("MultiLRUSegmentSize");<NEW_LINE>if (prop != null) {<NEW_LINE>try {<NEW_LINE>segmentSize = Integer.parseInt... | super.init(maxCapacity, props); |
1,660,022 | boolean ensureAvailableSpaceUsed(boolean useCached) {<NEW_LINE>if (mdl.size() == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean result = false;<NEW_LINE>if (changed && !useCached) {<NEW_LINE>result = true;<NEW_LINE>change();<NEW_LINE>}<NEW_LINE>int last <MASK><NEW_LINE>int lastTab = useCached ? getCachedLastVi... | = mdl.size() - 1; |
1,813,800 | protected String mountUri(URI uri, String nfsVersion) throws UnknownHostException {<NEW_LINE>String uriHostIp = getUriHostIp(uri);<NEW_LINE>String nfsPath = uriHostIp <MASK><NEW_LINE>// Single means of calculating mount directory regardless of scheme<NEW_LINE>String dir = UUID.nameUUIDFromBytes(nfsPath.getBytes(com.clo... | + ":" + uri.getPath(); |
380,587 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>theme = getSharedPreferences(MainFragment.THEME_PREFERENCES, MODE_PRIVATE).getString(MainFragment.THEME_SAVED, MainFragment.LIGHTTHEME);<NEW_LINE>if (theme.equals(MainFragment.DARKTHEME)) {<NEW_LINE>Log.d("OskarSchindler", "One");<NEW_LINE>setTheme(R.style.C... | getSupportActionBar().setDisplayHomeAsUpEnabled(true); |
168,195 | static // The permutation preserves the key/value association but not the order of keys.<NEW_LINE>void permute(Object[] named) {<NEW_LINE>// number of K/V pairs<NEW_LINE>int n = named.length >> 1;<NEW_LINE>// Thanks to Murali Ganapathy for the algorithm.<NEW_LINE>// See https://play.golang.org/p/QOKnrj_bIwk.<NEW_LINE>/... | int j = named.length - i; |
649,846 | private void initOptions() {<NEW_LINE>ToolOptions opt = tool.getOptions(ToolConstants.TOOL_OPTIONS);<NEW_LINE>opt.registerOption(GhidraOptions.OPTION_NUMERIC_FORMATTING, DEFAULT_C_STYLE, null, "Interpret value entered in the Go To dialog as either hex, " + "octal, or binary number.");<NEW_LINE>opt.registerOption(Ghidra... | "Go To dialog will leave the last " + "successful go to input in the combo box of the Go " + "To dialog and will select the " + "value for easy paste replacement."); |
427,367 | final DeleteVoiceConnectorTerminationCredentialsResult executeDeleteVoiceConnectorTerminationCredentials(DeleteVoiceConnectorTerminationCredentialsRequest deleteVoiceConnectorTerminationCredentialsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVoiceConnectorTerminationCredentialsRe... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,063,447 | protected void encodeUnnamed(DataSchema schema) throws IOException {<NEW_LINE>DataSchema.<MASK><NEW_LINE>switch(type) {<NEW_LINE>case ARRAY:<NEW_LINE>_builder.writeStartObject();<NEW_LINE>_builder.writeStringField(TYPE_KEY, ARRAY_TYPE, true);<NEW_LINE>_builder.writeFieldName(ITEMS_KEY);<NEW_LINE>ArrayDataSchema arrayDa... | Type type = schema.getType(); |
139,592 | private void updateRequestBuilder(WebClientRequestBuilder requestBuilder, ApiRequest<?> request, String requestId) {<NEW_LINE>requestBuilder.headers().add("opc-request-id", requestId);<NEW_LINE>if (request instanceof OciRequestBase) {<NEW_LINE>OciRequestBase<?> ociRequest = (OciRequestBase<?>) request;<NEW_LINE>ociRequ... | String address = maybeAddress.get(); |
250,991 | // [START SDF_UserInitiatedCheckpoint]<NEW_LINE>@ProcessElement<NEW_LINE>public ProcessContinuation processElement(RestrictionTracker<OffsetRange, Long> tracker, OutputReceiver<Record> outputReceiver) {<NEW_LINE>long currentPosition = tracker.currentRestriction().getFrom();<NEW_LINE>Service service = initializeService(... | (Duration.standardSeconds(10)); |
1,327,767 | private void expand() {<NEW_LINE>Iterable<Relationship> expand = expander.expand(this, BranchState.NO_STATE);<NEW_LINE>for (Relationship rel : expand) {<NEW_LINE>lastMetadata.rels++;<NEW_LINE>Node node = rel.getOtherNode(lastNode);<NEW_LINE>Visit visit = visitData.get(node.getId());<NEW_LINE>if (visit != null && visit.... | estimateEvaluator.getCost(node, end); |
767,463 | public static void main(String[] args) throws Exception {<NEW_LINE>// Create default client<NEW_LINE>AmazonWorkDocs workDocs = AmazonWorkDocsClientBuilder.defaultClient();<NEW_LINE>// Set to the OrganizationId of your WorkDocs site.<NEW_LINE>String orgId = "d-123456789c";<NEW_LINE>// Set to the email address of a real ... | URL doc_url = new URL(downloadUrl); |
802,229 | public void highlightSelectedItem() {<NEW_LINE>int p = getItems().size();<NEW_LINE>// first check if there is a key match to handle items with<NEW_LINE>// identical captions<NEW_LINE>String currentKey = currentSuggestion != null ? currentSuggestion.getOptionKey() : "";<NEW_LINE>for (int i = 0; i < p; i++) {<NEW_LINE>fi... | getItems().get(i); |
679,363 | public void start(BundleContext context) throws Exception {<NEW_LINE>final Hashtable<String, Object> handlerProps = new Hashtable<String, Object>();<NEW_LINE>handlerProps.put(HandlerConstants.ENGINE_TYPE, HandlerConstants.ENGINE_TYPE_JAXRS);<NEW_LINE>handlerProps.put(HandlerConstants.IS_SERVER_SIDE, true);<NEW_LINE>han... | Handler.class, inOutHandlerBoth, handlerProps); |
1,313,285 | private IDecompiler initDecompiler(MixinEnvironment env, File outputPath) {<NEW_LINE>if (!env.getOption(Option.DEBUG_EXPORT_DECOMPILE)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>boolean as = env.getOption(Option.DEBUG_EXPORT_DECOMPILE_THREADED);<NEW_LINE>ExtensionClassExporter.logger.info("Attempting t... | clazz.getDeclaredConstructor(File.class); |
563,442 | public emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter buildPartial() {<NEW_LINE>emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter result = new emu.grasscutter.net.proto.CoopChapterOuterClass.CoopChapter(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>result.id_ = id_;<NEW_LINE>result.s... | bitField0_ = (bitField0_ & ~0x00000020); |
1,776,049 | final DisassociateSigninDelegateGroupsFromAccountResult executeDisassociateSigninDelegateGroupsFromAccount(DisassociateSigninDelegateGroupsFromAccountRequest disassociateSigninDelegateGroupsFromAccountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateSigninDelegateGroupsFromAcco... | invoke(request, responseHandler, executionContext); |
1,794,117 | public void multiRemove(final ReadableArray keys, final Callback callback) {<NEW_LINE>if (keys.size() == 0) {<NEW_LINE>callback.invoke();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>new GuardedAsyncTask<Void, Void>(getReactApplicationContext()) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected void doInBackgroundGuarded(Void.... | size() - keyStart, MAX_SQL_KEYS); |
215,388 | private void addPolygon(Polygon p) {<NEW_LINE>double offsetDistance = distance;<NEW_LINE>int offsetSide = Position.LEFT;<NEW_LINE>if (distance < 0.0) {<NEW_LINE>offsetDistance = -distance;<NEW_LINE>offsetSide = Position.RIGHT;<NEW_LINE>}<NEW_LINE>LinearRing shell = p.getExteriorRing();<NEW_LINE>Coordinate[] shellCoord ... | Location.INTERIOR, Location.EXTERIOR); |
1,283,082 | public DataRepositoryTaskFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DataRepositoryTaskFilter dataRepositoryTaskFilter = new DataRepositoryTaskFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | JsonToken token = context.getCurrentToken(); |
1,697,135 | private void printClientSideDetectedIssues(Set<ComponentConnector> zeroSized) {<NEW_LINE>// keep track of already highlighted parents<NEW_LINE>HashSet<String> parents = new HashSet<>();<NEW_LINE>for (final ComponentConnector connector : zeroSized) {<NEW_LINE>final ServerConnector parent = connector.getParent();<NEW_LIN... | ).setTextDecoration(TextDecoration.NONE); |
1,455,690 | public Optional<CostDetailCreateResult> createOrUpdateCost(final CostDetailCreateRequest request) {<NEW_LINE>final PPCostCollectorId costCollectorId = request.getDocumentRef().getCostCollectorId(PPCostCollectorId::ofRepoId);<NEW_LINE>final I_PP_Cost_Collector cc = costCollectorsService.getById(costCollectorId);<NEW_LIN... | totalDuration = costCollectorsService.getTotalDurationReported(cc); |
1,634,637 | public void addMessage(final Message message) {<NEW_LINE>if (this.getActivity() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (message.isIgnoreMessageAdding(getActivity()) || !TextUtils.isEmpty(searchString)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Context context = getActivity();<NEW_LINE>this.getActivity().... | (R.string.no_conversation)); |
196,834 | public static String safeToString(GeneralName generalName, boolean addLinkForURI) {<NEW_LINE>if (generalName == null) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>switch(generalName.getTagNo()) {<NEW_LINE>case GeneralName.directoryName:<NEW_LINE>X500Name directoryName = (X500Name) generalName.getName();<NEW_LINE>return Me... | (ASN1ObjectIdentifier) generalName.getName(); |
940,278 | void maybeStartNodejs() throws Exception {<NEW_LINE>if (this.nodejsModule != null) {<NEW_LINE>try {<NEW_LINE>this.nodejsModule.startNodeProject("loader.js", Arguments.createMap());<NEW_LINE>} catch (Exception e) {<NEW_LINE>Log.e("NODEJS-RN", "startNodeProject failed to run loader.js");<NEW_LINE>}<NEW_LINE>return;<NEW_L... | handleException(new Exception(ex)); |
35,792 | public static UpdateAppModelResponse unmarshall(UpdateAppModelResponse updateAppModelResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateAppModelResponse.setRequestId(_ctx.stringValue("UpdateAppModelResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setAppId(_ctx.stringValue("UpdateAppModelResponse.... | (_ctx.stringValue("UpdateAppModelResponse.Data.ModelStatus")); |
186,403 | public void visit(SubscriptExpr expr) {<NEW_LINE>WasmExpression ptr = getArrayElementPointer(expr);<NEW_LINE>switch(expr.getType()) {<NEW_LINE>case BYTE:<NEW_LINE>result = new WasmLoadInt32(1, ptr, WasmInt32Subtype.INT8);<NEW_LINE>break;<NEW_LINE>case SHORT:<NEW_LINE>result = new WasmLoadInt32(2, ptr, WasmInt32Subtype.... | 8, ptr, WasmInt64Subtype.INT64); |
1,306,141 | /* Build call for apisApiIdThumbnailGet */<NEW_LINE>private com.squareup.okhttp.Call apisApiIdThumbnailGetCall(String apiId, String accept, String ifNoneMatch, String ifModifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener)... | , apiClient.parameterToString(ifNoneMatch)); |
691,374 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>final LinearLayout parent = new LinearLayout(this);<NEW_LINE>final ComponentContext componentContext = new ComponentContext(this);<NEW_LINE>mLithoView = LithoView.create(componentContext, Column.create(componentConte... | setId(R.id.fragment_view); |
841,203 | public void createMetricFeedbackWithResponse() {<NEW_LINE>// BEGIN: com.azure.ai.metricsadvisor.MetricsAdvisorClient.addFeedbackWithResponse#String-MetricFeedback-Context<NEW_LINE>final String metricId = "d3gh4i4-b804-4ab9-a70f-0da0c89cft3l";<NEW_LINE>final OffsetDateTime startTime = OffsetDateTime.parse("2020-01-01T00... | getDimensionFilter().asMap()); |
327,782 | protected InputStream inputStream(String name) throws java.io.FileNotFoundException {<NEW_LINE>InputStream is = null;<NEW_LINE>try {<NEW_LINE>synchronized (closeSync) {<NEW_LINE>JarFile j = reOpenJarFile();<NEW_LINE>if (j != null) {<NEW_LINE>JarEntry je = j.getJarEntry(name);<NEW_LINE>if (je != null) {<NEW_LINE>if (je.... | FileNotFoundException(root.getAbsolutePath()); |
818,482 | public static CreateKeywordResponse unmarshall(CreateKeywordResponse createKeywordResponse, UnmarshallerContext _ctx) {<NEW_LINE>createKeywordResponse.setRequestId(_ctx.stringValue("CreateKeywordResponse.RequestId"));<NEW_LINE>createKeywordResponse.setSuccessCount(_ctx.integerValue("CreateKeywordResponse.SuccessCount")... | ("CreateKeywordResponse.InvalidKeywordList[" + i + "]")); |
125,723 | public void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>if (requestCode == SELECT_PROFILE_BG) {<NEW_LINE>if (resultCode == RESULT_OK) {<NEW_LINE>if (data != null && data.getData() != null) {<NEW_LINE>// Compute the bg size<NEW_LINE>int bgWidth = ScreenHelper.getScreenWidth(this);<NEW_LINE>... | resultUri = UCrop.getOutput(data); |
1,720,619 | private void initCurrent() {<NEW_LINE>currentPlugins = new HashSet<CordovaPlugin>();<NEW_LINE>log(getCordovaCommand() + " plugins ");<NEW_LINE>ExecTask exec = (ExecTask) getProject().createTask("exec");<NEW_LINE>final Environment.Variable variable = new Environment.Variable();<NEW_LINE>final String key = getProject().g... | BufferedReader(new StringReader(plugins)); |
1,318,797 | public static InstanceList convert(Instance inst, Noop alphabetsPipe) {<NEW_LINE>InstanceList ret = new InstanceList(alphabetsPipe);<NEW_LINE>Object obj = inst.getData();<NEW_LINE>assert (obj instanceof FeatureVectorSequence);<NEW_LINE>FeatureVectorSequence fvs = (FeatureVectorSequence) obj;<NEW_LINE>LabelSequence ls =... | getValues(), indices.length); |
1,269,451 | public List<Object> $basicList(String selector, Field field) throws Exception {<NEW_LINE>List<Object> list = new ArrayList<Object>();<NEW_LINE>Elements els = $(selector);<NEW_LINE>for (Element el : els) {<NEW_LINE>if (field.isAnnotationPresent(Text.class)) {<NEW_LINE>// @Text<NEW_LINE>Text text = field.getAnnotation(Te... | add(el.html()); |
143,782 | private void dealRecord(CSVRecord record, int rowIndex) {<NEW_LINE>Map<Integer, Cell> cellMap = new LinkedHashMap<>();<NEW_LINE>Iterator<String> cellIterator = record.iterator();<NEW_LINE>int columnIndex = 0;<NEW_LINE>while (cellIterator.hasNext()) {<NEW_LINE>String cellString = cellIterator.next();<NEW_LINE>ReadCellDa... | ? RowTypeEnum.EMPTY : RowTypeEnum.DATA; |
838,630 | static double powerSeries(double a, double b, double x) throws ArithmeticException {<NEW_LINE>double s, t, u, v, n, t1, z, ai;<NEW_LINE>ai = 1.0 / a;<NEW_LINE>u = (1.0 - b) * x;<NEW_LINE>v = u / (a + 1.0);<NEW_LINE>t1 = v;<NEW_LINE>t = u;<NEW_LINE>n = 2.0;<NEW_LINE>s = 0.0;<NEW_LINE>z = MACHEP * ai;<NEW_LINE>while (Mat... | n - b) * x / n; |
501,388 | public byte[] encrypt(byte[] key, byte[] data) {<NEW_LINE>if (key == null) {<NEW_LINE>LOGGER.severe(Common.addTag("Key is null"));<NEW_LINE>return new byte[0];<NEW_LINE>}<NEW_LINE>if (data == null) {<NEW_LINE>LOGGER.severe(Common.addTag("data is null"));<NEW_LINE>return new byte[0];<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>b... | Cipher.ENCRYPT_MODE, skeySpec, iv); |
1,223,417 | public void fileChanged(FileEvent ev) {<NEW_LINE>if (isOurs(ev)) {<NEW_LINE>if (LOG.isLoggable(Level.FINE)) {<NEW_LINE>LOG.fine("ModuleList: got expected modification " + ev);<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FileObject fo = ev.getFile();<NEW_LINE>String name = fo.getName();<NEW_LINE><MASK><NEW_LINE>if (... | String ext = fo.getExt(); |
48,127 | public void init(Map<String, Object> params) {<NEW_LINE>tasksTable.addAction<MASK><NEW_LINE>tasksTable.addAction(EditAction.create(tasksTable));<NEW_LINE>tasksTable.addAction(RemoveAction.create(tasksTable));<NEW_LINE>Action editAction = tasksTable.getActionNN(EditAction.ACTION_ID);<NEW_LINE>editAction.setEnabled(false... | (CreateAction.create(tasksTable)); |
164,181 | public void calculateLight() {<NEW_LINE>if (!world.isRemote) {<NEW_LINE>boolean isPowered = false;<NEW_LINE>for (NNIterator<BlockPos> iterator = parents.iterator(); !isPowered && iterator.hasNext(); ) {<NEW_LINE>BlockPos parent = iterator.next();<NEW_LINE>TileElectricLight light = BlockEnder.getAnyTileEntitySafe(world,... | lnbsnew, Constants.BlockFlags.DEFAULT); |
519,961 | public ListThingGroupsResult listThingGroups(ListThingGroupsRequest listThingGroupsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listThingGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMet... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
113,525 | private void addAllEntriesForKeyInSegment(List<IndexEntry> entries, IndexSegment indexSegment, IndexEntry entry) throws StoreException {<NEW_LINE>logger.trace("Fetching related entries of a blob with entry {} in index segment with start offset {} in {} " + "because they need to be retained", entry, indexSegment.getStar... | find(entry.getKey()); |
479,114 | public boolean visit(EnumDeclaration node) {<NEW_LINE>handleBracedCode(node, node.getName(), this.options.<MASK><NEW_LINE>handleBodyDeclarations(node.bodyDeclarations());<NEW_LINE>List<EnumConstantDeclaration> enumConstants = node.enumConstants();<NEW_LINE>for (int i = 0; i < enumConstants.size(); i++) {<NEW_LINE>EnumC... | brace_position_for_enum_declaration, this.options.indent_body_declarations_compare_to_enum_declaration_header); |
1,216,735 | private void fillCacheFromInvalidatedRows(Range maxCacheRange) {<NEW_LINE>if (invalidatedRows == null || invalidatedRows.isEmpty()) {<NEW_LINE>// No old invalid cache available<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Range potentialCache = maxCacheRange.partitionWith(cached)[2];<NEW_LINE>int start = potentialCache.getStar... | between(start, last + 1); |
644,533 | public CameraUniversalOmni createCameraModel() {<NEW_LINE>var model = new CameraUniversalOmni(4);<NEW_LINE>model.width = selectWidth.vint();<NEW_LINE>model.height = selectHeight.vint();<NEW_LINE>model.fx = model.width * selectFY.vdouble() / 100.0;<NEW_LINE>model.fy = model.width * selectFY.vdouble() / 100.0;<NEW_LINE>m... | * selectFY.vdouble() / 100.0; |
267,414 | private static void populateStandardProperties(DbInfo.Builder builder, Map<?, ?> props) {<NEW_LINE>if (props != null && !props.isEmpty()) {<NEW_LINE>if (props.containsKey("user")) {<NEW_LINE>builder.user((String<MASK><NEW_LINE>}<NEW_LINE>if (props.containsKey("databasename")) {<NEW_LINE>builder.db((String) props.get("d... | ) props.get("user")); |
1,535,947 | public static Drawable createImageDrawable(@Nullable Drawable original, @NonNull ImageView.ScaleType scaleType, @Nullable float[] borderRadius, int vWidth, int vHeight, boolean gif) {<NEW_LINE>Bitmap bm;<NEW_LINE>if (!gif && vWidth > 0 && vHeight > 0) {<NEW_LINE>if (original instanceof BitmapDrawable && (bm = ((BitmapD... | .bitmapHeight = bm.getHeight(); |
1,378,769 | private void visit(FieldNode value) {<NEW_LINE>// Visit definition<NEW_LINE>FieldDefinitionAST def = new FieldDefinitionAST(0, 0, new NameAST(0, 0, value.name), new DescAST(0<MASK><NEW_LINE>for (AccessFlag flag : AccessFlag.values()) if (flag.getTypes().contains(AccessFlag.Type.FIELD) && (value.access & flag.getMask())... | , 0, value.desc)); |
1,367,185 | public String charge(final ICalloutField calloutField) {<NEW_LINE>final de.metas.adempiere.model.I_C_InvoiceLine invoiceLine = calloutField.getModel(de.metas.adempiere.model.I_C_InvoiceLine.class);<NEW_LINE>final int chargeID = invoiceLine.getC_Charge_ID();<NEW_LINE>if (chargeID <= 0) {<NEW_LINE>return NO_ERROR;<NEW_LI... | prepareStatement(sql, ITrx.TRXNAME_None); |
1,654,832 | private RevolutPaymentExport toRevolutExportRequest(@NonNull final I_C_PaySelectionLine line) {<NEW_LINE>final RevolutPaymentExport.RevolutPaymentExportBuilder revolutPaymentExportBuilder = RevolutPaymentExport.builder();<NEW_LINE>final I_C_Invoice invoice = invoiceDAO.getByIdInTrx(InvoiceId.ofRepoId(line.getC_Invoice_... | Table_Name, line.getC_PaySelection_ID()); |
1,348,643 | private List<Future> schedule(Settings settings) {<NEW_LINE>List<Future> futures = new LinkedList<>();<NEW_LINE>if (threadPoolExecutor != null) {<NEW_LINE>logger.info("already scheduled");<NEW_LINE>return futures;<NEW_LINE>}<NEW_LINE>String[] schedule = settings.getAsArray("schedule");<NEW_LINE>Long seconds = settings.... | Thread thread = new Thread(this); |
471,035 | public static GetResourceConfigurationTimelineResponse unmarshall(GetResourceConfigurationTimelineResponse getResourceConfigurationTimelineResponse, UnmarshallerContext _ctx) {<NEW_LINE>getResourceConfigurationTimelineResponse.setRequestId(_ctx.stringValue("GetResourceConfigurationTimelineResponse.RequestId"));<NEW_LIN... | ("GetResourceConfigurationTimelineResponse.ResourceConfigurationTimeline.ConfigurationList[" + i + "].AccountId")); |
712,065 | public void selectPackagePrefixByProject() {<NEW_LINE>TreeSet<String> projects = new TreeSet<>(String.CASE_INSENSITIVE_ORDER);<NEW_LINE>Multiset<String> count = new Multiset<>();<NEW_LINE>int total = 0;<NEW_LINE>for (BugInstance b : getBugCollection().getCollection()) {<NEW_LINE>if (shouldDisplayIssueIgnoringPackagePre... | JOptionPane.showMessageDialog(this, "No issues in current view"); |
1,739,352 | private static void sendEventTwo(RegressionEnvironment env, EventRepresentationChoice eventRepresentationEnum, String id, int val) {<NEW_LINE>if (eventRepresentationEnum.isObjectArrayEvent()) {<NEW_LINE>env.sendEventObjectArray(new Object[] { id, val }, "EventTwo");<NEW_LINE>} else if (eventRepresentationEnum.isMapEven... | record.put("id", id); |
908,909 | public void process(String workID, byte[] data) {<NEW_LINE>ReplicationTarget target = DistributedWorkQueueWorkAssignerHelper.fromQueueKey(workID).getValue();<NEW_LINE>String file = new String(data, UTF_8);<NEW_LINE>log.debug("Received replication work for {} to {}", file, target);<NEW_LINE>ReplicaSystem replica;<NEW_LI... | .currentThread().interrupt(); |
294,861 | public float evaluateMask(int tl_x, int tl_y) {<NEW_LINE>Objects.requireNonNull(o.mask);<NEW_LINE>float imageSumSq = 0;<NEW_LINE>for (int y = 0; y < o.template.height; y++) {<NEW_LINE>int imageIndex = o.image.startIndex + (tl_y + y) * o.image.stride + tl_x;<NEW_LINE>int maskIndex = o.mask.startIndex + y * o.mask.stride... | data[templateIndex++]) * mask; |
188,223 | public List<LoadBalancerBackend> listAssociatedLoadBalancerBackends() {<NEW_LINE>final List<BackendAddressPoolInner> backendRefs = this.innerModel().loadBalancerBackendAddressPools();<NEW_LINE>if (backendRefs == null) {<NEW_LINE>return Collections.unmodifiableList(new ArrayList<LoadBalancerBackend>());<NEW_LINE>}<NEW_L... | parentResourceIdFromResourceId(backendRef.id()); |
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... | rst = take(t, engine); |
678,356 | public UpdateTrustResult updateTrustDb(List<Long> signerMasterKeyIds, Progressable progress) {<NEW_LINE>OperationLog log = new OperationLog();<NEW_LINE>log.add(LogType.MSG_TRUST, 0);<NEW_LINE>Preferences preferences = Preferences.getPreferences(context);<NEW_LINE>boolean isTrustDbInitialized = preferences.isKeySignatur... | UpdateTrustResult(UpdateTrustResult.RESULT_OK, log); |
965,975 | public TSStatus insertStringRecords(TSInsertStringRecordsReq req) {<NEW_LINE>if (!serviceProvider.checkLogin(req.getSessionId())) {<NEW_LINE>return getNotLoggedInStatus();<NEW_LINE>}<NEW_LINE>if (AUDIT_LOGGER.isDebugEnabled()) {<NEW_LINE>AUDIT_LOGGER.debug("Session {} insertRecords, first device {}, first time {}", SES... | ().get(0)); |
1,225,890 | private Button buildCommandLinkButton(ButtonType commandLink) {<NEW_LINE>// put the content inside a button<NEW_LINE>final Button button = new Button();<NEW_LINE>button.getStyleClass().addAll("command-link-button");<NEW_LINE>button.setMaxHeight(Double.MAX_VALUE);<NEW_LINE>button.setMaxWidth(Double.MAX_VALUE);<NEW_LINE>... | ("/hello/about_16.png").toExternalForm()); |
1,733,180 | public static void determinant(GrayF32 featureIntensity, GrayS16 hessianXX, GrayS16 hessianYY, GrayS16 hessianXY) {<NEW_LINE>final int width = hessianXX.width;<NEW_LINE>final int height = hessianXX.height;<NEW_LINE>if (featureIntensity == null) {<NEW_LINE>featureIntensity = new GrayF32(width, height);<NEW_LINE>}<NEW_LI... | = hessianYY.data[indexYY++]; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.