idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
931,818
private static RubyEncoding processDRegexpElement(RubyContext context, RegexpOptions options, RubyEncoding regexpEnc, RopeWithEncoding str) throws DeferredRaiseException {<NEW_LINE>RubyEncoding strEnc = str.getEncoding();<NEW_LINE>if (options.isEncodingNone() && strEnc != Encodings.BINARY) {<NEW_LINE>if (str.getRope()....
.regexpError("/.../n has a non escaped non ASCII character in non ASCII-8BIT script", null));
1,524,024
final ListCoreNetworksResult executeListCoreNetworks(ListCoreNetworksRequest listCoreNetworksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCoreNetworksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
false), new ListCoreNetworksResultJsonUnmarshaller());
1,410,663
private double evaluate(GeneticConfiguration config, MatchListener listener) {<NEW_LINE>Configuration cconfig = config.getConfiguration();<NEW_LINE>Processor proc = new Processor(cconfig, database);<NEW_LINE>TestFileListener eval = makeEval(cconfig, testdb, proc);<NEW_LINE>if (active || incomplete)<NEW_LINE>// in activ...
config, seval.getFNumber());
1,828,425
public BLangNode transform(ImplicitAnonymousFunctionExpressionNode implicitAnonymousFunctionExpressionNode) {<NEW_LINE>BLangArrowFunction arrowFunction = (BLangArrowFunction) TreeBuilder.createArrowFunctionNode();<NEW_LINE>arrowFunction.pos = getPosition(implicitAnonymousFunctionExpressionNode);<NEW_LINE>arrowFunction....
, anonymousModelHelper.getNextAnonymousFunctionKey(packageID));
1,792,449
public boolean isSubtype(final AnnotationMirror subAnno, final AnnotationMirror superAnno) {<NEW_LINE>if (AnnotationUtils.areSame(subAnno, bottom)) {<NEW_LINE>return true;<NEW_LINE>} else if (AnnotationUtils.areSame(superAnno, bottom)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (isPolymorphicQualifier(subAnno)) {<...
String> superVal = getAccumulatedValues(superAnno);
977,688
public ApprovalRuleEventMetadata unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ApprovalRuleEventMetadata approvalRuleEventMetadata = new ApprovalRuleEventMetadata();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
class).unmarshall(context));
1,250,089
protected void detectOctave(II integral, int skip, int... featureSize) {<NEW_LINE>this.integral = integral;<NEW_LINE>int w = integral.width / skip;<NEW_LINE>int h = integral.height / skip;<NEW_LINE>// resize the output intensity image taking in account subsampling<NEW_LINE>for (int i = 0; i < intensity.length; i++) {<N...
], hessXX, hessYY, hessXY);
853,231
private void handleIgnoredFiles(final Set<File> files) {<NEW_LINE>Runnable outOfAWT = new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>for (File f : files) {<NEW_LINE>if (HgUtils.isIgnored(f, true)) {<NEW_LINE>// refresh status for this file<NEW_LINE><MASK><NEW_LINE>boolean exists = f...
boolean isDirectory = f.isDirectory();
734,517
private Method findCompatibleMethod(List<Object> args, Class target, String methodName) {<NEW_LINE>Method retval = null;<NEW_LINE>int eligibleCount = 0;<NEW_LINE>LOG.debug("Target class: " + target.getName() + ", methodName: " + methodName + ", args: " + args);<NEW_LINE>Method[] methods = target.getMethods();<NEW_LINE...
target, methodName, args }));
1,791,619
protected void doModification(ResultIterator resultIterator) throws Exception {<NEW_LINE>WorkingCopy copy = WorkingCopy.get(resultIterator.getParserResult());<NEW_LINE>copy.toPhase(Phase.RESOLVED);<NEW_LINE><MASK><NEW_LINE>GeneratorUtilities gu = GeneratorUtilities.get(copy);<NEW_LINE>CompilationUnitTree cut = copy.get...
TreeMaker tm = copy.getTreeMaker();
1,542,375
private void updateLayout() {<NEW_LINE>UISettings uiSettings = UISettings.getInstance();<NEW_LINE>if (myWidescreen != uiSettings.getWideScreenSupport()) {<NEW_LINE>JComponent documentComponent = (myWidescreen ? myVerticalSplitter : myHorizontalSplitter).getInnerComponent();<NEW_LINE>myWidescreen = uiSettings.getWideScr...
component = getComponentAt(ToolWindowAnchor.LEFT);
985,060
final GetSavingsPlansPurchaseRecommendationResult executeGetSavingsPlansPurchaseRecommendation(GetSavingsPlansPurchaseRecommendationRequest getSavingsPlansPurchaseRecommendationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSavingsPlansPurchaseRecommendationRequest);<NEW_LINE><MASK><N...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,313,507
public static void horizontal9(Kernel1D_S32 kernel, GrayU8 image, GrayI16 dest) {<NEW_LINE>final byte[] dataSrc = image.data;<NEW_LINE>final short[] dataDst = dest.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int k4 = kernel...
k5 = kernel.data[4];
770,763
private static void create(File root, int val, final BoundedRangeModel progress) throws IOException {<NEW_LINE>for (int i = 0; i < val; i++) {<NEW_LINE>final int progval = i;<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>progress.setValue(progval);<NEW_LINE>}<NEW_L...
OutputStream os = new FileOutputStream(tomake);
1,447,296
private void parseInvoke(Variable receiver) throws IOException, ListingParseException {<NEW_LINE>InvokeInstruction insn = new InvokeInstruction();<NEW_LINE>insn.setReceiver(receiver);<NEW_LINE>boolean hasInstance = true;<NEW_LINE>switch((String) lexer.getTokenValue()) {<NEW_LINE>case "invoke":<NEW_LINE>insn.setType(Inv...
(new Variable[0]));
1,805,025
public FixResult executeFix(Map<String, String> issue, Map<String, Object> clientMap, Map<String, String> ruleParams) {<NEW_LINE>String resourceId = issue.get("_resourceid");<NEW_LINE>Map<String, Object> ec2ClinetMap = null;<NEW_LINE>AmazonEC2 ec2Client = null;<NEW_LINE>try {<NEW_LINE>ec2ClinetMap = PublicAccessAutoFix...
LOGGER.error("error in unused ag autofix {}", e);
1,411,819
public void marshall(CreateFindingsFilterRequest createFindingsFilterRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createFindingsFilterRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(cre...
createFindingsFilterRequest.getPosition(), POSITION_BINDING);
225,973
void afterBeanDiscovery(@Observes AfterBeanDiscovery addEvent) {<NEW_LINE>addEvent.addBean().types(Driver.class).qualifiers(Default.Literal.INSTANCE, Any.Literal.INSTANCE).scope(ApplicationScoped.class).name(Driver.class.getName()).beanClass(Driver.class).createWith(creationContext -> {<NEW_LINE>org.eclipse.microprofil...
helidonConfig.as(Neo4j::create);
1,835,159
private TRANSPORT configureTransport() {<NEW_LINE>if (req == null)<NEW_LINE>return UNDEFINED;<NEW_LINE>String s = <MASK><NEW_LINE>if (s == null)<NEW_LINE>return UNDEFINED;<NEW_LINE>if (s.equals(UNDEFINED.name()) && Utils.rawWebSocket(req)) {<NEW_LINE>return TRANSPORT.WEBSOCKET;<NEW_LINE>}<NEW_LINE>s = s.replace("-", "_...
req.getHeader(HeaderConfig.X_ATMOSPHERE_TRANSPORT);
1,683,247
public static MarkedString computeJavadoc(IJavaElement element) throws CoreException {<NEW_LINE>IMember member = null;<NEW_LINE>String result = null;<NEW_LINE>if (element instanceof ITypeParameter) {<NEW_LINE>member = ((<MASK><NEW_LINE>} else if (element instanceof IMember) {<NEW_LINE>member = (IMember) element;<NEW_LI...
ITypeParameter) element).getDeclaringMember();
594,912
private List<Context> initOneDimensionalDenseContextsAndContext2DataGivenOutliers(List<ContextualDatum> data, int dimension, List<ContextualDatum> inputOutliers) {<NEW_LINE>List<Context> contextsContainingOutliers = initOneDimensionalDenseContextsAndContext2Data(inputOutliers, dimension, 1.0);<NEW_LINE>List<Context> re...
) >= denseContextTau) ? true : false;
1,741,080
public void printUsage() {<NEW_LINE>// print usage in not sorted fields order (by default its sorted by description)<NEW_LINE>PrintStream out = System.out;<NEW_LINE>out.println();<NEW_LINE>out.println("jadx - dex to java decompiler, version: " + JadxDecompiler.getVersion());<NEW_LINE>out.println();<NEW_LINE>out.println...
>(params.size());
578,710
public static Map<String, Set<Integer>> loadLists(final Collection<String> geocodes) {<NEW_LINE>final Map<String, Set<Integer>> cacheLists = new HashMap<>();<NEW_LINE>final String query = "SELECT list_id, geocode FROM " + dbTableCachesLists + " WHERE " + whereGeocodeIn(geocodes);<NEW_LINE>try (Cursor cursor = database....
listIds = new HashSet<>();
823,454
private void addFeedBlockedRowIfNodeIsBlocking(ClusterStateBundle stateBundle, NodeInfo nodeInfo, HtmlTable.Row nodeRow) {<NEW_LINE>// We only show a feed block row if the node is actually blocking feed in the cluster, not<NEW_LINE>// just if limits have been exceeded (as feed block may be config disabled).<NEW_LINE>//...
feedBlockRow = new HtmlTable.Row();
1,606,358
final DescribeInstancePatchesResult executeDescribeInstancePatches(DescribeInstancePatchesRequest describeInstancePatchesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeInstancePatchesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
579,905
// Wrong usage of Javascript keyword:in<NEW_LINE>private void split(Picture src, Picture dst, int mbX, int mbY, int sliceMbCount, int vStep, int vOffset) {<NEW_LINE>byte[][] inData = src.getData();<NEW_LINE>byte[][] inhbdData = src.getLowBits();<NEW_LINE>byte[][] outData = dst.getData();<NEW_LINE>byte[][] outhbdData = ...
sliceMbCount, 1, vStep, vOffset);
1,558,291
private static boolean showDialog(URL whereTo) {<NEW_LINE>String msg = NbBundle.getMessage(FeedbackSurvey.class, "MSG_FeedbackSurvey_Message");<NEW_LINE>String tit = NbBundle.getMessage(FeedbackSurvey.class, "MSG_FeedbackSurvey_Title");<NEW_LINE>String yes = NbBundle.getMessage(FeedbackSurvey.class, "MSG_FeedbackSurvey...
getDefault().notify(nd);
394,585
public void actionPerformed(final ActionEvent e) {<NEW_LINE>final IdeFocusManager fm = IdeFocusManager.findInstanceByContext(myContext);<NEW_LINE>final ActionCallback typeAhead = new ActionCallback();<NEW_LINE>final String id = ActionManager.getInstance().getId(myAction.getAction());<NEW_LINE>if (id != null) {<NEW_LINE...
AnAction menuItemAction = myAction.getAction();
924,067
// Parse double phrase<NEW_LINE>protected ParseResult parseDouble(ExtractResult extResult) {<NEW_LINE>ParseResult result = new ParseResult(extResult.getStart(), extResult.getLength(), extResult.getText(), extResult.getType(<MASK><NEW_LINE>String resultText = extResult.getText();<NEW_LINE>if (cjkConfig.getDoubleAndRound...
), null, null, null);
1,430,516
// 4th Add<NEW_LINE>private void runAddAnimation(boolean removalsPending, boolean changesPending, boolean movesPending, boolean additionsPending) {<NEW_LINE>if (additionsPending) {<NEW_LINE>final ArrayList<ViewHolder> additions = new ArrayList<>();<NEW_LINE>// Sorting addition animations based on it's original layout p...
Math.max(moveDuration, changeDuration);
45,115
private TemporalAccessor parseSingleDateFromWebsite(String dateStringFromWebsite) {<NEW_LINE>TemporalAccessor date = null;<NEW_LINE>// Some entries contain double spaces in the date string (which would break our regexs below)<NEW_LINE>String dateStringWithoutDoubleSpaces = dateStringFromWebsite.replaceAll("\\s\\s+", " ...
(dateMatcherAfter2000.group(1));
1,334,687
public void process(GrayF32 intensityImage, @Nullable QueueCorner localMin, @Nullable QueueCorner localMax) {<NEW_LINE>if (localMin != null)<NEW_LINE>localMin.reset();<NEW_LINE>if (localMax != null)<NEW_LINE>localMax.reset();<NEW_LINE>// the defines the region that can be processed<NEW_LINE>int endX = intensityImage.wi...
!= null ? blockInfo.cornersMin : null;
1,252,239
private boolean updateBytes(UserStatisticsVO userStats, long newCurrentBytesSent, long newCurrentBytesReceived) {<NEW_LINE><MASK><NEW_LINE>long oldNetBytesReceived = userStats.getNetBytesReceived();<NEW_LINE>long oldCurrentBytesSent = userStats.getCurrentBytesSent();<NEW_LINE>long oldCurrentBytesReceived = userStats.ge...
long oldNetBytesSent = userStats.getNetBytesSent();
997,517
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>TriggerSmartContract.Builder build = TriggerSmartContract.newBuilder();<NEW_LINE>TransactionExtention.Builder trxExtBuilder = TransactionExtention.newBuilder();<NEW_LINE>Return.Builder retBuilder = Return.newBu...
parameter = jsonObject.getString("parameter");
284,571
public <E> Collection<E> create(final Class<?> collectionType, final Class<?> elementType, final int capacity) {<NEW_LINE>if (collectionType.isInterface()) {<NEW_LINE>if (Set.class == collectionType || Collection.class == collectionType) {<NEW_LINE>return new LinkedHashSet<>(capacity);<NEW_LINE>} else if (List.class ==...
return new ArrayList<>(capacity);
369,691
private void calculateMovementTimepoints(long timeNowNS, double newNeedlePosition, boolean instantMovement) {<NEW_LINE>if (instantMovement) {<NEW_LINE>needleIsMoving = false;<NEW_LINE>needleposition = newNeedlePosition;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>needleIsMoving = true;<NEW_LINE>zeroTimeNanoSeconds = timeNowNS...
- 0.5 * decelerationTime * decelerationTime * needleAcceleration;
561,386
public Request<ModifyVpcAttributeRequest> marshall(ModifyVpcAttributeRequest modifyVpcAttributeRequest) {<NEW_LINE>if (modifyVpcAttributeRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<ModifyVpcAttributeRequest> request = new DefaultRe...
request.addParameter("Version", "2015-10-01");
1,576,306
public static ProcedureEdge<?, ?> of(ProcedureVertex<?, ?> from, ProcedureVertex<?, ?> to, StructureEdge.Native<?, ?> edge, int order, boolean isForward) {<NEW_LINE>if (edge.encoding().equals(ISA)) {<NEW_LINE>boolean isTransitive = edge.isTransitive();<NEW_LINE>if (isForward)<NEW_LINE>return new Isa.Forward(from.asThin...
), edge, order, isForward);
878,560
public static LocalDBLogger initializeLocalDBLogger(final PwmApplication pwmApplication) {<NEW_LINE>final LocalDB localDB = pwmApplication.getLocalDB();<NEW_LINE>if (pwmApplication.getApplicationMode() == PwmApplicationMode.READ_ONLY) {<NEW_LINE>LOGGER.trace(() -> "skipping initialization of LocalDBLogger due to read-o...
localDBLogger = initLocalDBLogger(localDB, pwmApplication);
737,489
public static long parseDecimalMemorySizeToBinary(String size) {<NEW_LINE>String[] mem = ParseUtil.whitespaces.split(size);<NEW_LINE>if (mem.length < 2) {<NEW_LINE>// If no spaces, use regexp<NEW_LINE>Matcher matcher = BYTES_PATTERN.matcher(size.trim());<NEW_LINE>if (matcher.find() && matcher.groupCount() == 2) {<NEW_L...
] = matcher.group(1);
1,019,194
public static void showOkDialog(final Activity c, final String message, final Runnable action, Runnable onDismiss) {<NEW_LINE>final AlertDialog.Builder builder <MASK><NEW_LINE>builder.setMessage(message);<NEW_LINE>builder.setCancelable(true);<NEW_LINE>builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickLi...
= new AlertDialog.Builder(c);
1,691,866
protected void configure(KafkaJsonSchemaSerializerConfig config) {<NEW_LINE>configureClientProperties<MASK><NEW_LINE>this.normalizeSchema = config.normalizeSchema();<NEW_LINE>this.autoRegisterSchema = config.autoRegisterSchema();<NEW_LINE>this.useSchemaId = config.useSchemaId();<NEW_LINE>this.idCompatStrict = config.ge...
(config, new JsonSchemaProvider());
1,250,564
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl(player.getLibrary().getTopCards(game, 7));<NEW_LINE>TargetCard target = new TargetCardInLibrary(0, 1,...
getControllerId(), source, game);
1,628,408
public static DescribeResourceCoverageDetailResponse unmarshall(DescribeResourceCoverageDetailResponse describeResourceCoverageDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeResourceCoverageDetailResponse.setRequestId(_ctx.stringValue("DescribeResourceCoverageDetailResponse.RequestId"));<NEW_LINE>describe...
("DescribeResourceCoverageDetailResponse.Data.Items[" + i + "].DeductQuantity"));
1,334,090
final ListLicensesResult executeListLicenses(ListLicensesRequest listLicensesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listLicensesRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListLicensesRequest> request = null;<NEW_LINE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
375,534
public List<FeedEntryStatus> findBySubscriptions(User user, List<FeedSubscription> subs, boolean unreadOnly, List<FeedEntryKeyword> keywords, Date newerThan, int offset, int limit, ReadingOrder order, boolean includeContent, boolean onlyIds, String tag) {<NEW_LINE>int capacity = offset + limit;<NEW_LINE>Comparator<Feed...
capacity, order, last, tag);
985,510
public double[] calculate(String pattern, List<CustomInfo> customInfos, Map<String, double[]> businessItemData, int totalSize) {<NEW_LINE>double[] result = new double[totalSize];<NEW_LINE>for (int i = 0; i < totalSize; i++) {<NEW_LINE>try {<NEW_LINE>String expression = pattern;<NEW_LINE>for (CustomInfo customInfo : cus...
String customPattern = customInfo.getPattern();
1,389,683
final UpdateResourceEventConfigurationResult executeUpdateResourceEventConfiguration(UpdateResourceEventConfigurationRequest updateResourceEventConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateResourceEventConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateResourceEventConfiguration");
305,704
@SubmarineApi<NEW_LINE>public // Query all departments and respond to the front end in tree structure data format<NEW_LINE>Response tree(@QueryParam("deptCode") String likeDeptCode, @QueryParam("deptName") String likeDeptName) {<NEW_LINE>LOG.info("SysDeptRestApi.tree()");<NEW_LINE>List<SysDeptEntity> sysDeptList = null...
where.put("deptName", likeDeptName);
1,283,890
public void onWalk(IToolStackView tool, int level, LivingEntity living, BlockPos prevPos, BlockPos newPos) {<NEW_LINE>// no point trying if not on the ground<NEW_LINE>if (tool.isBroken() || !living.isOnGround() || living.level.isClientSide) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// must have speed<NEW_LINE>AttributeIns...
level), Operation.ADDITION));
114,903
static void parseExpressions(StringBuilder expressions, NameValidator nameInConditionValidator, String exceptionInfo, Set<String> createObjects, List<Statement> list, EncodedValueLookup lookup, String lastStmt) {<NEW_LINE>for (Statement statement : list) {<NEW_LINE>if (statement.getKeyword() == Statement.Keyword.ELSE) ...
.getValue()) + "; }\n");
1,337,357
protected void readElementsFromXml(EwsServiceXmlReader reader) throws Exception {<NEW_LINE>reader.readStartElement(XmlNamespace.Messages, XmlElementNames.RootFolder);<NEW_LINE>int totalItemsInView = reader.readAttributeValue(Integer.class, XmlAttributeNames.TotalItemsInView);<NEW_LINE>boolean moreItemsAvailable = !read...
this.results.getItems());
380,855
public final void multiLevelUpExpr() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST multiLevelUpExpr_AST = null;<NEW_LINE>AST tmp73_AST = null;<NEW_LINE>tmp73_AST = astFactory.create(LT(1));<NEW_LINE>astFactory.addASTChild(current...
)).add(multiLevelUpExpr_AST));
1,001,780
public void initialise() {<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>setMinimumSize(new Dimension(300, 200));<NEW_LINE>setModal(true);<NEW_LINE>final JButton okayButton = new JButton(new OkayAction());<NEW_LINE>final JButton cancelButton = new JButton(new CancelAction());<NEW_LINE>final JPanel bottomPanel = new ...
4), 0, 0));
601,305
public void readCustomNBT(@Nonnull CompoundTag nbt, boolean descPacket) {<NEW_LINE>super.readCustomNBT(nbt, descPacket);<NEW_LINE>energyStorage = nbt.getInt("energy");<NEW_LINE>redstoneControlInverted = nbt.getBoolean("redstoneControlInverted");<NEW_LINE>facing = Direction.from3DDataValue(nbt.getInt("facing"));<NEW_LIN...
nbt.getIntArray("fakeLight_" + i);
302,242
private void removeNodesFromCluster(List<KubernetesClusterVmMapVO> vmMaps) throws CloudRuntimeException {<NEW_LINE>for (KubernetesClusterVmMapVO vmMapVO : vmMaps) {<NEW_LINE>UserVmVO userVM = userVmDao.findById(vmMapVO.getVmId());<NEW_LINE>LOGGER.info(String.format("Removing vm : %s from cluster %s", userVM.getDisplayN...
KubernetesCluster.Event.OperationFailed, e);
1,363,773
private HttpRequest.Builder requestFor(String url, Map<ConfigurationKeys, MaybeConfiguration> configuration, ConfigurationLevel configurationLevel) {<NEW_LINE>// check if platform mode is active<NEW_LINE>boolean platformMode = configurationLevel.getOrganizationId().isPresent() && configuration.get(PLATFORM_MODE_ENABLED...
header("Authorization", "Bearer " + mollieAPIKey);
1,763,048
public static void doAdd(File repository, File file, OutputLogger logger) throws HgException {<NEW_LINE>if (repository == null)<NEW_LINE>return;<NEW_LINE>if (file == null)<NEW_LINE>return;<NEW_LINE>if (file.isDirectory())<NEW_LINE>return;<NEW_LINE>// We do not look for file to ignore as we should not here<NEW_LINE>// w...
String> list = exec(command);
1,325,123
public static void castMultipleWithAttributeForFree(Player player, Ability source, Game game, Cards cards, FilterCard filter, int maxSpells, SpellCastTracker spellCastTracker) {<NEW_LINE>if (maxSpells == 1) {<NEW_LINE>CardUtil.castSpellWithAttributesForFree(player, source, game, cards, filter);<NEW_LINE>return;<NEW_LIN...
removeZone(Zone.STACK, game);
181,174
public LogData readFlowLogs(final int execId, final int startByte, final int length) throws ExecutorManagerException {<NEW_LINE>logger.info("readFlowLogs called");<NEW_LINE>if (this.flowRunner == null) {<NEW_LINE>logger.warn(String.format("Attempt to read flow logs before flow execId: %d got a chance to start", execId)...
.format("Flow log file does not exist for flow execId: %d", execId));
122,557
private String createElementIdentifier(final ModelElementInstance element) {<NEW_LINE>final List<ModelElementInstance> identifiableElementChain = new ArrayList<>();<NEW_LINE>ModelElementInstance current = element;<NEW_LINE>do {<NEW_LINE>identifiableElementChain.add(0, current);<NEW_LINE>if (current instanceof BaseEleme...
) chainElement).getId());
795,868
public void storeTemporaryDataAt(final int index, final int rawMask) {<NEW_LINE>final int index2 = 2 * index;<NEW_LINE>final int index3 = 3 * index;<NEW_LINE>final int index4 = 4 * index;<NEW_LINE>// scalars<NEW_LINE>if (ParticleDataMask.ENERGY.isEnabled(rawMask)) {<NEW_LINE>energy[index] = temporaryParticleData.energy...
= temporaryParticleData.velocity.x();
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 <MASK><NEW_LINE>if (m.matches()) {<NEW_LINE>arg...
m = eqSeparatedOpt.matcher(arg);
1,444,559
private void initValidations() {<NEW_LINE>validations.put(SpecContains.class, new SpecValidationContains());<NEW_LINE>validations.put(SpecAbsent.class, new SpecValidationAbsent());<NEW_LINE>validations.put(SpecVisible.class, new SpecValidationVisible());<NEW_LINE>validations.put(SpecInside.class, new SpecValidationInsi...
.class, new SpecValidationVertically());
1,410,893
public void populateCredentials(Map<String, String> credentials) {<NEW_LINE>// Log the user in and get the TGT<NEW_LINE>try {<NEW_LINE>Configuration login_conf = AuthUtils.GetConfiguration(conf);<NEW_LINE>ClientCallbackHandler client_callback_handler = new ClientCallbackHandler(login_conf);<NEW_LINE>// login our user<N...
Subject subject = lc.getSubject();
208,923
public static List<Entry> parseShort(String url) {<NEW_LINE>String res = getHTTP(url);<NEW_LINE>Document doc = Jsoup.parse(res, "koi8");<NEW_LINE>Elements items = doc.select("tr");<NEW_LINE>List<Entry> list <MASK><NEW_LINE>for (int i = 0; i < items.size(); i++) {<NEW_LINE>Element item = items.get(i);<NEW_LINE>Elements ...
= new ArrayList<Entry>();
9,093
public CachePolicyHeadersConfig unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CachePolicyHeadersConfig cachePolicyHeadersConfig = new CachePolicyHeadersConfig();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<N...
int originalDepth = context.getCurrentDepth();
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...
mentions = new ArrayList<>();
1,528,378
public void doActionAfterCheck(ActionEvent e) {<NEW_LINE>// Get the file name of the current project<NEW_LINE>String projectFile = GuiPackage<MASK><NEW_LINE>// Check if the user has loaded any file<NEW_LINE>if (projectFile == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Check if the user wants to drop any changes<NE...
.getInstance().getTestPlanFile();
131,407
public void init(IScope scope, String name, int resolutionHeight, String subFolder, int bitrate) {<NEW_LINE>if (!isInitialized) {<NEW_LINE>super.init(scope, name, resolutionHeight, subFolder, bitrate);<NEW_LINE>streamId = name;<NEW_LINE>this.subFolder = subFolder;<NEW_LINE>options.put("hls_list_size", hlsListSize);<NEW...
options.put("hls_segment_filename", segmentFilename);
1,058,466
final ListPolicyPrincipalsResult executeListPolicyPrincipals(ListPolicyPrincipalsRequest listPolicyPrincipalsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPolicyPrincipalsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListP...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
327,096
private boolean isMethodInBaseRequestOptions(ExecutableElement toFind) {<NEW_LINE>// toFind is a method in a GlideExtension whose first argument is a BaseRequestOptions<?> type.<NEW_LINE>// Since we're comparing against methods in BaseRequestOptions itself, we need to drop that<NEW_LINE>// first type.<NEW_LINE>TypeElem...
toFindParameterNames = getComparableParameterNames(toFind, true);
1,646,115
public static AuditLogEntry createFromEvent(EventLogEvent event) {<NEW_LINE>// time and user are always there<NEW_LINE>Calendar time = event.getTime();<NEW_LINE>UserInfo user = event.getUser();<NEW_LINE>Application.Name appName = null;<NEW_LINE>if (event instanceof ApplicationEvent) {<NEW_LINE>appName = ((ApplicationEv...
ChangeEvent) event).getAfter();
1,325,026
private Formula compileBranchFormula(ControlFlowNode node, List<ControlFlowNode> cutoffNodes, List<String> quantifiedMetavars) {<NEW_LINE>quantifiedMetavars = shallowCopy(quantifiedMetavars);<NEW_LINE>Formula formula;<NEW_LINE>CtElement statement = node.getStatement();<NEW_LINE>int line = statement.getPosition().getLin...
, new ExistsNext(rhs)));
815,017
private static int quickTest2DPolylinePoint(Polyline geomA, Point2D ptB, double tolerance, int testType) {<NEW_LINE>int mask = Relation.Touches | Relation.Contains | Relation.Within | Relation.Disjoint | Relation.Intersects;<NEW_LINE>if ((testType & mask) == 0)<NEW_LINE>return Relation.NoThisRelation;<NEW_LINE>int res ...
SegmentIteratorImpl iter = mpImpl.querySegmentIterator();
1,391,232
static Map<Long, List<Row>> readPipelineModelRowsFromCsvFile(String filePath, TableSchema schema) throws Exception {<NEW_LINE>Map<Long, List<Row>> rows = new HashMap<>();<NEW_LINE>Path path = new Path(filePath);<NEW_LINE>FileSystem fs = FileSystem.get(path.toUri());<NEW_LINE>FSDataInputStream stream = fs.open(path);<NE...
parsed.f1.getField(0);
134,342
private static double estimateRotation(Polygon poly, double coreDiameterPx) {<NEW_LINE>ArrayList<Double> <MASK><NEW_LINE>for (int i = 0; i < poly.npoints; i++) {<NEW_LINE>int x = poly.xpoints[i];<NEW_LINE>int y = poly.ypoints[i];<NEW_LINE>for (int j = 0; j < poly.npoints; j++) {<NEW_LINE>int x2 = poly.xpoints[j];<NEW_L...
angles = new ArrayList<>();
1,111,745
private final void check(boolean close) throws IOException {<NEW_LINE>if (!pending) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>depth++;<NEW_LINE>pending = false;<NEW_LINE>if (indent.length <= depth) {<NEW_LINE>boolean[] hlp = new boolean[depth + 4];<NEW_LINE>System.arraycopy(indent, <MASK><NEW_LINE>indent = hlp;<NEW_LINE>}...
0, hlp, 0, depth);
1,098,233
public void handle(String type, float x, float y) {<NEW_LINE>if (TextUtils.equals(type, NodeProps.ON_PRESS_IN)) {<NEW_LINE><MASK><NEW_LINE>} else if (TextUtils.equals(type, NodeProps.ON_PRESS_OUT)) {<NEW_LINE>NativeGestureDispatcher.handlePressOut(mContext, mTagId);<NEW_LINE>} else if (TextUtils.equals(type, NodeProps....
NativeGestureDispatcher.handlePressIn(mContext, mTagId);
1,139,803
public void onFlatrateConditions(final I_C_OrderLine ol, final ICalloutField field) {<NEW_LINE>final ProductId productId = ProductId.ofRepoIdOrNull(ol.getM_Product_ID());<NEW_LINE>final int bPartnerId = ol.getC_BPartner_ID();<NEW_LINE>final <MASK><NEW_LINE>final SOTrx soTrx = SOTrx.ofBoolean(order.isSOTrx());<NEW_LINE>...
I_C_Order order = ol.getC_Order();
557,936
public void verifySignature(PublicKey serverPublicKey, Random clientRandom, Random serverRandom) throws HandshakeException {<NEW_LINE>if (signatureEncoded == null) {<NEW_LINE>String message = "The server's ECDHE key exchange message has no signature.";<NEW_LINE>AlertMessage alert = new AlertMessage(AlertLevel.FATAL, Al...
throw new HandshakeException(message, alert);
1,772,093
private void populateWorkArrays(final KllFloatsSketch other, final float[] workbuf, final int[] worklevels, final int provisionalNumLevels) {<NEW_LINE>worklevels[0] = 0;<NEW_LINE>// Note: the level zero data from "other" was already inserted into "self"<NEW_LINE>final int selfPopZero = currentLevelSize(0);<NEW_LINE>Sys...
, worklevels[0], selfPopZero);
489,805
public void doRun() {<NEW_LINE>final Request request = new Request.Builder().addHeader(HttpHeaders.USER_AGENT, USER_AGENT).get().url(versionCheckUri.toString()).build();<NEW_LINE>try (final Response response = httpClient.newCall(request).execute()) {<NEW_LINE>if (response.isSuccessful()) {<NEW_LINE>final VersionCheckRe...
"Version check unsuccessful (response code {}).", response.code());
806,476
private void processPolicyZipFile(File droppedFile) {<NEW_LINE>// Process the supplied drop file as a policy zip. If it is a valid policy zip store the policy jar contents<NEW_LINE>try (ZipFile zip = new ZipFile(droppedFile)) {<NEW_LINE>Enumeration<? extends ZipEntry<MASK><NEW_LINE>while (zipEntries.hasMoreElements()) ...
> zipEntries = zip.entries();
788,206
public UserVm resetVMSSHKey(ResetVMSSHKeyCmd cmd) throws ResourceUnavailableException, InsufficientCapacityException {<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>Account owner = _accountMgr.finalizeOwner(caller, cmd.getAccountName(), cmd.getDomainId(<MASK><NEW_LINE>Long vmId = cmd.get...
), cmd.getProjectId());
842,673
private void cleanupRecentHandshakes(int calls) {<NEW_LINE>boolean started = false;<NEW_LINE>long time = ClockUtil.nanoRealtime();<NEW_LINE>int loop = 0;<NEW_LINE>int count = 0;<NEW_LINE>int size = recentHandshakesCounter.get();<NEW_LINE>int log = Math.max(10000, size / 5);<NEW_LINE>boolean full = (calls % 6) == 0;<NEW...
Long startNanos = connection.getStartNanos();
153,795
public GetGlobalSettingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetGlobalSettingsResult getGlobalSettingsResult = new GetGlobalSettingsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
().unmarshall(context));
1,045,661
protected void perform() {<NEW_LINE>if (!QUtils.isMQEnabledExtension(root)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>List<HgLogMessage> parents = HgCommand.getParents(root, null, null);<NEW_LINE>if (parents.size() != 1 || !Arrays.asList(parents.get(0).getTags()).contains(QPatch.TAG_QTIP)) {<NEW_LINE>// NOI...
length)), true, false);
779,138
public WebResourceResponse shouldInterceptRequest(WebView view, String url) {<NEW_LINE>URL imageUrl = null;<NEW_LINE>if (mIsPrivatePost && mBlogSchemeIsHttps && UrlUtils.isImageUrl(url)) {<NEW_LINE>try {<NEW_LINE>imageUrl = new URL(UrlUtils.makeHttps(url));<NEW_LINE>} catch (MalformedURLException e) {<NEW_LINE>AppLog.e...
super.shouldInterceptRequest(view, url);
1,075,408
public static void validateIndexOrAliasName(String index, BiFunction<String, String, ? extends RuntimeException> exceptionCtor) {<NEW_LINE>if (!Strings.validFileName(index)) {<NEW_LINE>throw exceptionCtor.apply(index, "must not contain the following characters " + Strings.INVALID_FILENAME_CHARS);<NEW_LINE>}<NEW_LINE>if...
exceptionCtor.apply(index, "must not be empty");
1,063,403
private Map<String, Map<Integer, UnusedBinding>> parse(String json) {<NEW_LINE>Map<String, Map<Integer, UnusedBinding>> map = new HashMap<String, Map<Integer, UnusedBinding>>();<NEW_LINE>try {<NEW_LINE>JSONArray array = (JSONArray) new JSONParser().parse(json);<NEW_LINE>for (Object o : array) {<NEW_LINE>JSONObject json...
innerMap.put(id, binding);
741,638
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup...
format("The resource ID '%s' is not valid. Missing path segment 'factories'.", id)));
139,797
public AlsTrainBatchOp linkFrom(BatchOperator<?>... inputs) {<NEW_LINE>final String userColName = getUserCol();<NEW_LINE>final String itemColName = getItemCol();<NEW_LINE>BatchOperator<?> in;<NEW_LINE>if (inputs.length == 1) {<NEW_LINE>in = inputs[0];<NEW_LINE>Tuple2<BatchOperator<?>, BatchOperator<?>> factors = HugeMf...
] { userColName, itemColName }) };
1,237,240
public Request<ModifyVpcPeeringConnectionOptionsRequest> marshall(ModifyVpcPeeringConnectionOptionsRequest modifyVpcPeeringConnectionOptionsRequest) {<NEW_LINE>if (modifyVpcPeeringConnectionOptionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>R...
(requesterPeeringConnectionOptions.getAllowDnsResolutionFromRemoteVpc()));
524,977
public void emitCode(CompilationResultBuilder crb, AMD64MacroAssembler masm) {<NEW_LINE>Register result = asRegister(resultValue);<NEW_LINE>Label trueLabel = new Label();<NEW_LINE>Label falseLabel = new Label();<NEW_LINE>Label done = new Label();<NEW_LINE>Register array1 = asRegister(array1Value);<NEW_LINE>Register arr...
) ? asRegister(maskValue) : null;
340,151
private void drawInProgressGlobalStatus(Graphics g, Color color) {<NEW_LINE>int x = (THICKNESS - STATUS_BOX_SIZE) / 2;<NEW_LINE>int y = (topOffset() - STATUS_BOX_SIZE) / 2;<NEW_LINE>// NOI18N<NEW_LINE>busyIcon.paintIcon(this, g, x, y);<NEW_LINE>g.setColor(STATUS_DOWN_PART_COLOR);<NEW_LINE>g.drawLine(x - 1, y - 1, <MASK...
x + STATUS_BOX_SIZE, y - 1);
1,787,857
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>int widthSpecMode = MeasureSpec.getMode(widthMeasureSpec);<NEW_LINE>int heightSpecMode = MeasureSpec.getMode(heightMeasureSpec);<NEW_LINE>int parentWidth = MeasureSpec.getSize(widthMeasureSpec);<NEW_LINE>int parentHeight = MeasureSpec.getS...
max(width, getSuggestedMinimumWidth());
35,361
public void divideRoutineLoadJob(int currentConcurrentTaskNum) throws UserException {<NEW_LINE>List<RoutineLoadTaskInfo> result = new ArrayList<>();<NEW_LINE>writeLock();<NEW_LINE>try {<NEW_LINE>if (state == JobState.NEED_SCHEDULE) {<NEW_LINE>// divide kafkaPartitions into tasks<NEW_LINE>for (int i = 0; i < currentConc...
LOG.debug("Ignore to divide routine load job while job state {}", state);
1,101,175
public RegisteredClient build() {<NEW_LINE>Assert.<MASK><NEW_LINE>Assert.notEmpty(this.authorizationGrantTypes, "authorizationGrantTypes cannot be empty");<NEW_LINE>if (this.authorizationGrantTypes.contains(AuthorizationGrantType.AUTHORIZATION_CODE)) {<NEW_LINE>Assert.notEmpty(this.redirectUris, "redirectUris cannot be...
hasText(this.clientId, "clientId cannot be empty");
283,996
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>nameLabel = new javax.swing.JLabel();<NEW_LINE>valueLabel = new javax.swing.JLabel();<NEW_LINE>nameComboBox = new javax.swi...
5, 12, 0, 12);