idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
639,719 | private void insideForEach(Env env) throws IOException {<NEW_LINE>int offset = env.getOffset();<NEW_LINE>TreePath path = env.getPath();<NEW_LINE>EnhancedForLoopTree efl = (EnhancedForLoopTree) path.getLeaf();<NEW_LINE>SourcePositions sourcePositions = env.getSourcePositions();<NEW_LINE><MASK><NEW_LINE>if (sourcePositio... | CompilationUnitTree root = env.getRoot(); |
1,343,714 | private void showHideDimming(boolean show) {<NEW_LINE>Activity activity = mActivity.get();<NEW_LINE>if (activity == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Disable dimming on certain circumstances<NEW_LINE>if (show && mDimColorResId == R.color.dimming && (isPlaying() || isSigning() || mGeneralData.getScreenDimm... | findViewById(R.id.dim_container); |
1,126,190 | /*<NEW_LINE>* Loads the icon for the application, either a user provided one or the default one.<NEW_LINE>*/<NEW_LINE>private boolean prepareApplicationIcon(File outputPngFile, List<File> mipmapDirectories, List<Integer> standardICSizes, List<Integer> foregroundICSizes) {<NEW_LINE>String userSpecifiedIcon = Strings.nul... | write(foreground, "png", foregroundPng); |
649,280 | private JToggleButton createPlacesSelectedNodeToggleButton() {<NEW_LINE>final JToggleButton checkBoxOnlySpecificNodes = createToggleButtonWithIconAndLabel("PlaceSelectedNodeOnSlide.icon", "slide.placenode");<NEW_LINE>checkBoxOnlySpecificNodes.setAlignmentX(Component.CENTER_ALIGNMENT);<NEW_LINE>checkBoxOnlySpecificNodes... | true, slide.getPlacedNodePosition()); |
391,880 | final SendUsersMessagesResult executeSendUsersMessages(SendUsersMessagesRequest sendUsersMessagesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(sendUsersMessagesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new SendUsersMessagesResultJsonUnmarshaller()); |
57,166 | public void authorizeContainer(String apiKey, String containerName) {<NEW_LINE>_logger.infof("Authorizing %s for %s\n", apiKey, containerName);<NEW_LINE>// add the container if it does not exist; update datelastaccessed if it<NEW_LINE>// does<NEW_LINE>java.sql.Date now = new java.sql.Date(new Date().getTime());<NEW_LIN... | put(cacheKey, Boolean.TRUE); |
1,594,156 | public ForecastResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ForecastResult forecastResult = new ForecastResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<... | String currentParentElement = context.getCurrentParentElement(); |
1,654,210 | public long authorizedInstanceRead(long instanceId) throws JobSecurityException, NoSuchJobInstanceException {<NEW_LINE>String submitter = persistenceManagerService.getJobInstanceSubmitter(instanceId);<NEW_LINE>Set<String> listOfGroupsForJobID = null;<NEW_LINE>Set<String> listOfGroupsForSubject = null;<NEW_LINE>boolean ... | listOfGroupsForSubject = getSubjectGroups(runAsSubject()); |
1,365,359 | private static void tryAssertion12(RegressionEnvironment env, String stmtText, String outputLimit, AtomicInteger milestone) {<NEW_LINE>sendTimer(env, 0);<NEW_LINE>env.compileDeploy(stmtText).addListener("s0");<NEW_LINE>String[] fields = new String[] { "symbol", "sum(price)" };<NEW_LINE>ResultAssertTestResult expected =... | , { "YAH", 54d } }); |
1,668,256 | public boolean onActivate(Level level, Player player, Block block, Block target, BlockFace face, double fx, double fy, double fz) {<NEW_LINE>if (player.isAdventure()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (block.getId() == AIR && (target instanceof BlockSolid || target instanceof BlockSolidMeta)) {<NEW_LINE>i... | getInventory().setItemInHand(this); |
629,057 | public static ListClusterConnectionTypesResponse unmarshall(ListClusterConnectionTypesResponse listClusterConnectionTypesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listClusterConnectionTypesResponse.setRequestId(_ctx.stringValue("ListClusterConnectionTypesResponse.RequestId"));<NEW_LINE>listClusterConnectionTypesRe... | (_ctx.integerValue("ListClusterConnectionTypesResponse.HttpStatusCode")); |
924,097 | public static Element serializeExecutionAction(Document doc, XCScheme.SchemePrePostAction action) {<NEW_LINE>Element <MASK><NEW_LINE>executionAction.setAttribute("ActionType", "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction");<NEW_LINE>Element actionContent = doc.createElement("ActionConten... | executionAction = doc.createElement("ExecutionAction"); |
178,131 | public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Spell spell = game.getStack().getSpell(this.getTargetPointer().getFirst(game, source));<NEW_LINE>if (controller != null && spell != null) {<NEW_LINE>MageObject mageObject = game.getObject(so... | getPermanentOrLKIBattlefield(source.getSourceId()); |
773,557 | // not used<NEW_LINE>@Deprecated<NEW_LINE>public void trimStackTrace(Member target) {<NEW_LINE>Throwable t = new Throwable();<NEW_LINE>StackTraceElement[] origStackTrace = cause.getStackTrace();<NEW_LINE>StackTraceElement[<MASK><NEW_LINE>int skip = 0;<NEW_LINE>for (int i = 1; i <= origStackTrace.length && i <= currentS... | ] currentStackTrace = t.getStackTrace(); |
932,194 | public TokensBuilder addSequencePair(List<Integer> tokenId1s, List<Integer> tokenMap1, List<Integer> tokenId2s, List<Integer> tokenMap2) {<NEW_LINE>if (withSpecialTokens) {<NEW_LINE>tokenIds.add(IntStream.of(clsTokenId));<NEW_LINE>tokenMap.add(IntStream.of(SPECIAL_TOKEN_POSITION));<NEW_LINE>}<NEW_LINE>tokenIds.add(toke... | tokenMap1.size() - 1); |
676,991 | private void processProjected(List<SchemaPath> columns) {<NEW_LINE>projectedColumns = new ArrayList<ColumnDefn>();<NEW_LINE>if (isSkipQuery()) {<NEW_LINE>projectedColumns.add(new ColumnDefn(PcapColumn.DUMMY_NAME, new PcapColumn.PcapDummy()));<NEW_LINE>} else if (isStarQuery()) {<NEW_LINE>Set<Map.Entry<String, PcapColum... | getColumns().get(projectedName); |
1,051,656 | public boolean removeClient(RealmModel realm, String id) {<NEW_LINE>ClientModel client = getClientById(realm, id);<NEW_LINE>if (client == null)<NEW_LINE>return false;<NEW_LINE>invalidateClient(client.getId());<NEW_LINE>// this is needed so that a client that hasn't been committed isn't cached in a query<NEW_LINE>listIn... | client.getClientId(), invalidations); |
1,002,369 | public void createPrintJobs(@NonNull final IPrintingQueueSource source, @NonNull final ContextForAsyncProcessing printJobContext) {<NEW_LINE>final PrintingQueueProcessingInfo printingQueueProcessingInfo = source.getProcessingInfo();<NEW_LINE>int printJobCount = 0;<NEW_LINE>final List<I_C_Print_Job_Instructions> pdfPrin... | > it = source.createItemsIterator(); |
1,678,017 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl <MASK><NEW_LINE>env.compileDeploy(epl, path);<NEW_LINE>String startTime = "2002-05-30T09:00:00.000";<NEW_LINE>env.advanceTime(DateTime.parseDefaultMSec(startTime));<NEW_LINE>String[] fields = "val0,val1... | = "@name('variables') @public create variable int varhour;\n" + "@public create variable int varmin;\n" + "@public create variable int varsec;\n" + "@public create variable int varmsec;\n"; |
500,980 | public void handleMessage(Message m) {<NEW_LINE>MainActivity target = mTarget.get();<NEW_LINE>if (target == null)<NEW_LINE>return;<NEW_LINE>if (m.what == CONST.MSG_TYPE.STR_DEBUG.ordinal()) {<NEW_LINE>Log.d(CONST.TAG, (String) m.obj);<NEW_LINE>} else if (m.what == CONST.MSG_TYPE.STR_INFO.ordinal()) {<NEW_LINE>target.up... | LOG.INFO(this, "Telnet Unavailable"); |
1,718,079 | public ECPoint twice() {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>ECFieldElement X1 = this.x;<NEW_LINE>if (X1.isZero()) {<NEW_LINE>// A point with X == 0 is its own additive inverse<NEW_LINE>return curve.getInfinity();<NEW_LINE>}<NEW_LINE>ECFi... | boolean Z1IsOne = Z1.isOne(); |
1,572,850 | private boolean usesApiGatewayApiKeys(ServiceShape service, String operationAuth) {<NEW_LINE>// Get the authorizer for this operation if it has no "type" or<NEW_LINE>// "customAuthType" set, as is required for API Gateway's API keys.<NEW_LINE>Optional<AuthorizerDefinition> definitionOptional = service.getTrait(Authoriz... | ().isPresent())); |
642,397 | public void validateCustomerVisibleNaming(IntermediateModel trimmedModel) {<NEW_LINE>Metadata metadata = trimmedModel.getMetadata();<NEW_LINE>validateCustomerVisibleName(metadata.getSyncInterface(), "metadata-derived interface name");<NEW_LINE>validateCustomerVisibleName(metadata.getSyncBuilderInterface(), "metadata-de... | operation.getOperationName(), "operations"); |
341,438 | public Single<AuthenticationResponse> map(ProviderRequest authenticatedRequest, AuthenticationResponse previousResponse) {<NEW_LINE>Optional<Subject> maybeUser = previousResponse.user();<NEW_LINE>Optional<Subject> maybeService = previousResponse.service();<NEW_LINE>if (maybeService.isEmpty() && maybeUser.isEmpty()) {<N... | requestHeaders(previousResponse.requestHeaders()); |
1,299,474 | public void write(BackendAIOConnection c) {<NEW_LINE>ByteBuffer buffer = c.allocate();<NEW_LINE>BufferUtil.writeUB3(buffer, calcPacketSize());<NEW_LINE>buffer.put(packetId);<NEW_LINE>BufferUtil.writeUB4(buffer, clientFlags);<NEW_LINE>BufferUtil.writeUB4(buffer, maxPacketSize);<NEW_LINE>buffer.put((byte) charsetIndex);<... | .getLength(password), true); |
1,655,098 | public void executeQueryPhase(ShardSearchRequest request, boolean keepStatesInContext, SearchShardTask task, ActionListener<SearchPhaseResult> listener) {<NEW_LINE>assert request.canReturnNullResponseIfMatchNoDocs() == false || request.numberOfShards() > 1 : "empty responses require more than one shard";<NEW_LINE>final... | , task, keepStatesInContext), listener); |
194,545 | final AdminRespondToAuthChallengeResult executeAdminRespondToAuthChallenge(AdminRespondToAuthChallengeRequest adminRespondToAuthChallengeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminRespondToAuthChallengeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "AdminRespondToAuthChallenge"); |
773,787 | default <R1, R2, R3, R4> Reader<T, R4> forEach4(Function<? super R, Function<? super T, ? extends R1>> value2, BiFunction<? super R, ? super R1, Function<? super T, ? extends R2>> value3, Function3<? super R, ? super R1, ? super R2, Function<? super T, ? extends R3>> value4, Function4<? super R, ? super R1, ? super R2,... | (in, ina, inb)); |
171,443 | protected void realInverse2(double[] a, int offa, boolean scale) {<NEW_LINE>if (n == 1)<NEW_LINE>return;<NEW_LINE>switch(plan) {<NEW_LINE>case SPLIT_RADIX:<NEW_LINE>double xi;<NEW_LINE>if (n > 4) {<NEW_LINE>cftfsub(n, a, <MASK><NEW_LINE>rftbsub(n, a, offa, nc, w, nw);<NEW_LINE>} else if (n == 4) {<NEW_LINE>cftbsub(n, a... | offa, ip, nw, w); |
671,859 | public static void main(String[] args) {<NEW_LINE>Scanner s = new Scanner(System.in);<NEW_LINE>System.out.println("Of First Matrix");<NEW_LINE>System.out.println(" Enter number of rows ");<NEW_LINE>int rows_first = s.nextInt();<NEW_LINE>System.out.println(" Enter number of columns ");<NEW_LINE>int columns_first = s.nex... | System.out.println(" Enter elements of 2nd matrix "); |
318,063 | private HdfsBlobStore createBlobstore(URI blobstoreUri, String path, Settings repositorySettings) {<NEW_LINE>Configuration hadoopConfiguration = new Configuration(repositorySettings.getAsBoolean("load_defaults", true));<NEW_LINE>hadoopConfiguration.setClassLoader(HdfsRepository.class.getClassLoader());<NEW_LINE>hadoopC... | AbstractFileSystem.get(blobstoreUri, hadoopConfiguration); |
381,934 | public Deferred<Boolean> flushNotMatched(final TSDB tsdb) {<NEW_LINE>if (!store_failures) {<NEW_LINE>not_matched.clear();<NEW_LINE>return Deferred.fromResult(true);<NEW_LINE>}<NEW_LINE>final byte[] row_key = new byte[TREE_ID_WIDTH + 1];<NEW_LINE>System.arraycopy(idToBytes(tree_id), 0, row_key, 0, TREE_ID_WIDTH);<NEW_LI... | stringToUid(entry.getKey()); |
640,391 | protected Map<Object, Object> convertToParameters(Object... iArgs) {<NEW_LINE>final Map<Object, Object> params;<NEW_LINE>if (iArgs.length == 1 && iArgs[0] instanceof Map) {<NEW_LINE>params = (Map<Object<MASK><NEW_LINE>} else {<NEW_LINE>if (iArgs.length == 1 && iArgs[0] != null && iArgs[0].getClass().isArray() && iArgs[... | , Object>) iArgs[0]; |
1,498,709 | public static DeviceInfo of(DeviceInstanceEntity instance, DeviceProductEntity product) {<NEW_LINE>DeviceInfo deviceInfo = FastBeanCopier.copy(instance, new DeviceInfo());<NEW_LINE>deviceInfo.setMessageProtocol(product.getMessageProtocol());<NEW_LINE>deviceInfo.setTransportProtocol(product.getTransportProtocol());<NEW_... | setProjectId(product.getProjectId()); |
1,198,558 | private static J2ObjcMappingFileProvider depJ2ObjcMappingFileProvider(RuleContext ruleContext) {<NEW_LINE>NestedSetBuilder<Artifact> depsHeaderMappingsBuilder = NestedSetBuilder.stableOrder();<NEW_LINE>NestedSetBuilder<Artifact> depsClassMappingsBuilder = NestedSetBuilder.stableOrder();<NEW_LINE>NestedSetBuilder<Artifa... | addTransitive(mapping.getClassMappingFiles()); |
126,936 | static void vp8_temporal_filter_apply(FullAccessIntArrPointer frame1, int stride, FullAccessIntArrPointer frame2, int block_size, int strength, int filter_weight, FullAccessIntArrPointer accumulator, FullAccessIntArrPointer count) {<NEW_LINE>int i, j, k;<NEW_LINE>int modifier;<NEW_LINE>int byt = 0;<NEW_LINE>frame2 = fr... | src_byte = frame1.getRel(byt); |
1,561,056 | public static long incTwoBytePrimaryByOffset(long basePrimary, boolean isCompressible, int offset) {<NEW_LINE>// Extract the second byte, minus the minimum byte value,<NEW_LINE>// plus the offset, modulo the number of usable byte values, plus the minimum.<NEW_LINE>// Reserve the PRIMARY_COMPRESSION_LOW_BYTE and high by... | > 16) & 0xff) - 4; |
1,425,481 | public void startUpdateThread() {<NEW_LINE>ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();<NEW_LINE>Runnable periodicTask = () -> {<NEW_LINE>if (GeyserImpl.getInstance() != null) {<NEW_LINE>// Update player table<NEW_LINE>playerTableModel.getDataVector().removeAllElements();<NEW_LINE>f... | int k = ramValues.size(); |
1,195,455 | public void syncAgentInstancesFrom(Agents agentsFromDB) {<NEW_LINE>for (Agent agentFromDB : agentsFromDB) {<NEW_LINE>String uuid = agentFromDB.getUuid();<NEW_LINE>if (uuidToAgentInstanceMap.containsKey(uuid)) {<NEW_LINE>uuidToAgentInstanceMap.get<MASK><NEW_LINE>} else {<NEW_LINE>AgentInstance newAgent = createFromAgent... | (uuid).syncAgentFrom(agentFromDB); |
1,693,209 | public static ListDevicesResponse unmarshall(ListDevicesResponse listDevicesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDevicesResponse.setRequestId(_ctx.stringValue("ListDevicesResponse.RequestId"));<NEW_LINE>List<Result> devices = new ArrayList<Result>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("ListDevi... | ("ListDevicesResponse.Devices[" + i + "].DeviceBrand")); |
737,372 | public static Order adaptOrder(CoinbaseProOrder order) {<NEW_LINE>OrderType type = "buy".equals(order.getSide()) ? OrderType.BID : OrderType.ASK;<NEW_LINE>CurrencyPair currencyPair = new CurrencyPair(order.getProductId().replace('-', '/'));<NEW_LINE>Order.Builder builder = null;<NEW_LINE>if (order.getType() == null) {<... | stopPrice(order.getStopPrice()); |
1,028,833 | private void splice(final Ruby runtime, int beg, int len, final RubyArray rplArr, final int rlen) {<NEW_LINE>if (len < 0)<NEW_LINE>throw runtime.newIndexError("negative length (" + len + ")");<NEW_LINE>if (beg < 0 && (beg += realLength) < 0)<NEW_LINE>throw runtime.newIndexError("index " + (beg - realLength) + " out of ... | values, begin + beg, rlen); |
527,864 | public static QueryRskStatisticResponse unmarshall(QueryRskStatisticResponse queryRskStatisticResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryRskStatisticResponse.setRequestId(_ctx.stringValue("QueryRskStatisticResponse.RequestId"));<NEW_LINE>queryRskStatisticResponse.setCode(_ctx.integerValue("QueryRskStatisticRes... | ("QueryRskStatisticResponse.Data[" + i + "].Type")); |
993,616 | private void unRecordEventRegistration(EventRegistration zombiedRegistration) {<NEW_LINE>synchronized (globalEventRegistrations) {<NEW_LINE>boolean found = false;<NEW_LINE>List<EventRegistration> registrationList = globalEventRegistrations.get(zombiedRegistration);<NEW_LINE>if (registrationList != null) {<NEW_LINE>for ... | ().getPath())); |
1,347,583 | public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String epl = "@public create " + rep.getName() + " schema MyTwoColEvent(c0 string, c1 int);\n" + "@public @name('window') create window MyWindow#keepall as MyTwoColEvent;\n" + "insert into MyWindow select theStrin... | sendEventBean(new SupportBean_S0(10)); |
1,755,326 | private static final void writeDoc(Writer writer, String url, ArrayList<String> sentences, String grep) throws IOException {<NEW_LINE>writer.write("<form name=\"yacydoc" + url + "\" method=\"post\" action=\"#\" enctype=\"multipart/form-data\" accept-charset=\"UTF-8\">\n");<NEW_LINE>writer.write("<fieldset>\n");<NEW_LIN... | writedd(writer, line, grep); |
830,140 | private static void registerTypeHandlers(Context context, TypeHandlerLibrary library, ModuleEnvironment environment) {<NEW_LINE>for (Class<? extends TypeHandler> handler : environment.getSubtypesOf(TypeHandler.class)) {<NEW_LINE>RegisterTypeHandler register = handler.getAnnotation(RegisterTypeHandler.class);<NEW_LINE>i... | InjectionHelper.inject(instance, context); |
1,031,283 | public String constructExampleCode(CodegenProperty codegenProperty, HashMap<String, CodegenModel> modelMaps, int depth) {<NEW_LINE>if (depth > 10)<NEW_LINE>return "...";<NEW_LINE>depth++;<NEW_LINE>if (codegenProperty.isArray) {<NEW_LINE>// array<NEW_LINE>return "list(" + constructExampleCode(codegenProperty.<MASK><NEW_... | items, modelMaps, depth) + ")"; |
1,730,517 | private boolean parallelExecution(String pack, List<String> tests) throws Exception {<NEW_LINE>int deviceCount = hostMachineDeviceManager.getDevicesByHost().getAllDevices().size();<NEW_LINE>if (deviceCount == 0) {<NEW_LINE>figlet("No Devices Connected");<NEW_LINE>System.exit(0);<NEW_LINE>}<NEW_LINE>LOGGER.info(LOGGER.g... | String runner = RUNNER.get(); |
406,000 | public Map<String, Double> calculateSpellColorPercentages() {<NEW_LINE>final Map<String, Integer> colorCount = new HashMap<>();<NEW_LINE>for (final ColoredManaSymbol color : ColoredManaSymbol.values()) {<NEW_LINE>colorCount.put(color.toString(), 0);<NEW_LINE>}<NEW_LINE>// Counts how many colored mana symbols we've seen... | String color = singleCount.getKey(); |
1,805,008 | void emailSpec11Reports(LocalDate date, SoyTemplateInfo soyTemplateInfo, String subject, ImmutableSet<RegistrarThreatMatches> registrarThreatMatchesSet) {<NEW_LINE>ImmutableMap.Builder<RegistrarThreatMatches, Throwable> failedMatchesBuilder = ImmutableMap.builder();<NEW_LINE>for (RegistrarThreatMatches registrarThreatM... | date, soyTemplateInfo, subject, filteredMatches); |
905,658 | private static org.jreleaser.model.Changelog convertChangelog(Changelog changelog) {<NEW_LINE>org.jreleaser.model.Changelog c = new org.jreleaser.model.Changelog();<NEW_LINE>if (changelog.isEnabledSet())<NEW_LINE>c.setEnabled(changelog.isEnabled());<NEW_LINE>if (changelog.isLinksSet())<NEW_LINE>c.setLinks(changelog.isL... | (changelog.getCategories())); |
1,131,564 | public List<GenericTrigger> loadTriggers(DBRProgressMonitor monitor, @NotNull GenericStructContainer container, @Nullable GenericTableBase table) throws DBException {<NEW_LINE>try (JDBCSession session = DBUtils.openMetaSession(monitor, container, "Read triggers")) {<NEW_LINE>try (JDBCPreparedStatement dbStat = (JDBCPre... | SQLServerGenericTrigger(table, name, null); |
650,837 | protected Tuple3<Boolean, Double, Map<String, String>>[] detect(MTable series, boolean detectLast) throws Exception {<NEW_LINE>series = OutlierUtil.getMTable(series, this.params);<NEW_LINE>String[] featureCols = series.getColNames();<NEW_LINE>int iStart = detectLast ? series.getNumRow() - 1 : 0;<NEW_LINE>int iEnd = ser... | Math.max(max, val); |
1,526,052 | public EppResponse run() throws EppException {<NEW_LINE>extensionManager.register(MetadataExtension.class);<NEW_LINE>validateRegistrarIsLoggedIn(registrarId);<NEW_LINE>extensionManager.validate();<NEW_LINE>Create command = (Create) resourceCommand;<NEW_LINE>DateTime now = tm().getTransactionTime();<NEW_LINE>verifyResou... | , now)).build(); |
118,028 | public static FundingRecord adaptFundingRecord(Currency currency, CoinbaseProTransfer coinbaseProTransfer) {<NEW_LINE>FundingRecord.Status status = FundingRecord.Status.PROCESSING;<NEW_LINE>Date processedAt = coinbaseProTransfer.processedAt();<NEW_LINE>Date canceledAt = coinbaseProTransfer.canceledAt();<NEW_LINE>if (ca... | .getDetails().getCryptoTransactionHash(); |
1,033,827 | Optional<BuckFixSpec> writeFixSpec(BuildId buildId, ExitCode exitCode, Optional<Exception> exceptionForFix) {<NEW_LINE>try {<NEW_LINE>// Because initially there's no fix spec file in the log dir, build a Buck Fix Spec from logs<NEW_LINE>Either<BuckFixSpec, BuckFixSpecParser.FixSpecFailure> fixSpec = BuckFixSpecParser.p... | invocationInfo, fixSpec.getLeft()); |
1,204,415 | protected static // ------------------------------------------------------------------------------------<NEW_LINE>void printImages(EnumMap<measurements, Map<String, Double>> values) {<NEW_LINE>System.out.println();<NEW_LINE>for (measurements m : values.keySet()) {<NEW_LINE>Map<String, Double> map = values.get(m);<NEW_L... | () - o2.getValue(); |
459,351 | private Result searchMultipleDocumentTypes(Searcher searcher, Query query, Execution execution) {<NEW_LINE>Set<String> docTypes = resolveDocumentTypes(query, execution.context().getIndexFacts());<NEW_LINE>Result invalidRankProfile = checkValidRankProfiles(query, docTypes);<NEW_LINE>if (invalidRankProfile != null)<NEW_L... | queries = createQueries(query, docTypes); |
1,081,497 | private Hotkey listToHotkey(List list) {<NEW_LINE>try {<NEW_LINE>String actionId = (String) list.get(0);<NEW_LINE>KeyStroke keyStroke = KeyStroke.getKeyStroke((String) list.get(1));<NEW_LINE>if (keyStroke == null) {<NEW_LINE>LOGGER.warning("Error loading hotkey, invalid: " + list);<NEW_LINE>return null;<NEW_LINE>}<NEW_... | 2)).intValue()); |
354,723 | public Description matchAnnotation(AnnotationTree tree, VisitorState state) {<NEW_LINE>Symbol sym = ASTHelpers.getSymbol(tree);<NEW_LINE>if (sym == null) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>Attribute.Compound annotation = sym.getRawAttributes().stream().filter(a -> a.type.tsym.getQualifiedName().contentEqua... | -> getModifiers(incompatibleModifiers, a)); |
1,027,191 | // TODO Set this to private once WalkableAreaBuilder is gone<NEW_LINE>protected void applyWayProperties(StreetEdge street, StreetEdge backStreet, WayProperties wayData, OSMWithTags way) {<NEW_LINE>Set<T2<StreetNote, NoteMatcher>> notes = wayPropertySet.getNoteForWay(way);<NEW_LINE>boolean motorVehicleNoThrough = wayPro... | .setBicycleSafetyFactor((float) safety); |
619,694 | final GetRegexPatternSetResult executeGetRegexPatternSet(GetRegexPatternSetRequest getRegexPatternSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRegexPatternSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetRegexPatternSet"); |
1,095,414 | public static void main(String[] args) {<NEW_LINE>int vertexCount = 3;<NEW_LINE>ArrayList<ArrayList<Integer>> graph = new ArrayList<>(vertexCount);<NEW_LINE>// Initializing each element of ArrayList with ArrayList<NEW_LINE>for (int i = 0; i < vertexCount; i++) {<NEW_LINE>graph.add(new ArrayList<Integer>());<NEW_LINE>}<... | (0).add(2); |
536,320 | public static UsersPrivilegesMetadata swapPrivileges(UsersPrivilegesMetadata usersPrivileges, RelationName source, RelationName target) {<NEW_LINE>HashMap<String, Set<Privilege>> privilegesByUser = new HashMap<>();<NEW_LINE>for (Map.Entry<String, Set<Privilege>> userPrivileges : usersPrivileges.usersPrivileges.entrySet... | privilegesByUser.put(user, updatedPrivileges); |
1,086,864 | public void run(RegressionEnvironment env) {<NEW_LINE>String joinStatement = "@name('s0') select * from " + "SupportMarketDataBean#length(3)," + "SupportBean#length(3)" + " where symbol=theString and volume=longBoxed";<NEW_LINE>env.compileDeploy(joinStatement).addListener("s0");<NEW_LINE>Object[] setOne = new Object[5]... | (env, setOne[0]); |
1,652,482 | public static void main(String[] args) {<NEW_LINE>LinkedListNode lA1 = new LinkedListNode(3, null, null);<NEW_LINE>LinkedListNode lA2 = new LinkedListNode(1, null, lA1);<NEW_LINE>LinkedListNode lA3 = new LinkedListNode(5, null, lA2);<NEW_LINE>LinkedListNode lB1 = new LinkedListNode(5, null, null);<NEW_LINE>LinkedListNo... | LinkedListNode(1, null, lB2); |
1,810,394 | // closeIt<NEW_LINE>@Override<NEW_LINE>public boolean reverseCorrectIt() {<NEW_LINE>ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_REVERSECORRECT);<NEW_LINE>//<NEW_LINE>// Get the reversal of this document's parent (if any)<NEW_LINE>// NOTE: we assume that the Reversal_ID links were set ... | reversal.setDocAction(X_PP_Cost_Collector.DOCACTION_Complete); |
332,939 | public static DescribeParameterTemplatesResponse unmarshall(DescribeParameterTemplatesResponse describeParameterTemplatesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeParameterTemplatesResponse.setRequestId(_ctx.stringValue("DescribeParameterTemplatesResponse.RequestId"));<NEW_LINE>describeParameterTemplatesRe... | ("DescribeParameterTemplatesResponse.Parameters[" + i + "].ParamRelyRule")); |
1,733,622 | // Returns true if polygon_a contains polygon_b.<NEW_LINE>private static boolean polygonContainsPolygon_(Polygon polygon_a, Polygon polygon_b, double tolerance, ProgressTracker progress_tracker) {<NEW_LINE>Envelope2D env_a = new Envelope2D(), env_b = new Envelope2D();<NEW_LINE>polygon_a.queryEnvelope2D(env_a);<NEW_LINE... | polygon_a, polygon_b, tolerance, false); |
1,734,213 | final UpdateJobStatusResult executeUpdateJobStatus(UpdateJobStatusRequest updateJobStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateJobStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F... | (super.beforeMarshalling(updateJobStatusRequest)); |
415,472 | final DeleteOutpostResult executeDeleteOutpost(DeleteOutpostRequest deleteOutpostRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteOutpostRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteOutpost"); |
1,828,005 | public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0".split(",");<NEW_LINE>TreeMap<Integer, List<SupportBean>> treemap = new TreeMap<>();<NEW_LINE>String epl = "@name('s0') select sorted(intPrimitive).floorEvent(intPrimitive-1) as c0 from SupportBean#length(3) as sb";<NEW_LINE>env.eplToModelCompi... | (epl).addListener("s0"); |
1,223,325 | public void write(final MacroMap env) throws IOException {<NEW_LINE>if (!env.isEmpty()) {<NEW_LINE>String value = null;<NEW_LINE>// Very simple sanity check of vars...<NEW_LINE>// NOI18N<NEW_LINE>Pattern <MASK><NEW_LINE>for (String name : env.getExportVariablesSet()) {<NEW_LINE>// check capitalized key by pattern<NEW_L... | pattern = Pattern.compile("[A-Z0-9_]+"); |
1,414,500 | public void execute(Transaction transaction) throws UserException, BimserverLockConflictException, BimserverDatabaseException, IOException, QueryException {<NEW_LINE>PackageMetaData packageMetaData = transaction.getDatabaseSession().getMetaDataManager().getPackageMetaData(transaction.getProject().getSchema());<NEW_LINE... | eClass.getName() + "\""); |
1,444,740 | public void testClearMicroProfileThreadContextTypes() throws Exception {<NEW_LINE>CurrentLocation.setLocation("Winona", "Minnesota");<NEW_LINE>try {<NEW_LINE>ContextService contextSvc = InitialContext.doLookup("java:comp/DefaultContextService");<NEW_LINE>Executor contextSnapshot = contextSvc.createContextualProxy(new S... | CurrentLocation.setLocation("Decorah", "Iowa"); |
1,220,900 | private List<File> findResourcesFromExportTxt(final File contentsDir) {<NEW_LINE>final File exportTxt = new File(contentsDir, "export.txt");<NEW_LINE>if (!exportTxt.exists()) {<NEW_LINE>log("No export.txt in " + contentsDir.getAbsolutePath());<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Map<String, String[]> export... | "Couldn't parse export.txt: " + e.getMessage()); |
125,302 | private void parseUrl(Class<T> type, URL url, List<String> classNames) throws ServiceConfigurationError {<NEW_LINE>InputStream inputStream = null;<NEW_LINE>BufferedReader reader = null;<NEW_LINE>try {<NEW_LINE>inputStream = url.openStream();<NEW_LINE>reader = new BufferedReader(new InputStreamReader(inputStream, MotanC... | failLog(type, "Error closing spi configuration file", y); |
1,103,860 | public PayResponse pay(PayRequest request) {<NEW_LINE>AliPayTradeCreateRequest payRequest = new AliPayTradeCreateRequest();<NEW_LINE>payRequest.setMethod(AliPayConstants.ALIPAY_TRADE_APP_PAY);<NEW_LINE>payRequest.setAppId(aliPayConfig.getAppId());<NEW_LINE>payRequest.setTimestamp(LocalDateTime.now().format(formatter));... | .replaceAll("\\s*", "")); |
1,454,057 | public static void deleteGlobalEdgeComment(final AbstractSQLProvider provider, final INaviEdge edge, final Integer commentId, final Integer userId) throws CouldntDeleteException {<NEW_LINE>Preconditions.checkNotNull(provider, "IE00505: provider argument can not be null");<NEW_LINE>Preconditions.checkNotNull(edge, "IE00... | deleteCommentFunction.setInt(6, commentId); |
424,076 | private static serverObjects putBlogEntry(final serverObjects prop, final BlogBoard.BlogEntry entry, final String context, final int number, final boolean hasRights, final boolean xml) {<NEW_LINE>prop.putHTML("mode_entries_" + number + "_subject", UTF8.String(entry.getSubject()));<NEW_LINE>prop.putHTML("mode_entries_" ... | "_timestamp", entry.getTimestamp()); |
166,612 | public void marshall(ComplianceItem complianceItem, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (complianceItem == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(complianceItem.getComplianceType(), COMPLI... | complianceItem.getResourceId(), RESOURCEID_BINDING); |
1,814,156 | public StarlarkCallable rule(StarlarkFunction implementation, Boolean test, Object attrs, Object implicitOutputs, Boolean executable, Boolean outputToGenfiles, Sequence<?> fragments, Sequence<?> hostFragments, Boolean starlarkTestable, Sequence<?> toolchains, boolean useToolchainTransition, String doc, Sequence<?> prov... | , FakeDescriptor.class, "attrs")); |
1,554,070 | public void startServer() throws Exception {<NEW_LINE>IndexListServlet indexList = new IndexListServlet();<NEW_LINE>if (this.bindAddress != null) {<NEW_LINE>this.server = new Server(new InetSocketAddress(InetAddress.getByName(this.bindAddress), port));<NEW_LINE>} else {<NEW_LINE>this.server = new Server(this.port);<NEW... | metricsRegistries.metricRegistry)), "/metrics"); |
1,656,587 | private static String optionsValue(final String agentArgsText) throws FileNotFoundException, IOException {<NEW_LINE>if (agentArgsText == null) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>if (!agentArgsText.startsWith(CLIBootstrap.FILE_OPTIONS_INTRODUCER)) {<NEW_LINE>return agentArgsText;<NEW_LI... | .FILE_OPTIONS_INTRODUCER.length())); |
389,070 | public static void onEnter(@Advice.Origin Method originMethod, @Advice.Local("otelMethod") Method method, @Advice.AllArguments(typing = Assigner.Typing.DYNAMIC) Object[] args, @Advice.Local("otelOperationEndSupport") AsyncOperationEndSupport<MethodRequest, Object> operationEndSupport, @Advice.Local("otelRequest") Metho... | = new MethodRequest(method, args); |
945,978 | public boolean configure(FeatureContext context) {<NEW_LINE>final boolean disabled = PropertiesHelper.isProperty(context.getConfiguration().getProperty(ServerProperties.WADL_FEATURE_DISABLE));<NEW_LINE>if (disabled) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!ReflectionHelper.isJaxbAvailable()) {<NEW_LINE>LOGGER.... | warning(LocalizationMessages.WADL_FEATURE_DISABLED_NOTRANSFORM()); |
684,700 | public static List<Class<?>> findAllImplementations(Class<?> restrictionClass, boolean everything) {<NEW_LINE>if (restrictionClass == null) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>// Default is served from the registry<NEW_LINE>if (!everything) {<NEW_LINE>return findAllImplementations(restriction... | = new HashSet<>(known); |
1,327,452 | private void initUserComponents() {<NEW_LINE>GridBagConstraints gridBagConstraints;<NEW_LINE>// panel parameters<NEW_LINE>setLayout(new GridBagLayout());<NEW_LINE>setBorder(new EmptyBorder(new Insets(5, 5, 0, 5)));<NEW_LINE>setPreferredSize(new Dimension(preferredWidth, 22 * fieldEntries.size() + 8));<NEW_LINE>for (int... | TableEntry) fieldEntries.get(i); |
712,508 | public ViewHolderShareContacts onCreateViewHolder(ViewGroup parent, int viewType) {<NEW_LINE>LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);<NEW_LINE>Display display = ((Activity) mContext).getWindowManager().getDefaultDisplay();<NEW_LINE>DisplayMetrics outMetrics ... | findViewById(R.id.item_content); |
760,582 | public void generateVarLoad(MethodVisitor mv, BIRNode.BIRVariableDcl varDcl, int valueIndex) {<NEW_LINE>BType bType = <MASK><NEW_LINE>switch(varDcl.kind) {<NEW_LINE>case GLOBAL:<NEW_LINE>{<NEW_LINE>BIRNode.BIRGlobalVariableDcl globalVar = (BIRNode.BIRGlobalVariableDcl) varDcl;<NEW_LINE>String moduleName = JvmCodeGenUti... | JvmCodeGenUtil.getReferredType(varDcl.type); |
146,484 | private MethodTree createHashCodeMethod(WorkingCopy wc, DeclaredType type) {<NEW_LINE>TreeMaker make = wc.getTreeMaker();<NEW_LINE>Set<Modifier> mods = EnumSet.of(Modifier.PUBLIC);<NEW_LINE>// Used in test code<NEW_LINE>Integer number = refactoring.getContext().lookup(Integer.class);<NEW_LINE>int startNumber;<NEW_LINE>... | emptyList(), body, null); |
514,972 | public Expression optimize(SessionLocal session) {<NEW_LINE><MASK><NEW_LINE>boolean constant = !whenOperand && left.isConstant();<NEW_LINE>if (constant && left.isNullConstant()) {<NEW_LINE>return TypedValueExpression.UNKNOWN;<NEW_LINE>}<NEW_LINE>boolean allValuesConstant = true;<NEW_LINE>boolean allValuesNull = true;<N... | left = left.optimize(session); |
646,695 | public void marshall(ReservationPurchaseRecommendation reservationPurchaseRecommendation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (reservationPurchaseRecommendation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh... | reservationPurchaseRecommendation.getTermInYears(), TERMINYEARS_BINDING); |
1,560,864 | public int compare(PolicyStats p1, PolicyStats p2) {<NEW_LINE>Metric metric1 = p1.metrics().get(header);<NEW_LINE>Metric metric2 = p2.metrics().get(header);<NEW_LINE>if (metric1 == null) {<NEW_LINE>return (metric2 == null) ? 0 : -1;<NEW_LINE>} else if (metric2 == null) {<NEW_LINE>return 1;<NEW_LINE>} else if (metric1.v... | ().apply(value2)); |
1,340,537 | public DropGraph visit(final ASTDrop node, final Object data) throws VisitorException {<NEW_LINE>final DropGraph op = new DropGraph();<NEW_LINE>if (node.isSilent())<NEW_LINE>op.setSilent(true);<NEW_LINE>final ASTGraphRefAll graphRef = <MASK><NEW_LINE>if (graphRef.jjtGetNumChildren() > 0) {<NEW_LINE>final TermNode targe... | node.jjtGetChild(ASTGraphRefAll.class); |
288,923 | ActionResult<Wo> execute(EffectivePerson effectivePerson, String workId, String flag, boolean stream) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc)... | class, generalFile.getId()); |
646,896 | private com.google.api.services.sheets.v4.model.CellData cellData2sheetCellData(CellData cellData) {<NEW_LINE>com.google.api.services.sheets.v4.model.CellData sheetCellData = new com.google.api.services.sheets.v4.model.CellData();<NEW_LINE>ExtendedValue ev = new ExtendedValue();<NEW_LINE>if (cellData != null) {<NEW_LIN... | ((Double) cellData.value); |
51,868 | public Pipeline createPipeline(final BuildCause buildCause, final PipelineConfig pipelineConfig, final SchedulingContext context, final String md5, final Clock clock) {<NEW_LINE>return (Pipeline) transactionTemplate.execute((TransactionCallback) status -> {<NEW_LINE>Pipeline pipeline = null;<NEW_LINE>if (shouldCancel(b... | LOGGER.debug("[Pipeline Schedule] Cancelling scheduling as build cause {} is the same as the most recent schedule", buildCause); |
703,804 | private static void appendInt9(CharSink sink, int i) {<NEW_LINE>int c;<NEW_LINE>sink.put((char) ('0' + i / 100000000));<NEW_LINE>sink.put((char) ('0' + (c = <MASK><NEW_LINE>sink.put((char) ('0' + (c %= 10000000) / 1000000));<NEW_LINE>sink.put((char) ('0' + (c %= 1000000) / 100000));<NEW_LINE>sink.put((char) ('0' + (c %... | i % 100000000) / 10000000)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.