idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
998,526 | public Project createProjectRefsAndExprs(RelNode projChild, boolean adjust, boolean rightSide, RelNode origProj) {<NEW_LINE>List<RexNode> preserveExprs;<NEW_LINE>int nInputRefs;<NEW_LINE>int offset;<NEW_LINE>if (rightSide) {<NEW_LINE>preserveExprs = rightPreserveExprs;<NEW_LINE>nInputRefs = nRightProject;<NEW_LINE>offs... | ), true).build(); |
208,470 | public void gen(TreeElement t) {<NEW_LINE>// save AST cursor<NEW_LINE>println("__t" + t.ID + " as AST " + " = _t");<NEW_LINE>// If there is a label on the root, then assign that to the variable<NEW_LINE>if (t.root.getLabel() != null) {<NEW_LINE>println(t.root.getLabel() + " = (ASTNULL == _t) ? null : cast(" + labeledEl... | println("_t = __t" + t.ID); |
1,732,829 | public void visitValue(PValue value, Node producer) {<NEW_LINE>for (Entry<ProjectionProducer<PTransform<?, ?>>, Map<PCollection<?>, FieldAccessDescriptor>> entry : pCollFieldAccess.entrySet()) {<NEW_LINE>FieldAccessDescriptor fieldAccess = entry.getValue().get(value);<NEW_LINE>if (fieldAccess == null) {<NEW_LINE>contin... | tag, "PCollection %s not found in outputs of producer %s", value, producer); |
1,305,294 | public void process(JCas jcas) throws AnalysisEngineProcessException {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>resultView = jcas.getView("Result");<NEW_LINE>passagesView = jcas.getView("Passages");<NEW_LINE>jcas.createView("PickedPassages");<NEW_LINE>questionView = jcas.getView("Question");<NEW_LINE>pickedPassagesView ... | JCas resultView, passagesView, pickedPassagesView, questionView; |
955,856 | public static boolean openPageByUrl(Context context, String url, Map params, int requestCode) {<NEW_LINE>String path = url.split("\\?")[0];<NEW_LINE>Log.i("openPageByUrl", path);<NEW_LINE>try {<NEW_LINE>if (pageName.containsKey(path)) {<NEW_LINE>Intent intent = FlutterActivity.createDefaultIntent(context);<NEW_LINE>if ... | (context, TabMainActivity.class)); |
854,427 | private void handleColorCommand(Command command) {<NEW_LINE>if (command instanceof HSBType) {<NEW_LINE>setColor((HSBType) command);<NEW_LINE>setBrightness(((HSBType) command).getBrightness());<NEW_LINE>} else if (command instanceof OnOffType) {<NEW_LINE>setState(((OnOffType) command));<NEW_LINE>} else if (command insta... | ZERO.intValue()))); |
1,750,906 | public BigDecimal fakeOuterNumberSerialize(BigDecimal body) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/fake/outer/number";<NEW_LINE>// query params<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>Lis... | localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); |
1,622,654 | public static SparseVector predictSparseVector(String content, double minTF, HashMap<String, Tuple2<Integer, Double>> wordIdWeight, FeatureType featureType, int featureNum) {<NEW_LINE>HashMap<String, Integer> wordCount = new HashMap<>(0);<NEW_LINE>String[] tokens = content.split(NLPConstant.WORD_DELIMITER);<NEW_LINE>do... | get(entry.getKey()); |
389,663 | final DescribeEventsResult executeDescribeEvents(DescribeEventsRequest describeEventsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEventsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | (super.beforeMarshalling(describeEventsRequest)); |
873,757 | public void markStoreCorrupted(IOException exception) throws IOException {<NEW_LINE>ensureOpen();<NEW_LINE>if (!isMarkedCorrupted()) {<NEW_LINE>final String corruptionMarkerName = CORRUPTED_MARKER_NAME_PREFIX + UUIDs.randomBase64UUID();<NEW_LINE>try (IndexOutput output = this.directory().createOutput(corruptionMarkerNa... | BytesRef ref = bytes.toBytesRef(); |
172,160 | public void receive(IMessage message) {<NEW_LINE>if (message instanceof LJ1200Message) {<NEW_LINE>LJ1200Message lj = (LJ1200Message) message;<NEW_LINE>if (lj.isValid()) {<NEW_LINE>String address = lj.getAddress();<NEW_LINE>mAddresses.add(address);<NEW_LINE>MutableIdentifierCollection ic = new MutableIdentifierCollectio... | getIdentifierCollection().getIdentifiers()); |
1,270,067 | public void marshall(AwsEc2VpnConnectionDetails awsEc2VpnConnectionDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEc2VpnConnectionDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK>... | awsEc2VpnConnectionDetails.getVpnConnectionId(), VPNCONNECTIONID_BINDING); |
212,125 | private void startImportOperation(@ImportType int backupType, Uri uri) {<NEW_LINE>// Start batch ops service<NEW_LINE>Intent intent = new Intent(activity, BatchOpsService.class);<NEW_LINE>BatchOpsManager.Result input = new BatchOpsManager.Result(Collections.emptyList());<NEW_LINE>intent.putStringArrayListExtra(BatchOps... | ContextCompat.startForegroundService(activity, intent); |
1,346,652 | // TODO Tracked in https://github.com/ankidroid/Anki-Android/issues/5019<NEW_LINE>@SuppressWarnings("deprecation")<NEW_LINE>protected void buildLists() {<NEW_LINE>android.preference.ListPreference deckConfPref = (android.preference.ListPreference) findPreference("deckConf");<NEW_LINE>List<DeckConfig> confs = mCol.getDe... | setEntryValues(R.array.new_order_values); |
316,771 | public static int difference(@Nonnull String s1, @Nonnull String s2) {<NEW_LINE>int[][] a = new int[s1.length()][s2.length()];<NEW_LINE>for (int i = 0; i < s1.length(); i++) {<NEW_LINE>a[i][0] = i;<NEW_LINE>}<NEW_LINE>for (int j = 0; j < s2.length(); j++) {<NEW_LINE>a[0][j] = j;<NEW_LINE>}<NEW_LINE>for (int i = 1; i < ... | s2.length() - 1]; |
5,988 | private ByteBuffer generateLineRendering(HashMapVirtualObject ifcProduct, IntBuffer indicesAsInt, DoubleBuffer verticesAsDouble, FloatBuffer normalsAsFloat, float margin) {<NEW_LINE>Set<ComplexLine> lines = new TreeSet<>();<NEW_LINE>for (int i = 0; i < indicesAsInt.capacity(); i += 3) {<NEW_LINE>for (int j = 0; j < 3; ... | indicesAsInt.get(i + j); |
1,810,977 | private void checkProbe() {<NEW_LINE>MatOfDouble pMean = new MatOfDouble();<NEW_LINE>MatOfDouble pStdDev = new MatOfDouble();<NEW_LINE>Core.meanStdDev(probe, pMean, pStdDev);<NEW_LINE>double min = 0.00001;<NEW_LINE>isPlainColor = false;<NEW_LINE>double sum = 0.0;<NEW_LINE>double[] arr = pStdDev.toArray();<NEW_LINE>for ... | Math.max(1.0, resizeFactor); |
1,488,490 | public static DescribeTopDomainsByFlowResponse unmarshall(DescribeTopDomainsByFlowResponse describeTopDomainsByFlowResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTopDomainsByFlowResponse.setRequestId(_ctx.stringValue("DescribeTopDomainsByFlowResponse.RequestId"));<NEW_LINE>describeTopDomainsByFlowResponse.setSt... | ("DescribeTopDomainsByFlowResponse.TopDomains[" + i + "].TotalTraffic")); |
1,322,020 | private static CardMessage.Builder from(MessagesProto.CardMessage in) {<NEW_LINE>CardMessage.Builder builder = CardMessage.builder();<NEW_LINE>if (in.hasTitle()) {<NEW_LINE>builder.setTitle(decode(in.getTitle()));<NEW_LINE>}<NEW_LINE>if (in.hasBody()) {<NEW_LINE>builder.setBody(decode(in.getBody()));<NEW_LINE>}<NEW_LIN... | , in.getPrimaryActionButton())); |
186,792 | private static CEntryPointData create(String providedName, Supplier<String> alternativeNameSupplier, Class<? extends Function<String, String>> nameTransformation, String documentation, Builtin builtin, Class<?> prologue, Class<?> prologueBailout, Class<?> epilogue, Class<?> exceptionHandler, Publish publishAs) {<NEW_LI... | .getDeclaredConstructor().newInstance(); |
1,174,182 | protected void parse(Object obj) throws JSONException {<NEW_LINE>Logger.T(TAG, "parse: " + ((obj == null) ? "<null>" : obj.getClass().getSimpleName()));<NEW_LINE>if (Map.class.isInstance(obj)) {<NEW_LINE>Logger.T(TAG, "Parsing Map instance >>>");<NEW_LINE>parseMap((Map<String, ?>) obj);<NEW_LINE>Logger.T(TAG, "Finishin... | (Collection<?>) obj); |
1,723,638 | public void apply(IntrinsicContext context, InvocationExpr invocation) {<NEW_LINE>switch(invocation.getMethod().getName()) {<NEW_LINE>case "fillZero":<NEW_LINE>context.includes().addInclude("<string.h>");<NEW_LINE>context.writer().print("memset(");<NEW_LINE>context.emit(invocation.getArguments().get(0));<NEW_LINE>conte... | writer().print(", "); |
341,807 | final GetTrafficPolicyInstanceCountResult executeGetTrafficPolicyInstanceCount(GetTrafficPolicyInstanceCountRequest getTrafficPolicyInstanceCountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTrafficPolicyInstanceCountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
957,621 | private Map<String, Set<IFile>> buildPrimaryFqnToFilesMap() {<NEW_LINE>Map<String, Set<IFile>> primaryFqnToFiles = new HashMap<>();<NEW_LINE>Map<String, FqnCache<IFile>> extensionCaches = getModule().getPathCache().getExtensionCaches();<NEW_LINE>for (Map.Entry<String, FqnCache<IFile>> entry : extensionCaches.entrySet()... | String ext = entry.getKey(); |
225,140 | public Object doQuery(Object[] objs) {<NEW_LINE>if (objs == null || objs.length < 2) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("spark_read1" + mm.getMessage(Integer.toString(param.getSubSize())));<NEW_LINE>}<NEW_LINE>if (!(objs[0] instanceof SparkCli)) {<NEW_LINE>MessageManager ... | Object[]) objs[i]; |
1,067,679 | // For the serialization format, see BridgeSerializationUtils::serializeABICallSpec<NEW_LINE>private static ABICallSpec deserializeABICallSpec(byte[] data) {<NEW_LINE>RLPList rlpList = (RLPList) RLP.decode2(data).get(0);<NEW_LINE>if (rlpList.size() != 2) {<NEW_LINE>throw new RuntimeException(String.format("Invalid seri... | , rlpList.size())); |
948,538 | public void init(String[] args) throws Exception {<NEW_LINE>RefineServer server = new RefineServer();<NEW_LINE>server.init(iface, port, host);<NEW_LINE>boolean headless = Configurations.getBoolean("refine.headless", false);<NEW_LINE>if (headless) {<NEW_LINE><MASK><NEW_LINE>logger.info("Running in headless mode");<NEW_L... | System.setProperty("java.awt.headless", "true"); |
958,064 | public HazelcastInstance hazelcastInstance(JHipsterProperties jHipsterProperties) {<NEW_LINE>log.debug("Configuring Hazelcast");<NEW_LINE>Config config = new Config();<NEW_LINE>config.setInstanceName("gateway");<NEW_LINE>// The serviceId is by default the application's name, see Spring Boot's eureka.instance.appname pr... | log.debug("Configuring Hazelcast clustering for instanceId: {}", serviceId); |
418,099 | static ImmutableOpenMap<String, List<AliasMetadata>> postProcess(GetAliasesRequest request, String[] concreteIndices, ImmutableOpenMap<String, List<AliasMetadata>> aliases, ClusterState state, SystemIndexAccessLevel systemIndexAccessLevel, ThreadContext threadContext, SystemIndices systemIndices) {<NEW_LINE>boolean noA... | > finalResponse = mapBuilder.build(); |
735,771 | private boolean checkForLogrotateAdditionalFilesToDelete(SingularityExecutorTaskDefinition taskDefinition) {<NEW_LINE>return configuration.getLogrotateAdditionalFiles().stream().filter(SingularityExecutorLogrotateAdditionalFile::isDeleteInExecutorCleanup).allMatch(toDelete -> {<NEW_LINE>String glob = String.format("glo... | ().getPathMatcher(glob)); |
1,325,200 | final ListInputsResult executeListInputs(ListInputsRequest listInputsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInputsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListInputsRequest> request = nu... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
426,855 | private void appendStack(String title, List<StarlarkThread.CallStackEntry> stack) throws IOException {<NEW_LINE>// For readability, ensure columns line up.<NEW_LINE>int maxLocLen = 0;<NEW_LINE>for (StarlarkThread.CallStackEntry fr : stack) {<NEW_LINE>maxLocLen = Math.max(maxLocLen, fr.location.toString().length());<NEW... | ("# ").append(loc); |
92,530 | public final DeclaracaoFuncaoContext declaracaoFuncao() throws RecognitionException {<NEW_LINE>DeclaracaoFuncaoContext _localctx = new <MASK><NEW_LINE>enterRule(_localctx, 24, RULE_declaracaoFuncao);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(170);<NEW_LINE>match... | DeclaracaoFuncaoContext(_ctx, getState()); |
745,509 | public static OfYear read(CharFlow flow) {<NEW_LINE>int flags = Base46.decodeUnsigned(flow);<NEW_LINE>boolean advance = (flags & 1) != 0;<NEW_LINE>boolean hasDayOfWeek <MASK><NEW_LINE>int modeBits = (flags >>> 2) & 3;<NEW_LINE>char mode;<NEW_LINE>switch(modeBits) {<NEW_LINE>case 1:<NEW_LINE>mode = 'w';<NEW_LINE>break;<... | = (flags & 2) != 0; |
465,635 | private void drawTurtle(UGraphic ug) {<NEW_LINE>if (showTurtle == false) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final UPolygon poly = new UPolygon();<NEW_LINE>double size = 2;<NEW_LINE>double deltax = 4.5 * size;<NEW_LINE>poly.addPoint(0 * size - deltax, 0);<NEW_LINE>poly.addPoint(0 * size - deltax, -2 * size);<NEW_LIN... | - deltax, -6 * size); |
281,330 | public ApiResponse<String> uploadPostResumableShareWithHttpInfo(String shareid, FileMetadata metadata) throws ApiException {<NEW_LINE>Object localVarPostBody = metadata;<NEW_LINE>// verify the required parameter 'shareid' is set<NEW_LINE>if (shareid == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// verify the required ... | throw new ApiException(400, "Missing the required parameter 'shareid' when calling uploadPostResumableShare"); |
724,823 | public Ic3Data.Application.Component.ExitPoint.Intent buildPartial() {<NEW_LINE>Ic3Data.Application.Component.ExitPoint.Intent result = new Ic3Data.Application.Component.ExitPoint.Intent(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (attributesBuilder_ == null) {<NEW_LINE... | .attributes_ = attributesBuilder_.build(); |
1,396,497 | public boolean removeReadEntity(RateControlledEntity entity) {<NEW_LINE>boolean found = false;<NEW_LINE>try {<NEW_LINE>entities_mon.enter();<NEW_LINE>if (entity.getPriority() == RateControlledEntity.PRIORITY_HIGH) {<NEW_LINE>// copy-on-write<NEW_LINE>ArrayList<RateControlledEntity> high_new = new ArrayList<>(high_prior... | = new ArrayList<>(normal_priority_entities); |
712,533 | private void processEEPs(EnoceanBindingProvider enoceanBindingProvider, String itemName) {<NEW_LINE>EnoceanParameterAddress parameterAddress = enoceanBindingProvider.getParameterAddress(itemName);<NEW_LINE>EEPId eep = enoceanBindingProvider.getEEP(itemName);<NEW_LINE>esp3Host.addDeviceProfile(parameterAddress.getEnocea... | addProfile(item, parameterAddress, profile); |
1,050,299 | private void saveBlobsTSSSaver(StringBuilder responseBuilder) {<NEW_LINE>Map<Object, Object> deviceParameters = new HashMap<>();<NEW_LINE>deviceParameters.put("ecid", String.valueOf(Long.parseLong(ecid, 16)));<NEW_LINE>deviceParameters.put("deviceIdentifier", deviceIdentifier);<NEW_LINE>deviceParameters.put("boardConfi... | System.out.println(deviceParameters); |
1,121,774 | public static ContentImpl createInstance(AnnotationModel annotation, ApiContext context) {<NEW_LINE>ContentImpl from = new ContentImpl();<NEW_LINE>String typeName = annotation.getValue("mediaType", String.class);<NEW_LINE>if (typeName == null || typeName.isEmpty()) {<NEW_LINE>typeName = javax.ws.rs.core.MediaType.WILDC... | ("example", String.class)); |
174,041 | private void storeInitialState() {<NEW_LINE>mKeyState[0] = mSharedPreferences.getBoolean(IMAGE_TO_PDF_KEY, false);<NEW_LINE>mKeyState[1] = mSharedPreferences.getBoolean(TEXT_TO_PDF_KEY, false);<NEW_LINE>mKeyState[2] = mSharedPreferences.getBoolean(QR_BARCODE_KEY, false);<NEW_LINE>mKeyState[3] = mSharedPreferences.getBo... | mSharedPreferences.getBoolean(SPLIT_PDF_KEY, false); |
1,261,749 | public static ColumnVector md5Hash(ColumnView... columns) {<NEW_LINE>if (columns.length < 1) {<NEW_LINE>throw new IllegalArgumentException("MD5 hashing requires at least 1 column of input");<NEW_LINE>}<NEW_LINE>long[] columnViews = new long[columns.length];<NEW_LINE>long size = <MASK><NEW_LINE>for (int i = 0; i < colum... | columns[0].getRowCount(); |
853,209 | final DeleteQuickConnectResult executeDeleteQuickConnect(DeleteQuickConnectRequest deleteQuickConnectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteQuickConnectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteQuickConnect"); |
272,482 | void readACValues(BitReader _in, int[] target, VLC table, int[] quantTable) {<NEW_LINE>int code;<NEW_LINE>int curOff = 1;<NEW_LINE>do {<NEW_LINE>code = table.readVLC16(_in);<NEW_LINE>if (code == 0xF0) {<NEW_LINE>curOff += 16;<NEW_LINE>} else if (code > 0) {<NEW_LINE>int rle = code >> 4;<NEW_LINE>curOff += rle;<NEW_LINE... | code != 0 && curOff < 19); |
735,173 | private SourceSet createAotMainSourceSet(SourceSetContainer sourceSets, ConfigurationContainer configurations, Path generatedFilesPath) {<NEW_LINE>File aotSourcesDirectory = generatedFilesPath.resolve("runtimeSources").resolve(AOT_MAIN_SOURCE_SET_NAME).toFile();<NEW_LINE>File aotResourcesDirectory = generatedFilesPath.... | .getByName(SpringBootPlugin.DEVELOPMENT_ONLY_CONFIGURATION_NAME)); |
1,085,392 | public static IRubyObject unresolvedSuper(ThreadContext context, IRubyObject self, IRubyObject[] args, Block block) {<NEW_LINE>// We have to rely on the frame stack to find the implementation class<NEW_LINE>RubyModule klazz = context.getFrameKlazz();<NEW_LINE>String methodName = context.getFrameName();<NEW_LINE>Helpers... | searchWithCache(methodName) : CacheEntry.NULL_CACHE; |
372,651 | public static void onExit(@Advice.This ILoggingEvent event, @Advice.Return(typing = Typing.DYNAMIC, readOnly = false) Map<String, String> contextData) {<NEW_LINE>if (contextData != null && contextData.containsKey(TRACE_ID)) {<NEW_LINE>// Assume already instrumented event if traceId is present.<NEW_LINE>return;<NEW_LINE... | SpanContext spanContext = currentSpan.getSpanContext(); |
875,066 | final DescribeHostsResult executeDescribeHosts(DescribeHostsRequest describeHostsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeHostsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | DescribeHostsResult>(new DescribeHostsResultStaxUnmarshaller()); |
643,085 | final AssumeRoleResult executeAssumeRole(AssumeRoleRequest assumeRoleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(assumeRoleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
1,548,417 | protected List<ClassResult> groupResults(Set<ITestResult> results) {<NEW_LINE>List<ClassResult> classResults = Lists.newArrayList();<NEW_LINE>if (!results.isEmpty()) {<NEW_LINE>List<MethodResult> resultsPerClass = Lists.newArrayList();<NEW_LINE>List<ITestResult> resultsPerMethod = Lists.newArrayList();<NEW_LINE>List<IT... | > resultsIterator = resultsList.iterator(); |
1,590,395 | public static DescribeScdnCcQpsInfoResponse unmarshall(DescribeScdnCcQpsInfoResponse describeScdnCcQpsInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeScdnCcQpsInfoResponse.setRequestId(_ctx.stringValue("DescribeScdnCcQpsInfoResponse.RequestId"));<NEW_LINE>List<String> totals = new ArrayList<String>();<NEW_LI... | = new ArrayList<String>(); |
656,325 | public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>Pack p = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", agentDailyProxy.getObjHashLv(date, serverId, CounterConstants.MARIA_PLUGIN));<NEW_LINE>param.put("sdate", date);<NEW_LINE>param.put("ed... | = stime + DateUtil.MILLIS_PER_DAY - 1; |
381,321 | private List<CSSASMechConfig> extractASMech(Map<String, Object> authenticationLayerProperties) {<NEW_LINE>List<CSSASMechConfig> cssasMechConfigs = new ArrayList<CSSASMechConfig>();<NEW_LINE>List<String> configuredMechanisms = new ArrayList<String>();<NEW_LINE>String establishTrustInClient = (String) authenticationLayer... | .add(new CSSNULLASMechConfig()); |
832,705 | final DeleteJobQueueResult executeDeleteJobQueue(DeleteJobQueueRequest deleteJobQueueRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteJobQueueRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteJobQueue"); |
1,558,447 | public void testMessageOrder_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JMSProducer producer1 = jmsContextQueue.createProducer();<NEW_LINE>JMSProducer producer2 = jmsContextQueueNew.createProducer();<NEW_LINE>JMSConsumer jmsConsumer = jmsContextQueue.createConsumer(jm... | Message msg = jmsContextQueueNew.createMessage(); |
1,166,673 | public static RefactoringStatus checkParameterTypeSyntax(String type, IJavaProject project) {<NEW_LINE>String newTypeName = ParameterInfo.stripEllipsis(type.trim()).trim();<NEW_LINE>String typeLabel = BasicElementLabels.getJavaElementName(type);<NEW_LINE>if ("".equals(newTypeName.trim())) {<NEW_LINE>// $NON-NLS-1$<NEW_... | ) parsedType).getPrimitiveTypeCode()); |
266,848 | private void repositoriesChanged(PropertyChangeEvent evt) {<NEW_LINE>List<RepositoryImpl> oldRepositories = (List) (evt.getOldValue() == null ? Collections.emptyList(<MASK><NEW_LINE>List<RepositoryImpl> newRepositories = (List) (evt.getNewValue() == null ? Collections.emptyList() : evt.getNewValue());<NEW_LINE>Set<Repo... | ) : evt.getOldValue()); |
624,269 | protected void performRewrite(TransformationContext ctx) throws Exception {<NEW_LINE>// path should be the typecast expression<NEW_LINE>TreePath path = ctx.getPath();<NEW_LINE>TreePath exprPath = exprHandle.resolve(ctx.getWorkingCopy());<NEW_LINE>if (path.getLeaf().getKind() != Tree.Kind.TYPE_CAST || exprPath == null |... | WorkingCopy copy = ctx.getWorkingCopy(); |
1,060,962 | public void startTomcat() throws LifecycleException {<NEW_LINE>tomcat = new Tomcat();<NEW_LINE>tomcat.setPort(randomPort);<NEW_LINE>tomcat.setHostname("localhost");<NEW_LINE>String appBase = ".";<NEW_LINE>tomcat.getHost().setAppBase(appBase);<NEW_LINE>File docBase = new File(System.getProperty("java.io.tmpdir"));<NEW_L... | ), servletClass.getName()); |
556,520 | public ODocument toNetworkStream() {<NEW_LINE>ODocument document = new ODocument();<NEW_LINE>document.setTrackingChanges(false);<NEW_LINE>document.field("name", getName());<NEW_LINE>document.field("type", getType().id);<NEW_LINE>document.field("globalId", globalRef.getId());<NEW_LINE>document.field("mandatory", mandato... | customFields : null, OType.EMBEDDEDMAP); |
163,635 | public static List<String> serializeTree(Node node) {<NEW_LINE>List<String> serialized = new ArrayList<>();<NEW_LINE>int id = 0;<NEW_LINE>Deque<NodeSerializable> nodeQ = new ArrayDeque<>();<NEW_LINE>nodeQ.addFirst(new NodeSerializable().setNode(node).setId(id++));<NEW_LINE>while (!nodeQ.isEmpty()) {<NEW_LINE>NodeSerial... | ).setId(id++)); |
1,081,682 | private synchronized void doDelegate(Collection<? extends LookupProvider> providers) {<NEW_LINE>// unregister listeners from the old results:<NEW_LINE>for (Lookup.Result<?> r : results) {<NEW_LINE>r.removeLookupListener(this);<NEW_LINE>}<NEW_LINE>List<Lookup> newLookups = new ArrayList<Lookup>();<NEW_LINE>for (LookupPr... | (currentLookups.get(index)); |
809,808 | public DeleteLoadBalancerResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteLoadBalancerResult deleteLoadBalancerResult = new DeleteLoadBalancerResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +... | int originalDepth = context.getCurrentDepth(); |
584,885 | public void attached(Database database) {<NEW_LINE>for (Map.Entry<String, String> param : this.databaseParams.entrySet()) {<NEW_LINE>try {<NEW_LINE>ObjectUtil.setProperty(database, param.getKey(<MASK><NEW_LINE>} catch (Exception e) {<NEW_LINE>Scope.getCurrentScope().getLog(getClass()).warning("Error setting database pa... | ), param.getValue()); |
732,123 | public void paint(Editor editor, Graphics g, Rectangle r) {<NEW_LINE>final TextAttributes color = editor.getColorsScheme().getAttributes(myKey);<NEW_LINE>ColorValue bgColor = color.getBackgroundColor();<NEW_LINE>if (bgColor == null) {<NEW_LINE>bgColor = color.getForegroundColor();<NEW_LINE>}<NEW_LINE>if (editor.getSett... | (TargetAWT.to(bgColor)); |
1,616,394 | private void readObject(ObjectInputStream input) throws ClassNotFoundException, IOException {<NEW_LINE>input.defaultReadObject();<NEW_LINE>this.proxyRestrictionAudience <MASK><NEW_LINE>this.signerCertificates = new ArrayList<X509Certificate>();<NEW_LINE>this.signerCertificateDN = new ArrayList<String>();<NEW_LINE>this.... | = new ArrayList<String>(); |
813,130 | protected void afterHookedMethod(MethodHookParam param) throws Throwable {<NEW_LINE>Hookers.logD("LoadedApk#<init> starts");<NEW_LINE>try {<NEW_LINE>LoadedApk loadedApk = (LoadedApk) param.thisObject;<NEW_LINE>String packageName = loadedApk.getPackageName();<NEW_LINE>Object mAppDir = XposedHelpers.getObjectField(loaded... | Hookers.logD("LoadedApk#<init> has been loaded before, skip: " + mAppDir); |
1,199,402 | public Joiner skipNulls() {<NEW_LINE>return new Joiner(this) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public <A extends Appendable> A appendTo(A appendable, Iterator<? extends @Nullable Object> parts) throws IOException {<NEW_LINE>checkNotNull(appendable, "appendable");<NEW_LINE>checkNotNull(parts, "parts");<NEW_LINE>wh... | Object part = parts.next(); |
72,586 | public void addPages() {<NEW_LINE>// Create a page, set the title, and the initial model file name.<NEW_LINE>//<NEW_LINE>newFileCreationPage = new OpenDDSModelWizardNewFileCreationPage("Whatever", selection);<NEW_LINE>newFileCreationPage.setTitle(OpenDDSEditorPlugin.INSTANCE.getString("_UI_OpenDDSModelWizard_label"));<... | .INSTANCE.getString("_UI_Wizard_initial_object_description")); |
994,977 | void queueBufferForAssetStorage(int assetid, byte[] buffer) {<NEW_LINE>UserError.Log.d(TAG, "QUEUE BUFFER FOR ASSET STORAGE: " + assetid + " " + buffer.length);<NEW_LINE>int startChunk = 1;<NEW_LINE>if (buffer.length > 65535) {<NEW_LINE>throw new RuntimeException("To big for page");<NEW_LINE>}<NEW_LINE>// warning nixes... | buffer.length + " chunk: " + startChunk); |
1,297,272 | public void writeAllCurrentRequestsAsPart(Map<JavaInformations, List<CounterRequestContext>> currentRequests, Collector collector, List<Counter> counters, long timeOfSnapshot) throws IOException {<NEW_LINE>try {<NEW_LINE>document.open();<NEW_LINE>// on remplace les parentCounters<NEW_LINE>final List<CounterRequestConte... | > rootCurrentContexts = entry.getValue(); |
1,561,918 | public static void vertical3(Kernel1D_S32 kernel, GrayU8 input, GrayI16 output, int skip) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final <MA... | int radius = kernel.getRadius(); |
1,757,168 | public Pair<List<? extends Site2SiteVpnGateway>, Integer> searchForVpnGateways(ListVpnGatewaysCmd cmd) {<NEW_LINE>Long id = cmd.getId();<NEW_LINE>Long vpcId = cmd.getVpcId();<NEW_LINE>Boolean display = cmd.getDisplay();<NEW_LINE>Long domainId = cmd.getDomainId();<NEW_LINE>boolean isRecursive = cmd.isRecursive();<NEW_LI... | domainId, isRecursive, permittedAccounts, listProjectResourcesCriteria); |
62,666 | public X509Certificate[] sendHPB() throws IOException, GeneralSecurityException, AxelorException, JDOMException {<NEW_LINE>HPBRequestElement request;<NEW_LINE>KeyManagementResponseElement response;<NEW_LINE>HttpRequestSender sender;<NEW_LINE>HPBResponseOrderDataElement orderData;<NEW_LINE>ContentFactory factory;<NEW_LI... | (request.prettyPrint())); |
1,271,880 | protected void generateExpressionResultCode(BlockScope currentScope, CodeStream codeStream) {<NEW_LINE>SwitchExpression se = this.switchExpression;<NEW_LINE>if (se != null && se.containsTry && se.resolvedType != null) {<NEW_LINE>addSecretYieldResultValue(this.scope);<NEW_LINE>assert this.secretYieldResultValue != null;... | lhs, this.expression, 0); |
819,864 | public OCommandExecutorSQLCreateUser parse(OCommandRequest iRequest) {<NEW_LINE>init((OCommandRequestText) iRequest);<NEW_LINE>parserRequiredKeyword(KEYWORD_CREATE);<NEW_LINE>parserRequiredKeyword(KEYWORD_USER);<NEW_LINE>this.userName = parserRequiredWord(false, "Expected <user-name>");<NEW_LINE>parserRequiredKeyword(K... | splits = role.split("[, ]"); |
1,196,211 | public static void execute(ManagerConnection c, int numLines) {<NEW_LINE>ByteBuffer buffer = c.allocate();<NEW_LINE>// write header<NEW_LINE>buffer = header.write(buffer, c, true);<NEW_LINE>// write fields<NEW_LINE>for (FieldPacket field : fields) {<NEW_LINE>buffer = field.write(buffer, c, true);<NEW_LINE>}<NEW_LINE>//... | + "logs" + File.separator + "mycat.log"; |
1,100,824 | protected int update(Connection conn, BaseClient newClient) {<NEW_LINE>String methodName = "update";<NEW_LINE>_log.entering(CLASS, methodName, new Object[] { conn, newClient });<NEW_LINE>PreparedStatement st = null;<NEW_LINE>int retVal = 0;<NEW_LINE>try {<NEW_LINE>String insert = "UPDATE " + tableName + " SET " + Table... | isEnabled() ? 1 : 0); |
1,564,948 | public void computeColors() {<NEW_LINE>// SootAttributesHandler handler, ITextViewer viewer, IEditorPart editorPart){<NEW_LINE>if ((getHandler() == null) || (getHandler().getAttrList() == null))<NEW_LINE>return;<NEW_LINE>ArrayList sortedAttrs = sortAttrsByLength(<MASK><NEW_LINE>Iterator it = sortedAttrs.iterator();<NEW... | getHandler().getAttrList()); |
127,882 | public com.amazonaws.services.clouddirectory.model.StillContainsLinksException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.clouddirectory.model.StillContainsLinksException stillContainsLinksException = new com.amazonaws.services.clouddirectory.model.StillCon... | JsonToken token = context.getCurrentToken(); |
1,268,178 | public final void command_output() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST command_output_AST = null;<NEW_LINE>switch(LA(1)) {<NEW_LINE>case COMMAND_OUTPUT:<NEW_LINE>{<NEW_LINE>AST tmp288_AST = null;<NEW_LINE>tmp288_AST = a... | .create(LT(1)); |
374,819 | final DeletePackageResult executeDeletePackage(DeletePackageRequest deletePackageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePackageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | addHandlerContext(HandlerContextKey.SERVICE_ID, "OpenSearch"); |
1,549,426 | public RangeEndpoint append(Object value, Equality equality) {<NEW_LINE>ComponentSerializer<?> serializer = components.get(position);<NEW_LINE>position++;<NEW_LINE>// First, serialize the ByteBuffer for this component<NEW_LINE>ByteBuffer cb;<NEW_LINE>try {<NEW_LINE>cb = serializer.serializeValue(value);<NEW_LINE>} catc... | put(equality.toByte()); |
191,928 | public static ListFlowProjectClusterSettingResponse unmarshall(ListFlowProjectClusterSettingResponse listFlowProjectClusterSettingResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFlowProjectClusterSettingResponse.setRequestId(_ctx.stringValue("ListFlowProjectClusterSettingResponse.RequestId"));<NEW_LINE>listFlowProje... | (_ctx.integerValue("ListFlowProjectClusterSettingResponse.PageSize")); |
1,252,747 | protected void paintTab(final Graphics g, final int tabPlacement, final Rectangle[] rects, final int tabIndex, final Rectangle iconRect, final Rectangle textRect) {<NEW_LINE>final Rectangle tabRect = rects[tabIndex];<NEW_LINE>final int selectedIndex = tabPane.getSelectedIndex();<NEW_LINE>final boolean isSelected = sele... | title = tabPane.getTitleAt(tabIndex); |
71,791 | private void timeBasedRotation(String propertyValue) {<NEW_LINE>rotationOnDateChange = false;<NEW_LINE>if (propertyValue != null) {<NEW_LINE>rotationOnDateChange = Boolean.parseBoolean(propertyValue);<NEW_LINE>}<NEW_LINE>if (rotationOnDateChange) {<NEW_LINE>rotationOnDateChange();<NEW_LINE>} else {<NEW_LINE>rotationTim... | currentThread().getId()); |
1,685,151 | public ApiResponse<RecycleBinContents> recycleBinGetRecycleBinContentsWithHttpInfo(Integer pageIndex, Integer pageSize, String sortExpression) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'pageIndex' is set<NEW_LINE>if (pageIndex == null) {<NEW_LINE>throw new ... | localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType); |
165,263 | private DistributedLogServer buildServer() {<NEW_LINE>return DistributedLogServer.builder().withServerName(partition.name()).withMembershipService(managementService.getMembershipService()).withMemberGroupProvider(config.getMemberGroupProvider()).withProtocol(new LogServerCommunicator(partition.name(), Serializer.using(... | withThreadContextFactory(threadFactory).build(); |
311,304 | private void updateTerminal(Location l, BlockMenu terminal, int slot, int index, List<ItemStackAndInteger> items) {<NEW_LINE>if (items.size() > index) {<NEW_LINE>ItemStackAndInteger item = items.get(index);<NEW_LINE>ItemStack stack = item.getItem().clone();<NEW_LINE>stack.setAmount(1);<NEW_LINE>ItemMeta im = stack.getI... | item.getInt()))); |
1,147,681 | private List<DataSourceListBo> reorderDataSourceListBos(List<DataSourceListBo> dataSourceListBos) {<NEW_LINE>// reorder dataSourceBo using id and timeSlot<NEW_LINE>MultiKeyMap<Long, DataSourceListBo> dataSourceListBoMap = new MultiKeyMap<>();<NEW_LINE>for (DataSourceListBo dataSourceListBo : dataSourceListBos) {<NEW_LI... | dataSourceListBoMap.get(id, timeSlot); |
1,563,425 | public TagStreamResult tagStream(TagStreamRequest tagStreamRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagStreamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMet... | awsRequestMetrics.startEvent(Field.RequestMarshallTime); |
485,831 | private boolean useOffloadedPlayback(Format format, AudioAttributes audioAttributes) {<NEW_LINE>if (Util.SDK_INT < 29 || offloadMode == OFFLOAD_MODE_DISABLED) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>@C.Encoding<NEW_LINE>int encoding = MimeTypes.getEncoding(checkNotNull(format.sampleMimeType), format.codecs);<NEW_L... | Util.getAudioTrackChannelConfig(format.channelCount); |
1,248,388 | public JSFunction compile(final CompilationContext context, final String identifier, final String[] formalParameters, final Statement body, final boolean strict) {<NEW_LINE>int statementNumber = body.getStatementNumber();<NEW_LINE>BlockManager.Entry entry = context.getBlockManager().retrieve(statementNumber);<NEW_LINE>... | ).createMutableBinding(identifier, true); |
906,329 | final protected void createUI() {<NEW_LINE>backgroundImage = Icons.getIcon("logo.wizard.png");<NEW_LINE>setLayout(new BorderLayout(7, 7));<NEW_LINE>marginPanel.setPreferredSize(new Dimension(150, 400));<NEW_LINE>add(marginPanel, BorderLayout.WEST);<NEW_LINE>marginPanel.setOpaque(false);<NEW_LINE>marginPanel.setEnabled(... | new BorderLayout(7, 7)); |
1,755,190 | public void copyNonSystemHeaders(SipServletRequest origRequest, OutgoingSipServletRequest request) {<NEW_LINE>Iterator iterator = ((SipServletRequestImpl) origRequest).getJainSipHeaders();<NEW_LINE>if (iterator != null) {<NEW_LINE>Request jainOutReq = request.getRequest();<NEW_LINE>Header header;<NEW_LINE>while (iterat... | jainOutReq.addHeader(header, false); |
1,252,747 | protected void paintTab(final Graphics g, final int tabPlacement, final Rectangle[] rects, final int tabIndex, final Rectangle iconRect, final Rectangle textRect) {<NEW_LINE>final Rectangle tabRect = rects[tabIndex];<NEW_LINE>final int selectedIndex = tabPane.getSelectedIndex();<NEW_LINE>final boolean isSelected = sele... | tabIndex, isSelected, cropx, cropy); |
818,077 | private void rehash(final int newSize, boolean hashOnData) {<NEW_LINE>final int newMask = newSize - 1;<NEW_LINE>bytesUsed.addAndGet(Integer.BYTES * (newSize));<NEW_LINE>final int[] newHash = new int[newSize];<NEW_LINE>Arrays.fill(newHash, -1);<NEW_LINE>for (int i = 0; i < hashSize; i++) {<NEW_LINE>final int e0 = ids[i]... | .buffers[off >> BYTE_BLOCK_SHIFT]; |
1,658,687 | private static Set<UpdateElement> handleBackwardCompatability(Set<ModuleInfo> forInstall, Set<Dependency> brokenDependencies, boolean aggressive) {<NEW_LINE>if (cachedInfosReference != null) {<NEW_LINE>Set<ModuleInfo> cir = cachedInfosReference.get();<NEW_LINE>if (cir != null && cir.equals(forInstall)) {<NEW_LINE>if (c... | > crr = cachedResultReference.get(); |
1,521,650 | public void marshall(BotAliasSummary botAliasSummary, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (botAliasSummary == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(botAliasSummary.getBotAliasId(), BOTALI... | e.getMessage(), e); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.