idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
40,789 | private MethodNode processMethod(ClassNode traitClass, ClassNode traitHelperClass, MethodNode methodNode, ClassNode fieldHelper, Collection<String> knownFields) {<NEW_LINE>Parameter[] initialParams = methodNode.getParameters();<NEW_LINE>Parameter[] newParams = new Parameter[initialParams.length + 1];<NEW_LINE>newParams... | methodNode.setModifiers(ACC_PUBLIC | ACC_ABSTRACT); |
794,055 | final DescribeObservationResult executeDescribeObservation(DescribeObservationRequest describeObservationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeObservationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
605,697 | public void resolveComponentMetaData(ModuleComponentIdentifier moduleComponentIdentifier, ComponentOverrideMetadata requestMetaData, BuildableModuleComponentMetaDataResolveResult result) {<NEW_LINE>ComponentOverrideMetadata forced = requestMetaData.withChanging();<NEW_LINE>delegate.getRemoteAccess().resolveComponentMet... | cacheMetaData(delegate, moduleComponentIdentifier, resolvedMetadata); |
713,159 | public static int levenshteinDistance(String s1, String s2) {<NEW_LINE>s1 = s1.toLowerCase();<NEW_LINE>s2 = s2.toLowerCase();<NEW_LINE>int[] costs = new int[s2.length() + 1];<NEW_LINE>for (int i = 0; i <= s1.length(); i++) {<NEW_LINE>int lastValue = i;<NEW_LINE>for (int j = 0; j <= s2.length(); j++) {<NEW_LINE>if (i ==... | costs[s2.length()]; |
572,923 | public boolean selectTwoConnections(PairwiseImageGraph.View target, List<PairwiseImageGraph.Motion> connections) {<NEW_LINE>connections.clear();<NEW_LINE>// Create a list of connections in the target that can be used<NEW_LINE>createListOfValid(target, validCandidates);<NEW_LINE>int considered = 0;<NEW_LINE>double bestS... | connectB = validCandidates.get(connIdxB); |
130,357 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | (super.beforeMarshalling(listTagsForResourceRequest)); |
510,809 | public void drawTo(Graphic graphic, Style highLight) {<NEW_LINE>if (wideShape) {<NEW_LINE>graphic.drawPolygon(new Polygon(true).add(1, -SIZE - 2).add(SIZE * 2 - 1, 0).add(1, SIZE + 2), Style.NORMAL);<NEW_LINE>graphic.drawCircle(new Vector(SIZE * 2 + 1, -SIZE2 + 1), new Vector(SIZE * 3 - 1, SIZE2 - 1), Style.NORMAL);<NE... | - 1), Style.NORMAL); |
188,996 | final PutBotAliasResult executePutBotAlias(PutBotAliasRequest putBotAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putBotAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<PutBotAliasRequest> reques... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
6,778 | private static UserNotice findPointsMerge(UserNotice newNotice) {<NEW_LINE>UserNotice found = null;<NEW_LINE>for (Map.Entry<UserNotice, javax.swing.Timer> entry : pointsMerge.entrySet()) {<NEW_LINE><MASK><NEW_LINE>// Attached messages seem to be trimmed depending on source<NEW_LINE>if (stored.tags.getCustomRewardId() !... | UserNotice stored = entry.getKey(); |
464,470 | /* GRECLIPSE edit<NEW_LINE>private boolean checkIfLastStatementIsReturnOrThrow(Statement code) {<NEW_LINE>if (code instanceof BlockStatement) {<NEW_LINE>BlockStatement blockStatement = (BlockStatement) code;<NEW_LINE>List<Statement> statementList = blockStatement.getStatements();<NEW_LINE>int statementCnt = statementLi... | statementList.get(statementCnt - 1); |
787,029 | final ListModelsResult executeListModels(ListModelsRequest listModelsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listModelsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | endClientExecution(awsRequestMetrics, request, response); |
615,725 | private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String accountName) {<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 (this.client.getS... | error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); |
1,011,197 | final CheckSchemaVersionValidityResult executeCheckSchemaVersionValidity(CheckSchemaVersionValidityRequest checkSchemaVersionValidityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(checkSchemaVersionValidityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | invoke(request, responseHandler, executionContext); |
1,290,792 | public static void checkArgs(RuntimeServices rs, Token t, Node node, String sourceTemplate) throws IOException, ParseException {<NEW_LINE>int numArgs = node.jjtGetNumChildren();<NEW_LINE>if (numArgs < 2) {<NEW_LINE>Logger.error(Macro.class, "#macro error : Velocimacro must have name as 1st " + "argument to #macro(). #a... | [firstType], sourceTemplate, t); |
558,826 | public void run() {<NEW_LINE>try {<NEW_LINE>for (BootDashElement _e : getSelectedElements()) {<NEW_LINE>if (_e instanceof CloudAppDashElement && _e.getBootDashModel() instanceof CloudFoundryBootDashModel && _e.getProject() != null) {<NEW_LINE>CloudAppDashElement e = (CloudAppDashElement) _e;<NEW_LINE>boolean <MASK><NEW... | enable = !e.getEnableJmxSshTunnel(); |
513,427 | public void read(org.apache.thrift.protocol.TProtocol iprot, Packet struct) throws org.apache.thrift.TException {<NEW_LINE>org.<MASK><NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apache.thrift.protocol.TType.STOP) {<NEW_LIN... | apache.thrift.protocol.TField schemeField; |
1,305,372 | protected Job createJob() {<NEW_LINE>final Collection<BootDashElement> selecteds = elementsSelection.getValue();<NEW_LINE>if (!selecteds.isEmpty()) {<NEW_LINE>return new Job("Stopping " + selecteds.size() + " Boot Dash Elements") {<NEW_LINE><NEW_LINE>protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>monitor.be... | >(selecteds.size()); |
1,295,375 | public BoundStorageHandle bind(Attributes attributes) {<NEW_LINE>AggregatorHandle<T> <MASK><NEW_LINE>if (aggregatorHandle != null && aggregatorHandle.acquire()) {<NEW_LINE>// At this moment it is guaranteed that the Bound is in the map and will not be removed.<NEW_LINE>return aggregatorHandle;<NEW_LINE>}<NEW_LINE>// Mi... | aggregatorHandle = activeCollectionStorage.get(attributes); |
347,732 | private void _buildSQL(String fileName) throws IOException {<NEW_LINE>File file = new File("../sql/" + fileName + ".sql");<NEW_LINE>if (!file.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Template<NEW_LINE>String template = FileUtil.read(file);<NEW_LINE>// DB2<NEW_LINE>String db2 = StringUtil.replace(template, _T... | replace(template, _TEMPLATE, _SAP); |
1,119,705 | private static List<String> flattenProperties(final Object target, final Class<?> clazz, final ImmutableSet<String> excludedProperties) {<NEW_LINE>assert clazz != null;<NEW_LINE>if (target == null) {<NEW_LINE>return emptyList();<NEW_LINE>}<NEW_LINE>assert clazz.isAssignableFrom(target.getClass());<NEW_LINE>try {<NEW_LI... | ).getCanonicalName(), e); |
149,380 | public void resetNullInfo(LocalVariableBinding local) {<NEW_LINE>if (this != DEAD_END) {<NEW_LINE>this.tagBits |= NULL_FLAG_MASK;<NEW_LINE>int position;<NEW_LINE>long mask;<NEW_LINE>if ((position = local.id + this.maxFieldCount) < BitCacheSize) {<NEW_LINE>// use bits<NEW_LINE>this.nullBit1 &= (mask = ~(1L << position))... | = (position / BitCacheSize) - 1; |
1,816,492 | private Config tweakConfigForOptimalOffHeapMemory(DatabaseLayout databaseLayout, Config config, LogProvider logProvider, FileSystemAbstraction fileSystem) throws ConsistencyCheckIncompleteException {<NEW_LINE><MASK><NEW_LINE>if (availablePhysicalMemory != OsBeanUtil.VALUE_UNAVAILABLE) {<NEW_LINE>availablePhysicalMemory... | long availablePhysicalMemory = OsBeanUtil.getTotalPhysicalMemory(); |
1,050,577 | public <T extends JpaObject> T restrictFlag(String flag, Class<T> cls, String singularAttribute, Object restrictValue, List<Field> fields) throws Exception {<NEW_LINE>EntityManager em = this.get(cls);<NEW_LINE>if (StringUtils.isEmpty(flag)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>T t = null;<NEW_LINE>out: for (Fiel... | (root).where(p); |
1,492,373 | public float noise2(float x, float y) {<NEW_LINE>int bx0, bx1, by0, by1, b00, b10, b01, b11;<NEW_LINE>float rx0, rx1, ry0, ry1, q[], sx, sy, a, b, t, u, v;<NEW_LINE>int i, j;<NEW_LINE>if (start) {<NEW_LINE>start = false;<NEW_LINE>init();<NEW_LINE>}<NEW_LINE>t = x + N;<NEW_LINE>bx0 = ((int) t) & BM;<NEW_LINE>bx1 = (bx0 ... | ] + ry0 * q[1]; |
247,454 | @io.swagger.annotations.ApiResponses(value = { @io.swagger.annotations.ApiResponse(code = 400, message = "Someting wrong", response = Void.class) })<NEW_LINE>public Response testGroupParameters(@ApiParam(value = "Required String in group parameters", required = true) @QueryParam("required_string_group") @NotNull Intege... | stringGroup, booleanGroup, int64Group, securityContext); |
131,840 | public InetAddress test(NetworkAdminNetworkInterfaceAddress address, boolean ipv6, boolean upnp_map, NetworkAdminProgressListener listener) throws NetworkAdminException {<NEW_LINE>InetAddress bind_ip = address == null ? null : address.getAddress();<NEW_LINE>NetworkAdminProtocolTester tester;<NEW_LINE>if (type == PT_HTT... | = new NetworkAdminUDPTester(core, listener); |
1,699,538 | public void updateTheme(@Nullable Bundle editorTheme) {<NEW_LINE>if (editorTheme == null)<NEW_LINE>return;<NEW_LINE>WritableMap writableMap = new WritableNativeMap();<NEW_LINE>Serializable colors = editorTheme.getSerializable(MAP_KEY_THEME_UPDATE_COLORS);<NEW_LINE>Serializable gradients = editorTheme.getSerializable(MA... | fromList((ArrayList) colors)); |
1,180,221 | public void attachValidate(EventType parentEventType, ViewForgeEnv viewForgeEnv) throws ViewParameterException {<NEW_LINE>eventType = parentEventType;<NEW_LINE>String message = getViewName() + " window requires a numeric size parameter and a list of expressions providing sort keys";<NEW_LINE>if (viewParameters.size() <... | , validated[i], i); |
848,712 | public boolean rawInvocation(Request request, Response response) throws Exception {<NEW_LINE>// Mark an evolution as resolved<NEW_LINE>if (Play.mode.isDev() && request.method.equals("POST") && request.url.matches("^/@evolutions/force/[a-zA-Z0-9]+/[0-9]+$")) {<NEW_LINE>int index = request.url.lastIndexOf(<MASK><NEW_LINE... | "/@evolutions/force/") + "/@evolutions/force/".length(); |
32,529 | public byte[] assignUid(final String type, final String name) {<NEW_LINE>Tags.validateString(type, name);<NEW_LINE>if (type.toLowerCase().equals("metric")) {<NEW_LINE>try {<NEW_LINE>final byte[] uid = this.metrics.getId(name);<NEW_LINE>throw new IllegalArgumentException("Name already exists with UID: " + UniqueId.uidTo... | + UniqueId.uidToString(uid)); |
1,577,519 | private boolean fillEmptyContainer() {<NEW_LINE>final int input = getSlotDefinition().getMinInputSlot() + 1;<NEW_LINE>final ItemStack inputStack = getStackInSlot(input);<NEW_LINE>if (Prep.isInvalid(inputStack) || tank.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>IMachineRecipe recipe = null;<NEW_LINE>final F... | MachineRecipeInput> recipeInputs = getRecipeInputs(true); |
114,275 | private FST.Arc<T> doSeekFloorArrayPacked(FST.Arc<T> arc, int targetLabel, final FST.BytesReader in) throws IOException {<NEW_LINE>// Arcs are fixed array -- use binary search to find the target.<NEW_LINE>int idx = Util.binarySearch(fst, arc, targetLabel);<NEW_LINE>if (idx >= 0) {<NEW_LINE>// Match -- recurse<NEW_LINE>... | , getArc(upto), fstReader); |
661,524 | public void replayDropDb(String dbName, boolean isForceDrop) throws DdlException {<NEW_LINE>tryLock(true);<NEW_LINE>try {<NEW_LINE>Database db = fullNameToDb.get(dbName);<NEW_LINE>db.writeLock();<NEW_LINE>try {<NEW_LINE>Set<String<MASK><NEW_LINE>unprotectDropDb(db, isForceDrop, true);<NEW_LINE>if (!isForceDrop) {<NEW_L... | > tableNames = db.getTableNamesWithLock(); |
1,847,330 | protected String doIt() throws Exception {<NEW_LINE>final WarehouseId warehouseId = getWarehouseId();<NEW_LINE>final IStorageEngine storageEngine = storageEngineService.getStorageEngine();<NEW_LINE>final IStorageQuery storageQuery = storageEngine.newStorageQuery();<NEW_LINE>storageQuery.addWarehouseId(warehouseId);<NEW... | candidate.getSummary() + ": @Qty@=0"); |
907,114 | public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {<NEW_LINE>super.onRequestPermissionsResult(requestCode, permissions, grantResults);<NEW_LINE>if (requestCode == PermissionUtil.PERMISSIONS_READ_CONTACTS_AUTOMATIC) {<NEW_LINE>for (int index = 0; index < ... | binding.calendar.setOnCheckedChangeListener(null); |
1,537,382 | public static Map<Descriptors.FieldDescriptor, Object> filterByDataHubType(Map<Descriptors.FieldDescriptor, Object> options, ExtensionRegistry registry, DataHubMetadataType filterType) {<NEW_LINE>return options.entrySet().stream().filter(entry -> {<NEW_LINE>DescriptorProtos.FieldDescriptorProto extendedProtoOptions = e... | ).toProto(), registry); |
623,869 | public Optional<ComplexSearchQuery> parseQueryStringIntoComplexQuery(String query) {<NEW_LINE>try {<NEW_LINE>StandardQueryParser parser = new StandardQueryParser();<NEW_LINE>Query luceneQuery = <MASK><NEW_LINE>Set<Term> terms = new HashSet<>();<NEW_LINE>// This implementation collects all terms from the leaves of the q... | parser.parse(query, "default"); |
1,800,615 | public void transform(TypeTransformer transformer) {<NEW_LINE>transformer.applyTransformer((builder, typeDescription, classLoader, module) -> {<NEW_LINE>if (module != null && module.isNamed()) {<NEW_LINE>// using InstrumentationVersion because it's in the unnamed module in the bootstrap<NEW_LINE>// loader, and that's w... | JavaModule.ofType(InstrumentationVersion.class); |
716,615 | static void parantheses(int i, int j, int n, String s) {<NEW_LINE>if (i == n && j == n) {<NEW_LINE>// n opening and n closing brackets<NEW_LINE>// have been included<NEW_LINE>System.out.println(s);<NEW_LINE>} else if (i == n) {<NEW_LINE>// n opening brackets have been included<NEW_LINE>// now just need to add only clos... | j, n, s + '('); |
1,461,194 | public Request<ListTagsForResourceRequest> marshall(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>if (listTagsForResourceRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListTagsForResourceRequest)");<NEW_LINE>}<NEW_LINE>Request<ListTagsForResourceRequ... | <ListTagsForResourceRequest>(listTagsForResourceRequest, "AmazonCognitoIdentityProvider"); |
876,163 | private Mono<PagedResponse<VaultInner>> listSinglePageAsync() {<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 (this.client.getSubscriptionId() == null) {<NEW_LINE>r... | client.getContext()))); |
1,102,364 | private void updateControlsEnablement() {<NEW_LINE>boolean isBinary = getWizard().getSettings().getProcessor().isBinaryFormat();<NEW_LINE>boolean clipboard = !isBinary && clipboardCheck.getSelection();<NEW_LINE>boolean isMulti = getWizard().getSettings().getDataPipes().size() > 1;<NEW_LINE>boolean singleFile = singleFi... | boolean addToEnd = appendToEndOfFileCheck.getSelection(); |
1,817,406 | public ListStreamingSessionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListStreamingSessionsResult listStreamingSessionsResult = new ListStreamingSessionsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE... | class).unmarshall(context)); |
1,127,915 | public void process() {<NEW_LINE>// Connect to a random bootstrap node<NEW_LINE>if (_simpleConsumer != null) {<NEW_LINE>try {<NEW_LINE>_simpleConsumer.close();<NEW_LINE>} catch (Exception e) {<NEW_LINE>LOGGER.warn("Caught exception while closing consumer for topic {}, ignoring", _topic, e);<NEW_LINE>}<NEW_LINE>}<NEW_LI... | _currentPort, _socketTimeout, _bufferSize, _clientId); |
732,125 | public TsiFrameProtector createFrameProtector(int maxFrameSize, ByteBufAllocator alloc) {<NEW_LINE>Preconditions.checkState(!isInProgress(), "Handshake is not complete.");<NEW_LINE>byte[] key = handshaker.getKey();<NEW_LINE>Preconditions.checkState(key.length == AltsChannelCrypter.getKeyLength(), "Bad key length.");<NE... | .getResult().getMaxFrameSize(); |
809,765 | private void stripTaxes(AccountTransaction t, ReadOnlyAccount readOnlyAccount) {<NEW_LINE>if (t.getType() != AccountTransaction.Type.DIVIDENDS)<NEW_LINE>throw new UnsupportedOperationException();<NEW_LINE>Money taxes = t.<MASK><NEW_LINE>if (taxes.isZero()) {<NEW_LINE>readOnlyAccount.internalAddTransaction(t);<NEW_LINE>... | getUnitSum(Unit.Type.TAX); |
1,501,300 | private Pair<List<DomainVO>, Integer> searchForDomainChildren(Filter searchFilter, Long domainId, String domainName, Object keyword, String path, boolean listActiveOnly) {<NEW_LINE>SearchCriteria<DomainVO> sc = _domainDao.createSearchCriteria();<NEW_LINE>if (keyword != null) {<NEW_LINE>SearchCriteria<DomainVO> ssc = _d... | LIKE, "%" + domainName + "%"); |
685,041 | public void enterSs_server(A10Parser.Ss_serverContext ctx) {<NEW_LINE>Optional<String> maybeName = toString(ctx, ctx.slb_server_name());<NEW_LINE>if (!maybeName.isPresent()) {<NEW_LINE>// dummy<NEW_LINE>_currentServer = new Server(ctx.slb_server_name().getText(), new ServerTargetAddress(Ip.ZERO));<NEW_LINE>return;<NEW_... | toServerTarget(ctx.slb_server_target()); |
63,040 | public static CdmAttributeContext fromData(final CdmCorpusContext ctx, final AttributeContext obj) {<NEW_LINE>if (obj == null)<NEW_LINE>return null;<NEW_LINE>final CdmAttributeContext attributeContext = ctx.getCorpus().makeObject(CdmObjectType.AttributeContextDef, obj.getName(), false);<NEW_LINE>attributeContext.setTyp... | obj.getDefinition()))); |
301,714 | private List<I_C_Invoice_Candidate> createInvoiceCandidates(@NonNull final List<I_C_ILCandHandler> handlerRecords, final Object model) {<NEW_LINE>final List<I_C_Invoice_Candidate> result = new ArrayList<>();<NEW_LINE>if (handlerRecords.isEmpty()) {<NEW_LINE>logger.warn("No C_ILCandHandler were provided for '{}'. Nothin... | ") : " + ExceptionUtils.getRootCauseMessage(e); |
1,347,492 | public int maxPoints(Point[] points) {<NEW_LINE>int result = 0;<NEW_LINE>for (int i = 0; i < points.length; i++) {<NEW_LINE>Map<Pair, Integer> map = new HashMap<>();<NEW_LINE>int verticalLine = 1;<NEW_LINE>int onePointMax = 1;<NEW_LINE>int samePoint = 0;<NEW_LINE>for (int j = i + 1; j < points.length; j++) {<NEW_LINE>/... | Math.max(onePointMax, count); |
1,741,845 | public Request<MoveByoipCidrToIpamRequest> marshall(MoveByoipCidrToIpamRequest moveByoipCidrToIpamRequest) {<NEW_LINE>if (moveByoipCidrToIpamRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<MoveByoipCidrToIpamRequest> request = new Default... | (moveByoipCidrToIpamRequest.getCidr())); |
1,734,330 | private void initAccessibility() {<NEW_LINE>// NOI18N<NEW_LINE>this.getAccessibleContext().// NOI18N<NEW_LINE>setAccessibleDescription(I18nUtil.getBundle().getString("ACS_PropertyPanel"));<NEW_LINE>// NOI18N<NEW_LINE>valueText.getAccessibleContext().// NOI18N<NEW_LINE>setAccessibleDescription(I18nUtil.getBundle<MASK><N... | ().getString("ACS_valueText")); |
90,650 | protected List<Element> expandDateMD(Document doc, String s) {<NEW_LINE>ArrayList<Element> exp = new ArrayList<Element>();<NEW_LINE>Matcher reMatcher = reMonthDay.matcher(s);<NEW_LINE>boolean found = reMatcher.find();<NEW_LINE>// month == (0)1, (0)2, ... , 12<NEW_LINE>int monthType = 1;<NEW_LINE>if (!found) {<NEW_LINE>... | reMatcher = reMonthabbrDay.matcher(s); |
621,079 | private void onChange(final DDlogCommand<DDlogRecord> command) {<NEW_LINE>try {<NEW_LINE>if (trace)<NEW_LINE>System.out.println("Result: " + command);<NEW_LINE>final int relationId = command.relid();<NEW_LINE>final String relationName = ddlogHandle.getTableName(relationId);<NEW_LINE>final DDlogJooqHelper.NormalizedTabl... | out.println("Exception: " + ex); |
1,104,400 | public GetResult merge(List<PartitionGetResult> partResults) {<NEW_LINE>SampleType sampleType = ((SampleNeighborWithTypeParam) param).getSampleType();<NEW_LINE>Long2ObjectOpenHashMap<long[]> nodeIdToSampleNeighbors = new Long2ObjectOpenHashMap<>(((SampleNeighborParam) param).getNodeIds().length);<NEW_LINE>Long2ObjectOp... | SampleNeighborResultWithType(nodeIdToSampleNeighbors, nodeIdToSampleNeighborType, nodeIdToSampleEdgeType); |
1,087,614 | public static ImageArchiveManifest readManifest(InputStream inputStream) throws IOException, JsonParseException {<NEW_LINE>Map<String, JsonParseException> parseExceptions = new LinkedHashMap<>();<NEW_LINE>Map<String, JsonElement> parsedEntries = new LinkedHashMap<>();<NEW_LINE>try (TarArchiveInputStream tarStream = new... | parseException = parseExceptions.get(MANIFEST_JSON); |
1,068,155 | public void onClick(final View v) {<NEW_LINE>final boolean isDropbox = Clouds.get().isDropbox();<NEW_LINE>Clouds.get().loginToDropbox(getActivity(), new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>if (isDropbox) {<NEW_LINE>//<NEW_LINE>Intent //<NEW_LINE>intent = //<NEW_LINE>new Inten... | .getCurrentTabIndex(UITab.BrowseFragment)); |
595,719 | public static void main(String[] args) {<NEW_LINE>RSocketServer.create(SocketAcceptor.forRequestResponse(payload -> {<NEW_LINE>final String route = decodeRoute(payload.sliceMetadata());<NEW_LINE>logger.info("Received RequestResponse[route={}]", route);<NEW_LINE>payload.release();<NEW_LINE>if ("my.test.route".equals(rou... | .create("localhost", 7000)); |
454,911 | private boolean fromPlatform(FileObject fo) {<NEW_LINE>boolean fromPlatform = false;<NEW_LINE>FileObject archive = FileUtil.getArchiveFile(fo);<NEW_LINE>if (archive != null) {<NEW_LINE>FileObject root = FileUtil.getArchiveRoot(archive);<NEW_LINE>if (root != null) {<NEW_LINE>if (cachedPlatformRoots.contains(root)) {<NEW... | JavaPlatformManager manager = JavaPlatformManager.getDefault(); |
1,590,679 | public String tax(final ICalloutField calloutField) {<NEW_LINE>final Properties ctx = calloutField.getCtx();<NEW_LINE>final I_C_OrderLine ol = calloutField.getModel(I_C_OrderLine.class);<NEW_LINE>final IOrderLineBL orderLineBL = Services.get(IOrderLineBL.class);<NEW_LINE>orderLineBL.updatePrices(OrderLinePriceUpdateReq... | log.trace("Tax ID={}", C_Tax_ID); |
1,201,098 | public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup viewGroup, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.view_key_adv_user_ids_fragment, viewGroup, false);<NEW_LINE>mUserIds = view.findViewById(R.id.view_key_user_ids);<NEW_LINE>mUserIdsAddedList = view.findViewById(R.i... | findViewById(R.id.view_key_user_ids_add_layout); |
951,601 | private void createLogWindow(String title, ArrayList<String> logMessages, Color color) {<NEW_LINE>// do nothing if no log messages exist<NEW_LINE>if (logMessages == null || logMessages.size() == 0)<NEW_LINE>return;<NEW_LINE>ArrayList<String> displayLogMessages = <MASK><NEW_LINE>// create window<NEW_LINE>JFrame frame = ... | new ArrayList<String>(logMessages); |
1,457,756 | public static void main(String[] args) throws Exception {<NEW_LINE>Options options = null;<NEW_LINE>try {<NEW_LINE>options = Options.parse(args);<NEW_LINE>} catch (IllegalArgumentException e) {<NEW_LINE>System.err.println(e.getMessage());<NEW_LINE>System.exit(2);<NEW_LINE>}<NEW_LINE>// Try to use hardlinks to source se... | IndexWriter(mergedIndex, options.config); |
1,094,821 | public StringBuilder runTestWithResponse(LibertyServer server, String path, String queryString) throws Exception {<NEW_LINE>URL url = new URL("http://" + server.getHostname() + ":" + server.getHttpDefaultPort() + getPathAndQuery(path, queryString));<NEW_LINE>Log.info(getClass(), testName.getMethodName(), "URL is " + ur... | getClass(), "runInServlet", line); |
1,638,175 | private void changeStatus(AnalyzerStatus newStatus) {<NEW_LINE>boolean resetAnalyzingStatus = analyzerStatus != null && analyzerStatus.isTextStatus() && analyzerStatus<MASK><NEW_LINE>analyzerStatus = newStatus;<NEW_LINE>// smallIconLabel.setIcon(analyzerStatus.getIcon());<NEW_LINE>if (showToolbar != analyzerStatus.getC... | .getAnalyzingType() == AnalyzingType.COMPLETE; |
1,451,373 | private void executeCommands(final List<String> commands, final Client ksqlClient, final MigrationConfig config, final String executionStart, final MigrationFile migration, final Clock clock, final String previous, final boolean validateOnly) {<NEW_LINE>setUpJavaClientVariables(ksqlClient);<NEW_LINE>final Map<String, O... | , Optional.of(errorMsg)); |
1,555,888 | public <T extends EncryptionAtRestService<? extends SupportedAlgorithmInterface>> byte[] generateUniverseKey(UUID configUUID, UUID universeUUID, EncryptionAtRestConfig config) {<NEW_LINE>T keyService;<NEW_LINE>KmsConfig kmsConfig;<NEW_LINE>byte[] universeKeyRef = null;<NEW_LINE>try {<NEW_LINE>kmsConfig = KmsConfig.get(... | "Error attempting to generate universe key for universe %s", universeUUID.toString()); |
1,054,636 | private Object registerDTraceListener(FlashlightProbeProvider propro, List<ProbeClientMethodHandle> pcms, List<FlashlightProbe> probesRequiringClassTransformation) {<NEW_LINE>// The "listener" needs to be registered against every Probe in propro...<NEW_LINE>Collection<FlashlightProbe> probes = propro.getProbes();<NEW_L... | invoker = ProbeClientInvokerFactory.createDTraceInvoker(probe); |
1,697,497 | public static final void addEnhancements(SemanticGraph sg, Embedding embeddingMatrix) {<NEW_LINE>embeddings = embeddingMatrix;<NEW_LINE>Pair<MASK><NEW_LINE>int iterations = 0;<NEW_LINE>while ((conjGovOrphanGov = getConjGovOrphanGovPair(sg)) != null && ++iterations < 10) {<NEW_LINE>// System.err.println(sg.toString(Sema... | <IndexedWord, IndexedWord> conjGovOrphanGov = null; |
1,145,561 | private void cmd_report(boolean isSummaryChanged) {<NEW_LINE>KeyNamePair pp = (KeyNamePair) comboReport.getSelectedItem();<NEW_LINE>if (pp == null)<NEW_LINE>return;<NEW_LINE>//<NEW_LINE>setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<NEW_LINE>MPrintFormat pf = null;<NEW_LINE>int AD_PrintFormat_ID = pp.getKey... | getCtx(), AD_PrintFormat_ID, true); |
477,036 | public void onActivityResult(int requestCode, int resultCode, Intent data) {<NEW_LINE>switch(requestCode) {<NEW_LINE>case REQUEST_CODE_PICK_IMAGE_DIR:<NEW_LINE>{<NEW_LINE>if (resultCode == Activity.RESULT_OK) {<NEW_LINE>UniFile uniFile = UniFile.fromUri(getActivity(<MASK><NEW_LINE>if (uniFile != null) {<NEW_LINE>Settin... | ), data.getData()); |
1,323,956 | private void addPermanent(PermanentView permanent, final int count) {<NEW_LINE>if (cardDimension == null) {<NEW_LINE>cardDimension = new Dimension(ClientDefaultSettings.dimensions.getFrameWidth(), ClientDefaultSettings.dimensions.getFrameHeight());<NEW_LINE>}<NEW_LINE>final MageCard perm = Plugins.instance.getMagePerma... | instance.onAddCard(perm, 1); |
1,558,488 | final GetFindingResult executeGetFinding(GetFindingRequest getFindingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFindingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig); |
917,329 | private void onSelectionChanged() {<NEW_LINE>Set<AbstractTreeNode> nodes = myBuilder.getSelectedElements(AbstractTreeNode.class);<NEW_LINE>if (nodes.size() != 1) {<NEW_LINE>showMessageLabel(EMPTY_SELECTION_MESSAGE);<NEW_LINE>myLastSelection = null;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AbstractTreeNode<?> node = nodes.i... | myPropertiesPanelLayout.show(myPropertiesPanel, cardName); |
1,533,882 | final DescribePolicyResult executeDescribePolicy(DescribePolicyRequest describePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribePolicy"); |
11,605 | public CompletionServiceResponse doMultiGetRequest(List<String> serverURLs, String tableNameWithType, boolean multiRequestPerServer, int timeoutMs) {<NEW_LINE>CompletionServiceResponse completionServiceResponse = new CompletionServiceResponse();<NEW_LINE>// TODO: use some service other than completion service so that w... | LOGGER.info("Finished reading information for table: {}", tableNameWithType); |
151,068 | public static boolean hasValidFingerPrint(Context context) {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>String packageName = context.getPackageName();<NEW_LINE>PackageInfo packageInfo = pm.getPackageInfo(packageName, PackageManager.GET_SIGNATURES);<NEW_LINE>byte[] cert = packageInfo.signatures[0].toByteArray();<NEW_LINE>M... | PackageManager pm = context.getPackageManager(); |
1,150,506 | private KeyExchange receive_kexinit(Buffer buf) throws Exception {<NEW_LINE>int j = buf.getInt();<NEW_LINE>if (j != buf.getLength()) {<NEW_LINE>// packet was compressed and<NEW_LINE>// j is the size of deflated packet.<NEW_LINE>buf.getByte();<NEW_LINE>I_S = new byte[buf.index - 5];<NEW_LINE>} else {<NEW_LINE>I_S = new ... | V_S, V_C, I_S, I_C); |
274,320 | /* (non-Javadoc)<NEW_LINE>* @see com.kkalice.adempiere.migrate.DBEngineInterface#sql_delete(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.Integer)<NEW_LINE>*/<NEW_LINE>public String sql_delete(String catalogName, String schemaName, String tableName, String tableAlias, ArrayList<Strin... | ()).append(") "); |
1,211,888 | public static void consolidate(Properties ctx) {<NEW_LINE>String sql = "SELECT * FROM M_MatchPO po " + "WHERE EXISTS (SELECT 1 FROM M_MatchPO x " + "WHERE po.C_OrderLine_ID=x.C_OrderLine_ID AND po.Qty=x.Qty " + "GROUP BY C_OrderLine_ID, Qty " + "HAVING COUNT(*) = 2) " + " AND AD_Client_ID=?" + "ORDER BY C_OrderLine_ID,... | Level.SEVERE, sql, e); |
1,247,808 | public void populateFromEntries(ListIterator<String> iter) {<NEW_LINE>while (iter.hasNext()) {<NEW_LINE>String line = iter.next();<NEW_LINE>if (line.contains("BEGIN:VEVENT")) {<NEW_LINE>// Continue<NEW_LINE>} else if (line.startsWith("END:VEVENT")) {<NEW_LINE>break;<NEW_LINE>} else if (line.startsWith("ORGANIZER")) {<N... | entry = parseTillNextAttribute(iter, line); |
323,313 | private static String convert(String className) {<NEW_LINE>if (className.startsWith("[")) {<NEW_LINE>int dimensions = 0;<NEW_LINE>char c = className.charAt(0);<NEW_LINE>String suffix = "";<NEW_LINE>while (c == '[') {<NEW_LINE>dimensions++;<NEW_LINE>suffix += "[]";<NEW_LINE>c = className.charAt(dimensions);<NEW_LINE>}<N... | replace('$', '.') + suffix; |
1,174,729 | public boolean add(String dmpProfilesString) {<NEW_LINE>if (StringUtils.isBlank(dmpProfilesString)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>dmpProfilesString = dmpProfilesString.replaceFirst("\\s*X-PANASONIC-DMP-Profile:\\s*", "").trim();<NEW_LINE>String[] elements = dmpProfilesString.trim().split("\\s+");<NEW_LIN... | element, e.getMessage()); |
1,304,026 | public final <K extends Exception> boolean batchAccept(int batchSize, AbortingVisitor<? super List<T>, K> v) throws K {<NEW_LINE>Preconditions.checkArgument(batchSize > 0);<NEW_LINE>if (v instanceof ConsistentVisitor) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>AbortingVisitor<List<T>, K> v2 = (AbortingVisitor<L... | ConsistentVisitor.create(batchSize, v); |
423,305 | public boolean check(Location currentLocation, Location newLocation) {<NEW_LINE>String provider = TiConvert.toString(properties.get(TiC.PROPERTY_PROVIDER));<NEW_LINE>if (provider != null) {<NEW_LINE>String newProvider = newLocation.getProvider();<NEW_LINE>if (!newProvider.equals(FusedLocationProvider.PROVIDER) && !prov... | maxAgeValue = TiConvert.toDouble(rawMaxAge); |
760,916 | static NewUserForm readFromJsonRequest(final PwmRequest pwmRequest, final NewUserBean newUserBean) throws IOException, PwmUnrecoverableException, PwmDataValidationException {<NEW_LINE>final Locale userLocale = pwmRequest.getLocale();<NEW_LINE>final List<FormConfiguration> newUserForm = NewUserServlet.getFormDefinition(... | (NewUserServlet.FIELD_PASSWORD2)) : null; |
417,017 | public <T extends ForwardIndexReaderContext> void evaluateBlock(int[] docIds, int length, ForwardIndexReader<T> reader, T context, Dictionary dictionary, int[] dictIdsBuffer, float[] valueBuffer) {<NEW_LINE>float defaultValue = (_defaultValue instanceof Number) ? ((Number) _defaultValue).floatValue() : 0F;<NEW_LINE>if ... | i]), defaultValue, valueBuffer); |
23,360 | private ResponseSpec findPetsByTagsRequestCreation(Set<String> tags) throws WebClientResponseException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'tags' is set<NEW_LINE>if (tags == null) {<NEW_LINE>throw new WebClientResponseException("Missing the required parameter 'tags' when calling... | LinkedMultiValueMap<String, String>(); |
1,759,758 | public static void copyProcessorPropertiesIfNotNull(ProcessorProperties source, ProcessorProperties target) {<NEW_LINE>PropertyMapper propertyMapper = new PropertyMapper();<NEW_LINE>propertyMapper.from(source.getDomainName()).to(target::setDomainName);<NEW_LINE>propertyMapper.from(source.getNamespace()<MASK><NEW_LINE>p... | ).to(target::setNamespace); |
355,484 | // FileManager implementation ----------------------------------------------<NEW_LINE>@Override<NEW_LINE>public Iterable<JavaFileObject> list(@NonNull final Location l, @NonNull final String packageName, @NonNull final Set<JavaFileObject.Kind> kinds, final boolean recursive) {<NEW_LINE>final List<JavaFileObject> result... | .WithExcludes ml = asSourceModuleLocation(l); |
568,402 | public void addOption(String name, SqlNode value) {<NEW_LINE>if (name.equalsIgnoreCase(OPTION_MAX_ACTIONS)) {<NEW_LINE>validateValue(1, value);<NEW_LINE>this.maxActions = ((SqlLiteral) value).intValue(false);<NEW_LINE>} else if (name.equalsIgnoreCase(OPTION_POLICY)) {<NEW_LINE>validateValue(3, value);<NEW_LINE>String p... | , policy, this.policy)); |
613,724 | static SrcClass genClass(String fqn, JavascriptModel model, ProgramNode programNode, IFile file) {<NEW_LINE>ClassNode classNode = programNode.getFirstChild(ClassNode.class);<NEW_LINE>SrcClass clazz = new SrcClass(fqn, SrcClass.Kind.Class).imports(JsRuntime.class).imports(SourcePosition.class);<NEW_LINE>clazz.addAnnotat... | addConstructor(clazz, classNode, file); |
872,353 | public static void writeTypeAndObj(DataOutputStream out, byte rtype, Object obj) throws IOException {<NEW_LINE>out.write(rtype);<NEW_LINE>switch(rtype) {<NEW_LINE>case TYPE_VOID:<NEW_LINE>break;<NEW_LINE>case TYPE_BYTE:<NEW_LINE>out<MASK><NEW_LINE>break;<NEW_LINE>case TYPE_BOOL:<NEW_LINE>out.writeByte(((Boolean) obj) ?... | .writeByte((Byte) obj); |
718,254 | public ItemStack assemble(CraftingContainer inv) {<NEW_LINE>ItemStack speedloader = null;<NEW_LINE>int speedloaderX = -1;<NEW_LINE>int speedloaderY = -1;<NEW_LINE>int width = inv.getWidth();<NEW_LINE>int height = inv.getHeight();<NEW_LINE>for (int i = 0; i < inv.getContainerSize(); i++) {<NEW_LINE>if (inv.getItem(i).ge... | speedloader = inv.getItem(i); |
927,021 | public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>try {<NEW_LINE>System.out.println("Incoming Client Request as a SOAPMessage:");<NEW_LINE>request.writeTo(System.out);<NEW_LINE>String hdrText = request.getSOAPHeader().getTextContent();<NEW_LINE>System.out.println("Incoming ... | StringReader respMsg = new StringReader(returnMsg); |
120,316 | public ExportToCSVOption unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ExportToCSVOption exportToCSVOption = new ExportToCSVOption();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | JsonToken token = context.getCurrentToken(); |
652,715 | protected void onFragmentCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>if (getArguments() == null) {<NEW_LINE>throw new NullPointerException("Bundle is null, therefore, issues can't be proceeded.");<NEW_LINE>}<NEW_LINE>stateLayout.setOnReloadListener(this);<NEW_LINE>refresh.setOnRefreshLis... | setEmptyText(R.string.no_pull_requests); |
1,360,341 | public Put toStore(Property<?> prop) {<NEW_LINE>Put put = new Put(Bytes.toBytes(prop.getName()));<NEW_LINE>// uid<NEW_LINE>byte[] propName = Bytes.toBytes(prop.getName());<NEW_LINE>put.addColumn(B_FEATURES_CF_PROPERTIES, B_COL_PROPERTY_ID, propName);<NEW_LINE>// type<NEW_LINE>byte[] mytype = (prop.getType() == null) ? ... | addColumn(B_FEATURES_CF_PROPERTIES, B_COL_PROPERTY_DESCRIPTION, desc); |
410,218 | private void convertConfigurations() {<NEW_LINE>populatePrecomputedMaps();<NEW_LINE>_convertedConfiguration = new ConvertedConfiguration(this);<NEW_LINE>if (!_accounts.isEmpty()) {<NEW_LINE>// generate only if we have any data<NEW_LINE>_convertedConfiguration.addNode(generateAwsServicesGateway());<NEW_LINE>}<NEW_LINE>f... | ).forEach(_convertedConfiguration::addNode); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.