idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,256,989
protected Request.Builder applyHeaders(IGClient client, Request.Builder req) {<NEW_LINE>req.addHeader("Connection", "close");<NEW_LINE>req.addHeader("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8");<NEW_LINE>req.addHeader("Accept-Language", "en-US");<NEW_LINE>req.addHeader("X-IG-Capabilities", client...
System.currentTimeMillis() + "");
148,802
private Void doConcat(SegmentHandle targetHandle, long offset, String sourceSegment) throws Exception {<NEW_LINE>Preconditions.checkArgument(!targetHandle.isReadOnly(), "target handle must not be read-only.");<NEW_LINE>long traceId = LoggerHelpers.traceEnter(log, "concat", targetHandle.getSegmentName(), offset, sourceS...
ExtendedS3Metrics.CONCAT_LATENCY.reportSuccessEvent(elapsed);
460,146
public void checkRec090(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>try {<NEW_LINE>if (XAResourceImpl.resourceCount() != 3) {<NEW_LINE>throw new Exception("Rec090 failed: " + XAResourceImpl.resourceCount() + " resources");<NEW_LINE>}<NEW_LINE>if (!XAResourceImpl.allInState(XARe...
getXAResourceImpl(xaResInfo3).getCommitOrder();
1,605,649
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>mProgressBar = view.findViewById(R.id.top_progress_bar);<NEW_LINE>mSubmitButton = view.findViewById(R.id.send_code);<NEW_LINE>mCountryListSpinner = view.findViewById(R.id.country_list);<NEW_LINE>mCountryListAnchor = view.<MASK...
findViewById(R.id.country_list_popup_anchor);
765,769
public void execute() {<NEW_LINE>final OrgChangeBPartnerComposite bpartnerAndSubscriptions = orgChangeRepo.getByIdAndOrgChangeDate(request.getBpartnerId(<MASK><NEW_LINE>final OrgMappingId orgMappingId = bpartnerAndSubscriptions.getBPartnerOrgMappingId();<NEW_LINE>final BPartnerId newBPartnerId = getOrCreateCounterpartB...
), request.getStartDate());
1,594,880
private static void parseAnnotation(AnnotationModelHelper helper, AnnotationMirror annotationMirror, List<EjbRef> resultEjbRefs, List<EjbLocalRef> resultEjbLocalRefs) {<NEW_LINE>String name;<NEW_LINE>String beanInterface;<NEW_LINE>String beanName;<NEW_LINE>String mappedName;<NEW_LINE>String description;<NEW_LINE>TypeEl...
parser.expectString("name", null);
1,328,098
public static void process(GrayU8 orig, GrayS16 derivX, GrayS16 derivY) {<NEW_LINE>final byte[] data = orig.data;<NEW_LINE>final short[] imgX = derivX.data;<NEW_LINE>final short[] imgY = derivY.data;<NEW_LINE>final <MASK><NEW_LINE>final int height = orig.getHeight() - 1;<NEW_LINE>final int strideSrc = orig.getStride();...
int width = orig.getWidth();
1,632,706
public List<ReportReloadEntity> loadReport(long time) {<NEW_LINE>List<ReportReloadEntity> results = new ArrayList<ReportReloadEntity>();<NEW_LINE>Map<String, List<MatrixReport>> mergedReports = new HashMap<String, List<MatrixReport>>();<NEW_LINE>for (int i = 0; i < getAnalyzerCount(); i++) {<NEW_LINE>Map<String, Matrix...
setPeriod(new Date(time));
1,651,296
private void processObjectProperty(Node objectLit, Node key, Color type) {<NEW_LINE>checkArgument(objectLit.isObjectLit() || objectLit.isObjectPattern(), objectLit);<NEW_LINE>switch(key.getToken()) {<NEW_LINE>case COMPUTED_PROP:<NEW_LINE>if (key.getFirstChild().isStringLit()) {<NEW_LINE>// If this quoted prop name is s...
": " + key.toStringTree());
1,479,638
private Bitmap tryLoadBitmap() throws TaskCancelledException {<NEW_LINE>Bitmap bitmap = null;<NEW_LINE>try {<NEW_LINE>File imageFile = configuration.diskCache.get(uri);<NEW_LINE>if (imageFile != null && imageFile.exists() && imageFile.length() > 0) {<NEW_LINE>L.d(LOG_LOAD_IMAGE_FROM_DISK_CACHE, memoryCacheKey);<NEW_LIN...
fireFailEvent(FailType.NETWORK_DENIED, null);
1,575,717
protected void commit() {<NEW_LINE>if (!isActive()) {<NEW_LINE>// If spout has not finished initialization or is inactive, just return.<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// commit operation of user<NEW_LINE>long batchId = outputCollector.getCurrBatchId();<NEW_LINE>Object userState = spoutExecutor.finishBatch(batchId...
spoutExecutor.commit(batchId, userState);
555,830
private void updateOntology() {<NEW_LINE>if (prop == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OWLDataFactory df = getOWLModelManager().getOWLDataFactory();<NEW_LINE>OWLAxiom <MASK><NEW_LINE>if (checkBox.isSelected()) {<NEW_LINE>FreshAxiomLocationPreferences preferences = FreshAxiomLocationPreferences.getPreferences...
ax = df.getOWLFunctionalDataPropertyAxiom(prop);
1,114,585
private void registerClefs(Collection<ClefInter> clefSet) {<NEW_LINE>// Sort clefs by decreasing grade<NEW_LINE>final List<ClefInter> clefList = new ArrayList<>(clefSet);<NEW_LINE>Collections.sort(clefList, Inters.byReverseGrade);<NEW_LINE>for (int idx = 0; idx < clefList.size(); idx++) {<NEW_LINE>final ClefInter inter...
getSymbol(inter.getShape());
1,807,937
final AdminForgetDeviceResult executeAdminForgetDevice(AdminForgetDeviceRequest adminForgetDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(adminForgetDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Cognito Identity Provider");
307,228
private void buildAstPos() {<NEW_LINE>this.posTable = new int[this.astMap.length * 2];<NEW_LINE>int pti = buildAstPos(this.astRoot, 0, 0, 0);<NEW_LINE>this<MASK><NEW_LINE>this.posTable[pti++] = Integer.MAX_VALUE;<NEW_LINE>this.eofAst.pos = pti - 2;<NEW_LINE>int len = 0;<NEW_LINE>if (this.autotags || this.astGroups == A...
.posTable[pti++] = 0;
296,912
static List<PathSegment> parse(String path) {<NEW_LINE>requireNonNull(path, "path");<NEW_LINE>checkArgument(!path.isEmpty(), "path is empty.");<NEW_LINE>final Context context = new Context(path);<NEW_LINE>checkArgument(context.read() == '/', "path: %s (must start with '/')", context.path());<NEW_LINE>final ImmutableLis...
> segments = ImmutableList.builder();
898,481
private static List<CoreMap> annotatePronominalMentions(Annotation ann) {<NEW_LINE>List<CoreMap> pronouns = new ArrayList<>();<NEW_LINE>List<CoreMap> sentences = ann.<MASK><NEW_LINE>for (int sentenceIndex = 0; sentenceIndex < sentences.size(); sentenceIndex++) {<NEW_LINE>CoreMap sentence = sentences.get(sentenceIndex);...
get(CoreAnnotations.SentencesAnnotation.class);
1,700,433
public void testSLLocalEnvEntry_Float() throws Exception {<NEW_LINE>SLLa ejb1 = fhome1.create();<NEW_LINE>// The test case looks for a environment variable named "envFloat".<NEW_LINE>Float <MASK><NEW_LINE>assertNotNull("Get environment float object returned null.", tempFloat);<NEW_LINE>assertEquals("Test content of env...
tempFloat = ejb1.getFloatEnvVar("envFloat");
44,150
public Object invoke(Object proxy, Method method, Object[] args) {<NEW_LINE>if (args == null && "toString".equals(method.getName())) {<NEW_LINE>return toString();<NEW_LINE>} else if (args != null && args.length == 1 && "equals".equals(method.getName())) {<NEW_LINE><MASK><NEW_LINE>} else if (args == null && "hashCode".e...
return equals(args[0]);
1,774,743
private static void updateCommentsData(CodeArea codeArea, Consumer<List<ICodeComment>> updater) {<NEW_LINE>try {<NEW_LINE>JadxProject project = codeArea.getProject();<NEW_LINE><MASK><NEW_LINE>if (codeData == null) {<NEW_LINE>codeData = new JadxCodeData();<NEW_LINE>}<NEW_LINE>List<ICodeComment> list = new ArrayList<>(co...
JadxCodeData codeData = project.getCodeData();
146,840
public com.amazonaws.services.gluedatabrew.model.ServiceQuotaExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.gluedatabrew.model.ServiceQuotaExceededException serviceQuotaExceededException = new com.amazonaws.services.gluedatabrew.model.ServiceQ...
String currentParentElement = context.getCurrentParentElement();
156,792
private void generateWsFromWsdl15(final ProgressHandle handle) throws Exception {<NEW_LINE>String wsdlFilePath = (String) wiz.getProperty(WizardProperties.WSDL_FILE_PATH);<NEW_LINE>File normalizedWsdlFilePath = FileUtil.normalizeFile(new File(wsdlFilePath));<NEW_LINE>// convert to URI first to take care of spaces<NEW_L...
targetName = Templates.getTargetName(wiz);
447,285
public boolean refine() {<NEW_LINE>BoofMiscOps.checkTrue(viewToCamera.get(0) != -1, "You must specify view to camera");<NEW_LINE>// Copy the cameras with prior information into the work cameras<NEW_LINE>for (int cameraIdx = 0; cameraIdx < priorCameras.size; cameraIdx++) {<NEW_LINE>cameras.get(cameraIdx).setTo(priorCame...
getParameters(), cameras, planeAtInfinity);
1,072,947
void importFromFile(Uri uri) {<NEW_LINE>disposables.add(Single.create((SingleOnSubscribe<Boolean>) emitter -> {<NEW_LINE>try {<NEW_LINE>InputStream inputStream = getApplication().getContentResolver().openInputStream(uri);<NEW_LINE>if (inputStream == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>@SuppressWarnings("Unstab...
XLog.w("content: " + content);
475,147
private void auditBPartnerLocation(@NonNull final JsonResponseLocation jsonResponseLocation, @Nullable final DataExportAuditId dataExportParentId, @Nullable final ExternalSystemParentConfigId externalSystemParentConfigId, @Nullable final PInstanceId pInstanceId) {<NEW_LINE>final Action exportAction = dataExportParentId...
locationId = bpartnerDAO.getLocationId(bPartnerLocationId);
60,675
static List<TopicSubscriptionSchema> buildTopicSubscriptionSchemas(final String gcpProject, String topics, String subscriptions) {<NEW_LINE>List<String> topicList;<NEW_LINE>List<String> subscriptionList;<NEW_LINE>List<Schema> schemaList;<NEW_LINE>if (subscriptions != null) {<NEW_LINE>subscriptionList = Arrays.asList(su...
(topics.split(","));
1,087,834
private static Result<?> decodePayload(ChannelHandlerContext ctx, ByteBuf buffer, MqttMessageType messageType, int bytesRemainingInVariablePart, int maxClientIdLength, Object variableHeader) {<NEW_LINE>switch(messageType) {<NEW_LINE>case CONNECT:<NEW_LINE>return decodeConnectionPayload(buffer<MASK><NEW_LINE>case SUBSCR...
, maxClientIdLength, (MqttConnectVariableHeader) variableHeader);
605,051
public <S extends Service> S describe(S undescribedService, String descriptorXml) throws DescriptorBindingException, ValidationException {<NEW_LINE>if (descriptorXml == null || descriptorXml.length() == 0) {<NEW_LINE>throw new DescriptorBindingException("Null or empty descriptor");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>lo...
descriptorXml.trim())));
1,825,680
private static JoinFilterAnalysis rewriteFilterDirect(Filter filterClause, JoinFilterPreAnalysis joinFilterPreAnalysis, Map<Expr, VirtualColumn> pushDownVirtualColumnsForLhsExprs) {<NEW_LINE>if (!filterClause.supportsRequiredColumnRewrite()) {<NEW_LINE>return JoinFilterAnalysis.createNoPushdownFilterAnalysis(filterClau...
.iterator().next();
283,563
public List<GpxDisplayGroup> collectDisplayGroups(GPXFile gpxFile) {<NEW_LINE>List<GpxDisplayGroup> <MASK><NEW_LINE>String name = getGroupName(gpxFile);<NEW_LINE>if (gpxFile.tracks.size() > 0) {<NEW_LINE>for (int i = 0; i < gpxFile.tracks.size(); i++) {<NEW_LINE>GpxDisplayGroup group = buildGpxDisplayGroup(gpxFile, i, ...
dg = new ArrayList<>();
150,779
public boolean willCreateCycle(final BaseType containingType, final BaseType memberType) {<NEW_LINE>Preconditions.checkNotNull(containingType, "Error: Containing type can not be null.");<NEW_LINE>Preconditions.checkNotNull(memberType, "Error: Member type can not be null.");<NEW_LINE>if (containingType == memberType) {<...
Edge currentEdge = edgesToVisit.poll();
1,707,179
// test E12<NEW_LINE>// 641396<NEW_LINE>@Override<NEW_LINE>public String verifyE12MissingClassThwartsInjection() {<NEW_LINE>final String meth = "verifyE12MissingClassThwartsInjection";<NEW_LINE>String retVal = "nothing done";<NEW_LINE>try {<NEW_LINE>// lookup the bean:<NEW_LINE>try {<NEW_LINE>Bad bad = (Bad) new <MASK>...
InitialContext().lookup(BAD6BEAN_JNDI);
1,329,723
private static void writeCodonFractions() {<NEW_LINE>final String codonFractFile = outputFilePrefix + ".codonFractions";<NEW_LINE>try (final BufferedWriter writer = new BufferedWriter(new OutputStreamWriter(BucketUtils.createFile(codonFractFile)))) {<NEW_LINE>final long[][] codonCounts = codonTracker.getCodonCounts();<...
("%5d", codonId + 1));
652,851
public void defaultVMInstallChanged(IVMInstall previous, IVMInstall current) {<NEW_LINE>if (Objects.equals(previous, current)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String prev = (previous == null) ? null : previous.getId() + "-" + previous.getInstallLocation();<NEW_LINE>String curr = (current == null) ? null : curren...
.getRoot().getProjects();
1,483,856
public static void main(String[] args) throws Exception {<NEW_LINE>try (ZContext context = new ZContext()) {<NEW_LINE>// Socket to send messages on<NEW_LINE>ZMQ.Socket sender = context.createSocket(SocketType.PUSH);<NEW_LINE>sender.bind("tcp://*:5557");<NEW_LINE>// Socket to send messages on<NEW_LINE>ZMQ.Socket sink = ...
println("Total expected cost: " + total_msec + " msec");
1,430,348
private ClusterState buildResult(ClusterState oldState, RoutingAllocation allocation) {<NEW_LINE>final RoutingTable oldRoutingTable = oldState.routingTable();<NEW_LINE>final RoutingNodes newRoutingNodes = allocation.routingNodes();<NEW_LINE>final RoutingTable newRoutingTable = new RoutingTable.Builder().updateNodes(old...
updatedRestoreInProgress = allocation.updateRestoreInfoWithRoutingChanges(restoreInProgress);
1,417,642
public synchronized void updatePartitionStatistics(MetastoreContext metastoreContext, String databaseName, String tableName, String partitionName, Function<PartitionStatistics, PartitionStatistics> update) {<NEW_LINE>PartitionStatistics originalStatistics = getPartitionStatistics(metastoreContext, databaseName, tableNa...
PrestoException(HIVE_PARTITION_DROPPED_DURING_QUERY, "Statistics result does not contain entry for partition: " + partitionName);
166,214
ArrayList<Object> new94() /* reduce ATableswitchStatement */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList8 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Obje...
= new LinkedList<Object>();
290,991
private ConcurrentHashMap<String, Boolean> initDbLockStatus(DataSource dataSource) throws SQLException, TddlNestableRuntimeException {<NEW_LINE>Connection connection = null;<NEW_LINE>Statement statement = null;<NEW_LINE>List<Triple> expiredLocks = new ArrayList();<NEW_LINE>ConcurrentHashMap<String, Boolean> <MASK><NEW_...
tmpReadOnlyCache = new ConcurrentHashMap<>();
1,425,721
protected CandidatesQuery createPreExistingCandidatesQuery(@NonNull final AbstractDDOrderEvent ddOrderEvent, @NonNull final DDOrderLine ddOrderLine, @NonNull final CandidateType candidateType) {<NEW_LINE>final SupplyRequiredDescriptor supplyRequiredDescriptor = ddOrderEvent.getSupplyRequiredDescriptor();<NEW_LINE>if (C...
atTime(atTime).build();
770,448
public SlimTable makeSlimTable(Table table, String tableId, SlimTestContext slimTestContext) {<NEW_LINE>SlimTable newTable;<NEW_LINE>TableTypeAndName nameAndType = getTableNameAndType(table<MASK><NEW_LINE>// First the "exceptions to the rule"<NEW_LINE>if (nameAndType.hasTableName("define alias")) {<NEW_LINE>parseDefine...
.getCellContents(0, 0));
1,814,804
final RemoveAutoScalingPolicyResult executeRemoveAutoScalingPolicy(RemoveAutoScalingPolicyRequest removeAutoScalingPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(removeAutoScalingPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
invoke(request, responseHandler, executionContext);
1,830,878
final UpdateDeviceResult executeUpdateDevice(UpdateDeviceRequest updateDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
270,529
public DescribeContainerInstancesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeContainerInstancesResult describeContainerInstancesResult = new DescribeContainerInstancesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = conte...
)).unmarshall(context));
866,106
public CommunityAPDispositions visitCommunitySetDifference(CommunitySetDifference communitySetDifference, Arg arg) {<NEW_LINE>CommunityAPDispositions initial = communitySetDifference.getInitial().accept(this, arg);<NEW_LINE>BDD toDelete = communitySetDifference.getRemovalCriterion().accept(new CommunityMatchExprToBDD()...
Builder shouldNotDelete = IntegerSpace.builder();
1,266,995
// MBeanServerConnection JMXConnector.getMBeanServerConnection(); // throws IOException<NEW_LINE>// MBeanServerConnection.queryMBeans(...) // throws IOException<NEW_LINE>// MBeanServerConnection.queryNames(...) // throws IOException<NEW_LINE>//<NEW_LINE>@Override<NEW_LINE>protected void doGet(HttpServletRequest request...
test = request.getParameter("test");
331,316
@ActionOutput(name = "output2", type = "java.lang.String")<NEW_LINE>public Map<String, Object> singleServiceAction(@ActionInput(name = "input1") String input1, @ActionInput(name = "input2") String input2, String input3, @ActionInput(name = "someNameForInput4") String input4) {<NEW_LINE>// do some calculation stuff here...
result.put("output1", 42);
213,844
private static // outer stream instead of field.data<NEW_LINE>void writeOriginField(DataOutput out, SerializedField code, Object v) throws IOException {<NEW_LINE>switch(code) {<NEW_LINE>case ORIGIN_DESCRIPTION:<NEW_LINE>out.writeUTF((String) v);<NEW_LINE>break;<NEW_LINE>case ORIGIN_LINE_NUMBER:<NEW_LINE>out.writeInt((I...
= (List<String>) v;
788,151
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 2);<NEW_LINE>if (sources[0] instanceof Document) {<NEW_LINE>try {<NEW_LINE>final XPath xpath = XPathFactory.newInstance().ne...
), ctx.isJavaScriptContext());
11,697
public synchronized void eraseTable(long currentTimeMs) {<NEW_LINE>List<RecycleTableInfo> tableToRemove = Lists.newArrayList();<NEW_LINE>int currentEraseOpCnt = 0;<NEW_LINE>for (Map<Long, RecycleTableInfo> tableEntry : idToTableInfo.rowMap().values()) {<NEW_LINE>for (Map.Entry<Long, RecycleTableInfo> entry : tableEntry...
tableId, table.getName());
17,378
public static QueryMsConfigResourcesResponse unmarshall(QueryMsConfigResourcesResponse queryMsConfigResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMsConfigResourcesResponse.setRequestId(_ctx.stringValue("QueryMsConfigResourcesResponse.RequestId"));<NEW_LINE>queryMsConfigResourcesResponse.setResultCode(_ct...
+ "].Attributes[" + j + "].InstanceId"));
1,427,512
public void onLoadStart(IRhoWebView webView, String url, long arg1, long arg2) {<NEW_LINE>Common.logger.add(new LogEntry(LogEntry.PB_LOG_INFO, url));<NEW_LINE>if (mIsFirstTime) {<NEW_LINE>startHourglass();<NEW_LINE>startDebugButtons();<NEW_LINE>startSettingsButton();<NEW_LINE>mIsFirstTime = false;<NEW_LINE>}<NEW_LINE>/...
(new UrlTimerTask(), m_navigationTimeout);
1,168,033
public void upadteBasicMeta(FileMeta fileMeta, File file) {<NEW_LINE>// temp<NEW_LINE>fileMeta.setTitle(file.getName());<NEW_LINE>fileMeta.setSize(file.length());<NEW_LINE>fileMeta.setDate(file.lastModified());<NEW_LINE>fileMeta.setParentPath(file.getParent());<NEW_LINE>fileMeta.setExt(ExtUtils.getFileExtension(file));...
(file.length()));
1,062,152
public okhttp3.Call fakeOuterBooleanSerializeCall(Boolean body, final ApiCallback _callback) throws ApiException {<NEW_LINE>String basePath = null;<NEW_LINE>// Operation Servers<NEW_LINE>String[] localBasePaths = new String[] {};<NEW_LINE>// Determine Base Path to Use<NEW_LINE>if (localCustomBaseUrl != null) {<NEW_LINE...
localVarAuthNames = new String[] {};
1,492,620
private static Map<String, String> parse(Reader in) throws IOException {<NEW_LINE>Map<String, String> defaults = new LinkedHashMap<>();<NEW_LINE>try (BufferedReader reader = new BufferedReader(in)) {<NEW_LINE>String lastKey = null;<NEW_LINE>String line;<NEW_LINE>while ((line = reader.readLine()) != null) {<NEW_LINE>Str...
defaults.put(lastKey, value);
1,625,411
private void buildOnePhyTableOperatorForModify(String sqlTemplateStr, MemoryAllocatorCtx maOfPlanBuildingPool, List<RelNode> phyTableScans, String group, List<String> subTableNames) {<NEW_LINE>PhyTableOperation phyTableModify = new PhyTableOperation(parent.getCluster(), parent.getTraitSet(), parent.getRowType(), null, ...
(ImmutableList.of(subTableNames));
315,702
public static void writeGraphVectors(DeepWalk deepWalk, String path) throws IOException {<NEW_LINE>int nVertices = deepWalk.numVertices();<NEW_LINE>int vectorSize = deepWalk.getVectorSize();<NEW_LINE>try (BufferedWriter write = new BufferedWriter(new FileWriter(new File(path), false))) {<NEW_LINE>for (int i = 0; i < nV...
d = vec.getDouble(j);
1,744,575
protected StreamMappingMethod instantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMa...
.getType(StreamSupport.class));
1,008,271
public void parseResponse(ChallengeResponse challenge, Request request, Series<Header> httpHeaders) {<NEW_LINE>try {<NEW_LINE>byte[] credentialsEncoded = Base64.getDecoder().decode(challenge.getRawValue());<NEW_LINE>if (credentialsEncoded == null) {<NEW_LINE>getLogger().info("Cannot decode credentials: " + challenge.ge...
.getAddress() : "?"));
1,352,303
private Message messageFromMapMms(Map<String, String> msgMap) throws MessagingException {<NEW_LINE>if (LOCAL_LOGV)<NEW_LINE>Log.v(TAG, "messageFromMapMms(" + msgMap + ")");<NEW_LINE>final Uri mmsUri = Uri.withAppendedPath(Consts.MMS_PROVIDER, msgMap.get(Telephony.BaseMmsColumns._ID));<NEW_LINE>MmsSupport.MmsDetails det...
Log.w(TAG, "no recipients found");
951,228
public void writeToXml(JRComponentElement componentElement, JRXmlWriter reportWriter) throws IOException {<NEW_LINE>Component component = componentElement.getComponent();<NEW_LINE>SpiderChartComponent spiderChartComponent = (SpiderChartComponent) component;<NEW_LINE>JRXmlWriteHelper writer = reportWriter.getXmlWriteHel...
writer.startElement(ELEMENT_spiderChart, componentNamespace);
617,719
void addAuthenticationSwitches(Map<String, Object> bundle) {<NEW_LINE>Map<String, SecurityScheme> securitySchemeMap = openAPI.getComponents() != null ? openAPI.getComponents<MASK><NEW_LINE>List<CodegenSecurity> authMethods = config.fromSecurity(securitySchemeMap);<NEW_LINE>if (authMethods != null && !authMethods.isEmpt...
().getSecuritySchemes() : null;
1,615,322
public boolean iteration() {<NEW_LINE>final CommonProblemDescriptor descriptor = myDescriptors[myCount++];<NEW_LINE>ProgressIndicator indicator = myTask.getIndicator();<NEW_LINE>if (indicator != null) {<NEW_LINE>indicator.setFraction((double) myCount / myDescriptors.length);<NEW_LINE>String presentableText = "usages";<...
boolean[] runInReadAction = { false };
1,686,173
public HashMap<String, Organizations> loadOrgsByInstId(String instId, String rootOrgId) {<NEW_LINE>List<Organizations> orgsList = organizationsService.find("instid = '" + instId + "'");<NEW_LINE>if (rootOrgId == null || rootOrgId.equals("")) {<NEW_LINE>rootOrgId = "1";<NEW_LINE>}<NEW_LINE>for (Organizations org : orgsL...
rootOrganization.getNamePath(), rootOrganization);
1,011,733
public Map<String, Department> queryStorageDepartments(List<String> ids, String type) {<NEW_LINE>Map<String, Department> departments = new LinkedHashMap<String, Department>();<NEW_LINE>for (String id : ids) {<NEW_LINE>Storage storage = queryStorageGroup(type).getStorages().get(id);<NEW_LINE>String department;<NEW_LINE>...
(product).addStorage(id);
33,176
public static DescribeEmgVulGroupResponse unmarshall(DescribeEmgVulGroupResponse describeEmgVulGroupResponse, UnmarshallerContext context) {<NEW_LINE>describeEmgVulGroupResponse.setRequestId(context.stringValue("DescribeEmgVulGroupResponse.RequestId"));<NEW_LINE>describeEmgVulGroupResponse.setTotalCount(context.integer...
("DescribeEmgVulGroupResponse.EmgVulGroupList[" + i + "].Type"));
1,091,329
// ///////////////////////////////////////////////////////////////////////////<NEW_LINE>public static void applicableTo(PCollection<?> input) {<NEW_LINE>WindowingStrategy<?, ?<MASK><NEW_LINE>// Verify that the input PCollection is bounded, or that there is windowing/triggering being<NEW_LINE>// used. Without this, the ...
> windowingStrategy = input.getWindowingStrategy();
811,351
public Object execute(Object iThis, final OIdentifiable iCurrentRecord, Object iCurrentResult, final Object[] iParams, OCommandContext iContext) {<NEW_LINE>// calculate max value for current record<NEW_LINE>// consider both collection of parameters and collection in each parameter<NEW_LINE>Object max = null;<NEW_LINE>f...
) item, (Number) max);
738,712
private static int run(com.zeroc.Ice.Communicator communicator, java.util.List<String> argSeq) {<NEW_LINE>final String prefix = "IceBox.Service.";<NEW_LINE>com.zeroc.Ice.Properties properties = communicator.getProperties();<NEW_LINE>java.util.Map<String, String> services = properties.getPropertiesForPrefix(prefix);<NEW...
println("IceBox.Server: unknown option `" + arg + "'");
1,702,173
public void updated(String pid, Dictionary<String, ?> properties) throws ConfigurationException {<NEW_LINE>System.out.println("Updating configuration properties:" + properties);<NEW_LINE>String id = (String) properties.get("id");<NEW_LINE>_properties = cloneDictionary(properties);<NEW_LINE>System.out.println("pid:" + p...
UserinfoProvider service = new CustomUserinfoProvider(serviceProps);
483,891
private Mono<Response<Flux<ByteBuffer>>> updateTagsWithResponseAsync(String resourceGroupName, String resourceName, TagsObject parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return M...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,090,239
private ImmutableMultimap<Path, PrintingSegment> extractAndAssignPaths(@NonNull final String baseDirectory, @NonNull final PrintingData printingData) {<NEW_LINE>final ImmutableMultimap.Builder<Path, PrintingSegment> path2Segments = new ImmutableMultimap.Builder<>();<NEW_LINE>for (final PrintingSegment segment : printin...
), printer.getOutputType());
432,407
protected void okPressed() {<NEW_LINE>// Set props<NEW_LINE>driver.setName(driverNameText.getText());<NEW_LINE>driver.setDescription(CommonUtils.notEmpty(driverDescText.getText()));<NEW_LINE>driver.setDriverClassName(driverClassText.getText());<NEW_LINE>driver.setSampleURL(driverURLText.getText());<NEW_LINE>driver.setD...
setAnonymousAccess(anonymousDriverCheck.getSelection());
1,210,156
static String process(String html) {<NEW_LINE>Matcher m = BLOCKS.matcher(html);<NEW_LINE>List<Match> matches = new ArrayList<>(64);<NEW_LINE>Match lastMatch = null;<NEW_LINE>boolean foundSame = false;<NEW_LINE>StringBuilder out = new StringBuilder(html.length());<NEW_LINE>while (m.find()) {<NEW_LINE>if (lastMatch == nu...
matches.add(lastMatch = match);
1,522,800
public static CloudObjectTranslator<NullableCoder> nullable() {<NEW_LINE>return new CloudObjectTranslator<NullableCoder>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public CloudObject toCloudObject(NullableCoder target, SdkComponents sdkComponents) {<NEW_LINE>CloudObject base = CloudObject.forClass(NullableCoder.class);<...
(componentList.get(0));
368,591
public void onSpanFinished(final InMemorySpan span, long durationMicros) {<NEW_LINE>Span.Builder builder = Span.newBuilder().name(span.operationName()).traceId(span.context().toTraceId()).id(span.context().toSpanId()).parentId(span.context().parentSpanId()).timestamp(span.startEpochMicros()).localEndpoint(endpoint).dur...
kind(Span.Kind.CONSUMER);
1,267,970
public static void main(String[] args) {<NEW_LINE>File file = new File(args[0]);<NEW_LINE>try {<NEW_LINE>JarFile jar = new JarFile(file);<NEW_LINE>URLClassLoader loader = new URLClassLoader(new URL[] { file.toURI<MASK><NEW_LINE>Enumeration<JarEntry> entries = jar.entries();<NEW_LINE>while (entries.hasMoreElements()) {<...
().toURL() });
755,879
public Scte35DescriptorSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Scte35DescriptorSettings scte35DescriptorSettings = new Scte35DescriptorSettings();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
int originalDepth = context.getCurrentDepth();
41,319
List<Long> jfrCheck() {<NEW_LINE>if (!isJfrAvailable()) {<NEW_LINE>throw new UnsupportedOperationException();<NEW_LINE>}<NEW_LINE>String recordings = getJfrCheck();<NEW_LINE>if (recordings == null) {<NEW_LINE>return Collections.EMPTY_LIST;<NEW_LINE>}<NEW_LINE>// NOI18N<NEW_LINE>String[] lines = recordings.split("\\r?\\...
line.indexOf(':', recStart);
512,491
public DescribeCustomAvailabilityZonesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeCustomAvailabilityZonesResult describeCustomAvailabilityZonesResult = new DescribeCustomAvailabilityZonesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth...
().unmarshall(context));
631,636
private static Pipeline substitutePipeline(String id, ElasticsearchParseException e) {<NEW_LINE>String tag = e.getHeaderKeys().contains("processor_tag") ? e.getHeader("processor_tag").get(0) : null;<NEW_LINE>String type = e.getHeaderKeys().contains("processor_type") ? e.getHeader("processor_type").get(0) : "unknown";<N...
String description = "this is a place holder pipeline, because pipeline with id [" + id + "] could not be loaded";
1,031,330
final DescribeEC2InstanceLimitsResult executeDescribeEC2InstanceLimits(DescribeEC2InstanceLimitsRequest describeEC2InstanceLimitsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeEC2InstanceLimitsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
751,766
public Stream<ASTCursor> traverseAmbiguously(YamlPathSegment s) {<NEW_LINE>switch(s.getType()) {<NEW_LINE>case KEY_AT_KEY:<NEW_LINE>{<NEW_LINE>String key = s.toPropString();<NEW_LINE>MappingNode mappingNode = asMapping(getNode());<NEW_LINE>if (mappingNode != null) {<NEW_LINE>return mappingNode.getValue().stream().filte...
(c.getKeyNode()));
978,469
public void read(FieldBase field, Document doc) {<NEW_LINE>// Verify that we have correct version<NEW_LINE>version = getShort(null);<NEW_LINE>if (version < 8 || version > Document.SERIALIZED_VERSION) {<NEW_LINE>throw new DeserializationException("Unknown version " + version + <MASK><NEW_LINE>}<NEW_LINE>int dataLength =...
", expected " + Document.SERIALIZED_VERSION + ".");
1,806,806
public void renderItemOverlay(Graphics2D graphics, int itemId, WidgetItem widgetItem) {<NEW_LINE>final String group = plugin.getTag(itemId);<NEW_LINE>if (group != null) {<NEW_LINE>final Color color = plugin.getGroupNameColor(group);<NEW_LINE>if (color != null) {<NEW_LINE>Rectangle bounds = widgetItem.getCanvasBounds();...
) bounds.getHeight() + 2;
1,394,561
final CreatePartitionResult executeCreatePartition(CreatePartitionRequest createPartitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPartitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
(super.beforeMarshalling(createPartitionRequest));
1,757,243
void teardown() {<NEW_LINE>if (connectionInFlight != null) {<NEW_LINE>connectionInFlight.disconnect();<NEW_LINE>}<NEW_LINE>if (connectedServer != null) {<NEW_LINE>connectedServer.disconnect();<NEW_LINE>}<NEW_LINE>Optional<Player> connectedPlayer = server.getPlayer(this.getUniqueId());<NEW_LINE>server.unregisterConnecti...
? LoginStatus.SUCCESSFUL_LOGIN : LoginStatus.CONFLICTING_LOGIN;
507,549
public void resultArrived(ByteBuf pBody) throws RpcException {<NEW_LINE>QueryResult queryResult = RpcBus.<MASK><NEW_LINE>QueryId queryId = queryResult.getQueryId();<NEW_LINE>QueryState queryState = queryResult.getQueryState();<NEW_LINE>if (logger.isDebugEnabled()) {<NEW_LINE>logger.debug("resultArrived: queryState: {},...
get(pBody, QueryResult.PARSER);
903,012
public boolean apply(Game game, Ability source) {<NEW_LINE>if (getTargetPointer().getTargets(game, source).size() < 2) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Permanent artifact = game.getPermanent(getTargetPointer().getFirst(game, source));<NEW_LINE>Card card = game.getCard(getTargetPointer().getTargets(game, sou...
Zone.BATTLEFIELD, source, game);
1,794,215
public void check() throws SQLException {<NEW_LINE>super.check();<NEW_LINE>select.<MASK><NEW_LINE>select.setWhereClause(null);<NEW_LINE>String originalQueryString = ClickHouseVisitor.asString(select);<NEW_LINE>List<String> resultSet = ComparatorHelper.getResultSetFirstColumnAsString(originalQueryString, errors, state);...
setGroupByClause(select.getFetchColumns());
1,089,869
public Calc compileCall(ResolvedFunCall call, ExpCompiler compiler) {<NEW_LINE>final Exp[<MASK><NEW_LINE>final List<Calc> calcList = new ArrayList<Calc>();<NEW_LINE>final Calc valueCalc = compiler.compileScalar(args[0], true);<NEW_LINE>calcList.add(valueCalc);<NEW_LINE>final int matchCount = (args.length - 1) / 2;<NEW_...
] args = call.getArgs();
1,791,946
public void execute(@Param("canalId") Long canalId, Context context) throws Exception {<NEW_LINE>Canal canal = canalService.findById(canalId);<NEW_LINE>AutoKeeperCluster zkCluster = autoKeeperClusterService.findAutoKeeperClusterById(canal.getCanalParameter().getZkClusterId());<NEW_LINE>List<Pipeline> pipelines = pipeli...
channel.getId(), channel);
461,289
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not val...
resourceGroupName, accountName, accessPolicyName, context);
289,358
private ControlFlushed createControlFlushed(SIBUuid12 stream) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createControlFlushed", new Object[] { stream });<NEW_LINE>ControlFlushed flushedMsg;<NEW_LINE>// Create new message<NEW_LINE>try ...
flushedMsg.setPriority(SIMPConstants.CTRL_MSG_PRIORITY);
26,915
private Mono<PagedResponse<ClusterResourceInner>> listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,250,119
public BigDecimal computeNetMass(StockMove stockMove, StockMoveLine stockMoveLine, Company company) throws AxelorException {<NEW_LINE>BigDecimal netMass;<NEW_LINE>Product product = stockMoveLine.getProduct();<NEW_LINE>Unit startUnit;<NEW_LINE>Unit endUnit;<NEW_LINE>if (product == null || !product.getProductTypeSelect()...
.getStockConfig().getCustomsMassUnit();
59,210
private void initCards() {<NEW_LINE>card1 = new CardExample(getActivity(), "Header", "Title");<NEW_LINE>cardView1 = (CardViewNative) getActivity().findViewById(R.id.carddemo_card_changevalue_id);<NEW_LINE>cardView1.setCard(card1);<NEW_LINE>card2 = new CardExample2(<MASK><NEW_LINE>cardView2 = (CardViewNative) getActivit...
getActivity(), "Header", "Title");
1,638,900
public final void consumeAcceptedTick(TransactionCommon t, AOValue storedTick) throws Exception {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "consumeAcceptedTick", storedTick);<NEW_LINE>try {<NEW_LINE>SIMPMessage msg = consumerDispatcher.getMessageByValue(storedTi...
exit(tc, "consumeAcceptedTick", e);
645,971
private void initializeProperties(String srcCluster, String dstCluster) {<NEW_LINE>String commitZk = consumerProps.getProperty(Constants.ZK_SERVER, "");<NEW_LINE>topicObserverZk = producerProps.getProperty(Constants.ZK_SERVER, "");<NEW_LINE>// override properties for federated<NEW_LINE>if (workerConf.getFederatedEnable...
"Failed to find commitZk server, property zkServer or commit.zookeeper.connect is required in Consumer config file :" + workerConf.getConsumerConfigFile());
1,132,139
private Object couppcd(Date maturity, Date settlement, double frequency, int basis) {<NEW_LINE>long m = Variant.interval(settlement, maturity, "m");<NEW_LINE>int z = new Double(12 / frequency).intValue();<NEW_LINE>int n = new Long(m / z).intValue();<NEW_LINE>Calendar calendar = Calendar.getInstance();<NEW_LINE>calendar...
add(Calendar.MONTH, z);