idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
665,048
private void load(final long key) {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>Pack p = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>param.put("key", ke...
key = keyLv.getLong(i);
310,147
public boolean[] isTagAuto() {<NEW_LINE>TagProperty[] props = getSupportedProperties();<NEW_LINE>for (TagProperty prop : props) {<NEW_LINE>String name = prop.getName(false);<NEW_LINE>if (name.equals(TagFeatureProperties.PR_TRACKER_TEMPLATES)) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>int type = prop.getType();<NEW_LINE>...
Boolean b = prop.getBoolean();
83,072
protected HLL compute() {<NEW_LINE>if (endPos <= startPos) {<NEW_LINE>return new HLL(13, 5);<NEW_LINE>}<NEW_LINE>if (endPos - startPos == 1) {<NEW_LINE>if (splits[startPos] != null) {<NEW_LINE>return genHll(splits[startPos]);<NEW_LINE>} else {<NEW_LINE>return new HLL(13, 5);<NEW_LINE>}<NEW_LINE>} else {<NEW_LINE>int mi...
DistinctOp(splits, startPos, middle);
915,306
public static String evaluate(@Nullable PsiFile file, @Nullable Project project, @Nullable Module module, @Nonnull String template) throws Exception {<NEW_LINE>VelocityEngine engine = getEngine();<NEW_LINE>VelocityContext vc = new VelocityContext();<NEW_LINE>vc.put("today", new DateInfo());<NEW_LINE>if (file != null)<N...
result, getVelocitySuffix()) : result;
204,583
public static ListVehicleTrackResponse unmarshall(ListVehicleTrackResponse listVehicleTrackResponse, UnmarshallerContext _ctx) {<NEW_LINE>listVehicleTrackResponse.setRequestId(_ctx.stringValue("ListVehicleTrackResponse.RequestId"));<NEW_LINE>listVehicleTrackResponse.setCode(_ctx.stringValue("ListVehicleTrackResponse.Co...
("ListVehicleTrackResponse.Data[" + i + "].LeftTopY"));
1,441,428
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, Integer page, Integer size, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<List<Wo>> result =...
.count(business, p));
953,774
private void tableInit() {<NEW_LINE>accountsTable.setPreferredScrollableViewportSize(new Dimension(500, 70));<NEW_LINE>tableModel.addColumn("");<NEW_LINE>tableModel.addColumn(GuiActivator.getResources().getI18NString("service.gui.ACCOUNT"));<NEW_LINE>tableModel.addColumn(GuiActivator.getResources().getI18NString("servi...
{ radioButton, pps, protocolLabel });
1,202,448
private void addButtons(Contract contract) {<NEW_LINE>Tuple3<Button, Button, HBox> tuple = add2ButtonsWithBox(gridPane, ++rowIndex, Res.get("disputeSummaryWindow.close.button"), Res.get("shared.cancel"), 15, true);<NEW_LINE>Button closeTicketButton = tuple.first;<NEW_LINE>closeTicketButton.disableProperty().bind(Bindin...
, sellerPayoutAmountInputTextField.textProperty()));
1,745,345
protected void load(String fileName, boolean tryMemoryMapping) throws IOException, BufferUnderflowException, MaryConfigurationException, NullPointerException {<NEW_LINE>requireNonNull(fileName, "filename is null");<NEW_LINE>RandomAccessFile file = new RandomAccessFile(fileName, "r");<NEW_LINE>FileChannel fc = file.getC...
warn("Cannot use memory mapping for timeline file '" + fileName + "' -- falling back to piecewise reading");
1,067,303
public static MatrixContext createMatrixContextWithUserDefinePartition(ModelContext context, String name, RowType rowType, Class<? extends UserDefinePartition> partClass) {<NEW_LINE>MatrixContext mc = new MatrixContext();<NEW_LINE>mc.setName(name);<NEW_LINE>mc.setRowNum(1);<NEW_LINE>mc.setRowType(rowType);<NEW_LINE>mc....
setPartitionNum(context.getPartitionNum());
1,154,121
private void createTables(Connection conn, int id) throws ServletException {<NEW_LINE>System.out.println("Executing createTables id = " + id);<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>try {<NEW_LINE>String sql = "CREATE TABLE DEFDSENTITY (ID INTEGER NOT NULL, STRDATA VARCHAR(255), PRIMARY KEY (ID))";<NEW_LINE>Sys...
, Integer.toString(id));
1,033,277
private static void fillFaceUrlList(final String groupID, final ConversationInfo info) {<NEW_LINE>V2TIMManager.getGroupManager().getGroupMemberList(groupID, V2TIMGroupMemberFullInfo.V2TIM_GROUP_MEMBER_FILTER_ALL, 0, new V2TIMValueCallback<V2TIMGroupMemberInfoResult>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void...
? 9 : v2TIMGroupMemberFullInfoList.size();
353,725
private void createLines() {<NEW_LINE>// If it already created then ignore<NEW_LINE>if (isCreated())<NEW_LINE>return;<NEW_LINE>isBOM(getM_Product_ID());<NEW_LINE>// Recalculate<NEW_LINE>recalculate();<NEW_LINE>// Check batch having production planned Qty.<NEW_LINE>if (getM_ProductionBatch_ID() > 0) {<NEW_LINE>BigDecima...
DisplayType.getNumberFormat(DisplayType.Quantity);
1,610,223
final RebootBrokerResult executeRebootBroker(RebootBrokerRequest rebootBrokerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rebootBrokerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
invoke(request, responseHandler, executionContext);
1,169,606
public int minimumEffortPath(int[][] heights) {<NEW_LINE>int m = heights.length;<NEW_LINE>int n = heights[0].length;<NEW_LINE>p = new int[m * n];<NEW_LINE>for (int i = 0; i < p.length; ++i) {<NEW_LINE>p[i] = i;<NEW_LINE>}<NEW_LINE>List<int[]> edges = new ArrayList<>();<NEW_LINE>for (int i = 0; i < m; ++i) {<NEW_LINE>fo...
a -> a[0]));
867,606
public final ConstantContext constant() throws RecognitionException {<NEW_LINE>ConstantContext _localctx = new ConstantContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>setState(344);<NEW_LINE>_errHandler.sync(this);<NEW_LINE>switch(_input.LA(1)) {<NEW_LINE>case MESSAGE:<NEW_LINE>case OPTION:<NEW_LINE>...
enterRule(_localctx, 72, RULE_constant);
757,423
//<NEW_LINE>// Fold Const Binary Predicate<NEW_LINE>//<NEW_LINE>// example:<NEW_LINE>// Binary(=)<NEW_LINE>// / \<NEW_LINE>// "a" "b"<NEW_LINE>//<NEW_LINE>// After rule:<NEW_LINE>// false<NEW_LINE>//<NEW_LINE>// example:<NEW_LINE>// Binary(<=)<NEW_LINE>// / \<NEW_LINE>// 1 2<NEW_LINE>//<NEW_LINE>/...
ConstantOperator) predicate.getChild(1);
37,553
public Landmark unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Landmark landmark = new Landmark();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == nu...
String currentParentElement = context.getCurrentParentElement();
827,972
ReleaseResult release(SemaphoreEndpoint endpoint, UUID invocationUid, int permits) {<NEW_LINE>checkPositive(permits, "Permits should be positive!");<NEW_LINE>long sessionId = endpoint.sessionId();<NEW_LINE>if (sessionId != NO_SESSION_ID) {<NEW_LINE>SessionSemaphoreState state = sessionStates.get(sessionId);<NEW_LINE>if...
<AcquireInvocationKey> acquired = assignPermitsToWaitKeys();
67,289
public static boolean parseMongoClientSettings(Element element, BeanDefinitionBuilder mongoClientBuilder) {<NEW_LINE>Element settingsElement = DomUtils.getChildElementByTagName(element, "client-settings");<NEW_LINE>if (settingsElement == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>BeanDefinitionBuilder clientOpt...
clientOptionsDefBuilder, settingsElement, "connection-pool-maintenance-initial-delay", "poolMaintenanceInitialDelayMS");
1,013,393
public void deleteFoldersId(String folderId, String ifMatch, Boolean recursive) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'folderId' is set<NEW_LINE>if (folderId == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// create path and map variables<NEW_LINE>String...
throw new ApiException(400, "Missing the required parameter 'folderId' when calling deleteFoldersId");
1,673,176
protected void showJPopupMenu(int x, int y) {<NEW_LINE>dialog.setLocation(x, y);<NEW_LINE>dialog.setVisible(true);<NEW_LINE>// Show the menu centered on the invisible dialog<NEW_LINE>menu.show(dialog.getContentPane(), 0, 0);<NEW_LINE>// Compensate position variance due to off-screen placement<NEW_LINE><MASK><NEW_LINE>P...
Dimension menuSize = menu.getPreferredSize();
991,888
protected void enableResumingOfPreviousVersions(ProcessApplicationDeploymentBuilder deploymentBuilder) throws IllegalArgumentException {<NEW_LINE>deploymentBuilder.resumePreviousVersions();<NEW_LINE>String resumePreviousBy = processArchive.getProperties().get(ProcessArchiveXml.PROP_RESUME_PREVIOUS_BY);<NEW_LINE>if (res...
).append(ResumePreviousBy.RESUME_BY_DEPLOYMENT_NAME);
950,137
public static XComponentContext createInitialComponentContext(Map<String, Object> context_entries) throws Exception {<NEW_LINE>ServiceManager xSMgr = new ServiceManager();<NEW_LINE>XImplementationLoader xImpLoader = UnoRuntime.queryInterface(XImplementationLoader.class, new JavaLoader());<NEW_LINE>XInitialization xInit...
new ComponentContextEntry(null, xSMgr));
626,309
public void processTerminated(@NotNull ProcessEvent event) {<NEW_LINE>super.processTerminated(event);<NEW_LINE>boolean success = event.getExitCode() == 0 && myProcessOutput.getStderr().isEmpty();<NEW_LINE>boolean nothingToShow = myProcessOutput.getStdout().isEmpty() && myProcessOutput.getStderr().isEmpty();<NEW_LINE>bo...
-> showOutput(myProcessHandler, historyProcessListener));
1,826,775
// GROOVY end<NEW_LINE>SourceTypeBinding buildType(SourceTypeBinding enclosingType, PackageBinding packageBinding, AccessRestriction accessRestriction) {<NEW_LINE>// provide the typeDeclaration with needed scopes<NEW_LINE>this.referenceContext.scope = this;<NEW_LINE>this.referenceContext.staticInitializerScope = new Me...
MemberTypeBinding(className, this, enclosingType);
1,368,920
JWT createJwt(String tokenString, OAuth20Provider oauth20provider, OidcServerConfig oidcServerConfig) throws OidcServerException {<NEW_LINE>String aud = null;<NEW_LINE>String issuer = null;<NEW_LINE>JWTPayload payload = JsonTokenUtil.getPayload(tokenString);<NEW_LINE>if (payload != null) {<NEW_LINE>aud = JsonTokenUtil....
String signatureAlgorithm = oidcServerConfig.getSignatureAlgorithm();
553,592
public void bind(@NonNull ReviewCommentModel commentModel) {<NEW_LINE>if (commentModel.getUser() != null) {<NEW_LINE>avatarView.setUrl(commentModel.getUser().getAvatarUrl(), commentModel.getUser().getLogin(), commentModel.getUser().isOrganizationType(), LinkParserHelper.isEnterprise(commentModel.getHtmlUrl()));<NEW_LIN...
ReactionsModel reaction = commentModel.getReactions();
943,851
final AddRegionResult executeAddRegion(AddRegionRequest addRegionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addRegionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,741,604
public void updateSize(Rectangle currentDragRect) {<NEW_LINE>assert resizeMode != -1;<NEW_LINE>int inset = 5;<NEW_LINE>switch(resizeMode) {<NEW_LINE>case OneSideScaleMode.N_RESIZE_MODE:<NEW_LINE>rec = new Rectangle(currentDragRect.x + inset, currentDragRect.y - 2 * inset, currentDragRect.width - inset, 2 * inset);<NEW_...
inset, currentDragRect.height - inset);
379,692
public DescribeRoleAliasResult describeRoleAlias(DescribeRoleAliasRequest describeRoleAliasRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRoleAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
500,785
protected Answer backupSnapshotForObjectStore(final CopyCommand cmd) {<NEW_LINE>final DataTO destData = cmd.getDestTO();<NEW_LINE>final DataStoreTO imageStore = destData.getDataStore();<NEW_LINE>final DataTO cacheData = cmd.getCacheTO();<NEW_LINE>if (cacheData == null) {<NEW_LINE>return new CopyCmdAnswer("Failed to cop...
), cmd.executeInSequence());
245,298
public void filterWsdlRequest(SubmitContext context, WsdlRequest wsdlRequest) {<NEW_LINE>WssContainer wssContainer = wsdlRequest.getOperation().getInterface().getProject().getWssContainer();<NEW_LINE>if (wssContainer == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OutgoingWss outgoingWss = wssContainer.getOutgoingWssBy...
getOutgoingWssByName(endpointDefaults.getOutgoingWss());
489,953
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String certificateOrderName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Param...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
731,063
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<NEW_LINE>}<NEW_LINE>String vmm...
Utils.getValueFromIdByName(id, "resourceGroups");
963,373
private Object innerReadObject() throws IOException {<NEW_LINE>int b = read2();<NEW_LINE>switch(b & 0xF0) {<NEW_LINE>case BufferWriter.MARK0:<NEW_LINE>return readMark0(b);<NEW_LINE>case BufferWriter.MARK1:<NEW_LINE>return readMark1(b);<NEW_LINE>case BufferWriter.MARK2:<NEW_LINE>return readMark2(b);<NEW_LINE>case Buffer...
] bytes = new byte[len];
892,634
OptExprBuilder castOutputColumnsTypeToTargetColumns(ColumnRefFactory columnRefFactory, InsertStmt insertStatement, List<ColumnRefOperator> outputColumns, OptExprBuilder root) {<NEW_LINE>List<Column> fullSchema = insertStatement.getTargetTable().getFullSchema();<NEW_LINE>Map<ColumnRefOperator, ScalarOperator> columnRefM...
c = fullSchema.get(columnIdx);
676,265
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>holderPanel = <MASK><NEW_LINE>panelSelector = new javax.swing.JComboBox();<NEW_LINE>pnlToolbar = new javax.swing.JPanel();<...
new javax.swing.JPanel();
900,211
private void printTransform(AutoTypeImage imageIn, AutoTypeImage imageOut) {<NEW_LINE>String sumType = imageOut.getSumType();<NEW_LINE>String bitWise = imageIn.getBitWise();<NEW_LINE>String typeCast = imageOut.getTypeCastFromSum();<NEW_LINE>out.print("\tpublic static void transform( final " + imageIn.getSingleBandName(...
"\t\t\t\ttransformed.data[indexDst++] = transformed.data[indexPrev++] + total;\n" + "\t\t\t}\n" + "\t\t}\n" + "\t}\n\n");
1,366,494
public String formatParamValue(Param param, String value) {<NEW_LINE>switch(param.getParamType()) {<NEW_LINE>case UNDEFINED:<NEW_LINE>// In case we add a new param old clients will not know that enum and fall back to UNDEFINED.<NEW_LINE>return Res.get("shared.na");<NEW_LINE>case BSQ:<NEW_LINE>return formatCoinWithCode(...
, Integer.parseInt(value));
1,667,750
public void visitMethod(MethodElement element, VisitorContext context) {<NEW_LINE>if (skipValidation) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AnnotationValue<?> mappingAnnotation = element.getAnnotation(METHOD_MAPPING_ANN);<NEW_LINE>if (mappingAnnotation != null) {<NEW_LINE>Set<String> uris = CollectionUtils.setOf(mappi...
collect(Collectors.toList());
1,802,681
public final Option parse(List<String> args) {<NEW_LINE>Pattern eqSeparatedOpt = Pattern.compile("(--[^=]+)=(.+)");<NEW_LINE>int idx = 0;<NEW_LINE>for (idx = 0; idx < args.size(); idx++) {<NEW_LINE>String arg = args.get(idx);<NEW_LINE>String value = null;<NEW_LINE>Matcher m = eqSeparatedOpt.matcher(arg);<NEW_LINE>if (m...
IllegalArgumentException("Missing mandatory option " + o.optionName);
254,336
public SConcreteRevision convertToSObject(ConcreteRevision input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SConcreteRevision result = new SConcreteRevision();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.getUuid());<NEW_LINE>result.setRid(input.getRid());<NEW_LI...
Project projectVal = input.getProject();
1,286,422
protected XFormDialog buildDialog(Interface modelItem) {<NEW_LINE>XFormDialogBuilder builder = XFormFactory.createDialogBuilder(".NET 2.0 artifacts");<NEW_LINE>XForm mainForm = builder.createForm("Basic");<NEW_LINE>addWSDLFields(mainForm, modelItem);<NEW_LINE>mainForm.addTextField(OUTPUT, "root directory for generated ...
buildArgsForm(builder, false, "wsdl.exe");
1,116,689
public Map<String, Object> postProcessOperationsWithModels(Map<String, Object> objs, List<ModelMap> allModels) {<NEW_LINE>Map<String, Object> operations = (Map<String, Object>) objs.get("operations");<NEW_LINE>List<CodegenOperation> os = (List<CodegenOperation>) operations.get("operation");<NEW_LINE>List<ExtendedCodege...
pattern.matcher(o.path);
708,741
private void handleBackgroundRecording(FormController formController, RecordingSession session, Result<File> result) throws IOException {<NEW_LINE>HashSet<TreeReference> treeReferences = (HashSet<<MASK><NEW_LINE>TreeReference firstReference = treeReferences.iterator().next();<NEW_LINE>StringData answer = (StringData) f...
TreeReference>) session.getId();
314,449
private CompositeData readCompositeData(Object value, CompositeType ct) throws ConversionException {<NEW_LINE>Set<String> keys = ct.keySet();<NEW_LINE>if (!(value instanceof JSONObject)) {<NEW_LINE>throwConversionException("readCompositeData() expects a JSONObject.", value);<NEW_LINE>}<NEW_LINE>JSONObject json = (JSONO...
] values = new Object[size];
387,237
public JobFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>JobFilter jobFilter = new JobFilter();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE><MASK><...
JsonToken token = context.getCurrentToken();
1,660,788
// ////////////////////////////////////////////////////////////<NEW_LINE>// TEXT<NEW_LINE>// None of the variations of text() are overridden from PGraphics.<NEW_LINE>// ////////////////////////////////////////////////////////////<NEW_LINE>// TEXT IMPL<NEW_LINE>// protected void textLineAlignImpl(char buffer[], int star...
(Typeface) textFont.getNative();
897,198
public List<? extends CodeGenerator> create(Lookup context) {<NEW_LINE>ArrayList<CodeGenerator> ret = new ArrayList<CodeGenerator>();<NEW_LINE>JTextComponent component = context.lookup(JTextComponent.class);<NEW_LINE>CompilationController controller = context.lookup(CompilationController.class);<NEW_LINE>TreePath path ...
getTrees().getElement(path);
963,439
public Boolean call() throws Exception {<NEW_LINE>FormattingProgressTask.FORMATTING_CANCELLED_FLAG.set(false);<NEW_LINE>try {<NEW_LINE>Collection<TextRange> ranges = getRangesToFormat(processChangedTextOnly, file);<NEW_LINE>CharSequence before = null;<NEW_LINE>Document document = PsiDocumentManager.getInstance(myProjec...
CaretVisualPositionKeeper caretPositionKeeper = new CaretVisualPositionKeeper(document);
440,274
private <T> void filterProxiedTypes(Collection<BeanDefinition<T>> candidates, boolean filterProxied, boolean filterDelegates, Predicate<BeanDefinition<T>> predicate) {<NEW_LINE>int count = candidates.size();<NEW_LINE>Set<Class> proxiedTypes <MASK><NEW_LINE>Iterator<BeanDefinition<T>> i = candidates.iterator();<NEW_LINE...
= new HashSet<>(count);
54,110
private ReadableProductProperty createProperty(ProductAttribute productAttribute, Language language) {<NEW_LINE>ReadableProductProperty attr = new ReadableProductProperty();<NEW_LINE>// attribute of the option<NEW_LINE>attr.setId(productAttribute.getProductOption().getId());<NEW_LINE>attr.setType(productAttribute.getPr...
getValues().add(productOptionValueDescription);
468,571
private int addLeases(List<VirtualMachineLease> leases) {<NEW_LINE>if (logger.isDebugEnabled())<NEW_LINE>logger.debug("Adding leases");<NEW_LINE>for (AssignableVirtualMachine avm : vmCollection.getAllVMs()) avm.resetResources();<NEW_LINE>int rejected = 0;<NEW_LINE>for (VirtualMachineLease l : leases) {<NEW_LINE>if (vmC...
VirtualMachineLease currTotalLease = avm.getCurrTotalLease();
251,472
private Map<String, Object> makeContextProperies(ContextControllerFactoryForge[] controllers, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) throws ExprValidationException {<NEW_LINE>LinkedHashMap<String, Object> props = new LinkedHashMap<>();<NEW_LINE>props.put(ContextPropertyEventType.PROP_...
.getFactoryEnv().getContextName();
1,834,754
public static RubyFloat erfc(ThreadContext context, IRubyObject recv, IRubyObject x) {<NEW_LINE>double value = RubyNumeric.num2dbl(context, x);<NEW_LINE>double result;<NEW_LINE>double y = Math.abs(value);<NEW_LINE>if (value <= -6.013687357) {<NEW_LINE>result = 2;<NEW_LINE>} else if (y < 1.49012e-08) {<NEW_LINE>result =...
newFloat(context.runtime, result);
1,432,361
public static void drawArrow(Vec3d from, Vec3d to, BufferBuilder bufferBuilder) {<NEW_LINE>double startX = from.x;<NEW_LINE>double startY = from.y;<NEW_LINE>double startZ = from.z;<NEW_LINE>double endX = to.x;<NEW_LINE>double endY = to.y;<NEW_LINE>double endZ = to.z;<NEW_LINE>Matrix4f matrix = new Matrix4f();<NEW_LINE>...
2, 0).next();
1,270,891
private XLogDiscard samplingPatterned5(int elapsed, XLogDiscard discardMode) {<NEW_LINE>if (elapsed < conf.xlog_patterned5_sampling_step1_ms) {<NEW_LINE>if (Math.abs(KeyGen.next() % (100 * conf.xlog_patterned5_sampling_rate_precision)) >= conf.xlog_patterned5_sampling_step1_rate_pct) {<NEW_LINE>discardMode = conf.xlog_...
? XLogDiscard.DISCARD_PROFILE : XLogDiscard.DISCARD_ALL;
166,409
private void InsertData(String user, String pass) throws IOException {<NEW_LINE>try {<NEW_LINE>String path = DB_PATH + DB_NAME;<NEW_LINE>Members = this.openOrCreateDatabase(path, MODE_PRIVATE, null);<NEW_LINE>SQLiteStatement <MASK><NEW_LINE>stmt.bindString(1, user);<NEW_LINE>stmt.bindString(2, pass);<NEW_LINE>stmt.exec...
stmt = Members.compileStatement("INSERT INTO Members (name, password) VALUES (?,?);");
1,370,637
public static String findBin() {<NEW_LINE>// use the same JVM as the one used to run Maven (the "java.home" one)<NEW_LINE>String java = System.getProperty("java.home") + File.separator <MASK><NEW_LINE>File javaCheck = new File(java);<NEW_LINE>if (!javaCheck.canExecute()) {<NEW_LINE>java = null;<NEW_LINE>// Try executab...
+ "bin" + File.separator + "java";
293,120
public int writeTo(ByteBuf buffer, byte[] data) {<NEW_LINE>int len = data.length;<NEW_LINE>int count = len;<NEW_LINE>int offset = 0;<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>byte b = data[i];<NEW_LINE>if (b == '&') {<NEW_LINE>buffer.writeBytes(data, offset, i - offset);<NEW_LINE>buffer.writeBytes(AMP);<NEW_LIN...
data, offset, len - offset);
1,525,052
public Tree visitCompilationUnit(CompilationUnitTree node, Element p) {<NEW_LINE>original2Translated = new <MASK><NEW_LINE>boolean deleteThisFile = false;<NEW_LINE>Tree result = super.visitCompilationUnit(node, p);<NEW_LINE>List<? extends Tree> typeDecls = node.getTypeDecls();<NEW_LINE>CompilationUnitTree cut = node;<N...
HashMap<Tree, Tree>();
1,189,670
private void transform(MongoRequest request, BsonDocument contentToTransform) {<NEW_LINE>if (!contentToTransform.isDocument()) {<NEW_LINE>throw new IllegalStateException("content to transform is not a document");<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (request.isCollection() || request.isCollectionMeta()) {<NEW_LINE>Bs...
BsonDocument _contentToTransform = contentToTransform.asDocument();
47,896
public void applyDelta(HollowBlobInput in, HollowSchema schema, ArraySegmentRecycler memoryRecycler) throws IOException {<NEW_LINE>if (shards.length > 1)<NEW_LINE>maxOrdinal = VarInt.readVInt(in);<NEW_LINE>for (int i = 0; i < shards.length; i++) {<NEW_LINE>HollowMapTypeDataElements deltaData = new HollowMapTypeDataElem...
= new HollowMapTypeDataElements(memoryMode, memoryRecycler);
1,516,800
private void sendResponse(final long listingStartTimeNanos, final long deleteStartTimeNanos) {<NEW_LINE>final Exception exception = failure.get();<NEW_LINE>if (exception == null) {<NEW_LINE>final long completionTimeNanos = System.nanoTime();<NEW_LINE>logger.trace("[{}] completed successfully", request.getDescription())...
- listingStartTimeNanos, completionTimeNanos - deleteStartTimeNanos));
1,185,664
public World deserializeWorld(PbWorld pbWorld) {<NEW_LINE>World world = new World(pbToVec(pbWorld.getGravity()));<NEW_LINE>world.setAutoClearForces(pbWorld.getAutoClearForces());<NEW_LINE>world.setContinuousPhysics(pbWorld.getContinuousPhysics());<NEW_LINE>world.setWarmStarting(pbWorld.getWarmStarting());<NEW_LINE>worl...
jointMap.put(cnt, joint);
1,484,755
public void initialize(InputSplit split, TaskAttemptContext ctx) throws IOException, InterruptedException {<NEW_LINE>msgBuilder = Protobufs.getMessageBuilder(typeRef.getRawClass());<NEW_LINE>msgInstance = msgBuilder.getDefaultInstanceForType();<NEW_LINE>protoWritable = ProtobufWritable.newInstance(typeRef.getRawClass()...
fid = storedInfo.getFieldId(idx);
762,893
/*<NEW_LINE>* Parse console args<NEW_LINE>*/<NEW_LINE>private static ServerConfiguration parseArgs(String[] args) throws IllegalArgumentException {<NEW_LINE>try {<NEW_LINE>BasicParser parser = new BasicParser();<NEW_LINE>CommandLine cmdLine = parser.parse(opts, args);<NEW_LINE>if (cmdLine.hasOption('h')) {<NEW_LINE>thr...
confFile = cmdLine.getOptionValue("c");
1,097,562
public static GetInstanceConfigResponse unmarshall(GetInstanceConfigResponse getInstanceConfigResponse, UnmarshallerContext context) {<NEW_LINE>getInstanceConfigResponse.setRequestId(context.stringValue("GetInstanceConfigResponse.RequestId"));<NEW_LINE>getInstanceConfigResponse.setSuccess(context.booleanValue("GetInsta...
(context.stringValue("GetInstanceConfigResponse.InstanceId"));
1,510,176
public static VmwareDistributedVirtualSwitchVlanSpec createDVPortVlanSpec(Integer vlanId, String vlanRange) {<NEW_LINE>if (vlanId != null && vlanId == 4095) {<NEW_LINE>vlanId = null;<NEW_LINE>vlanRange = "0-4094";<NEW_LINE>}<NEW_LINE>if (vlanId == null && vlanRange != null && !vlanRange.isEmpty()) {<NEW_LINE>s_logger.d...
range = vlanRangePart.split("-");
688,756
protected void readInternal(ByteBuffer b) throws IOException {<NEW_LINE>long pos = getFilePointer() + off;<NEW_LINE>if (pos + b.remaining() > end) {<NEW_LINE>throw new EOFException("read past EOF: " + this);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>while (readLength > 0) {<NEW_LINE>final int toRead = Math.min...
int readLength = b.remaining();
129,243
private void createSymbolicClasses(Map<String, String> realClassNamesBySymbolicClassName, Map<String, SymbolicClass> symbolicClassesByRealClassName, Map<SymbolicClassDeclaration, SymbolicClassBuilder> symbolicClassBuildersBySymbolicClassDeclaration) throws SymbolicClassGraphCreationException {<NEW_LINE>for (Entry<Symbo...
symbolicClassesByRealClassName.put(realClassName, symbolicClass);
754,511
private void checkBlock4RestTemplate(Class<?> blockClass, String blockMethod, String beanName, String type) {<NEW_LINE>if (blockClass == void.class && !StringUtils.hasLength(blockMethod)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (blockClass != void.class && !StringUtils.hasLength(blockMethod)) {<NEW_LINE>log.error("{}...
updateUrlCleanerFor(blockClass, blockMethod, foundMethod);
1,786,079
public String fireDocValidate(@NonNull final Object model, @NonNull final DocTimingType docTiming) {<NEW_LINE>try (final MDCCloseable mdcCloseable = MDC.putCloseable("docTiming", docTiming.toString())) {<NEW_LINE>final PerformanceMonitoringService perfMonService = SpringContextHolder.instance.getBeanOr(PerformanceMonit...
recordId = InterfaceWrapperHelper.getId(model);
846,838
// rb_str_encode<NEW_LINE>public static ByteList rbByteEncode(ThreadContext context, byte[] bytes, int start, int length, Encoding encoding, int cr, Encoding to, int ecflags, IRubyObject ecopt) {<NEW_LINE>byte[] sname, dname;<NEW_LINE>sname = encoding.getName();<NEW_LINE>dname = to.getName();<NEW_LINE>if (noDecorators(...
sname, dname, ecflags, ecopt);
1,075,855
public synchronized void highlight(Parent pane, String query) {<NEW_LINE>if (this.parent != null && !boxes.isEmpty()) {<NEW_LINE>clear();<NEW_LINE>}<NEW_LINE>if (query == null || query.isEmpty())<NEW_LINE>return;<NEW_LINE>this.parent = pane;<NEW_LINE>Set<Node> nodes = getTextNodes(pane);<NEW_LINE>ArrayList<Rectangle> a...
setX(boundingBox.getMinX());
277,383
private void writeResultToStream(OutputStream os) throws IOException {<NEW_LINE>DexDataBuffer buffer = new DexDataBuffer();<NEW_LINE>buffer.write(DexPatchFile.MAGIC);<NEW_LINE>buffer.writeShort(DexPatchFile.CURRENT_VERSION);<NEW_LINE>buffer.writeInt(this.patchedDexSize);<NEW_LINE>// we will return here to write firstCh...
buffer.writeInt(this.patchedClassDataItemsOffset);
316,836
public ServiceObjects<UI> addingService(ServiceReference<UI> uiServiceReference) {<NEW_LINE>Bundle bundle = uiServiceReference.getBundle();<NEW_LINE>BundleContext bundleContext = bundle.getBundleContext();<NEW_LINE>UI contributedUI = bundleContext.getService(uiServiceReference);<NEW_LINE>try {<NEW_LINE>Class<? extends ...
> uiClass = contributedUI.getClass();
924,694
protected AsyncCallFuture<VolumeApiResult> copyVolumeFromImageToPrimary(VolumeInfo srcVolume, DataStore destStore) {<NEW_LINE>AsyncCallFuture<VolumeApiResult> future = new AsyncCallFuture<VolumeApiResult>();<NEW_LINE>VolumeApiResult res = new VolumeApiResult(srcVolume);<NEW_LINE>VolumeInfo destVolume = null;<NEW_LINE>t...
caller = AsyncCallbackDispatcher.create(this);
1,281,247
private void registerNode(int node, char[] fragment) {<NEW_LINE>int left = lattice.nodeLeft[node];<NEW_LINE>int right = lattice.nodeRight[node];<NEW_LINE>Type type = lattice.nodeDicType[node];<NEW_LINE>if (!discardPunctuation || !isPunctuation(fragment[left])) {<NEW_LINE>if (type == Type.USER) {<NEW_LINE>// The code be...
, userDictionary.getMorphAttributes()));
1,139,365
public void sendHello(final Channel channel) {<NEW_LINE>ChannelBuffer <MASK><NEW_LINE>Channels.write(channel, buffer);<NEW_LINE>// sasl_client is null for Simple Auth case<NEW_LINE>if (sasl_client != null) {<NEW_LINE>byte[] challenge_bytes = null;<NEW_LINE>if (sasl_client.hasInitialResponse()) {<NEW_LINE>challenge_byte...
buffer = ChannelBuffers.wrappedBuffer(connection_header);
891,770
public static final long parseLongDecSubstring(String s, int startPos, final int endPos) throws NumberFormatException {<NEW_LINE>if (s == null || endPos > s.length() || endPos <= startPos)<NEW_LINE>throw new NumberFormatException(s);<NEW_LINE>long result = 0;<NEW_LINE>boolean negative = false;<NEW_LINE>int i = startPos...
(i) == ' ') i++;
768,145
public io.kubernetes.client.proto.V2beta2Autoscaling.CrossVersionObjectReference buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V2beta2Autoscaling.CrossVersionObjectReference result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bit...
proto.V2beta2Autoscaling.CrossVersionObjectReference(this);
683,607
private EvaluationContext buildEvaluationContext(RequestEntity<?> httpEntity, ServerWebExchange exchange) {<NEW_LINE>ServerHttpRequest request = exchange.getRequest();<NEW_LINE>org.springframework.http.HttpHeaders requestHeaders = request.getHeaders();<NEW_LINE>MultiValueMap<String, String> requestParams = request.getQ...
evaluationContext.setVariable("requestHeaders", requestHeaders);
1,646,651
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, String applicationFlag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_L...
ExceptionEntityNotExist(flag, File.class);
1,505,296
final DeleteMessageResult executeDeleteMessage(DeleteMessageRequest deleteMessageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteMessageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
DeleteMessageResult>(new DeleteMessageResultStaxUnmarshaller());
1,343,918
public void execute(@Nonnull Editor editor, char charTyped, @Nonnull DataContext dataContext) {<NEW_LINE>PerEditorSearchData data = editor.getUserData(SEARCH_DATA_IN_EDITOR_VIEW_KEY);<NEW_LINE>if (data == null || data.hint == null) {<NEW_LINE>if (myOriginalHandler != null)<NEW_LINE>myOriginalHandler.execute(editor, cha...
= hintData.label.getText();
1,745,676
public int decodeNumeric(PackedBits8 data, int bitLocation, int lengthBits) {<NEW_LINE>int length = data.read(bitLocation, lengthBits, true);<NEW_LINE>bitLocation += lengthBits;<NEW_LINE>while (length >= 3) {<NEW_LINE>if (data.size < bitLocation + 10) {<NEW_LINE>if (verbose != null)<NEW_LINE>verbose.<MASK><NEW_LINE>fai...
printf("overflow: numeric data.size=%d\n", data.size);
669,487
private SelectResponse process(RangeSplitter.RegionTask regionTask) {<NEW_LINE>Queue<RangeSplitter.RegionTask> remainTasks = new ArrayDeque<>();<NEW_LINE>Queue<SelectResponse> responseQueue = new ArrayDeque<>();<NEW_LINE>remainTasks.add(regionTask);<NEW_LINE>BackOffer backOffer = ConcreteBackOffer.newCopNextMaxBackOff(...
TiRegion region = task.getRegion();
814,709
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("align" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>IParam tgtParam;<NEW_LINE>Expression fltExp = null;<NEW_LINE>if (param.getType() == IParam.Comma) {...
+ mm.getMessage("function.invalidParam"));
1,164,686
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource");
1,594,250
final DescribeRemediationConfigurationsResult executeDescribeRemediationConfigurations(DescribeRemediationConfigurationsRequest describeRemediationConfigurationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeRemediationConfigurationsRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Config Service");
280,026
public static serverObjects respond(@SuppressWarnings("unused") final RequestHeader header, final serverObjects post, final serverSwitch env) {<NEW_LINE>serverObjects prop = new serverObjects();<NEW_LINE>Switchboard sb = (Switchboard) env;<NEW_LINE>final boolean plain = post != null && post.getBoolean("plain");<NEW_LIN...
(plain) ? 1 : 0);
1,435,280
public void onBindViewHolder(ViewHolder holder, Trend trend) {<NEW_LINE>String owner = trend.getRepoOwner();<NEW_LINE>String name = trend.getRepoName();<NEW_LINE>SpannableStringBuilder title = new SpannableStringBuilder();<NEW_LINE>title.append(owner).append("/").append(name);<NEW_LINE>title.setSpan(new StyleSpan(Typef...
, trend.getStars()));
599,562
public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>// noinspection unchecked<NEW_LINE>final List<Song> songs = getArguments().getParcelableArrayList("songs");<NEW_LINE>int title;<NEW_LINE>CharSequence content;<NEW_LINE>if (songs.size() > 1) {<NEW_LINE>title = R.string.delete_songs_title;<NEW_LINE>conten...
, songs.size()));
1,662,268
void show(Node node) {<NEW_LINE>detectUpdates(false);<NEW_LINE>_target = node;<NEW_LINE>Utils.Resolver resolver = getDetailResolver();<NEW_LINE>boolean isEditable = (resolver == null);<NEW_LINE>_name.setText(_target.getId());<NEW_LINE>_name.setEditable(_target.isEphemeral());<NEW_LINE>NodeDescriptor descriptor = <MASK>...
(NodeDescriptor) _target.getDescriptor();
894,774
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>Context ctx = requireContext();<NEW_LINE>View root = mInflater.inflate(R.<MASK><NEW_LINE>Toolbar toolbar = root.findViewById(R.id.toolbar);<NEW_LINE>TextView toolbarTitle = root.find...
layout.fragment_ui_customization, container, false);
1,507,806
protected void schedule() {<NEW_LINE>Subscription[] subs = manager.getSubscriptions(true);<NEW_LINE>long now = SystemTime.getCurrentTime();<NEW_LINE>subs = subs.clone();<NEW_LINE>synchronized (this) {<NEW_LINE>Arrays.sort(subs, new Comparator<Subscription>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public int compare(Su...
download_attempted = download(sub, true);
1,012,505
final DescribeClusterSecurityGroupsResult executeDescribeClusterSecurityGroups(DescribeClusterSecurityGroupsRequest describeClusterSecurityGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClusterSecurityGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DescribeClusterSecurityGroups");
1,446,068
public List<List<Mention>> findMentions(Annotation doc, Dictionaries dict, Properties props) {<NEW_LINE>List<List<Mention>> predictedMentions = new ArrayList<>();<NEW_LINE>Set<String> neStrings = Generics.newHashSet();<NEW_LINE>List<Set<IntPair>> mentionSpanSetList = Generics.newArrayList();<NEW_LINE>List<CoreMap> sent...
, predictedMentions.get(i));