idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
361,722 | public void cancelTask(final int taskId) {<NEW_LINE>if (taskId <= 0)<NEW_LINE>return;<NEW_LINE>if (!this.isAsyncScheduler)<NEW_LINE>this.asyncScheduler.cancelTask(taskId);<NEW_LINE>BukkitTaskImpl <MASK><NEW_LINE>if (task != null)<NEW_LINE>task.cancel0();<NEW_LINE>task = new BukkitTaskImpl(new Runnable() {<NEW_LINE><NEW... | task = runners.get(taskId); |
1,325,438 | public Set<SootMethod> resolveAbstractDispatch(SootClass baseType, SootMethodRef m) {<NEW_LINE>HashSet<SootClass> resolved = new HashSet<>();<NEW_LINE>HashSet<SootMethod> ret = new HashSet<>();<NEW_LINE>ArrayDeque<SootClass> worklist = new ArrayDeque<>();<NEW_LINE>worklist.add(baseType);<NEW_LINE>while (true) {<NEW_LIN... | concreteType, m, false, resolved); |
115,667 | protected View doInBackground(View... params) {<NEW_LINE>try {<NEW_LINE>m = new AccountManager(Authentication.reddit);<NEW_LINE>JsonNode node = m.getFlairChoicesRootNode(subreddit, null);<NEW_LINE>flairs = m.getFlairChoices(subreddit, node);<NEW_LINE>FlairTemplate currentF = m.getCurrentFlair(subreddit, node);<NEW_LINE... | flairText = new ArrayList<>(); |
563,087 | protected int doWork() {<NEW_LINE>IOUtil.assertFileIsReadable(INPUT);<NEW_LINE>final File metricsFile = new <MASK><NEW_LINE>IOUtil.assertFileIsWritable(metricsFile);<NEW_LINE>final MetricsFile<VerifyIDIntensityContaminationMetrics, ?> verifyIDIntensityContaminationMetricsFile = getMetricsFile();<NEW_LINE>final Pattern ... | File(OUTPUT + "." + FILE_EXTENSION); |
30,327 | public void processPostXpEvent(PrimarySkillType primarySkillType, Plugin plugin, XPGainSource xpGainSource) {<NEW_LINE>// Check if they've reached the power level cap just now<NEW_LINE>if (hasReachedPowerLevelCap()) {<NEW_LINE>NotificationManager.sendPlayerInformationChatOnly(player, "LevelCap.PowerLevel", String.value... | ().getPowerLevelCap())); |
374,334 | public static DescribeInvocationsResponse unmarshall(DescribeInvocationsResponse describeInvocationsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeInvocationsResponse.setRequestId(_ctx.stringValue("DescribeInvocationsResponse.RequestId"));<NEW_LINE>describeInvocationsResponse.setNextToken(_ctx.stringValue("Desc... | + "].InvokeDesktops[" + j + "].Output")); |
1,368,777 | final DescribeVirtualGatewaysResult executeDescribeVirtualGateways(DescribeVirtualGatewaysRequest describeVirtualGatewaysRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVirtualGatewaysRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
1,212,078 | public Object call() throws Exception {<NEW_LINE>try {<NEW_LINE>for (int loop = 0; loop < numRepeats; loop++) {<NEW_LINE><MASK><NEW_LINE>Object theEvent;<NEW_LINE>if (loop % 2 == 0) {<NEW_LINE>theEvent = new SupportMarketDataBean("", 0, newValue, "");<NEW_LINE>} else {<NEW_LINE>SupportBean bean = new SupportBean();<NEW... | long newValue = threadNum * 1000000 + loop; |
47,518 | private void buildFindContainersQuery(final boolean includeArchived, final String hostId, final String inode, final String identifier, final String parent, final ContentTypeAPI contentTypeAPI, final StringBuilder query) throws DotSecurityException, DotDataException {<NEW_LINE>if (UtilMethods.isSet(parent)) {<NEW_LINE>/... | (hostId).append('\''); |
1,695,953 | public boolean isEarned(GeyserAdvancement advancement) {<NEW_LINE>boolean earned = false;<NEW_LINE>if (advancement.getRequirements().size() == 0) {<NEW_LINE>// Minecraft handles this case, so we better as well<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Map<String, Long> progress = storedAdvancementProgress.<MASK><NEW_L... | get(advancement.getId()); |
867,693 | void checkConcreteInheritedMethod(MethodBinding concreteMethod, MethodBinding[] abstractMethods) {<NEW_LINE>// Remember that interfaces can only define public instance methods<NEW_LINE>if (concreteMethod.isStatic())<NEW_LINE>// Cannot inherit a static method which is specified as an instance method by an interface<NEW_... | this.type, concreteMethod, abstractMethods); |
775,040 | public long readLong(int start) {<NEW_LINE>long ret = (0xFF00000000000000L & (((long) stateBytes[start + 7]) << 56)) | (0x00FF000000000000L & (((long) stateBytes[start + 6]) << 48)) | (0x0000FF0000000000L & (((long) stateBytes[start + 5]) << 40)) | (0x000000FF00000000L & (((long) stateBytes[start + 4]) << 32)) | (0x000... | ret : Long.reverseBytes(ret); |
1,806,569 | private void renderImage(FacesContext context, ImageCropper cropper, String clientId) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String alt = cropper.getAlt() == null ? Constants.EMPTY_STRING : cropper.getAlt();<NEW_LINE>writer.startElement("img", null);<NEW_LINE>writer.... | "id", clientId + "_image", null); |
1,161,573 | public HollowConsumer.Blob retrieveReverseDeltaBlob(long currentVersion) {<NEW_LINE>try (DirectoryStream<Path> directoryStream = Files.newDirectoryStream(blobStorePath)) {<NEW_LINE>for (Path path : directoryStream) {<NEW_LINE>String filename = path.getFileName().toString();<NEW_LINE>if (filename.startsWith("reversedelt... | remoteBlob = fallbackBlobRetriever.retrieveReverseDeltaBlob(currentVersion); |
302,005 | protected ResponseHeader execute(final String schemaName, final T sqlStatement) throws DistSQLException {<NEW_LINE>RuleDefinitionUpdater ruleDefinitionUpdater = TypedSPIRegistry.getRegisteredService(RuleDefinitionUpdater.class, sqlStatement.getClass().getCanonicalName(), new Properties());<NEW_LINE>Class<? extends Rule... | > ruleConfigClass = ruleDefinitionUpdater.getRuleConfigurationClass(); |
1,328,936 | // Host env will override group env, if there is conflicts, and convert to Map<NEW_LINE>Map<String, EnvironBean> convergeEnvs(String host, List<EnvironBean> hostEnvs, List<EnvironBean> groupEnvs) {<NEW_LINE>Map<String, EnvironBean> hostEnvMap = mergeEnvs(host, hostEnvs);<NEW_LINE>Map<String, EnvironBean> groupEnvMap = ... | EnvironBean envBean = entry.getValue(); |
1,061,693 | private ArrayList<Object> zpkBilinear(Complex[] z, Complex[] p, int k, double fs) {<NEW_LINE>// Return a digital filter from an analog one using a bilinear transform.<NEW_LINE>Complex[] zz = new Complex[z.length];<NEW_LINE>Complex[] pz = new Complex[p.length];<NEW_LINE>double kz;<NEW_LINE>relativeDegree(z, p);<NEW_LINE... | Complex complexFs2 = new Complex(fs2); |
1,301,577 | public static ClientScopeModel addRolesClientScope(RealmModel newRealm) {<NEW_LINE>ClientScopeModel rolesScope = KeycloakModelUtils.getClientScopeByName(newRealm, ROLES_SCOPE);<NEW_LINE>if (rolesScope == null) {<NEW_LINE>rolesScope = newRealm.addClientScope(ROLES_SCOPE);<NEW_LINE>rolesScope.setDescription("OpenID Conne... | (builtins.get(CLIENT_ROLES)); |
1,652,898 | // used from RGs' JRuby defaults (as well as jar_dependencies)<NEW_LINE>@JRubyMethod(module = true, name = "class_loader_resources", alias = "classloader_resources", required = 1, optional = 1)<NEW_LINE>public static IRubyObject class_loader_resources(ThreadContext context, IRubyObject recv, IRubyObject... args) {<NEW_... | boolean raw = false, path = false; |
1,347,028 | public static DescribeDcdnUserDomainsResponse unmarshall(DescribeDcdnUserDomainsResponse describeDcdnUserDomainsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDcdnUserDomainsResponse.setRequestId(_ctx.stringValue("DescribeDcdnUserDomainsResponse.RequestId"));<NEW_LINE>describeDcdnUserDomainsResponse.setPageNumb... | ("DescribeDcdnUserDomainsResponse.Domains[" + i + "].Description")); |
799,868 | public void credSave(View view) {<NEW_LINE>Intent data = new Intent();<NEW_LINE>EditText edit;<NEW_LINE>edit = (EditText) findViewById(R.id.cred_edit_username);<NEW_LINE>data.putExtra("username", edit.<MASK><NEW_LINE>edit = (EditText) findViewById(R.id.cred_edit_realm);<NEW_LINE>data.putExtra("realm", edit.getText().to... | getText().toString()); |
114,484 | private void measureVertical(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int hSize = MeasureSpec.getSize(heightMeasureSpec) - (getPaddingTop() + getPaddingBottom());<NEW_LINE>int count = getChildCount();<NEW_LINE>int columnHeight = 0;<NEW_LINE>int totalWidth = 0, maxColumnHeight = 0;<NEW_LINE>int columnMaxW... | (LayoutParams) child.getLayoutParams(); |
1,731,669 | public static MutableInodeFile fromJournalEntry(InodeFileEntry entry) {<NEW_LINE>// If journal entry has no mode set, set default mode for backwards-compatibility.<NEW_LINE>MutableInodeFile ret = // for backward compatibility, set access time to modification time if it is not in journal<NEW_LINE>new MutableInodeFile(Bl... | (entry.getXAttrMap())); |
1,115,819 | private RDD<Element> doOperation(final GetRDDOfElements operation, final Context context, final AccumuloStore accumuloStore) throws OperationException {<NEW_LINE>final Configuration conf = getConfiguration(operation);<NEW_LINE>final SparkContext sparkContext = SparkContextUtil.getSparkSession(context, accumuloStore.get... | addRanges(accumuloStore, conf, operation); |
1,780,998 | public final void mWS(boolean _createToken) throws RecognitionException, CharStreamException, TokenStreamException {<NEW_LINE>int _ttype;<NEW_LINE>Token _token = null;<NEW_LINE><MASK><NEW_LINE>_ttype = WS;<NEW_LINE>int _saveIndex;<NEW_LINE>{<NEW_LINE>switch(LA(1)) {<NEW_LINE>case ' ':<NEW_LINE>{<NEW_LINE>match(' ');<NE... | int _begin = text.length(); |
475,731 | private void prepare(IParam param, Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("rank" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>if (param.isLeaf()) {<NEW_LINE>exp = param.getLeafExpression();<NEW_LINE>} else {<NEW_LIN... | MessageManager mm = EngineMessage.get(); |
881,576 | public static void execute(ManagerConnection c, String openCloseFlag) {<NEW_LINE>SystemConfig system = MycatServer.getInstance().getConfig().getSystem();<NEW_LINE>int oldStat = system.getUseSqlStat();<NEW_LINE>int newStat = oldStat;<NEW_LINE>if ("open".equalsIgnoreCase(openCloseFlag)) {<NEW_LINE>newStat = 1;<NEW_LINE>}... | println(s.toString()); |
224,301 | public static QueryBookkeepingCommoditiesResponse unmarshall(QueryBookkeepingCommoditiesResponse queryBookkeepingCommoditiesResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryBookkeepingCommoditiesResponse.setRequestId(_ctx.stringValue("QueryBookkeepingCommoditiesResponse.RequestId"));<NEW_LINE>List<BookkeepingCommodi... | ("QueryBookkeepingCommoditiesResponse.Data[" + i + "].OrdTimeCode")); |
238,193 | private static SDCardOperator checkDownloadPath(Context context, String downloadPath) {<NEW_LINE>DatabaseHandler dbH = MegaApplication.getInstance().getDbH();<NEW_LINE>boolean isSDCardPath = isSDCardPath(downloadPath);<NEW_LINE>SDCardOperator sdCardOperator = null;<NEW_LINE>try {<NEW_LINE>sdCardOperator = new SDCardOpe... | ).show(), 1000); |
670,361 | public static Handler buildDefault(Config config) {<NEW_LINE>ImmutableList.Builder<Handler> handlerListBuilder = ImmutableList.builder();<NEW_LINE>final MethodNameUtil methodNameUtil = new MethodNameUtil();<NEW_LINE>if (config.acknowledgeRestrictiveAnnotations()) {<NEW_LINE>// This runs before LibraryModelsHandler, so ... | add(StreamNullabilityPropagatorFactory.getRxStreamNullabilityPropagator()); |
1,025,573 | public PingResult ping(ScanningSubject subject, int count) throws IOException {<NEW_LINE>PingResult result = new PingResult(subject.getAddress(), count);<NEW_LINE>DatagramSocket socket = null;<NEW_LINE>try {<NEW_LINE>socket = new DatagramSocket();<NEW_LINE>socket.setSoTimeout(timeout);<NEW_LINE>socket.connect(subject.g... | System.currentTimeMillis() - startTime); |
1,133,279 | public final ExpressionListWithNamedWithTimeContext expressionListWithNamedWithTime() throws RecognitionException {<NEW_LINE>ExpressionListWithNamedWithTimeContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 422, RULE_expressionListWithNamedWithTime);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_lo... | ExpressionListWithNamedWithTimeContext(_ctx, getState()); |
1,431,437 | ActionResult<JsonElement> execute(String appDictFlag, String appInfoFlag, String path0, String path1, String path2, String path3) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<JsonE... | getAppInfoFactory().pick(appInfoFlag); |
555,428 | public BookmarksStatus check(List<Object> contents, boolean remediate) throws IOException {<NEW_LINE>// Before..<NEW_LINE>// write(XmlUtils.marshaltoString(documentPart.getJaxbElement(), true, true));<NEW_LINE>List<Object> faulty = inspectBookmarks(contents);<NEW_LINE>if (remediate) {<NEW_LINE>for (Object o : faulty) {... | getId().intValue()); |
14,444 | public void compress(byte[] bytes, int off, int len, DataOutput out) throws IOException {<NEW_LINE>final int dictLength <MASK><NEW_LINE>final int blockLength = (len - dictLength + NUM_SUB_BLOCKS - 1) / NUM_SUB_BLOCKS;<NEW_LINE>buffer = ArrayUtil.grow(buffer, dictLength + blockLength);<NEW_LINE>out.writeVInt(dictLength)... | = len / (NUM_SUB_BLOCKS * DICT_SIZE_FACTOR); |
246,719 | private boolean isDeclaredUnknown(Node n) {<NEW_LINE>Node target = n.getFirstChild();<NEW_LINE>ObjectType targetType = target.getJSType()<MASK><NEW_LINE>if (targetType == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>JSDocInfo info = targetType.getPropertyJSDocInfo(n.getString());<NEW_LINE>if (info == null || !inf... | .restrictByNotNullOrUndefined().toMaybeObjectType(); |
1,478,243 | public static void putInt64Uncheck(byte[] dest, int start, long l) {<NEW_LINE>if (ByteOrder.BIG_ENDIAN == PLATFORM_ENDIAN) {<NEW_LINE>dest[start + 7] = (byte) (l & 0xff);<NEW_LINE>dest[start + 6] = (byte) (l >> 8 & 0xff);<NEW_LINE>dest[start + 5] = (byte) (l >> 16 & 0xff);<NEW_LINE>dest[start + 4] = (byte) (l >> 24 & 0... | (l >> 40 & 0xff); |
821,937 | private static String format(GraphQLInputType gqlInputType) {<NEW_LINE>if (gqlInputType instanceof GraphQLScalarType) {<NEW_LINE>return ((GraphQLScalarType) gqlInputType).getName();<NEW_LINE>} else if (gqlInputType instanceof GraphQLList) {<NEW_LINE>// This covers maps as well, since we model them as list of entries<NE... | GraphQLInputObjectType) gqlInputType).getName(); |
885,774 | private static void checkImagesForCubeMap(Image... images) {<NEW_LINE>if (images.length == 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Format fmt = images[0].getFormat();<NEW_LINE>int width = images[0].getWidth();<NEW_LINE>int height = images[0].getHeight();<NEW_LINE>ByteBuffer data = images<MASK><NEW_LINE>int size = dat... | [0].getData(0); |
698,645 | public void send(Object m) {<NEW_LINE>if (env.getRequiredProperty("messaging.enabled", Boolean.class)) {<NEW_LINE>try {<NEW_LINE>execute(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>template.send(topic, new MessageCreator() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>pu... | (gson.toJson(m)); |
430,704 | protected boolean checkUserPassword(String user, @Sensitive String password, UserRegistry registry, String realmName, Subject clientSubject) throws EntryNotFoundException, CustomRegistryException, RemoteException {<NEW_LINE>String userSecurityName;<NEW_LINE>try {<NEW_LINE>userSecurityName = registry.checkPassword(user,... | = new ArrayList<String>(); |
1,721,164 | private Chunk<V> findChunk(long key) {<NEW_LINE>// Check if the key is within the first chunk<NEW_LINE>if (key < lastKeyInFirstChunk) {<NEW_LINE>return firstChunk;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>long lastChunkNumber = (lastKey - 1) >>> chunkShiftAmount;<NEW_LINE>// Check if the key is within the last chunk<NEW_LIN... | long keyChunkNumber = key >>> chunkShiftAmount; |
552,679 | public RemoveThingFromThingGroupResult removeThingFromThingGroup(RemoveThingFromThingGroupRequest removeThingFromThingGroupRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeThingFromThingGroupRequest);<NEW_LINE>AWSRequestMetrics aws... | invoke(request, responseHandler, executionContext); |
1,595,050 | private void initTransformGroup() {<NEW_LINE>miniRects = new Actor[13];<NEW_LINE>// rotation<NEW_LINE>miniRects[ROTATION_LT] = getRotationAnchor();<NEW_LINE>miniRects[ROTATION_RT] = getRotationAnchor();<NEW_LINE>miniRects[ROTATION_RB] = getRotationAnchor();<NEW_LINE>miniRects[ROTATION_LB] = getRotationAnchor();<NEW_LIN... | miniRects[RT] = getMiniRect(); |
977,917 | public void writeValue(int ex) {<NEW_LINE>double x = xyGraph.primaryXAxis.getPositionValue(ex, false);<NEW_LINE>int index = (int) x;<NEW_LINE>if (index < 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Sample sample = (Sample) trace.getDataProvider().getSample(index);<NEW_LINE>if (sample != null) {<NEW_LINE>double y = sample... | ((int) x, false); |
241,434 | public void read(org.apache.thrift.protocol.TProtocol iprot, getTabletServerStatus_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeFiel... | skip(iprot, schemeField.type); |
508,870 | private Mono<PagedResponse<RoleAssignmentScheduleInner>> listForScopeSinglePageAsync(String scope, String filter) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (s... | error(new IllegalArgumentException("Parameter scope is required and cannot be null.")); |
1,349,453 | public ListIdentityProvidersResult listIdentityProviders(ListIdentityProvidersRequest listIdentityProvidersRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIdentityProvidersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = exe... | invoke(request, responseHandler, executionContext); |
799,992 | private void updateColumnSelector() {<NEW_LINE>boolean showDisplayExpression = showDisplayExpression();<NEW_LINE>if (!showDisplayExpression && (columnSelector == null))<NEW_LINE>return;<NEW_LINE>TypeHelper type = getSelectedType();<NEW_LINE>if ((type != null) && Collection.class.isAssignableFrom(FormUtils.typeToClass(t... | desc.getPath(), className); |
511,087 | /*<NEW_LINE>* A record of default values that represent the value of the<NEW_LINE>* outputs if the route is filtered / dropped in the policy<NEW_LINE>*/<NEW_LINE>@VisibleForTesting<NEW_LINE>BDDRoute zeroedRecord() {<NEW_LINE>BDDRoute rec = new BDDRoute(_factory, _configAtomicPredicates.getCommunityAtomicPredicates().ge... | getInteger().setValue(0); |
792,162 | public boolean isEnabledForCurrentJRE() {<NEW_LINE>if ("".equals(requireJRE)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>JavaVersion requiredVersion = new JavaVersion(requireJRE);<NEW_LINE>JavaVersion runtimeVersion = JavaVersion.getRuntimeVersion();<NEW_LINE>if (DEBUG_JAVA_VERSION) {<NEW_LINE>System.ou... | enabledForCurrentJRE = runtimeVersion.isSameOrNewerThan(requiredVersion); |
848,059 | private void traverse(Pipeline pipeline, final Consumer<? super FilterAction<ENTITY>> filterConsumer, final Consumer<? super SortedComparatorAction<ENTITY>> sortedConsumer, final Consumer<? super SkipAction<ENTITY>> skipConsumer, final Consumer<? super LimitAction<ENTITY>> limitConsumer) {<NEW_LINE>if (pipeline.isEmpty... | List<Operation<?>> path; |
1,337,321 | public static float[] refineBySpectralReassignment(ComplexArray windowedFrameFFT, ComplexArray windowedFrameDerivativeFFT, float[] freqInds, int fftSize, int fs) {<NEW_LINE>float[] freqIndsRefined = null;<NEW_LINE>if (freqInds != null) {<NEW_LINE>freqIndsRefined = new float[freqInds.length];<NEW_LINE>if (windowedFrameF... | freq2indexDouble(f0RefinedInHz, fs, maxFreqInd); |
4,889 | private static void loadLocaleSpecificJars(File file, ExtendedClassLoader loader) {<NEW_LINE>File parentDir = file.getParentFile();<NEW_LINE>// System.out.println("parentDir: " + parentDir);<NEW_LINE>// NOI18N<NEW_LINE>File localeDir = new File(parentDir, "locale");<NEW_LINE>if (localeDir.exists()) {<NEW_LINE>File[<MAS... | ] localeFiles = localeDir.listFiles(); |
1,286,433 | private synchronized void connectClient(String qualifier, HostConfig hostConfig) {<NEW_LINE>try {<NEW_LINE>if (hubs.containsKey(qualifier)) {<NEW_LINE>HarmonyHubInstance instance = hubs.get(qualifier);<NEW_LINE>instance.client.disconnect();<NEW_LINE>hubs.remove(qualifier);<NEW_LINE>}<NEW_LINE>HarmonyClient harmonyClien... | ), hostConfig.getPassword()); |
667,501 | final StartChatContactResult executeStartChatContact(StartChatContactRequest startChatContactRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startChatContactRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<StartChatContactRequest> ... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
133,202 | public void sort() {<NEW_LINE>if (this.methodNode.tryCatchBlocks == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Collections.sort(this.methodNode.tryCatchBlocks, new Comparator<TryCatchBlockNode>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(TryCatchBlockNode o1, TryCatchBlockNode o2) {<NEW_LINE>return I... | instructions.indexOf(block.start); |
830,368 | public static ListLinkeBahamutVcsmembersResponse unmarshall(ListLinkeBahamutVcsmembersResponse listLinkeBahamutVcsmembersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listLinkeBahamutVcsmembersResponse.setRequestId(_ctx.stringValue("ListLinkeBahamutVcsmembersResponse.RequestId"));<NEW_LINE>listLinkeBahamutVcsmembersRe... | (_ctx.longValue("ListLinkeBahamutVcsmembersResponse.ResponseStatusCode")); |
782,202 | public synchronized void copyFrom(SegmentMetadata base) {<NEW_LINE>Exceptions.checkArgument(this.getId() == base.getId(), "base", "Given SegmentMetadata refers to a different StreamSegment than this one (SegmentId).");<NEW_LINE>Exceptions.checkArgument(this.getName().equals(base.getName()), "base", "Given SegmentMetada... | setStartOffset(base.getStartOffset()); |
749,651 | private void debugValues() {<NEW_LINE>// NOI18N<NEW_LINE>LOGGER.log(Level.FINEST, "collectingTwoTimeStamps: {0}", collectingTwoTimeStamps);<NEW_LINE>// NOI18N<NEW_LINE>LOGGER.log(Level.FINEST, "threadCCTContainers.length: {0}", debugLength(threadCCTContainers));<NEW_LINE>LOGGER.log(Level.FINEST, "allThreadsMergedCCTCon... | Level.FINEST, "nInstrMethods: {0}", nInstrMethods); |
1,836,538 | private static ChangeBlockEvent.Place createAndPostChangeBlockEventPlaceMulti(CauseStackManager.StackFrame frame, ForgeToSpongeEventData eventData) {<NEW_LINE>final BlockEvent.MultiPlaceEvent forgeEvent = (BlockEvent.MultiPlaceEvent) eventData.getForgeEvent();<NEW_LINE>final net.minecraft.world.World world = forgeEvent... | new ImmutableList.Builder<>(); |
1,120,446 | public static PyException makeException(PyObject type, Throwable t, int rowIndex) {<NEW_LINE>if (Options.showJavaExceptions) {<NEW_LINE>CharArrayWriter buf = new CharArrayWriter();<NEW_LINE>PrintWriter writer = new PrintWriter(buf);<NEW_LINE>writer.println("Java Traceback:");<NEW_LINE>if (t instanceof PyException) {<NE... | (System.getProperty("line.separator")); |
969,748 | private void cmd_history() {<NEW_LINE>if (m_mWorkbench.getMWindow(getWindowIndex()).isTransaction()) {<NEW_LINE>if (m_curTab.needSave(true, true) && !cmd_save(false)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Point pt = new Point(0, aHistory.getButton().getBounds().height);<NEW_LINE>SwingUtilities.convertPointToScreen(pt,... | VOnlyCurrentDays(getCurrentFrame(), pt); |
494,305 | private JSONArray tag(final String[] tagTitles, final JSONObject article) throws RepositoryException {<NEW_LINE>final JSONArray ret = new JSONArray();<NEW_LINE>for (int i = 0; i < tagTitles.length; i++) {<NEW_LINE>final String tagTitle = tagTitles[i].trim();<NEW_LINE>JSONObject tag = tagRepository.getByTitle(tagTitle);... | put(Keys.OBJECT_ID, tagId); |
867,983 | public static int probe(final ByteBuffer b) {<NEW_LINE>ByteBuffer fork = b.duplicate();<NEW_LINE>int success = 0;<NEW_LINE>int total = 0;<NEW_LINE>while (fork.remaining() >= 8) {<NEW_LINE>long len = Platform.unsignedInt(fork.getInt());<NEW_LINE>int fcc = fork.getInt();<NEW_LINE>int hdrLen = 8;<NEW_LINE>if (len == 1) {<... | ? 0 : success * 100 / total; |
1,432,778 | private static List<Constraint<?>> createVarBounds(List<Constraint<?>> query) {<NEW_LINE>Set<Variable<?>> variables = new HashSet<>();<NEW_LINE>for (Constraint<?> constraint : query) {<NEW_LINE>variables.addAll(constraint.getVariables());<NEW_LINE>}<NEW_LINE>List<Constraint<?>> boundsForVariables = new ArrayList<>();<N... | maxValueExpr = ExpressionFactory.buildNewIntegerConstant(maxValue); |
498,127 | protected void readFromBundle(Bundle bundle) {<NEW_LINE>bundle.setClassLoader(<MASK><NEW_LINE>settingsParams = bundle.getParcelable("settingsParams");<NEW_LINE>bundle.setClassLoader(NavDrawerHeaderParams.class.getClassLoader());<NEW_LINE>navDrawerHeaderParams = bundle.getParcelable("navDrawerHeaderParams");<NEW_LINE>bu... | OsmandSettingsParams.class.getClassLoader()); |
546,231 | private static // so, this method attempts to find the charset.<NEW_LINE>String tryGetCharsetFromHtml5MetaTag(Document document) {<NEW_LINE>if (!"html".equalsIgnoreCase(document.getDocumentElement().getNodeName())) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>NodeList list = document.getDocumentElement().getChildNodes()... | NamedNodeMap nodeMap = item.getAttributes(); |
1,169,637 | public int rank(final Set<ResourceType<?>> resourceTypes, final Collection<ServiceConfiguration<?, ?>> serviceConfigs) {<NEW_LINE>if (resourceTypes.size() == 1) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>ResourceType<?> authorityResource = getAuthorityResource(resourceTypes);<NEW_LINE>int authorityRank = 0;<NEW_LINE>Coll... | authorityProvider.rankAuthority(authorityResource, serviceConfigs); |
730,570 | public com.amazonaws.services.kinesisanalytics.model.LimitExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.kinesisanalytics.model.LimitExceededException limitExceededException = new com.amazonaws.services.kinesisanalytics.model.LimitExceededExce... | String currentParentElement = context.getCurrentParentElement(); |
292,649 | private CompletableFuture<Void> handleSegmentCountUpdates(final String scope, final String stream, final StreamConfigurationRecord config, final VersionedMetadata<EpochTransitionRecord> etr, final OperationContext context, final ScheduledExecutorService executor, final long requestId) {<NEW_LINE>return streamMetadataSt... | etr, activeEpoch, context, requestId); |
1,309,065 | public static UsericonPosition parse(String input, boolean first) {<NEW_LINE>if (first) {<NEW_LINE>return new UsericonPosition(new ArrayList<>());<NEW_LINE>}<NEW_LINE>if (input == null || input.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Collection<Ref> result = new HashSet<>();<NEW_LINE>String[] split = inp... | (Ref.create(part)); |
614,617 | private File[] listFilesSorted(File dir) {<NEW_LINE>File[<MASK><NEW_LINE>if (listFiles == null) {<NEW_LINE>return new File[0];<NEW_LINE>}<NEW_LINE>// This file could be sorted in different way for folders<NEW_LINE>// now folders are also sorted by last modified date<NEW_LINE>final Collator collator = OsmAndCollator.pri... | ] listFiles = dir.listFiles(); |
520,126 | public RexNode visitInputRef(RexInputRef inputRef) {<NEW_LINE>if (currentRel instanceof LogicalCorrelate) {<NEW_LINE>// if this rel references corVar<NEW_LINE>// and now it needs to be rewritten<NEW_LINE>// it must have been pulled above the Correlate<NEW_LINE>// replace the input ref to account for the LHS of the<NEW_... | RelDataType newType = inputRef.getType(); |
1,736,058 | private void moveMethods(Collection<NameInfo> allNameInfo) {<NEW_LINE>boolean hasStubDeclaration = idGenerator.hasGeneratedAnyIds();<NEW_LINE>for (NameInfo nameInfo : allNameInfo) {<NEW_LINE>if (!nameInfo.isReferenced()) {<NEW_LINE>// The code below can't do anything with unreferenced name<NEW_LINE>// infos. They shou... | .getDeclarations().descendingIterator(); |
1,113,602 | public State convertToState(int[] data, ComfoAirCommandType commandType) {<NEW_LINE>if (data == null || commandType == null) {<NEW_LINE>logger.trace("\"DataTypeMessage\" class \"convertToState\" method parameter: null");<NEW_LINE>return null;<NEW_LINE>} else {<NEW_LINE>int[] get_reply_data_pos = commandType.getGetReply... | = data[get_reply_data_pos[2]]; |
1,384,886 | private void addTrancheHeaderFields(String type, List<Double> tranches, Set<VCFHeaderLine> hInfo) {<NEW_LINE>if (tranches.size() >= 2) {<NEW_LINE>for (int i = 0; i < tranches.size() - 1; i++) {<NEW_LINE>String filterKey = filterKeyFromTranches(type, infoKey, tranches.get(i), tranches.get(i + 1));<NEW_LINE>String filter... | () - 1), 100.0); |
1,349,850 | public SqlElasticRequestBuilder explain() throws SqlParseException {<NEW_LINE>String sql = this.sql.replaceAll("\\s+", " ");<NEW_LINE>// todo: support indices with space?<NEW_LINE>String indexName = sql.split(" ")[1];<NEW_LINE>final GetIndexRequestBuilder indexRequestBuilder;<NEW_LINE>String type = null;<NEW_LINE>if (i... | index = indexName.lastIndexOf('/'); |
824,038 | private void showGraph(AttributedGraph graph) throws Exception {<NEW_LINE>GraphDisplay display;<NEW_LINE><MASK><NEW_LINE>GraphDisplayBroker broker = tool.getService(GraphDisplayBroker.class);<NEW_LINE>GraphDisplayProvider service = broker.getGraphDisplayProvider("Default Graph Display");<NEW_LINE>display = service.getG... | PluginTool tool = state.getTool(); |
1,696,813 | public static void startVoiceCall(@NonNull FragmentActivity activity, @NonNull Recipient recipient) {<NEW_LINE>if (TelephonyUtil.isAnyPstnLineBusy(activity)) {<NEW_LINE>Toast.makeText(activity, R.string.CommunicationActions_a_cellular_call_is_already_in_progress, <MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (recipien... | Toast.LENGTH_SHORT).show(); |
1,005,552 | void applyRotation(PdfDictionary pageN, ByteBuffer out) {<NEW_LINE>if (!rotateContents)<NEW_LINE>return;<NEW_LINE>Rectangle <MASK><NEW_LINE>int rotation = page.getRotation();<NEW_LINE>switch(rotation) {<NEW_LINE>case 90:<NEW_LINE>out.append(PdfContents.ROTATE90);<NEW_LINE>out.append(page.getTop());<NEW_LINE>out.append(... | page = reader.getPageSizeWithRotation(pageN); |
831,563 | private Object[] buildRow(DdlEngineRecord record, boolean isFull) {<NEW_LINE>String phyProcess = checkPhyProcess(record);<NEW_LINE>if (phyProcess != null && phyProcess != StringUtils.EMPTY) {<NEW_LINE>phyProcess = phyProcess.substring(0, Math.min(phyProcess.length(), MAX_SHOW_LEN));<NEW_LINE>}<NEW_LINE>Pair<String, Str... | taskAndBackfillProgress = getTaskAndBackfillProgress(record.jobId); |
1,724,918 | public DrillSidewaysResult search(DrillDownQuery query, Query filter, FieldDoc after, int topN, Sort sort, boolean doDocScores) throws IOException {<NEW_LINE>if (filter != null) {<NEW_LINE>query = new DrillDownQuery(config, filter, query);<NEW_LINE>}<NEW_LINE>if (sort != null) {<NEW_LINE>int limit = searcher.getIndexRe... | merge(sort, topN, topFieldDocs); |
1,109,658 | protected void createBpmnZipEntries(List<AppModelDefinition> modelDefinitions, ZipOutputStream zipOutputStream, ConverterContext converterContext) throws Exception {<NEW_LINE>for (AppModelDefinition modelDef : modelDefinitions) {<NEW_LINE>Model model = modelService.getModel(modelDef.getId());<NEW_LINE>List<Model> refer... | findByParentModelId(childModel.getId()); |
672,382 | public static CodegenExpression codegen(EnumIntersectForge forge, EnumForgeCodegenParams args, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>ExprForgeCodegenSymbol scope = new ExprForgeCodegenSymbol(false, null);<NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChildWi... | (methodNode, scope, codegenClassScope)); |
515,287 | private void loadMetaDataSectConf(final Ini iniConf) {<NEW_LINE>if (iniConf.get(SECT_TOKEN_META_BDB) != null && iniConf.get(SECT_TOKEN_META_ZK) != null) {<NEW_LINE>throw new IllegalArgumentException(new StringBuilder(256).append("Cannot configure both ").append(SECT_TOKEN_META_BDB).append(" and ").append(SECT_TOKEN_MET... | metaSect = iniConf.get(SECT_TOKEN_BDB); |
858,816 | private I_C_OrderLine createChargeOrderLine(final I_C_Order newOrder, final I_C_Contract_Change changeConditions, final BigDecimal additionalCharge) {<NEW_LINE>final MOrderLine chargeOlPO = new MOrderLine((MOrder) InterfaceWrapperHelper.getPO(newOrder));<NEW_LINE>final de.metas.interfaces.I_C_OrderLine chargeOl = Inter... | (chargeOlPO.getPriceEntered())); |
1,725,874 | private int readNextChunk() throws IOException {<NEW_LINE>final ByteBuffer ciphertextBuf = <MASK><NEW_LINE>final int read = IOUtils.read(proxy, ciphertextBuf.array());<NEW_LINE>if (lastread == 0) {<NEW_LINE>return IOUtils.EOF;<NEW_LINE>}<NEW_LINE>ciphertextBuf.position(read);<NEW_LINE>ciphertextBuf.flip();<NEW_LINE>try... | ByteBuffer.allocate(SDSSession.DEFAULT_CHUNKSIZE); |
119,508 | protected MapRulType registerRuleType(MapRulType rt) {<NEW_LINE>String tag = rt.tagValuePattern.tag;<NEW_LINE>String val = rt.tagValuePattern.value;<NEW_LINE>String keyVal = constructRuleKey(tag, val);<NEW_LINE>if (types.containsKey(keyVal)) {<NEW_LINE>MapRulType mapRulType = types.get(keyVal);<NEW_LINE>if (mapRulType.... | throw new RuntimeException("Duplicate " + keyVal); |
855,099 | private V deserializeVersion0(final short version, final DataInput in) throws IOException {<NEW_LINE>final byte termCode = in.readByte();<NEW_LINE>switch(termCode) {<NEW_LINE>case ITermIndexCodes.TERM_CODE_BND:<NEW_LINE>{<NEW_LINE>return (V) valueFactory.createBNode(in.readUTF());<NEW_LINE>}<NEW_LINE>case ITermIndexCod... | String label = in.readUTF(); |
1,143,340 | public Void visitNewClass(NewClassTree tree, AnnotatedTypeMirror type) {<NEW_LINE>if (!methodIsStaticallyExecutable(TreeUtils.elementFromUse(tree)) || !handledByValueChecker(type)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// get argument values<NEW_LINE>List<? extends ExpressionTree> arguments = tree.getArguments();... | >(arguments.size()); |
1,473,727 | final DescribeAppInstanceUserResult executeDescribeAppInstanceUser(DescribeAppInstanceUserRequest describeAppInstanceUserRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeAppInstanceUserRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
1,558,663 | public static ListApplicationResponse unmarshall(ListApplicationResponse listApplicationResponse, UnmarshallerContext _ctx) {<NEW_LINE>listApplicationResponse.setRequestId(_ctx.stringValue("ListApplicationResponse.RequestId"));<NEW_LINE>listApplicationResponse.setCode(_ctx.integerValue("ListApplicationResponse.Code"));... | ("ListApplicationResponse.ApplicationList[" + i + "].ApplicationType")); |
792,128 | public static void sendMULTICASTFORCEFrame(DatagramSocket datagramSocket, String soulissNodeIPAddressOnLAN, short typical, short shortCommand) {<NEW_LINE>ArrayList<Byte> MACACOframe = new ArrayList<Byte>();<NEW_LINE>MACACOframe.add(ConstantsUDP.Souliss_UDP_function_force_massive);<NEW_LINE>// PUTIN, STARTOFFEST, NUMBER... | .add((byte) 1); |
1,287,369 | public void draw(Batch batch, float parentAlpha) {<NEW_LINE>Stage stage = getStage();<NEW_LINE>if (stage == null)<NEW_LINE>return;<NEW_LINE>validate();<NEW_LINE>Color color = getColor();<NEW_LINE>float alpha = color.a * parentAlpha;<NEW_LINE>applyTransform(batch, computeTransform());<NEW_LINE>if (firstWidget != null &&... | g, color.b, alpha); |
388,392 | public void commitJscCrashAlarmMonitor(final String type, final WXErrorCode errorCode, String errMsg, String instanceId, String url, Map<String, String> extInfo) {<NEW_LINE>if (TextUtils.isEmpty(type) || errorCode == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Log.d("ReportCrash", " commitJscCrashAlarmMonitor errMsg "... | errorCode, method, exception, extParams); |
543,567 | public Object baseParseXmlToBean(InputStream xmlStream, InputStream xsdStream) throws JAXBException, SAXException, XMLStreamException {<NEW_LINE>if (null != xsdStream && null != xmlStream) {<NEW_LINE>// check<NEW_LINE>SchemaFactory sf = SchemaFactory.newInstance(XMLConstants.W3C_XML_SCHEMA_NS_URI);<NEW_LINE>sf.setResou... | XMLInputFactory xif = XMLInputFactory.newFactory(); |
1,825,226 | private static void handlePlugInMultiFunctionAggregation(ConfigurationCompiler configuration, Element element) {<NEW_LINE>String functionNames = getRequiredAttribute(element, "function-names");<NEW_LINE>String forgeClassName = getOptionalAttribute(element, "forge-class");<NEW_LINE>DOMElementIterator nodeIterator = new ... | name = getRequiredAttribute(subElement, "name"); |
1,611,550 | public AirbyteConnectionStatus check(final JsonNode config) {<NEW_LINE>try {<NEW_LINE>final MqttDestinationConfig mqttConfig = MqttDestinationConfig.getMqttDestinationConfig(config);<NEW_LINE>final String testTopic = mqttConfig.getTestTopic();<NEW_LINE>if (!testTopic.isBlank()) {<NEW_LINE>try (final IMqttAsyncClient cl... | ("test-key", "test-value")))); |
795,256 | public PaginatedArrayList<Host> searchByStopped(final String filter, final boolean showStopped, final boolean showSystemHost, final int limit, final int offset, final User user, final boolean respectFrontendRoles) {<NEW_LINE>PaginatedArrayList<Host> paginatedSiteList = new PaginatedArrayList<>();<NEW_LINE>final Optiona... | limit, offset, user, respectFrontendRoles); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.