idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
501,422
public double[][] chooseInitialMeans(Relation<? extends NumberVector> relation, int k, NumberVectorDistance<?> distance) {<NEW_LINE>if (relation.size() < k) {<NEW_LINE>throw new IllegalArgumentException("Cannot choose k=" + k + " means from N=" + relation.size() + " < k objects.");<NEW_LINE>}<NEW_LINE>final DBIDs sampl...
= (Relation<V>) relation;
493,416
public Values configFor(GraphDatabaseAPI db) {<NEW_LINE>String apocTTLEnabledDb = String.format(ApocConfig.APOC_TTL_ENABLED_DB, db.databaseName());<NEW_LINE>String apocTTLScheduleDb = String.format(ApocConfig.APOC_TTL_SCHEDULE_DB, db.databaseName());<NEW_LINE>String apocTTLLimitDb = String.format(ApocConfig.APOC_TTL_LI...
apocConfig.getBoolean(apocTTLEnabledDb, enabled);
495,620
private static Map<String, String> createColorMap() {<NEW_LINE>HashMap<String, String> map = new HashMap<>();<NEW_LINE>map.put("yellow", "#FFFF00");<NEW_LINE>map.put("dark yellow", "#FFC002");<NEW_LINE>map.put("green", "#00FF00");<NEW_LINE><MASK><NEW_LINE>map.put("pink", "#FF1DC4");<NEW_LINE>map.put("orange", "#E46C0A"...
map.put("white", "#FFFFFF");
592,715
final CreateModelPackageResult executeCreateModelPackage(CreateModelPackageRequest createModelPackageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createModelPackageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateModelPackage");
675,382
public void handleApplicationCommandRequest(SerialMessage serialMessage, int offset, int endpoint) {<NEW_LINE>logger.debug("NODE {}: Received Barrier Operator Request", this.getNode().getNodeId());<NEW_LINE>int command = serialMessage.getMessagePayloadByte(offset);<NEW_LINE>switch(command) {<NEW_LINE>case BARRIER_OPERA...
().getKey()));
1,357,113
static public AuthChallenge parse(String authHeaderStr) {<NEW_LINE>Map<String, String> authHeader = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>} catch (Throwable ex) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (!authHeader.containsKey(SCHEME))<NEW_LINE>return null;<NEW_LINE>AuthScheme authScheme = ...
authHeader = AuthStringTokenizer.parse(authHeaderStr);
1,429,197
public boolean _moveFolder(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form, User user) throws Exception {<NEW_LINE>String parentInode = req.getParameter("parent");<NEW_LINE>String inode = req.getParameter("inode");<NEW_LINE>Folder current = folderAPI.find(inode, user, false);<NEW_LINE>if (!...
add(req, "message", "message.folder.ischildfolder");
314,322
private void init() {<NEW_LINE>// Setup full event string that will be used in ping<NEW_LINE>StringBuilder event = new StringBuilder();<NEW_LINE>IAnalyticsUserManager userManager = getUserManager();<NEW_LINE>IAnalyticsUser user = (userManager == null) ? null : userManager.getUser();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>add...
, Integer.toString(results));
989,047
public JRCrosstabRowGroup removeRowGroup(String groupName) {<NEW_LINE>JRCrosstabRowGroup removed = null;<NEW_LINE>Integer idx = rowGroupsMap.remove(groupName);<NEW_LINE>if (idx != null) {<NEW_LINE>removed = rowGroups.remove((int) idx);<NEW_LINE>for (ListIterator<JRCrosstabRowGroup> it = rowGroups.listIterator(idx); it....
, cell.getColumnTotalGroup()));
807,792
protected void drawBackgroundLayer(float partialTicks) {<NEW_LINE>ICON_GUI.drawAt(mainGui.rootElement);<NEW_LINE>long target = container.tile.getTarget();<NEW_LINE>if (target != 0) {<NEW_LINE>double v = (double) container.tile.power / target;<NEW_LINE>ICON_PROGRESS.drawCutInside(new GuiRectangle(RECT_PROGRESS.x, (int) ...
.drawAt(getArea(i));
35,830
private int sendMeta(FileReferenceData fileData) {<NEW_LINE>Request request <MASK><NEW_LINE>request.parameters().add(new StringValue(fileData.fileReference().value()));<NEW_LINE>request.parameters().add(new StringValue(fileData.filename()));<NEW_LINE>request.parameters().add(new StringValue(fileData.type().name()));<NE...
= new Request(FileReceiver.RECEIVE_META_METHOD);
408,209
public void init(int N, boolean isPixels, boolean planar) {<NEW_LINE>this.isPixels = isPixels;<NEW_LINE>// define the camera's motion<NEW_LINE>motion = new Se3_F64();<NEW_LINE>motion.getR().setTo(ConvertRotation3D_F64.eulerToMatrix(EulerType.XYZ, 0.5, <MASK><NEW_LINE>motion.getT().setTo(0.1, -0.2, 5);<NEW_LINE>// rando...
-0.2, 0.15, null));
281,602
public static ListMPCoSPhaseGroupResponse unmarshall(ListMPCoSPhaseGroupResponse listMPCoSPhaseGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>listMPCoSPhaseGroupResponse.setRequestId(_ctx.stringValue("ListMPCoSPhaseGroupResponse.RequestId"));<NEW_LINE>listMPCoSPhaseGroupResponse.setCode(_ctx.integerValue("ListMPCo...
("ListMPCoSPhaseGroupResponse.Data.PageData[" + i + "].Remark"));
1,527,144
final CreateRoomResult executeCreateRoom(CreateRoomRequest createRoomRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRoomRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
582,886
public List<StatsHistory> statsHistory() throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/stats/history";<NEW_LINE>// query params<NEW_LINE>List<Pair> queryParams = new ArrayList<Pair>();...
HttpEntity httpEntity = localVarBuilder.build();
631,735
public List<XmlElement> toXmlValues(final String valueElementName, final XmlOutputProcessData xmlOutputProcessData) {<NEW_LINE>final XmlElement valueElement = XmlChai.getFactory().newElement(StoredConfigXmlConstants.XML_ELEMENT_VALUE);<NEW_LINE>if (privateKeyCertificate != null) {<NEW_LINE>try {<NEW_LINE>{<NEW_LINE>for...
), xmlOutputProcessData.getPwmSecurityKey());
179,900
private void loadNode324() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.FileDirectoryType_FileDirectoryName_Placeholder_MoveOrCopy_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), LocalizedText.NUL...
setInput(new StringReader(xml));
793,974
public void visit(BLangWhile whileNode) {<NEW_LINE>Map<BSymbol, InitStatus> prevUninitializedVars = this.uninitializedVars;<NEW_LINE>analyzeNode(whileNode.expr, env);<NEW_LINE>BranchResult whileResult = <MASK><NEW_LINE>if (whileNode.onFailClause != null) {<NEW_LINE>analyzeNode(whileNode.onFailClause, env);<NEW_LINE>}<N...
analyzeBranch(whileNode.body, env);
1,101,223
public void saveActionClass(final WorkflowActionClass actionClass) throws DotDataException, AlreadyExistException {<NEW_LINE>boolean isNew = true;<NEW_LINE>if (UtilMethods.isSet(actionClass.getId())) {<NEW_LINE>try {<NEW_LINE>final WorkflowActionClass test = this.findActionClass(actionClass.getId());<NEW_LINE>if (test ...
addParam(actionClass.getActionId());
1,423,743
private void displaySceneInAr() {<NEW_LINE>mArView = findViewById(R.id.arView);<NEW_LINE>mArView.registerLifecycle(getLifecycle());<NEW_LINE>// disable touch interactions with the scene view<NEW_LINE>mArView.getSceneView().setOnTouchListener((view, motionEvent) -> true);<NEW_LINE>// create scene with imagery basemap<NE...
(R.string.girona_integrated_mesh_layer_url));
1,248,900
private void generateConstructor(ClassWriter cw, String generatedClassName, FlashlightProbeProvider provider) {<NEW_LINE>Method m = Method.getMethod("void <init> ()");<NEW_LINE>GeneratorAdapter gen = new GeneratorAdapter(Opcodes.ACC_PUBLIC, m, null, null, cw);<NEW_LINE>gen.loadThis();<NEW_LINE>gen.invokeConstructor(Typ...
(Object.class), m);
1,418,413
private String arclight$forgeCommandEvent(String commandLine, CommandSender sender) {<NEW_LINE>CommandSourceStack commandSource;<NEW_LINE>if (sender instanceof CraftEntity) {<NEW_LINE>commandSource = ((CraftEntity) sender)<MASK><NEW_LINE>} else if (sender == Bukkit.getConsoleSender()) {<NEW_LINE>commandSource = Arcligh...
.getHandle().createCommandSourceStack();
59,887
public void run() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>boolean first = true;<NEW_LINE>for (CmdLineOpts.ContactPoint contactPoint : configuration.getContactPoints()) {<NEW_LINE>if (!first) {<NEW_LINE>sb.append(",");<NEW_LINE>} else {<NEW_LINE>first = false;<NEW_LINE>}<NEW_LINE>sb.append(contactPoi...
drop_stmt).setReadTimeoutMillis(60000));
784,590
private Map<Long, Integer> inspectLedger(LedgerMetadata metadata, Set<BookieId> bookiesToInspect) {<NEW_LINE>Map<Long, Integer> numBookiesToReplacePerEnsemble = new TreeMap<Long, Integer>();<NEW_LINE>for (Map.Entry<Long, ? extends List<BookieId>> ensemble : metadata.getAllEnsembles().entrySet()) {<NEW_LINE>List<BookieI...
ensemble.getKey() + ":\t");
1,777,053
public static byte[] URLtoByteArray(String location, Cookie[] cookies, boolean post) throws IOException {<NEW_LINE>byte[] byteArray = null;<NEW_LINE>HttpMethod method = null;<NEW_LINE>try {<NEW_LINE>HttpClient client = new HttpClient(new SimpleHttpConnectionManager());<NEW_LINE>if (location == null) {<NEW_LINE>return b...
getValue(), cookies, post);
1,095,621
/*<NEW_LINE>* Determines if we should change the touch state to start scrolling after the<NEW_LINE>* user moves their touch point too far.<NEW_LINE>*/<NEW_LINE>protected void determineScrollingStart(MotionEvent ev, float touchSlopScale) {<NEW_LINE>// Disallow scrolling if we don't have a valid pointer index<NEW_LINE>fi...
Math.round(touchSlopScale * mTouchSlop);
1,024,197
final CreatePortfolioShareResult executeCreatePortfolioShare(CreatePortfolioShareRequest createPortfolioShareRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPortfolioShareRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
870,757
// End of variables declaration//GEN-END:variables<NEW_LINE>private static Configuration config(POMModel pomModel) {<NEW_LINE>Build build = pomModel.getProject().getBuild();<NEW_LINE>if (build == null) {<NEW_LINE>build = pomModel.getFactory().createBuild();<NEW_LINE>pomModel.getProject().setBuild(build);<NEW_LINE>}<NEW...
nbmPlugin.setExtensions(Boolean.TRUE);
817,219
public final void typeParameterBounds() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST typeParameterBounds_AST = null;<NEW_LINE>Token first = LT(1);<NEW_LINE>match(LITERAL_extends);<NEW_LINE>nls();<NEW_LINE>classOrInterfaceType(tr...
astFactory.addASTChild(currentAST, returnAST);
1,251,897
public static TaobaoFilmGetSeatsResponse unmarshall(TaobaoFilmGetSeatsResponse taobaoFilmGetSeatsResponse, UnmarshallerContext _ctx) {<NEW_LINE>taobaoFilmGetSeatsResponse.setRequestId(_ctx.stringValue("TaobaoFilmGetSeatsResponse.RequestId"));<NEW_LINE>taobaoFilmGetSeatsResponse.setErrorCode(_ctx.stringValue("TaobaoFilm...
(_ctx.longValue("TaobaoFilmGetSeatsResponse.SeatMap.MaxTopPx"));
20,803
private void initGeoFailedRedirect(final Map<String, DeliveryService> dsMap, final CacheRegister cacheRegister) {<NEW_LINE>final Iterator<String> itr = dsMap.keySet().iterator();<NEW_LINE>while (itr.hasNext()) {<NEW_LINE>final DeliveryService ds = dsMap.get(itr.next());<NEW_LINE>// check if it's relative path or not<NE...
idx = rurl.indexOf("://");
259,828
public void add(final Vulnerability vulnerability) {<NEW_LINE>final Document doc = new Document();<NEW_LINE>addField(doc, IndexConstants.VULNERABILITY_UUID, vulnerability.getUuid().toString(), Field.Store.YES, false);<NEW_LINE>addField(doc, IndexConstants.VULNERABILITY_VULNID, vulnerability.getVulnId(), Field.Store.YES...
Field.Store.YES, true);
647,448
private boolean tryToShowPromoAfterBooking() {<NEW_LINE>NetworkPolicy policy = NetworkPolicy.newInstance(NetworkPolicy.getCurrentNetworkUsageStatus());<NEW_LINE>PromoAfterBooking promo = Promo.nativeGetPromoAfterBooking(policy);<NEW_LINE>if (promo == null)<NEW_LINE>return false;<NEW_LINE>String dialogName = PromoBookin...
logPromoAfterBookingShown(promo.getId());
602,323
final GetEnvironmentTemplateVersionResult executeGetEnvironmentTemplateVersion(GetEnvironmentTemplateVersionRequest getEnvironmentTemplateVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEnvironmentTemplateVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
endClientExecution(awsRequestMetrics, request, response);
1,424,428
void renameUses(PropertyClustering prop) {<NEW_LINE>if (prop.isInvalidated()) {<NEW_LINE>this.renamingIndex.put(prop.getName(), INVALIDATED_NAME_VALUE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ImmutableMap<ColorGraphNode, String> clusterNames = createAllClusterNames(prop);<NEW_LINE>if (clusterNames.size() <= 1) {<NEW_LINE...
find(usage.getValue());
385,314
public MobileSdkRelease unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MobileSdkRelease mobileSdkRelease = new MobileSdkRelease();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));
653,441
public void bindView(View view, Context context, Cursor cursor) {<NEW_LINE>int id = cursor.getInt(cursor.getColumnIndex(ClientAuthContentProvider.V3ClientAuth._ID));<NEW_LINE>final String where = ClientAuthContentProvider.V3ClientAuth._ID + "=" + id;<NEW_LINE>TextView domain = view.findViewById(R.id.cookie_onion);<NEW_...
Toast.LENGTH_LONG).show();
1,446,890
public String prepareIt() {<NEW_LINE>log.info(toString());<NEW_LINE>processMessage = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_PREPARE);<NEW_LINE>if (processMessage != null)<NEW_LINE>return DocAction.STATUS_Invalid;<NEW_LINE>MDocType docType = MDocType.get(getCtx(), getC_DocType_ID(...
fireDocValidate(this, ModelValidator.TIMING_AFTER_PREPARE);
107,339
public static <T> T serializeObject(T o, ODatabaseObject db) {<NEW_LINE>if (o instanceof Proxy) {<NEW_LINE>final ODocument iRecord = getDocument((Proxy) o);<NEW_LINE>Class<?> pojoClass = o.getClass().getSuperclass();<NEW_LINE>invokeCallback(pojoClass, o, iRecord, OBeforeSerialization.class);<NEW_LINE>invokeCallback(poj...
.getClass()), e);
12,528
public Map<K, ValueHolder<V>> bulkCompute(final Set<? extends K> keys, final Function<Iterable<? extends Map.Entry<? extends K, ? extends V>>, Iterable<? extends Map.Entry<? extends K, ? extends V>>> remappingFunction) throws StoreAccessException {<NEW_LINE>Map<K, ValueHolder<V>> <MASK><NEW_LINE>if (remappingFunction i...
valueHolderMap = new HashMap<>();
37,201
public void onBindViewHolder(@NonNull FavDrawerHolder holder, int position) {<NEW_LINE>if (0 == position) {<NEW_LINE>holder.key.setText(R.string.local_favorites);<NEW_LINE>holder.value.setText(Integer.toString(mFavLocalCount));<NEW_LINE>holder.itemView.setEnabled(true);<NEW_LINE>} else if (1 == position) {<NEW_LINE>hol...
holder.itemView.setEnabled(true);
929,090
public static Geometry gridPoints(Geometry g, int nCells) {<NEW_LINE>Envelope env = FunctionsUtil.getEnvelopeOrDefault(g);<NEW_LINE>GeometryFactory geomFact = FunctionsUtil.getFactoryOrDefault(g);<NEW_LINE>int nCellsOnSideY = (int) Math.sqrt(nCells);<NEW_LINE>int nCellsOnSideX = nCells / nCellsOnSideY;<NEW_LINE>double ...
.getMinX() + i * cellSizeX;
1,149,885
public void onItemClick(int position) {<NEW_LINE>ContextMenuItem item = adapter.getItem(position);<NEW_LINE>int standardId = item.getTitleId();<NEW_LINE>ItemClickListener click = item.getItemClickListener();<NEW_LINE>if (click != null) {<NEW_LINE>click.onContextMenuClick(listAdapter, standardId, position, false, null);...
mapActivity.showQuickSearch(latitude, longitude);
1,193,958
public EppResponse run() throws EppException {<NEW_LINE>extensionManager.register(MetadataExtension.class);<NEW_LINE>validateRegistrarIsLoggedIn(registrarId);<NEW_LINE>extensionManager.validate();<NEW_LINE>DateTime now = tm().getTransactionTime();<NEW_LINE>ContactResource existingContact = loadAndVerifyExistence(Contac...
setContact(newContact).build();
1,433,103
public int runScript(File scriptfile, File imagedirectory, String[] scriptArgs, String[] forIDE) {<NEW_LINE>if (null == scriptfile) {<NEW_LINE>// run the Ruby statements from argv (special for setup functional test)<NEW_LINE>fillSysArgv(null, null);<NEW_LINE>createScriptingContainer();<NEW_LINE>executeScriptHeader(new ...
] { forIDE[0] });
685,063
private void fixLogFilename() throws GFLauncherException {<NEW_LINE>if (!GFLauncherUtils.ok(logFilename))<NEW_LINE>logFilename = DEFAULT_LOGFILE;<NEW_LINE>File f = new File(logFilename);<NEW_LINE>if (!f.isAbsolute()) {<NEW_LINE>// this is quite normal. Logging Service will by default return<NEW_LINE>// a relative path...
boolean wasCreated = parent.mkdirs();
367,285
public void insertString(FilterBypass fb, int offset, String string, AttributeSet attr) throws BadLocationException {<NEW_LINE>// get the string of the document<NEW_LINE>String docstr = document.getText(0, document.getLength());<NEW_LINE>// remove the characters that already exists in the<NEW_LINE>// document from the ...
substring(index, index + 1);
88,908
private void acquire0(final Promise<Channel> promise) {<NEW_LINE>try {<NEW_LINE>assert executor.inEventLoop();<NEW_LINE>if (closed) {<NEW_LINE>promise.setFailure(new IllegalStateException("FixedChannelPool was closed"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (acquiredChannelCount.get() < maxConnections) {<NEW_LINE><M...
assert acquiredChannelCount.get() >= 0;
266,269
private StepExpression createExpression(String expressionString, Supplier<Type> tableOrDocStringType, boolean transpose) {<NEW_LINE>requireNonNull(expressionString, "expressionString can not be null");<NEW_LINE>requireNonNull(tableOrDocStringType, "tableOrDocStringType can not be null");<NEW_LINE>final Expression expre...
DataTable.class : targetType, transpose);
782,695
public double priceDerivativeForward(double strike, PutCall putCall) {<NEW_LINE>// Uses Hagan et al SABR function.<NEW_LINE>if (strike <= cutOffStrike) {<NEW_LINE>ValueDerivatives volatilityA = sabrFunction.volatilityAdjoint(<MASK><NEW_LINE>ValueDerivatives pA = BlackFormulaRepository.priceAdjoint(forward, strike, time...
forward, strike, timeToExpiry, sabrData);
1,513,628
private void runAssertion(RegressionEnvironment env, AtomicInteger milestone, boolean advanced, String filter) {<NEW_LINE>String epl = HOOK + "@name('s0') select * from pattern[every s0=SupportBean_S0 -> SupportBean(" + filter + ")];\n";<NEW_LINE>SupportFilterPlanHook.reset();<NEW_LINE>env.compileDeploy(epl).addListene...
sendSBAssert(env, "def", false);
1,067,941
protected Map<Id, BackendEntry> queryByIdPrefix(Id start, boolean inclusiveStart, Id prefix, Map<Id, BackendEntry> entries) {<NEW_LINE>// Query edge(in a vertex) by v-id + column-name-prefix<NEW_LINE>BackendEntry value = this.getEntryById(start, entries);<NEW_LINE>if (value == null) {<NEW_LINE>return Collections.emptyM...
VERTEX, entry.id());
131,602
protected XFormDialog buildDialog(Interface modelItem) {<NEW_LINE>XFormDialogBuilder builder = XFormFactory.createDialogBuilder(messages.get("Dialog.Title"));<NEW_LINE>XForm mainForm = builder.createForm(messages.get("Dialog.Basic.Label"));<NEW_LINE>addWSDLFields(mainForm, modelItem);<NEW_LINE>mainForm.addTextField(OUT...
, messages.get("Dialog.Basic.DeploySkeleton"));
1,331,472
public static GrayU8 localMean(GrayF32 input, GrayU8 output, ConfigLength width, float scale, boolean down, GrayF32 storage1, GrayF32 storage2, @Nullable GrowArray<DogArray_F32> storage3) {<NEW_LINE>int radius = width.computeI(Math.min(input.width<MASK><NEW_LINE>GrayF32 mean = storage1;<NEW_LINE>BlurImageOps.mean(input...
, input.height)) / 2;
1,610,786
public static void aniket() {<NEW_LINE>Scanner scanner = new Scanner(System.in);<NEW_LINE>char[] alpha = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' };<NEW_LINE>char turn = 'X';<NEW_LINE>int input;<NEW_LINE>while (true) {<NEW_LINE>do {<NEW_LINE>System.out.print("enter position:");<NEW_LINE>input = scanner.nextInt();<...
+ alpha[2] + " ");
554,915
private void showScopeHint(final int lbraceStart, final int lbraceEnd) {<NEW_LINE>LogicalPosition bracePosition = myEditor.offsetToLogicalPosition(lbraceStart);<NEW_LINE>Point braceLocation = myEditor.logicalPositionToXY(bracePosition);<NEW_LINE>final int y = braceLocation.y;<NEW_LINE>myAlarm.addRequest(() -> {<NEW_LIN...
(myEditor.getComponent()));
1,053,099
private void addUnassigned(Client client) {<NEW_LINE>for (Security security : client.getSecurities()) {<NEW_LINE>Assignment assignment = new Assignment(security);<NEW_LINE>assignment.setWeight(0);<NEW_LINE>investmentVehicle2weight.put(security, assignment);<NEW_LINE>}<NEW_LINE>for (Account account : client.getAccounts(...
unassigned) unassignedNode.addChild(assignment);
207,147
private Set<VCFHeaderLine> createVCFHeaderLineList(Map<String, VCFHeader> vcfHeaders) {<NEW_LINE>final Set<VCFHeaderLine> headerLines = VCFUtils.smartMergeHeaders(vcfHeaders.values(), true);<NEW_LINE>headerLines.addAll(getDefaultToolVCFHeaderLines());<NEW_LINE>if (keepOriginalChrCounts) {<NEW_LINE>headerLines.add(GATKV...
.getInfoLine(GATKVCFConstants.ORIGINAL_AN_KEY));
1,779,958
public void itemStateChanged(ItemEvent e) {<NEW_LINE>// If selected: disable buttons, save current settings, set to defaults<NEW_LINE>// If deselected:restore current settings, enable buttons<NEW_LINE>if (e.getStateChange() == ItemEvent.SELECTED) {<NEW_LINE>foregroundButtons[row].setEnabled(false);<NEW_LINE>bold[row].s...
[row].setEnabled(false);
691,117
private void updateKeys(boolean fromListener) {<NEW_LINE>Element genldata = p.getPrimaryConfigurationData();<NEW_LINE>// NOI18N<NEW_LINE>Element viewEl = XMLUtil.findElement(genldata, "view", FreeformProjectType.NS_GENERAL);<NEW_LINE>if (viewEl != null) {<NEW_LINE>// NOI18N<NEW_LINE>Element itemsEl = XMLUtil.findElemen...
keys = XMLUtil.findSubElements(itemsEl);
1,257,658
public void mousePressed(MouseEvent evt) {<NEW_LINE>requestFocus();<NEW_LINE>// Focus events not fired sometimes?<NEW_LINE>if (isEditable()) {<NEW_LINE>setCaretVisible(true);<NEW_LINE>}<NEW_LINE>focusedComponentRef = new WeakReference<JEditTextArea>(JEditTextArea.this);<NEW_LINE>if (popup != null && evt.isPopupTrigger(...
evt, line, offset, dot);
1,811,310
private static Timer makeTimer(AbstractInstant instant, String closure, JobDataMap dataMap) {<NEW_LINE>Logger logger = LoggerFactory.getLogger(ScriptExecution.class);<NEW_LINE>JobKey jobKey = new JobKey(instant.toString() + <MASK><NEW_LINE>Trigger trigger = newTrigger().startAt(instant.toDate()).build();<NEW_LINE>Timer...
": " + closure.toString());
628,242
private static List<StandardServiceInitiator> buildQuarkusServiceInitiatorList(RecordedState rs) {<NEW_LINE>final ArrayList<StandardServiceInitiator> serviceInitiators = new ArrayList<StandardServiceInitiator>();<NEW_LINE>// Enforces no bytecode enhancement will happen at runtime:<NEW_LINE>serviceInitiators.add(Disable...
serviceInitiators.add(JdbcEnvironmentInitiator.INSTANCE);
43,078
public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException {<NEW_LINE>// include cookies<NEW_LINE>resp.addHeader("Access-Control-Allow-Methods", "GET, POST, PATCH, PUT, DELETE, OPTIONS");<NEW_LINE>// get input parameters<NEW_LINE>Map<String, String> <MASK><NEW_LINE>// checks how many instan...
params = Utils.getRequestParameters(req);
749,069
public okhttp3.Call connectPostNamespacedServiceProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}...
.parameterToPair("path", path2));
835,282
public void marshall(CreateModelRequest createModelRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createModelRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createModelRequest.getModelNam...
createModelRequest.getLabelsInputConfiguration(), LABELSINPUTCONFIGURATION_BINDING);
621,723
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache<MASK><NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>predef_filter_result result = new predef_filter_result();<NEW_LINE>if (e instanceof rpc_invalid_operation) {<NEW_LINE>result.ex = (rpc_invalid_operation) e;<NEW_LINE>result.setExI...
.thrift.protocol.TMessageType.REPLY;
727,262
public QueryDumpInfo deserialize(JsonElement jsonElement, Type type, JsonDeserializationContext jsonDeserializationContext) throws JsonParseException {<NEW_LINE>QueryDumpInfo dumpInfo = new QueryDumpInfo();<NEW_LINE>JsonObject dumpJsonObject = jsonElement.getAsJsonObject();<NEW_LINE>// 1. statement<NEW_LINE>String stat...
get(tableKey).getAsJsonObject();
1,346,806
private void decodeValueBlocks() {<NEW_LINE>int err = checkDumpAndUpdateLines();<NEW_LINE>if (err != 0) {<NEW_LINE><MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Get all Value Blocks (skip other blocks).<NEW_LINE>ArrayList<String> tmpVBs = new ArrayList<>();<NEW_LINE>String header = "";<NEW_LINE>int blockCounter = 0;<N...
Common.isValidDumpErrorToast(err, this);
361,781
final GetCompatibleVersionsResult executeGetCompatibleVersions(GetCompatibleVersionsRequest getCompatibleVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getCompatibleVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,391,918
public void handleCommand(InsteonPLMBindingConfig conf, Command cmd, InsteonDevice dev) {<NEW_LINE>try {<NEW_LINE>if (cmd == OnOffType.ON) {<NEW_LINE>Msg m = dev.makeStandardMessage((byte) 0x0f, (byte) 0x11, (byte) 0xff);<NEW_LINE>dev.enqueueMessage(m, m_feature);<NEW_LINE>logger.info("{}: sent msg to switch {} on", nm...
"{}: command send message creation error: ", nm(), e);
1,243,293
static <T> ChangeEvent<T> fromBsonDocument(final BsonDocument document, final Class<T> documentClass, CodecRegistry codecRegistry) {<NEW_LINE>try {<NEW_LINE>checkContainsKey(Fields.ID_FIELD, document, "document");<NEW_LINE>checkContainsKey(<MASK><NEW_LINE>checkContainsKey(Fields.NS_FIELD, document, "document");<NEW_LIN...
Fields.OPERATION_TYPE_FIELD, document, "document");
1,296,048
private void loadNode1148() {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.FiniteStateMachineType_LastTransition_Id, new QualifiedName(0, "Id"), new LocalizedText("en", "Id"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new DataValue(Variant.NULL_VALUE), Identi...
.expanded(), true));
1,268,829
public void init() {<NEW_LINE>RhoBluetoothManager.logi(TAG, "init()");<NEW_LINE>// constructor<NEW_LINE>mActivity = RhodesActivity.getInstance();<NEW_LINE>if (mActivity == null)<NEW_LINE>throw new IllegalStateException("No rhodes activity instance at this moment");<NEW_LINE>mDeviceName = "NONAME";<NEW_LINE>mInputBuffer...
getInstance().addRhoListener(this);
1,424,125
private int hashValue(int ordinal, int fieldIdx) {<NEW_LINE>int lastFieldPath = fieldPathIndexes[fieldIdx].length - 1;<NEW_LINE>for (int i = 0; i < lastFieldPath; i++) {<NEW_LINE>int fieldPosition = fieldPathIndexes[fieldIdx][i];<NEW_LINE>ByteArrayOrdinalMap ordinalMap = typeStates[fieldIdx][i].ordinalMap;<NEW_LINE>lon...
.getByteData().getUnderlyingArray();
1,334,747
void preparePage() {<NEW_LINE>RP.post(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>Page page = pageModel.getWebKit().getPage();<NEW_LINE>// NOI18N<NEW_LINE>String prefix = Files.getScript("knockout-pre");<NEW_LINE>// NOI18N<NEW_LINE>prefix = prefix.replace("\"", "\\\"");<NEW_LINE>...
suffix.replace("\"", "\\\"");
645,290
public static ListTemplatesResponse unmarshall(ListTemplatesResponse listTemplatesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTemplatesResponse.setRequestId(_ctx.stringValue("ListTemplatesResponse.RequestId"));<NEW_LINE>listTemplatesResponse.setErrorDesc(_ctx.stringValue("ListTemplatesResponse.ErrorDesc"));<NEW_...
(_ctx.stringValue("ListTemplatesResponse.ErrorCode"));
1,068,292
public void handleEvent(Event ev) {<NEW_LINE>if (ev.widget == comp) {<NEW_LINE>int[] weights = sash.getWeights();<NEW_LINE>int current_weight = weights[is_lhs ? 0 : 1];<NEW_LINE>if (comp_weight != current_weight) {<NEW_LINE>COConfigurationManager.setParameter(config_key, weights[0] + "," + weights[1]);<NEW_LINE>// sash...
{ 1000 - comp_weight, comp_weight });
1,350,333
private void updateNorthPanel() {<NEW_LINE>if (ApplicationManager.getApplication().isUnitTestMode())<NEW_LINE>return;<NEW_LINE>myNorthPanel.setVisible(UISettings.getInstance().SHOW_NAVIGATION_BAR && !(myContainer instanceof DockContainer.Dialog) && !UISettings.getInstance().PRESENTATION_MODE);<NEW_LINE>IdeRootPaneNorth...
String each = existing.next();
139,482
private static void runAssertionSingleMaxSimple(RegressionEnvironment env, SupportConditionHandlerFactory.SupportConditionHandler handler) {<NEW_LINE>String[] fields = new String[] { "a", "b" };<NEW_LINE>env.sendEventBean(new SupportBean_A("A1"));<NEW_LINE>env.sendEventBean(new SupportBean_A("A2"));<NEW_LINE>handler.ge...
sendEventBean(new SupportBean_A("A4"));
280,410
public SimScorer scorer(float boost, CollectionStatistics collectionStats, TermStatistics... termStats) {<NEW_LINE>final SimScorer inScorer = in.<MASK><NEW_LINE>return new SimScorer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public float score(float freq, long norm) {<NEW_LINE>float score = inScorer.score(freq, norm);<N...
scorer(boost, collectionStats, termStats);
638,033
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>// Inflate the layout for this fragment<NEW_LINE>mTripsView = inflater.inflate(R.<MASK><NEW_LINE>ButterKnife.bind(this, mTripsView);<NEW_LINE>SharedPreferences sharedPreferences = PreferenceManager.getD...
layout.fragment_my_trips, container, false);
652,043
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
751,156
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new <MASK><NEW_LINE>String epl = "@name('s0') select c1.event_criteria_id as ecid, " + "c1.priority as priority, " + "c2.priority as prio, cast(count(*), int) as cnt from " + "SupportHierarchyEvent#lastevent as c1, " + "SupportHierarchyEvent#groupw...
String[] { "prio", "cnt" };
66,094
final TerminateJobResult executeTerminateJob(TerminateJobRequest terminateJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(terminateJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,502,378
ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW...
CacheManager.notify(Unit.class);
1,530,600
private static void addDependencies(Language language, ProjectType project, List<Dependency> dependencyList, BufferedWriter wr) throws IOException {<NEW_LINE>write(wr, "dependencies {");<NEW_LINE>if (!project.equals(ProjectType.CORE)) {<NEW_LINE>write(wr, "implementation project(\":" + ProjectType.CORE.getName() + "\")...
write(wr, language.dependencies);
1,228,845
final UpdatePullRequestApprovalStateResult executeUpdatePullRequestApprovalState(UpdatePullRequestApprovalStateRequest updatePullRequestApprovalStateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updatePullRequestApprovalStateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
938,315
public ChangeStatus checkStatus(Database database) {<NEW_LINE>try {<NEW_LINE>ChangeStatus changeStatus = new ChangeStatus();<NEW_LINE>View newView = SnapshotGeneratorFactory.getInstance().createSnapshot(new View(getCatalogName(), getSchemaName(), getNewViewName()), database);<NEW_LINE>View oldView = SnapshotGeneratorFa...
ChangeStatus().unknown(e);
919,440
public void append(MaryData md) {<NEW_LINE>if (md == null)<NEW_LINE>throw new NullPointerException("Received null marydata");<NEW_LINE>if (!md.getType().equals(this.getType()))<NEW_LINE>throw new IllegalArgumentException("Cannot append mary data of type `" + md.getType().name() + "' to mary data of type `" + this.getTy...
appendAudio(md.getAudio());
1,056,519
private static void complementInsertAndDelete(final SplitHunk hunk) {<NEW_LINE>final List<BeforeAfter<List<String>>> steps = hunk.getPatchSteps();<NEW_LINE>final BeforeAfter<List<String>> first = steps.get(0);<NEW_LINE>final BeforeAfter<List<String>> last = steps.get(steps.size() - 1);<NEW_LINE>final boolean complement...
contextBefore.size() - 1);
457,495
private void initTableNameMappings(Collection<TableRule> tableRules, Map<String, Set<String>> tableNameMappings, List<String> groupNames) {<NEW_LINE>for (TableRule tableRule : tableRules) {<NEW_LINE><MASK><NEW_LINE>if ((tableRule.getDbPartitionKeys() == null || tableRule.getDbPartitionKeys().isEmpty()) && (tableRule.ge...
String logicalTableName = tableRule.getVirtualTbName();
329,182
public void refresh() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>final ArrayList<MapPack> values = new ArrayList<MapPack>();<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objType", objType);<NEW_LINE>param.put("counter", counter);<NEW_LINE>isActive = false;<NEW_LINE>...
.iterator()), max);
374,286
public String run() {<NEW_LINE>MFMAgreement agreement = (MFMAgreement) getParameter(FinancialSetting.AGREEMENT_PO);<NEW_LINE>MFMBatch batch = (MFMBatch) getParameter(FinancialSetting.BATCH_PO);<NEW_LINE>String trxName = (String) getParameter(FinancialSetting.PARAMETER_TRX_NAME);<NEW_LINE>// Nothing<NEW_LINE>if (agreeme...
AdempiereException("@FM_TransactionType_ID@ @NotFound@ " + MFMTransactionType.TYPE_LoanSuspendInterestCalculated);
1,740,444
void validateStatementSignature() throws SQLServerException, GeneralSecurityException {<NEW_LINE>ByteBuffer enclaveReportPackageBuffer = ByteBuffer.wrap(enclaveReportPackage).order(ByteOrder.LITTLE_ENDIAN);<NEW_LINE><MASK><NEW_LINE>int version = enclaveReportPackageBuffer.getInt();<NEW_LINE>int signatureScheme = enclav...
int packageSize = enclaveReportPackageBuffer.getInt();
171,195
protected void customizeCellRenderer(JTable table, Object value, boolean selected, boolean hasFocus, int row, int column) {<NEW_LINE>if (value instanceof MapInfo) {<NEW_LINE>MapInfo info = (MapInfo) value;<NEW_LINE>if (!selected && (info == MapInfo.SEPARATOR || info.type == MapInfo.Type.UNREGISTERED)) {<NEW_LINE>setBac...
directory), "\\") + "/");
1,124,108
protected void log(OperationType type, Optional<Integer> numItems, Optional<Integer> bytes, long start, String path) {<NEW_LINE>final String message = String.format("%s (items: %s) (bytes: %s) in %s (%s)", type.name(), numItems.orElse(1), bytes.orElse(0), JavaUtils<MASK><NEW_LINE>final long duration = System.currentTim...
.duration(start), path);
1,617,399
// transfer demand from previous to next<NEW_LINE>public void addMissingRequests() {<NEW_LINE>int missed = 1;<NEW_LINE>long toRequest = 0L;<NEW_LINE>do {<NEW_LINE>long localQueued = queued.getAndSet(0l);<NEW_LINE>Subscription <MASK><NEW_LINE>long missedOutput = produced.get();<NEW_LINE>Subscription localActive = active...
localSub = next.getAndSet(null);
1,032,023
public boolean applies(Ability abilityToModify, Ability source, Game game) {<NEW_LINE>if (!(abilityToModify instanceof SpellAbility)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!game.getOpponents(source.getControllerId()).contains(abilityToModify.getControllerId())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Sp...
(target, source, game));
988,569
public ListAutoMLJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListAutoMLJobsResult listAutoMLJobsResult = new ListAutoMLJobsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con...
String currentParentElement = context.getCurrentParentElement();