idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,564,311 | protected void loadCategories() {<NEW_LINE>if (doneLoading)<NEW_LINE>return;<NEW_LINE>doneLoading = true;<NEW_LINE>FileInputStream fin = null;<NEW_LINE>BufferedInputStream bin = null;<NEW_LINE>makeSpecialCategories();<NEW_LINE>try {<NEW_LINE>// open the file<NEW_LINE>File configFile = FileUtil.getUserFile("categories.c... | fin = FileUtil.newFileInputStream(configFile); |
1,534,005 | private void update() {<NEW_LINE>String accountTypesInUseQuery = "SELECT res.account_type, COUNT(*) AS count\n" + "FROM (\n" + " SELECT MIN(blackboard_attributes.value_text) AS account_type\n" + " FROM blackboard_artifacts\n" + " LEFT JOIN blackboard_attributes ON blackboard_artifacts.artifact_id = blackboard_attrib... | accountType = resultSet.getString("account_type"); |
1,820,756 | public void finishDelete(ConnectorSession session, ConnectorTableHandle tableHandle, Collection<Slice> fragments) {<NEW_LINE>HiveTableHandle handle = (HiveTableHandle) tableHandle;<NEW_LINE>checkArgument(handle.isAcidDelete(), "handle should be a delete handle, but is %s", handle);<NEW_LINE>requireNonNull(fragments, "f... | SchemaTableName tableName = handle.getSchemaTableName(); |
1,131,999 | private StreamEvent query(Table tableForPerDuration, StateEvent matchingEvent, CompiledCondition compiledCondition, CompiledSelection compiledSelection, Attribute[] outputAttributes) {<NEW_LINE>if (tableForPerDuration.getIsConnected()) {<NEW_LINE>try {<NEW_LINE>return ((QueryableProcessor) tableForPerDuration).query(ma... | getId() + "', " + "as the datasource is unavailable."); |
518,093 | public InferenceResult solveEqualities(Set<TypeVariable> targets, ConstraintMap constraintMap, AnnotatedTypeFactory typeFactory) {<NEW_LINE>final InferenceResult solution = new InferenceResult();<NEW_LINE>do {<NEW_LINE>dirty = false;<NEW_LINE>for (TypeVariable target : targets) {<NEW_LINE>if (solution.containsKey(targe... | ) inferred).type, constraintMap); |
12,577 | public void render(MapView map, MapCanvas canvas, Player player) {<NEW_LINE>World world = map.getWorld();<NEW_LINE>int scaleShift = map.getScale().getValue();<NEW_LINE>Location playerLoc = player.getLocation();<NEW_LINE>int playerX = playerLoc.getBlockX();<NEW_LINE>int playerZ = playerLoc.getBlockZ();<NEW_LINE>int corn... | setPixel(pixelX, pixelY, blockColor); |
363,241 | public void drawWrappedText(Canvas cv, TextDrawInfo text, float textSize) {<NEW_LINE>if (text.textWrap == 0) {<NEW_LINE>// set maximum for all text<NEW_LINE>text.textWrap = 40;<NEW_LINE>}<NEW_LINE>if (text.text.length() > text.textWrap) {<NEW_LINE>int start = 0;<NEW_LINE>int end = text.text.length();<NEW_LINE>int lastS... | text.textShadowColor, text.textShadow); |
691,628 | public void exitRo_default_information(Ro_default_informationContext ctx) {<NEW_LINE>OspfProcess proc = _currentOspfProcess;<NEW_LINE>proc.setDefaultInformationOriginate(true);<NEW_LINE>boolean always = ctx.ALWAYS<MASK><NEW_LINE>proc.setDefaultInformationOriginateAlways(always);<NEW_LINE>if (ctx.metric != null) {<NEW_L... | ().size() > 0; |
1,787,083 | public AutomationExecution unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AutomationExecution automationExecution = new AutomationExecution();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep... | class).unmarshall(context)); |
711,816 | public Map<PathFragment, SourceArtifact> resolveSourceArtifacts(Iterable<PathFragment> execPaths, PackageRootResolver resolver) throws PackageRootResolver.PackageRootException, InterruptedException {<NEW_LINE>Map<PathFragment, SourceArtifact> result = new HashMap<>();<NEW_LINE>ArrayList<PathFragment> <MASK><NEW_LINE>fo... | unresolvedPaths = new ArrayList<>(); |
922,713 | public boolean updateBlockDetails(@NonNull UUID uuid, long blockIndex, long blockTimestamp) {<NEW_LINE>SQLiteDatabase database = databaseHelper.getSignalWritableDatabase();<NEW_LINE>String where = PAYMENT_UUID + " = ?";<NEW_LINE>String[] whereArgs = { uuid.toString() };<NEW_LINE>int updated;<NEW_LINE>ContentValues valu... | values.put(BLOCK_INDEX, blockIndex); |
1,700,603 | public Request<SetReceiptRulePositionRequest> marshall(SetReceiptRulePositionRequest setReceiptRulePositionRequest) {<NEW_LINE>if (setReceiptRulePositionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<SetReceiptRulePositionRequest> reques... | (setReceiptRulePositionRequest.getAfter())); |
1,171,992 | public PermissionCalculator build(QueryOptions queryOptions, CacheMetadata metadata) {<NEW_LINE>List<PermissionProcessor> processors = new ArrayList<>(8);<NEW_LINE>processors.add(new DirectProcessor());<NEW_LINE>if (this.plugin.getConfiguration().get(ConfigKeys.APPLY_BUKKIT_CHILD_PERMISSIONS)) {<NEW_LINE>processors.add... | .add(new WildcardProcessor()); |
1,739,341 | public static com.liferay.portal.model.User addUser(java.lang.String companyId, boolean autoUserId, java.lang.String userId, boolean autoPassword, java.lang.String password1, java.lang.String password2, boolean passwordReset, java.lang.String firstName, java.lang.String middleName, java.lang.String lastName, java.lang.... | liferay.portal.SystemException(e); |
313,301 | public void add(int listIdx, int value) {<NEW_LINE>long <MASK><NEW_LINE>if (listPtr == 0) {<NEW_LINE>listPointersAndSizes.set(listIdx, Long.MIN_VALUE | (long) value << 32);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if ((listPtr & 0xFFFFFFFFL) == 0) {<NEW_LINE>listPointersAndSizes.set(listIdx, listPtr | 0x80000000L | value);... | listPtr = listPointersAndSizes.get(listIdx); |
1,266,522 | private void loadNode337() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.FileDirectoryType_FileName_Placeholder_SetPosition_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArguments"), LocalizedText.NULL_VALUE, UI... | Object o = decoder.readVariantValue(); |
1,609,868 | protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_utilities_currency_converter);<NEW_LINE>ButterKnife.bind(this);<NEW_LINE><MASK><NEW_LINE>SharedPreferences sharedPreferences = PreferenceManager.getDefaultSharedPreferenc... | setTitle(R.string.text_currency); |
1,727,819 | public <T> void addMessageHandler(Class<T> clazz, MessageHandler.Partial<T> handler) {<NEW_LINE>try {<NEW_LINE>MethodHandle methodHandle = JavaxWebSocketFrameHandlerFactory.getServerMethodHandleLookup().findVirtual(MessageHandler.Partial.class, "onMessage", MethodType.methodType(void.class, Object.class, boolean.class)... | clazz, handler, basicType, metadata); |
959,394 | /*<NEW_LINE>* FIXME: Is apparently blocking if health-check fails<NEW_LINE>* TODO: run periodically and push to graphite?<NEW_LINE>*/<NEW_LINE>@GET<NEW_LINE>@Produces(APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Pings the server", notes = "Also returns the status of other components. " + "Uses metrics-healthchecks... | LOGGER.error("ping failed with error:", exception); |
228,770 | private void expand() {<NEW_LINE>initialY = getLocationOnScreen().y;<NEW_LINE>int screenHeight = Toolkit.getDefaultToolkit().getScreenSize().height;<NEW_LINE>int preferedExpandedHeight = getScaledInt(400);<NEW_LINE>int bottomTaskbarHeight, topTaskbarHeight;<NEW_LINE>Insets scnMax = Toolkit.getDefaultToolkit().getScreen... | add(closePopupBtn, BorderLayout.NORTH); |
1,171,525 | protected List<FrameworkMethod> computeTestMethods() {<NEW_LINE>List<FrameworkMethod> frameworkMethods = super.computeTestMethods();<NEW_LINE>// Generates one method for each @ParameterValueSource instance.<NEW_LINE>ImmutableList.Builder<FrameworkMethod> expandedFrameworkMethods = ImmutableList.builder();<NEW_LINE>for ... | reflectMethod.getDeclaredAnnotation(ParameterValueSourceSet.class); |
1,406,235 | public DatasetStats unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DatasetStats datasetStats = new DatasetStats();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_... | JsonToken token = context.getCurrentToken(); |
633,507 | long parseParam(String param) {<NEW_LINE>char[] chars = param.toCharArray();<NEW_LINE>int tuIndex = 0;<NEW_LINE>for (int c = 1; c < chars.length; c++) {<NEW_LINE>if (Character.isDigit(chars[c])) {<NEW_LINE>tuIndex++;<NEW_LINE>} else {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (tuIndex == 0) {<NEW_LINE>throw new... | length()).trim(); |
224,775 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see com.aptana.core.io.vfs.IConnectionFileManager#mkdir(org.eclipse.core.runtime.IPath, int,<NEW_LINE>* org.eclipse.core.runtime.IProgressMonitor)<NEW_LINE>*/<NEW_LINE>public final synchronized void mkdir(IPath path, int options, IProgressMonitor monitor) throws CoreException {<N... | initFileNotFoundException(path, null))); |
504,945 | public ObjectAttributeRange unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ObjectAttributeRange objectAttributeRange = new ObjectAttributeRange();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | JsonToken token = context.getCurrentToken(); |
216,408 | public void onMethodCall(final MethodCall call, final MethodChannel.Result rawResult) {<NEW_LINE>if (this.activity == null) {<NEW_LINE>rawResult.error("no_activity", "file picker plugin requires a foreground activity", null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final MethodChannel.Result result = new MethodResultWrapp... | error(TAG, "Unsupported filter. Make sure that you are only using the extension without the dot, (ie., jpg instead of .jpg). This could also have happened because you are using an unsupported file extension. If the problem persists, you may want to consider using FileType.all instead.", null); |
275,832 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceUri, String recommendationId, String name) {<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 (reso... | error(new IllegalArgumentException("Parameter resourceUri is required and cannot be null.")); |
610,077 | protected void handleCandidateUsers(CommandContext commandContext, PlanItemInstanceEntity planItemInstanceEntity, ExpressionManager expressionManager, TaskEntity taskEntity, CreateHumanTaskBeforeContext beforeContext) {<NEW_LINE>CmmnEngineConfiguration cmmnEngineConfiguration = CommandContextUtil.getCmmnEngineConfigura... | planItemInstanceEntity, cmmnEngineConfiguration.getObjectMapper()); |
545,670 | public Node addFavorite(Long nodeId, String xSdsDateFormat, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'nodeId' is set<NEW_LINE>if (nodeId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'nodeId' when cal... | localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
1,718,822 | private void addVirtualMyMusicFolder() {<NEW_LINE>DbidTypeAndIdent myAlbums = new DbidTypeAndIdent(DbidMediaType.TYPE_MYMUSIC_ALBUM, null);<NEW_LINE>VirtualFolderDbId myMusicFolder = new VirtualFolderDbId(Messages.getString("Audio.Like.MyAlbum"), myAlbums, "");<NEW_LINE>if (PMS.getConfiguration().displayAudioLikesInRoo... | getAudioFolder().getId()); |
842,013 | static TypeSpecDataHolder generateGetEventHandlerMethod(SpecModel specModel, EventDeclarationModel eventDeclaration) {<NEW_LINE>final String scopeMethodName = specModel.getScopeMethodName();<NEW_LINE>final ClassName eventClassName = ClassName.bestGuess(eventDeclaration.getRawName().toString());<NEW_LINE>final List<Type... | typeVariables = new ArrayList<>(); |
1,157,606 | protected void enqueueMouseEvents(MotionEvent event, int button, int modifiers) {<NEW_LINE>int action = event.getAction();<NEW_LINE>// not really set... (i.e. not catching double taps)<NEW_LINE>int clickCount = 1;<NEW_LINE>int index;<NEW_LINE>switch(action & MotionEvent.ACTION_MASK) {<NEW_LINE>case MotionEvent.ACTION_D... | index), button, clickCount)); |
1,751,559 | private void renderBoxes(MatrixStack matrixStack, ArrayList<Box> boxes, float[] colorF, int regionX, int regionZ) {<NEW_LINE>for (Box box : boxes) {<NEW_LINE>matrixStack.push();<NEW_LINE>matrixStack.translate(box.minX - regionX, box.minY, box.minZ - regionZ);<NEW_LINE>matrixStack.scale((float) (box.maxX - box.minX), (f... | setShader(viewMatrix, projMatrix, shader); |
1,651,978 | private JPanel buildRepositoryInfoPanel() {<NEW_LINE>String serverName = "";<NEW_LINE>ServerInfo info = null;<NEW_LINE>String repositoryName = "";<NEW_LINE>String portNumberStr = "";<NEW_LINE>boolean isConnected = false;<NEW_LINE>if (repository != null) {<NEW_LINE>info = repository.getServerInfo();<NEW_LINE>serverName ... | GDLabel("Server Name:", SwingConstants.RIGHT); |
1,101,263 | void closeViaCommsMPConnections(int mode) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "CommsServerServiceFacade closeViaCommsMPConnections", mode);<NEW_LINE>JsAdminService admnService = getJsAdminService();<NEW_LINE>if (null != admnService) {<NEW_LINE>// Liberty Adm... | JsEngineComponent _mp = local_ME.getMessageProcessor(); |
1,620,153 | final GetPermissionPolicyResult executeGetPermissionPolicy(GetPermissionPolicyRequest getPermissionPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPermissionPolicyRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetPermiss... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,802,383 | public void mouseDown(MouseEvent e) {<NEW_LINE>double x = xyGraph.primaryXAxis.getPositionValue(e.x, false);<NEW_LINE>double y = xyGraph.primaryYAxis.getPositionValue(e.y, false);<NEW_LINE>if (x < 0 || y < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>double minDistance = 30.0d;<NEW_LINE>long time = 0;<NEW_LINE>double valu... | t.getDataProvider(), x); |
1,341,494 | public int viewToModel(float x, float y, Shape a, Position.Bias[] bias) {<NEW_LINE>int offs = -1;<NEW_LINE>if (!isAllocationValid()) {<NEW_LINE>Rectangle alloc = a.getBounds();<NEW_LINE>setSize(alloc.width, alloc.height);<NEW_LINE>}<NEW_LINE>// Get the child view for the line at (x,y), and ask it for the<NEW_LINE>// sp... | x, y, alloc, bias); |
1,573,743 | final List<JsonTag> computeTags(@NonNull final Document document) {<NEW_LINE>final ImmutableList.Builder<JsonTag> tags = ImmutableList.builder();<NEW_LINE>tags.add(JsonTag.of(GetAttachmentRouteConstants.ALBERTA_DOCUMENT_ID, document.getId()));<NEW_LINE>if (document.isArchived() != null) {<NEW_LINE>tags.add(JsonTag.of(G... | document.isArchived()))); |
835,843 | public PendingModifiedServiceUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PendingModifiedServiceUpdate pendingModifiedServiceUpdate = new PendingModifiedServiceUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar... | class).unmarshall(context)); |
103,742 | public void apply(Project project) {<NEW_LINE>project.getPlugins().apply(JavaBasePlugin.class);<NEW_LINE>project.getPlugins().apply(BaseConvention.class);<NEW_LINE>JavaInfo testJava = fetchTestJava(project);<NEW_LINE>project.getExtensions().getExtraProperties().set("testJava", testJava);<NEW_LINE>project.getExtensions(... | "Implementation-Title", project.getName()); |
511,583 | public static QueryTaskDetailListResponse unmarshall(QueryTaskDetailListResponse queryTaskDetailListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTaskDetailListResponse.setRequestId(_ctx.stringValue("QueryTaskDetailListResponse.RequestId"));<NEW_LINE>queryTaskDetailListResponse.setTotalItemNum(_ctx.integerValue("... | ("QueryTaskDetailListResponse.Data[" + i + "].TaskStatusCode")); |
651,118 | public void controlResized(ControlEvent e) {<NEW_LINE>Rectangle area = comp.getClientArea();<NEW_LINE>Point size = tref.computeSize(<MASK><NEW_LINE>ScrollBar vBar = tref.getVerticalBar();<NEW_LINE>int width = area.width - tref.computeTrim(0, 0, 0, 0).width - 2;<NEW_LINE>if (size.y > area.height + tref.getHeaderHeight()... | SWT.DEFAULT, SWT.DEFAULT); |
631,698 | public CoordinatorDynamicConfig build(CoordinatorDynamicConfig defaults) {<NEW_LINE>return new CoordinatorDynamicConfig(leadingTimeMillisBeforeCanMarkAsUnusedOvershadowedSegments == null ? defaults.getLeadingTimeMillisBeforeCanMarkAsUnusedOvershadowedSegments() : leadingTimeMillisBeforeCanMarkAsUnusedOvershadowedSegmen... | defaults.getMaxNonPrimaryReplicantsToLoad() : maxNonPrimaryReplicantsToLoad); |
58,615 | public final BeanDefinition parse(Element element, ParserContext parserContext) {<NEW_LINE>logger.debug("Initialization from <ff4j:" + TAG_PLACEHOLDER + "> TAG");<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition();<NEW_LINE>builder.getRawBeanDefinition().setBeanClass(FF4jPropertiesPl... | ).addPropertyValue("order", 2); |
1,189,901 | public MockResult dispatchGetRequest(HttpServletRequest request, HttpServletResponse response) throws DispatchException {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>if (qs != null && qs.toUpperCase().startsWith("WSDL")) {<NEW_LINE>dispatchWsdlRequest(request, response);<NEW_LINE>} else {<NEW_LINE>String docroot = Property... | String qs = request.getQueryString(); |
914,336 | protected NNList<RaytraceResult> doRayTraceAll(@Nonnull IBlockState bs, @Nonnull World world, @Nonnull BlockPos pos, @Nonnull Vec3d origin, @Nonnull Vec3d direction, EntityPlayer player) {<NEW_LINE>TileEntity te = world.getTileEntity(pos);<NEW_LINE>if (!(te instanceof IConduitBundle)) {<NEW_LINE>return NNList.emptyList... | maxY, component.bound.maxZ); |
1,001,663 | public ManifestIdentifier identify(Config config) {<NEW_LINE>final String manifestPath = config.manifest();<NEW_LINE>if (manifestPath.equals(Config.NONE)) {<NEW_LINE>return new ManifestIdentifier((String) null, null, null, null, null);<NEW_LINE>}<NEW_LINE>// Try to locate the manifest file as a classpath resource; fall... | resolve(config.assetDir()); |
461,127 | public static void invoke(HttpServletRequest request, HttpServletResponse response, WebServiceEndpoint endpoint) {<NEW_LINE>try {<NEW_LINE>WebServiceTesterServlet servlet = new WebServiceTesterServlet(endpoint);<NEW_LINE>response.setCharacterEncoding("UTF-8");<NEW_LINE>// Validate Host Header to help prevent Host Heade... | getMessage() }) + "</H3>"); |
892,832 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>urlLabel = new JLabel();<NEW_LINE>urlComboBox = new JComboBox<String>();<NEW_LINE>urlLabel.setLabelFor(urlComboBox);<NEW_LINE>// NOI18N<NEW_LINE>Mnemonics.setLocalizedText(urlLabel... | (AskForUrlPanel.class, "AskForUrlPanel.urlComboBox.AccessibleContext.accessibleName")); |
1,845,087 | final DetachVpnGatewayResult executeDetachVpnGateway(DetachVpnGatewayRequest detachVpnGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detachVpnGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DetachVpnGateway"); |
1,675,113 | public void endVisit(FieldDeclaration x, MethodScope scope) {<NEW_LINE>try {<NEW_LINE>JExpression initialization = pop(x.initialization);<NEW_LINE>JField field = typeMap.get(x.binding);<NEW_LINE>if (field instanceof JEnumField) {<NEW_LINE>// An enum field must be initialized!<NEW_LINE>assert (initialization instanceof ... | getBlock().addStmt(decl); |
1,558,876 | private boolean createVfTableMarkup() throws CancelledException, InvalidDataTypeException {<NEW_LINE>Address vfTableAddress = getDataAddress();<NEW_LINE><MASK><NEW_LINE>monitor.checkCanceled();<NEW_LINE>TypeDescriptorModel rtti0Model = model.getRtti0Model();<NEW_LINE>if (rtti0Model == null) {<NEW_LINE>return true;<NEW_... | Program program = model.getProgram(); |
1,820,702 | private SearchResult createSearchResult(Document doc, float score, int hitId, int totalHits) throws ParseException {<NEW_LINE>SearchResult result = new SearchResult();<NEW_LINE>result.hitId = hitId;<NEW_LINE>result.totalHits = totalHits;<NEW_LINE>result.score = score;<NEW_LINE>result.date = DateTools.stringToDate<MASK>... | (doc.get(FIELD_DATE)); |
1,122,329 | public void createPartControl(Composite parent) {<NEW_LINE>counterEngine = ServerManager.getInstance().<MASK><NEW_LINE>String objName = TextProxy.object.getLoadText(DateUtil.yyyymmdd(TimeUtil.getCurrentTime(serverId)), objHash, serverId);<NEW_LINE>setPartName(title + "[" + objName + "]");<NEW_LINE>parent.setLayout(new ... | getServer(serverId).getCounterEngine(); |
123,709 | final DeleteCommentResult executeDeleteComment(DeleteCommentRequest deleteCommentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCommentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
869,292 | public StreamingConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StreamingConfiguration streamingConfiguration = new StreamingConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | )).unmarshall(context)); |
738,423 | final DescribeStorageVirtualMachinesResult executeDescribeStorageVirtualMachines(DescribeStorageVirtualMachinesRequest describeStorageVirtualMachinesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeStorageVirtualMachinesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,713,717 | public static DescribeDnsGtmAddrAttributeInfoResponse unmarshall(DescribeDnsGtmAddrAttributeInfoResponse describeDnsGtmAddrAttributeInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDnsGtmAddrAttributeInfoResponse.setRequestId(_ctx.stringValue("DescribeDnsGtmAddrAttributeInfoResponse.RequestId"));<NEW_LINE>Lis... | ("DescribeDnsGtmAddrAttributeInfoResponse.Addr[" + i + "].AttributeInfo.LineName")); |
367,367 | public boolean insertDomain(Domain domain) {<NEW_LINE>int affectedRows;<NEW_LINE>final String caller = "insertDomain";<NEW_LINE>// we need to verify that our account and product ids are unique<NEW_LINE>// in the store. we can't rely on db uniqueness check since<NEW_LINE>// some of the domains will not have these attrib... | domain.getAccount(), caller); |
1,257,383 | public void run() throws Exception {<NEW_LINE>logger.info(String.format("Starting %s", getClass().getSimpleName()));<NEW_LINE>// hadoop conf should be on the classpath<NEW_LINE>JobConf jobconf = getJobConf();<NEW_LINE>jobconf.setJarByClass(WordCount.class);<NEW_LINE>jobconf.setOutputKeyClass(Text.class);<NEW_LINE><MASK... | jobconf.setOutputValueClass(IntWritable.class); |
955,294 | public void initialize() {<NEW_LINE>reset();<NEW_LINE>Hashtable<String, String> env = new Hashtable<>();<NEW_LINE>env.<MASK><NEW_LINE>// http://mail.openjdk.java.net/pipermail/net-dev/2017-March/010695.html<NEW_LINE>env.put("java.naming.provider.url", "dns://");<NEW_LINE>String servers = null;<NEW_LINE>try {<NEW_LINE>D... | put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.dns.DnsContextFactory"); |
1,152,678 | final CreateLocationS3Result executeCreateLocationS3(CreateLocationS3Request createLocationS3Request) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createLocationS3Request);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateLocationS3"); |
1,442,961 | private void updateCardsLayout() {<NEW_LINE>View mainView = getMainView();<NEW_LINE>if (mainView != null) {<NEW_LINE>LinearLayout cardsContainer = getCardsContainer();<NEW_LINE>View topShadow = getTopShadow();<NEW_LINE>FrameLayout bottomContainer = getBottomContainer();<NEW_LINE>if (bottomContainer == null) {<NEW_LINE>... | topShadow.setVisibility(View.INVISIBLE); |
1,089,966 | public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select * from " + "SupportMarketDataBean#length(5) " + "output every 6 events " + "order by price";<NEW_LINE>createAndSend(env, epl, milestone);<NEW_LINE>SymbolPricesVolumes spv = new ... | env, spv.volumes, "volume"); |
780,512 | public void visitMaxs(Collection<Integer> x_regs, int y_count, int fp_count, boolean isTailRecursive, Collection<Integer> dead_blocks) {<NEW_LINE>FunID me = new FunID(module_name, fun_name, arity);<NEW_LINE>this.funInfo = funInfos.get(me);<NEW_LINE>this.isTailRecursive = isTailRecursive;<NEW_LINE>this.deadBlocks = dead... | lambda = get_lambda_freevars(fun_name, arity); |
1,484,638 | public void updateUI() {<NEW_LINE>final UIDefaults uiDefaults = UIManager.getLookAndFeelDefaults();<NEW_LINE>GTKPlusUIUtil.updateUI();<NEW_LINE>fixPopupWeight();<NEW_LINE>fixGtkPopupStyle();<NEW_LINE>if (UIUtil.isUnderAquaLookAndFeel()) {<NEW_LINE>uiDefaults.put("Panel.opaque", Boolean.TRUE);<NEW_LINE>uiDefaults.put("S... | IntelliJEditorTabsUI.class.getName()); |
715,417 | public static SourceAttachmentResult updateSourceAttachment(IPackageFragmentRoot root, SourceAttachmentAttribute changedAttributes, IProgressMonitor monitor) {<NEW_LINE>ClasspathEntryWrapper entryWrapper = null;<NEW_LINE>try {<NEW_LINE>entryWrapper = getClasspathEntry(root);<NEW_LINE>} catch (Exception e) {<NEW_LINE>re... | updateProjectClasspath(javaProject, newClasspathEntry, monitor); |
318,706 | public void onSuccess(List<V2TIMMessage> v2TIMMessages) {<NEW_LINE>if (v2TIMMessages.size() == 0) {<NEW_LINE>CommonUtil.returnError(result, -1, "message not found");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final V2TIMMessage msg = mannager.createMergerMessage(v2TIMMessages, title, abstractList, compatibleText);<NEW_LINE>m... | , CommonUtil.convertV2TIMMessageToMap(v2TIMMessage)); |
1,460,540 | public void handleEvent(Message message, Machine machine, EventHandlerReturnReason outcome) {<NEW_LINE>for (GuardedValue<Event> entry : message.getEvent().getGuardedValues()) {<NEW_LINE>Event event = entry.getValue();<NEW_LINE>Guard eventPc = entry.getGuard();<NEW_LINE>assert (message.restrict(eventPc).getEvent().getGu... | ).getPayload(), outcome); |
851,395 | public static Point parseToPoint(String input, TimeUnit precision) {<NEW_LINE>if (precision == null) {<NEW_LINE>precision = TimeUnit.NANOSECONDS;<NEW_LINE>}<NEW_LINE>CharStream charStream = new ANTLRInputStream(input);<NEW_LINE>InfluxLineProtocolLexer lexer = new InfluxLineProtocolLexer(charStream);<NEW_LINE>TokenStrea... | parseIdentifier(line.identifier()); |
776,477 | public static DescribeCrossRegionLogBackupFilesResponse unmarshall(DescribeCrossRegionLogBackupFilesResponse describeCrossRegionLogBackupFilesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCrossRegionLogBackupFilesResponse.setRequestId(_ctx.stringValue("DescribeCrossRegionLogBackupFilesResponse.RequestId"));<NE... | (_ctx.stringValue("DescribeCrossRegionLogBackupFilesResponse.DBInstanceId")); |
1,491,192 | private void updateBackupStorageConfig(UUID customerUUID, UUID backupUUID, EditBackupParams taskParams) {<NEW_LINE>Backup backup = Backup.getOrBadRequest(customerUUID, backupUUID);<NEW_LINE>CustomerConfig existingConfig = CustomerConfig.get(customerUUID, backup.storageConfigUUID);<NEW_LINE>if (existingConfig != null &&... | = backup.getBackupInfo().storageConfigType; |
945,357 | private void createStatistic(Map<String, SamplingStatistic> statistics, MapResultData resultData) {<NEW_LINE>LOGGER.debug("Creating statistics for result data:{}", resultData);<NEW_LINE>SamplingStatistic statistic = new SamplingStatistic();<NEW_LINE>ListResultData listResultData = (ListResultData) resultData.getResult(... | 4)).getValue()); |
1,642,485 | public ProcessStatus processCheckPasswordAction(final PwmRequest pwmRequest) throws IOException, PwmUnrecoverableException, ChaiUnavailableException {<NEW_LINE>final RestCheckPasswordServer.JsonInput jsonInput = JsonFactory.get().deserialize(pwmRequest.readRequestBodyAsString(<MASK><NEW_LINE>final PwmSession pwmSession... | ), RestCheckPasswordServer.JsonInput.class); |
1,324,901 | /* (non-Javadoc)<NEW_LINE>* @see com.kkalice.adempiere.migrate.DBEngineInterface#sqlObject_createIndex(java.lang.String, java.lang.String, java.lang.String, boolean, java.lang.String, java.util.ArrayList, java.util.ArrayList, java.util.ArrayList)<NEW_LINE>*/<NEW_LINE>public String sqlObject_createIndex(String catalogNa... | (direction).append(" "); |
684,815 | private void accumulate(ActionLookupKey keyForDebugging, SkyValue value) {<NEW_LINE>boolean isConfiguredTarget = value instanceof ConfiguredTargetValue;<NEW_LINE>boolean isActionLookupValue = value instanceof ActionLookupValue;<NEW_LINE>if (!isConfiguredTarget && !isActionLookupValue) {<NEW_LINE>BugReport.sendBugReport... | ), keyForDebugging, value))); |
1,233,537 | public void execute() throws BuildException {<NEW_LINE>Banner.display(new PrintWriter(System.out, true));<NEW_LINE>try {<NEW_LINE>initLogger();<NEW_LINE>if (!getSupportedConfigFormats().contains(format)) {<NEW_LINE>throw new BuildException("Unsupported file format. Must be one of [" + String.join("|", getSupportedConfi... | outputDirectory.resolve("jreleaser." + format); |
1,775,665 | public void init(TbActorCtx ctx) throws TbActorException {<NEW_LINE>super.init(ctx);<NEW_LINE>log.debug("[{}] Starting tenant actor.", tenantId);<NEW_LINE>try {<NEW_LINE>Tenant tenant = systemContext.getTenantService().findTenantById(tenantId);<NEW_LINE>if (tenant == null) {<NEW_LINE>cantFindTenant = true;<NEW_LINE>log... | warn("[{}] Unknown failure", tenantId, e); |
27,132 | public static // TODO: Consistency with cut<NEW_LINE>String pad(String pSource, int pRequiredLength, String pPadString, boolean pPrepend) {<NEW_LINE>if (pPadString == null || pPadString.length() == 0) {<NEW_LINE>throw new IllegalArgumentException("Pad string: \"" + pPadString + "\"");<NEW_LINE>}<NEW_LINE>if (pSource.le... | 0, pSource).toString(); |
1,004,365 | static void performReplacements(FileContentsProvider fileContents, Replacements replacements) {<NEW_LINE>if (replacements.replacements.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Project project = fileContents.getProject();<NEW_LINE>Document document = PsiDocumentManager.getInstance(project<MASK><NEW_LINE>if (!ca... | ).getDocument(fileContents.file); |
808,811 | final GetControlResult executeGetControl(GetControlRequest getControlRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getControlRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
47,013 | public Resource execute(String[] fields) throws IllegalArgumentException, IOException {<NEW_LINE>if (fields.length < 3) {<NEW_LINE>System.out.println("Wrong IMAGE definition");<NEW_LINE>System.out.println("IMAGE name \"file\" [compression [mapopt [mapbase]]]");<NEW_LINE>System.out.println(" name Image variabl... | System.out.println(" 0 / NONE = no optimisation (each tile is unique)"); |
1,812,562 | // -------------------------------------------------------------------------<NEW_LINE>// XXX: QueryPart API<NEW_LINE>// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public final void accept(Context<?> ctx) {<NEW_LINE>switch(ctx.family()) {<NEW_LINE>case FIREBIRD:... | (), string, count)); |
1,527,956 | public void onDeleteClicked(final int position) {<NEW_LINE>final ListItem item = items.get(position);<NEW_LINE>if (item.value instanceof PoiUIFilterDataObject) {<NEW_LINE>PoiUIFilterDataObject poiInfo = (PoiUIFilterDataObject) item.value;<NEW_LINE>final PoiUIFilter filter = app.getPoiFilters().getFilterById(poiInfo.fil... | items.add(position, item); |
22,407 | public DescribeStackProvisioningParametersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeStackProvisioningParametersResult describeStackProvisioningParametersResult = new DescribeStackProvisioningParametersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE... | JsonToken token = context.getCurrentToken(); |
275,367 | public static Scalar fromNull(DType type) {<NEW_LINE>switch(type.typeId) {<NEW_LINE>case EMPTY:<NEW_LINE>case BOOL8:<NEW_LINE>return new Scalar(type, makeBool8Scalar(false, false));<NEW_LINE>case INT8:<NEW_LINE>return new Scalar(type, makeInt8Scalar((byte) 0, false));<NEW_LINE>case UINT8:<NEW_LINE>return new Scalar(typ... | .getScale(), false)); |
204,824 | public void replayRenameRollup(TableInfo tableInfo) throws MetaNotFoundException {<NEW_LINE>long dbId = tableInfo.getDbId();<NEW_LINE>long tableId = tableInfo.getTableId();<NEW_LINE>long indexId = tableInfo.getIndexId();<NEW_LINE>String newRollupName = tableInfo.getNewRollupName();<NEW_LINE>Database db = getInternalCat... | indexNameToIdMap.put(newRollupName, indexId); |
1,061,322 | public void storeInFileSystem0(@NonNull final PrintingData printingData) {<NEW_LINE><MASK><NEW_LINE>final ImmutableMultimap<Path, PrintingSegment> path2Segments = extractAndAssignPaths(baseDirectory, printingData);<NEW_LINE>logger.debug("Segments of given printingData are divided into {} different files; printingData={... | final String baseDirectory = getBaseDirectory(printingData); |
715,967 | protected List<List<Writable>> expandTimeStep(List<Writable> currentStepValues) {<NEW_LINE>if (writableMap == null) {<NEW_LINE>Map<String, List<Writable>> m = new HashMap<>();<NEW_LINE>for (Map.Entry<String, Integer> entry : wordIndexMap.entrySet()) {<NEW_LINE>m.put(entry.getKey(), Collections.<Writable>singletonList(n... | text.split(this.delimiter); |
904,836 | @NoCache<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>public Map<String, Object> impersonate() {<NEW_LINE>ProfileHelper.requireFeature(Profile.Feature.IMPERSONATION);<NEW_LINE>auth.users().requireImpersonate(user);<NEW_LINE>RealmModel authenticatedRealm = auth.adminAuth().getRealm();<NEW_LINE>// if same real... | "redirect", redirect.toString()); |
1,776,759 | public void testXAOptionBRollback() throws Exception {<NEW_LINE>prepareTRA();<NEW_LINE>resetData(keyMDBRollback03);<NEW_LINE>String deliveryID = "TX_test2c";<NEW_LINE>// construct a FVTMessage<NEW_LINE>FVTMessage message = new FVTMessage();<NEW_LINE>message.addTestResult("CMTNonJMSRequired", 213);<NEW_LINE>// Add a FVT... | XidImpl.createXid(23, 10); |
1,204,722 | protected Scope visitCreateTableAsSelect(CreateTableAsSelect node, Optional<Scope> scope) {<NEW_LINE>analysis.setUpdateType("CREATE TABLE");<NEW_LINE>// turn this into a query that has a new table writer node on top.<NEW_LINE>QualifiedObjectName targetTable = createQualifiedObjectName(session, <MASK><NEW_LINE>analysis.... | node, node.getName()); |
1,249,410 | final DisableSsoResult executeDisableSso(DisableSsoRequest disableSsoRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disableSsoRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Directory Service"); |
1,683,535 | public void rowAdded(TableRowCore row) {<NEW_LINE>if (row.getParentRowCore() == null) {<NEW_LINE>DownloadManager dm = (DownloadManager) row.getDataSource(true);<NEW_LINE>if (dm.getDownloadState().getBooleanAttribute(DownloadManagerState.AT_FILES_EXPANDED)) {<NEW_LINE>row.setExpanded(true);<NEW_LINE>}<NEW_LINE>boolean w... | ] selected = tv.getSelectedRows(); |
874,348 | public Object execute(CommandLine commandLine) throws Exception {<NEW_LINE>String project = commandLine.getValue(Options.PROJECT_OPTION);<NEW_LINE>String file = commandLine.getValue(Options.FILE_OPTION);<NEW_LINE>String propertiesOption = commandLine.getValue(Options.PROPERTIES_OPTION);<NEW_LINE>int offset = getOffset(... | ASTNodes.getTypeBinding(cu, type); |
14,553 | private ArrayList<NewConnectionSnippetParts> parseSnippet(String input) {<NEW_LINE>ArrayList<NewConnectionSnippetParts> parts = new ArrayList<>();<NEW_LINE>RegExp regExp = RegExp.compile(pattern_, "g");<NEW_LINE>for (MatchResult matcher = regExp.exec(input); matcher != null; matcher = regExp.exec(input)) {<NEW_LINE>if ... | (matcher.getGroup(1)); |
367,653 | public CodegenClass forge(boolean includeDebugSymbols, boolean fireAndForget) {<NEW_LINE>if (!dataflowOperatorFields && !packageScope.hasAnyFields()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<MemberFieldPair> memberFields = getMembers();<NEW_LINE>int maxMembersPerClass = Math.max(1, packageScope.getConfig().getI... | CollectionUtil.subdivide(memberFields, maxMembersPerClass); |
77,588 | public static Optional<SuggestedFix> suggestExemptingAnnotation(String exemptingAnnotation, TreePath where, VisitorState state) {<NEW_LINE>// TODO(bangert): Support annotations that do not have @Target(CLASS).<NEW_LINE>if (exemptingAnnotation.equals("com.google.errorprone.annotations.DontSuggestFixes")) {<NEW_LINE>retu... | exemptingAnnotationType = state.getTypeFromString(exemptingAnnotation); |
717,795 | protected void rehash(int newCapacity) {<NEW_LINE>int oldCapacity = table.length;<NEW_LINE>// if (oldCapacity == newCapacity) return;<NEW_LINE>int[] oldTable = table;<NEW_LINE>double[] oldValues = values;<NEW_LINE>byte[] oldState = state;<NEW_LINE>this<MASK><NEW_LINE>this.values = new double[newCapacity];<NEW_LINE>this... | .table = new int[newCapacity]; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.