idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,545,361 | public static StartExecutionResponse unmarshall(StartExecutionResponse startExecutionResponse, UnmarshallerContext _ctx) {<NEW_LINE>startExecutionResponse.setRequestId(_ctx.stringValue("StartExecutionResponse.RequestId"));<NEW_LINE>Execution execution = new Execution();<NEW_LINE>execution.setExecutionId(_ctx.stringValu... | (_ctx.mapValue("StartExecutionResponse.Execution.Counters")); |
1,568,471 | protected void describeDetections(List<SiftPoint> detections) {<NEW_LINE>for (int detIdx = 0; detIdx < detections.size(); detIdx++) {<NEW_LINE>SiftPoint p = detections.get(detIdx);<NEW_LINE>// Would it be faster if all features that come from the same images were processed at once?<NEW_LINE>// Would it reduce context s... | (p.scaleIdx - 1)); |
219,280 | private void init() {<NEW_LINE>facade = Overlap2DFacade.getInstance();<NEW_LINE>projectManager = facade.retrieveProxy(ProjectManager.NAME);<NEW_LINE>resourceManager = <MASK><NEW_LINE>UIStageMediator uiStageMediator = facade.retrieveMediator(UIStageMediator.NAME);<NEW_LINE>uiStage = uiStageMediator.getViewComponent();<N... | facade.retrieveProxy(ResourceManager.NAME); |
508,080 | public List<? extends ExecutableElement> findOverridableMethods(TypeElement type) {<NEW_LINE>List<ExecutableElement> overridable = new ArrayList<>();<NEW_LINE>final Set<Modifier> notOverridable = EnumSet.copyOf(NOT_OVERRIDABLE);<NEW_LINE>if (!type.getModifiers().contains(Modifier.ABSTRACT)) {<NEW_LINE>notOverridable.ad... | types = JavacTypes.instance(ctx); |
858,427 | public OBinaryResponse executeCommit37(OCommit37Request request) {<NEW_LINE>ODatabaseDocumentInternal database = connection.getDatabase();<NEW_LINE>final OTransactionOptimisticServer tx;<NEW_LINE>if (request.isHasContent()) {<NEW_LINE>tx = new OTransactionOptimisticServer(database, request.getTxId(), request.isUsingLog... | (OTransactionOptimisticServer) database.getTransaction(); |
1,343,227 | protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>Parser parser = new Parser(PATTERN, (String) msg);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, remoteAddress, parser.next(... | "mode", parser.next()); |
1,263,761 | protected JFreeChart createXyAreaChart() throws JRException {<NEW_LINE>ChartFactory.setChartTheme(StandardChartTheme.createLegacyTheme());<NEW_LINE>JFreeChart jfreeChart = ChartFactory.createXYAreaChart(evaluateTextExpression(getChart().getTitleExpression()), evaluateTextExpression(((JRAreaPlot) getPlot()).getCategoryA... | (areaPlot.getDomainAxisMaxValueExpression())); |
285,006 | public double[] calcEquation(List<List<String>> equations, double[] values, List<List<String>> queries) {<NEW_LINE>int n = equations.size();<NEW_LINE>p = new HashMap<>();<NEW_LINE><MASK><NEW_LINE>for (List<String> e : equations) {<NEW_LINE>p.put(e.get(0), e.get(0));<NEW_LINE>p.put(e.get(1), e.get(1));<NEW_LINE>w.put(e.... | w = new HashMap<>(); |
1,461,133 | public SortedMap<Integer, Map<String, String>> read(BufferedReader bRdr) throws IOException {<NEW_LINE>SortedMap<Integer, Map<String, String>> map = new TreeMap<>();<NEW_LINE>Map<String, String> fields = new HashMap<>();<NEW_LINE>String number = "";<NEW_LINE>String query = "";<NEW_LINE>String description = "";<NEW_LINE... | fields.put("title", query); |
1,187,263 | public static SortingParams toSortingParams(@Nullable SortParameters params) {<NEW_LINE>SortingParams jedisParams = null;<NEW_LINE>if (params != null) {<NEW_LINE>jedisParams = new SortingParams();<NEW_LINE>byte[] byPattern = params.getByPattern();<NEW_LINE>if (byPattern != null) {<NEW_LINE>jedisParams.by(params.getByPa... | Boolean isAlpha = params.isAlphabetic(); |
1,639,635 | public BackendEntry writeEdgeProperty(HugeEdgeProperty<?> prop) {<NEW_LINE>HugeEdge edge = prop.element();<NEW_LINE>EdgeId id = edge.idWithDirection();<NEW_LINE>TableBackendEntry.Row row = new TableBackendEntry.Row(edge.type(), id);<NEW_LINE>if (edge.hasTtl()) {<NEW_LINE>row.ttl(edge.ttl());<NEW_LINE>row.column(HugeKey... | (id.ownerVertexId())); |
359,964 | private void solveCollision(TimeStep step) {<NEW_LINE>final AABB aabb = temp;<NEW_LINE>final Vec2 lowerBound = aabb.lowerBound;<NEW_LINE>final Vec2 upperBound = aabb.upperBound;<NEW_LINE>lowerBound.x = Float.MAX_VALUE;<NEW_LINE>lowerBound.y = Float.MAX_VALUE;<NEW_LINE>upperBound.x = -Float.MAX_VALUE;<NEW_LINE>upperBoun... | < by ? lowerBound.y : by; |
1,151,336 | public JSONObject buildOptions4K8sMicroService(String appId, String microServiceId, String branch) {<NEW_LINE>log.info("action=packService|buildOptions4K8sMicroService|enter|appId={}|microServiceId={}|branch={}", appId, microServiceId, branch);<NEW_LINE>K8sMicroserviceMetaQueryCondition microserviceMetaCondition = K8sM... | appEnvList = new ArrayList<>(); |
1,739,958 | private static void tryMT(RegressionEnvironment env, int numSeconds) throws InterruptedException {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplCreateVariable = "@public create table vartotal (topgroup int primary key, subgroup int primary key)";<NEW_LINE>env.compileDeploy(eplCreateVariable, ... | env.compileDeploy(eplMergeInsDel, path); |
598,409 | public static <T extends I_M_ProductPrice> T iterateAllPriceListVersionsAndFindProductPrice(@Nullable final I_M_PriceList_Version startPriceListVersion, @NonNull final Function<I_M_PriceList_Version, T> productPriceMapper, @NonNull final ZonedDateTime priceDate) {<NEW_LINE>if (startPriceListVersion == null) {<NEW_LINE>... | Services.get(IPriceListDAO.class); |
689,145 | public Object doLocale(JSLocaleObject localeObject) {<NEW_LINE>Calendar.WeekData weekData = weekData(localeObject);<NEW_LINE>int firstDay = calendarToECMAScriptDay(weekData.firstDayOfWeek);<NEW_LINE>int minimalDays = weekData.minimalDaysInFirstWeek;<NEW_LINE>SimpleArrayList<Integer> weekendList = new SimpleArrayList<>(... | createFirstDayNode.executeVoid(weekInfo, firstDay); |
212,204 | private void populateConfigValuesForValidationSet() {<NEW_LINE>configValuesForValidation = new HashSet<String>();<NEW_LINE>configValuesForValidation.add("event.purge.interval");<NEW_LINE>configValuesForValidation.add("account.cleanup.interval");<NEW_LINE>configValuesForValidation.add("alert.wait");<NEW_LINE>configValue... | StorageManager.STORAGE_POOL_CLIENT_MAX_CONNECTIONS.key()); |
1,294,676 | public void draw(Canvas canvas) {<NEW_LINE>if (barcode == null) {<NEW_LINE>throw new IllegalStateException("Attempting to draw a null barcode.");<NEW_LINE>}<NEW_LINE>// Draws the bounding box around the BarcodeBlock.<NEW_LINE>RectF rect = new <MASK><NEW_LINE>// If the image is flipped, the left will be translated to ri... | RectF(barcode.getBoundingBox()); |
1,775,682 | protected void parseCellDataElement(SOAPElement cellDataElement) throws SOAPException {<NEW_LINE>Name name = sf.createName("Cell", "", MDD_URI);<NEW_LINE>Iterator<?> itCells = cellDataElement.getChildElements(name);<NEW_LINE>while (itCells.hasNext()) {<NEW_LINE>SOAPElement cellElement = (SOAPElement) itCells.next();<NE... | (SOAPElement) valueElements.next(); |
1,279,092 | TableMasterClient provideCatalogMasterClient(AlluxioHiveMetastoreConfig config) {<NEW_LINE>InstancedConfiguration conf = new <MASK><NEW_LINE>if (config.isZookeeperEnabled()) {<NEW_LINE>conf.set(PropertyKey.ZOOKEEPER_ENABLED, true);<NEW_LINE>conf.set(PropertyKey.ZOOKEEPER_ADDRESS, config.getZookeeperAddress());<NEW_LINE... | InstancedConfiguration(ConfigurationUtils.defaults()); |
1,135,548 | private void bindImeiAndMeid() {<NEW_LINE>ThanosManager thanos = ThanosManager.from(getContext());<NEW_LINE>if (!thanos.isServiceInstalled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int phoneCount = thanos.getPrivacyManager().getPhoneCount();<NEW_LINE>XLog.w("phoneCount: %s", phoneCount);<NEW_LINE>SubscriptionInfo[] sub... | .getPrivacyManager().getAccessibleSubscriptionInfoList(); |
1,694,718 | private void makeVars() {<NEW_LINE>SourceInfo info = jsProgram.createSourceInfoSynthetic(getClass());<NEW_LINE>JsVar stackVar = new JsVar(info, stack);<NEW_LINE>stackVar.setInitExpr(new JsArrayLiteral(info));<NEW_LINE>JsVar stackDepthVar = new JsVar(info, stackDepth);<NEW_LINE>stackDepthVar.setInitExpr(new JsNumberLite... | = new JsVar(info, lineNumbers); |
886,071 | private Map<Integer, Converter> buildFieldToConverter(final GroupType schema) {<NEW_LINE>final Map<Integer, Converter> fieldToConverter = new HashMap<>(fieldCount);<NEW_LINE>int i = 0;<NEW_LINE>for (final Type field : schema.getFields()) {<NEW_LINE>final String[] newColumnPath = new <MASK><NEW_LINE>int j = 0;<NEW_LINE>... | String[columnPath.length + 1]; |
1,251,317 | private static void copyFiles(Manifest manifest, JarFile in, JarOutputStream out, long timestamp) throws IOException {<NEW_LINE>byte[] buffer = new byte[4096];<NEW_LINE>int num;<NEW_LINE>Map<String, Attributes> entries = manifest.getEntries();<NEW_LINE>List<String> names = new ArrayList<>(entries.keySet());<NEW_LINE>Co... | inEntry = in.getJarEntry(name); |
452,720 | public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>setting = OldMainActivity.Setting;<NEW_LINE>layout_functionbar = OldMainActivity.CURRENT_ACTIVITY.get().findViewById(R.id.layout_functions);<NEW_LINE>buttonUser = layout_functionbar.findViewById(R.id.main_button_user);<NEW_LINE>buttonPlugin = layout_functionb... | findViewById(R.id.main_button_gamedir); |
764,444 | public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {<NEW_LINE>com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields());<NEW_LINE>while (tru... | setUnknownFields(unknownFields.build()); |
666,419 | private static void scanObject(HashSet<J9ObjectPointer> visitedObjects, ObjectVisitor visitor, J9ObjectPointer object, VoidPointer address) {<NEW_LINE>if (visitedObjects.contains(object)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!visitor.visit(object, address)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>visitedObjects.ad... | VoidPointer addr = addressIterator.nextAddress(); |
1,065,297 | public static void datatypes() {<NEW_LINE>// START SNIPPET: datatypes<NEW_LINE>Observation obs = new Observation();<NEW_LINE>// These are all equivalent<NEW_LINE>obs.setIssuedElement(new InstantType(new Date()));<NEW_LINE>obs.setIssuedElement(new InstantType(new Date(), TemporalPrecisionEnum.MILLI));<NEW_LINE>obs.setIs... | System.out.println(date); |
453,370 | private void shareCsvFile() {<NEW_LINE>final ScaleUser selectedScaleUser = OpenScale<MASK><NEW_LINE>File shareFile = new File(getApplicationContext().getCacheDir(), getExportFilename(selectedScaleUser));<NEW_LINE>if (!OpenScale.getInstance().exportData(Uri.fromFile(shareFile))) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>In... | .getInstance().getSelectedScaleUser(); |
1,642,421 | protected void onDraw(Canvas canvas) {<NEW_LINE>int width = getMeasuredWidth();<NEW_LINE>int height = getMeasuredHeight();<NEW_LINE>if (cache != null && (cache.getWidth() != width || cache.getHeight() != height)) {<NEW_LINE>cache.recycle();<NEW_LINE>cache = null;<NEW_LINE>}<NEW_LINE>if (cache == null) {<NEW_LINE>cache ... | drawItems(cacheCanvas, leakPaint, null); |
245,641 | final DeleteInfrastructureConfigurationResult executeDeleteInfrastructureConfiguration(DeleteInfrastructureConfigurationRequest deleteInfrastructureConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteInfrastructureConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequest... | invoke(request, responseHandler, executionContext); |
1,480,883 | public void message(SibMessage.Listener.MessageType type, String me, TraceComponent tc, String msgKey, Object objs, Object[] formattedMessage) {<NEW_LINE>switch(type) {<NEW_LINE>case AUDIT:<NEW_LINE>_logRecords.add(new LogRecord(Severity.AUDIT, msgKey, objs));<NEW_LINE>break;<NEW_LINE>case ERROR:<NEW_LINE>_logRecords.a... | .SERVICE, msgKey, objs)); |
1,034,280 | public static void main(String[] args) {<NEW_LINE>// The definitions file specifies where dots are on each marker and other bits of meta data<NEW_LINE>RandomDotDefinition defs = FiducialIO.loadRandomDotYaml<MASK><NEW_LINE>// The only parameter that you have to set is markerLength. It's used to compute bounding<NEW_LINE... | (UtilIO.fileExample("fiducial/random_dots/descriptions.yaml")); |
715,497 | public static NDList lstm(PtNDArray input, NDList hx, NDList params, boolean hasBiases, int numLayers, double dropRate, boolean training, boolean bidirectional, boolean batchFirst) {<NEW_LINE>PtNDManager manager = input.getManager();<NEW_LINE>long[] hxHandles = hx.stream().mapToLong(array -> ((PtNDArray) array).getHand... | getHandle()).toArray(); |
1,701,021 | private void addPersonalNames(Map<Field, String> fields, PersonalNameSubjectList personalNameSubjectList) {<NEW_LINE>if (fields.get(StandardField.AUTHOR) == null) {<NEW_LINE>// if no authors appear, then add the personal names as authors<NEW_LINE>List<String> personalNames = new ArrayList<>();<NEW_LINE>if (personalName... | , join(personalNames, " and ")); |
1,195,298 | boolean toNode(WireNode[] wireNodes) {<NEW_LINE>if (!this.validated) {<NEW_LINE>this.validate(wireNodes);<NEW_LINE>}<NEW_LINE>if (this.built == null) {<NEW_LINE>int type = flags & FLAG_NODE_TYPE;<NEW_LINE>if (type == NODE_TYPE_ROOT) {<NEW_LINE>this.built = new RootCommandNode<>();<NEW_LINE>} else {<NEW_LINE>if (args ==... | args.redirect(redirect.built); |
1,465,668 | private List<DicaInterface> loadHints(String dir) {<NEW_LINE>List<DicaInterface> lista = new ArrayList<>();<NEW_LINE>Properties prop = new Properties();<NEW_LINE>try {<NEW_LINE>InputStream resourceAsStream = ClassLoader.getSystemClassLoader(<MASK><NEW_LINE>prop.load(new InputStreamReader(resourceAsStream, "UTF-8"));<NE... | ).getResourceAsStream(dir + "/index.properties"); |
1,211,811 | public void run() {<NEW_LINE>try {<NEW_LINE>URL url = new URL("https://www.freelinebuild.com/api/feedback");<NEW_LINE>// URL url = new URL("http://localhost:3000/api/feedback");<NEW_LINE>HttpURLConnection conn = (HttpURLConnection) url.openConnection();<NEW_LINE>conn.setReadTimeout(10000);<NEW_LINE>conn.setConnectTimeo... | write(builder.toString()); |
355,223 | public CodegenExpression makeCodegen(CodegenClassScope classScope, CodegenMethodScope parent, SAIFFInitializeSymbolWEventType symbols) {<NEW_LINE>CodegenMethod method = parent.makeChild(FilterSpecParam.EPTYPE, this.getClass(), classScope);<NEW_LINE>CodegenExpression get = exprIdentNodeEvaluator.getGetter().eventBeanGet... | "value", get).blockEnd(); |
814,655 | private void createLabelMaps(Body body) {<NEW_LINE>Chain<Unit<MASK><NEW_LINE>labels = new HashMap<Unit, String>(units.size() * 2 + 1, 0.7f);<NEW_LINE>references = new HashMap<Unit, String>(units.size() * 2 + 1, 0.7f);<NEW_LINE>// Create statement name table<NEW_LINE>Set<Unit> labelStmts = new HashSet<Unit>();<NEW_LINE>... | > units = body.getUnits(); |
1,344,704 | private void processOutgoingMessageRecord(@NonNull List<ChangedRecipient> changedRecipients, @NonNull MessageRecord messageRecord) {<NEW_LINE>Log.d(TAG, "processOutgoingMessageRecord");<NEW_LINE>MessageDatabase smsDatabase = SignalDatabase.sms();<NEW_LINE>MessageDatabase mmsDatabase = SignalDatabase.mms();<NEW_LINE>for... | resendGroupMessage(context, messageRecord, id); |
482,413 | final BatchDeleteDocumentResult executeBatchDeleteDocument(BatchDeleteDocumentRequest batchDeleteDocumentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDeleteDocumentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,166,613 | protected void encodeInput(FacesContext context, SelectOneMenu menu, String clientId, List<SelectItem> selectItems, Object values, Object submittedValues, Converter converter) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String focusId = clientId + "_focus";<NEW_LINE>// in... | writeAttribute("type", "text", null); |
1,038,881 | public static void generateJaxWsArtifacts(Project project, FileObject targetFolder, String targetName, URL wsdlURL, String service, String port) throws Exception {<NEW_LINE>initProjectInfo(project);<NEW_LINE>JAXWSSupport jaxWsSupport = JAXWSSupport.getJAXWSSupport(project.getProjectDirectory());<NEW_LINE>// NOI18N<NEW_... | = "service." + targetName.toLowerCase(); |
639,513 | public FilterRegistrationBean webStatFilterRegistrationBean(DruidStatProperties properties) {<NEW_LINE>DruidStatProperties.WebStatFilter config = properties.getWebStatFilter();<NEW_LINE>FilterRegistrationBean registrationBean = new FilterRegistrationBean();<NEW_LINE>WebStatFilter filter = new WebStatFilter();<NEW_LINE>... | config.getUrlPattern() : "/*"); |
1,794,976 | private void reloadPluginAdapterAndVisibility(@NonNull PluginListType pluginType, @Nullable ListState<ImmutablePluginModel> listState) {<NEW_LINE>if (listState == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PluginBrowserAdapter adapter = null;<NEW_LINE>View cardView = null;<NEW_LINE>switch(pluginType) {<NEW_LINE>case ... | findViewById(R.id.featured_plugins_container); |
1,063,584 | protected void activate() {<NEW_LINE>super.activate();<NEW_LINE>phasesView.activate();<NEW_LINE>daoFacade.addBsqStateListener(this);<NEW_LINE>cyclesTableView.getSelectionModel().selectedItemProperty().addListener(selectedVoteResultListItemListener);<NEW_LINE>if (daoStateService.isParseBlockChainComplete()) {<NEW_LINE>c... | 25, 28, 6, 6); |
640,810 | private void findRanges() {<NEW_LINE>List<CompilerThread> threads = parent.getJITDataModel().getCompilerThreads();<NEW_LINE>int compilerThreadCount = threads.size();<NEW_LINE>for (int i = 0; i < compilerThreadCount; i++) {<NEW_LINE>CompilerThread <MASK><NEW_LINE>long earliestQueuedTime = thread.getEarliestQueuedTime();... | thread = threads.get(i); |
45,414 | public void methodReferenceSwingsBothWays(ReferenceExpression expression, MethodBinding instanceMethod, MethodBinding nonInstanceMethod) {<NEW_LINE>char[] selector = instanceMethod.selector;<NEW_LINE>TypeBinding receiverType = instanceMethod.declaringClass;<NEW_LINE>StringBuilder buffer1 = new StringBuilder();<NEW_LINE... | i].readableName())); |
707,714 | final ListEffectiveDeploymentsResult executeListEffectiveDeployments(ListEffectiveDeploymentsRequest listEffectiveDeploymentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEffectiveDeploymentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | (super.beforeMarshalling(listEffectiveDeploymentsRequest)); |
183,484 | public void marshall(CreateCustomDataIdentifierRequest createCustomDataIdentifierRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createCustomDataIdentifierRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh... | createCustomDataIdentifierRequest.getIgnoreWords(), IGNOREWORDS_BINDING); |
1,387,658 | protected SqlNodeList realParse(ByteString sql, List<?> params, ContextParameters contextParameters, ExecutionContext ec) {<NEW_LINE>try {<NEW_LINE>List<SQLStatement> <MASK><NEW_LINE>List<SqlNode> sqlNodes = new ArrayList<>();<NEW_LINE>for (SQLStatement statement : stmtList) {<NEW_LINE>final SqlNode converted;<NEW_LINE... | stmtList = FastsqlUtils.parseSql(sql); |
1,813,120 | protected String doIt() throws Exception {<NEW_LINE>if (getCostTypeId() == getCostTypeIdTo())<NEW_LINE>throw new AdempiereException("@M_CostType_ID@ @NotValid@");<NEW_LINE>MAcctSchema accountSchema = MAcctSchema.get(<MASK><NEW_LINE>MCostType costTypeFrom = MCostType.get(getCtx(), getCostTypeId());<NEW_LINE>MCostType co... | getCtx(), getAcctSchemaId()); |
1,387,046 | public void suicide(DataWord obtainerAddress) {<NEW_LINE>byte[] owner = getOwnerAddress().getLast20Bytes();<NEW_LINE>byte[] obtainer = obtainerAddress.getLast20Bytes();<NEW_LINE>BigInteger balance = <MASK><NEW_LINE>if (logger.isInfoEnabled())<NEW_LINE>logger.info("Transfer to: [{}] heritage: [{}]", toHexString(obtainer... | getStorage().getBalance(owner); |
990,946 | public boolean _addHotkey(int keyCode, int modifiers, HotkeyListener listener) {<NEW_LINE>if (RunTime.get().isJava9("JintelliType HotkeyHandling not useable - skipped")) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>JIntellitype itype = null;<NEW_LINE>try {<NEW_LINE>itype = JIntellitype.getInstance();<NEW_LINE>} catch (E... | HotkeyData(keyCode, modifiers, listener); |
1,600,192 | public static Object spawn(Context cx, Scriptable thisObj, Object[] args, Function funObj) {<NEW_LINE>Scriptable scope = funObj.getParentScope();<NEW_LINE>Runner runner;<NEW_LINE>if (args.length != 0 && args[0] instanceof Function) {<NEW_LINE>Object[] newArgs = null;<NEW_LINE>if (args.length > 1 && args[1] instanceof S... | ) args[0], newArgs); |
1,136,934 | private void doVisitToken(FullIdent ident, boolean isStatic, boolean previous, DetailAST ast) {<NEW_LINE>final String name = ident.getText();<NEW_LINE>final int groupIdx = getGroupNumber(isStatic && staticImportsApart, name);<NEW_LINE>if (groupIdx > lastGroup) {<NEW_LINE>if (!beforeFirstImport && ast.getLineNo() - last... | log(ast, MSG_SEPARATED_IN_GROUP, name); |
924,401 | public void startDownloadable(Message message) {<NEW_LINE>if (!hasPermissions(REQUEST_START_DOWNLOAD, Manifest.permission.WRITE_EXTERNAL_STORAGE)) {<NEW_LINE>this.mPendingDownloadableMessage = message;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (transferable != null) {<NEW_LINE>if (transferable instanceof ... | Transferable transferable = message.getTransferable(); |
748,124 | public List<I_M_Product> retrieveHoldingFeeProducts(final I_C_Flatrate_Conditions fc) {<NEW_LINE>final Properties ctx = getCtx(fc);<NEW_LINE>final String trxName = getTrxName(fc);<NEW_LINE>final List<I_M_Product> <MASK><NEW_LINE>final String wc = I_C_Flatrate_Matching.COLUMNNAME_C_Flatrate_Conditions_ID + "=?";<NEW_LIN... | result = new ArrayList<>(); |
444,381 | static int encodeToChar(byte[] sArr, char[] dArr, final int start) {<NEW_LINE>final int sLen = sArr.length;<NEW_LINE>// Length of even 24-bits.<NEW_LINE>final int eLen = (sLen / 3) * 3;<NEW_LINE>// Returned character count<NEW_LINE>final int dLen = ((sLen - 1) / 3 + 1) << 2;<NEW_LINE>// Encode even 24-bits<NEW_LINE>for... | = CA[i >> 12]; |
15,389 | private void initComponents() {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>setOpaque(false);<NEW_LINE>area = new HTMLTextArea() {<NEW_LINE><NEW_LINE>protected void showURL(URL url) {<NEW_LINE>String link = url.toString();<NEW_LINE>if (link.startsWith(LINK_TOGGLE_CATEGORY)) {<NEW_LINE>link = link.substring(LINK_TO... | sharedInstance().openDataSource(s); |
1,346,076 | public static void notifyRunConfiguration(Project project) {<NEW_LINE>final String projectName = NodeJsUtils.getProjectDisplayName(project);<NEW_LINE>final NodeJsSupport nodeJsSupport = NodeJsSupport.forProject(project);<NEW_LINE>final NodeJsPreferences preferences = nodeJsSupport.getPreferences();<NEW_LINE>assert !pre... | text = Bundle.Notifications_enabled_noop(projectName); |
1,279,403 | protected AlgorithmParameters engineGenerateParameters() {<NEW_LINE>DSAParametersGenerator pGen;<NEW_LINE>if (strength <= 1024) {<NEW_LINE>pGen = new DSAParametersGenerator();<NEW_LINE>} else {<NEW_LINE>pGen = new DSAParametersGenerator(new SHA256Digest());<NEW_LINE>}<NEW_LINE>if (random == null) {<NEW_LINE>random = Cr... | strength, 256, certainty, random); |
298,537 | public static DescribeInstancesResponse unmarshall(DescribeInstancesResponse describeInstancesResponse, UnmarshallerContext context) {<NEW_LINE>describeInstancesResponse.setRequestId(context.stringValue("DescribeInstancesResponse.RequestId"));<NEW_LINE>describeInstancesResponse.setTotalCount(context.integerValue("Descr... | ("DescribeInstancesResponse.Instances[" + i + "].HsmOem")); |
1,209,793 | private ITransaction forceInitTransaction(ExecutionContext executionContext) {<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>if (this.isClosed()) {<NEW_LINE>throw new TddlRuntimeException(ErrorCode.ERR_CONNECTION_CLOSED, "connection has been closed");<NEW_LINE>}<NEW_LINE>// force update transaction policy<NEW_LINE>this... | setAppName(dataSource.getAppName()); |
824,843 | public List<Site> readAllActiveSites() {<NEW_LINE>CriteriaBuilder builder = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Site> criteria = builder.createQuery(Site.class);<NEW_LINE>Root<SiteImpl> site = criteria.from(SiteImpl.class);<NEW_LINE>criteria.select(site);<NEW_LINE>criteria.where(builder.and(builder.or(build... | setHint(QueryHints.HINT_CACHE_REGION, "blSiteElementsQuery"); |
312,554 | public void addCoreMethodNodes(List<? extends NodeFactory<? extends RubyBaseNode>> nodeFactories) {<NEW_LINE>String moduleName = null;<NEW_LINE>RubyModule module = null;<NEW_LINE>for (NodeFactory<? extends RubyBaseNode> nodeFactory : nodeFactories) {<NEW_LINE>final Class<?> nodeClass = nodeFactory.getNodeClass();<NEW_L... | nodeClass.getAnnotation(CoreMethod.class); |
891,633 | public List<MethodBinding> checkAndAddSyntheticRecordOverrideMethods(MethodBinding[] methodBindings, List<MethodBinding> implicitMethods) {<NEW_LINE>if (!hasMethodWithNumArgs(TypeConstants.TOSTRING, 0)) {<NEW_LINE>MethodBinding m = addSyntheticRecordOverrideMethod(TypeConstants.TOSTRING, implicitMethods.size());<NEW_LI... | EQUALS, implicitMethods.size()); |
160,460 | void completed(Exception throwable) {<NEW_LINE>boolean needToFire = true;<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "completed", throwable.getMessage());<NEW_LINE>}<NEW_LINE>synchronized (this.completedSemaphore) {<NEW_LINE>// future can already be completed<NEW_L... | ().state = TimerWorkItem.ENTRY_CANCELLED; |
1,511,346 | private SqlViewBinding createViewBinding(@NonNull final SqlViewBindingKey key) {<NEW_LINE>final WindowId windowId = key.getWindowId();<NEW_LINE>final DocumentEntityDescriptor entityDescriptor = documentDescriptorFactory.getDocumentEntityDescriptor(windowId);<NEW_LINE>final Set<String> displayFieldNames = entityDescript... | DocumentFilterDescriptorsProvider filterDescriptors = entityDescriptor.getFilterDescriptors(); |
506,166 | public void workEnded(Date date) {<NEW_LINE>// ///<NEW_LINE>// Update atomically. Mainly we're trying to avoid inconsistency such as the instance showing COMPLETED with the execution FAILED<NEW_LINE>//<NEW_LINE>// This has some tradeoff. Maybe things have failed already. We're now making it harder to update with the... | = getJBatchSMFLoggingService().getTimeUsedData(); |
80,232 | public AgentInfoBo map(TAgentInfo thriftObject) {<NEW_LINE>final String hostName = thriftObject.getHostname();<NEW_LINE>final String ip = thriftObject.getIp();<NEW_LINE>final <MASK><NEW_LINE>final String agentId = thriftObject.getAgentId();<NEW_LINE>final String agentName = thriftObject.getAgentName();<NEW_LINE>final S... | String ports = thriftObject.getPorts(); |
1,440,858 | public boolean execute() {<NEW_LINE>String tableSchema = executableScheduledJob.getTableSchema();<NEW_LINE>String timeZoneStr = executableScheduledJob.getTimeZone();<NEW_LINE>long scheduleId = executableScheduledJob.getScheduleId();<NEW_LINE>long fireTime = executableScheduledJob.getFireTime();<NEW_LINE>long startTime ... | , scheduleId, fireTime), t); |
805,661 | public List<AtmosphereRequest> onTextStream(WebSocket webSocket, Reader r) {<NEW_LINE>// Converting to a string and delegating to onMessage(WebSocket webSocket, String d) causes issues because the binary data may not be a valid string.<NEW_LINE>AtmosphereResourceImpl resource = (AtmosphereResourceImpl) webSocket.resour... | (r).build()); |
830,416 | void run() throws ExecutionException, InterruptedException {<NEW_LINE>final <MASK><NEW_LINE>Actor<Integer, Integer> manager = spawnActor(new BasicActor<Integer, Integer>(mailboxConfig) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Integer doRun() throws InterruptedException, SuspendExecution {<NEW_LINE>ActorRef<Int... | long start = System.nanoTime(); |
1,602,045 | public void lower(NewArrayNode node, LoweringTool tool) {<NEW_LINE>StructuredGraph graph = node.graph();<NEW_LINE>if (graph.getGuardsStage() != StructuredGraph.GuardsStage.AFTER_FSA) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ValueNode length = node.length();<NEW_LINE>SharedType type = (SharedType) node<MASK><NEW_LINE>Dyna... | .elementType().getArrayClass(); |
792,537 | public static void execute(ManagerConnection c, boolean isClear) {<NEW_LINE>ByteBuffer buffer = c.allocate();<NEW_LINE>// write header<NEW_LINE>buffer = header.write(buffer, c, true);<NEW_LINE>// write fields<NEW_LINE>for (FieldPacket field : fields) {<NEW_LINE>buffer = field.write(buffer, c, true);<NEW_LINE>}<NEW_LINE... | String user = userStat.getUser(); |
1,609,022 | public Parent createContent() {<NEW_LINE>Cube c = new Cube(1, Color.RED);<NEW_LINE>c.rx.setAngle(45);<NEW_LINE>c.ry.setAngle(45);<NEW_LINE>Cube c2 = new Cube(1, Color.GREEN);<NEW_LINE>c2.setTranslateX(2);<NEW_LINE>c2.rx.setAngle(45);<NEW_LINE>c2.ry.setAngle(45);<NEW_LINE>Cube c3 = new <MASK><NEW_LINE>c3.setTranslateX(-... | Cube(1, Color.ORANGE); |
1,376,316 | public void userGet(final Response.Listener<User> responseListener, final Response.ErrorListener errorListener) {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/user".replaceAll("\\{format\\}", "json");<NEW_LINE>// query params<NEW_LINE>List<Pair> queryParams = new A... | 0 ? contentTypes[0] : "application/json"; |
618,464 | public void onBackPressed() {<NEW_LINE>if (_isEditingIcon) {<NEW_LINE>stopEditingIcon(false);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AtomicReference<String> msg = new AtomicReference<>();<NEW_LINE>AtomicReference<VaultEntry> entry = new AtomicReference<>();<NEW_LINE>try {<NEW_LINE>entry.set(parseEntry());<NEW_LINE>} catc... | addAndFinish(entry.get()); |
1,847,162 | public boolean isSimpleType(Class<?> type) {<NEW_LINE>Assert.notNull(type, "Type must not be null!");<NEW_LINE>Map<Class<?>, Boolean> localSimpleTypes = this.simpleTypes;<NEW_LINE>Boolean isSimpleType = localSimpleTypes.get(type);<NEW_LINE>if (Object.class.equals(type) || Enum.class.isAssignableFrom(type)) {<NEW_LINE>r... | put(localSimpleTypes, type, isSimpleType); |
744,668 | private void exec(String[] command) throws RunnerException {<NEW_LINE>// eliminate any empty array entries<NEW_LINE>List<String> stringList = new ArrayList<>();<NEW_LINE>for (String string : command) {<NEW_LINE>string = string.trim();<NEW_LINE>if (string.length() != 0)<NEW_LINE>stringList.add(string);<NEW_LINE>}<NEW_LI... | out.print(c + " "); |
749,146 | public Function newInstance(int position, ObjList<Function> args, IntList argPositions, CairoConfiguration configuration, SqlExecutionContext sqlExecutionContext) throws SqlException {<NEW_LINE>final char c = args.getQuick(0).getChar(null);<NEW_LINE>switch(c) {<NEW_LINE>case 'd':<NEW_LINE>return new TimestampFloorDDFun... | (args.getQuick(1)); |
1,575,536 | public static StringBuilder append(StringBuilder sb, Pod.Value v) {<NEW_LINE>switch(v.getValCase()) {<NEW_LINE>case VAL_NOT_SET:<NEW_LINE>return sb.append("[null]");<NEW_LINE>case STRING:<NEW_LINE>return sb.append(v.getString());<NEW_LINE>case BOOL:<NEW_LINE>return sb.append(v.getBool());<NEW_LINE>case FLOAT64:<NEW_LIN... | getSint16Array().getValList()); |
224,739 | private void buildNearestWiki(ViewGroup viewGroup) {<NEW_LINE>final int position = viewGroup.getChildCount();<NEW_LINE>final WeakReference<ViewGroup> viewGroupRef = new WeakReference<>(viewGroup);<NEW_LINE>buildNearestWikiRow(viewGroup, new SearchAmenitiesListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void o... | isDividerAtPosition(viewGroup, insertIndex - 1); |
278,776 | public void onBindViewHolder(FilterItemViewHolder holder, int position) {<NEW_LINE>try {<NEW_LINE>if (position == 0) {<NEW_LINE>holder.mName.setText("None");<NEW_LINE>Bitmap bitmap = BitmapFactory.decodeStream(getAssets<MASK><NEW_LINE>holder.mIcon.setImageBitmap(bitmap);<NEW_LINE>holder.mIcon.setOnClickListener(v -> {<... | ().open("filters/none.png")); |
1,424,992 | private Stream<Description> checkOverloads(VisitorState state, List<? extends Tree> members, ImmutableList<MemberWithIndex> overloads) {<NEW_LINE>if (overloads.size() <= 1) {<NEW_LINE>return Stream.empty();<NEW_LINE>}<NEW_LINE>// check if the indices of the overloads in the member list are sequential<NEW_LINE>MemberWit... | (first.tree())); |
1,752,288 | public void updateTitle() {<NEW_LINE>Time start = new Time();<NEW_LINE>start.set(mBaseDate);<NEW_LINE>start.normalize();<NEW_LINE>Time end = new Time();<NEW_LINE>end.set(start);<NEW_LINE>end.setDay(end.getDay() + mNumDays - 1);<NEW_LINE>// Move it forward one minute so the formatter doesn't lose a day<NEW_LINE>end.setM... | end.getMinute() + 1); |
559,960 | public final void reduceScatterBlock(Object sendbuf, Object recvbuf, int recvcount, Datatype type, Op op) throws MPIException {<NEW_LINE>MPI.check();<NEW_LINE>op.setDatatype(type);<NEW_LINE>int sendoff = 0, recvoff = 0;<NEW_LINE>boolean sdb = false, rdb = false;<NEW_LINE>if (sendbuf instanceof Buffer && !(sdb = ((Buffe... | Buffer) sendbuf).array(); |
32,270 | private void initKeyMapping() {<NEW_LINE>Map<Integer, Integer> globalKeyMapping = getKeyMapping();<NEW_LINE>// Reset global mapping to default<NEW_LINE>globalKeyMapping.remove(KeyEvent.KEYCODE_MEDIA_PLAY_PAUSE);<NEW_LINE>globalKeyMapping.remove(KeyEvent.KEYCODE_MEDIA_REWIND);<NEW_LINE>globalKeyMapping.remove(KeyEvent.K... | KeyEvent.KEYCODE_PAGE_UP, KeyEvent.KEYCODE_MEDIA_NEXT); |
1,654,513 | public static DescribeDBProxyPerformanceResponse unmarshall(DescribeDBProxyPerformanceResponse describeDBProxyPerformanceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBProxyPerformanceResponse.setRequestId(_ctx.stringValue("DescribeDBProxyPerformanceResponse.RequestId"));<NEW_LINE>describeDBProxyPerformanceRe... | = new ArrayList<PerformanceItemValue>(); |
1,591,018 | public void marshall(RuleDetail ruleDetail, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (ruleDetail == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(ruleDetail.getRuleId(), RULEID_BINDING);<NEW_LINE>prot... | ruleDetail.getLastUpdatedTime(), LASTUPDATEDTIME_BINDING); |
1,082,873 | public static void horizontal11(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip) {<NEW_LINE>final <MASK><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 int k4 = kernel.data[... | short[] dataSrc = input.data; |
1,141,766 | private Future<DatagramSocket> listen(SocketAddress local) {<NEW_LINE>AddressResolver resolver = context.owner().addressResolver();<NEW_LINE>PromiseInternal<Void> promise = context.promise();<NEW_LINE>io.netty.util.concurrent.Future<InetSocketAddress> f1 = resolver.resolveHostname(context.nettyEventLoop(<MASK><NEW_LINE... | ), local.host()); |
456,703 | private void init() {<NEW_LINE>exceptionUnmarshallers.add(new MissingCustomsExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new InvalidVersionExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new MultipleRegionsExceptionUnmarshaller());<NEW_LINE>exceptionUnmarshallers.add(new CreateJobQuotaExc... | (chainFactory.newRequestHandler2Chain("/com/amazonaws/services/importexport/request.handler2s")); |
1,326,041 | public static void main(String[] args) {<NEW_LINE>int i = 0;<NEW_LINE>int classifierToUse = WORDSHAPECHRIS1;<NEW_LINE>if (args.length == 0) {<NEW_LINE>System.out.println("edu.stanford.nlp.process.WordShapeClassifier [-wordShape name] string+");<NEW_LINE>} else if (args[0].charAt(0) == '-') {<NEW_LINE>if (args[0].equals... | = lookupShaper(args[1]); |
1,806,295 | public TbQueueRequestTemplate<TbProtoJsQueueMsg<RemoteJsRequest>, TbProtoQueueMsg<RemoteJsResponse>> createRemoteJsRequestTemplate() {<NEW_LINE>TbQueueProducer<TbProtoJsQueueMsg<RemoteJsRequest>> producer = new TbRabbitMqProducerTemplate<>(jsExecutorAdmin, rabbitMqSettings, jsInvokeSettings.getRequestTopic());<NEW_LINE... | Builder builder = RemoteJsResponse.newBuilder(); |
688,501 | public synchronized PinotResourceManagerResponse deleteSegments(String tableNameWithType, List<String> segmentNames, @Nullable String retentionPeriod) {<NEW_LINE>try {<NEW_LINE>LOGGER.<MASK><NEW_LINE>Preconditions.checkArgument(TableNameBuilder.isTableResource(tableNameWithType), "Table name: %s is not a valid table na... | info("Trying to delete segments: {} from table: {} ", segmentNames, tableNameWithType); |
876,517 | public boolean authorizeStore(MerchantStore store, String path) {<NEW_LINE>Validate.notNull(store, "MerchantStore cannot be null");<NEW_LINE>Authentication authentication = SecurityContextHolder.getContext().getAuthentication();<NEW_LINE>if (!StringUtils.isBlank(path) && path.contains(PRIVATE_PATH)) {<NEW_LINE>Validate... | String currentPrincipalName = authentication.getName(); |
413,422 | public List<ValidationEvent> validate(Model model) {<NEW_LINE>List<ValidationEvent> events = new ArrayList<>();<NEW_LINE>// Normal shapes are expected to be upper camel.<NEW_LINE>model.shapes().filter(FunctionalUtils.not(Shape::isMemberShape)).filter(shape -> !shape.hasTrait(TraitDefinition.class)).filter(shape -> !Mem... | ).forEach(events::add); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.