idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
760,732 | public static List<ICEPoint> readPoints(NamedGroup group) {<NEW_LINE>EllipticCurve curve = CurveFactory.getCurve(group);<NEW_LINE>String namedCurveLow = group.name().toLowerCase();<NEW_LINE>String fileName = "points_" + namedCurveLow + ".txt";<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(ICEPoi... | LOGGER.error("Failed to close stream", ex); |
1,479,829 | protected <V> void visitSubject(RuleMethodDataCollector dataCollector, MethodRuleDefinition<?, ?> ruleDefinition, ModelType<V> typeParameter, RuleSourceValidationProblemCollector problems) {<NEW_LINE>if (ruleDefinition.getReferences().size() == 0) {<NEW_LINE>problems.add(ruleDefinition, "A method " + getDescription() +... | parameterTypes.put(typeParameter, elementType); |
708,174 | // --------------------------------------------------------- Public Methods<NEW_LINE>@Override<NEW_LINE>public void begin(String namespace, String name, Attributes attributes) throws Exception {<NEW_LINE>if (ignoreCreateExceptions) {<NEW_LINE>if (exceptionIgnoredStack == null) {<NEW_LINE>exceptionIgnoredStack <MASK><NE... | = new ArrayStack<Boolean>(); |
973,702 | public void validateResource() {<NEW_LINE>// START SNIPPET: basicValidation<NEW_LINE>// As always, you need a context<NEW_LINE>FhirContext ctx = FhirContext.forR4();<NEW_LINE>// Create and populate a new patient object<NEW_LINE>Patient p = new Patient();<NEW_LINE>p.addName().setFamily("Smith").addGiven("John").addGiven... | " * Location: " + next.getLocationString()); |
1,258,789 | public boolean intersect(int lb, int ub) {<NEW_LINE>if (CARDINALITY > 100)<NEW_LINE>return intersectDichot(lb, ub);<NEW_LINE>int <MASK><NEW_LINE>int s2 = ub - lb + 1;<NEW_LINE>if (s1 > 0 && s2 > 0) {<NEW_LINE>int i = 0;<NEW_LINE>int lbi, ubi;<NEW_LINE>lbi = this.ELEMENTS[0];<NEW_LINE>ubi = this.ELEMENTS[1];<NEW_LINE>wh... | s1 = this.SIZE >> 1; |
633,382 | final ResumeProcessesResult executeResumeProcesses(ResumeProcessesRequest resumeProcessesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resumeProcessesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "ResumeProcesses"); |
1,834,350 | public void visitType(TransactionType type) {<NEW_LINE>Map<String, TransactionName> transactionNames = type.getNames();<NEW_LINE>Set<String> names = transactionNames.keySet();<NEW_LINE>Set<String> invalidates = new HashSet<String>();<NEW_LINE>for (String temp : names) {<NEW_LINE>int length = temp.length();<NEW_LINE>if ... | type.findOrCreateName(CatConstants.OTHERS); |
763,391 | public static URI toHttpUrl(Optional<String> mavenRepo, URI uri) {<NEW_LINE>Preconditions.checkArgument("mvn".equals(uri.getScheme()), "URI must start with mvn: " + uri);<NEW_LINE>Preconditions.checkArgument(mavenRepo.isPresent(), "You must specify the maven repo in the \"download->maven_repo\" section of your " + ".bu... | throw new HumanReadableException("Unable to parse: " + uri); |
398,365 | public void beginClass(ClassDef def) {<NEW_LINE>DefaultJavaClass newClass = new DefaultJavaClass(source);<NEW_LINE>newClass.setLineNumber(def.getLineNumber());<NEW_LINE>newClass.setModelWriterFactory(modelWriterFactory);<NEW_LINE>// basic details<NEW_LINE>newClass.setName(def.getName());<NEW_LINE>newClass.setInterface(... | (def.getType())); |
1,604,164 | public Explanation.Code includes(final AclRule rule, final Map<String, String> resource, final String action) {<NEW_LINE>// evaluate type<NEW_LINE>if (rule.getResourceType() != null) {<NEW_LINE>String resType = resource.get("type");<NEW_LINE>if (null == resType || !rule.getResourceType().equals(resType)) {<NEW_LINE>ret... | matched &= ruleMatchesSubsetSection(resource, rule); |
619,797 | public int handle(ZLoop loop, PollItem item, Object arg) {<NEW_LINE>clonesrv5 srv = (clonesrv5) arg;<NEW_LINE>Socket socket = item.getSocket();<NEW_LINE>byte[] identity = socket.recv();<NEW_LINE>if (identity != null) {<NEW_LINE>// Request is in second frame of message<NEW_LINE>String request = socket.recvStr();<NEW_LIN... | .getBytes(ZMQ.CHARSET)); |
379,086 | private void showLine12(int line, int diffLength) {<NEW_LINE>assert SwingUtilities.isEventDispatchThread();<NEW_LINE>// System.out.println("showLine("+line+", "+diffLength+")");<NEW_LINE>this.linesComp1.setActiveLine(line);<NEW_LINE>this.linesComp2.setActiveLine(line);<NEW_LINE>linesComp1.repaint();<NEW_LINE>linesComp2... | = jViewport1.getExtentSize().height; |
718,760 | public void testTaskFailsWithLookupError(HttpServletRequest request, PrintWriter out) throws Exception {<NEW_LINE>String jndiName = request.getParameter("jndiName");<NEW_LINE>long taskId = Long.parseLong(request.getParameter("taskId"));<NEW_LINE>PersistentExecutor executor = (PersistentExecutor) new InitialContext().lo... | )) Thread.sleep(POLL_INTERVAL); |
580,423 | private static void pointAddPrecomp(PointPrecomp p, PointExt r) {<NEW_LINE>int[] b = F.create();<NEW_LINE>int[] c = F.create();<NEW_LINE>int[] d = F.create();<NEW_LINE>int[] e = F.create();<NEW_LINE>int[] f = F.create();<NEW_LINE>int[] g = F.create();<NEW_LINE>int[] h = F.create();<NEW_LINE>F.sqr(r.z, b);<NEW_LINE>F.mu... | x, r.y, e); |
1,636,009 | private void createVirtualPad(int surfaceWidth, int surfaceHeight) {<NEW_LINE>DisplayMetrics dm = new DisplayMetrics();<NEW_LINE>((Activity) getContext()).getWindowManager().getDefaultDisplay().getMetrics(dm);<NEW_LINE>float density = dm.density;<NEW_LINE>float screenWidth = (float) surfaceWidth / density;<NEW_LINE>flo... | , e.getMessage())); |
102,145 | protected void executeOperation() throws JavaModelException {<NEW_LINE>// open the working copy now to ensure contents are that of the current state of this element<NEW_LINE>CompilationUnit workingCopy = getWorkingCopy();<NEW_LINE>JavaModelManager.getJavaModelManager().getPerWorkingCopyInfo(workingCopy, true, /*create ... | = new JavaElementDelta(getJavaModel()); |
1,637,132 | public void encodeEnd(FacesContext context, UIComponent component) throws IOException {<NEW_LINE>DataScroller ds = (DataScroller) component;<NEW_LINE>Map<String, String> params = context.getExternalContext().getRequestParameterMap();<NEW_LINE>String clientId = ds.getClientId(context);<NEW_LINE>int chunkSize = ds.getChu... | .get(clientId + "_first")); |
401,471 | public static String formatDate8(long millis, TimeZone timeZone) {<NEW_LINE>Calendar cale = timeZone == null ? Calendar.getInstance() : Calendar.getInstance(timeZone);<NEW_LINE>cale.setTimeInMillis(millis);<NEW_LINE>int year = cale.get(Calendar.YEAR);<NEW_LINE>int month = cale.get(Calendar.MONTH) + 1;<NEW_LINE>int dayO... | ] chars = new char[14]; |
643,658 | protected Map<String, Object> handleJwtClaimsMap(Map claimsMap, SocialLoginConfig clientConfig, boolean isOidc) {<NEW_LINE>Map<String, Object> claimsToCopyMap = new HashMap<String, Object>();<NEW_LINE>if (claimsMap != null && !claimsMap.isEmpty()) {<NEW_LINE>String[<MASK><NEW_LINE>// claimsToCopyMap.put(ClientConstants... | ] claimsToCopy = clientConfig.getJwtClaims(); |
28,725 | private void notifyDatabaseSequenceStatus() {<NEW_LINE>if (manager.getNodeStatus() != ODistributedServerManager.NODE_STATUS.ONLINE)<NEW_LINE>// ONLY ONLINE NODE CAN TRY TO RECOVER FOR SINGLE DB STATUS<NEW_LINE>return;<NEW_LINE>if (!manager.getServerInstance().isActive())<NEW_LINE>return;<NEW_LINE>for (String dbName : m... | ODistributedRequest.EXECUTION_MODE.RESPONSE, null); |
288,267 | protected Runnable preprocessFile(final PsiFile file) throws IncorrectOperationException {<NEW_LINE>VirtualFile vfile = file.getVirtualFile();<NEW_LINE>if (vfile == null) {<NEW_LINE>return EmptyRunnable.getInstance();<NEW_LINE>}<NEW_LINE>final ProgressIndicator progressIndicator = ProgressManager.getInstance().getProgr... | logger.debug("process " + file); |
277,774 | private void generateDynamicVirtualTable(String name, ValueType type, String enumConstants) {<NEW_LINE>codeWriter.println(".parent = {").indent();<NEW_LINE>generateRuntimeClassInitializer(type, enumConstants, false, 0);<NEW_LINE>codeWriter.outdent().println("}");<NEW_LINE>String[] parentClasses;<NEW_LINE>if (type insta... | = new String[] { "java.lang.Object" }; |
1,282,330 | public void testJPA() throws Exception {<NEW_LINE>EntityManagerFactory emf = Persistence.createEntityManagerFactory("test_pu");<NEW_LINE><MASK><NEW_LINE>tx.begin();<NEW_LINE>em.joinTransaction();<NEW_LINE>assertTrue(em.isJoinedToTransaction());<NEW_LINE>Widget w = new Widget();<NEW_LINE>w.id = 4;<NEW_LINE>em.persist(w)... | EntityManager em = emf.createEntityManager(); |
1,496,029 | private Long chooseCompactedSchemaBase(Connection cx) throws SQLException {<NEW_LINE>if (!shouldCompact(cx)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String schemaSql = "select id, binlog_file, binlog_position, gtid_set, 0 as last_heartbeat_read " + " from `schemas` where `server_id` = " + this.serverID + " order by... | positionFromResultSet(positionsRS, serverID == 0); |
997,455 | final UpdateApiKeyResult executeUpdateApiKey(UpdateApiKeyRequest updateApiKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApiKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
478,195 | public static QueryCallResponse unmarshall(QueryCallResponse queryCallResponse, UnmarshallerContext context) {<NEW_LINE>queryCallResponse.setRequestId(context.stringValue("QueryCallResponse.RequestId"));<NEW_LINE>queryCallResponse.setSuccess(context.booleanValue("QueryCallResponse.Success"));<NEW_LINE>queryCallResponse... | ("QueryCallResponse.callStatusList[" + i + "].TaskState")); |
151,331 | public void generate(NodeLIRBuilderTool generator) {<NEW_LINE>final Value lengthValue = generator.operand(length);<NEW_LINE>LIRKind lirKind = LIRKind.value(elementKind);<NEW_LINE>LIRGeneratorTool tool = generator.getLIRGeneratorTool();<NEW_LINE>final AllocatableValue graalVar = tool.newVariable(lirKind);<NEW_LINE>SPIRV... | ((Variable) graalVar, lengthValue); |
382,464 | public com.amazonaws.services.appintegrations.model.ResourceQuotaExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.appintegrations.model.ResourceQuotaExceededException resourceQuotaExceededException = new com.amazonaws.services.<MASK><NEW_LINE>in... | appintegrations.model.ResourceQuotaExceededException(null); |
168,150 | public static Request update(UpdateRequest updateRequest) {<NEW_LINE>String endpoint = endpoint(updateRequest.index(), updateRequest.type(), updateRequest.id(), "_update");<NEW_LINE>Request request = new Request(HttpMethod.POST.name(), endpoint);<NEW_LINE>Params parameters = new Params(request);<NEW_LINE>parameters.wit... | withRetryOnConflict(updateRequest.retryOnConflict()); |
1,292,184 | public synchronized String submitTask(List<PinotTaskConfig> pinotTaskConfigs, String minionInstanceTag, long taskTimeoutMs, int numConcurrentTasksPerInstance) {<NEW_LINE>int numChildTasks = pinotTaskConfigs.size();<NEW_LINE>Preconditions.checkState(numChildTasks > 0);<NEW_LINE>Preconditions.checkState(numConcurrentTask... | pinotTaskConfig = pinotTaskConfigs.get(i); |
380,567 | public AutoScaleVmProfile createAutoScaleVmProfile(CreateAutoScaleVmProfileCmd cmd) {<NEW_LINE>Account owner = _accountDao.<MASK><NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>_accountMgr.checkAccess(caller, null, true, owner);<NEW_LINE>long zoneId = cmd.getZoneId();<NEW_LINE>long servic... | findById(cmd.getAccountId()); |
996,154 | void init() {<NEW_LINE>for (EntityType<?> entity : dbf.getEntityManager().getMetamodel().getEntities()) {<NEW_LINE>Class type = entity.getJavaType();<NEW_LINE>String name = type.getSimpleName();<NEW_LINE><MASK><NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace(String.format("discovered tag resource type[%s]... | resourceTypeClassMap.put(name, type); |
1,524,313 | public String toXml(boolean pretty, boolean declaration, String... attrs) {<NEW_LINE>String topNode = Inflector.pluralize(Inflector.underscore(metaModel.getModelClass().getSimpleName()));<NEW_LINE>hydrate();<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (declaration) {<NEW_LINE>sb.append("<?xml version=\... | pretty ? " " : "", attrs); |
1,569,379 | public void onTextObtained(String dialogId, String[] obtainedStrings, boolean dialogCancelled, boolean keep) {<NEW_LINE>if (dialogCancelled) {<NEW_LINE>handler.sendEmptyMessage(RemoteClientLibConstants.DISCONNECT_NO_MESSAGE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(dialogId) {<NEW_LINE>case GetTextFragment.DIALOG_I... | Log.i(TAG, "Text obtained from DIALOG_ID_GET_SSH_PASSPHRASE."); |
770,309 | private void renderAltTooltip(MatrixStack matrixStack, int mouseX, int mouseY) {<NEW_LINE>if (!listGui.isMouseInList(mouseX, mouseY))<NEW_LINE>return;<NEW_LINE>List<Alt> altList = altManager.getList();<NEW_LINE>int hoveredIndex = listGui.getItemAtPosition(mouseX, mouseY);<NEW_LINE>if (hoveredIndex < 0 || hoveredIndex >... | matrixStack, tooltip, mouseX, mouseY); |
785,898 | private void renderMotor(final GL2 gl, Motor motor) {<NEW_LINE>double l = motor.getLength();<NEW_LINE>double r = motor.getDiameter() / 2;<NEW_LINE>gl.glPushMatrix();<NEW_LINE>gl.glRotated(90, 0, 1.0, 0);<NEW_LINE>gl.glMatrixMode(GL.GL_TEXTURE);<NEW_LINE>gl.glPushMatrix();<NEW_LINE>gl.glTranslated(0, .125, 0);<NEW_LINE>... | (da * i), 0); |
1,015,067 | private X_FM_ProductCategory createFinancialProductCategory(Properties context, String value, String name, String transactionName) {<NEW_LINE>X_FM_ProductCategory financialProductCategory = new Query(context, X_FM_ProductCategory.Table_Name, X_FM_ProductCategory.COLUMNNAME_Value + " = ?", transactionName).setParameters... | financialProductCategory.setType(X_FM_ProductCategory.TYPE_Loan); |
1,020,761 | public ReplacedElement createReplacedElement(LayoutContext context, BlockBox box, UserAgentCallback uac, int cssWidth, int cssHeight) {<NEW_LINE>Element e = box.getElement();<NEW_LINE>if (e == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (nodeName.equals("math") && _mathMLImpl != null) {<NEW_LIN... | String nodeName = e.getNodeName(); |
892,464 | public void accept(WindowedValue<T> input) throws Exception {<NEW_LINE>// Increment the counter for each window the element occurs in.<NEW_LINE>this.unboundedElementCountCounter.inc(input.<MASK><NEW_LINE>// Wrap the consumer with extra logic to set the metric container with the appropriate<NEW_LINE>// PTransform contex... | getWindows().size()); |
808,076 | private void pinFile(final DriveFile file) {<NEW_LINE>// [START drive_android_pin_file]<NEW_LINE>Task<Metadata> pinFileTask = getDriveResourceClient().getMetadata(file).continueWithTask(task -> {<NEW_LINE>Metadata metadata = task.getResult();<NEW_LINE>if (!metadata.isPinnable()) {<NEW_LINE>showMessage(getString(R.strin... | e(TAG, "Unable to update metadata", e); |
1,290,519 | // Generates the report and returns an inputstream<NEW_LINE>public java.io.InputStream write(List<FaceItems> list) throws IOException, WriteException {<NEW_LINE>java.io.OutputStream os = new java.io.ByteArrayOutputStream();<NEW_LINE>WorkbookSettings wbSettings = new WorkbookSettings();<NEW_LINE>wbSettings.setLocale(new... | java.io.ByteArrayInputStream(myBytes); |
1,164,519 | public okhttp3.Call updateAPIDeploymentCall(String apiId, String deploymentId, APIRevisionDeploymentDTO apIRevisionDeploymentDTO, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = apIRevisionDeploymentDTO;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api... | localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); |
902,242 | public ListCuratedEnvironmentImagesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListCuratedEnvironmentImagesResult listCuratedEnvironmentImagesResult = new ListCuratedEnvironmentImagesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement... | )).unmarshall(context)); |
199,486 | public boolean filterCheck(Tag tag, String filter, boolean regex) {<NEW_LINE>String name;<NEW_LINE>if (filter.startsWith("g:")) {<NEW_LINE>filter = filter.substring(2);<NEW_LINE>name = tag.getGroup();<NEW_LINE>if (name == null) {<NEW_LINE>name = "";<NEW_LINE>}<NEW_LINE>} else if (filter.startsWith("p:")) {<NEW_LINE>fil... | s = s.substring(1); |
65,711 | private boolean loadTagsField(final Contentlet contentlet, final Map<String, Object> contentletMap, final Structure structure, final String keyName) throws DotDataException {<NEW_LINE>final List<Tag> tagList = tagAPI.getTagsByInode(contentlet.getInode());<NEW_LINE>if (tagList == null || tagList.size() == 0) {<NEW_LINE>... | contentletMap.put(keyName, tagsNames); |
1,816,160 | // @SuppressWarnings("null")<NEW_LINE>// public static void main(String arg[]) {<NEW_LINE>// Rocket rocket = TestRocket.makeRocket();<NEW_LINE>// FinSet finset = null;<NEW_LINE>//<NEW_LINE>// Iterator<RocketComponent> iter = rocket.deepIterator();<NEW_LINE>// while (iter.hasNext()) {<NEW_LINE>// RocketComponent c = ite... | double mach = conditions.getMach(); |
1,568,529 | private void computeResultsForLiteral(Literal literal, List<String> columnNames, List<DataSchema.ColumnDataType> columnTypes, List<Object> row) {<NEW_LINE>Object fieldValue = literal.getFieldValue();<NEW_LINE>columnNames.add(fieldValue.toString());<NEW_LINE>switch(literal.getSetField()) {<NEW_LINE>case BOOL_VALUE:<NEW_... | add(literal.getLongValue()); |
402,766 | Node processFunctionCall(CallExpressionTree callNode) {<NEW_LINE>Node node = newNode(Token.CALL, transform(callNode.operand));<NEW_LINE>node.<MASK><NEW_LINE>ArgumentListTree argumentsTree = callNode.arguments;<NEW_LINE>// For each arg, represents a location (end SourcePosition) such that all<NEW_LINE>// trailing commen... | setTrailingComma(callNode.arguments.hasTrailingComma); |
1,390,061 | public static void registerActions(ActionMap actionMap, Controller controller, TopComponent component) {<NEW_LINE>actionMap.put(DELETE_KEY, new DeleteAction(controller));<NEW_LINE>actionMap.put(DefaultEditorKit.selectAllAction, new SelectAllAction(controller));<NEW_LINE>actionMap.put(DefaultEditorKit.copyAction, new Co... | .stringToKey("D-Z"), UNDO_KEY); |
1,153,958 | public static DescribeServerCertificatesResponse unmarshall(DescribeServerCertificatesResponse describeServerCertificatesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeServerCertificatesResponse.setRequestId(_ctx.stringValue("DescribeServerCertificatesResponse.RequestId"));<NEW_LINE>List<ServerCertificate> serv... | + "].Tags[" + j + "].TagKey")); |
37,111 | public void checkForDeprecations(String id, NamedXContentRegistry namedXContentRegistry, Consumer<DeprecationIssue> onDeprecation) {<NEW_LINE>LoggingDeprecationAccumulationHandler deprecationLogger = new LoggingDeprecationAccumulationHandler();<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (IOException e) {<NEW_LINE>... | queryFromXContent(source, namedXContentRegistry, deprecationLogger); |
1,197,863 | protected void createNewHierarchy(Group entity, Group parent) {<NEW_LINE>if (parent == null) {<NEW_LINE>entity.setHierarchyList(new ArrayList<>());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!PersistenceHelper.isManaged(parent) && !PersistenceHelper.isDetached(parent))<NEW_LINE>throw new IllegalStateException("Unable to ... | metadata.create(GroupHierarchy.class); |
931,361 | static void drawVideoIcon(ComponentDrawContext context, int x, int y) {<NEW_LINE>final var g = context.getGraphics().create();<NEW_LINE>g.translate(x, y);<NEW_LINE>g.setColor(Color.WHITE);<NEW_LINE>g.fillRoundRect(scale(2), scale(2), scale(16 - 1), scale(16 - 1), scale(3), scale(3));<NEW_LINE>g.setColor(Color.BLACK);<N... | g.setColor(Color.BLUE); |
886,065 | public Optional<CheckpointInfo> findLatestCheckpoint(Log log) throws IOException {<NEW_LINE>var versionVisitor = new RangeLogVersionVisitor();<NEW_LINE>fileHelper.accept(versionVisitor);<NEW_LINE>long highestVersion = versionVisitor.getHighestVersion();<NEW_LINE>if (highestVersion < 0) {<NEW_LINE>return Optional.empty(... | channel = channelAllocator.openLogChannel(currentVersion); |
737,386 | private void registerAccountInternal(@NonNull RegistrationData registrationData, @NonNull VerifyAccountResponse response, @Nullable String pin, @Nullable KbsPinData kbsData) throws IOException {<NEW_LINE>ACI aci = ACI.parseOrThrow(response.getUuid());<NEW_LINE>PNI pni = PNI.parseOrThrow(response.getPni());<NEW_LINE>boo... | RecipientDatabase recipientDatabase = SignalDatabase.recipients(); |
803,528 | private static RexNode removeCastIfPossible(RexNode node) {<NEW_LINE>if (node.getKind() == SqlKind.CAST) {<NEW_LINE>RexCall node0 = (RexCall) node;<NEW_LINE>RexNode from = node0.<MASK><NEW_LINE>if (from instanceof RexInputRef) {<NEW_LINE>RelDataType fromType = from.getType();<NEW_LINE>RelDataType toType = node0.getType... | getOperands().get(0); |
81,966 | final AuthorizeIpRulesResult executeAuthorizeIpRules(AuthorizeIpRulesRequest authorizeIpRulesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(authorizeIpRulesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<AuthorizeIpRulesRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
277,549 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>if (savedInstanceState == null) {<NEW_LINE>commitFileModel = getIntent().getExtras().getParcelable(BundleConstant.ITEM);<NEW_LINE>}<NEW_LINE>if (commitFileModel == null || commitFileModel.getPatch() == null) {<NEW... | commitFileModel.getChanges()))); |
126,602 | public Matrix3 inv() {<NEW_LINE>float det = det();<NEW_LINE>if (det == 0)<NEW_LINE>throw new GdxRuntimeException("Can't invert a singular matrix");<NEW_LINE>float inv_det = 1.0f / det;<NEW_LINE>float[] tmp = this.tmp, val = this.val;<NEW_LINE>tmp[M00] = val[M11] * val[M22] - val[M21] * val[M12];<NEW_LINE>tmp[M10] = val... | ] = inv_det * tmp[M12]; |
536,706 | public String decodeValue(int dataType, int data) {<NEW_LINE>switch(dataType) {<NEW_LINE>case TYPE_NULL:<NEW_LINE>return null;<NEW_LINE>case TYPE_STRING:<NEW_LINE>return strings[data];<NEW_LINE>case TYPE_INT_DEC:<NEW_LINE>return Integer.toString(data);<NEW_LINE>case TYPE_INT_HEX:<NEW_LINE>return "0x" + Integer.toHexStr... | (Float.intBitsToFloat(data)); |
411,098 | private ArrayTypesInternal mergeTypeStates(ArrayTypesInternal a1, ArrayTypesInternal a2) {<NEW_LINE>assert (a1 != null && a2 != null);<NEW_LINE>ArrayTypesInternal toRet = new ArrayTypesInternal();<NEW_LINE>toRet.sizeState.or(a1.sizeState);<NEW_LINE>toRet.sizeState.or(a2.sizeState);<NEW_LINE>int maxSize = Math.max(a1.ty... | .mustAssign.get(i)); |
1,708,400 | private static String detectArchitecture() {<NEW_LINE>String osArch = System.getProperty("os.arch", "").toLowerCase();<NEW_LINE>String abiType = System.getProperty(<MASK><NEW_LINE>String libPath = System.getProperty("sun.boot.library.path", "").toLowerCase();<NEW_LINE>if (osArch.equals("i386") || osArch.equals("i486") ... | "sun.arch.abi", "").toLowerCase(); |
1,115,934 | private Collection<String> identifyPolicies(ShapeNodeEditPart editPart) {<NEW_LINE>List<String> policies = new ArrayList<String>();<NEW_LINE>EObject domainElement = ((View) editPart.getModel()).getElement();<NEW_LINE>EClass domainElementClass = domainElement.eClass();<NEW_LINE>EPackage qosPackage = EPackage.Registry.IN... | EClass) qosPackage.getEClassifier("QosPolicy"); |
1,182,062 | private void handleTaskletAttributes(Element taskletElement, MutablePropertyValues propertyValues) {<NEW_LINE>String transactionManagerRef = taskletElement.getAttribute(TRANSACTION_MANAGER_ATTR);<NEW_LINE>if (StringUtils.hasText(transactionManagerRef)) {<NEW_LINE>propertyValues.addPropertyValue("transactionManager", ne... | propertyValues.addPropertyValue("taskExecutor", taskExecutorRef); |
1,278,364 | public static UpdateDcdnSLSRealtimeLogDeliveryResponse unmarshall(UpdateDcdnSLSRealtimeLogDeliveryResponse updateDcdnSLSRealtimeLogDeliveryResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateDcdnSLSRealtimeLogDeliveryResponse.setRequestId(_ctx.stringValue("UpdateDcdnSLSRealtimeLogDeliveryResponse.RequestId"));<NEW_LIN... | ("UpdateDcdnSLSRealtimeLogDeliveryResponse.Content[" + i + "].DomainName")); |
865,796 | public NakadiCursor convert(final String eventTypeStr, final Cursor cursor) throws InternalNakadiException, NoSuchEventTypeException, InvalidCursorException {<NEW_LINE>final String[] parts = cursor.getOffset().split("-", 3);<NEW_LINE>if (parts.length != 3) {<NEW_LINE>throw new InvalidCursorException(CursorError.INVALID... | InvalidCursorException(CursorError.INVALID_OFFSET, eventTypeStr); |
1,234,316 | private Set<Path> findFilesByExtension(List<Path> directories, List<String> extensions) throws IOException {<NEW_LINE>Objects.requireNonNull(extensions, "Extensions must not be null!");<NEW_LINE>BiPredicate<Path, BasicFileAttributes> isFileWithCorrectExtension = (path, attributes) -> !Files.isDirectory(path) && extensi... | throw new IOException("Problem in finding files", e); |
1,544,345 | public void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) {<NEW_LINE>super.onActivityResult(requestCode, resultCode, data);<NEW_LINE>if (requestCode == REQUEST_CODE_GET_FILES) {<NEW_LINE>if (resultCode != Activity.RESULT_OK || data == null)<NEW_LINE>return;<NEW_LINE>// TODO support multiple .... | (i).getUri()); |
448,341 | public boolean isValid() {<NEW_LINE>if (noProjectFolders()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean ok = (gui != null && gui.getTargetName() != null && (bottomPanel == null || bottomPanel.isValid()));<NEW_LINE>if (!ok) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// check if the file name can be created<NE... | .getTargetGroup().getRootFolder(); |
1,518,580 | boolean printHeaders(File targ, PrintStream ps) throws IOException {<NEW_LINE>boolean ret = false;<NEW_LINE>int rCode = 0;<NEW_LINE>if (!targ.exists()) {<NEW_LINE>rCode = HTTP_NOT_FOUND;<NEW_LINE>ps.print("HTTP/1.0 " + HTTP_NOT_FOUND + " Not Found");<NEW_LINE>ps.write(EOL);<NEW_LINE>ret = false;<NEW_LINE>} else {<NEW_L... | String name = targ.getName(); |
412,462 | protected void runVerifications(DefaultConfiguration moduleConfig, File fileToProcess, String[] expectedViolations, List<String> expectedXpathQueries) throws Exception {<NEW_LINE>final ViolationPosition position = extractLineAndColumnNumber(expectedViolations);<NEW_LINE>final List<String> generatedXpathQueries = genera... | treeWalkerConfigWithXpath = createModuleConfig(TreeWalker.class); |
1,302,618 | public OpenZFSClientConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>OpenZFSClientConfiguration openZFSClientConfiguration = new OpenZFSClientConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme... | JsonToken token = context.getCurrentToken(); |
463,317 | private static void expandVert(LocalSession session, Actor actor, World world) throws IncompleteRegionException {<NEW_LINE>Region region = session.getSelection(world);<NEW_LINE>int height = world.getMaxY<MASK><NEW_LINE>try {<NEW_LINE>long oldSize = region.getVolume();<NEW_LINE>region.expand(BlockVector3.at(0, height, 0... | () - world.getMinY(); |
442,414 | public void mergeType(TransactionType old, TransactionType other) {<NEW_LINE>long totalCountSum = old.getTotalCount() + other.getTotalCount();<NEW_LINE>if (totalCountSum > 0) {<NEW_LINE>double line50Values = old.getLine50Value() * old.getTotalCount() + other.getLine50Value() * other.getTotalCount();<NEW_LINE>double lin... | old.setLine90Value(line90Values / totalCountSum); |
188,603 | public void testPersistentMessageTopicClassicApi(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>TopicConnection con = jmsTCFBindings.createTopicConnection();<NEW_LINE>con.start();<NEW_LINE>TopicSession sessionSender = con.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);<NEW_LI... | sessionSender.createDurableSubscriber(jmsTopic, "durPersMsgCA1"); |
424,712 | protected static void addViewInternalParameters(@NonNull final CreateProcessInstanceRequest request, @NonNull final ProcessInfoBuilder processInfoBuilder) {<NEW_LINE>if (request.getViewRowIdsSelection() != null) {<NEW_LINE>final ViewRowIdsSelection viewRowIdsSelection = request.getViewRowIdsSelection();<NEW_LINE>// imp... | ViewRowIdsSelection parentViewRowIdsSelection = request.getParentViewRowIdsSelection(); |
373,551 | public // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void initWithData(Offer offer) {<NEW_LINE>model.initWithData(offer);<NEW_LINE>if (model.dataModel.isSellOffer()) {<NEW_LINE>actionButton.setId("buy-button-big");<NEW_LINE>actionButton.updateText(Res.get("takeOff... | (Res.get("takeOffer.amountPriceBox.sell.amountDescription")); |
284,830 | public void serialize(XmlBodyDTO xmlBodyDTO, JsonGenerator jgen, SerializerProvider provider) throws IOException {<NEW_LINE>jgen.writeStartObject();<NEW_LINE>if (xmlBodyDTO.getNot() != null && xmlBodyDTO.getNot()) {<NEW_LINE>jgen.writeBooleanField("not", true);<NEW_LINE>}<NEW_LINE>if (xmlBodyDTO.getOptional() != null &... | "xml", xmlBodyDTO.getXml()); |
520,748 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String code, String grant_type, String contentType) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>if (StringUtils.isEmpty(code)... | (gson.toJson(woToken)); |
1,084,241 | public FeeLvlViewHolder onCreateViewHolder(@Nonnull ViewGroup parent, int viewType) {<NEW_LINE>if (viewType == VIEW_TYPE_ITEM) {<NEW_LINE>// create a new view<NEW_LINE>View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.recyclerview_item_fee_lvl, parent, false);<NEW_LINE>view.findViewById(R.id.categor... | return new FeeLvlViewHolder(view, this); |
1,174,919 | protected void initScene() {<NEW_LINE>getCurrentCamera().setPosition(0, 0, 7);<NEW_LINE>try {<NEW_LINE>Texture texture1 = new Texture("texture1", new Etc1Texture("etc1Tex1", R<MASK><NEW_LINE>Material material1 = new Material();<NEW_LINE>material1.addTexture(texture1);<NEW_LINE>material1.setColorInfluence(0);<NEW_LINE>m... | .raw.rajawali_tex_mip_0, null)); |
1,557,454 | public static String generateUDTFClause(final String inTableName, final String functionName, final String[] outputCols, final String[] selectedCols, final String[] reservedCols) {<NEW_LINE>final String selectedColsStr = TableUtil.columnsToSqlClause(selectedCols);<NEW_LINE>// always shade outputCols to avoid potential c... | (Arrays.asList(outputCols)); |
1,486,075 | public void refuseFriendApplication(MethodCall methodCall, final MethodChannel.Result result) {<NEW_LINE>final String userID = CommonUtil.getParam(methodCall, result, "userID");<NEW_LINE>final int type = CommonUtil.getParam(methodCall, result, "type");<NEW_LINE>V2TIMManager.getFriendshipManager().getFriendApplicationLi... | > list = v2TIMFriendApplicationResult.getFriendApplicationList(); |
1,236,959 | private void sortArcs(double[][] costMatrix) {<NEW_LINE>int size = 0;<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>p[i] = i;<NEW_LINE>rank[i] = 0;<NEW_LINE>ccTp[i] = i;<NEW_LINE>Tree.<MASK><NEW_LINE>ccTree.removeNode(i);<NEW_LINE>ccTree.addNode(i);<NEW_LINE>size += g.getNeighborsOf(i).size();<NEW_LINE>}<NEW_LINE>// ... | getNeighborsOf(i).clear(); |
317,376 | public Queue<PipelineConfigQueueEntry> buildQueue() {<NEW_LINE>Queue<PipelineConfigQueueEntry> configQueue = new LinkedList<>();<NEW_LINE>Queue<PipelineConfigDependencyEntry> tmp = new LinkedList<>();<NEW_LINE>tmp.add(new PipelineConfigDependencyEntry(this, <MASK><NEW_LINE>while (true) {<NEW_LINE>PipelineConfigDependen... | new ArrayList<>())); |
395,864 | protected void doActivate() {<NEW_LINE>if (!isActivated) {<NEW_LINE>isActivated = true;<NEW_LINE>currencyComboBox.setPrefWidth(250);<NEW_LINE>paymentAccountsComboBox.setPrefWidth(250);<NEW_LINE>addBindings();<NEW_LINE>addListeners();<NEW_LINE>addSubscriptions();<NEW_LINE>// temporarily disabled due to high CPU usage (p... | getDataModel().getPaymentAccounts()); |
788,729 | private void addIndicatorDelegate(ProgressIndicator indicator) {<NEW_LINE>if (!(indicator instanceof ProgressIndicatorEx)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>((ProgressIndicatorEx) indicator).addStateDelegate(new DummyProgressIndicator() {<NEW_LINE><NEW_LINE>private final Map<String, Set<String>> mySeenMessages = n... | start = msgText.indexOf("["); |
268,070 | public static ListUserGroupsResponse unmarshall(ListUserGroupsResponse listUserGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listUserGroupsResponse.setRequestId(_ctx.stringValue("ListUserGroupsResponse.RequestId"));<NEW_LINE>listUserGroupsResponse.setMessage<MASK><NEW_LINE>listUserGroupsResponse.setCode(_ctx.str... | (_ctx.stringValue("ListUserGroupsResponse.Message")); |
1,649,942 | public PageResult<DictTypeListVO> findByPageVague(DictTypeListRequest dictTypeListRequest) {<NEW_LINE>Page pageRequest = new Page(dictTypeListRequest.getPageNo(), dictTypeListRequest.getPageSize());<NEW_LINE>QueryWrapper<DictType> queryWrapper = new QueryWrapper<>();<NEW_LINE>if (StringUtils.isNotEmpty(dictTypeListRequ... | setCurrentPage(page.getCurrent()); |
1,113,121 | static double[][] convertToProbabilitiesBySoftMax(double[][] scores) {<NEW_LINE>double[][] probabilities = new <MASK><NEW_LINE>double[] sum = new double[scores.length];<NEW_LINE>for (int i = 0; i < scores.length; i++) {<NEW_LINE>probabilities[i] = new double[scores[i].length];<NEW_LINE>double maxScore = MovingFunctions... | double[scores.length][]; |
813,305 | public void testJMS2MessageOrderingMultipleProducers() throws JMSException, InterruptedException {<NEW_LINE>clearQueue(queueOne_);<NEW_LINE>messageOrderListener_.reset();<NEW_LINE>messageOrderListener_.setExpectedMessageCount(5);<NEW_LINE>int i = 0;<NEW_LINE>int outOfOrderCount = 0;<NEW_LINE>try (JMSContext context = q... | consumer = context.createConsumer(queueOne_); |
42,649 | public V forcePut(K key, V value) {<NEW_LINE>boolean containsValue = this.inverse.delegate.containsKey(value);<NEW_LINE>if (containsValue) {<NEW_LINE>if (AbstractMutableBiMap.nullSafeEquals(key, this.inverse.delegate.get(value))) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>boolean containsKey = this.delegat... | delegate.put(key, oldValueToPreserve); |
1,010,462 | private ColumnValueDescription deserializeValue(JsonNode node) {<NEW_LINE>Format format = Format.valueOf(node.get("format").asText());<NEW_LINE>switch(format) {<NEW_LINE>case PERSISTER:<NEW_LINE>String className = node.get("type").asText();<NEW_LINE>try {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Class<? extends... | ).asSubclass(Persister.class); |
993,843 | private void startScanOrphanJobs() {<NEW_LINE>if (scanOrphanJobsTask != null) {<NEW_LINE>scanOrphanJobsTask.cancel(true);<NEW_LINE>}<NEW_LINE>scanOrphanJobsTask = thdf.submitPeriodicTask(new PeriodicTask() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public TimeUnit getTimeUnit() {<NEW_LINE>return TimeUnit.SECONDS;<NEW_LINE... | value(Integer.class))); |
1,364,838 | protected MultiGetResult<K, V> do_GET_ALL(Set<? extends K> keys) {<NEW_LINE>RedisConnection con = null;<NEW_LINE>try {<NEW_LINE>con = connectionFactory.getConnection();<NEW_LINE>ArrayList<K> keyList = new ArrayList<>(keys);<NEW_LINE>byte[][] newKeys = keyList.stream().map((k) -> buildKey(k)).toArray(<MASK><NEW_LINE>Map... | byte[][]::new); |
1,364,337 | public void clearHaSwitcher(String dbName) {<NEW_LINE>String currInstId = InstIdUtil.getInstId();<NEW_LINE>try (Connection metaDbConn = MetaDbDataSource.getInstance().getConnection()) {<NEW_LINE>DbGroupInfoAccessor dbGroupInfoAccessor = new DbGroupInfoAccessor();<NEW_LINE>dbGroupInfoAccessor.setConnection(metaDbConn);<... | GroupInfoUtil.buildHaGroupKey(storageInstId, groupName); |
864,238 | private void appendTypeDeprecation(Crd crd, Class<?> cls) throws IOException {<NEW_LINE>DeprecatedType deprecatedType = cls.getAnnotation(DeprecatedType.class);<NEW_LINE>Deprecated langDeprecated = cls.getAnnotation(Deprecated.class);<NEW_LINE>if (deprecatedType != null || langDeprecated != null) {<NEW_LINE>if (depreca... | typeLink(crd, out, replacementClss); |
1,031,588 | public void run(RegressionEnvironment env) {<NEW_LINE>env.assertThat(() -> assertEquals(0, SupportContextMgmtHelper.getContextCount(env)));<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>sendTimeEvent(env, "2002-05-1T09:15:00.000");<NEW_LINE>env.compileDeploy("@Name('context') @public create context Nine... | SupportContextMgmtHelper.getContextCount(env))); |
1,491,702 | public static PsiLanguageInjectionHost findInjectionHost(@Nullable PsiElement psi) {<NEW_LINE>if (psi == null)<NEW_LINE>return null;<NEW_LINE>// * formatting<NEW_LINE>PsiFile containingFile = psi.getContainingFile().getOriginalFile();<NEW_LINE>// * quick-edit-handler<NEW_LINE>PsiElement fileContext = containingFile.get... | getShreds(containingFile.getViewProvider()); |
1,114,303 | protected void innerProcess(CrawlURI uri) throws InterruptedException {<NEW_LINE>for (String j : limits.keySet()) {<NEW_LINE>for (String k : limits.get(j).keySet()) {<NEW_LINE>Long limit = limits.get(j).get(k);<NEW_LINE>AtomicLong value = null;<NEW_LINE>if (getWarcWriters() != null && getWarcWriters().size() > 0) {<NEW... | controller.requestCrawlStop(CrawlStatus.FINISHED_WRITE_LIMIT); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.