idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
918,564 | public static ListOTAModuleVersionsByDeviceResponse unmarshall(ListOTAModuleVersionsByDeviceResponse listOTAModuleVersionsByDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listOTAModuleVersionsByDeviceResponse.setRequestId(_ctx.stringValue("ListOTAModuleVersionsByDeviceResponse.RequestId"));<NEW_LINE>listOTAModule... | ("ListOTAModuleVersionsByDeviceResponse.Data[" + i + "].IotId")); |
1,209,408 | public void splitBefore(Staff pivotStaff, Part partBelow) {<NEW_LINE>final Measure measureBelow = new Measure(partBelow);<NEW_LINE>final List<Staff> stavesBelow = partBelow.getStaves();<NEW_LINE>// Barlines<NEW_LINE>if (leftBarline != null) {<NEW_LINE>measureBelow.leftBarline = leftBarline.splitBefore(pivotStaff);<NEW_... | splitCollectionBefore(stavesBelow, measureBelow, tuplets); |
1,700,549 | public void read(org.apache.thrift.protocol.TProtocol iprot, getBlobReplication_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.<MASK><NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.thrift.protocol.TT... | apache.thrift.protocol.TField schemeField; |
350,963 | public <T extends Message> T obtain(Class<T> klass) {<NEW_LINE>final Type type = Type.mapping.get(klass);<NEW_LINE>// noinspection SynchronizationOnLocalVariableOrMethodParameter<NEW_LINE>synchronized (type) {<NEW_LINE>Message message = pools[type.ordinal()];<NEW_LINE>if (message != null) {<NEW_LINE>pools[type.ordinal(... | "Cannot create an instance of " + klass + ". Make sure it has a empty" + " constructor."); |
21,696 | private static void testCutoffImprovement(int numberOfExperiments, int initialArraySize, Map<Integer, Comparable[]> allInputArrays) {<NEW_LINE>StdOut.printf("%10s %13s %12s\n", "Cutoff | ", "Array Size | ", "Running Time");<NEW_LINE>for (int cutoff = 5; cutoff <= 30; cutoff += 5) {<NEW_LINE>int arraySize = initialArray... | Exercise23_Improvements1_Cutoff improvements1 = new Exercise23_Improvements1_Cutoff(cutoff); |
828,515 | private <R> PagedModel<R> addPaginationLinks(PagedModel<R> resources, Page<?> page, Optional<Link> link) {<NEW_LINE>UriTemplate base = getUriTemplate(link);<NEW_LINE>boolean isNavigable = page.hasPrevious() || page.hasNext();<NEW_LINE>if (isNavigable || forceFirstAndLastRels) {<NEW_LINE>resources.add(createLink(base, P... | (), IanaLinkRelations.NEXT)); |
598,742 | private ListenableFuture<Unit> enqueue(ImmutableList<UploadDataSupplier> dataSupplier) {<NEW_LINE>Builder<ListenableFuture<Unit>> futures = ImmutableList.builder();<NEW_LINE>for (UploadDataSupplier data : dataSupplier) {<NEW_LINE>Digest digest = data.getDigest();<NEW_LINE>SettableFuture<Unit> future = SettableFuture.cr... | new PendingUpload(data, innerFuture)); |
951,040 | // endregion ComponentSnippets<NEW_LINE>// region QuerySnippets<NEW_LINE>@Override<NEW_LINE>public void query() {<NEW_LINE>// BEGIN: com.azure.digitaltwins.core.DigitalTwinsClient.query#String#BasicDigitalTwin<NEW_LINE>PagedIterable<BasicDigitalTwin> queryResultBasicDigitalTwin = digitalTwinsSyncClient.<MASK><NEW_LINE>... | query("SELECT * FROM digitaltwins", BasicDigitalTwin.class); |
729,263 | private void splitEdge(Point point0, Point point1, List<Double> latitudes, List<Double> longitudes, double minlim, double maxlim) {<NEW_LINE>double lat0 = point0.getY();<NEW_LINE>double lon0 = point0.getX();<NEW_LINE>double lat1 = point1.getY();<NEW_LINE>double lon1 = point1.getX();<NEW_LINE>double dist = distance(lat0... | (lat1 - lat0) / n); |
387,774 | private static Map<String, String> readCategories() {<NEW_LINE>Map<String, String> result = new HashMap<String, String>();<NEW_LINE>// NOI18N<NEW_LINE>FileObject fo = FileUtil.getConfigFile("OptionsDialog/Actions");<NEW_LINE>if (fo == null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>FileObject[] categories = fo.getC... | actions[j].getName(); |
1,686,625 | public static void main(String[] args) throws Exception {<NEW_LINE>FlameGraph fg = new FlameGraph(args);<NEW_LINE>if (fg.input == null) {<NEW_LINE>System.out.println("Usage: java " + jfr2flame.class.getName() + " [options] input.jfr [output.html]");<NEW_LINE>System.out.println();<NEW_LINE>System.out.println("options in... | total = options.contains("--total"); |
408,593 | public static KernelPackage readInputData() throws ClassNotFoundException, IOException {<NEW_LINE>System.out.println("Reading file for decompressing");<NEW_LINE>FileInputStream iStream = new FileInputStream("/tmp/huffman.txt");<NEW_LINE>@SuppressWarnings("resource")<NEW_LINE>ObjectInputStream inObject = new ObjectInput... | byte[bitSetCompressed.length()]; |
1,682,678 | public Object execute(ExecutionEvent event) throws ExecutionException {<NEW_LINE>String edlBasename;<NEW_LINE>IProject project = null;<NEW_LINE>// Display display = Display.getCurrent();<NEW_LINE>// Shell shell = new Shell(display);<NEW_LINE>RemoveEnclaveFileDialog dialog = new RemoveEnclaveFileDialog(null, this);<NEW_... | ).append("enclave_" + edlBasename); |
1,792,438 | private boolean authorizeNewDescriptor(ServiceRequestContext ctx, OAuth2TokenDescriptor tokenDescriptor) {<NEW_LINE>// check whether the token active<NEW_LINE>if (!tokenDescriptor.isActive()) {<NEW_LINE>ctx.setAttr(ERROR_CODE, HttpStatus.UNAUTHORIZED.code());<NEW_LINE><MASK><NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>/... | ctx.setAttr(ERROR_TYPE, INVALID_TOKEN); |
1,733,719 | private void createMultiblock(Block b, ModelFile masterModel, @Nullable ModelFile mirroredModel, EnumProperty<Direction> facing, @Nullable Property<Boolean> mirroredState) {<NEW_LINE>Preconditions.checkArgument((mirroredModel == null) == (mirroredState == null));<NEW_LINE>VariantBlockStateBuilder builder = getVariantBu... | angleY = getAngle(dir, 180); |
896,231 | public static void main(String[] args) throws Exception {<NEW_LINE>BufferedReader br = new // use BufferedReader<NEW_LINE>BufferedReader(new InputStreamReader(System.in));<NEW_LINE>PrintWriter pw = new // and PrintWriter<NEW_LINE>// = fast IO<NEW_LINE>PrintWriter(new BufferedWriter(new OutputStreamWriter(System.out)));... | lo = INF, hi = -INF; |
157,644 | public void startTemplateWithPrefix(final Editor editor, final TemplateImpl template, final int templateStart, @Nullable final PairProcessor<String, String> processor, @Nullable final String argument) {<NEW_LINE>final int caretOffset = editor.getCaretModel().getOffset();<NEW_LINE>final TemplateState templateState = ini... | start(template, processor, predefinedVarValues); |
845,618 | public okhttp3.Call connectPatchNodeProxyWithPathCall(String name, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/nodes/{name}/proxy/{path}".replaceAll("\\{" + "name"... | = new ArrayList<Pair>(); |
867,243 | private int doDelete(String dbIndex, String phyTable, List<ParameterContext> pks, ExecutionContext newEc) {<NEW_LINE>final Map<Integer, ParameterContext> <MASK><NEW_LINE>// Physical table is 1st parameter<NEW_LINE>planParams.put(1, PlannerUtils.buildParameterContextForTableName(phyTable, 1));<NEW_LINE>// Get Plan<NEW_L... | planParams = new HashMap<>(); |
1,671,346 | private static void implSign(Xof d, byte[] h, byte[] s, byte[] pk, int pkOff, byte[] ctx, byte phflag, byte[] m, int mOff, int mLen, byte[] sig, int sigOff) {<NEW_LINE>dom4(d, phflag, ctx);<NEW_LINE>d.update(h, SCALAR_BYTES, SCALAR_BYTES);<NEW_LINE>d.update(m, mOff, mLen);<NEW_LINE>d.doFinal(h, 0, h.length);<NEW_LINE>b... | scalarMultBaseEncoded(r, R, 0); |
24,659 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>folderPanel = new javax.swing.JPanel();<NEW_LINE>setBorder(javax.swing.BorderF... | (BrowseFolders.class, "BrowseFolders.folderPanel.AccessibleContext.accessibleDescription")); |
976,982 | static Map<String, UserAgentParser> createUserAgentParsers(Path userAgentConfigDirectory, UserAgentCache cache) throws IOException {<NEW_LINE>Map<String, UserAgentParser> userAgentParsers = new HashMap<>();<NEW_LINE>UserAgentParser defaultParser = new UserAgentParser(DEFAULT_PARSER_NAME, IngestUserAgentPlugin.class.get... | .getFileName().toString(); |
1,154,918 | void handle(final GetVolumeRootImageUuidFromPrimaryStorageMsg msg, String hostUuid, final ReturnValueCompletion<GetVolumeRootImageUuidFromPrimaryStorageReply> completion) {<NEW_LINE>GetVolumeBaseImagePathCmd cmd = new GetVolumeBaseImagePathCmd();<NEW_LINE>cmd.volumeInstallDir = makeVolumeInstallDir(msg.getVolume());<NE... | .split("\\.")[0]; |
58,175 | private static Range convertRange(IOpenable openable, IProblem problem) {<NEW_LINE>try {<NEW_LINE>if (problem.getID() == IProblem.UndefinedType && openable instanceof ICompilationUnit) {<NEW_LINE>ICompilationUnit cu = (ICompilationUnit) openable;<NEW_LINE>int start = getSourceStart(cu, problem);<NEW_LINE>if (start > -1... | problem.getSourceStart() + 1); |
1,522,168 | private void openLastEditedDatabases() {<NEW_LINE>List<String> lastFiles = preferencesService<MASK><NEW_LINE>if (lastFiles.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (String fileName : lastFiles) {<NEW_LINE>Path dbFile = Path.of(fileName);<NEW_LINE>// Already parsed via command line parameter, e.g., "jabref.... | .getGuiPreferences().getLastFilesOpened(); |
1,051,718 | private void refreshContent() {<NEW_LINE>if (FluxCUtils.isSignedInWPComOrHasWPOrgSite(mAccountStore, mSiteStore)) {<NEW_LINE>List<SiteModel<MASK><NEW_LINE>downloadExternalMedia();<NEW_LINE>if (visibleSites.size() == 0) {<NEW_LINE>ToastUtils.showToast(this, R.string.cant_share_no_visible_blog, ToastUtils.Duration.LONG);... | > visibleSites = mSiteStore.getVisibleSites(); |
568,756 | private void translateContents(final WorkflowProcessor processor, final ContentletAPI contentletAPI, final PermissionAPI permissionAPI, final CategoryAPI categoryAPI, final User user, final Contentlet sourceContentlet, final List<Field> translateFields, final List<Language> translateLanguages) {<NEW_LINE>final List<Lan... | copyBinariesAndTags(user, sourceContentlet, translatedContent); |
1,711,693 | protected Class<? extends T>[] expand(final Class<? extends T>[] actionWrappers) {<NEW_LINE>if (actionWrappers == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<Class<? extends T>> list = new ArrayList<>(actionWrappers.length);<NEW_LINE>list.addAll(Arrays.asList(actionWrappers));<NEW_LINE>int i = 0;<NEW_LINE>wh... | toArray(new Class[0]); |
199,381 | public CampaignEventFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CampaignEventFilter campaignEventFilter = new CampaignEventFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context... | String currentParentElement = context.getCurrentParentElement(); |
1,325,988 | public PtNDArray squeeze(int[] axes) {<NEW_LINE>if (isScalar()) {<NEW_LINE>if (axes.length > 1 || axes[0] != 0) {<NEW_LINE>throw new IllegalArgumentException("axis " + axes[0] + "is out of bounds for array of dimension 0");<NEW_LINE>}<NEW_LINE>return (PtNDArray) duplicate();<NEW_LINE>}<NEW_LINE>long[] shapeArr = getSha... | newShape = new ArrayList<>(); |
946,222 | TreeModelNode[] findNode(Object o) {<NEW_LINE>WeakReference<TreeModelNode>[] wrs;<NEW_LINE>synchronized (objectToNode) {<NEW_LINE>wrs = objectToNode.get(o);<NEW_LINE>}<NEW_LINE>TreeModelNode[] tns = null;<NEW_LINE>if (wrs != null) {<NEW_LINE>for (int i = 0; i < wrs.length; i++) {<NEW_LINE>// Suppose that it's unlikely ... | TreeModelNode> wr = wrs[i]; |
28,227 | private void populateIdpList(List<IdpConfig> providerConfigs) {<NEW_LINE>ViewModelProvider supplier = new ViewModelProvider(this);<NEW_LINE><MASK><NEW_LINE>for (IdpConfig idpConfig : providerConfigs) {<NEW_LINE>@LayoutRes<NEW_LINE>int buttonLayout;<NEW_LINE>final String providerId = idpConfig.getProviderId();<NEW_LINE>... | mProviders = new ArrayList<>(); |
780,355 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>setTheme(R.style.BottomSheetTheme);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.comment_editor);<NEW_LINE>Bundle extras = getIntent().getExtras();<NEW_LINE><MASK><NEW_LINE>mRepoName = extras.getString(EXTRA_REPO);<NEW_LINE>mPul... | mRepoOwner = extras.getString(EXTRA_OWNER); |
223,615 | public final CreateIndexColumnListContext createIndexColumnList() throws RecognitionException {<NEW_LINE>CreateIndexColumnListContext _localctx = new CreateIndexColumnListContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 84, RULE_createIndexColumnList);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_lo... | _errHandler.recover(this, re); |
1,005,072 | public double calculate(double p) {<NEW_LINE>switch(funcName) {<NEW_LINE>case StdNormal:<NEW_LINE>return stdNormal(p);<NEW_LINE>case Normal:<NEW_LINE>return normal(p, params[0], params[1]);<NEW_LINE>case Gamma:<NEW_LINE>return gamma(p, params[0], params[1]);<NEW_LINE>case Beta:<NEW_LINE>return beta(p, params[0], params... | 0], params[1]); |
499,909 | public static void main(String[] args) throws IOException {<NEW_LINE>String[] data_dir;<NEW_LINE>String outFile = "IoTDB_data_dir_overview.txt";<NEW_LINE>if (args.length == 0) {<NEW_LINE>String path = "data/data";<NEW_LINE>// multiple data dirs separated by comma<NEW_LINE>data_dir = path.split(",");<NEW_LINE>} else if ... | comparing(File::getName))); |
239,828 | void add(Feature feature) {<NEW_LINE>Selector selector = feature.getSelector();<NEW_LINE>FeatureList list = this;<NEW_LINE>if (selector != null) {<NEW_LINE>List<String<MASK><NEW_LINE>for (int i = path.size() - 1; i >= 0; i--) {<NEW_LINE>String name = path.get(i);<NEW_LINE>if (list.lists == null)<NEW_LINE>list.lists = n... | > path = selector.getPath(); |
548,405 | private static void addClassProxyEqualsMethod(ClassWriter cw, String implClassName) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, INDENT + "adding method : equals (Ljava/lang/Object;)Z");<NEW_LINE>// --------------------------------------------------------------------... | GETFIELD, implClassName, LOCAL_BEAN_PROXY_FIELD, LOCAL_BEAN_PROXY_FIELD_TYPE_NAME); |
885,096 | void deleteOldArtifacts() {<NEW_LINE>ServerConfig serverConfig = goConfigService.serverConfig();<NEW_LINE>Double requiredSpaceInGb = serverConfig.getPurgeUpto();<NEW_LINE>if (serverConfig.isArtifactPurgingAllowed()) {<NEW_LINE>double requiredSpace = requiredSpaceInGb * GoConstants.GIGA_BYTE;<NEW_LINE>LOGGER.info("Clear... | "Finished clearing old artifacts. Deleted artifacts for '{}' stages. Current space: '{}'", numberOfStagesPurged, availableSpace()); |
722,993 | public void onSuccess(Uri uri) {<NEW_LINE>final WritableMap res = Arguments.createMap();<NEW_LINE>res.putString("status", "success");<NEW_LINE>res.putString("bucket", storageRef.getBucket());<NEW_LINE>res.putString("fullPath", uri.toString());<NEW_LINE>res.putString("path", uri.getPath());<NEW_LINE>res.putString("url",... | "updated_at", storageMetadata.getUpdatedTimeMillis()); |
1,753,948 | private void update(Username username, HttpLocalizedOperationResult result, EntityConfigUpdateCommand command, PackageRepository repository) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (Exception e) {<NEW_LINE>if (e instanceof GoConfigInvalidException && !result.hasMessage()) {<NEW_LINE>result.unprocessableEntity... | goConfigService.updateConfig(command, username); |
1,843,328 | public void onRestoreStateForActivityResult(Bundle state, CallbackContext callbackContext) {<NEW_LINE>this.destType = state.getInt("destType");<NEW_LINE>this.srcType = state.getInt("srcType");<NEW_LINE>this.mQuality = state.getInt("mQuality");<NEW_LINE>this.targetWidth = state.getInt("targetWidth");<NEW_LINE>this.targe... | allowEdit = state.getBoolean("allowEdit"); |
1,005,154 | private boolean breakBlock(BlockPos pos) {<NEW_LINE>Direction[] sides = Direction.values();<NEW_LINE>Vec3d eyesPos = RotationUtils.getEyesPos();<NEW_LINE>Vec3d relCenter = BlockUtils.getBoundingBox(pos).offset(-pos.getX(), -pos.getY(), -pos.getZ()).getCenter();<NEW_LINE>Vec3d center = Vec3d.of(pos).add(relCenter);<NEW_... | sides[i].getVector(); |
949,008 | public ActionContinuationOrResult beginExecution(ActionExecutionContext actionExecutionContext) throws ActionExecutionException, InterruptedException {<NEW_LINE>if (featureConfiguration.isEnabled(CppRuleClasses.COMPILER_PARAM_FILE)) {<NEW_LINE>try {<NEW_LINE>paramFileActionInput = new // TODO(b/132888308): Support MSVC... | getSourceFile().getFilename()); |
1,546,074 | public static Variable evaluate(JPDADebugger debugger, CurrentPCInfo currentPCInfo, String expression) throws InvalidExpressionException {<NEW_LINE>TruffleStackFrame selectedStackFrame = currentPCInfo.getSelectedStackFrame();<NEW_LINE>if (selectedStackFrame == null) {<NEW_LINE>throw new InvalidExpressionException(Bundl... | ) debugger).getVariable(expressionReference); |
310,396 | public void scanQRCode(ScanResult callback) {<NEW_LINE>if (getActivity() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (getActivity() instanceof CodenameOneActivity) {<NEW_LINE>((CodenameOneActivity) getActivity()).setIntentResultListener(this);<NEW_LINE>}<NEW_LINE>this.callback = callback;<NEW_LINE>IntentIntegrat... | getActivity()).restoreIntentResultListener(); |
1,226,120 | void performRecovery() throws StoreException {<NEW_LINE>try {<NEW_LINE>readCleanupTokenAndPopulateRecoveryRange();<NEW_LINE>if (hardDeleteRecoveryRange.getSize() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StoreMessageReadSet readSet = new StoreMessageReadSet(readOptionsList);<NEW_LINE>Iterator<HardDeleteInfo> hardDel... | metrics.hardDeleteFailedCount.inc(1); |
1,574,835 | public void flip(int fromIndex, int toIndex) {<NEW_LINE>checkRange(fromIndex, toIndex);<NEW_LINE>if (fromIndex == toIndex) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// If we are flipping bits beyond our length, we are setting them to true.<NEW_LINE>int length = length();<NEW_LINE>if (fromIndex >= length) {<NEW_LINE>setInt... | array, first, startBit, endBit); |
882,782 | private void processOverDueAlert() {<NEW_LINE>if (m_model.getOverdueAssignDays() != 0) {<NEW_LINE>String whereClauseGeneral = "";<NEW_LINE>String whereClause = "";<NEW_LINE>isScheduled = true;<NEW_LINE>ArrayList<Object> params = new ArrayList<Object>();<NEW_LINE>Timestamp currentDate = new Timestamp(TimeUtil.getToday()... | add(m_model.getC_ProjectTaskCategory_ID()); |
499,083 | public void stackTrace(final List<String> trace) {<NEW_LINE>final Iterator<String> frames = trace.iterator();<NEW_LINE>final String exceptionLine = frames.next();<NEW_LINE>final Matcher m = EXCEPTION_PARSER.matcher(exceptionLine);<NEW_LINE>if (!m.matches()) {<NEW_LINE>System.err.println(AndroidMode.getTextString("andro... | placeException(exceptionLine, filename, lineNumber); |
541,022 | public static DescribeUserCertificateListResponse unmarshall(DescribeUserCertificateListResponse describeUserCertificateListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeUserCertificateListResponse.setRequestId(_ctx.stringValue("DescribeUserCertificateListResponse.RequestId"));<NEW_LINE>describeUserCertificate... | (_ctx.integerValue("DescribeUserCertificateListResponse.TotalCount")); |
191,985 | public ChassisSpeeds calculate(Pose2d currentPose, Pose2d poseRef, double linearVelocityRefMeters, double angularVelocityRefRadiansPerSecond) {<NEW_LINE>if (!m_enabled) {<NEW_LINE>return new ChassisSpeeds(linearVelocityRefMeters, 0.0, angularVelocityRefRadiansPerSecond);<NEW_LINE>}<NEW_LINE>m_poseError = poseRef.relati... | double eX = m_poseError.getX(); |
1,477,931 | protected void doAction() {<NEW_LINE>try {<NEW_LINE>KeyStoreHistory history = kseFrame.getActiveKeyStoreHistory();<NEW_LINE>KeyStoreState currentState = history.getCurrentState();<NEW_LINE>String alias = kseFrame.getSelectedEntryAlias();<NEW_LINE>Password password = getEntryPassword(alias, currentState);<NEW_LINE>if (p... | DError.displayError(frame, ex); |
702,639 | private static void assertExpressionForType(RegressionEnvironment env, String seedTime, long seedDuration, String whereClause, Object[][] timestampsAndResult, Validator validator, SupportDateTimeFieldType fieldType) {<NEW_LINE>String epl = "@name('s0') select * from A_" + fieldType.name() + "#lastevent as a, B_" + fiel... | (epl).addListener("s0"); |
1,495,176 | public void releaseConnection(RouteResultsetNode rrn, boolean debug, final boolean needRollback) {<NEW_LINE>BackendConnection c = target.remove(rrn);<NEW_LINE>if (c != null) {<NEW_LINE>if (debug) {<NEW_LINE>// LOGGER.debug("release connection " + c);<NEW_LINE>String sql = rrn.getStatement();<NEW_LINE>if (sql != null) {... | .getName(), sql }); |
631,374 | public void run() {<NEW_LINE>if (isActive) {<NEW_LINE>setActive();<NEW_LINE>} else {<NEW_LINE>setInactive();<NEW_LINE>}<NEW_LINE>long now = TimeUtil.getCurrentTime(serverId);<NEW_LINE>xyGraph.primaryXAxis.setRange(now - DateUtil.MILLIS_PER_MINUTE * 5, now + 1);<NEW_LINE>Iterator<Integer> itr = values.keySet().iterator(... | ) tp.totalTrace.getDataProvider(); |
229,640 | private void processLevel(final int currentLevel) {<NEW_LINE>final int fromLayerIndex = this.layerIndex[currentLevel + 1];<NEW_LINE>final int toLayerIndex = this.layerIndex[currentLevel];<NEW_LINE>final int fromLayerSize = this.layerCounts[currentLevel + 1];<NEW_LINE>final int toLayerSize = this.layerFeedCounts[current... | double[] layerOutput = this.layerOutput; |
917,364 | private IBaseOperationOutcome createOperationOutcome(Throwable theException, FhirContext ctx) throws ServletException {<NEW_LINE>IBaseOperationOutcome oo = null;<NEW_LINE>if (theException instanceof BaseServerResponseException) {<NEW_LINE>oo = ((BaseServerResponseException) theException).getOperationOutcome();<NEW_LINE... | theException.toString(), theException); |
207,068 | public void apply() {<NEW_LINE>WasmFunction traceFunction = new WasmFunction("traceIndirectCall");<NEW_LINE>traceFunction.setImportModule("debug");<NEW_LINE>traceFunction.setImportName("traceIndirectCall");<NEW_LINE>traceFunction.getParameters(<MASK><NEW_LINE>traceFunction.getParameters().add(WasmType.INT32);<NEW_LINE>... | ).add(WasmType.INT32); |
1,554,381 | public static void formatSource(Formatter formatter, Object source, ElementSource elementSource) {<NEW_LINE>String modules = moduleSourceString(elementSource);<NEW_LINE>if (source instanceof Dependency) {<NEW_LINE>Dependency<?> dependency = (Dependency<?>) source;<NEW_LINE>InjectionPoint injectionPoint = dependency.get... | = (Key<?>) source; |
1,273,562 | protected void reifyConstructors() {<NEW_LINE>// standard constructor that accepts Ruby, RubyClass. For use by JRuby (internally)<NEW_LINE>SkinnyMethodAdapter m = new SkinnyMethodAdapter(cw, ACC_PUBLIC, "<init>", sig(void.class, Ruby.class, RubyClass.class), null, null);<NEW_LINE>// uninitialized this<NEW_LINE>m.aload(... | , ci(Ruby.class)); |
264,875 | final DescribeActionTargetsResult executeDescribeActionTargets(DescribeActionTargetsRequest describeActionTargetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeActionTargetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
687,340 | public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>query_aggregate_result result = new query_aggregate_result();<NEW_LINE>if (e instanceof rpc_invalid_operation) {<NEW_LINE><MASK><NEW_LINE>result.setE... | result.ex = (rpc_invalid_operation) e; |
1,059,300 | public ReservedWorker handle(GetReservedWorker workerRequest) {<NEW_LINE>String id = workerRequest.getId();<NEW_LINE>UUID jobId = decodeJobId(id);<NEW_LINE>PortabilityJob job = jobStore.findJob(jobId);<NEW_LINE>Preconditions.checkNotNull(job, "Couldn't lookup worker for job " + id + " because the job doesn't exist");<N... | jobAuthorization().authPublicKey()); |
1,821,384 | public boolean applyColumnRename(SQLName columnName, SQLColumnDefinition to) {<NEW_LINE>for (SQLSelectOrderByItem orderByItem : getColumns()) {<NEW_LINE>SQLExpr expr = orderByItem.getExpr();<NEW_LINE>if (expr instanceof SQLName && SQLUtils.nameEquals((SQLName) expr, columnName)) {<NEW_LINE>orderByItem.setExpr(to.getNam... | .getNumber().intValue(); |
377,638 | public void consume(final ConsumerRecord<String, GenericRecord> consumerRecord) {<NEW_LINE>kafkaLagStats.update(System.currentTimeMillis() - consumerRecord.timestamp());<NEW_LINE>final GenericRecord record = consumerRecord.value();<NEW_LINE>log.debug("Got Generic MCL on topic: {}, partition: {}, offset: {}", consumerRe... | ), event.getEntityKeyAspect()); |
1,510,419 | public NotationParser<Object, MavenArtifact> create() {<NEW_LINE>FileNotationConverter fileNotationConverter = new FileNotationConverter(fileResolver);<NEW_LINE>ArchiveTaskNotationConverter archiveTaskNotationConverter = new ArchiveTaskNotationConverter();<NEW_LINE>PublishArtifactNotationConverter publishArtifactNotati... | converter(fileNotationConverter).toComposite(); |
797,529 | private void processFailures(Map<KeyExtent, List<Range>> failures, ResultReceiver receiver, List<Column> columns) throws AccumuloException, AccumuloSecurityException, TableNotFoundException {<NEW_LINE>if (log.isTraceEnabled())<NEW_LINE>log.trace("Failed to execute multiscans against {} tablets, retrying...", failures.s... | binnedRanges = new HashMap<>(); |
409,462 | public ListEventIntegrationsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListEventIntegrationsResult listEventIntegrationsResult = new ListEventIntegrationsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE... | String currentParentElement = context.getCurrentParentElement(); |
1,765,094 | public static ListCommitsResponse unmarshall(ListCommitsResponse listCommitsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCommitsResponse.setRequestId(_ctx.stringValue("ListCommitsResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setPageNumber(_ctx.integerValue("ListCommitsResponse.Data.PageNum... | ("ListCommitsResponse.Data.Items[" + i + "].CommitType")); |
1,091,046 | private Query<Collection<Integer>> inactiveProviderIDsQuery() {<NEW_LINE>String sql = SELECT + "pr." + ExtensionProviderTable.ID + ',' + "pl." + ExtensionPluginTable.LAST_UPDATED + ',' + "pl." + ExtensionPluginTable.PLUGIN_NAME + FROM + ExtensionProviderTable.TABLE_NAME + " pr" + INNER_JOIN + ExtensionPluginTable.TABLE... | .getInt(ExtensionProviderTable.ID)); |
1,643,625 | public static BufferedImage toBufferedImage(Picture src, DemuxerTrackMeta.Orientation orientation) {<NEW_LINE>if (src.getColor() != ColorSpace.BGR) {<NEW_LINE>Picture bgr = Picture.createCropped(src.getWidth(), src.getHeight(), ColorSpace.BGR, src.getCrop());<NEW_LINE>if (src.getColor() == ColorSpace.RGB) {<NEW_LINE>ne... | ).transform(bgr, bgr); |
70,579 | public ByteBuf encrypt(ByteBuf toEncrypt, SecretKeySpec key, byte[] iv) throws GeneralSecurityException {<NEW_LINE>ByteBuf encryptedContent = null;<NEW_LINE>ByteBuf temp = null;<NEW_LINE>try {<NEW_LINE>Cipher encrypter = Cipher.getInstance(GCM_CRYPTO_INSTANCE, "BC");<NEW_LINE>if (iv == null) {<NEW_LINE>iv = new byte[iv... | ioBuffer(toEncrypt.readableBytes()); |
1,428,313 | public List<AbstractMedia> forDirectoryContent(int mediaFileId, String username, HttpServletRequest request) {<NEW_LINE>List<AbstractMedia> result = new ArrayList<AbstractMedia>();<NEW_LINE>MediaFile dir = mediaFileService.getMediaFile(mediaFileId);<NEW_LINE>List<MediaFile> children = dir.isFile() ? Arrays.asList(dir) ... | (child, username, request)); |
610,099 | public static ListNodeInputOrOutputResponse unmarshall(ListNodeInputOrOutputResponse listNodeInputOrOutputResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNodeInputOrOutputResponse.setRequestId(_ctx.stringValue("ListNodeInputOrOutputResponse.RequestId"));<NEW_LINE>listNodeInputOrOutputResponse.setSuccess(_ctx.boolean... | (_ctx.integerValue("ListNodeInputOrOutputResponse.HttpStatusCode")); |
1,243,342 | public <T extends Serializable> T executeOrThrowException(String idempotentId, String itemName, Callable<T> callable) throws Exception {<NEW_LINE>String jobIdPrefix = "Job " + jobId + ": ";<NEW_LINE>if (knownValues.containsKey(idempotentId)) {<NEW_LINE>monitor.debug(() -> jobIdPrefix + format("Using cached key %s from ... | T) knownValues.get(idempotentId); |
49,521 | private void createSessions(SessionSettings settings, boolean continueInitOnError) throws ConfigError {<NEW_LINE>Map<SessionID, Session> allSessions = new HashMap<>();<NEW_LINE>for (Iterator<SessionID> i = settings.sectionIterator(); i.hasNext(); ) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>String connectionType = null;... | SessionID sessionID = i.next(); |
377,725 | private Pair<List<UserAccountJoinVO>, Integer> searchForUsersInternal(ListUsersCmd cmd) throws PermissionDeniedException {<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>List<Long> permittedAccounts = new ArrayList<Long>();<NEW_LINE>boolean listAll = cmd.listAll();<NEW_LINE><MASK><NEW_LIN... | Long id = cmd.getId(); |
1,255,513 | public boolean onPrepareActionMode(ActionMode mode, Menu menu) {<NEW_LINE>selectionManagerMode.onPrepareActionMode(mode, menu);<NEW_LINE>// Hide/show options depending on the type of server we are connected to<NEW_LINE>if (daemonType != null) {<NEW_LINE>actionsMenu.getMenu().findItem(R.id.action_start).setVisible(Daemo... | (Daemon.supportsStoppingStarting(daemonType)); |
632,060 | protected void map(SlicedSelectedSample selection, SlicedResult result) throws Exception {<NEW_LINE>// transform data<NEW_LINE>double[] data = new double[this.model.nx];<NEW_LINE>if (isVector) {<NEW_LINE>Vector parsed = VectorUtil.getVector(selection.get(featureIdxs[0]));<NEW_LINE>if (parsed instanceof SparseVector) {<... | ] = parsed.get(i); |
666,918 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (controller == null || sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (controller.searchLibrary(tar... | CardsImpl(target.getTargets()); |
424,724 | final SendCustomVerificationEmailResult executeSendCustomVerificationEmail(SendCustomVerificationEmailRequest sendCustomVerificationEmailRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendCustomVerificationEmailRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | false), new SendCustomVerificationEmailResultJsonUnmarshaller()); |
1,022,257 | private Compatibility<springfox.documentation.service.Parameter, RequestParameter> simpleFields(String parentName, ExpansionContext context, ModelAttributeField each) {<NEW_LINE>LOG.debug("Attempting to expand field: {}", each);<NEW_LINE>String dataTypeName = ofNullable(springfox.documentation.schema.Types.typeNameFor(... | (), new RequestParameterBuilder()); |
1,334,420 | // create a trade<NEW_LINE>private static Trade createTrade2(ReferenceData refData) {<NEW_LINE>SecurityId secId = SecurityId.of("OG-Future", "Ibor-USD-LIBOR-3M-Jun15");<NEW_LINE>IborFutureTrade trade = IborFutureContractSpecs.USD_LIBOR_3M_IMM_CME.createTrade(LocalDate.of(2014, 9, 12), secId, SequenceDate.base(Period.of... | price(0.9997).build(); |
1,549,185 | public void execute(RenderHandler handler) throws IOException, Exception {<NEW_LINE>String path = handler.getString("path");<NEW_LINE>Set<String> placeSet = new HashSet<>();<NEW_LINE>if (CommonUtils.notEmpty(path)) {<NEW_LINE>String fileContent = CmsFileUtils.getFileContent(siteComponent.getWebTemplateFilePath(getSite(... | placeMatcher = PLACE_PATTERN.matcher(placeContent); |
5,125 | public static final Number neg(TypeConverter converter, Object value) {<NEW_LINE>if (value == null) {<NEW_LINE>return LONG_ZERO;<NEW_LINE>}<NEW_LINE>if (value instanceof BigDecimal) {<NEW_LINE>return ((BigDecimal) value).negate();<NEW_LINE>}<NEW_LINE>if (value instanceof BigInteger) {<NEW_LINE>return ((BigInteger) valu... | ) value).byteValue()); |
231,355 | public void annotate(Annotation dataset) {<NEW_LINE>// TODO for now, we only merge RelationMentions<NEW_LINE>logger.info("Extractor 0 annotating dataset.");<NEW_LINE>extractors[0].annotate(dataset);<NEW_LINE>// store all the RelationMentions per sentence<NEW_LINE>List<Set<RelationMention>> allRelationMentions = new Arr... | = new HashSet<>(relationMentions); |
122,476 | public INDArray gradient(List<String> order) {<NEW_LINE>List<INDArray> toFlatten = new ArrayList<>();<NEW_LINE>if (flatteningOrders == null) {<NEW_LINE>for (String s : order) {<NEW_LINE>if (!gradients.containsKey(s))<NEW_LINE>continue;<NEW_LINE>toFlatten.add<MASK><NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>for (String s : o... | (gradients.get(s)); |
606,546 | <T extends AbstractSaml2AuthenticationRequest> T resolve(HttpServletRequest request, BiConsumer<RelyingPartyRegistration, AuthnRequest> authnRequestConsumer) {<NEW_LINE>RequestMatcher.MatchResult result = this.requestMatcher.matcher(request);<NEW_LINE>if (!result.isMatch()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>S... | getAssertionConsumerServiceBinding().getUrn()); |
1,172,497 | private void initActions() {<NEW_LINE>mActions.add(new NewBranchAction(mRepo, mActivity));<NEW_LINE>mActions.add(new PullAction(mRepo, mActivity));<NEW_LINE>mActions.add(new PushAction(mRepo, mActivity));<NEW_LINE>mActions.add(<MASK><NEW_LINE>mActions.add(new CommitAction(mRepo, mActivity));<NEW_LINE>mActions.add(new R... | new AddAllAction(mRepo, mActivity)); |
1,119,891 | ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, Integer page, Integer size, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Wi wi = this.con... | Business business = new Business(emc); |
156,615 | private // PM88028<NEW_LINE>// PM88028<NEW_LINE>void // PM88028<NEW_LINE>handleZipFileWrapper(// PM88028<NEW_LINE>HttpServletRequest req, HttpServletRequest httpRequest, HttpServletResponse resp, StringBuffer path, WebAppDispatcherContext dispatchContext, ZipFileResource metaInfResourceFile) throws Exception {<NEW_LINE... | getZipFileWrapper(_webapp, this, metaInfResourceFile); |
172,630 | public final void clusterStateProcessed(String source, ClusterState oldState, ClusterState newState) {<NEW_LINE>final List<ActionListener<Void>> deleteListeners;<NEW_LINE>repositoryOperations.finishDeletion(deleteEntry.uuid());<NEW_LINE>deleteListeners = snapshotDeletionListeners.remove(deleteEntry.uuid());<NEW_LINE>ha... | + newFinalizations + " added even though deletes " + readyDeletions + " are ready"; |
359,831 | public Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String proximityPlacementGroupName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (r... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
26,643 | private boolean partialDirRefresh(@Nonnull NewVirtualFileSystem fs, @Nonnull PersistentFS persistence, @Nonnull HashingStrategy<String> strategy, @Nonnull VirtualDirectoryImpl dir) {<NEW_LINE>Pair<List<VirtualFile>, List<String>> snapshot = ReadAction.compute(() -> {<NEW_LINE>checkCancelled(dir);<NEW_LINE>return pair(d... | > cached = snapshot.getFirst(); |
1,487,767 | public VersionedRook renameBook(Uri fromUri, String name) throws IOException {<NEW_LINE>String fromFilePath = fromUri.getPath();<NEW_LINE>if (fromFilePath == null) {<NEW_LINE>throw new IllegalArgumentException("No path in " + fromUri);<NEW_LINE>}<NEW_LINE>File fromFile = new File(fromFilePath);<NEW_LINE>Uri newUri = Ur... | throw new IllegalArgumentException("No path in " + newUri); |
1,853,550 | private void processTemplateDependencies(final Template template) {<NEW_LINE>try {<NEW_LINE>final Template workingTemplate = template.isWorking() ? template : APILocator.getTemplateAPI().findWorkingTemplate(template.getIdentifier(), user, false);<NEW_LINE>final Template liveTemplate = template.isLive() ? template : API... | getIdentifier(), user, false); |
1,620,080 | private static void checkTerms(TermsAggregationBuilder source, List<RollupJobCaps> jobCaps, Set<RollupJobCaps> bestCaps) {<NEW_LINE>ArrayList<RollupJobCaps> localCaps = new ArrayList<>();<NEW_LINE>for (RollupJobCaps cap : jobCaps) {<NEW_LINE>RollupJobCaps.RollupFieldCaps fieldCaps = cap.getFieldCaps().<MASK><NEW_LINE>i... | get(source.field()); |
786,712 | private void tql2ImplicitQL(int l, int m, double dl1) {<NEW_LINE>double p = d[m], c = 1., c2 = 1., c3 = 1., s = 0., s2 = 0.;<NEW_LINE>final double el1 = e[l + 1];<NEW_LINE>for (int i = m - 1; i >= l; i--) {<NEW_LINE>c3 = c2;<NEW_LINE>c2 = c;<NEW_LINE>s2 = s;<NEW_LINE>final double di = d[i], ei = e[i];<NEW_LINE>double g... | e[l] = s * p; |
919,143 | public static <T> void sorting(TableViewer table, List<ColumnAndComparator<T>> columns) {<NEW_LINE>int[] sortState = { 0, SWT.UP };<NEW_LINE>for (int i = 0; i < columns.size(); i++) {<NEW_LINE>final int idx = i;<NEW_LINE>final ColumnAndComparator<T> column = columns.get(i);<NEW_LINE>column.getTableColumn().addListener(... | ? SWT.DOWN : SWT.UP; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.