idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
879,920 | private boolean scopeStatement() {<NEW_LINE>boolean hasReturn = false;<NEW_LINE>boolean newLexicalScope = this.scope.newLexicalScope;<NEW_LINE>this.scope.newLexicalScope = true;<NEW_LINE>// prepare to call __if_callcc(result, statements)<NEW_LINE>getCodeGeneratorWithTimes(<MASK><NEW_LINE>// Create a lambda to wrap the ... | ).onMethodName(Constants.IfReturnFn); |
1,805,019 | public void run() {<NEW_LINE>try {<NEW_LINE>if (SecurityUtils.isSecurityEnabled(mConfiguration) && AuthenticatedClientUser.get(mConfiguration) == null) {<NEW_LINE>AuthenticatedClientUser.set(mUserState.getUser().getName());<NEW_LINE>}<NEW_LINE>} catch (IOException e) {<NEW_LINE>LOG.error("Failed to set AuthenticatedCli... | currentThread().setName(mThreadName); |
1,495,044 | public void init() {<NEW_LINE>mailboxes = new DefaultTreeNode("root", null);<NEW_LINE>TreeNode inbox = new DefaultTreeNode("i", "Inbox", mailboxes);<NEW_LINE>TreeNode sent = new DefaultTreeNode("s", "Sent", mailboxes);<NEW_LINE>TreeNode trash = new DefaultTreeNode("t", "Trash", mailboxes);<NEW_LINE>TreeNode junk = new ... | "Revision:4490 Author:cagatay.civici", new Date())); |
266,334 | protected void handleCloseConsumer(CommandCloseConsumer closeConsumer) {<NEW_LINE>checkArgument(state == State.Connected);<NEW_LINE>log.info("[{}] Closing consumer: consumerId={}", remoteAddress, closeConsumer.getConsumerId());<NEW_LINE>long requestId = closeConsumer.getRequestId();<NEW_LINE>long consumerId = closeCons... | info("[{}] Closed consumer before its creation was completed. consumerId={}", remoteAddress, consumerId); |
1,778,942 | ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>if (!bus... | CacheManager.notify(TemplatePage.class); |
421,101 | protected Object createNode(JSContext context, JSBuiltin builtin, boolean construct, boolean newTarget, TemporalDurationPrototype builtinEnum) {<NEW_LINE>switch(builtinEnum) {<NEW_LINE>case years:<NEW_LINE>case months:<NEW_LINE>case weeks:<NEW_LINE>case days:<NEW_LINE>case hours:<NEW_LINE>case minutes:<NEW_LINE>case se... | 2).createArgumentNodes(context)); |
715,267 | public void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Transaction.runVoid(() -> {<NEW_LINE>g.setColor(holeColor);<NEW_LINE>for (Polygon o : obstacles) {<NEW_LINE>g.fillPolygon(o);<NEW_LINE>for (int i = 0; i < o.npoints; i++) g.drawImage(coneImg, o.xpoints[i] - 14, o.ypoints[i] - 53, null);... | .getDefaultToolkit().sync(); |
78,295 | public Parent createContent() {<NEW_LINE>VBox vbox = new VBox(5);<NEW_LINE>vbox.setPadding(new Insets(12));<NEW_LINE>TableView tableView = new TableView();<NEW_LINE><MASK><NEW_LINE>button.setOnAction((ActionEvent t) -> {<NEW_LINE>service.restart();<NEW_LINE>});<NEW_LINE>vbox.setPrefHeight(160);<NEW_LINE>vbox.getChildre... | Button button = new Button("Refresh"); |
1,725,037 | @JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>@Consumes(MediaType.MULTIPART_FORM_DATA)<NEW_LINE>public final Response createApp(@Context final HttpServletRequest request, @Context final HttpServletResponse response, final FormDataMultiPart multipart) {<NE... | (apps)).build(); |
1,310,689 | public SearchHits<ExtensionSearch> search(Options options, Pageable pageRequest) {<NEW_LINE>var queryBuilder = new NativeSearchQueryBuilder().withPageable(pageRequest);<NEW_LINE>if (!Strings.isNullOrEmpty(options.queryString)) {<NEW_LINE>var boolQuery = QueryBuilders.boolQuery();<NEW_LINE>boolQuery.should(QueryBuilders... | QueryBuilders.prefixQuery("displayName", prefixString); |
309,541 | public static <T> T decode(String string, Decoder<T> decoder) {<NEW_LINE>try {<NEW_LINE>StringReader stringReader = new StringReader(string);<NEW_LINE>JsonReader jsonReader = new JsonReader(stringReader);<NEW_LINE>jsonReader.readStartDocument();<NEW_LINE>jsonReader.readName(VALUE);<NEW_LINE>T value = decoder.decode(jso... | BSON_CODEC_NOT_FOUND, "Could not resolve decoder for end type" + string, e); |
94,448 | public void marshall(CreateInstanceRequest createInstanceRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createInstanceRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createInstanceRequest... | createInstanceRequest.getAvailabilityZone(), AVAILABILITYZONE_BINDING); |
1,691,697 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>URI uri = service.uriFromRequest(request);<NEW_LINE>if (uri == null) {<NEW_LINE>service.sendError(request, response);<NEW_LINE>} else {<NEW_LINE>Request httpRequest = httpClient.newRequest(uri)... | HttpFields headers = httpResponse.getHeaders(); |
1,367,983 | private void refreshRemoteVideo() {<NEW_LINE>if (mRemoteUserIdList.size() > 0) {<NEW_LINE>for (int i = 0; i < mRemoteUserIdList.size() || i < 6; i++) {<NEW_LINE>if (i < mRemoteUserIdList.size() && !TextUtils.isEmpty(mRemoteUserIdList.get(i))) {<NEW_LINE>mRemoteVideoList.get(i).setVisibility(View.VISIBLE);<NEW_LINE>mRem... | (i).setText(""); |
1,274,384 | public static String throwableToHttpError(Throwable throwable) {<NEW_LINE>String errorMessage = null;<NEW_LINE>APIError error = null;<NEW_LINE>if (throwable instanceof HttpException) {<NEW_LINE>HttpException exception = (HttpException) throwable;<NEW_LINE>Response response = exception.response();<NEW_LINE>ResponseBody ... | error = converter.convert(responseBody); |
1,426,604 | private CreateLinkedTable parseCreateLinkedTable(boolean temp, boolean globalTemp, boolean force) {<NEW_LINE>read(TABLE);<NEW_LINE>boolean ifNotExists = readIfNotExists();<NEW_LINE>String tableName = readIdentifierWithSchema();<NEW_LINE>CreateLinkedTable command = new CreateLinkedTable(session, getSchema());<NEW_LINE>c... | command.setPassword(readString()); |
1,553,732 | public void load() {<NEW_LINE>jTFLogFileName.setText(ConfigOptions.sLogFileName);<NEW_LINE>jTFPath.setText(ConfigOptions.sPaths);<NEW_LINE>try {<NEW_LINE>List<String> mainPaths = ConfigFile.getConfigFile().getRecentMainPaths(ConfigFile.APP_DM);<NEW_LINE>String[] paths = null;<NEW_LINE>if (mainPaths != null && !mainPath... | textFileBuffer.setText(ConfigOptions.sFileBuffer); |
430,143 | private // }<NEW_LINE>IStatus convertRooWorkspacePreferences(SubMonitor sub) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>sub.subTask("Converting Roo plugin state locations");<NEW_LINE>try {<NEW_LINE>// Let RooInstallManager migrate the roo.installs content<NEW_LINE>// copyPluginStateLocation(ROO_OLD_PLUGIN_NAME, ROO_NEW_PLUGIN_... | OK, FrameworkCoreActivator.PLUGIN_ID, "Converted legacy Roo plugin state locations"); |
1,467,226 | private Shape createBalloonShape(int width, int height) {<NEW_LINE>int arc = UIScale.scale(ARC);<NEW_LINE>int xy = UIScale.scale(ARROW_XY);<NEW_LINE>int awh = UIScale.scale(ARROW_SIZE);<NEW_LINE>Shape rect;<NEW_LINE>Shape arrow;<NEW_LINE>switch(direction) {<NEW_LINE>case SwingConstants.LEFT:<NEW_LINE>rect = new RoundRe... | int y = height - 1 - awh; |
751,707 | public static void customizePrefernces() {<NEW_LINE>final IMsgBL msgBL = Services.get(IMsgBL.class);<NEW_LINE>final Border insetBorder = BorderFactory.createEmptyBorder(<MASK><NEW_LINE>final FlowLayout flowLayout = new FlowLayout(FlowLayout.LEFT);<NEW_LINE>final CPanel dlmPanel = new CPanel();<NEW_LINE>dlmPanel.setLayo... | 2, 2, 2, 0); |
1,836,737 | public void check() throws SQLException {<NEW_LINE>super.check();<NEW_LINE>originalPredicate = generatePredicate();<NEW_LINE>select.setWhereClause(originalPredicate);<NEW_LINE>String originalQueryString = CockroachDBVisitor.asString(select);<NEW_LINE>List<String> resultSet = ComparatorHelper.getResultSetFirstColumnAsSt... | boolean allowOrderBy = Randomly.getBoolean(); |
237,426 | public static DescribeBlockedRegionsResponse unmarshall(DescribeBlockedRegionsResponse describeBlockedRegionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeBlockedRegionsResponse.setRequestId(_ctx.stringValue("DescribeBlockedRegionsResponse.RequestId"));<NEW_LINE>List<InfoItem> infoList = new ArrayList<InfoItem... | ("DescribeBlockedRegionsResponse.InfoList[" + i + "].Continent")); |
1,670,073 | public Map<Long, Data> drain(int maxSize) {<NEW_LINE>int maxSizeParam = maxSize;<NEW_LINE>if (maxSizeParam < 0 || maxSizeParam > getItemQueue().size()) {<NEW_LINE>maxSizeParam <MASK><NEW_LINE>}<NEW_LINE>Map<Long, Data> map = createLinkedHashMap(maxSizeParam);<NEW_LINE>mapDrainIterator(maxSizeParam, map);<NEW_LINE>if (s... | = getItemQueue().size(); |
417,887 | public static NodeWrapper newInstance(final BoltDatabaseService db, final long id) {<NEW_LINE>NodeWrapper wrapper;<NEW_LINE>synchronized (nodeCache) {<NEW_LINE><MASK><NEW_LINE>if (wrapper == null) {<NEW_LINE>// || wrapper.stale) {<NEW_LINE>final SessionTransaction tx = db.getCurrentTransaction();<NEW_LINE>final String ... | wrapper = nodeCache.get(id); |
955,314 | private AppendEntriesRequest prepareRequest(List<ByteBuffer> logList, List<SendLogRequest> currBatch, int firstIndex) {<NEW_LINE>AppendEntriesRequest request = new AppendEntriesRequest();<NEW_LINE>if (member.getHeader() != null) {<NEW_LINE>request.setHeader(member.getHeader());<NEW_LINE>}<NEW_LINE>request.<MASK><NEW_LI... | setLeader(member.getThisNode()); |
1,423,464 | private void writeTo(Device device, AuditLogger auditLogger, JsonWriter writer) {<NEW_LINE>writer.writeStartObject();<NEW_LINE>writer.writeNotNullOrDef("cn", auditLogger.getCommonName(), null);<NEW_LINE>writer.writeNotNullOrDef("dcmAuditRecordRepositoryDeviceName", auditLogger.getAuditRecordRepositoryDeviceNameNotNull(... | ), AuditLogger.Severity.crit); |
176,003 | public ConditionStepMetadata unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ConditionStepMetadata conditionStepMetadata = new ConditionStepMetadata();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t... | JsonToken token = context.getCurrentToken(); |
334,082 | protected AbstractBeanDefinition doParse(Element element, ParserContext parserContext, String channelName) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(SyslogReceivingChannelAdapterFactoryBean.class);<NEW_LINE>String protocol = element.getAttribute("protocol");<NEW_LINE>if (!St... | ).error("When child element 'udp-attributes' is present, 'port' must be defined there", element); |
186,921 | private static DataTable buildEmptyDataTableForDistinctQuery(QueryContext queryContext) throws IOException {<NEW_LINE>AggregationFunction[] aggregationFunctions = queryContext.getAggregationFunctions();<NEW_LINE>assert aggregationFunctions != null && aggregationFunctions.length == 1 && aggregationFunctions[0] instanceo... | ] { ColumnDataType.OBJECT })); |
1,071,473 | public void addAnomalyTS(CombinedDomainXYPlot plot, DataSequence observedSeries, DataSequence expectedSeries) {<NEW_LINE>// Compute the time-series of errors.<NEW_LINE>HashMap<String, ArrayList<Float>> allErrors = aes.initAnomalyErrors(observedSeries, expectedSeries);<NEW_LINE>Float sDAutoSensitivity = (float) 0.0;<NEW... | plot.add(subplot1, 1); |
1,314,407 | public void onPurchasesUpdated(boolean isFailed, int resultCode, List<MegaPurchase> purchases) {<NEW_LINE>if (isFailed) {<NEW_LINE>logWarning("Update purchase failed, with result code: " + resultCode);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PurchaseType purchaseResult;<NEW_LINE>if (purchases != null && !purchases.isEmpty... | purchase = purchases.get(0); |
1,173,145 | public void savePreset(String name, Layout layout) {<NEW_LINE>Preset preset = addPreset(new Preset(name, layout));<NEW_LINE>FileOutputStream fos = null;<NEW_LINE>try {<NEW_LINE>// Create file if dont exist<NEW_LINE>FileObject folder = FileUtil.getConfigFile("layoutpresets");<NEW_LINE>if (folder == null) {<NEW_LINE>fold... | .newInstance().newTransformer(); |
443,274 | public static boolean isJoinKeyHaveSameType(Join join) {<NEW_LINE>JoinInfo joinInfo = join.analyzeCondition();<NEW_LINE>RelDataType keyDataType = CalciteUtils.getJoinKeyDataType(join.getCluster().getTypeFactory(), join, joinInfo.leftKeys, joinInfo.rightKeys);<NEW_LINE>List<RelDataTypeField> keyDataFieldList = keyDataTy... | RelDataType t2 = t2Field.getType(); |
438,977 | public void deduplicate(PhysicalGenerator physicalGenerator) {<NEW_LINE>Set<String> pathWithAggregationSet = new LinkedHashSet<>();<NEW_LINE>List<String> deduplicatedAggregations = new ArrayList<>();<NEW_LINE>HashSet<String> measurements = new HashSet<>(getMeasurements());<NEW_LINE>for (int i = 0; i < paths.size(); i++... | deduplicatePaths.size() - 1); |
318,042 | public final void arraySliceExpr() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST arraySliceExpr_AST = null;<NEW_LINE>{<NEW_LINE>switch(LA(1)) {<NEW_LINE>case DOTDOT:<NEW_LINE>{<NEW_LINE>AST tmp65_AST = null;<NEW_LINE>tmp65_AST = ... | astFactory.addASTChild(currentAST, tmp65_AST); |
652,069 | public static void assertPropsEquals(EventPropertyDescriptor[] received, SupportEventPropDesc... expected) {<NEW_LINE>assertEquals(<MASK><NEW_LINE>Map<String, EventPropertyDescriptor> receivedProps = new HashMap<>();<NEW_LINE>for (EventPropertyDescriptor descReceived : received) {<NEW_LINE>if (receivedProps.containsKey... | received.length, expected.length); |
368,962 | public void tableswitch(CaseLabel defaultLabel, int low, int high, int[] keys, int[] sortedIndexes, int[] mapping, CaseLabel[] casesLabel) {<NEW_LINE>this.countLabels = 0;<NEW_LINE>this.stackDepth--;<NEW_LINE>popTypeBinding();<NEW_LINE>int length = casesLabel.length;<NEW_LINE>int pos = this.position;<NEW_LINE>defaultLa... | = sortedIndexes[j - low]]; |
1,183,841 | private void genChunk(ZonePlannerMapChunkKey key) {<NEW_LINE>ZonePlannerMapChunk zonePlannerMapChunk = ZonePlannerMapDataClient.INSTANCE.getChunk(Minecraft.getMinecraft().world, key);<NEW_LINE>if (zonePlannerMapChunk == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BufferBuilder builder = Tessellator.getInstance().getBu... | glList = GL11.glGenLists(1); |
52,084 | public void onCreate() {<NEW_LINE>debug("ImService started");<NEW_LINE>final String prev = <MASK><NEW_LINE>if (prev != null)<NEW_LINE>Debug.recordTrail(this, PREV_SERVICE_CREATE_TRAIL_TAG, prev);<NEW_LINE>Debug.recordTrail(this, SERVICE_CREATE_TRAIL_KEY, new Date());<NEW_LINE>final String prevConnections = Debug.getTra... | Debug.getTrail(this, SERVICE_CREATE_TRAIL_KEY); |
1,375,677 | public int literalIndex(long key) {<NEW_LINE>// Retrieve the index from the cache<NEW_LINE>// The long constant takes two indexes into the constant pool, but we only store<NEW_LINE>// the first index into the long table<NEW_LINE>int index;<NEW_LINE>// lazy initialization for base type caches<NEW_LINE>// If it is null, ... | offsets[index] = this.currentOffset; |
1,681,179 | protected void resolveDiscriminatorProperty(JavaType type, ModelConverterContext context, Schema model) {<NEW_LINE>// add JsonTypeInfo.property if not member of bean<NEW_LINE>JsonTypeInfo typeInfo = type.getRawClass(<MASK><NEW_LINE>if (typeInfo != null) {<NEW_LINE>String typeInfoProp = typeInfo.property();<NEW_LINE>if ... | ).getDeclaredAnnotation(JsonTypeInfo.class); |
1,491,425 | private void initAddTagLabels(NBTTreeView nbtTreeView, Map<Integer, Label> addTagLabels, BorderPane treeViewHolder, Consumer<CompoundTag> consumer) {<NEW_LINE>addTagLabels.put(1, iconLabel("img/nbt/byte", ByteTag::new<MASK><NEW_LINE>addTagLabels.put(2, iconLabel("img/nbt/short", ShortTag::new, nbtTreeView, treeViewHold... | , nbtTreeView, treeViewHolder, consumer)); |
229,270 | public int match() {<NEW_LINE>int counter = 0;<NEW_LINE>// (a) Direct Matches<NEW_LINE>// 1..2<NEW_LINE>String // 1..2<NEW_LINE>sql = // 3..5<NEW_LINE>"SELECT m1.AD_Client_ID,m2.AD_Org_ID, " + // 6..9<NEW_LINE>"m1.C_InvoiceLine_ID,m2.M_InOutLine_ID,m1.M_Product_ID, " + "m1.DateTrx,m2.DateTrx, m1.Qty, m2.Qty " + "FROM M... | "Matcher.match - Client_ID=" + m_AD_Client_ID + ", Records created=" + counter); |
1,343,676 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see<NEW_LINE>* com.amazonaws.services.s3.AmazonS3#deleteObjects(com.amazonaws.services<NEW_LINE>* .s3.model.DeleteObjectsRequest)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public DeleteObjectsResult deleteObjects(DeleteObjectsRequest deleteObjectsRequest) {<NEW_LINE>final Request<D... | md5 = Md5Utils.computeMD5Hash(content); |
884,939 | public static AST.While GetWhile() throws ParseAlgorithmException {<NEW_LINE>MustGobbleThis("while");<NEW_LINE>PCalLocation beginLoc = GetLastLocationStart();<NEW_LINE>AST.While result = new AST.While();<NEW_LINE>result.col = lastTokCol;<NEW_LINE>result.line = lastTokLine;<NEW_LINE>if (cSyntax) {<NEW_LINE>GobbleThis("(... | result.labDo = new Vector(); |
1,024,912 | public void syrk(char Order, char Uplo, char Trans, double alpha, INDArray A, double beta, INDArray C) {<NEW_LINE>if (Nd4j.getExecutioner().getProfilingMode() == OpExecutioner.ProfilingMode.ALL)<NEW_LINE>OpProfiler.getInstance().processBlasCall(false, A, C);<NEW_LINE>if (C.rows() > Integer.MAX_VALUE || A.size(0) > Inte... | ) C.size(0)); |
407,398 | public S3Config createS3Config(S3ConfigCreateRequest body, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling cr... | , apiClient.parameterToString(xSdsAuthToken)); |
7,807 | public static String genSortTextForModule(BallerinaCompletionContext context, LSCompletionItem item) {<NEW_LINE>Optional<Project> currentProject = context.workspace().project(context.filePath());<NEW_LINE>String currentOrg = currentProject.get().currentPackage().packageOrg().value();<NEW_LINE>String currentPkgName = cu... | .packageName().value(); |
1,711,662 | // COM_INIT_DB: change current database of this session.<NEW_LINE>private void handleInitDb() {<NEW_LINE>String fullDbName = new String(packetBuf.array(), 1, packetBuf.limit() - 1);<NEW_LINE>if (Strings.isNullOrEmpty(ctx.getClusterName())) {<NEW_LINE>ctx.getState().setError(ErrorCode.ERR_CLUSTER_NAME_NULL, "Please ente... | ErrorCode.ERR_BAD_DB_ERROR, "No match catalog in doris: " + fullDbName); |
1,780,349 | public Result processWorkPackage(final I_C_Queue_WorkPackage workpackage, final String localTrxName) {<NEW_LINE>final IWorkpackageParamDAO workpackageParamDAO = Services.get(IWorkpackageParamDAO.class);<NEW_LINE>final IParams <MASK><NEW_LINE>Services.get(IStorageBL.class).add(InterfaceWrapperHelper.getCtx(workpackage),... | params = workpackageParamDAO.retrieveWorkpackageParams(workpackage); |
1,044,752 | private boolean restoreState() {<NEW_LINE>BufferedReader br = null;<NEW_LINE>chunks = new ArrayList<Segment>();<NEW_LINE>File file = new File(folder, "state.txt");<NEW_LINE>if (!file.exists()) {<NEW_LINE>file = getBackupFile(folder);<NEW_LINE>if (file == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>try... | cid, off, len, dwn); |
1,087,102 | private void filterAllInterceptorAnnotations() {<NEW_LINE>invocationInterceptors = new ArrayList<>();<NEW_LINE>BeanManager beanManager = interfaceModel.context().beanManager();<NEW_LINE>if (beanManager != null) {<NEW_LINE>Set<Annotation> <MASK><NEW_LINE>for (Annotation annotation : method.getAnnotations()) {<NEW_LINE>i... | interceptorAnnotations = new HashSet<>(); |
437,706 | private void performTraining(boolean parallel, DataSet dataSet) {<NEW_LINE>ExecutorService threadPool = ParallelUtils.getNewExecutor(parallel);<NEW_LINE>int chunkSize = iterations / SystemInfo.LogicalCores;<NEW_LINE>int extra = iterations % SystemInfo.LogicalCores;<NEW_LINE>int used = 0;<NEW_LINE>Random rand = RandomUt... | 0 ? SystemInfo.LogicalCores : extra); |
164,664 | public void onCreate() {<NEW_LINE>SharedPreferences themePrefs = getSharedPreferences("THEME", 0);<NEW_LINE>Boolean isDark = themePrefs.getBoolean("isDark", false);<NEW_LINE>if (isDark)<NEW_LINE>setTheme(R.style.DarkTheme);<NEW_LINE>else<NEW_LINE>setTheme(R.style.AppTheme);<NEW_LINE>super.onCreate();<NEW_LINE>ACRA.init... | builder.getPluginConfigurationBuilder(NotificationConfigurationBuilder.class); |
718,564 | private void handleCheckRequest(HttpExchange httpExchange, Map<String, String> parameters, ErrorRequestLimiter errorRequestLimiter, String remoteAddress, HTTPServerConfig config) throws Exception {<NEW_LINE>AnnotatedText aText;<NEW_LINE>if (parameters.containsKey("text") && parameters.containsKey("data")) {<NEW_LINE>th... | (parameters.get("data")); |
734,410 | private void writeAuxiliaryData(AuxiliaryConfiguration conf, String property, String value, boolean shared) {<NEW_LINE>Element el = getOrCreateRootElement(conf, shared);<NEW_LINE>Element enEl;<NEW_LINE>NodeList list = <MASK><NEW_LINE>if (list.getLength() > 0) {<NEW_LINE>enEl = (Element) list.item(0);<NEW_LINE>} else {<... | el.getElementsByTagNameNS(NAMESPACE, property); |
630,550 | public void testEditProjectAccessPanel() {<NEW_LINE>String[] knownUsers = { "user1", "user2", "user3", "user4", "user5", "user6" };<NEW_LINE>ArrayList<User> userList = new ArrayList<>();<NEW_LINE>userList.add(new User("user2", 2));<NEW_LINE>userList.add(new User("user4", 0));<NEW_LINE>userList.add(new User("user5", 1))... | "Demo", false, false, tool); |
585,250 | private void createInstanceFieldSetterMethod() {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC, mInstanceFieldSetterName, mInstanceFieldSetterDescriptor, null, null);<NEW_LINE>final int lvNewValue = 1;<NEW_LINE>final int lvInstance = 2;<NEW_LINE>final int lvName = 3;<NEW_LINE>mv.visitVarInsn(ALOAD, lvThis);<NEW... | mv.visitVarInsn(ALOAD, lvName); |
620,120 | public static void main(String[] args) throws Exception {<NEW_LINE>StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();<NEW_LINE>env.setParallelism(1);<NEW_LINE>env.enableCheckpointing(10000);<NEW_LINE>StreamTableEnvironment <MASK><NEW_LINE>tenv.executeSql("CREATE CATALOG iceberg WITH ... | tenv = StreamTableEnvironment.create(env); |
1,331,353 | private boolean checkCRCChecksum(byte[] data, final ChunkInfo ci, boolean hasZF) {<NEW_LINE>if (data == null || data.length == 0)<NEW_LINE>return false;<NEW_LINE>final Checksum checksum = new CRC32();<NEW_LINE>checksum.update(data, 0, data.length);<NEW_LINE>final <MASK><NEW_LINE>final long expectedChecksum = ci.getChec... | long currentChecksum = checksum.getValue(); |
456,594 | private static void createNode(final INaviView view, final INaviFunction function, final IBlockNode blockNode, final Map<IBlockNode, CCodeNode> map, final INaviGroupNode parentGroup) {<NEW_LINE>final List<INaviInstruction> instructions = new ArrayList<INaviInstruction>();<NEW_LINE>final List<CCodeNode> createNodes = ne... | (221, 234, 244)); |
50,585 | public Object hash(DataCommandsParam dataCommandsParam) {<NEW_LINE>AutoCommandResult autoCommandResult = new AutoCommandResult();<NEW_LINE>String command = dataCommandsParam.getCommand();<NEW_LINE>String[] list = SignUtil.splitBySpace(command);<NEW_LINE>String cmd = command.toUpperCase();<NEW_LINE>String key = list[1];... | result = jedisCluster.hgetAll(key); |
1,061,075 | public void resetMrpForecasts(ActionRequest request, ActionResponse response) {<NEW_LINE>Context context = request.getContext();<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>ArrayList<LinkedHashMap<String, Object>> mrpForecastList = (ArrayList<LinkedHashMap<String, Object>>) context.get("mrpForecasts");<NEW_LINE>Bi... | ("sopSalesForecast").toString()); |
1,223,439 | public ValidationErrors validate(ChangeSet changeSet) {<NEW_LINE>//<NEW_LINE>// If no runWith setting then just go back<NEW_LINE>//<NEW_LINE>if (changeSet.getRunWith() == null || changeSet.getRunWith().isEmpty()) {<NEW_LINE>return new ValidationErrors();<NEW_LINE>}<NEW_LINE>//<NEW_LINE>// License check<NEW_LINE>//<NEW_... | changeSet, validationErrors, change, ""); |
788,875 | final DisassociateTransitGatewayRouteTableResult executeDisassociateTransitGatewayRouteTable(DisassociateTransitGatewayRouteTableRequest disassociateTransitGatewayRouteTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateTransitGatewayRouteTableRequest);<NEW_LINE>AWSRequestMet... | invoke(request, responseHandler, executionContext); |
250,540 | private void handleStreamEventExpandedNotifications(String status, String target, String circuitId, String clientProtocol) {<NEW_LINE>if (!status.equals(TorControlCommands.STREAM_EVENT_SUCCEEDED))<NEW_LINE>return;<NEW_LINE>if (!clientProtocol.contains("SOCKS5"))<NEW_LINE>return;<NEW_LINE>int id = Integer.parseInt(circu... | "", countryCode).getDisplayName(); |
1,347,736 | /* (non-Javadoc)<NEW_LINE>* @see com.webank.weid.service.impl.engine.IssuerContractController<NEW_LINE>* #registerIssuerType(java.lang.String)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public ResponseData<Boolean> registerIssuerType(String issuerType, String privateKey) {<NEW_LINE>try {<NEW_LINE>SpecificIssuerController ... | (issuerType)).send(); |
859,910 | public void write(@NotNull final ChannelHandlerContext ctx, @NotNull final Object msg, @NotNull final ChannelPromise promise) throws Exception {<NEW_LINE>if (msg instanceof PUBLISH) {<NEW_LINE>final PUBLISH publish = (PUBLISH) msg;<NEW_LINE>checkAndSetPublishExpiry(publish);<NEW_LINE>final boolean expireInflight = Inte... | fireUserEventTriggered(new PublishDroppedEvent(publish)); |
883,916 | static FuncInfo parse(CParser.DeclarationContext ctx) {<NEW_LINE>FuncInfo info = new FuncInfo();<NEW_LINE>List<CParser.DeclarationSpecifierContext> specs = ctx.declarationSpecifiers().declarationSpecifier();<NEW_LINE>List<DataType> dataTypes = DataType.parseDataTypes(specs);<NEW_LINE>info.setReturnType(dataTypes.get(0)... | dataType, name.getText()); |
1,841,980 | public static String generateFunction(DocumentServiceContext context, boolean newLineAtStart, String functionName, List<String> args, TypeDescKind returnTypeDescKind, boolean isolated) {<NEW_LINE>String returnType = null;<NEW_LINE>if (returnTypeDescKind != TypeDescKind.COMPILATION_ERROR) {<NEW_LINE>returnType = Functio... | returnsClause, returnStmt, newLineAtStart, isolated); |
1,821,925 | public static DescribeDcdnRegionAndIspResponse unmarshall(DescribeDcdnRegionAndIspResponse describeDcdnRegionAndIspResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnRegionAndIspResponse.setRequestId(_ctx.stringValue("DescribeDcdnRegionAndIspResponse.RequestId"));<NEW_LINE>List<Region> regions = new ArrayList<R... | = new ArrayList<Isp>(); |
1,488,752 | public String transform() {<NEW_LINE>try {<NEW_LINE>DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder builder = factory.newDocumentBuilder();<NEW_LINE>Document document = builder.newDocument();<NEW_LINE>TransformElementFactory elementFactory = new TransformElementFactory();... | element = elementFactory.getDeclaringTypeWriterElement(declaringType); |
1,026,890 | public void visitMethodInsn(final int opcode, final String owner, final String name, final String desc) {<NEW_LINE>// Special case method invocations for name translation.<NEW_LINE>// Specifically to deal with methods mirrors.<NEW_LINE>String newOwner = owner;<NEW_LINE>int newOpcode = opcode;<NEW_LINE>String newDesc = ... | newArgTypes, 1, argTypes.length); |
387,880 | public boolean onItemClick(EasyRecyclerView parent, View view, int position, long id) {<NEW_LINE>if (null == mHelper || null == mRecyclerView) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>GalleryInfo gi = mHelper.getDataAtEx(position);<NEW_LINE>if (gi == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Bundle args = n... | setTranHelper(new EnterGalleryDetailTransaction(thumb)); |
66,999 | private static IndexEntry parseIndexEntry(XContentParser parser) throws IOException {<NEW_LINE>List<AliasMetaData> indexAliases = null;<NEW_LINE>ImmutableOpenMap<String, MappingMetaData> indexMappings = null;<NEW_LINE>Settings indexSettings = null;<NEW_LINE>Settings indexDefaultSettings = null;<NEW_LINE>// We start at ... | indexDefaultSettings = Settings.fromXContent(parser); |
927,686 | private MOrder createCounterDoc() {<NEW_LINE>// Is this itself a counter doc ?<NEW_LINE>if (getRef_Order_ID() != 0)<NEW_LINE>return null;<NEW_LINE>// Org Must be linked to BPartner<NEW_LINE>MOrg org = MOrg.get(getCtx(), getAD_Org_ID());<NEW_LINE>int counterC_BPartner_ID = org.getLinkedC_BPartner_ID(get_TrxName());<NEW_... | log.fine("Indirect C_DocTypeTarget_ID=" + C_DocTypeTarget_ID); |
1,342,777 | public final ModifierContext modifier() throws RecognitionException {<NEW_LINE>ModifierContext _localctx = new ModifierContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>setState(376);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LINE>case ABSTRACT:<NEW_LINE>cas... | enterRule(_localctx, 12, RULE_modifier); |
152,332 | public void notifyBlacklistedConnection(ConnectionDescriptor conn) {<NEW_LINE>int uid = conn.uid;<NEW_LINE>AppDescriptor app = appsResolver.get(conn.uid, 0);<NEW_LINE>assert app != null;<NEW_LINE>FilterDescriptor filter = new FilterDescriptor();<NEW_LINE>filter.onlyBlacklisted = true;<NEW_LINE>Intent intent = new Inten... | ))).setContentText(rule_label); |
1,549,681 | protected void doParse(XMLStreamReader reader, XmlContext xmlContext) throws XMLStreamException {<NEW_LINE>NodeHandler nodeHandler = this.topLevelNodeHandler;<NEW_LINE>Deque<NodeHandler> nodeHandlerStack = new ArrayDeque<>();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>int event = reader.next();<NEW_LINE>switch(event)... | elementHandler = nodeHandler.findMatchFor(reader); |
1,072,185 | public BigDecimal invoke(int A_Asset_ID, BigDecimal A_Asset_Adjustment, int A_PeriodNo, String PostingType, int A_Asset_Acct_ID) {<NEW_LINE>String depreciationType = getDepreciationType();<NEW_LINE>BigDecimal retValue = null;<NEW_LINE>if (CLogMgt.isLevelFine())<NEW_LINE>log.fine("Entering: DepreciationMethodType=" + de... | java.sql.Types.DECIMAL); |
702,749 | public JsonElement extract() {<NEW_LINE>var enchantsJson = new JsonArray();<NEW_LINE>for (var enchant : Registry.ENCHANTMENT) {<NEW_LINE>var enchantJson = new JsonObject();<NEW_LINE>enchantJson.addProperty("id", Registry.ENCHANTMENT.getRawId(enchant));<NEW_LINE>enchantJson.addProperty("name", Registry.ENCHANTMENT.getId... | "max_level", enchant.getMaxLevel()); |
559,693 | public static QueryAllCinemasResponse unmarshall(QueryAllCinemasResponse queryAllCinemasResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryAllCinemasResponse.setRequestId(_ctx.stringValue("QueryAllCinemasResponse.RequestId"));<NEW_LINE>queryAllCinemasResponse.setCode(_ctx.stringValue("QueryAllCinemasResponse.Code"));<... | (_ctx.longValue("QueryAllCinemasResponse.TotalCount")); |
1,515,839 | public RunClosedProjectBuildDependencies buildAll(String modelName, EclipseRuntime eclipseRuntime, Project project) {<NEW_LINE>this.projectOpenStatus = eclipseRuntime.getWorkspace().getProjects().stream().collect(Collectors.toMap(EclipseWorkspaceProject::getName, EclipseModelBuilder::isProjectOpen, (a, b) -> a | b));<N... | getRootGradle(project.getGradle()); |
1,647,492 | private void writeAndroidConfig(Document document, Element parentElement) {<NEW_LINE>Element androidConfigTag = document.createElement(XMLConstants.TAG_ANDROID_CONFIGURATION);<NEW_LINE>parentElement.appendChild(androidConfigTag);<NEW_LINE>CallbackConfiguration callbackConfig = config.getCallbackConfig();<NEW_LINE>Sourc... | (callbackConfig.getFilterThreadCallbacks())); |
558,268 | public static NonCodeUsageInfo[] retargetUsages(final UsageInfo[] usages, final Map<PsiElement, PsiElement> oldToNewElementsMapping) throws IncorrectOperationException {<NEW_LINE>Arrays.sort(usages, new Comparator<UsageInfo>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(UsageInfo o1, UsageInfo o2) {<NEW_... | VirtualFile file1 = o1.getVirtualFile(); |
1,808,557 | public void readPayload(MySQLPayloadReadView buffer) {<NEW_LINE>capabilities = (int) buffer.readFixInt(4);<NEW_LINE>maxPacketSize = (int) buffer.readFixInt(4);<NEW_LINE>characterSet = buffer.readByte();<NEW_LINE>buffer.readBytes(RESERVED.length);<NEW_LINE>username = buffer.readNULString();<NEW_LINE>if (MySQLServerCapab... | String k = buffer.readLenencString(); |
1,618,828 | public void visit(BLangSimpleVarRef varRef) {<NEW_LINE>if (varRef.symbol == null || (varRef.symbol.tag & SymTag.CONSTANT) != SymTag.CONSTANT) {<NEW_LINE>this.result = null;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>BConstantSymbol constSymbol = (BConstantSymbol) varRef.symbol;<NEW_LINE>BLangConstantValue constVal = constSym... | CANNOT_RESOLVE_CONST, constSymbol.name.value); |
1,358,519 | public List<InetRecord> inetRecordsFromCaches(final DeliveryService ds, final List<Cache> caches, final Request request) {<NEW_LINE>final List<InetRecord> addresses = new ArrayList<>();<NEW_LINE>final int maxDnsIps = ds.getMaxDnsIps();<NEW_LINE>List<Cache> selectedCaches;<NEW_LINE>if (maxDnsIps > 0 && isConsistentDNSRo... | ), request.getHostname()); |
281,525 | protected String doIt() throws Exception {<NEW_LINE>String[] tables = new String[] { "AD_Window_Access", "AD_Process_Access", "AD_Form_Access", "AD_Workflow_Access", <MASK><NEW_LINE>String[] keycolumns = new String[] { "AD_Window_ID", "AD_Process_ID", "AD_Form_ID", "AD_Workflow_ID", "AD_Task_ID", "C_DocType_ID, AD_Ref_... | "AD_Task_Access", "AD_Document_Action_Access", X_AD_Role_Included.Table_Name }; |
1,441,038 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Task t... | .toList(Task.job_FIELDNAME)); |
822,759 | static void encodeSequence(int size, byte[] seqs, char cid, ArrayList<char[]> planes) {<NEW_LINE>--size;<NEW_LINE>int nextPlane = 0;<NEW_LINE>for (int idx = 0; idx < size; ++idx) {<NEW_LINE>char[] plane = planes.get(nextPlane);<NEW_LINE>int one = seqs[idx] & 0xff;<NEW_LINE>char c = plane[one];<NEW_LINE>if (c != 0 && (c... | (MessageLocalization.getComposedMessage("inconsistent.mapping")); |
1,765,258 | private void initJs(Project p, Map<String, String> testStubsParams) throws IOException {<NEW_LINE>Map<String, String> map = new HashMap<String, String>();<NEW_LINE>map.put(RESTCLIENT_STABS_VAR, NbBundle.getMessage(ClientStubsGenerator.class, TTL_RestClient_Stubs));<NEW_LINE>map.put(README_VAR, NbBundle.getMessage<MASK>... | (ClientStubsGenerator.class, MSG_Readme)); |
1,632,240 | public static void horizontal11(Kernel1D_S32 kernel, GrayU8 input, GrayI16 output, int skip) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final ... | k7 = kernel.data[6]; |
1,215,760 | private void updateAdapterList() {<NEW_LINE>// Fetch the picker's proxy.<NEW_LINE>PickerProxy pickerProxy = getPickerProxy();<NEW_LINE>if (pickerProxy == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Fetch the text field to update the drop-down list on.<NEW_LINE>AutoCompleteTextView textView = getAutoCompleteTextView... | adapter.setFontProperties(getFontProperties()); |
980,325 | public File downloadAndUntar() throws IOException {<NEW_LINE>if (fileDir != null) {<NEW_LINE>return fileDir;<NEW_LINE>}<NEW_LINE>File baseDir = getBaseDir();<NEW_LINE>if (!(baseDir.isDirectory() || baseDir.mkdir())) {<NEW_LINE>throw new IOException("Could not mkdir " + baseDir);<NEW_LINE>}<NEW_LINE>log.info("Downloadin... | false, 3, 300000, 30000); |
786,184 | private void initSessionAndStatusIfNeeded(org.tensorflow.framework.GraphDef graphDef1) {<NEW_LINE>// infer the inputs and outputSchema for the graph<NEW_LINE>Set<String> seenAsInput = new LinkedHashSet<>();<NEW_LINE>for (int i = 0; i < graphDef1.getNodeCount(); i++) {<NEW_LINE>NodeDef node = graphDef1.getNode(i);<NEW_L... | (i).getName()); |
564,456 | private Packet _nextFrame(ByteBuffer buf) throws IOException {<NEW_LINE>seekToFrame();<NEW_LINE>if (curFrame >= fsizes.length)<NEW_LINE>return null;<NEW_LINE>int fs = fsizes[curFrame];<NEW_LINE>ByteBuffer result = buf.duplicate();<NEW_LINE>result.limit(result.position() + fs);<NEW_LINE>while (result.hasRemaining()) {<N... | result.remaining()))); |
606,904 | public void marshall(UpdateDomainAssociationRequest updateDomainAssociationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateDomainAssociationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.mar... | updateDomainAssociationRequest.getAutoSubDomainIAMRole(), AUTOSUBDOMAINIAMROLE_BINDING); |
1,084,530 | private boolean deleteConfigDriveIsoOnHostCache(final VirtualMachine vm, final Long hostId) throws ResourceUnavailableException {<NEW_LINE>if (hostId == null) {<NEW_LINE>throw new ResourceUnavailableException("Config drive iso deletion failed, host not available", ConfigDriveNetworkElement.class, 0L);<NEW_LINE>}<NEW_LI... | agentManager.easySend(hostId, configDriveIsoCommand); |
1,836,453 | private void printFillBorder2() {<NEW_LINE>out.print("\t/**\n" + "\t * Fills the border with independent border widths for each side\n" + "\t *\n" + "\t * @param image An image.\n" + "\t * @param value The value that the image is being filled with.\n" + "\t * @param borderX0 Width of border on left\n" + "\t * @param bo... | "//\t\t} else {\n" + "\t\tImplImageMiscOps.fillBorder(image, value, borderX0, borderY0, borderX1, borderY1);\n" + "//\t\t}\n" + "\t}\n\n"); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.