idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
173,932
public ObjectInspector init(Mode m, ObjectInspector[] parameters) throws HiveException {<NEW_LINE>super.init(m, parameters);<NEW_LINE>// init output object inspectors<NEW_LINE>// The output of a partial aggregation is a list<NEW_LINE>if (m == Mode.PARTIAL1) {<NEW_LINE>inputOI = parameters[0];<NEW_LINE>return ObjectInsp...
StandardListObjectInspector) ObjectInspectorFactory.getStandardListObjectInspector(inputOI);
622,271
protected void generateComponentLifecycle() {<NEW_LINE>// 1. onCreate:<NEW_LINE>searchAndBuildMethod(AndroidEntryPointConstants.SERVICE_ONCREATE, component, thisLocal);<NEW_LINE>// service has two different lifecycles:<NEW_LINE>// lifecycle1:<NEW_LINE>// 2. onStart:<NEW_LINE>searchAndBuildMethod(AndroidEntryPointConsta...
getUnits().add(onDestroyStmt);
1,105,590
/*<NEW_LINE>* If one of the methods of this ripple was deselected or renamed by<NEW_LINE>* the user, deselect the whole chain and add warnings.<NEW_LINE>*/<NEW_LINE>private boolean checkForWarnings(final Set<Warning> warnings, final String newName, final IMethod[] ripples) {<NEW_LINE>boolean addSelectionWarning = false...
(ripples, addSelectionWarning, addNameWarning));
197,641
void computeCurrentVelocity(int units, float maxVelocity) {<NEW_LINE>final float[] pastX = mPastX;<NEW_LINE>final float[] pastY = mPastY;<NEW_LINE>final long[] pastTime = mPastTime;<NEW_LINE>final float oldestX = pastX[0];<NEW_LINE>final float oldestY = pastY[0];<NEW_LINE>final long oldestTime = pastTime[0];<NEW_LINE>f...
= (accumY + vel) * .5f;
1,010,130
public SecurityGroupIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SecurityGroupIdentifier securityGroupIdentifier = new SecurityGroupIdentifier();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
class).unmarshall(context));
510,056
protected void registerStatesAndModels() {<NEW_LINE>floodlightModel();<NEW_LINE>createConnector(Connectors.getEnergyConnector(WireType.LV_CATEGORY, false), obj("block/connector/connector_lv", rl("block/connector/connector_lv.obj"), ImmutableMap.of("texture", modLoc("block/connector/connector_lv"))), RenderType.solid())...
), RenderType.solid());
331,980
public static void main(String[] args) throws Exception {<NEW_LINE>WordprocessingMLPackage wordMLPackage = Docx4J.load(new java.io.File("manyFootnotes.docx"));<NEW_LINE>MainDocumentPart mdp = wordMLPackage.getMainDocumentPart();<NEW_LINE>// Setup FootnotesPart if necessary,<NEW_LINE>// along with DocumentSettings<NEW_L...
out.println("Cowardly keeping " + i);
420,995
public void draw(GenericCrafterBuild build) {<NEW_LINE>Draw.rect(bottom, build.x, build.y);<NEW_LINE>Drawf.liquid(middle, build.x, build.y, build.warmup, color);<NEW_LINE>if (build.warmup > 0.001f) {<NEW_LINE>rand.setSeed(build.id);<NEW_LINE>for (int i = 0; i < particles; i++) {<NEW_LINE>float offset = rand.nextFloat()...
y + y, fslope * radius);
1,069,853
public void requireAllPermissions(Permission... permissions) throws PermissionDeniedException {<NEW_LINE>for (Permission permission : permissions) {<NEW_LINE>Boolean permitted = permissionDataCache.getCachedPermission(permission);<NEW_LINE>if (permitted != null) {<NEW_LINE>if (!permitted) {<NEW_LINE>Exceptions.e(new Au...
getUsername() : "none", permission);
473,296
public static void main(String[] args) {<NEW_LINE>PackManager.v().getPack("wjpp").add(new Transform("wjpp.inlineReflCalls", new ReflectiveCallsInliner()));<NEW_LINE>final Scene scene = Scene.v();<NEW_LINE>scene.addBasicClass(Object.class.getName());<NEW_LINE>scene.addBasicClass(SootSig.class.getName(), SootClass.BODIES...
getPackage().getImplementationVersion());
355,461
private void initRequestTables() {<NEW_LINE>initReqEntry(OTHER_METHOD, RequestModuleInterface.INBOUND_OTHER, RequestModuleInterface.OUTBOUND_OTHER);<NEW_LINE>initReqEntry(Request.REGISTER, <MASK><NEW_LINE>initReqEntry(Request.INVITE, RequestModuleInterface.INBOUND_INVITE, RequestModuleInterface.OUTBOUND_INVITE);<NEW_LI...
RequestModuleInterface.INBOUND_REGISTER, RequestModuleInterface.OUTBOUND_REGISTER);
421,862
private void initialGroupAssignment(int t, double[][] scratch, int[] gweight) {<NEW_LINE>// Initial means<NEW_LINE>for (int i = 0; i < t; i++) {<NEW_LINE>scratch[i] = means[i].clone();<NEW_LINE>glabel[i] = i;<NEW_LINE>}<NEW_LINE>Arrays.fill(gweight, 1);<NEW_LINE>// remaining points<NEW_LINE>for (int i = t; i < k; i++) ...
(cur, means[j]);
610,233
public ListenableFuture<?> execute(DropColumn statement, TransactionManager transactionManager, Metadata metadata, AccessControl accessControl, Session session, List<Expression> parameters, WarningCollector warningCollector) {<NEW_LINE>QualifiedObjectName tableName = createQualifiedObjectName(session, <MASK><NEW_LINE>O...
statement, statement.getTable());
1,542,743
private void initComponents() {<NEW_LINE>jlAlternativeName = new JLabel(res.getString("DIssuerAlternativeName.jlAlternativeName.text"));<NEW_LINE>GridBagConstraints gbc_jlAlternativeName = new GridBagConstraints();<NEW_LINE>gbc_jlAlternativeName.gridx = 0;<NEW_LINE>gbc_jlAlternativeName.gridy = 1;<NEW_LINE>gbc_jlAltern...
(res.getString("DIssuerAlternativeName.jbCancel.text"));
1,597,752
public <T> List<Pair<String, T>> fetchTop(int size, Type type) throws FailStoreException {<NEW_LINE>Cursor cursor = null;<NEW_LINE>try {<NEW_LINE>List<Pair<String, T>> list = new ArrayList<Pair<String, T>>();<NEW_LINE>cursor = db.openCursor(null, CursorConfig.DEFAULT);<NEW_LINE>DatabaseEntry foundKey = new DatabaseEntr...
, T>(key, value);
177,672
public ExprNode validate(ExprValidationContext validationContext) throws ExprValidationException {<NEW_LINE>this.exprValidationContext = validationContext;<NEW_LINE>if (this.getChildNodes().length != 1) {<NEW_LINE>throw new ExprValidationException("Typeof node must have 1 child expression node supplying the expression ...
getFragmentType().getName());
371,379
public DynamicTableSource createDynamicTableSource(Context context) {<NEW_LINE>final FactoryUtil.TableFactoryHelper helper = FactoryUtil.createTableFactoryHelper(this, context);<NEW_LINE>helper.validate();<NEW_LINE>ResolvedSchema physicalSchema = context.getCatalogTable().getResolvedSchema();<NEW_LINE>ReadableConfig co...
tenantName = config.get(TENANT_NAME);
1,799,879
public ElementLink<BeltItemElement> createItemOnBelt(BlockPos beltLocation, Direction insertionSide, ItemStack stack) {<NEW_LINE>ElementLink<BeltItemElement> link = new <MASK><NEW_LINE>addInstruction(scene -> {<NEW_LINE>PonderWorld world = scene.getWorld();<NEW_LINE>BlockEntity tileEntity = world.getBlockEntity(beltLoc...
ElementLink<>(BeltItemElement.class);
1,311,022
public void draw(Batch batch, float parentAlpha) {<NEW_LINE>boolean focused = hasKeyboardFocus();<NEW_LINE>if (focused != this.focused || (focused && !blinkTask.isScheduled())) {<NEW_LINE>this.focused = focused;<NEW_LINE>blinkTask.cancel();<NEW_LINE>cursorOn = focused;<NEW_LINE>if (focused)<NEW_LINE>Timer.schedule(blin...
!= null ? style.messageFont : font;
1,294,016
public Map<String, Element> processConverters(Set<? extends Element> converters) {<NEW_LINE>Map<String, Element> configurations = new LinkedHashMap<String, Element>();<NEW_LINE>for (Element el : converters) {<NEW_LINE>findConverters(el);<NEW_LINE>if (el instanceof TypeElement) {<NEW_LINE>TypeElement te = (TypeElement) ...
).toString(), te);
1,850,722
final UpdateApprovalRuleTemplateNameResult executeUpdateApprovalRuleTemplateName(UpdateApprovalRuleTemplateNameRequest updateApprovalRuleTemplateNameRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateApprovalRuleTemplateNameRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
619,329
public SQLForeignKeyConstraint parseForeignKey() {<NEW_LINE>accept(Token.FOREIGN);<NEW_LINE>accept(Token.KEY);<NEW_LINE>SQLForeignKeyImpl fk = createForeignKey();<NEW_LINE>accept(Token.LPAREN);<NEW_LINE>this.names(<MASK><NEW_LINE>accept(Token.RPAREN);<NEW_LINE>accept(Token.REFERENCES);<NEW_LINE>fk.setReferencedTableNam...
fk.getReferencingColumns(), fk);
1,369,872
public void testSetGetJMSReplyTo_B_SecOn(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean exceptionFlag = false;<NEW_LINE>JMSContext jmsContext = QCFBindings.createContext();<NEW_LINE><MASK><NEW_LINE>jmsProducer.setJMSReplyTo(replyQ);<NEW_LINE>TextMessage msg = jmsContext.cr...
JMSProducer jmsProducer = jmsContext.createProducer();
1,102,889
public CertificateValidationRecord unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CertificateValidationRecord certificateValidationRecord = new CertificateValidationRecord();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
class).unmarshall(context));
674,217
public static void validateJsonObject(JsonObject jsonObj) throws IOException {<NEW_LINE>if (jsonObj == null) {<NEW_LINE>if (FileSchemaTestClass.openapiRequiredFields.isEmpty()) {<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>// has required fields<NEW_LINE>throw new IllegalArgumentException(String.format("The required fi...
(jsonObj.getAsJsonObject("file"));
1,791,155
public DatabaseDataType toDatabaseDataType(Database database) {<NEW_LINE>if (database instanceof MSSQLDatabase) {<NEW_LINE>Object[] parameters = getParameters();<NEW_LINE>if (parameters.length == 0) {<NEW_LINE>parameters = new Object[] { 18, 0 };<NEW_LINE>} else if (parameters.length == 1) {<NEW_LINE>parameters = new O...
DatabaseDataType("NUMBER", getParameters());
1,733,291
public static void replaceExpressionForDuplicateKeyUpdate(LogicalInsert upsert, ExecutionContext ec) {<NEW_LINE>final LogicalDynamicValues input = RelUtils.getRelInput(upsert);<NEW_LINE>final ImmutableList<RexNode> rexRow = input.getTuples().get(0);<NEW_LINE>final List<String> insertColumns = input.getRowType().getFiel...
.getRowType().getFieldNames();
367,242
public void use_BF(World world, PlayerEntity entityhuman, Hand enumhand, CallbackInfoReturnable<TypedActionResult> ci) {<NEW_LINE>BlockHitResult movingobjectpositionblock = raycast(world, entityhuman, this.fluid == Fluids.EMPTY ? RaycastContext.FluidHandling.NONE : RaycastContext.FluidHandling.ANY);<NEW_LINE>BlockHitRe...
entityhuman.getStackInHand(enumhand)));
793,200
public SpotPlacement unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>SpotPlacement spotPlacement = new SpotPlacement();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_L...
XMLEvent xmlEvent = context.nextEvent();
1,469,331
private static void runSequential(int size) {<NEW_LINE>long[] input = init(size);<NEW_LINE>long[] outputA = new long[size];<NEW_LINE>long[] outputB = new long[size];<NEW_LINE>long[] outputC = new long[size];<NEW_LINE>long[] outputD = new long[size];<NEW_LINE>long[] outputE = new long[size];<NEW_LINE>// Sequential<NEW_L...
long start = System.nanoTime();
802,396
private void initialize() {<NEW_LINE>locationTF.setPreferredSize(new Dimension(360, 30));<NEW_LINE>locationTF.setText(System.getProperty("user.home"));<NEW_LINE>locationTF.setEditable(false);<NEW_LINE>browseBtn.setText(FontUtils.elegantIconHtml("&#x6e;", MessageUtils.getLocalizedMessage("button.browse")));<NEW_LINE>bro...
clearBtn.addActionListener(listeners::clearDataDir);
420,279
static CompletableFuture<byte[]> signTypedData(JSONObject data, ECKeyPair keyPair) {<NEW_LINE>CompletableFuture<byte[]> future = new CompletableFuture<>();<NEW_LINE>try {<NEW_LINE>System.out.println(data.toString());<NEW_LINE>StructuredDataEncoder encoder = new StructuredDataEncoder(data.toString());<NEW_LINE>byte[] me...
] s = signed.getS();
1,400,940
private void initOptions(DefaultCodeFormatterOptions defaultCodeFormatterOptions, Map<String, String> options) {<NEW_LINE>if (options != null) {<NEW_LINE>this.originalOptions = new DefaultCodeFormatterOptions(options);<NEW_LINE>this.workingOptions = new DefaultCodeFormatterOptions(options);<NEW_LINE>this.oldCommentForm...
.get(JavaCore.COMPILER_PB_ENABLE_PREVIEW_FEATURES));
1,089,637
// Use breadth first search to find methods are called more than once in call graph<NEW_LINE>private void finder1(PegCallGraph pcg) {<NEW_LINE><MASK><NEW_LINE>Iterator it = pcg.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>Object head = it.next();<NEW_LINE>// breadth first scan<NEW_LINE>Set<Object> gray = new Ha...
Set clinitMethods = pcg.getClinitMethods();
1,612,998
public void handle(MigratingInstanceParseContext parseContext, MigratingActivityInstance activityInstance, List<JobEntity> elements) {<NEW_LINE>Map<String, TimerDeclarationImpl> sourceTimerDeclarationsInEventScope = TimerDeclarationImpl.<MASK><NEW_LINE>Map<String, TimerDeclarationImpl> targetTimerDeclarationsInEventSco...
getDeclarationsForScope(activityInstance.getSourceScope());
460,242
private void queueTasks(final List<ImageSaveTask> tasks, final String folder) {<NEW_LINE>totalTasks = 0;<NEW_LINE>for (ImageSaveTask task : tasks) {<NEW_LINE>PostImage postImage = task.getPostImage();<NEW_LINE>String name = ChanSettings.saveOriginalFilename.get() ? postImage.originalName : postImage.filename;<NEW_LINE>...
name + "." + postImage.extension);
249,515
private static final HllSketch downsample(final HllSketch candidate, final int tgtLgK) {<NEW_LINE>final AbstractHllArray candArr = (AbstractHllArray) candidate.hllSketchImpl;<NEW_LINE>final HllArray tgtHllArr = HllArray.<MASK><NEW_LINE>final PairIterator candItr = candArr.iterator();<NEW_LINE>while (candItr.nextValid()...
newHeapHll(tgtLgK, TgtHllType.HLL_8);
1,038,835
Optional<ImagesAndRegistryClient> tryMirrors(BuildContext buildContext, ProgressEventDispatcher.Factory progressDispatcherFactory) throws LayerCountMismatchException, BadContainerConfigurationFormatException {<NEW_LINE>EventHandlers eventHandlers = buildContext.getEventHandlers();<NEW_LINE>Collection<Map.Entry<String, ...
newBaseImageRegistryClientFactory(mirror).newRegistryClient();
680,474
private void minCountBuild() {<NEW_LINE>int min = TagV2.getMinCount();<NEW_LINE>DefaultDialogs.Builder builder <MASK><NEW_LINE>builder.setActual(min).setMax(100).setMin(2);<NEW_LINE>builder.setYesbtn(R.string.ok).setNobtn(R.string.cancel);<NEW_LINE>builder.setTitle(R.string.set_minimum_count).setDialogs(new DefaultDial...
= new DefaultDialogs.Builder(this);
1,143,808
private JPanel buildConfigPanel() {<NEW_LINE>scopeDropdownLabel.setToolTipText(CheckStyleBundle.message("config.scanscope.tooltip"));<NEW_LINE>scopeDropdown.setToolTipText(CheckStyleBundle.message("config.scanscope.tooltip"));<NEW_LINE>suppressErrorsCheckbox.setText(CheckStyleBundle.message("config.suppress-errors.chec...
(CheckStyleBundle.message("config.suppress-errors.checkbox.tooltip"));
1,818,878
private static ConfigModel range(ConfigDef.ConfigKey key, ConfigModel descriptor) {<NEW_LINE>String str = key.validator.toString();<NEW_LINE>try {<NEW_LINE>Pattern rangePattern = Pattern.compile("\\[([0-9.e+-]+|\\.\\.\\.),?([0-9.e+-]+|\\.\\.\\.)?,?([0-9.e+-]+|\\.\\.\\.)?\\]", Pattern.CASE_INSENSITIVE);<NEW_LINE>Matcher...
matcher = rangePattern.matcher(str);
932,829
public boolean execute() {<NEW_LINE>PreviewController controller = Lookup.getDefault().lookup(PreviewController.class);<NEW_LINE>controller.getModel(workspace).getProperties().putValue(PreviewProperty.VISIBILITY_RATIO, 1.0);<NEW_LINE>controller.refreshPreview(workspace);<NEW_LINE>PreviewProperties props = controller.ge...
TranscoderOutput output = new TranscoderOutput(writer);
1,292,316
public boolean contains(Vector v, int radius) {<NEW_LINE>if (p1.x == p2.x)<NEW_LINE>return Math.abs(p1.x - v.x) < radius && ((p1.y - radius < v.y && v.y < p2.y + radius) || (p2.y - radius < v.y && v.y < p1.y + radius));<NEW_LINE>else if (p1.y == p2.y)<NEW_LINE>return Math.abs(p1.y - v.y) < radius && ((p1.x - radius < v...
d.y * d.y);
890,775
public void collectGaugeValues(List<GaugeValue> gaugeValues) throws InterruptedException {<NEW_LINE>final GaugeValueMessage gaugeValueMessage = GaugeValueMessage.newBuilder().setAgentId(agentId).addAllGaugeValue(gaugeValues).setPostV09(true).build();<NEW_LINE>centralConnection.blockingCallWithAFewRetries(new GrpcCall<G...
collectorServiceStub.collectGaugeValues(gaugeValueMessage, responseObserver);
174,783
private void checkIfRefactorableMutation(TreePath currentTreePath, IdentifierTree that) {<NEW_LINE>Tree parent = currentTreePath.getParentPath().getLeaf();<NEW_LINE>TreePath parentOfParentPath = currentTreePath.getParentPath().getParentPath();<NEW_LINE>Tree parentOfParent = parentOfParentPath.getLeaf();<NEW_LINE>if ((i...
.getParentPath().getLeaf();
1,405,252
public void run(RegressionEnvironment env) {<NEW_LINE>// External clocking<NEW_LINE>sendTimer(0, env);<NEW_LINE>// Set up a timer:within<NEW_LINE>env.compileDeploy("@name('s0') select a.theString as id from pattern [every a=SupportBean -> timer:interval(intPrimitive seconds)]");<NEW_LINE>env.addListener("s0");<NEW_LINE...
new SupportBean("E1", 3));
644,518
private SpanBuilder createSpanBuilder(String spanName, SpanContext remoteParentContext, SpanKind spanKind, Map<String, Object> beforeSaplingAttributes, Context context) {<NEW_LINE>String spanNameKey = getOrNull(context, USER_SPAN_NAME_KEY, String.class);<NEW_LINE>if (spanNameKey == null) {<NEW_LINE>spanNameKey = spanNa...
context.Context.current());
1,460,690
// --------------------------------------------<NEW_LINE>@Metadata(description = "Constructs an n-point circle from a 2-point line giving the radius")<NEW_LINE>public static Geometry circleByRadiusLine(Geometry radiusLine, @Metadata(title = "Number of vertices") int nPts) {<NEW_LINE>Coordinate[] radiusPts = radiusLine....
nPts] = radiusPt.copy();
1,667,097
public static void preCheck(IFixInfo fixInfo, File baseDir) throws InstallException {<NEW_LINE>Set<UpdatedFile> updatedFiles = fixInfo.getUpdates().getFiles();<NEW_LINE>for (UpdatedFile file : updatedFiles) {<NEW_LINE>File filePath = new File(baseDir, file.getId());<NEW_LINE>isFileLocked(fixInfo.getId(), filePath);<NEW...
.getVersion() + ".lpmf"));
134,835
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see javax.resource.spi.ResourceAdapter#endpointActivation(javax.resource.spi.endpoint.MessageEndpointFactory, javax.resource.spi.ActivationSpec)<NEW_LINE>*/<NEW_LINE>public void endpointActivation(MessageEndpointFactory msgEndpointFac, ActivationSpec activationSpec) th...
"prop1: " + aSpec.getProp1());
54,169
private void encode(Codecs codecs, int iterations, Blackhole voodoo) {<NEW_LINE>for (int i = 0; i < iterations; i++) {<NEW_LINE>voodoo.consume(codecs.encode((short) 12));<NEW_LINE>voodoo.consume(codecs.encode(35698));<NEW_LINE>voodoo.consume(codecs.encode(-256.3698));<NEW_LINE>voodoo.consume(codecs.encode(85.7458f));<N...
(LocalDateTime.now()));
1,169,979
final DeleteStudioResult executeDeleteStudio(DeleteStudioRequest deleteStudioRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteStudioRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<DeleteStudioRequest> ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
936,571
public int compareTo(GlobalStreamId other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = Boolean.valueOf(is_set_componentId()).compareTo(other.is_set_componentId());...
this.streamId, other.streamId);
959,124
protected void applyUserDataIfNeeded(long vmId, Network network, Nic guestNic) throws ResourceUnavailableException {<NEW_LINE>UserDataServiceProvider element = null;<NEW_LINE>try {<NEW_LINE>element = _networkModel.getUserDataUpdateProvider(network);<NEW_LINE>} catch (UnsupportedServiceException ex) {<NEW_LINE>s_logger....
VirtualMachineProfile vmProfile = new VirtualMachineProfileImpl(vm);
1,097,638
public static FeedbackSessionAttributes valueOf(FeedbackSession fs) {<NEW_LINE>FeedbackSessionAttributes feedbackSessionAttributes = new FeedbackSessionAttributes(fs.getFeedbackSessionName(), fs.getCourseId());<NEW_LINE>feedbackSessionAttributes.creatorEmail = fs.getCreatorEmail();<NEW_LINE>if (fs.getInstructions() != ...
.isOpeningEmailEnabled = fs.isOpeningEmailEnabled();
365,095
public StateMachineContext<S, E> read(Kryo kryo, Input input, Class<StateMachineContext<S, E>> clazz) {<NEW_LINE>E event = (E) kryo.readClassAndObject(input);<NEW_LINE>S state = (S) kryo.readClassAndObject(input);<NEW_LINE>Map<String, Object> eventHeaders = (Map<String, Object>) kryo.readClassAndObject(input);<NEW_LINE...
>) kryo.readClassAndObject(input);
318,180
public Void visitInformationFunction(InformationFunction node, Scope context) {<NEW_LINE>String funcType = node.getFuncType();<NEW_LINE>if (funcType.equalsIgnoreCase("DATABASE") || funcType.equalsIgnoreCase("SCHEMA")) {<NEW_LINE>node.setType(Type.VARCHAR);<NEW_LINE>node.setStrValue(ClusterNamespace.getNameFromFullName(...
getCurrentUserIdentity().toString());
129,845
public static DescribeRoomListResponse unmarshall(DescribeRoomListResponse describeRoomListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRoomListResponse.setRequestId(_ctx.stringValue("DescribeRoomListResponse.RequestId"));<NEW_LINE>describeRoomListResponse.setTotalPage(_ctx.integerValue("DescribeRoomListRespo...
= new ArrayList<Room>();
1,442,213
public void testCreateTextMessage_TCP_SecOff(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JMSContext jmsContext = jmsQCFTCP.createContext();<NEW_LINE>emptyQueue(jmsQCFTCP, queue);<NEW_LINE>String msgText = "Hello this is a test case for TextMessage ";<NEW_LINE><MASK><NEW_LINE>ms...
TextMessage msg = jmsContext.createTextMessage();
352,399
final UpdateAssetResult executeUpdateAsset(UpdateAssetRequest updateAssetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateAssetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,120,148
protected OracleIndex convertIndex(Map<String, Object> recordMap) {<NEW_LINE>OracleIndex index = new OracleIndex();<NEW_LINE>index.setSchema(safeToString(recordMap.get("OWNER")));<NEW_LINE>index.setName(safeToString(recordMap.get("INDEX_NAME")));<NEW_LINE>index.setIndexType(OracleIndexType.valueOfCode(safeToString(reco...
.get("CONSTRAINT_TYPE"))));
1,346,732
public Root login(Root inRoot) throws WIMException {<NEW_LINE>Root root = new Root();<NEW_LINE>if (data != null) {<NEW_LINE>LoginAccount person = (LoginAccount) inRoot.getEntities().get(0);<NEW_LINE>String principalName = person.getPrincipalName();<NEW_LINE>byte[] password = person.getPassword();<NEW_LINE>if ((password...
WIMMessageKey.MISSING_OR_EMPTY_PRINCIPAL_NAME, WIMMessageKey.MISSING_OR_EMPTY_PRINCIPAL_NAME);
589,976
public ApiResponse<MySchemaNameCharacters> testPostWithHttpInfo(MySchemaNameCharacters mySchemaNameCharacters) throws ApiException {<NEW_LINE>Object localVarPostBody = mySchemaNameCharacters;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/test";<NEW_LINE>// query params<NEW_LINE>List<Pair> l...
= new ArrayList<Pair>();
538,432
String generate() {<NEW_LINE>String generatedClassName = "io.quarkus.spring.web.mappers." + exceptionDotName.withoutPackagePrefix() + "_Mapper_" + HashUtil.<MASK><NEW_LINE>String exceptionClassName = exceptionDotName.toString();<NEW_LINE>try (ClassCreator cc = ClassCreator.builder().classOutput(classOutput).className(g...
sha1(exceptionDotName.toString());
209,828
Mono<Response<PageBlobItem>> createWithResponse(PageBlobCreateOptions options, Context context) {<NEW_LINE>StorageImplUtils.assertNotNull("options", options);<NEW_LINE>BlobRequestConditions requestConditions = options.getRequestConditions() == null ? new BlobRequestConditions() : options.getRequestConditions();<NEW_LIN...
== null ? Context.NONE : context;
1,545,334
public BlazeBuildOutputs run(Project project, BlazeCommand.Builder blazeCommandBuilder, BuildResultHelper buildResultHelper, WorkspaceRoot workspaceRoot, BlazeContext context) {<NEW_LINE>int retVal = ExternalTask.builder(workspaceRoot).addBlazeCommand(blazeCommandBuilder.build()).context(context).stderr(LineProcessingO...
buildResult, buildResultHelper.getBuildOutput());
1,228,974
public static Pair<Integer, Integer> sequenceSlicing(String slice) {<NEW_LINE>int ind = slice.indexOf(':');<NEW_LINE>if (ind < 0) {<NEW_LINE>int i = Integer.parseInt(slice.trim());<NEW_LINE>if (i >= 0) {<NEW_LINE>return new <MASK><NEW_LINE>} else {<NEW_LINE>return new Pair<>(i, 0);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>String...
Pair<>(0, i);
1,808,356
public ExitCode runWithoutHelp(CommandRunnerParams params) throws Exception {<NEW_LINE>if (arguments.isEmpty()) {<NEW_LINE>throw new CommandLineException("no cache keys specified");<NEW_LINE>}<NEW_LINE>List<RuleKey> ruleKeys = arguments.stream().map(RuleKey::new).collect(Collectors.toList());<NEW_LINE>CacheDeleteResult...
deleteAsync(ruleKeys).get();
12,295
final GetBundlesResult executeGetBundles(GetBundlesRequest getBundlesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBundlesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
endClientExecution(awsRequestMetrics, request, response);
916,932
// Zoom in on double tap<NEW_LINE>@Override<NEW_LINE>public boolean onDoubleTap(MotionEvent e) {<NEW_LINE>final GlobeController gc = globeControl;<NEW_LINE>final RendererWrapper wrap = (gc != null) ? gc.renderWrapper : null;<NEW_LINE>final RenderController render = (wrap != null) ? wrap.getMaplyRender() : null;<NEW_LIN...
getY(), globeView.northUp);
654,436
final DescribeVpcAttributeResult executeDescribeVpcAttribute(DescribeVpcAttributeRequest describeVpcAttributeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVpcAttributeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
1,402,515
public static List<Tuple2<Double, ConfusionMatrix>> filterCloseEntries(List<Tuple2<Double, ConfusionMatrix>> threshCMs, int limit) {<NEW_LINE>int n = threshCMs.size();<NEW_LINE>if (n <= limit) {<NEW_LINE>return threshCMs;<NEW_LINE>}<NEW_LINE>int toRemove = n - limit;<NEW_LINE>// Maintain a double-linked list to store t...
] prev = new int[n];
1,180,351
final StartSessionResult executeStartSession(StartSessionRequest startSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,409,520
public static DescribeEcsListPageResponse unmarshall(DescribeEcsListPageResponse describeEcsListPageResponse, UnmarshallerContext context) {<NEW_LINE>describeEcsListPageResponse.setRequestId(context.stringValue("DescribeEcsListPageResponse.RequestId"));<NEW_LINE>describeEcsListPageResponse.setModule(context.stringValue...
("DescribeEcsListPageResponse.DataList[" + i + "].InstanceId"));
1,133,452
final ListUpdatesResult executeListUpdates(ListUpdatesRequest listUpdatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUpdatesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,445,138
public static void selectUserFlair(Retrofit oauthRetrofit, String accessToken, UserFlair userFlair, String subredditName, String accountName, SelectUserFlairListener selectUserFlairListener) {<NEW_LINE>Map<String, String> params = new HashMap<>();<NEW_LINE>params.put(<MASK><NEW_LINE>params.put(APIUtils.FLAIR_TEMPLATE_I...
APIUtils.API_TYPE_KEY, APIUtils.API_TYPE_JSON);
1,290,229
public Map<Integer, ParameterContext> buildParams() {<NEW_LINE>Map<Integer, ParameterContext> params = new HashMap<>(22);<NEW_LINE>int index = 0;<NEW_LINE>MetaDbUtil.setParameter(++index, params, ParameterMethod.setString, this.tableSchema);<NEW_LINE>MetaDbUtil.setParameter(++index, params, ParameterMethod.setString, t...
ParameterMethod.setInt, this.broadcast);
808,123
public static DragstrParams of(final int maxPeriod, final int maxRepeats, final double[][] gop, final double[][] gcp, final double[][] api, final String name) {<NEW_LINE>ParamUtils.isPositive(maxPeriod, "max period must be a positive");<NEW_LINE>ParamUtils.isPositive(maxRepeats, "max repeats must be a positive");<NEW_L...
, "bad gcp value: " + gcpRow[j]);
404,811
private Statement convertStatement(JCStatement jcStatement) {<NEW_LINE>switch(jcStatement.getKind()) {<NEW_LINE>case ASSERT:<NEW_LINE>return convertAssert((JCAssert) jcStatement);<NEW_LINE>case BLOCK:<NEW_LINE>return convertBlock((JCBlock) jcStatement);<NEW_LINE>case BREAK:<NEW_LINE>return convertBreak((JCBreak) jcStat...
return convertEnhancedForLoop((JCEnhancedForLoop) jcStatement);
740,617
private /*<NEW_LINE>@Override<NEW_LINE>public void paint(Graphics g) {<NEW_LINE>super.paint(g);<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>drawDecoration(g2d);<NEW_LINE>g2d.setColor(new Color(0, 128, 128, 128));<NEW_LINE>g2d.drawRoundRect(3, 3, getWidth() - 7, getHeight() - 7, 5, 5);<NEW_LINE>}<NEW_LINE>*/<NEW_...
int) (_similarity * 100));
534,080
protected void reAssociate(TransactionImpl txn) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "reAssociate", txn);<NEW_LINE>// If it was imported we need to properly reAssociate<NEW_LINE>// otherwise we just need to resume<NEW_LINE>if (txn.isRAImport()) {<NEW_LINE>// Dummy up an Execution context<NEW_LINE><...
final ExecutionContext ec = new ExecutionContext();
230,828
public void run(RegressionEnvironment env) {<NEW_LINE>String stmtText = "@name('s0') select (select p10 from SupportBean_S1#length(100000) where s0.id = id and p10 = s0.p00) as value from SupportBean_S0 as s0";<NEW_LINE>env.compileDeployAddListenerMileZero(stmtText, "s0");<NEW_LINE>// preload with 10k events<NEW_LINE>f...
long endTime = System.currentTimeMillis();
534,273
public void drawU(UGraphic ug) {<NEW_LINE>final double thickness = ug.getParam().getStroke().getThickness();<NEW_LINE>final <MASK><NEW_LINE>final double lineHeight = 4 + thickness - 1;<NEW_LINE>final int xWing = 4;<NEW_LINE>final AffineTransform rotate = AffineTransform.getRotateInstance(this.angle);<NEW_LINE>Point2D m...
double radius = 4 + thickness - 1;
636,884
public void spawnBucketWheelFX(BucketWheelTileEntity tile, ItemStack stack) {<NEW_LINE>if (stack != null && IEServerConfig.MACHINES.excavator_particles.get()) {<NEW_LINE>Direction facing = tile.getFacing();<NEW_LINE>int sign = (tile.getIsMirrored() ^ facing.getAxisDirection() == AxisDirection<MASK><NEW_LINE>double x = ...
.NEGATIVE) ? 1 : -1;
396,248
private static ArrayMap<String, LoggablePref> loadPrefKeys(Context context) {<NEW_LINE>XmlPullParser parser = context.getResources().getXml(R.xml.launcher_preferences);<NEW_LINE>ArrayMap<String, LoggablePref> result = new ArrayMap<>();<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>final int depth = parser.getDepth();<NEW_LIN...
AutoInstallsLayout.beginDocument(parser, ROOT_TAG);
2,621
public static JerseyReplicationClient createReplicationClient(EurekaServerConfig config, ServerCodecs serverCodecs, String serviceUrl) {<NEW_LINE>String name = JerseyReplicationClient.class.getSimpleName() + ": " + serviceUrl + "apps/: ";<NEW_LINE>EurekaJerseyClient jerseyClient;<NEW_LINE>try {<NEW_LINE>String hostname...
logger.warn("Cannot find localhost ip", e);
111,823
public List<ConjunctionHit> search(PredicateQuery query) {<NEW_LINE>List<ConjunctionHit> <MASK><NEW_LINE>int uniqueKeys = (int) query.getFeatures().stream().map(e -> e.key).distinct().count();<NEW_LINE>for (int k = uniqueKeys; k >= 0; k--) {<NEW_LINE>List<ConjunctionIdIterator> iterators = new ArrayList<>();<NEW_LINE>g...
conjunctionHits = new ArrayList<>();
965,324
private void insertInterpolatedTransfer(Label label, GtfsStorage.PlatformDescriptor toPlatformDescriptor, HashMap<String, GtfsReader> readers) {<NEW_LINE>GtfsReader toFeedReader = readers.get(toPlatformDescriptor.feed_id);<NEW_LINE>List<Integer> transferEdgeIds = toFeedReader.insertTransferEdges(label.node.ptNode, (int...
NodeId adjNode = t.label.node;
172,070
protected Object call() throws Exception {<NEW_LINE>WanReplicationConfig wanConfig = new WanReplicationConfig();<NEW_LINE>wanConfig.setName(parameters.name);<NEW_LINE>WanBatchPublisherConfig publisherConfig = new WanBatchPublisherConfig();<NEW_LINE><MASK><NEW_LINE>publisherConfig.setClusterName(parameters.targetCluster...
publisherConfig.setPublisherId(parameters.publisherId);
43,359
private void handleIdentifier(Tree node, Name id) {<NEW_LINE><MASK><NEW_LINE>String nn = id.toString();<NEW_LINE>if (nn.equals(name)) {<NEW_LINE>Element res = copy.getTrees().getElement(getCurrentPath());<NEW_LINE>if (res != null && res == shadowed) {<NEW_LINE>if (res.getModifiers().contains(Modifier.STATIC)) {<NEW_LIN...
TreeMaker mk = copy.getTreeMaker();
1,774,413
final CreateSecurityGroupResult executeCreateSecurityGroup(CreateSecurityGroupRequest createSecurityGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSecurityGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(createSecurityGroupRequest));
102,863
protected Role loadRoleByKey(String key) throws DotDataException {<NEW_LINE>Role r = null;<NEW_LINE>r = rc.get(key);<NEW_LINE>if (r == null) {<NEW_LINE>HibernateUtil hu = new HibernateUtil(Role.class);<NEW_LINE>hu.setQuery("from com.dotmarketing.business.Role where role_key = ?");<NEW_LINE>hu.setParam(key);<NEW_LINE>r ...
(Role) hu.load();
476,386
public static String twipToBest(int leftL) {<NEW_LINE>float inch4f = 80 * twipToInch(leftL);<NEW_LINE>float inch4fabit = inch4f + 0.49f;<NEW_LINE>int <MASK><NEW_LINE>int inch4next = Math.round(inch4fabit);<NEW_LINE>float inches = twipToInch(leftL);<NEW_LINE>if (inch4 == inch4next) {<NEW_LINE>log.debug(leftL + " twips -...
inch4 = Math.round(inch4f);
363,787
protected void generateMap(JDefinedClass mapClass, MapTemplateSpec mapSpec) throws JClassAlreadyExistsException {<NEW_LINE>final JClass valueJClass = generate(mapSpec.getValueClass());<NEW_LINE>final JClass dataJClass = generate(mapSpec.getValueDataClass());<NEW_LINE>final boolean isDirect = CodeUtil.isDirectType(mapSp...
getSchema().getValues());
571,497
public static List<CAddressSpace> loadAddressSpaces(final AbstractSQLProvider provider, final INaviProject project, final DebuggerTemplateManager debuggerManager, final List<INaviModule> list) throws CouldntLoadDataException {<NEW_LINE>checkArguments(provider, project);<NEW_LINE>Preconditions.checkNotNull(debuggerManag...
modificationDate = resultSet.getTimestamp("modification_date");
175,982
void canAddTagsToResource(final String api, final String id, final String name, final RestDocumentationFilter addFilter, final RestDocumentationFilter getFilter) throws Exception {<NEW_LINE>RestAssured.given(this.requestSpecification).when().port(this.port).get(api, id).then().statusCode(Matchers.is(HttpStatus.OK.value...
.NO_CONTENT.value()));
1,286,509
public DoubleMatrix1D zMult(DoubleMatrix1D y, DoubleMatrix1D z, double alpha, double beta, boolean transposeA) {<NEW_LINE>if (transposeA) {<NEW_LINE>return viewDice().zMult(y, <MASK><NEW_LINE>}<NEW_LINE>// boolean ignore = (z==null);<NEW_LINE>if (z == null) {<NEW_LINE>z = new DenseDoubleMatrix1D(this.rows);<NEW_LINE>}<...
z, alpha, beta, false);
265,813
private Index consolidateIndices(List<Index> indices) {<NEW_LINE>Index first = indices.get(0);<NEW_LINE>Index consolidated = new <MASK><NEW_LINE>consolidated.setRankType(first.getRankType());<NEW_LINE>consolidated.setType(first.getType());<NEW_LINE>for (Index current : indices) {<NEW_LINE>if (current.isPrefix()) {<NEW_...
Index(first.getName());
893,930
final GetDevicePositionResult executeGetDevicePosition(GetDevicePositionRequest getDevicePositionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDevicePositionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
444,254
public void windowClosing(WindowEvent e) {<NEW_LINE>// Don't cleanly disconnect when the window is closed.<NEW_LINE>// This allows things like Last Will & Testament to be easily tested by<NEW_LINE>// closing the window to unexpectedly terminate the MQTT session.<NEW_LINE>// view.disconnect();<NEW_LINE>// Write the prop...
, view.constructPropertyValue("IPAddressList"));