idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
528,414 | void updateStatusBar() {<NEW_LINE>int countFilteredBugs = BugSet.countFilteredBugs();<NEW_LINE>String msg = "";<NEW_LINE>if (countFilteredBugs == 1) {<NEW_LINE>msg = " 1 " + L10N.getLocalString("statusbar.bug_hidden", "bug hidden (see view menu)");<NEW_LINE>} else if (countFilteredBugs > 1) {<NEW_LINE>msg = " " + cou... | msg = join(msg, errorMsg); |
1,825,950 | public CodeGenNode unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CodeGenNode codeGenNode = new CodeGenNode();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE... | class).unmarshall(context)); |
1,221,510 | // Configure stage4<NEW_LINE>protected JobConf configStage4() throws Exception {<NEW_LINE>final JobConf conf = new JobConf(getConf(), ConCmpt.class);<NEW_LINE>conf.set("number_nodes", "" + number_nodes);<NEW_LINE>conf.set("cur_iter", "" + cur_iter);<NEW_LINE>conf.set("make_symmetric", "" + make_symmetric);<NEW_LINE>con... | FileOutputFormat.setOutputPath(conf, summaryout_path); |
1,589,386 | public void traverse(ASTVisitor visitor, ClassScope scope) {<NEW_LINE>if (visitor.visit(this, scope)) {<NEW_LINE>if (this.annotations != null) {<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < annotationsLevels; i++) {<NEW_LINE>int annotationsLength = this.annotations[i] == null ? 0 : this.annotations[i].length;<NEW_LINE>... | int annotationsLevels = this.annotations.length; |
65,586 | //<NEW_LINE>private static void SetMatrix(double d, double d1, double[][] ad, int i) {<NEW_LINE>double[][] ad1 = new double[3][3];<NEW_LINE>double[][] ad2 = new double[3][3];<NEW_LINE>ad1[0][0] = 1.0D;<NEW_LINE>ad1[0][1] = 0.0D;<NEW_LINE>ad1[0][2] = 0.0D;<NEW_LINE>ad1[1][0] = 0.0D;<NEW_LINE>ad1[1][1] = Math.cos(d);<NEW... | -ad2[0][2]; |
724,046 | public final CharsetNameBaseContext charsetNameBase() throws RecognitionException {<NEW_LINE>CharsetNameBaseContext _localctx = new CharsetNameBaseContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 624, RULE_charsetNameBase);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LI... | _errHandler.recover(this, re); |
1,219,141 | public static Key create(Snippet snip) {<NEW_LINE>switch(snip.kind()) {<NEW_LINE>case IMPORT:<NEW_LINE>ImportSnippet imp = ((ImportSnippet) snip);<NEW_LINE>return new Key("I_" + imp.fullname() + (imp.isStatic() ? "*" : ""));<NEW_LINE>case TYPE_DECL:<NEW_LINE>TypeDeclSnippet tdecl = ((TypeDeclSnippet) snip);<NEW_LINE>re... | ":" + method.signature()); |
210,200 | public Optional<ZonedDateTime> nextExecution(final ZonedDateTime date) {<NEW_LINE>Preconditions.checkNotNull(date);<NEW_LINE>try {<NEW_LINE>ZonedDateTime nextMatch = nextClosestMatch(date);<NEW_LINE>if (nextMatch.equals(date)) {<NEW_LINE>nextMatch = nextClosestMatch(date.plusSeconds(1));<NEW_LINE>if (nextMatch.getOffse... | nextMatch.plusSeconds(1))); |
266,135 | protected void engineInit(Key key, AlgorithmParameterSpec params) throws InvalidKeyException, InvalidAlgorithmParameterException {<NEW_LINE>if (params != null) {<NEW_LINE>throw new InvalidAlgorithmParameterException("HMAC does not use parameters");<NEW_LINE>}<NEW_LINE>if (!(key instanceof SecretKey)) {<NEW_LINE>throw n... | ] secret = key.getEncoded(); |
1,199,467 | 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>getUserAuthorizations_result result = new getUserAuthorizations_result();<NEW_LINE>if (e instanceof ThriftSecurityException) {<NEW_LINE><MASK><NEW_LI... | result.sec = (ThriftSecurityException) e; |
24,423 | public static HashMap<String, Object> convertV2TIMConversationToMap(V2TIMConversation info) {<NEW_LINE>HashMap<String, Object> rinfo = new HashMap<String, Object>();<NEW_LINE>rinfo.put("conversationID", info.getConversationID());<NEW_LINE>rinfo.put("draftText", info.getDraftText());<NEW_LINE>rinfo.put(<MASK><NEW_LINE>r... | "draftTimestamp", info.getDraftTimestamp()); |
863,764 | public org.python.Object __ge__(org.python.Object other) {<NEW_LINE>if (other instanceof org.python.types.Int) {<NEW_LINE>long other_val = ((org.python.types.Int) other).value;<NEW_LINE>return org.python.types.Bool.getBool(this.value >= ((double) other_val));<NEW_LINE>} else if (other instanceof org.python.types.Float)... | getBool(this.value >= 1.0); |
271,624 | public boolean handleChild(DDParser parser, String localName) throws DDParser.ParseException {<NEW_LINE>if (xmi && "bindingResourceRef".equals(localName)) {<NEW_LINE>this.bindingResourceRef = new com.ibm.ws.javaee.ddmodel.CrossComponentReferenceType("bindingResourceRef", parser.getCrossComponentType());<NEW_LINE>parser... | .ddmodel.commonbnd.AuthenticationAliasType(); |
1,493,578 | public static SocketAddress resolveAddress(Request request, RequestContext requestContext) throws UnknownHostException, UnknownSchemeException {<NEW_LINE>final URI uri = request.getURI();<NEW_LINE>final String scheme = uri.getScheme();<NEW_LINE>if (!HTTP_SCHEME.equalsIgnoreCase(scheme) && !HTTPS_SCHEME.equalsIgnoreCase... | putLocalAttr(R2Constants.REMOTE_SERVER_PORT, port); |
639,224 | private static void println(@Level int level, @Nullable String tag, @Nullable String msg, @Nullable Throwable tr) {<NEW_LINE>if (INSTANCE.writer == null)<NEW_LINE>return;<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(DATE_FORMAT.format(new Date(System.currentTimeMillis()))).append(" ");<NEW_LINE>s... | tag == null ? "App Manager" : tag); |
1,096,379 | /*<NEW_LINE>* same hash function with c++ std::tr1::hash<NEW_LINE>* static std::size_t hash(const char* first, std::size_t length)<NEW_LINE>{ std::size_t result = static_cast<std::size_t>(14695981039346656037ULL);<NEW_LINE>for (; length > 0; --length)<NEW_LINE>{<NEW_LINE>size_t value = (std::size_t)*first++;<NEW_LINE>r... | result = result.multiply(m); |
94,345 | public Set<DataObject> instantiate(TemplateWizard wizard) throws IOException {<NEW_LINE>FileObject targetFolder = Templates.getTargetFolder(wizard);<NEW_LINE>String targetName = Templates.getTargetName(wizard);<NEW_LINE>DataFolder <MASK><NEW_LINE>FileObject template = Templates.getTemplate(wizard);<NEW_LINE>DataObject ... | dataFolder = DataFolder.findFolder(targetFolder); |
1,014,561 | private boolean explore(Maze maze, int row, int col, List<Coordinate> path) {<NEW_LINE>if (!maze.isValidLocation(row, col) || maze.isWall(row, col) || maze.isExplored(row, col)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>path.add(<MASK><NEW_LINE>maze.setVisited(row, col, true);<NEW_LINE>if (maze.isExit(row, col)) {<N... | new Coordinate(row, col)); |
1,217,958 | private boolean subTypeOfType(ReferenceBinding subType, ReferenceBinding typeBinding) {<NEW_LINE>if (typeBinding == null || subType == null)<NEW_LINE>return false;<NEW_LINE>if (TypeBinding.equalsEquals(subType, typeBinding))<NEW_LINE>return true;<NEW_LINE>ReferenceBinding superclass = subType.superclass();<NEW_LINE>if ... | (ReferenceBinding) superclass.erasure(); |
1,534,764 | public Product createProduct(@NonNull final CreateProductRequest request) {<NEW_LINE>final I_M_Product product = newInstance(I_M_Product.class);<NEW_LINE>if (request.getProductValue() != null) {<NEW_LINE>product.setValue(request.getProductValue());<NEW_LINE>}<NEW_LINE>product.setName(request.getProductName());<NEW_LINE... | getOrgId().getRepoId()); |
117,569 | public static void onReceiveReplyToNotification(TermuxApiReceiver termuxApiReceiver, Context context, Intent intent) {<NEW_LINE><MASK><NEW_LINE>CharSequence reply = getMessageText(intent);<NEW_LINE>String action = intent.getStringExtra("action");<NEW_LINE>if (action != null && reply != null)<NEW_LINE>action = action.re... | Logger.logDebug(LOG_TAG, "onReceiveReplyToNotification"); |
1,845,731 | public GrpcTelemetry build() {<NEW_LINE>SpanNameExtractor<<MASK><NEW_LINE>SpanNameExtractor<? super GrpcRequest> clientSpanNameExtractor = originalSpanNameExtractor;<NEW_LINE>if (clientSpanNameExtractorTransformer != null) {<NEW_LINE>clientSpanNameExtractor = clientSpanNameExtractorTransformer.apply(originalSpanNameExt... | GrpcRequest> originalSpanNameExtractor = new GrpcSpanNameExtractor(); |
131,991 | public ParseFieldOperation mergeWithPrevious(ParseFieldOperation previous) {<NEW_LINE>if (previous == null) {<NEW_LINE>return this;<NEW_LINE>} else if (previous instanceof ParseDeleteOperation) {<NEW_LINE>return new ParseSetOperation(objects);<NEW_LINE>} else if (previous instanceof ParseSetOperation) {<NEW_LINE>Object... | ParseSetOperation(new JSONArray(result)); |
1,641,407 | public boolean onCreateOptionsMenu(final Menu menu) {<NEW_LINE>try (ContextLogger ignore = new ContextLogger(Log.LogLevel.DEBUG, "MainActivity.onCreateOptionsMenu")) {<NEW_LINE>getMenuInflater().inflate(R.menu.main_activity_options, menu);<NEW_LINE>MenuCompat.setGroupDividerEnabled(menu, true);<NEW_LINE>final SearchMan... | () && Settings.isGCPremiumMember(); |
1,038,264 | private int readC(String sql, int end, int tokenStart, int i, ArrayList<Token> tokens) {<NEW_LINE>int endIndex = findIdentifierEnd(sql, end, i);<NEW_LINE>int length = endIndex - tokenStart;<NEW_LINE>int type;<NEW_LINE>if (eq("CASE", sql, tokenStart, length)) {<NEW_LINE>type = CASE;<NEW_LINE>} else if (eq("CAST", sql, t... | tokenStart, tokens, endIndex, type); |
1,300,601 | public static DescribeRoomKickoutUserListResponse unmarshall(DescribeRoomKickoutUserListResponse describeRoomKickoutUserListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRoomKickoutUserListResponse.setRequestId(_ctx.stringValue("DescribeRoomKickoutUserListResponse.RequestId"));<NEW_LINE>describeRoomKickoutUser... | = new ArrayList<User>(); |
978,582 | public static void topicYamlGenerator(Map<String, Object> parent, Config config) {<NEW_LINE>if (config.getTopicConfigs().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, Object> child = new LinkedHashMap<>();<NEW_LINE>for (TopicConfig subConfigAsObject : config.getTopicConfigs().values()) {<NEW_LINE>Map<St... | "global-ordering-enabled", subConfigAsObject.isGlobalOrderingEnabled()); |
92,853 | public static void main(String[] args) throws Exception {<NEW_LINE>ClientConfig daxConfig = new ClientConfig().withCredentialsProvider(new ProfileCredentialsProvider()).withEndpoints("mydaxcluster.2cmrwl.clustercfg.dax.use1.cache.amazonaws.com:8111");<NEW_LINE>AmazonDynamoDBAsync client = new ClusterDaxAsyncClient(daxC... | ().withS("No One You Know")); |
499,255 | static <R extends Response> R extractResponseAndNotifyResponseHandler(ResponseHandler responseHandler, NonBlockingRouterMetrics routerMetrics, ResponseInfo responseInfo, Deserializer<R> deserializer, Function<R, ServerErrorCode> errorExtractor) {<NEW_LINE>R response = null;<NEW_LINE>if (responseInfo.isQuotaRejected()) ... | response = deserializer.readFrom(dis); |
1,650,030 | public void parse(String str) {<NEW_LINE>if (debug) {<NEW_LINE>log.debug("parse " + str);<NEW_LINE>}<NEW_LINE>String[] ss = Strings.splitIgnoreBlank(str, ";");<NEW_LINE>for (String s : ss) {<NEW_LINE>Pair<String> p = Pair.create(Strings.trim(s));<NEW_LINE>if (p.getValueString() == null && ignoreNull) {<NEW_LINE>continu... | p.getName(), val); |
1,834,660 | public RelDataType validateImpl(RelDataType targetRowType) {<NEW_LINE>resolvedNamespace = Preconditions.checkNotNull(resolveImpl(id));<NEW_LINE>if (resolvedNamespace instanceof TableNamespace) {<NEW_LINE>SqlValidatorTable table = resolvedNamespace.getTable();<NEW_LINE>if (validator.shouldExpandIdentifiers()) {<NEW_LINE... | RelDataType rowType = resolvedNamespace.getRowType(); |
1,074,551 | public RuleResult execute(final Map<String, String> ruleParam, Map<String, String> resourceAttributes) {<NEW_LINE>logger.debug("========SecurityGroupNotUsedRule started=========");<NEW_LINE>String groupId = null;<NEW_LINE>Annotation annotation = null;<NEW_LINE>String severity = ruleParam.get(PacmanRuleConstants.SEVERIT... | put(PacmanSdkConstants.DESCRIPTION, "Unused security group found!!"); |
614,349 | public ImmutableSortedMap<K, V> insert(K key, V value) {<NEW_LINE>int pos = findKey(key);<NEW_LINE>if (pos != -1) {<NEW_LINE>if (this.keys[pos] == key && this.values[pos] == value) {<NEW_LINE>return this;<NEW_LINE>} else {<NEW_LINE>// The key and/or value might have changed, even though the comparison might still yield... | this.keys, pos, key); |
1,579,352 | public QuickConnectSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>QuickConnectSummary quickConnectSummary = new QuickConnectSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | class).unmarshall(context)); |
1,620,857 | public void callbackOnContext(TraverserContext context, DataSchemaTraverse.Order order) {<NEW_LINE>if (context.getEnclosingField() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (DataSchemaTraverse.Order.PRE_ORDER.equals(order)) {<NEW_LINE>final DataSchema currentSchema = context.getCurrentSchema().getDereferencedD... | primaryProperties.get(TimeseriesFieldCollectionAnnotation.ANNOTATION_NAME); |
667,337 | public Artifact buildIjar(StarlarkActionFactory actions, Artifact inputJar, @Nullable Label targetLabel, JavaToolchainProvider javaToolchain) throws EvalException {<NEW_LINE>String ijarBasename = FileSystemUtils.removeExtension(inputJar.getFilename()) + "-ijar.jar";<NEW_LINE>Artifact interfaceJar = actions.declareFile(... | (actions.getActionConstructionContext())); |
1,129,509 | public static List<Point2D_F64> gridChess(int numRows, int numCols, double squareWidth) {<NEW_LINE>List<Point2D_F64> all = new ArrayList<>();<NEW_LINE>// convert it into the number of calibration points<NEW_LINE>numCols = numCols - 1;<NEW_LINE>numRows = numRows - 1;<NEW_LINE>// center the grid around the origin. length... | new Point2D_F64(x, y)); |
1,031,869 | public void onWornTick(ItemStack stack, LivingEntity entity) {<NEW_LINE>if (!entity.level.isClientSide && !entity.isShiftKeyDown()) {<NEW_LINE>boolean lastOnGround = entity.isOnGround();<NEW_LINE>entity.setOnGround(true);<NEW_LINE>FrostWalkerEnchantment.onEntityMoved(entity, entity.level, <MASK><NEW_LINE>entity.setOnGr... | entity.blockPosition(), 8); |
573,843 | public void initialize() {<NEW_LINE>super.initialize();<NEW_LINE>// -- const vec3 cXaxis = vec3(1.0, 0.0, 0.0);<NEW_LINE>mcXAxis = (RVec3) addConst("cXAxis", castVec3(1.f, 0, 0));<NEW_LINE>// -- const vec3 cYaxis = vec3(0.0, 1.0, 0.0);<NEW_LINE>mcYAxis = (RVec3) addConst("cYAxis", castVec3(0, 1.f, 0));<NEW_LINE>// -- c... | RFloat) addConst("cStrength", .5f); |
830,315 | /* (non-Javadoc)<NEW_LINE>* @see com.webank.weid.rpc.CredentialPojoService#verify(<NEW_LINE>* com.webank.weid.protocol.base.CredentialPojo,<NEW_LINE>* com.webank.weid.protocol.base.WeIdPublicKey<NEW_LINE>* )<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public ResponseData<Boolean> verify(WeIdPublicKey... | <Boolean>(false, errorCode); |
1,284,671 | private void processMethods(DexHeader header, TaskMonitor monitor, MessageLog log) throws Exception {<NEW_LINE>monitor.setMessage("DEX: processing methods");<NEW_LINE>monitor.setMaximum(header.getMethodIdsSize());<NEW_LINE>monitor.setProgress(0);<NEW_LINE>Address address = baseAddress.add(header.getMethodIdsOffset());<... | DexUtil.createNameSpaceFromMangledClassName(program, className); |
1,806,711 | public PropertiesDiff build() {<NEW_LINE>DiffBuilder<?> leftBuilder = new DiffBuilder<>(leftMap, rightMap, ToStringStyle.DEFAULT_STYLE);<NEW_LINE>DiffBuilder<?> rightBuilder = new DiffBuilder<>(leftMap, rightMap, ToStringStyle.DEFAULT_STYLE);<NEW_LINE>List<String> <MASK><NEW_LINE>for (Entry<String, String> entry : left... | leftMapRemove = new ArrayList<>(); |
1,854,795 | private void updateUI() {<NEW_LINE>FirebaseUser currentUser = FirebaseAuth.getInstance().getCurrentUser();<NEW_LINE>if (currentUser == null) {<NEW_LINE>// Not signed in<NEW_LINE>mBinding.anonSignIn.setEnabled(true);<NEW_LINE>mBinding.beginFlow.setEnabled(false);<NEW_LINE>mBinding.resolveMerge.setEnabled(false);<NEW_LIN... | mBinding.signOut.setEnabled(true); |
1,631,757 | public void write(List<IoTDBInsertRequest> requestList) throws IOException {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>for (IoTDBInsertRequest request : requestList) {<NEW_LINE>log.debug("Writing data to IoTDB: {}", request);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>List<String> devicePathList = new ArrayList<>();<NEW_LINE>L... | add(request.getTime()); |
1,519,335 | public Pkcs10Csr build() {<NEW_LINE>try {<NEW_LINE>PKCS10CertificationRequestBuilder requestBuilder = new JcaPKCS10CertificationRequestBuilder(new X500Name(subject.getName()), keyPair.getPublic());<NEW_LINE>ExtensionsGenerator extGen = new ExtensionsGenerator();<NEW_LINE>if (basicConstraintsExtension != null) {<NEW_LIN... | (requestBuilder.build(contentSigner)); |
397,923 | protected void notifyComplete(MqttToken token) throws MqttException {<NEW_LINE>final String methodName = "notifyComplete";<NEW_LINE>MqttWireMessage message = token.internalTok.getWireMessage();<NEW_LINE>if (message != null && message instanceof MqttAck) {<NEW_LINE>// @TRACE 629=received key={0} token={1} message={2}<NE... | Integer.valueOf(inFlightPubRels) }); |
1,398,255 | private void parseHeader() {<NEW_LINE>headerScratchBits.setPosition(0);<NEW_LINE>SyncFrameInfo frameInfo = Ac4Util.parseAc4SyncframeInfo(headerScratchBits);<NEW_LINE>if (format == null || frameInfo.channelCount != format.channelCount || frameInfo.sampleRate != format.sampleRate || !MimeTypes.AUDIO_AC4.equals(format.sam... | * frameInfo.sampleCount / format.sampleRate; |
772,826 | // builds directives from a type and its extensions<NEW_LINE>@NotNull<NEW_LINE>GraphQLDirective buildDirective(BuildContext buildCtx, Directive directive, Set<GraphQLDirective> directiveDefinitions, DirectiveLocation directiveLocation, GraphqlTypeComparatorRegistry comparatorRegistry) {<NEW_LINE>GraphQLDirective.Builde... | inputType -> buildInputType(buildCtx, inputType); |
1,741,818 | public ProjectArchive load(Path projectDirectory, WorkflowResourceMatcher matcher, Config overrideParams) throws IOException {<NEW_LINE>// toAbsolutePath is necessary because Paths.get("singleName").getParent() returns null instead of Paths.get("")<NEW_LINE>Path projectPath = projectDirectory.normalize().toAbsolutePath... | > defs = ImmutableList.builder(); |
1,259,276 | static ParallelInstruction forParallelInstruction(ParallelInstruction input, boolean replaceWithByteArrayCoder) throws Exception {<NEW_LINE>try {<NEW_LINE>ParallelInstruction instruction = clone(input, ParallelInstruction.class);<NEW_LINE>if (instruction.getRead() != null) {<NEW_LINE>Source cloudSource = instruction<MA... | .getRead().getSource(); |
533,011 | private void checkRequests() {<NEW_LINE>// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second<NEW_LINE>// now as the existing 0.1 second is crazy given we're checking for events that<NEW_LINE>// occur<NEW_LINE>// at 60+ second intervals<NEW_LINE>if (mainloop_loop_count % MAINLOOP_ONE_SECOND_I... | now - request.getTimeCreated(now); |
99,553 | public void updateFileMenuButtons(int view) {<NEW_LINE>if (isReadOnly) {<NEW_LINE>// This may be too simple<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (view == 0) {<NEW_LINE>// We are in the Projects view<NEW_LINE>fileDropDown.setItemEnabled(MESSAGES.deleteProjectButton(), false);<NEW_LINE>fileDropDown.setItemEnabled(MESS... | MESSAGES.showExportAndroidApk2(), true); |
1,021,397 | public void run() {<NEW_LINE><MASK><NEW_LINE>Package msg = new Package();<NEW_LINE>try {<NEW_LINE>if (pkg.getHeader().getCmd() == Command.SERVER_GOODBYE_RESPONSE) {<NEW_LINE>logger.info("client|address={}| has reject ", session.getContext().channel().remoteAddress());<NEW_LINE>} else {<NEW_LINE>msg.setHeader(new Header... | long taskExecuteTime = System.currentTimeMillis(); |
1,572,045 | public void marshall(ListCompilationJobsRequest listCompilationJobsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listCompilationJobsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(listCo... | listCompilationJobsRequest.getLastModifiedTimeAfter(), LASTMODIFIEDTIMEAFTER_BINDING); |
1,267,788 | private static ByteBuffer compressString(String input) throws IOException {<NEW_LINE>// Compress the UTF-8 encoded String into a byte[]<NEW_LINE>ByteArrayOutputStream baos = new ByteArrayOutputStream();<NEW_LINE>GZIPOutputStream os = new GZIPOutputStream(baos);<NEW_LINE>os.write(input.getBytes("UTF-8"));<NEW_LINE>os.fi... | ByteBuffer.allocate(compressedBytes.length); |
1,365,619 | public void indexFromDocuments(final Consumer<Boolean> success, final Consumer<Throwable> error) {<NEW_LINE>final FessConfig fessConfig = ComponentUtil.getFessConfig();<NEW_LINE>final long interval = fessConfig.getSuggestUpdateRequestIntervalAsInteger().longValue();<NEW_LINE>final int docPerReq = fessConfig.getSuggestU... | setScrollSize(fessConfig.getSuggestSourceReaderScrollSizeAsInteger()); |
956,040 | public static QuerySubscribeRelationResponse unmarshall(QuerySubscribeRelationResponse querySubscribeRelationResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySubscribeRelationResponse.setRequestId(_ctx.stringValue("QuerySubscribeRelationResponse.RequestId"));<NEW_LINE>querySubscribeRelationResponse.setSuccess(_ctx.b... | (_ctx.booleanValue("QuerySubscribeRelationResponse.OtaJobFlag")); |
1,438,331 | public AnalyticsModelingOMASAPIResponse createArtifact(String serverName, String userId, String serverCapability, String serverCapabilityGUID, AnalyticsAsset artifact) {<NEW_LINE>String methodName = "createArtifact";<NEW_LINE>AnalyticsModelingOMASAPIResponse ret;<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCal... | token, ret.toString()); |
1,783,747 | public void onSingleClick(View v) {<NEW_LINE>currentlyEditingId = "";<NEW_LINE>backedText = "";<NEW_LINE>doShowMenu(baseView);<NEW_LINE>if (SettingValues.fastscroll) {<NEW_LINE>mPage.fastScroll.setVisibility(View.VISIBLE);<NEW_LINE>if (mPage.fab != null)<NEW_LINE>mPage.<MASK><NEW_LINE>mPage.overrideFab = false;<NEW_LIN... | fab.setVisibility(View.VISIBLE); |
338,447 | public static <T extends PreTrainedTokenizer> T fromPretrained(Class<T> cls, Kwargs kwargs) {<NEW_LINE>String pretrained_model_name_or_path = kwargs.removeWithType("pretrained_model_name_or_path");<NEW_LINE>File tokenizerConfigFileFile = Paths.get(pretrained_model_name_or_path, TOKENIZER_CONFIG_FILE).toFile();<NEW_LINE... | fromJson(content, Kwargs.class); |
140,483 | void onFocusOutMinAmountTextField(boolean oldValue, boolean newValue) {<NEW_LINE>if (oldValue && !newValue) {<NEW_LINE>InputValidator.ValidationResult result = isBtcInputValid(minAmount.get());<NEW_LINE>minAmountValidationResult.set(result);<NEW_LINE>if (result.isValid) {<NEW_LINE>Coin minAmountAsCoin = dataModel.getMi... | .amount.get())); |
548,010 | private Collection<IFile> filterFiles(Collection<IFile> files, IProgressMonitor monitor) {<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, 100);<NEW_LINE>// First filter out files that don't exist, are derived, or are team-private<NEW_LINE>files = CollectionsUtil.filter(files, new IFilter<IFile>() {<NEW_LINE><NEW... | findFilesForLocationURI(fileStore.toURI()); |
922,134 | final ListNodegroupsResult executeListNodegroups(ListNodegroupsRequest listNodegroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listNodegroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | false), new ListNodegroupsResultJsonUnmarshaller()); |
1,495,833 | public void processStream(InputStream input) throws IOException {<NEW_LINE>// Pass null for revision to get all history for the file.<NEW_LINE>PerforceHistoryParser parser = new PerforceHistoryParser(repo);<NEW_LINE>List<HistoryEntry> revisions = parser.getRevisions(file, null).getHistoryEntries();<NEW_LINE>HashMap<Str... | revAuthor = new HashMap<>(); |
775,619 | public static String formatDurationFrom(final Context context, final long startTime, final long endTime, final int timeStringRes, final int unitsToDisplay) {<NEW_LINE>final String space = " ";<NEW_LINE>final String comma = ",";<NEW_LINE>final String separator = comma + space;<NEW_LINE>final DateTime dateTime = new Date... | ().split(comma)); |
1,393,056 | public Condition unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Condition condition = new Condition();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok... | class).unmarshall(context)); |
1,475,813 | public void introspect(PrintWriter out) throws Exception {<NEW_LINE>List<InterruptibleThreadObjectStatus> itos = getStatusArray();<NEW_LINE>if (itos.isEmpty() == false) {<NEW_LINE>for (InterruptibleThreadObjectStatus cur : itos) {<NEW_LINE>if (cur != null) {<NEW_LINE>long curThreadId = cur.getThreadId();<NEW_LINE>Strin... | int curPos = curOdi.getPosition(); |
1,748,997 | private static Pair<PhpClass, Set<String>> invoke(@NotNull Project project, @NotNull YAMLKeyValue serviceKeyValue) {<NEW_LINE>String aClass = YamlHelper.getYamlKeyValueAsString(serviceKeyValue, "class");<NEW_LINE>if (aClass == null || StringUtils.isBlank(aClass)) {<NEW_LINE>PsiElement key = serviceKeyValue.getKey();<NE... | Pair.create(resolvedClassDefinition, phpClassServiceTags); |
628,984 | protected void onActivityResult(int requestCode, int resultCode, Intent resultData) {<NEW_LINE>Logger.logVerbose(LOG_TAG, "onActivityResult: requestCode: " + requestCode + ", resultCode: " + resultCode + ", data: " + IntentUtils.getIntentString(resultData));<NEW_LINE>super.onActivityResult(requestCode, resultCode, resu... | write(buffer, 0, read); |
690,059 | private Pair<@NotNull Expression, Concrete.@NotNull Expression> visitLetClause(@NotNull HaveClause coreLetClause, @NotNull Concrete.LetClause exprLetClause) {<NEW_LINE>var accepted = exprLetClause.getTerm().accept(this, coreLetClause.getExpression());<NEW_LINE>if (accepted != null)<NEW_LINE>return accepted;<NEW_LINE>Co... | , resultType, (PiExpression) coreResultType); |
705,959 | public void run() {<NEW_LINE>final Set<File> result = new HashSet<File>();<NEW_LINE>// Search in the source groups of the projects.<NEW_LINE>for (SourceGroup group : ProjectUtils.getSources(project).getSourceGroups(JavaProjectConstants.SOURCES_TYPE_JAVA)) {<NEW_LINE>for (FileObject fo : NbCollections.iterable(group.get... | file = FileUtil.toFile(fo); |
12,850 | private static Geometry smooth(final Geometry geom, final double fit, final GeometryFactory factory, GeometrySmoother smoother) {<NEW_LINE>switch(geom.getGeometryType().toUpperCase()) {<NEW_LINE>case "POINT":<NEW_LINE>case "MULTIPOINT":<NEW_LINE>// For points, just return the input geometry<NEW_LINE>return geom;<NEW_LI... | factory, smoother, geom, fit); |
1,252,844 | private static HandshakeData createDefaultSsl() {<NEW_LINE>try {<NEW_LINE>final KeyPairGenerator keyPairGenerator = KeyPairGenerator.getInstance("RSA");<NEW_LINE>keyPairGenerator.initialize(2048);<NEW_LINE>final KeyPair keyPair = keyPairGenerator.generateKeyPair();<NEW_LINE>// Generate self signed certificate<NEW_LINE>... | final JcaX509CertificateConverter converter = new JcaX509CertificateConverter(); |
1,364,781 | public void testRxObservableInvoker_post3WithGenericType(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.def... | = new JAXRS21Book("Test book3", 102); |
420,805 | public static void handleLogsFilter(LogsFilterCapsule logsFilterCapsule) {<NEW_LINE>Iterator<Entry<String, LogFilterAndResult>> it;<NEW_LINE>if (logsFilterCapsule.isSolidified()) {<NEW_LINE>it = getEventFilter2ResultSolidity().entrySet().iterator();<NEW_LINE>} else {<NEW_LINE>it = getEventFilter2ResultFull().entrySet()... | > entry = it.next(); |
1,204,414 | public Map<String, LineChart> buildGraphByDomain(Date start, Date end, String domain) {<NEW_LINE>BusinessReportConfig config = m_configManager.queryConfigByDomain(domain);<NEW_LINE>HashMap<String, LineChart> result = new LinkedHashMap<String, LineChart>();<NEW_LINE>if (config != null) {<NEW_LINE>Map<String, double[]> d... | , start, end, configs)); |
425,060 | static OpcUaServerConfigBuilder copy(OpcUaServerConfig config) {<NEW_LINE>OpcUaServerConfigBuilder builder = new OpcUaServerConfigBuilder();<NEW_LINE>// UaStackServerConfig values<NEW_LINE>builder.setEndpoints(config.getEndpoints());<NEW_LINE>builder.setApplicationName(config.getApplicationName());<NEW_LINE>builder.<MA... | setApplicationUri(config.getApplicationUri()); |
1,482,658 | public ApiResponse<String> downloadDownloadWithTokenWithHttpInfo(String downloadid) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'downloadid' is set<NEW_LINE>if (downloadid == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'downlo... | localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
200,491 | public OResultSet syncPull(OCommandContext ctx, int nRecords) throws OTimeoutException {<NEW_LINE>getPrev().ifPresent(x -> x.syncPull(ctx, nRecords));<NEW_LINE>return new OResultSet() {<NEW_LINE><NEW_LINE>private int internalNext = 0;<NEW_LINE><NEW_LINE>private void fetchNext() {<NEW_LINE>if (nextResult != null) {<NEW_... | ) nextResult).setElement(nextDoc); |
1,767,978 | public void authenticate() throws ServerException, UserException {<NEW_LINE>try {<NEW_LINE>AuthInterface authInterface = channel.get(AuthInterface.class);<NEW_LINE>if (authenticationInfo instanceof UsernamePasswordAuthenticationInfo) {<NEW_LINE>UsernamePasswordAuthenticationInfo usernamePasswordAuthenticationInfo = (Us... | (tokenAuthentication.getToken())); |
96,696 | protected void createMaxResultsLayout() {<NEW_LINE>maxResultsLayout = uiComponents.create(HBoxLayout.class);<NEW_LINE>maxResultsLayout.setStyleName("c-maxresults");<NEW_LINE>maxResultsLayout.setSpacing(true);<NEW_LINE>Label<String> maxResultsLabel = <MASK><NEW_LINE>maxResultsLabel.setStyleName("c-maxresults-label");<NE... | uiComponents.create(Label.NAME); |
54,553 | public static void openProperties(File[] roots, String ctxDisplayName) {<NEW_LINE>if (!Subversion.getInstance().checkClientAvailable()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final PropertiesPanel panel = new PropertiesPanel();<NEW_LINE>final PropertiesTable propTable;<NEW_LINE>propTable = new PropertiesTable(panel.lab... | [] { PropertiesTableModel.COLUMN_NAME_VALUE }); |
912,319 | public Map<String, ContainerRegistryConfiguration> convert(String dockerconfigjson) {<NEW_LINE>if (StringUtils.hasText(dockerconfigjson)) {<NEW_LINE>try {<NEW_LINE>Map authsMap = (Map) new ObjectMapper().readValue(dockerconfigjson, Map<MASK><NEW_LINE>Map<String, ContainerRegistryConfiguration> registryConfigurationMap ... | .class).get("auths"); |
613,150 | public ImmutableList<CppCompileAction> generateActionsForInputArtifacts(ImmutableSet<TreeFileArtifact> inputTreeFileArtifacts, ActionLookupKey artifactOwner) throws ActionExecutionException {<NEW_LINE>ImmutableList.Builder<CppCompileAction> expandedActions = new ImmutableList.Builder<>();<NEW_LINE>ImmutableList.Builder... | dotdTreeArtifact, outputName + ".d", artifactOwner); |
919,439 | final UpdateDomainMetadataResult executeUpdateDomainMetadata(UpdateDomainMetadataRequest updateDomainMetadataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDomainMetadataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
228,811 | void addRegOrMem(Instruction instruction, int operand, int regLo, int regHi, int vsibIndexRegLo, int vsibIndexRegHi, boolean allowMemOp, boolean allowRegOp) {<NEW_LINE>int opKind = instruction.getOpKind(operand);<NEW_LINE>encoderFlags |= EncoderFlags.MOD_RM;<NEW_LINE>if (opKind == OpKind.REGISTER) {<NEW_LINE>if (!allow... | regNum, 31) <= 0 : regNum; |
1,704,088 | void onBindView(GeoActivity activity, Location location, MainThemeManager themeManager, int position) {<NEW_LINE>StringBuilder talkBackBuilder = new StringBuilder(activity.getString(R.string.tag_aqi));<NEW_LINE>super.onBindView(activity, location, themeManager, talkBackBuilder, position);<NEW_LINE>assert location.getWe... | , mThemeManager.getTextSubtitleColor(activity)); |
1,834,876 | public void execute(final CommandLine commandLine, final Options options, final RPCHook rpcHook) throws SubCommandException {<NEW_LINE>DefaultMQAdminExt defaultMQAdminExt = new DefaultMQAdminExt(rpcHook);<NEW_LINE>defaultMQAdminExt.setInstanceName(Long.toString(System.currentTimeMillis()));<NEW_LINE>try {<NEW_LINE>if (... | getOptionValue('b').trim(); |
1,764,700 | public void deleteById(String id) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW_LINE>}<NEW_LINE>String fac... | Utils.getValueFromIdByName(id, "resourceGroups"); |
496,595 | private void emitPerBaseCoverageIfRequested() {<NEW_LINE>if (this.perBaseOutput == null)<NEW_LINE>return;<NEW_LINE>final PrintWriter out = new PrintWriter(IOUtil.openFileForBufferedWriting(this.perBaseOutput));<NEW_LINE>out.println("chrom\tpos\ttarget\tcoverage");<NEW_LINE>for (final Map.Entry<Interval, Coverage> entry... | print(interval.getName()); |
417,180 | static void baseCalc(FastDistanceSparseData left, FastDistanceSparseData right, double[] res, double fillValue, Functional.SerializableFunction<Double, Double> function) {<NEW_LINE>Arrays.fill(res, fillValue);<NEW_LINE>int[][] leftIndices = left.getIndices();<NEW_LINE>int[][] rightIndices = right.getIndices();<NEW_LINE... | [] leftIndicesList = leftIndices[i]; |
1,780,121 | public static void reportErrorAsHTML(PrintWriter out, ServletErrorReport error, String url) {<NEW_LINE>out.println("<HTML>\n<HEAD><TITLE>" + nls.getString("Error.Report", "Error Report") + "</TITLE></HEAD>\n<BODY>");<NEW_LINE>if (error == null) {<NEW_LINE>out.println(nls.getString("No.Error.to.Report", "No Error to Rep... | .getTargetServletName()) + "<BR>"); |
775,897 | public boolean reActivateIt() {<NEW_LINE>log.info(toString());<NEW_LINE>// Before reActivate<NEW_LINE>m_processMsg = ModelValidationEngine.get().<MASK><NEW_LINE>if (m_processMsg != null)<NEW_LINE>return false;<NEW_LINE>MDocType dt = MDocType.get(getCtx(), getC_DocType_ID());<NEW_LINE>String DocSubTypeSO = dt.getDocSubT... | fireDocValidate(this, ModelValidator.TIMING_BEFORE_REACTIVATE); |
129,814 | public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {<NEW_LINE>String ip = request.getHeader("X-Forwarded-For");<NEW_LINE>if (ip == null) {<NEW_LINE>ip = request.getHeader("X-Real-IP");<NEW_LINE>}<NEW_LINE>if (ip != null) {<NEW_LINE>ip = ip.split(",")[0];<... | MDC.put("IPADDRESS", ip); |
80,107 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>requireButton = new JButton();<NEW_LINE>requireDevButton = new JButton();<NEW_LINE>keepOpenCheckBox = new JCheckBox();<NEW_LINE>innerPanel = new JPanel();<NEW_LINE>// NOI18N<NEW_LI... | GroupLayout layout = new GroupLayout(this); |
86,114 | private String executeWithNashorn(SampleResult previousResult, Sampler currentSampler, JMeterContext jmctx, JMeterVariables vars, String script, String varName) throws InvalidVariableException {<NEW_LINE>String resultStr = null;<NEW_LINE>try {<NEW_LINE>ScriptContext newContext = new SimpleScriptContext();<NEW_LINE>Scri... | bindings.put("sampleResult", previousResult); |
1,139,110 | protected void executeImpl() throws MojoExecutionException, MojoFailureException {<NEW_LINE>File commonDir = getCN1ProjectDir();<NEW_LINE>if (commonDir == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File rootMavenProjectDir = commonDir.getParentFile();<NEW_LINE>File javaSEDir = new File(rootMavenProjectDir, "javase");... | props.setProperty("codename1.platform", "javase"); |
1,849,125 | private JMethod createReboundValueSelectorMethod(SourceInfo info, String prefix, String parameterType, JReferenceType returntype, List<String> results, List<JExpression> resultExpressions, Multimap<String, Integer> resultsToPermutations) {<NEW_LINE>// Pick the most-used result type to emit less code<NEW_LINE>String mos... | getBlock().addStmt(fallbackReturn); |
96,576 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "c0", "c1" };<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>// create window<NEW_LINE>String stmtTextCreate = "@public @buseventtype create schema MyEvent(cid string);\n";<NEW_LINE>stmtTextCreate += namedWindow ? "@pu... | new SupportBean("C1", 4)); |
932,193 | final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | endClientExecution(awsRequestMetrics, request, response); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.