idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,114,795
public TColumn toThrift() {<NEW_LINE>TColumn tColumn = new TColumn();<NEW_LINE>tColumn.setColumnName(this.name);<NEW_LINE>TColumnType tColumnType = new TColumnType();<NEW_LINE>tColumnType.setType(this.getDataType().toThrift());<NEW_LINE>tColumnType.setLen(this.getStrLen());<NEW_LINE>tColumnType.setPrecision(this.getPre...
setIndexLen(this.getOlapColumnIndexSize());
1,850,840
private boolean isBetterDistance(MetaMethod currentMethod, MetaMethod methodToStore) {<NEW_LINE>String currentClassName = currentMethod.getDeclaringClass().getName();<NEW_LINE>String toStoreClassName = methodToStore.getDeclaringClass().getName();<NEW_LINE>// In some cases (e.g. #206610) there is the same distance betwe...
.getDeclaringClass().getSuperClassDistance();
1,702,722
private List<NameValueCountPair> listApplicationPair(Business business, EffectivePerson effectivePerson) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Task.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<String> cq = <MASK><NEW_LINE>Root<Task>...
cb.createQuery(String.class);
429,926
public boolean start() {<NEW_LINE>Security.addProvider(new BouncyCastleProvider());<NEW_LINE>// api port, null by default<NEW_LINE>Integer apiPort = IntegrationAPIPort.value();<NEW_LINE>final Long snapshotLimit = ConcurrentSnapshotsThresholdPerHost.value();<NEW_LINE>if (snapshotLimit == null || snapshotLimit.longValue(...
ConcurrentSnapshotsThresholdPerHost.value() + " is less or equal 0; defaulting to unlimited");
1,582,547
public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage:\n" + " DeleteItem <table> <name>\n\n" + "Where:\n" + " table - the table to delete the item from.\n" + " name - the item to delete from the table,\n" + " using the primary key \"Name\"\n\n" + "Example:\n" + " D...
HashMap<String, AttributeValue>();
1,231,093
public void callback(int dwArgc, Pointer lpszArgv) {<NEW_LINE>ServiceControl serviceControl = new ServiceControl();<NEW_LINE>serviceStatusHandle = ADVAPI_32.RegisterServiceCtrlHandlerEx(serviceName, serviceControl, null);<NEW_LINE>reportStatus(Winsvc.SERVICE_START_PENDING, WinError.NO_ERROR, 3000);<NEW_LINE>reportStatu...
WindowsService.class.getClassLoader());
77,153
private void readAllFields(PageCursor cursor) throws IOException {<NEW_LINE>do {<NEW_LINE>creationTimeField = <MASK><NEW_LINE>randomNumberField = getRecordValue(cursor, Position.RANDOM_NUMBER);<NEW_LINE>versionField = getRecordValue(cursor, Position.LOG_VERSION);<NEW_LINE>long lastCommittedTxId = getRecordValue(cursor,...
getRecordValue(cursor, Position.TIME);
988,163
static void swapBuffers(D3DSurfaceData sd, final int x1, final int y1, final int x2, final int y2) {<NEW_LINE>long pData = sd.getNativeOps();<NEW_LINE>D3DRenderQueue rq = D3DRenderQueue.getInstance();<NEW_LINE>// swapBuffers can be called from the toolkit thread by swing, we<NEW_LINE>// should detect this and prevent t...
rq.ensureCapacityAndAlignment(28, 4);
676,861
protected void download(URI uri, Path destination) throws IOException {<NEW_LINE>if (FS.ensureDirectoryExists(destination.getParent()))<NEW_LINE>StartLog.info("mkdir " + _basehome.toShortForm(destination.getParent()));<NEW_LINE>StartLog.info("download %s to %s", uri, _basehome.toShortForm(destination));<NEW_LINE>URLCon...
in, destination, StandardCopyOption.REPLACE_EXISTING);
1,598,185
final UpdateAssessmentTargetResult executeUpdateAssessmentTarget(UpdateAssessmentTargetRequest updateAssessmentTargetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAssessmentTargetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
(super.beforeMarshalling(updateAssessmentTargetRequest));
1,753,851
private void handleSetBlobAcl(HttpServletRequest request, HttpServletResponse response, InputStream is, BlobStore blobStore, String containerName, String blobName) throws IOException, S3Exception {<NEW_LINE>BlobAccess access;<NEW_LINE>String cannedAcl = request.getHeader(AwsHttpHeaders.ACL);<NEW_LINE>if (cannedAcl == n...
response.sendError(HttpServletResponse.SC_BAD_REQUEST);
186,347
final ResetUserPasswordResult executeResetUserPassword(ResetUserPasswordRequest resetUserPasswordRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(resetUserPasswordRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ResetUserPasswordReq...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
170,193
/*<NEW_LINE>* Total hack to load our ManJavacParser, which subclasses Java's JavacParser, but also must override package-private<NEW_LINE>* methods, so is loaded directly into the same classloader as JavacParser.<NEW_LINE>*/<NEW_LINE>private static void loadJavacParserClass() {<NEW_LINE>ClassLoader classLoader = JavacP...
content, 0, content.length);
1,825,707
public boolean extractFrom(@Nonnull EnderGasConduit con, @Nonnull EnumFacing conDir) {<NEW_LINE>NetworkGasTank tank = getTank(con, conDir);<NEW_LINE>if (!tank.isValid() || tank.getExternalTank() == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>GasStack drained = GasUtil.getGasStack(tank.getExternalTank(), conDir.g...
drained.copy(), true);
56,898
public Document toXml(XmlWriterContext writerContext) {<NEW_LINE>DOMElement root = new DOMElement("stage");<NEW_LINE>root.addAttribute("name", stage.getName()).addAttribute("counter", String.valueOf(stage.getCounter()));<NEW_LINE>Document document = new DOMDocument(root);<NEW_LINE>root.addElement("link").addAttribute("...
addText(stage.status());
596,921
public float[] filter(float[] data) {<NEW_LINE>if (mNewCoefficientsAvailable) {<NEW_LINE>mCoefficients = mNewCoefficients;<NEW_LINE>mNewCoefficientsAvailable = false;<NEW_LINE>}<NEW_LINE>int middle = mCoefficients.length / 2;<NEW_LINE>float[] filtered = new float[data.length];<NEW_LINE>int toCopy = middle;<NEW_LINE>Sys...
+ y] * mCoefficients[y];
1,372,155
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Setting IpAddress To Log and taking header for original IP if forwarded from proxy<NEW_LINE>ShepherdLogManager.setRequestIp(request.getRemoteAddr(), request.getHeader("X-Forwarded-For"));<NEW_...
PrintWriter out = response.getWriter();
1,389,729
final DescribeRuleResult executeDescribeRule(DescribeRuleRequest describeRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRuleRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<DescribeRuleRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,174,671
public Map<String, String> generateOptions() {<NEW_LINE>Map<String, String> options = new HashMap<>(16);<NEW_LINE>options.put("format", getFormat());<NEW_LINE>if (this.failOnMissingField != null) {<NEW_LINE>String failOnMissingField = this.failOnMissingField.toString();<NEW_LINE>options.put("json.fail-on-missing-field"...
= this.ignoreParseErrors.toString();
1,116,061
public ApiResponse<Void> testBodyWithFileSchemaWithHttpInfo(FileSchemaTestClass body) throws ApiException {<NEW_LINE>HttpRequest.Builder localVarRequestBuilder = testBodyWithFileSchemaRequestBuilder(body);<NEW_LINE>try {<NEW_LINE>HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(localVarRequestBuild...
).map(), null);
1,352,659
public void watch(final Path file) {<NEW_LINE>// Make a config for the dir above it and<NEW_LINE>// include a match only for the given path<NEW_LINE>// using all defaults for the configuration<NEW_LINE>Path abs = file;<NEW_LINE>if (!abs.isAbsolute()) {<NEW_LINE>abs = file.toAbsolutePath();<NEW_LINE>}<NEW_LINE>// Check ...
Config(abs.getParent());
592,480
private void initMainFragment(String action) {<NEW_LINE>MainFragment mainFragment = getMainFragment();<NEW_LINE>if (mainFragment == null) {<NEW_LINE>Logger.i(MainActivity.this, "initMainFragment called " + action);<NEW_LINE>mainFragment = new MainFragment();<NEW_LINE>// If we're coming here via a click on the Notificat...
mainFragment, MAIN_FRAGMENT_TAG).commit();
1,226,013
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, 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>...
this.client.mergeContext(context);
15,724
public static ListCompliancePacksResponse unmarshall(ListCompliancePacksResponse listCompliancePacksResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCompliancePacksResponse.setRequestId(_ctx.stringValue("ListCompliancePacksResponse.RequestId"));<NEW_LINE>CompliancePacksResult compliancePacksResult = new CompliancePac...
= new ArrayList<CompliancePacksItem>();
652,599
public final <K> Map<K, ?> toMap(Supplier<? extends K> keySupplier1, Supplier<? extends K> keySupplier2, Supplier<? extends K> keySupplier3, Supplier<? extends K> keySupplier4, Supplier<? extends K> keySupplier5, Supplier<? extends K> keySupplier6, Supplier<? extends K> keySupplier7, Supplier<? extends K> keySupplier8,...
keySupplier9.get(), v9);
1,711,141
public PartitionError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PartitionError partitionError = new PartitionError();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<...
String currentParentElement = context.getCurrentParentElement();
837,306
public ListConnectPeersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListConnectPeersResult listConnectPeersResult = new ListConnectPeersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
class).unmarshall(context));
579,797
public void initialize() {<NEW_LINE>// *** initialize table<NEW_LINE>// set renderer for the second column ("Member") do display name of the feature<NEW_LINE>membersTable.setDefaultRenderer(COLUMN_CLASSES[1], new DefaultTableCellRenderer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Component getTableCellRendererCom...
new UIUtilities.BooleanTableCellRenderer(membersTable));
21,103
public static ParseResult<RootAST> parse(String text) {<NEW_LINE>List<ASTParseException> <MASK><NEW_LINE>RootAST root = new RootAST();<NEW_LINE>int lineNo = 0;<NEW_LINE>String[] lines = text.split("[\n\r]");<NEW_LINE>// Collect aliases<NEW_LINE>List<AliasAST> aliases = new ArrayList<>();<NEW_LINE>for (String line : lin...
problems = new ArrayList<>();
793,516
public DownloadAnswer Download(DownloadCommand cmd) {<NEW_LINE>MockSecStorageVO ssvo = null;<NEW_LINE>TransactionLegacy txn = TransactionLegacy.open(TransactionLegacy.SIMULATOR_DB);<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>ssvo = _mockSecStorageDao.<MASK><NEW_LINE>if (ssvo == null) {<NEW_LINE>return new DownloadAn...
findByUrl(cmd.getSecUrl());
850,625
public void paint(Graphics g, Component c) {<NEW_LINE>int x = c.getX();<NEW_LINE>int y = c.getY();<NEW_LINE>int width = c.getWidth();<NEW_LINE>int height = c.getHeight();<NEW_LINE>if (outerBorder != null) {<NEW_LINE>int ac;<NEW_LINE>if (millimeters) {<NEW_LINE>ac = Display.getInstance().convertToPixels(thickness);<NEW_...
height - ac * 2, c);
1,167,664
private void configureButtonBindings() {<NEW_LINE>// Create some buttons<NEW_LINE>final JoystickButton dpadUp = new JoystickButton(m_joystick, 5);<NEW_LINE>final JoystickButton dpadRight = new JoystickButton(m_joystick, 6);<NEW_LINE>final JoystickButton dpadDown = new JoystickButton(m_joystick, 7);<NEW_LINE>final Joyst...
(m_claw, m_wrist, m_elevator));
1,154,162
public static DrdsSqlWithParams outputToParameterizedProxySql(MySqlInsertStatement sqlStatement) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>List<Object> <MASK><NEW_LINE>MySqlExportParameterVisitor parameterVisitor = new MySqlExportParameterVisitor(outputParameters, sb, true) {<NEW_LINE>};<NEW_LINE>para...
outputParameters = new ArrayList<>();
1,259,830
public // testCreateSharedDurableExpiry_B_SecOff<NEW_LINE>void testCreateSharedDurableConsumer_create_Expiry_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextSender = tcfBindings.createContext();<NEW_LINE>JMSContext jmsContextReceiver = tcfBindings.crea...
jmsContextReceiver.createSharedDurableConsumer(topic2_Expiry, "EXPID_B_D_E");
1,093,823
private void visitClassFieldImpl(Concrete.ClassFieldImpl classFieldImpl, List<? super Concrete.ClassFieldImpl> result) {<NEW_LINE>if (classFieldImpl.implementation != null) {<NEW_LINE>classFieldImpl.implementation = classFieldImpl.implementation.accept(this, null);<NEW_LINE>result.add(classFieldImpl);<NEW_LINE>} else {...
Object data = classFieldImpl.getData();
792,826
protected void addCubeGrant(ActionEvent evt) {<NEW_LINE>TreePath tpath = null;<NEW_LINE>Object path = null;<NEW_LINE>tpath = getTreePath(evt);<NEW_LINE>int parentIndex = -1;<NEW_LINE>if (tpath != null) {<NEW_LINE>for (parentIndex = tpath.getPathCount() - 1; parentIndex >= 0; parentIndex--) {<NEW_LINE>final Object p = t...
TreePath parentPath = new TreePath(parentPathObjs);
890,518
void initialize(EncryptableEnvironment environment) {<NEW_LINE>log.info("Initializing Environment: {}", environment.getClass().getSimpleName());<NEW_LINE>InterceptionMode actualInterceptionMode = Optional.ofNullable(interceptionMode).orElse(InterceptionMode.WRAPPER);<NEW_LINE>List<Class<PropertySource<?>>> actualSkipPr...
actualInterceptionMode, actualSkipPropertySourceClasses, actualResolver, actualFilter);
465,424
public static ArrayList<HtWt> initialize() {<NEW_LINE>ArrayList<HtWt> items = new ArrayList<HtWt>();<NEW_LINE>HtWt item = new HtWt(65, 60);<NEW_LINE>items.add(item);<NEW_LINE>item = new HtWt(70, 150);<NEW_LINE>items.add(item);<NEW_LINE>item <MASK><NEW_LINE>items.add(item);<NEW_LINE>item = new HtWt(75, 190);<NEW_LINE>it...
= new HtWt(56, 90);
644,411
private void updatePlaybackPositions() throws ExoPlaybackException {<NEW_LINE>MediaPeriodHolder playingPeriodHolder = queue.getPlayingPeriod();<NEW_LINE>if (playingPeriodHolder == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Update the playback position.<NEW_LINE>long discontinuityPositionUs = playingPeriodHolder.pr...
playingPeriodHolder != queue.getReadingPeriod());
32,709
private ModeImpl createMode(ModeConfig config) {<NEW_LINE>WindowManagerImpl wmi = WindowManagerImpl.getInstance();<NEW_LINE>ModeImpl res = wmi.createMode(config.name, config.kind, config.state, false, config.constraints);<NEW_LINE>Rectangle absBounds = config.bounds == null ? new Rectangle() : config.bounds;<NEW_LINE>R...
res.setFrameState(config.frameState);
1,726,233
public DataArtifact newDataArtifact(BlackboardArtifact.Type artifactType, long sourceObjId, Long dataSourceObjId, Collection<BlackboardAttribute> attributes, Long osAccountObjId, final CaseDbTransaction transaction) throws TskCoreException {<NEW_LINE>if (artifactType.getCategory() != BlackboardArtifact.Category.DATA_AR...
ReviewStatus.UNDECIDED, osAccountObjId, true);
1,310,425
private void recordRequest(SpanRecorder recorder, Object target, Object[] args) {<NEW_LINE>final RpcInvocation invocation = (RpcInvocation) args[0];<NEW_LINE>final RpcContext rpcContext = RpcContext.getContext();<NEW_LINE>// Record rpc name, client address, server address.<NEW_LINE>recorder.recordRpcName(invocation.get...
recordRemoteAddress(rpcContext.getRemoteAddressString());
669,772
public JComponent createComponent(ProjectCustomizer.Category category, Lookup context) {<NEW_LINE>String nm = category.getName();<NEW_LINE>AppClientProjectProperties uiProps = context.lookup(AppClientProjectProperties.class);<NEW_LINE>if (SOURCES.equals(nm)) {<NEW_LINE>return new CustomizerSources(uiProps);<NEW_LINE>} ...
return new CustomizerWSClientHost(uiProps, serviceClientsSettings);
1,769,755
public static UpdateTaxationProcessResponse unmarshall(UpdateTaxationProcessResponse updateTaxationProcessResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateTaxationProcessResponse.setRequestId(_ctx.stringValue("UpdateTaxationProcessResponse.RequestId"));<NEW_LINE>updateTaxationProcessResponse.setDeclareProcessType(_...
("UpdateTaxationProcessResponse.TaxItemDetailList[" + i + "].IsDeclaredThisPeriod"));
395,788
// set up connection defaults, and details from request<NEW_LINE>private static HttpURLConnection createConnection(HttpConnection.Request req) throws IOException {<NEW_LINE>Proxy proxy = req.proxy();<NEW_LINE>final HttpURLConnection conn = (HttpURLConnection) (proxy == null ? req.url().openConnection() : req.url().open...
CookieUtil.applyCookiesToRequest(req, conn);
944,329
// #<Java::long[3]: [1, 2, 0]><NEW_LINE>// #<Java::int[0]: []><NEW_LINE>// #<Java::JavaLang::String[1]: ["foo"]><NEW_LINE>@JRubyMethod<NEW_LINE>public RubyString inspect(ThreadContext context) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>final Class<?> componentClass = getObject().getClass().getComponentTy...
cat(runtime, buf, BEG_BRACKET);
1,342,113
public static String generateFriendlyLookingUserIdentifer(String usernameAssertion, String email) {<NEW_LINE>if (usernameAssertion != null && !usernameAssertion.isEmpty()) {<NEW_LINE>return usernameAssertion;<NEW_LINE>}<NEW_LINE>if (email != null && !email.isEmpty()) {<NEW_LINE>if (email.contains("@")) {<NEW_LINE>Strin...
parts = email.split("@");
125,276
private QueryIterator resultsToQueryIterator(Binding binding, Node subj, Node score, Node literal, Node graph, Node prop, Collection<TextHit> results, ExecutionContext execCxt) {<NEW_LINE>log.trace("resultsToQueryIterator CALLED with results: {}", results);<NEW_LINE>Var sVar = Var.isVar(subj) ? Var.alloc(subj) : null;<...
null : Var.alloc(prop);
1,672,783
public static APICreateDataVolumeFromVolumeTemplateEvent __example__() {<NEW_LINE>APICreateDataVolumeFromVolumeTemplateEvent event = new APICreateDataVolumeFromVolumeTemplateEvent();<NEW_LINE>String volumeUuid = uuid();<NEW_LINE>VolumeInventory vol = new VolumeInventory();<NEW_LINE>vol.setName("test-volume");<NEW_LINE>...
("/zstack_ps/rootVolumes/acct-36c27e8ff05c4780bf6d2fa65700f22e/vol-%s/%s.qcow2", volumeUuid, volumeUuid));
993,165
private void verifyDynamicEditorModel(HighFunction hf, FunctionEditorModel model) {<NEW_LINE>FunctionPrototype functionPrototype = hf.getFunctionPrototype();<NEW_LINE>int decompParamCnt = functionPrototype.getNumParams();<NEW_LINE>List<ParamInfo> parameters = model.getParameters();<NEW_LINE>int modelParamCnt = paramete...
setReturnStorage(functionPrototype.getReturnStorage());
1,303,218
private static void createTable(String tableName, long readCapacityUnits, long writeCapacityUnits, String partitionKeyName, String partitionKeyType, String sortKeyName, String sortKeyType) {<NEW_LINE>try {<NEW_LINE>System.out.println("Creating table " + tableName);<NEW_LINE>ArrayList<KeySchemaElement> ks = new ArrayLis...
(provisionedthroughput).withAttributeDefinitions(attributeDefinitions);
507,336
public InputProcessingConfigurationUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>InputProcessingConfigurationUpdate inputProcessingConfigurationUpdate = new InputProcessingConfigurationUpdate();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
int originalDepth = context.getCurrentDepth();
1,641,316
private void sendBroadcast() {<NEW_LINE>if (name == null) {<NEW_LINE>Log.d(getClass().getName(), "Event name is required");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Class<?> clazz = Class.forName("androidx.localbroadcastmanager.content.LocalBroadcastManager");<NEW_LINE>Method methodGetInstance = clazz.getMethod("getInstance"...
methodSendBroadcast.invoke(localBroadcastManager, event);
1,388,182
// -------------//<NEW_LINE>// renderItems //<NEW_LINE>// -------------//<NEW_LINE>@Override<NEW_LINE>public void renderItems(Graphics2D g) {<NEW_LINE>final Rectangle clip = g.getClipBounds();<NEW_LINE>// Render info attachments<NEW_LINE>Stroke oldStroke = UIUtil.setAbsoluteStroke(g, 1f);<NEW_LINE>for (SlurInfo info : ...
Color oldColor = g.getColor();
56,756
private void populateSecondaryTableData(Object rowId, Object entity, MetamodelImpl metaModel, EntityMetadata metadata) {<NEW_LINE>AbstractManagedType managedType = (AbstractManagedType) metaModel.entity(metadata.getEntityClazz());<NEW_LINE>List<String> secondaryTables = ((DefaultEntityAnnotationProcessor) managedType.g...
builder.toString(), null);
300,284
public static QueryQuotaPlanScheduleResponse unmarshall(QueryQuotaPlanScheduleResponse queryQuotaPlanScheduleResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryQuotaPlanScheduleResponse.setRequestId(_ctx.stringValue("QueryQuotaPlanScheduleResponse.RequestId"));<NEW_LINE>queryQuotaPlanScheduleResponse.setSuccess(_ctx.b...
(_ctx.stringValue("QueryQuotaPlanScheduleResponse.ResultCode"));
1,790,545
private void init(Properties props) {<NEW_LINE>// Use Enumeration instead of iterator because former gets default<NEW_LINE>// values while latter does not.<NEW_LINE>for (Enumeration e = props.propertyNames(); e.hasMoreElements(); ) {<NEW_LINE>String name = (String) e.nextElement();<NEW_LINE>String <MASK><NEW_LINE>if (n...
value = props.getProperty(name);
1,758,524
private void manageNotPatterns(OSelectExecutionPlan result, Pattern pattern, List<OMatchExpression> notMatchExpressions, OCommandContext context, boolean enableProfiling) {<NEW_LINE>for (OMatchExpression exp : notMatchExpressions) {<NEW_LINE>if (pattern.aliasToNode.get(exp.getOrigin().getAlias()) == null) {<NEW_LINE>th...
.getFilter().getAlias();
1,170,476
private String commonPrepareSubscription(Participant participant, String senderPublicId, boolean reconnect, WebrtcDebugEventOperation operation) {<NEW_LINE>String sdpOffer = null;<NEW_LINE>Session session = null;<NEW_LINE>log.debug("Request [SUBSCRIBE] remoteParticipant={} sdpOffer={} ({})", senderPublicId, sdpOffer, p...
sdpOffer = kParticipant.prepareReceiveMediaFrom(senderParticipant);
571,377
public static MySQLDatabaseMetadata parse(String serverVersion) {<NEW_LINE>int majorVersion = 0;<NEW_LINE>int minorVersion = 0;<NEW_LINE>int microVersion = 0;<NEW_LINE><MASK><NEW_LINE>boolean isMariaDb = serverVersion.contains("MariaDB");<NEW_LINE>String productName = isMariaDb ? "MariaDB" : "MySQL";<NEW_LINE>String ve...
int len = serverVersion.length();
224,715
public void execute(DelegateExecution execution) {<NEW_LINE>ExecutionEntity executionEntity = (ExecutionEntity) execution;<NEW_LINE>BoundaryEvent boundaryEvent = (BoundaryEvent) execution.getCurrentFlowElement();<NEW_LINE>Process process = ProcessDefinitionUtil.getProcess(execution.getProcessDefinitionId());<NEW_LINE>i...
execution.getId() + ") could not be found");
93,211
final GetExclusionsPreviewResult executeGetExclusionsPreview(GetExclusionsPreviewRequest getExclusionsPreviewRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getExclusionsPreviewRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
295,958
public static URI eclipseIntroUri(IJavaProject project, IMember member) {<NEW_LINE>try {<NEW_LINE>StringBuilder paramBuilder = new StringBuilder(JAVA_ELEMENT_COMMAND);<NEW_LINE>paramBuilder.append(PARAMETERS_START);<NEW_LINE>paramBuilder.append(BINDING_KEY_PARAMETER_ID);<NEW_LINE>paramBuilder.append(EQUALS);<NEW_LINE>p...
create(urlBuilder.toString());
1,324,100
public boolean contains(@NotNull VirtualFile referenceFile) {<NEW_LINE>VirtualFile referenceDirectory = referenceFile.isDirectory() ? referenceFile : referenceFile.getParent();<NEW_LINE>if (referenceDirectory == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>VirtualFile declarationDirectory = myDeclarationFile.getP...
ObjectUtils.assertNotNull(getProject());
622,574
public static APIRecoverDataVolumeEvent __example__() {<NEW_LINE>APIRecoverDataVolumeEvent event = new APIRecoverDataVolumeEvent();<NEW_LINE>String volumeUuid = uuid();<NEW_LINE>VolumeInventory vol = new VolumeInventory();<NEW_LINE>vol.setName("test-volume");<NEW_LINE>vol.setCreateDate(new Timestamp(org.zstack.header.m...
VolumeStatus.Ready.toString());
1,348,659
public UpdateApnsSandboxChannelResult updateApnsSandboxChannel(UpdateApnsSandboxChannelRequest updateApnsSandboxChannelRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApnsSandboxChannelRequest);<NEW_LINE>AWSRequestMetrics awsReque...
UpdateApnsSandboxChannelRequestMarshaller().marshall(updateApnsSandboxChannelRequest);
270,372
public void init() {<NEW_LINE>MongoClientOptions.Builder options = MongoClientOptions.builder().uuidRepresentation(UuidRepresentation.JAVA_LEGACY);<NEW_LINE>if (!Strings.isNullOrEmpty(this.connectionUri)) {<NEW_LINE>this.mongoClient = new MongoClient(new MongoClientURI(this.connectionUri, options));<NEW_LINE>} else {<N...
credential, options.build());
123,083
public static View createHTMLView(JComponent c, String html) {<NEW_LINE>BasicEditorKit kit = getFactory();<NEW_LINE>Document doc = kit.createDefaultDocument(c.getFont(), c.getForeground());<NEW_LINE>if (c instanceof JLabel) {<NEW_LINE>Object userCss = UIManager.getDefaults().get(JLABEL_USER_CSS_KEY);<NEW_LINE>if (userC...
base = c.getClientProperty(documentBaseKey);
14,173
final DeleteApiKeyResult executeDeleteApiKey(DeleteApiKeyRequest deleteApiKeyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApiKeyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,818,789
// Not using Vaadin notifications (#14597)<NEW_LINE>private void notice(String productName) {<NEW_LINE>if (notice == null) {<NEW_LINE>notice = new HTML();<NEW_LINE>notice.addClickHandler(event -> notice.removeFromParent());<NEW_LINE>notice.addTouchStartHandler(event -> notice.removeFromParent());<NEW_LINE>}<NEW_LINE>St...
s.setProperty("padding", "0.5em 1em");
1,128,391
private void fireDiagnosticData(IMethodResult result) {<NEW_LINE>if (result == null) {<NEW_LINE>Logger.D(TAG, "EMDK fireDiagnosticData result =" + result);<NEW_LINE>} else {<NEW_LINE>if (diagnosticData != null) {<NEW_LINE>HashMap<String, Object> resultMap = new HashMap<String, Object>();<NEW_LINE>resultMap.put(IBattery...
IBatterySingleton.HK_PREVIOUS_BATTERY_REPLACEMENT, diagnosticData.timeSinceBatteryReplaced);
3,170
protected String doIt() throws Exception {<NEW_LINE>log.info("M_DistributionRun_ID=" + p_M_DistributionRun_ID + ", C_DocType_ID=" + p_C_DocType_ID + ", DatePromised=" + p_DatePromised + ", Test=" + p_IsTest);<NEW_LINE>// Distribution Run<NEW_LINE>if (p_M_DistributionRun_ID == 0)<NEW_LINE>throw new IllegalArgumentExcept...
p_M_DistributionRun_ID, false, get_TrxName());
660,704
public static String createIndexString(String table, boolean unique, String... fields) {<NEW_LINE>if (fields == null || fields.length < 1) {<NEW_LINE>throw new IllegalArgumentException("need at least one field to build an index!");<NEW_LINE>}<NEW_LINE>StringBuffer buffer = new StringBuffer();<NEW_LINE>// Index name is ...
.append(fields[i]);
1,657,514
private static void processOutputLimitedLastAllNonBufferedCodegen(String methodName, ResultSetProcessorRowForAllForge forge, CodegenClassScope classScope, CodegenMethod method, CodegenInstanceAux instance) {<NEW_LINE>CodegenExpressionField factory = classScope.addOrGetFieldSharable(ResultSetProcessorHelperFactoryField....
addMember(NAME_OUTPUTALLHELPER, ResultSetProcessorRowForAllOutputAllHelper.EPTYPE);
1,077,655
protected Object convert(ConsumerRecord<?, ?> record, Type type, List<ConversionException> conversionFailures) {<NEW_LINE>try {<NEW_LINE>Object payload = this.recordConverter.toMessage(record, null, null, ((ParameterizedType) type).getActualTypeArguments()[0]).getPayload();<NEW_LINE>conversionFailures.add(null);<NEW_LI...
[]) record.value();
1,532,259
// PMD does not understand Closer<NEW_LINE>@SuppressWarnings("PMD.CloseResource")<NEW_LINE>private <S extends Serializable> S deserializeObject(Path inputFile, Class<S> outputClass) throws BatfishException {<NEW_LINE>Path sanitizedInputFile = validatePath(inputFile);<NEW_LINE>try (Closer closer = Closer.create()) {<NEW...
(sanitizedInputFile.toFile()));
56,735
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.eclipse.jface.dialogs.IDialogPage#createControl(org.eclipse.swt.widgets.Composite)<NEW_LINE>*/<NEW_LINE>public void createControl(Composite parent) {<NEW_LINE>Composite container = new Composite(parent, SWT.NONE);<NEW_LINE>container.setLayout(GridLayoutFactory.swtDefaults...
label.setText(Messages.TemplateSelectionPage_available_templates);
494,782
public DAGNode<Component, Dependency> processNode(@Nonnull DAGNode<Component, Dependency> node, @Nonnull DAGNode<Component, Dependency> original) {<NEW_LINE>Component label = node.getLabel();<NEW_LINE>Satisfaction satisfaction = label.getSatisfaction();<NEW_LINE>if (satisfaction.hasInstance()) {<NEW_LINE>return node;<N...
obj = instantiator.apply(node);
843,814
public static WaveletDescription<WlCoef_F32> biorthogonal_F32(int J, BorderType borderType) {<NEW_LINE>if (J != 5) {<NEW_LINE>throw new IllegalArgumentException("Only 5 is currently supported");<NEW_LINE>}<NEW_LINE>WlCoef_F32 forward = new WlCoef_F32();<NEW_LINE>forward.offsetScaling = -2;<NEW_LINE>forward.offsetWavele...
.scaling = new float[5];
1,788,917
final GetFieldLevelEncryptionConfigResult executeGetFieldLevelEncryptionConfig(GetFieldLevelEncryptionConfigRequest getFieldLevelEncryptionConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFieldLevelEncryptionConfigRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Fie...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,782,932
// ---- Schema ----<NEW_LINE>private void exportSchema(PrintWriter out, ExportConfig config) {<NEW_LINE>List<String> indexesAndConstraints = new ArrayList<>();<NEW_LINE>indexesAndConstraints.addAll(exportIndexes());<NEW_LINE>indexesAndConstraints.addAll(exportConstraints());<NEW_LINE>if (indexesAndConstraints.isEmpty()...
.exportConfig.getAwaitForIndexes()));
185,521
private void markupOatPatches(Program program, OatHeader oatHeader, TaskMonitor monitor, MessageLog log) throws CancelledException {<NEW_LINE>monitor.setMessage("Annotating OAT Patches...");<NEW_LINE>Memory memory = program.getMemory();<NEW_LINE>if (oatHeader.getVersion().equals(OatConstants.VERSION_LOLLIPOP_MR1_FI_REL...
scalar = data.getScalar(0);
1,091,248
public MdmLink createOrUpdateLinkEntity(IBaseResource theGoldenResource, IBaseResource theSourceResource, MdmMatchOutcome theMatchOutcome, MdmLinkSourceEnum theLinkSource, @Nullable MdmTransactionContext theMdmTransactionContext) {<NEW_LINE>Long goldenResourcePid = myJpaIdHelperService.getPidOrNull(theGoldenResource);<...
) | mdmLink.getHadToCreateNewGoldenResource());
366,206
public void contribute(BuildContext context, AotOptions aotOptions) {<NEW_LINE>TypeSystem typeSystem = new TypeSystem(context.getClasspath(<MASK><NEW_LINE>typeSystem.setAotOptions(aotOptions);<NEW_LINE>SpringAnalyzer springAnalyzer = new SpringAnalyzer(typeSystem, aotOptions);<NEW_LINE>springAnalyzer.analyze();<NEW_LIN...
), context.getMainClass());
1,262,670
/*<NEW_LINE>* Retrieve the address of the heap on the device<NEW_LINE>*/<NEW_LINE>public TaskMetaData compileLookupBufferKernel() {<NEW_LINE>TaskMetaData meta = new TaskMetaData(scheduleMeta, OCLCodeCache.LOOKUP_BUFFER_KERNEL_NAME);<NEW_LINE>meta.setDevice(deviceContext.asMapping());<NEW_LINE>OCLCodeCache codeCache = d...
maybePrintSource(result.getTargetCode());
396,214
public void onMatch(RelOptRuleCall call) {<NEW_LINE>final Project project = call.rel(0);<NEW_LINE>final Join topJoin = call.rel(1);<NEW_LINE>final Join bottomJoin = call.rel(2);<NEW_LINE>int leftBottomChildSize = bottomJoin.getLeft().getRowType().getFieldCount();<NEW_LINE>// Check whether the project uses columns in th...
Builder columns = ImmutableBitSet.builder();
474,323
public static Date ceilSeason(Date date, Integer adjust) throws Exception {<NEW_LINE>Calendar cal = DateUtils.toCalendar(date);<NEW_LINE>switch(cal.get(Calendar.MONTH)) {<NEW_LINE>case Calendar.JANUARY:<NEW_LINE>cal.set(Calendar.MONTH, Calendar.MARCH);<NEW_LINE>break;<NEW_LINE>case Calendar.FEBRUARY:<NEW_LINE>cal.set(C...
Calendar.MONTH, Calendar.SEPTEMBER);
478,553
public void execute(Speedment speedment) throws MojoExecutionException, MojoFailureException {<NEW_LINE>getLog().info("Generating code using JSON configuration file: '" + configLocation().toAbsolutePath() + "'.");<NEW_LINE>if (hasConfigFile()) {<NEW_LINE>try {<NEW_LINE>final Project project = speedment.getOrThrow(Proje...
getLog().info("Adding new source location");
1,258,091
public static com.netflix.genie.common.dto.Command toV3Command(final Command v4Command) throws IllegalArgumentException {<NEW_LINE>final CommandMetadata commandMetadata = v4Command.getMetadata();<NEW_LINE>final ExecutionEnvironment resources = v4Command.getResources();<NEW_LINE>final com.netflix.genie.common.dto.Comman...
withClusterCriteria(v4Command.getClusterCriteria());
1,161,413
public HistoricalMetricResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>HistoricalMetricResult historicalMetricResult = new HistoricalMetricResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
1,081,538
public void center() {<NEW_LINE>int windowTop = RootPanel.get().getAbsoluteTop();<NEW_LINE>int windowLeft = RootPanel.get().getAbsoluteLeft();<NEW_LINE>int windowRight = windowLeft + RootPanel<MASK><NEW_LINE>int windowBottom = windowTop + RootPanel.get().getOffsetHeight();<NEW_LINE>int offsetWidth = popup.getOffsetWidt...
.get().getOffsetWidth();
892,855
final void parseStatusParameters() {<NEW_LINE>final AccessMessage message = (AccessMessage) mMessage;<NEW_LINE>mStatusCode = mParameters[0];<NEW_LINE>mStatusCodeName = getStatusCodeName(mStatusCode);<NEW_LINE>mElementAddress = MeshParserUtils.unsignedBytesToInt(mParameters[1], mParameters[2]);<NEW_LINE>publishAddress =...
.unsignedByteToInt(mParameters[8]);
1,712,006
public JsonObject toJsonObject(AbstractProcessInstanceModificationCommand command) {<NEW_LINE>JsonObject json = JsonUtil.createObject();<NEW_LINE>if (command instanceof ActivityAfterInstantiationCmd) {<NEW_LINE>JsonUtil.addField(json, START_AFTER, ((ActivityAfterInstantiationCmd) command).getTargetElementId());<NEW_LIN...
) command).getProcessInstanceId());
421,454
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (controller != null && sourceObject != null) {<NEW_LINE>Permanent permanentLeftBattlefield = (Permanent) getValue("permane...
permanentLeftBattlefield.getZoneChangeCounter(game)));
133,818
private void loadNode5() {<NEW_LINE>UaVariableTypeNode node = new UaVariableTypeNode(this.context, Identifiers.TwoStateVariableType, new QualifiedName(0, "TwoStateVariableType"), new LocalizedText("en", "TwoStateVariableType"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NU...
UInteger[] {}, false);
1,754,195
public static BlockStatement generateFunctionToVectorBatchBody(Function[] functions) {<NEW_LINE>int size = functions.length;<NEW_LINE>BlockBuilder statements = new BlockBuilder();<NEW_LINE>for (int varIndex = 0; varIndex < functions.length; varIndex++) {<NEW_LINE>Function function = functions[varIndex];<NEW_LINE><MASK>...
InnerType type = function.getType();
1,254,772
private boolean handleGET(ReceivedHTTPRequest request, BufferedOutputStream out, final FileFormat format) throws IOException {<NEW_LINE>final int x = request.getPath().lastIndexOf('/');<NEW_LINE>final String compressed = request.getPath().substring(x + 1);<NEW_LINE>final Transcoder transcoder = TranscoderUtil.getDefaul...
imageData, os.toByteArray());
665,422
public MultipleObjectsBundle filter(MultipleObjectsBundle objects) {<NEW_LINE>final int size = objects.dataLength();<NEW_LINE>if (size == 0) {<NEW_LINE>return objects;<NEW_LINE>}<NEW_LINE>MultipleObjectsBundle bundle = new MultipleObjectsBundle();<NEW_LINE>for (int r = 0; r < objects.metaLength(); r++) {<NEW_LINE>@Supp...
StepProgress("Classic MDS", 2) : null;
1,718,228
protected void initASB(AnalysisEngineDescription aAnalysisEngineDescription, Map<String, Object> aAdditionalParams) throws ResourceInitializationException {<NEW_LINE>// add this analysis engine's name to the parameters sent to the ASB<NEW_LINE>Map<String, Object> asbParams = new HashMap<String, Object>(aAdditionalParam...
getMetaData().getName());
1,528,303
public void onEvent(Event e) {<NEW_LINE>if (cbLanguage.getSelectedIndex() == -1) {<NEW_LINE>statusBar.setStatusLine(Msg.getMsg(Env.getCtx(), "LanguageSetupError"), true);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ValueNamePair AD_Language = (ValueNamePair) cbLanguage.getSelectedItem().toValueNamePair();<NEW_LINE>if (AD_Lang...
String directory = directoryDialog.getPath();