idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
85,686 | public static void checkCharset(final File file, final String givenCharset, final boolean concurrent) {<NEW_LINE>Thread t = new Thread("FileUtils.checkCharset") {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try (final <MASK><NEW_LINE>final BufferedInputStream imp = new BufferedInputStream(fileStr... | FileInputStream fileStream = new FileInputStream(file); |
1,381,837 | public float[][][] parse(List<String> words, ProbCNFGrammar grammar) {<NEW_LINE>final int N = length(words);<NEW_LINE>final int M = grammar.vars.size();<NEW_LINE>// initialised to 0.0<NEW_LINE>float[][][] P = new float[<MASK><NEW_LINE>for (int i = 0; i < N; i++) {<NEW_LINE>// for each rule of form( X -> words<sub>i</su... | M][N][N]; |
946,276 | public StartSentimentDetectionJobResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartSentimentDetectionJobResult startSentimentDetectionJobResult = new StartSentimentDetectionJobResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte... | JsonToken token = context.getCurrentToken(); |
601,014 | public void executeWithoutPassword(BaseRequest request, BaseResponse response) throws DdlException {<NEW_LINE>if (redirectToMaster(request, response)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String clusterName = ConnectContext.get().getClusterName();<NEW_LINE>if (Strings.isNullOrEmpty(clusterName)) {<NEW_LINE>thro... | response, new Result(state)); |
79,733 | protected void performOperation() {<NEW_LINE>if (askPermission && neededPermissions.size() > 0) {<NEW_LINE>// Check whether file permissions are granted<NEW_LINE>Iterator<String> i = neededPermissions.iterator();<NEW_LINE>while (i.hasNext()) {<NEW_LINE>String perm = i.next();<NEW_LINE>if (!form.isDeniedPermission(perm)... | toArray(new ScopedFile[0]); |
1,060,040 | public ListServicePipelineOutputsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListServicePipelineOutputsResult listServicePipelineOutputsResult = new ListServicePipelineOutputsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | int originalDepth = context.getCurrentDepth(); |
480,603 | private void drawSwatches(Canvas canvas) {<NEW_LINE>float[] hsv = new float[3];<NEW_LINE>mText.setTextSize(mTextSizePx);<NEW_LINE>// Draw the original swatch<NEW_LINE>canvas.drawRect(mOldSwatchRect, mSwatchOld);<NEW_LINE>Color.colorToHSV(mOriginalColor, hsv);<NEW_LINE>// if (UberColorPickerDialog.isGray(mColor)) //Don'... | mText.setColor(Color.WHITE); |
1,561,300 | public void testJSONPointer(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JsonObject json = Json.createObjectBuilder().add("firstName", "Steve").add("lastName", "Watson").add("age", 45).add("phoneNumber", Json.createArrayBuilder().add(Json.createObjectBuilder().add("type", "offic... | p = Json.createPointer("/phoneNumber"); |
1,705,297 | protected static com.liferay.portal.model.UserTracker update(com.liferay.portal.model.UserTracker userTracker) throws com.liferay.portal.SystemException {<NEW_LINE>UserTrackerPersistence persistence = (UserTrackerPersistence) InstancePool.get(PERSISTENCE);<NEW_LINE>ModelListener listener = null;<NEW_LINE>if (Validator.... | boolean isNew = userTracker.isNew(); |
1,102,437 | public ArtifactConfigOutput unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ArtifactConfigOutput artifactConfigOutput = new ArtifactConfigOutput();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso... | int originalDepth = context.getCurrentDepth(); |
1,561,848 | public DataObject execute() throws UserException, BimserverLockConflictException, BimserverDatabaseException {<NEW_LINE>Revision virtualRevision = getRevisionByRoid(roid);<NEW_LINE>EObject eObject = null;<NEW_LINE>IfcModelSet ifcModelSet = new IfcModelSet();<NEW_LINE>PackageMetaData lastPackageMetaData = null;<NEW_LINE... | ? ifcRoot.getGlobalId() : ""; |
939,172 | private void parseRGStateFromFile(String tmpfilename, BufferedWriter writer, long startOffset) throws IOException {<NEW_LINE>try (FileInputStream fileInputStream = new FileInputStream(tmpfilename)) {<NEW_LINE>long offset = startOffset;<NEW_LINE>while (fileInputStream.available() > 0) {<NEW_LINE>// read type<NEW_LINE>//... | read = fileInputStream.read(payload); |
281,524 | void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>if (decoder.is64bMode) {<NEW_LINE>if ((decoder.options & DecoderOptions.AMD) == 0 || decoder.state_operandSize != OpSize.SIZE16) {<NEW_LINE>instruction.setCode(code64);<NEW_LINE>instruction.setOp0Kind(OpKind.NEAR_BRANCH64);<NEW_LINE>instruction.setNearBra... | instruction.setOp0Kind(OpKind.NEAR_BRANCH32); |
1,690,018 | private Map<String, String> parseHeader(final byte[] header) {<NEW_LINE>final byte[] name = new byte[32];<NEW_LINE>for (int i = 0; i < 32; i++) {<NEW_LINE>name[i] = header[i + 16];<NEW_LINE>}<NEW_LINE>final byte[] author = new byte[32];<NEW_LINE>for (int i = 0; i < 32; i++) {<NEW_LINE>author[i] = header[i + 48];<NEW_LI... | ] = header[i + 80]; |
690,952 | private void gatewayLogin() {<NEW_LINE>String aUrl = null;<NEW_LINE>moziotToken = null;<NEW_LINE>if (mozIotIP.getSecure() != null && mozIotIP.getSecure())<NEW_LINE>aUrl = "https://";<NEW_LINE>else<NEW_LINE>aUrl = "http://";<NEW_LINE>headers = new NameValue[2];<NEW_LINE>headers[0] = new NameValue();<NEW_LINE>headers<MAS... | [0].setName("Content-Type"); |
150,993 | public void run(RegressionEnvironment env) {<NEW_LINE>env.compileDeploy("@public @buseventtype create json schema JsonEvent(a int, b int);\n" + "@name('s0') select * from JsonEvent#keepall").addListener("s0");<NEW_LINE>env.sendEventJson("{\"a\" : 1, \"b\": 2, \"c\": 3}\n", "JsonEvent");<NEW_LINE>Map<String, Object> ex... | expectedThree, it.next()); |
98,031 | // ----------------------------------------------------------------<NEW_LINE>private static // returns line-counter<NEW_LINE>// returns line-counter<NEW_LINE>int handleStream(BufferedReader reader, String filename, MIH256<String> mihWithCenters, Map<Hash256, Integer> centersToIndices, int distanceThreshold, int lineCou... | queryAny(inputPair.hash, distanceThreshold); |
1,849,142 | public boolean onContextMenuClick(final ArrayAdapter<ContextMenuItem> adapter, int itemId, final int pos, boolean isChecked, int[] viewCoordinates) {<NEW_LINE>final OsmandSettings settings = mapActivity<MASK><NEW_LINE>final PoiFiltersHelper poiFiltersHelper = mapActivity.getMyApplication().getPoiFilters();<NEW_LINE>fin... | .getMyApplication().getSettings(); |
1,535,316 | public Expr apply(Expr expr, Analyzer analyzer, ExprRewriter.ClauseType clauseType) throws AnalysisException {<NEW_LINE>// meet condition<NEW_LINE>if (!(expr instanceof FunctionCallExpr)) {<NEW_LINE>return expr;<NEW_LINE>}<NEW_LINE>FunctionCallExpr fnExpr = (FunctionCallExpr) expr;<NEW_LINE>if (!fnExpr.getFnName().getF... | ).toLowerCase(), queryColumnName); |
1,579,066 | private boolean pruneEqPredicate(IndexSegment segment, EqPredicate eqPredicate, Map<String, DataSource> dataSourceCache) {<NEW_LINE>String column = eqPredicate.getLhs().getIdentifier();<NEW_LINE>DataSource dataSource = dataSourceCache.computeIfAbsent(column, segment::getDataSource);<NEW_LINE>// NOTE: Column must exist ... | DataSourceMetadata dataSourceMetadata = dataSource.getDataSourceMetadata(); |
1,044,491 | final CreateAnalyzerResult executeCreateAnalyzer(CreateAnalyzerRequest createAnalyzerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAnalyzerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateAnalyzer"); |
1,272,954 | final DisassociatePhoneNumbersFromVoiceConnectorResult executeDisassociatePhoneNumbersFromVoiceConnector(DisassociatePhoneNumbersFromVoiceConnectorRequest disassociatePhoneNumbersFromVoiceConnectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociatePhoneNumbersFromVoiceConnectorRe... | invoke(request, responseHandler, executionContext); |
1,114,295 | private VanillaChronicleMap<K, V, ?> createWithNewFile(@NotNull final VanillaChronicleMap<K, V, ?> map, @NotNull final File canonicalFile, @NotNull final RandomAccessFile raf, @NotNull final ChronicleHashResources resources, @NotNull final ByteBuffer headerBuffer, final int headerSize) throws IOException {<NEW_LINE>if ... | map, raf, headerBuffer, headerSize); |
1,377,974 | public void handleMessage(Message message) throws Fault {<NEW_LINE>AssertionInfoMap aim = message.get(AssertionInfoMap.class);<NEW_LINE>// extract Assertion information<NEW_LINE>if (aim != null) {<NEW_LINE>Collection<AssertionInfo> ais = aim.get(SP12Constants.HTTPS_TOKEN);<NEW_LINE>if (ais == null) {<NEW_LINE>return;<N... | (cert.getSubjectX500Principal())); |
1,102,335 | public GetAccessControlEffectResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetAccessControlEffectResult getAccessControlEffectResult = new GetAccessControlEffectResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar... | JsonToken token = context.getCurrentToken(); |
136,347 | private Future<Void> reconcileOnResourceChange(Reconciliation reconciliation, LogContext logContext, KafkaTopic topicResource, Topic k8sTopic, boolean isModify) {<NEW_LINE>TopicName topicName = new TopicName(topicResource);<NEW_LINE>return checkForNameChange(topicName, topicResource).onComplete(nameChanged -> {<NEW_LIN... | privateTopic = compositeResult.resultAt(1); |
1,262,125 | final DeleteApplicationResult executeDeleteApplication(DeleteApplicationRequest deleteApplicationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApplicationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new DeleteApplicationResultJsonUnmarshaller()); |
1,415,402 | public List<I_M_HU> packToHU(@NonNull final IHUContext huContext, @NonNull final HuId pickFromHUId, @NonNull final PackToInfo packToInfo, @NonNull final ProductId productId, @NonNull final Quantity qtyPicked, @NonNull final TableRecordReference documentRef, boolean checkIfAlreadyPacked) {<NEW_LINE>final I_M_HU pickFrom... | (true).create()); |
868,710 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>pnlAttributes = new javax.swing.JPanel();<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>jLabel2 = <MASK><NEW_LINE>p... | new javax.swing.JLabel(); |
1,111,088 | public Mono<Response<Void>> deleteOwnershipIdentifierWithResponseAsync(String resourceGroupName, String domainName, 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>}... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
656,726 | public void migrate(Schema schema, DatabaseSession databaseSession) {<NEW_LINE>EClass revision = schema.getEClass("store", "Revision");<NEW_LINE>EClass concreteRevision = schema.getEClass("store", "ConcreteRevision");<NEW_LINE>EClass densityCollection = schema.createEClass("store", "DensityCollection");<NEW_LINE>EClass... | createEReference(geometryInfo, "boundsUntransformedMm", bounds); |
319,974 | public void actionPerformed(final ActionEvent event) {<NEW_LINE>final Controller controller = Controller.getCurrentController();<NEW_LINE>final ModeController modeController = controller.getModeController();<NEW_LINE>final MFileManager fileManager = MFileManager.getController(modeController);<NEW_LINE>final JFileChoose... | MindMapPreviewWithOptions previewOptions = new MindMapPreviewWithOptions(fileChooser); |
817,752 | public NameEnvironmentAnswer findClass(String binaryFileName, String qualifiedPackageName, String moduleName, String qualifiedBinaryFileName, boolean asBinaryOnly, Predicate<String> moduleNameFilter) {<NEW_LINE>if (this.fs == null) {<NEW_LINE>return super.findClass(binaryFileName, qualifiedPackageName, moduleName, qual... | getModuleInJre12plus(this.releaseCode, qualifiedBinaryFileName); |
750,779 | private Map<String, RequestMapper<RuntimeResource>> findTarget(Class<?> locatorClass) {<NEW_LINE>if (locatorClass == Object.class || locatorClass == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Map<String, RequestMapper<RuntimeResource>> res = resourceLocatorHandlers.get(locatorClass);<NEW_LINE>if (res != null) {<... | results = new ArrayList<>(); |
403,830 | public static void configureEncryptionMenu(@NonNull Conversation conversation, Menu menu) {<NEW_LINE>final MenuItem menuSecure = menu.findItem(R.id.action_security);<NEW_LINE>final boolean participating = conversation.getMode() == Conversational.MODE_SINGLE || conversation.getMucOptions().participating();<NEW_LINE>if (... | findItem(R.id.encryption_choice_pgp); |
987,708 | public void handleMessage(GlobalHandlerMessageContext msgctxt) throws Exception {<NEW_LINE>if (msgctxt.getFlowType() == HandlerConstants.FLOW_TYPE_OUT) {<NEW_LINE>HttpServletRequest httpRequest = msgctxt.getHttpServletRequest();<NEW_LINE>System.out.println("in OutHandler3 handlemessage method OutBound");<NEW_LINE>if (h... | .get(SOAPMessageContext.WSDL_SERVICE)); |
601,127 | private Thumb[] scrapePostersAndFanart(boolean doCrop, boolean scrapingExtraFanart) {<NEW_LINE>// the movie poster, on this site it usually has both front and back<NEW_LINE>// cover joined in one image<NEW_LINE>Element postersElement = document.<MASK><NEW_LINE>// the extra screenshots for this movie. It's just the thum... | select("a[name=package-image], div#sample-video img[src*=/pics.dmm.co.jp]").first(); |
896,906 | public List<String> listAuxObjects() throws IOException {<NEW_LINE>if (!this.canWrite()) {<NEW_LINE>open();<NEW_LINE>}<NEW_LINE>String prefix = getDestinationKey("");<NEW_LINE>List<String> ret = new ArrayList<>();<NEW_LINE>ListObjectsRequest req = new ListObjectsRequest().withBucketName(bucketName).withPrefix(prefix);<... | storedAuxFilesList = s3.listNextBatchOfObjects(storedAuxFilesList); |
1,561,062 | private static void remoteSendFormData(final PwmRequest pwmRequest, final NewUserForm newUserForm, final FormDataRequestBean.Mode mode) throws PwmUnrecoverableException, PwmDataValidationException {<NEW_LINE>final RestFormDataClient restFormDataClient = new RestFormDataClient(pwmRequest.getPwmDomain(), pwmRequest.getLa... | { formDataResponseBean.getErrorMessage() }); |
1,512,733 | public void execute() {<NEW_LINE>// We can assume we have the named persistence unit and its mapping file in our classpath,<NEW_LINE>// but we may have to allow some properties in that persistence unit to be overridden before<NEW_LINE>// we can successfully get that persistence unit's metamodel.<NEW_LINE>Map<String, St... | Persistence.createEntityManagerFactory(persistenceUnitName, properties); |
1,107,994 | public void process(LArrayAccessor<TupleDesc_U8> points, DogArray_I32 assignments, FastAccess<TupleDesc_U8> clusters) {<NEW_LINE>// see if it should run the single thread version instead<NEW_LINE>if (points.size() < minimumForConcurrent) {<NEW_LINE>super.process(points, assignments, clusters);<NEW_LINE>return;<NEW_LINE... | divisor = counts.get(clusterIdx); |
101,837 | public Object run(Context cx) {<NEW_LINE>cx.setTrackUnhandledPromiseRejections(true);<NEW_LINE>timers.install(global);<NEW_LINE>if (useRequire) {<NEW_LINE>require = global.<MASK><NEW_LINE>}<NEW_LINE>if (type == PROCESS_FILES) {<NEW_LINE>processFiles(cx, args);<NEW_LINE>printPromiseWarnings(cx);<NEW_LINE>} else if (type... | installRequire(cx, modulePath, sandboxed); |
46,747 | public void backupCertificateCodeSnippets() {<NEW_LINE>CertificateAsyncClient certificateAsyncClient = getCertificateAsyncClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.certificates.CertificateAsyncClient.backupCertificate#string<NEW_LINE>certificateAsyncClient.backupCertificate("certificateName").subscriberC... | ("Certificate's Backup Byte array's length %s %n", certificateBackupResponse.length)); |
233,486 | private static Class<?> loadClassLiteral(DynamicClassLiteral dynamicClassLiteralRequest, List<JarTransformationRecord> jarTransformationRecords, ClassLoader initialInputClassLoader, Table<Integer, ClassMemberKey<?>, Member> reflectionBasedMembers, Table<Integer, ClassMemberKey<?>, Set<ClassMemberKey<?>>> missingDescrip... | ? requestedClassName : workingJavaPackage + "." + requestedClassName; |
585,725 | public Object onCall(String method, Map<String, Object> param) {<NEW_LINE>Bundle result = new Bundle();<NEW_LINE>ConversationEventListener conversationEventListener = getInstance().getConversationEventListener();<NEW_LINE>if (conversationEventListener == null) {<NEW_LINE>TUIConversationLog.e(TAG, "execute " + method + ... | TUIConstants.TUIConversation.EVENT_SUB_KEY_UNREAD_CHANGED, unreadMap); |
357,212 | private void addAttributes(Element e, NamedNodeMap attrs) {<NEW_LINE>if (attrs == null)<NEW_LINE>return;<NEW_LINE>String elPrefix = e.getPrefix();<NEW_LINE>for (int i = 0; i < attrs.getLength(); i++) {<NEW_LINE>Attr a = (Attr) attrs.item(i);<NEW_LINE>// check if attr is ns declaration<NEW_LINE>if ("xmlns".equals(a.getP... | ), a.getValue()); |
1,338,437 | private boolean buildVerticalHeader(COSDictionary cidFont) throws IOException {<NEW_LINE>VerticalHeaderTable vhea = ttf.getVerticalHeader();<NEW_LINE>if (vhea == null) {<NEW_LINE>Log.w("PdfBox-Android", "Font to be subset is set to vertical, but has no 'vhea' table");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>float sc... | (COSInteger.get(w1)); |
1,793,057 | public void startBenchmark(BenchmarkParams params) {<NEW_LINE>String opts = Utils.join(params.getJvmArgs(), " ");<NEW_LINE>if (opts.trim().isEmpty()) {<NEW_LINE>opts = "<none>";<NEW_LINE>}<NEW_LINE>println("# JMH version: " + params.getJmhVersion());<NEW_LINE>println("# VM version: JDK " + params.getJdkVersion() + ", "... | , measurement.getCount())); |
238,748 | private void initControllerView(View v) {<NEW_LINE>// By default these are hidden.<NEW_LINE>mPrevButton = v.findViewById(PRV_BUTTON_ID);<NEW_LINE>if (mPrevButton != null) {<NEW_LINE>mPrevButton.setVisibility(View.GONE);<NEW_LINE>}<NEW_LINE>mNextButton = v.findViewById(NEXT_BUTTON_ID);<NEW_LINE>if (mNextButton != null) ... | mEndTime = v.findViewById(END_TIME_ID); |
836,571 | final CreateDedicatedIpPoolResult executeCreateDedicatedIpPool(CreateDedicatedIpPoolRequest createDedicatedIpPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDedicatedIpPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>... | invoke(request, responseHandler, executionContext); |
201,819 | private static int shardingNodeCheck(String stmt, int offset) throws SQLSyntaxErrorException {<NEW_LINE>if (stmt.length() > offset + 10) {<NEW_LINE>char c1 = stmt.charAt(++offset);<NEW_LINE>char c2 = stmt.charAt(++offset);<NEW_LINE>char c3 = stmt.charAt(++offset);<NEW_LINE>char c4 = stmt.charAt(++offset);<NEW_LINE>char... | = stmt.charAt(++offset); |
1,161,126 | static void pick_intra4x4block(Macroblock x, BPredictionMode[] bestmode, int ib, final EnumMap<BPredictionMode, Integer> mode_costs, QualityMetrics best) {<NEW_LINE>BlockD b = x.e_mbd.block.getRel(ib);<NEW_LINE>Block be = x.block.getRel(ib);<NEW_LINE>int dst_stride = x.e_mbd.dst.y_stride;<NEW_LINE>best.error = Long.MAX... | y_buffer).shallowCopyWithPosInc(-dst_stride); |
909,202 | private void positionArrow(Pane btn, StackPane arrow, double x, double y, double width, double height) {<NEW_LINE>btn.resize(width, height);<NEW_LINE>positionInArea(btn, x, y, width, height, /*baseline ignored*/<NEW_LINE>0, HPos.CENTER, VPos.CENTER);<NEW_LINE>// center arrow region within arrow button<NEW_LINE>double a... | arrow.prefWidth(-1)); |
1,480,378 | public void fillSettings(WebSettings settings, IRhoConfig config) {<NEW_LINE>boolean enableZoom = config == null || config.getBool(WebViewConfig.ENABLE_ZOOM);<NEW_LINE>boolean enableCache = config == null || config.getBool(WebViewConfig.ENABLE_CACHE);<NEW_LINE>boolean enableMediaPlaybackWithoutGesture = config != null ... | settings.setCacheMode(WebSettings.LOAD_NO_CACHE); |
429,722 | public LotteryNumbers performLottery() {<NEW_LINE>var numbers = LotteryNumbers.createRandom();<NEW_LINE>var tickets = getAllSubmittedTickets();<NEW_LINE>for (var id : tickets.keySet()) {<NEW_LINE>var lotteryTicket = tickets.get(id);<NEW_LINE>var playerDetails = lotteryTicket.getPlayerDetails();<NEW_LINE>var playerAccou... | id, numbers).getResult(); |
474,099 | public static void dumpConfiguration(final PrintStream out) {<NEW_LINE>out.print("OrientDB ");<NEW_LINE>out.print(OConstants.getVersion());<NEW_LINE>out.println(" configuration dump:");<NEW_LINE>String lastSection = "";<NEW_LINE>for (OGlobalConfiguration value : values()) {<NEW_LINE>final int index = <MASK><NEW_LINE>St... | value.key.indexOf('.'); |
1,732,608 | public ExportingLocation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExportingLocation exportingLocation = new ExportingLocation();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token... | int originalDepth = context.getCurrentDepth(); |
1,600,833 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>story = (Story) getArguments().getSerializable(STORY);<NEW_LINE>commentUserId = getArguments().getString(COMMENT_USER_ID);<NEW_LINE>final Activity activity = getActivity();<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(activity);<NEW_LI... | ).getString(COMMENT_USERNAME))); |
19,094 | public void initialize() {<NEW_LINE>try {<NEW_LINE>final NotificationQueueHandler queueHandler = new NotificationQueueHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handleReadyNotification(final NotificationEvent inputKey, final DateTime eventDateTime, final UUID fromNotificationQueueUserToken, final Lon... | getClass().getName()); |
1,345,748 | public void jpa10_Injection_DPU_AppLevel_JNDI_Web_AMRL() throws Exception {<NEW_LINE>final String testName = "jpa10_Injection_DPU_AppLevel_JNDI_Web_AMRL";<NEW_LINE>final String testMethod = "testDefaultPersistenceUnitInjection";<NEW_LINE>final TestExecutionContext testExecCtx = new TestExecutionContext(testName, testLo... | > properties = testExecCtx.getProperties(); |
919,285 | public boolean init(final Expression<?>[] exprs, final int matchedPattern, final Kleenean isDelayed, final ParseResult parseResult) {<NEW_LINE>amount = (Expression<Number>) exprs[0];<NEW_LINE>switch(matchedPattern) {<NEW_LINE>case 0:<NEW_LINE>direction = new Vector(byMark[parseResult.mark].getModX(), byMark[parseResult... | = parseResult.mark % 2 != 0; |
649,503 | private void parsePartition(Element stepElement, Element partitionElement, AbstractBeanDefinition bd, ParserContext parserContext, boolean stepUnderspecified, String jobFactoryRef) {<NEW_LINE>bd.setBeanClass(StepParserStepFactoryBean.class);<NEW_LINE>bd.setAttribute("isNamespaceStep", true);<NEW_LINE>String stepRef = p... | aggregatorRef = partitionElement.getAttribute(AGGREGATOR_ATTR); |
1,088,797 | private CharSequence generateChoicesDisplay(final String name, final List<Token> tokens) {<NEW_LINE>final String indent = INDENT;<NEW_LINE>final StringBuilder sb = new StringBuilder();<NEW_LINE>final List<Token> choiceTokens = new ArrayList<>();<NEW_LINE>collect(Signal.CHOICE, tokens, 0, choiceTokens);<NEW_LINE>new For... | (indent).append(" {\n"); |
1,004,984 | final DeleteEnvironmentResult executeDeleteEnvironment(DeleteEnvironmentRequest deleteEnvironmentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEnvironmentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteEnvironment"); |
395,010 | public void preInitialise(final String graphId, final Schema schema, final StoreProperties properties) throws StoreException {<NEW_LINE>setProperties(properties);<NEW_LINE>final String deprecatedTableName = getProperties().getTable();<NEW_LINE>if (null == graphId && null != deprecatedTableName) {<NEW_LINE>// Deprecated... | keyPackage.setSchema(getSchema()); |
980,401 | public AwsS3BucketNotificationConfigurationFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsS3BucketNotificationConfigurationFilter awsS3BucketNotificationConfigurationFilter = new AwsS3BucketNotificationConfigurationFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_... | ().unmarshall(context)); |
660,548 | public void publishHrefAddedEvent(HistoryReference href) {<NEW_LINE>Map<String, String> map = new HashMap<>();<NEW_LINE>map.put(FIELD_HISTORY_REFERENCE_ID, Integer.toString(href.getHistoryId()));<NEW_LINE>map.put(FIELD_URI, href.getURI().toString());<NEW_LINE>map.put(FIELD_METHOD, href.getMethod());<NEW_LINE>map.put(FI... | , EVENT_ADDED, null, map)); |
880,308 | public UpdateResourceShareResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateResourceShareResult updateResourceShareResult = new UpdateResourceShareResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()... | JsonToken token = context.getCurrentToken(); |
1,837,126 | private void resumeScreenLock(boolean force) {<NEW_LINE>KeyguardManager keyguardManager = (<MASK><NEW_LINE>assert keyguardManager != null;<NEW_LINE>if (!keyguardManager.isKeyguardSecure()) {<NEW_LINE>Log.w(TAG, "Keyguard not secure...");<NEW_LINE>handleAuthenticated();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (Build.VER... | KeyguardManager) getSystemService(Context.KEYGUARD_SERVICE); |
1,367,559 | private void insertJobMetadata() {<NEW_LINE>final String baseURL = this.azkabanProps.get(AZKABAN_WEBSERVER_URL);<NEW_LINE>if (baseURL != null) {<NEW_LINE>URL webserverURL = null;<NEW_LINE>try {<NEW_LINE>webserverURL = new URL(baseURL);<NEW_LINE>} catch (MalformedURLException e) {<NEW_LINE>logger.error(String.format("Ex... | , flowName, this.jobId)); |
1,344,083 | static public void init() {<NEW_LINE>try {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>Class<?> <MASK><NEW_LINE>if (Platform.isMacOS()) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>platformClass = Class.forName("processing.app.platform.MacPlatform");<NEW_LINE>} else if (Platform.isWindows()) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>platformClass... | platformClass = Class.forName("processing.app.Platform"); |
1,070,826 | public ChatThreadAsyncClient createChatThreadAsyncClient() {<NEW_LINE>String endpoint = "https://<RESOURCE_NAME>.communcationservices.azure.com";<NEW_LINE>// Your user access token retrieved from your trusted service<NEW_LINE>String threadId = "ID";<NEW_LINE>String token = "SECRET";<NEW_LINE>CommunicationTokenCredentia... | ChatAsyncClient chatClient = builder.buildAsyncClient(); |
101,230 | private void commandMemDispl(int flags, int extraDispl) {<NEW_LINE>if ((flags & Flags.NO_MEMORY_USAGE) == 0) {<NEW_LINE>if (info.usedMemoryLocations.size() == 1) {<NEW_LINE>UsedMemory mem = info.usedMemoryLocations.get(0);<NEW_LINE>long mask;<NEW_LINE>switch(mem.getAddressSize()) {<NEW_LINE>case CodeSize.CODE16:<NEW_LI... | , mem.getVsibSize())); |
1,720,191 | protected JComponent createLeftTop() {<NEW_LINE>varList = new VarListPanel();<NEW_LINE>varList.setType(DataPanel.VAR_LIST);<NEW_LINE>varList.addListMouseListener(new LocalListMouseListener());<NEW_LINE>varList.setPreferredSize(new Dimension(325, 300));<NEW_LINE>varList.getJList().setTransferHandler(new DataTransferHand... | ).setBackground(Color.white); |
539,499 | public void SetData(Buffer data) {<NEW_LINE>if (data instanceof ByteBuffer) {<NEW_LINE>if (!data.isDirect()) {<NEW_LINE>ByteBuffer buff = ByteBuffer.<MASK><NEW_LINE>buff.order(ByteOrder.nativeOrder());<NEW_LINE>buff.put((ByteBuffer) data);<NEW_LINE>data.rewind();<NEW_LINE>buff.rewind();<NEW_LINE>data = buff;<NEW_LINE>}... | allocateDirect(data.capacity()); |
366,908 | private void createArea(final NodeModel node) {<NEW_LINE>final NodeView nodeView = mapView.getNodeView(node);<NEW_LINE>if (nodeView != null) {<NEW_LINE>final AreaHolder holder = new AreaHolder();<NEW_LINE>holder.title = TextController.getController().getShortPlainText(node);<NEW_LINE>holder.alt = TextController.getCont... | JComponent content = nodeView.getContent(); |
980,254 | // http://download.oracle.com/javase/1.3/docs/guide/rmi/spec/rmi-protocol.html<NEW_LINE>public static void main(String[] args) throws Exception {<NEW_LINE>FileOutputStream fos = new FileOutputStream("build/rmipacket");<NEW_LINE>ServerSocket ss = new ServerSocket(11099);<NEW_LINE>Thread t = new Thread(new Runnable() {<N... | Socket s = ss.accept(); |
346,878 | private void convertTCPSampler(MsTCPSampler msTCPSampler, TCPSampler tcpSampler) {<NEW_LINE>msTCPSampler.<MASK><NEW_LINE>msTCPSampler.setType("TCPSampler");<NEW_LINE>msTCPSampler.setServer(tcpSampler.getServer());<NEW_LINE>msTCPSampler.setPort(tcpSampler.getPort() + "");<NEW_LINE>msTCPSampler.setCtimeout(tcpSampler.get... | setName(tcpSampler.getName()); |
337,856 | public TransformationStatus transform(TransformWork work) throws IOException, ValidationException, RepoException {<NEW_LINE>SkylarkConsole skylarkConsole = new SkylarkConsole(work.getConsole());<NEW_LINE>TransformWork skylarkWork = work.withConsole(skylarkConsole).withParams(params);<NEW_LINE>TransformationStatus statu... | EmptyChangeException) e.getCause()); |
1,127,707 | protected int XXX_get_pending_length_with_no_symbol_tables() {<NEW_LINE>int buffer_length = _manager.buffer().size();<NEW_LINE>int patch_amount = 0;<NEW_LINE>for (int patch_idx = 0; patch_idx < _patch_count; patch_idx++) {<NEW_LINE>// int vlen = _patch_list[patch_idx + IonBinaryWriter.POSITION_OFFSET];<NEW_LINE>int vle... | ln = IonBinary.lenVarUInt(vlen); |
328,032 | protected Boolean doInBackground(Uri... uris) {<NEW_LINE>try {<NEW_LINE>InputStream accountInputStream = mContext.getContentResolver().openInputStream(uris[0]);<NEW_LINE>mImportedBookUID = GncXmlImporter.parse(accountInputStream);<NEW_LINE>} catch (Exception exception) {<NEW_LINE>Log.e(ImportAsyncTask.class.getName(), ... | String err_msg = exception.getLocalizedMessage(); |
958,636 | public void deleteProcessRule(HttpServletRequest request, RuleEngineEntity engineEntity) throws GovernanceException {<NEW_LINE>try {<NEW_LINE>if (!this.checkProcessorExist(request)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String deleteUrl = new StringBuffer(this.getProcessorUrl()).append(ConstantProperties.PROCESSOR_DEL... | throw new GovernanceException("processor delete ruleEngine fail ", e); |
187,397 | public boolean apply(Game game, Ability source) {<NEW_LINE>Token token = new KorWarriorToken();<NEW_LINE>token.putOntoBattlefield(1, game, source, source.getControllerId());<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<... | collect(Collectors.toList()); |
331,266 | public List<Object> findByRelation(String colName, Object colValue, Class entityClazz) {<NEW_LINE>EntityMetadata m = KunderaMetadataManager.getEntityMetadata(kunderaMetadata, entityClazz);<NEW_LINE>// you got column name and column value.<NEW_LINE>DBCollection dbCollection = mongoDb.getCollection(m.getTableName());<NEW... | , colValue.getClass())); |
1,500,056 | private static Bundle toBundle(@Nullable RemoteMessage.Notification notification) {<NEW_LINE>if (notification == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Bundle serializedNotification = new Bundle();<NEW_LINE>serializedNotification.putString("body", notification.getBody());<NEW_LINE>serializedNotification.putS... | "sticky", notification.getSticky()); |
1,247,191 | private void buildMustQueryListByCondition(final EventQueryCondition condition, final BoolQueryBuilder query) {<NEW_LINE>if (!isNullOrEmpty(condition.getUuid())) {<NEW_LINE>query.must(Query.term(Event.UUID, condition.getUuid()));<NEW_LINE>}<NEW_LINE>final Source source = condition.getSource();<NEW_LINE>if (source != nu... | , source.getService())); |
365,487 | public static ASTNode addChildren(ASTNode parent, @Nonnull ASTNode first, @Nonnull ASTNode last, ASTNode anchorBefore) {<NEW_LINE><MASK><NEW_LINE>ASTNode current = first;<NEW_LINE>while (current != lastChild) {<NEW_LINE>saveWhitespacesInfo(current);<NEW_LINE>checkForOuters(current);<NEW_LINE>current = current.getTreeNe... | ASTNode lastChild = last.getTreeNext(); |
223,151 | protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>super.onMeasure(widthMeasureSpec, heightMeasureSpec);<NEW_LINE>View view = resolveView();<NEW_LINE>if (view != null) {<NEW_LINE>int width = MeasureSpec.getSize(widthMeasureSpec);<NEW_LINE>int <MASK><NEW_LINE>int leftLineWidth = leftBorder ... | height = MeasureSpec.getSize(heightMeasureSpec); |
1,628,893 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see java.lang.Runnable#run()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>Datapoint dp = null;<NEW_LINE>try {<NEW_LINE>while (true) {<NEW_LINE>sLogger.debug("Autorefresh: Waiting for new item in reader queue");<NEW_LINE>dp = readQueue.take();<NE... | sLogger.debug("Autorefresh: Trying to read from KNX bus: {}", dp); |
338,688 | private void whileStatement() {<NEW_LINE>move(true);<NEW_LINE>// prepare to call __reducer_callcc(LOOP, iterator, statements)<NEW_LINE>getCodeGeneratorWithTimes().onMethodName(Constants.ReducerFn);<NEW_LINE>getCodeGeneratorWithTimes().onConstant(Constants.REDUCER_LOOP);<NEW_LINE>getCodeGeneratorWithTimes().onMethodPara... | ).onLambdaBodyStart(this.lookhead); |
1,631,974 | public List<ValidateError> validate() {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(this.systemName, convLabelName("System Name"));<NEW_LINE... | ValidatorFactory.getInstance(Validator.INTEGER); |
1,044,302 | public RouteInfoDTO insertRoute(RouteInfoDTO routeInfoDTO) throws OperatorRouteException {<NEW_LINE>try {<NEW_LINE>// todo<NEW_LINE>validator(routeInfoDTO);<NEW_LINE>if (StringUtils.isBlank(routeInfoDTO.getRouteId())) {<NEW_LINE>String routeId = RouteIdGenerator.gen(routeInfoDTO);<NEW_LINE>routeInfoDTO.setRouteId(route... | , routeInfoDTO.getRouteId())); |
1,718,241 | private static void sortAndAddMapEntriesToList(@NonNull final Multimap<IPair<String, AttributeId>, AttributeValueId> groupNameToAttributeValueIds, @NonNull final Builder<DimensionSpecGroup> list) {<NEW_LINE>final Collection<Entry<IPair<String, AttributeId>, Collection<AttributeValueId>>> //<NEW_LINE>entrySet = groupNam... | .getKey().getLeft(); |
822,853 | public static ByteBuf copiedBuffer(ByteBuf... buffers) {<NEW_LINE>switch(buffers.length) {<NEW_LINE>case 0:<NEW_LINE>return EMPTY_BUFFER;<NEW_LINE>case 1:<NEW_LINE>return copiedBuffer(buffers[0]);<NEW_LINE>}<NEW_LINE>// Merge the specified buffers into one buffer.<NEW_LINE>ByteOrder order = null;<NEW_LINE>int length = ... | int bLen = b.readableBytes(); |
808,809 | public boolean apply(Game game, Ability source) {<NEW_LINE>FilterCard filterCardInHand = new FilterCard();<NEW_LINE>filterCardInHand.add(<MASK><NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent academyResearchers = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller ... | SubType.AURA.getPredicate()); |
710,120 | public // }<NEW_LINE>int createParticle(ParticleDef def) {<NEW_LINE>if (m_count >= m_internalAllocatedCapacity) {<NEW_LINE>int capacity = m_count != 0 ? 2 * m_count : Settings.minParticleBufferCapacity;<NEW_LINE>capacity = limitCapacity(capacity, m_maxCount);<NEW_LINE>capacity = <MASK><NEW_LINE>capacity = limitCapacity... | limitCapacity(capacity, m_flagsBuffer.userSuppliedCapacity); |
824,046 | public static void main(String[] args) throws FileNotFoundException, IOException {<NEW_LINE>// Process the command-line options<NEW_LINE>CommandOption.setSummary(SvmLight2Classify.class, "A tool for classifying a stream of unlabeled instances");<NEW_LINE>CommandOption.process(SvmLight2Classify.class, args);<NEW_LINE>//... | classify(instance).getLabeling(); |
680,355 | private void recordAttributes(SpanEventRecorder recorder, MethodDescriptor methodDescriptor, Object[] args) {<NEW_LINE>if (methodDescriptor.getMethodName().equals("execute")) {<NEW_LINE>recorder.recordAttribute(ElasticsearchConstants.ARGS_URL_ANNOTATION_KEY, args[0]);<NEW_LINE>if (recordDsl) {<NEW_LINE>recorder.recordA... | .ARGS_ACTION_ANNOTATION_KEY, args[2]); |
783,844 | final RevokeSignatureResult executeRevokeSignature(RevokeSignatureRequest revokeSignatureRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(revokeSignatureRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<Revoke... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
313,413 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Map<Player, Cards> playerCardsMap = new LinkedHashMap<>();<NEW_LINE>for (UUID playerId : game.getState().getPlayersInRang... | ), target, source, game); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.