idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
217,276
public static com.azure.ai.metricsadvisor.implementation.models.AnomalyDetectionConfiguration toInnerForCreate(ClientLogger logger, String metricId, AnomalyDetectionConfiguration detectionConfiguration) {<NEW_LINE>com.azure.ai.metricsadvisor.implementation.models.AnomalyDetectionConfiguration innerDetectionConfiguratio...
MetricWholeSeriesDetectionCondition wholeSeriesCondition = detectionConfiguration.getWholeSeriesDetectionCondition();
367,680
private Mono<Response<Void>> rebootWorkerWithResponseAsync(String resourceGroupName, String name, String workerName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_L...
error(new IllegalArgumentException("Parameter name is required and cannot be null."));
302,371
public static void processType(Project project, ErlangTypeDefinition type) {<NEW_LINE>PsiFile containingFile = type.getContainingFile();<NEW_LINE>if (containingFile instanceof ErlangFile) {<NEW_LINE>String exportText = ErlangPsiImplUtil.createTypePresentation(type);<NEW_LINE>List<ErlangAttribute> attributes = ((ErlangF...
ErlangExportTypeAttribute export = attribute.getExportTypeAttribute();
1,435,035
public final Attr attr(final int pos) {<NEW_LINE>if (pos < 0) {<NEW_LINE>throw new ExFailure(String.format("Attribute position can't be negative (%d)", pos));<NEW_LINE>}<NEW_LINE>if (this.order.isEmpty()) {<NEW_LINE>throw new ExFailure(String<MASK><NEW_LINE>}<NEW_LINE>int idx;<NEW_LINE>for (idx = 0; idx < pos; ++idx) {...
.format("There are no attributes here, can't read the %d-th one", pos));
380,217
public SplitResult<GrowthState> trySplit(double fractionOfRemainder) {<NEW_LINE>// TODO(BEAM-8873): Add support for splitting off a fixed amount of work for this restriction<NEW_LINE>// instead of only supporting checkpointing.<NEW_LINE>// residual should contain exactly the work *not* claimed in the current ProcessEle...
putAll(currentState.getCompleted());
1,476,536
public void deserialize(ByteBuffer byteBuffer) throws IOException {<NEW_LINE>int firstLevelSize = byteBuffer.getInt();<NEW_LINE>ArrayList<Container[]> containersArray = new ArrayList<>(firstLevelSize);<NEW_LINE>for (int i = 0; i < firstLevelSize; i++) {<NEW_LINE>// TODO:deserialize the trimmed related data<NEW_LINE>byt...
int secondLevelSize = byteBuffer.getInt();
1,169,807
protected void installKeystrokes(Map<KeyStroke, Action> actionMap) {<NEW_LINE>super.installKeystrokes(actionMap);<NEW_LINE>actionMap.put(KeyStroke.getKeyStroke(KeyEvent.VK_SPACE, 0, false), new AbstractAction() {<NEW_LINE><NEW_LINE>public void actionPerformed(ActionEvent e) {<NEW_LINE>if (walker == null && gridlessPath...
mouseY).convertToZone(renderer));
1,278,086
public void drawParticles(Vec2[] centers, float radius, ParticleColor[] colors, int count) {<NEW_LINE>Graphics2D g = getGraphics();<NEW_LINE>saveState(g);<NEW_LINE>transformGraphics(g, zero);<NEW_LINE>g.setStroke(stroke);<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>Vec2 center = centers[i];<NEW_LINE>Color color...
g.scale(radius, radius);
1,853,746
public static ValidationResult validateTicketAssignment(UpdateTicketOwnerForm form, List<TicketFieldConfiguration> additionalFieldsForTicket, Optional<Errors> errorsOptional, Event event, String baseField, SameCountryValidator vatValidator) {<NEW_LINE>if (errorsOptional.isEmpty()) {<NEW_LINE>// already validated<NEW_LI...
String email = form.getEmail();
5,087
private int createStateInputStreamExecutors(StateElement stateElement, Partition partition, MetaStateEvent metaEvent, List<VariableExpressionExecutor> executors, int executorIndex, SiddhiQueryContext siddhiQueryContext) {<NEW_LINE>if (stateElement instanceof EveryStateElement) {<NEW_LINE>return createStateInputStreamEx...
metaEvent, executors, executorIndex, siddhiQueryContext);
81,057
private boolean drainFullContainer() {<NEW_LINE>final int input = getSlotDefinition().getMinInputSlot();<NEW_LINE>final ItemStack inputStack = getStackInSlot(input);<NEW_LINE>if (Prep.isInvalid(inputStack) || tank.isFull()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>IMachineRecipe recipe = null;<NEW_LINE>FluidAndStac...
recipe = getRecipe(false, recipeInputs);
1,614,981
void read(WizardDescriptor settings) {<NEW_LINE>// jsfFolder.setText((String) settings.getProperty(WizardProperties.JSF_FOLDER));<NEW_LINE>project = Templates.getProject(settings);<NEW_LINE>FileObject targetFolder = Templates.getTargetFolder(settings);<NEW_LINE>projectTextField.setText(ProjectUtils.getInformation<MASK>...
(project).getDisplayName());
1,002,581
private static void validateResolvingIds(ResourceId baseDirectory, List<ResourceId> allResourceIds) {<NEW_LINE>ResourceId file1 = baseDirectory.resolve("child1", RESOLVE_FILE);<NEW_LINE>ResourceId file2 = baseDirectory.resolve("child2", RESOLVE_FILE);<NEW_LINE>ResourceId file2a = baseDirectory.resolve("child2", RESOLVE...
file2.getCurrentDirectory())));
619,252
void shutdown() throws InterruptedException {<NEW_LINE>List<NGSession> allSessions;<NEW_LINE>synchronized (lock) {<NEW_LINE>done = true;<NEW_LINE>allSessions = Stream.concat(workingPool.stream(), idlePool.stream()).collect(Collectors.toList());<NEW_LINE>idlePool.clear();<NEW_LINE>workingPool.clear();<NEW_LINE>}<NEW_LIN...
long start = System.nanoTime();
1,185,901
public static EventBus create(Config config) {<NEW_LINE>String publish = config.get(EVENTS_SECTION, "publish").orElseGet(() -> {<NEW_LINE>URI uri = config.get("node", "hub").map(Urls::from).orElseThrow(() -> new IllegalArgumentException("Unable to find address to publish events to."));<NEW_LINE>return mungeUri(uri, "tc...
SecretOptions secretOptions = new SecretOptions(config);
1,825,193
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String integrationAccountName, String certificateName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot b...
error(new IllegalArgumentException("Parameter certificateName is required and cannot be null."));
1,594,436
private void rebuildRecentMenu() {<NEW_LINE>recentMenu.removeAll();<NEW_LINE>ImageIcon icon = new ImageIcon(getClass().getResource("/gitblt-favicon.png"));<NEW_LINE>List<GitblitRegistration> list = new ArrayList<GitblitRegistration>(registrations.values());<NEW_LINE>Collections.sort(list, new Comparator<GitblitRegistra...
reg = list.get(i);
573,199
final GetComplianceSummaryResult executeGetComplianceSummary(GetComplianceSummaryRequest getComplianceSummaryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getComplianceSummaryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,633,720
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...
Utils.getValueFromIdByName(id, "workspaces");
751,666
public void visitEnd() {<NEW_LINE>super.visitEnd();<NEW_LINE>final LinkedList<ReplacingBasicValue> valueList = new LinkedList<>();<NEW_LINE>final MethodAnalyzer<BasicValue> analyzer = new MethodAnalyzer<>(new ReplacingInterpreter(className, valueList));<NEW_LINE>Frame<BasicValue>[] frames;<NEW_LINE>try {<NEW_LINE>frame...
append("ReplacingBasicValues for " + className + "\n");
1,586,399
public static Message.Value.Builder createValueFromType(Object value, Message.VariantType variantType, CompilerConfig compilerConfig) {<NEW_LINE>Message.Value.Builder valueBuilder = Message.Value.newBuilder();<NEW_LINE>switch(variantType) {<NEW_LINE>case VT_INT:<NEW_LINE>valueBuilder.setIntValue(Integer.class.cast(valu...
(List<String>) value);
520,415
public static Map<String, Object> toMap(LuaTable t) {<NEW_LINE>Map<String, Object> ret = new HashMap<>();<NEW_LINE>if (!t.startTraverseTable()) {<NEW_LINE>return ret;<NEW_LINE>}<NEW_LINE>LuaValue[] next;<NEW_LINE>while ((next = t.next()) != null) {<NEW_LINE>String k = <MASK><NEW_LINE>LuaValue v = next[1];<NEW_LINE>if (...
next[0].toJavaString();
730,723
public static VariantContext trimAlleles(final VariantContext inputVC, final boolean trimForward, final boolean trimReverse) {<NEW_LINE>Utils.nonNull(inputVC);<NEW_LINE>if (inputVC.getNAlleles() <= 1 || inputVC.getAlleles().stream().anyMatch(a -> a.length() == 1 && !a.equals(Allele.SPAN_DEL))) {<NEW_LINE>return inputVC...
r.size() == 0);
1,502,041
public List<Map<String, Object>> executeFix() throws DotDataException, DotRuntimeException {<NEW_LINE>List<Map<String, Object>> returnValue = new ArrayList<Map<String, Object>>();<NEW_LINE>Logger.info(FixTask00020DeleteOrphanedIdentifiers.class, "Beginning DeleteOrphanedIdentifiers");<NEW_LINE>if (!FixAssetsProcessStat...
+ asset + "' and not exists (select * from " + tableName + " where identifier.id=identifier))";
84,479
final StartExportTaskResult executeStartExportTask(StartExportTaskRequest startExportTaskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startExportTaskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.SERVICE_ID, "RDS");
544,437
private T readHtmlResponse(InputStream theResponseInputStream) {<NEW_LINE>RuntimeResourceDefinition resDef = getFhirContext().getResourceDefinition(myReturnType);<NEW_LINE>IBaseResource instance = resDef.newInstance();<NEW_LINE>BaseRuntimeChildDefinition textChild = resDef.getChildByName("text");<NEW_LINE>BaseRuntimeEl...
).addValue(instance, textInstance);
787,523
public void visit(LambdaFunctionDeclaration node) {<NEW_LINE>boolean disableIndent = disableIndentForFunctionInvocation(node.getStartOffset());<NEW_LINE>scan(node.getAttributes());<NEW_LINE>List<FormalParameter> parameters = node.getFormalParameters();<NEW_LINE>Block body = node.getBody();<NEW_LINE>int index = formatTo...
addLexicalVariables(node.getLexicalVariables());
569,004
private void printDebug(java.io.PrintWriter w) {<NEW_LINE>Set<Object> relevantVertices = new HashSet<Object>();<NEW_LINE>Set<?<MASK><NEW_LINE>for (Set<?> s : bad) {<NEW_LINE>relevantVertices.addAll(s);<NEW_LINE>}<NEW_LINE>Map<Object, Collection<?>> relevantEdges = new HashMap<Object, Collection<?>>();<NEW_LINE>for (Map...
>[] bad = unsortableSets();
1,808,789
final GetEC2InstanceRecommendationsResult executeGetEC2InstanceRecommendations(GetEC2InstanceRecommendationsRequest getEC2InstanceRecommendationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getEC2InstanceRecommendationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
(super.beforeMarshalling(getEC2InstanceRecommendationsRequest));
984,820
private void synchronizeTableToSelectionModel(final PathObjectHierarchy hierarchy, final TableView<PathObject> table) {<NEW_LINE>if (synchronizingModelToTable || hierarchy == null)<NEW_LINE>return;<NEW_LINE>boolean ownsChanges = !synchronizingTableToModel;<NEW_LINE>try {<NEW_LINE>synchronizingTableToModel = true;<NEW_L...
> tableModel = table.getSelectionModel();
1,037,360
private void integrateInertiaVolume() {<NEW_LINE>double x, r1, r2;<NEW_LINE>final double l = length / DIVISIONS;<NEW_LINE>// PI * l<NEW_LINE>final double pil = Math.PI * l;<NEW_LINE>// PI * l/3<NEW_LINE>final double pil3 = Math.PI * l / 3;<NEW_LINE>r1 = getRadius(0);<NEW_LINE>x = 0;<NEW_LINE>longitudinalInertia = 0;<NE...
* (r1 + r2 - height);
867,749
private int generateNestMembersAttribute() {<NEW_LINE>int localContentsOffset = this.contentsOffset;<NEW_LINE>List<String> nestedMembers = this.referenceBinding.getNestMembers();<NEW_LINE>int numberOfNestedMembers = nestedMembers != null ? nestedMembers.size() : 0;<NEW_LINE>if (// JVMS 11 4.7.29 says "at most one" Nest...
byte) (nestedMemberIndex >> 8);
585,549
protected InstanceProperties updateOMRSAttributes(Classification omasClassification) {<NEW_LINE>InstanceProperties instanceProperties = new InstanceProperties();<NEW_LINE>Retention retention = (Retention) omasClassification;<NEW_LINE>if (retention.getSteward() != null) {<NEW_LINE>repositoryHelper.addStringPropertyToIns...
primitivePropertyValue.setPrimitiveDefCategory(PrimitiveDefCategory.OM_PRIMITIVE_TYPE_LONG);
1,042,217
final CreateSamplingRuleResult executeCreateSamplingRule(CreateSamplingRuleRequest createSamplingRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSamplingRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
(super.beforeMarshalling(createSamplingRuleRequest));
935,806
private void save(ServerIntLongRow row, PSMatrixSaveContext saveContext, MatrixPartitionMeta meta, DataOutputStream out) throws IOException {<NEW_LINE>int startCol = (int) meta.getStartCol();<NEW_LINE>IntLongVector vector = ServerRowUtils.getVector(row);<NEW_LINE>IntLongElement element = new IntLongElement();<NEW_LINE>...
.rowId = row.getRowId();
1,017,207
private void updateButtons() {<NEW_LINE>if (selected == null) {<NEW_LINE>updateButton(installButton, false, false);<NEW_LINE>updateButton(uninstallButton, false, false);<NEW_LINE>} else {<NEW_LINE>switch(selected.getState().getValue()) {<NEW_LINE>case UNINSTALLED:<NEW_LINE>updateButton(installButton, true, !(install in...
updateButton(uninstallButton, false, false);
739,097
public void send(Map<String, List<String>> poolMap) {<NEW_LINE>try {<NEW_LINE>for (String poolId : poolMap.keySet()) {<NEW_LINE>TestResourcePoolExample example = new TestResourcePoolExample();<NEW_LINE>example.createCriteria().andStatusEqualTo("VALID").andTypeEqualTo("NODE").andIdEqualTo(poolId);<NEW_LINE>List<TestReso...
String nodeIp = node.getIp();
1,814,131
private static ImmutableList<Pair<String, Path>> renameOutputs(ActionExecutionContext actionExecutionContext, TestRunnerAction action, ImmutableList<Pair<String, Path>> testOutputs, int attemptId) throws IOException {<NEW_LINE>// Rename outputs<NEW_LINE>String namePrefix = FileSystemUtils.removeExtension(action.getTest...
getExecPath().getBaseName());
603,147
public static Result find(List<Path> files, Consumer<LogEvent> logger) {<NEW_LINE>List<String> mainClasses = new ArrayList<>();<NEW_LINE>for (Path file : files) {<NEW_LINE>// Makes sure classFile is valid.<NEW_LINE>if (!Files.exists(file)) {<NEW_LINE>logger.accept(LogEvent.debug("MainClassFinder: " + file + " does not ...
.warn("Invalid class file found: " + file));
1,762,179
public Object invoke(@Nullable Object proxy, @Nullable Method method, Object @Nullable [] args) throws Throwable {<NEW_LINE>if (method != null) {<NEW_LINE>Invocation invocation = new <MASK><NEW_LINE>Invocation activeInvocation = getManager().getActiveInvocation();<NEW_LINE>if (activeInvocation != null) {<NEW_LINE>if (l...
Invocation(this, method, args);
1,469,964
public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>_vaultManager = EarlyEntryPoints.get(this, <MASK><NEW_LINE>Iconics.init(this);<NEW_LINE>Iconics.registerFont(new MaterialDesignIconic());<NEW_LINE>// listen for SCREEN_OFF events<NEW_LINE>ScreenOffReceiver receiver = new ScreenOffReceiver();<NEW_LINE>IntentFi...
EntryPoint.class).getVaultManager();
975,838
private void layoutMarginAreas(LayoutContext c) {<NEW_LINE>c.setFootnoteAllowed(false);<NEW_LINE>RectPropertySet margin = getMargin(c);<NEW_LINE>for (int i = 0; i < MARGIN_AREA_DEFS.length; i++) {<NEW_LINE>MarginArea area = MARGIN_AREA_DEFS[i];<NEW_LINE>Dimension dim = area.getLayoutDimension(c, this, margin);<NEW_LINE...
dim.getHeight())));
975,601
public void flushTo(Path out) throws IOException {<NEW_LINE>Stopwatch timer = Stopwatch.createStarted();<NEW_LINE>// Ensure the parent directory exists, if any.<NEW_LINE>if (out.getParent() != null) {<NEW_LINE>Files.createDirectories(out.getParent());<NEW_LINE>}<NEW_LINE>try (OutputStream outStream = new BufferedOutput...
build().writeDelimitedTo(outStream);
1,459,631
public StartImportLabelsTaskRunResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartImportLabelsTaskRunResult startImportLabelsTaskRunResult = new StartImportLabelsTaskRunResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalD...
String currentParentElement = context.getCurrentParentElement();
1,578,851
public BeanDefinition parse(Element element, ParserContext pc) {<NEW_LINE>String logoutUrl = element.getAttribute(ATT_LOGOUT_URL);<NEW_LINE>if (StringUtils.hasText(logoutUrl)) {<NEW_LINE>this.logoutUrl = logoutUrl;<NEW_LINE>}<NEW_LINE>String logoutRequestUrl = element.getAttribute(ATT_LOGOUT_REQUEST_URL);<NEW_LINE>if (...
this.logoutUrl, pc, element);
1,216,008
public String[] split(String text) {<NEW_LINE>if (splitContraction) {<NEW_LINE>text = WONT_CONTRACTION.matcher(text).replaceAll("$1ill not");<NEW_LINE>text = SHANT_CONTRACTION.matcher(text).replaceAll("$1ll not");<NEW_LINE>text = AINT_CONTRACTION.matcher<MASK><NEW_LINE>for (Pattern regexp : NOT_CONTRACTIONS) {<NEW_LINE...
(text).replaceAll("$1m not");
857,098
public void addRedshiftPlugin(MongockTemplate mongoTemplate) {<NEW_LINE>Plugin plugin = new Plugin();<NEW_LINE>plugin.setName("Redshift");<NEW_LINE>plugin.setType(PluginType.DB);<NEW_LINE>plugin.setPackageName("redshift-plugin");<NEW_LINE>plugin.setUiComponent("DbEditorForm");<NEW_LINE>plugin.setResponseType(Plugin.Res...
mongoTemplate, plugin.getId());
1,137,330
private Stream<MapResult> parse(InputStream data, boolean simpleMode, String path, boolean failOnError) throws Exception {<NEW_LINE>List<MapResult> result = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();<NEW_LINE>documentBuilderFactory.se...
(Collections.emptyMap()));
1,457,339
public void start(Stage stage) {<NEW_LINE>stage.setTitle("TextBoxClipboard");<NEW_LINE>Scene scene = new Scene(new Group(), 600, 450);<NEW_LINE>scene.setFill(Color.GHOSTWHITE);<NEW_LINE>final Label copyFrom = new Label("Copy From: ");<NEW_LINE>final TextField copyFromText = new TextField("ABC 123");<NEW_LINE>final HBox...
getChildren().add(copyFrom);
544,637
private GraphObject extractActiveElement(final DOMNode node, final Set<String> dataKeys, final String parentId, final ActiveElementState state, final int depth) {<NEW_LINE>final PropertyKey<String> actionKey = StructrApp.<MASK><NEW_LINE>final PropertyKey<String> hrefKey = StructrApp.key(Link.class, "_html_href");<NEW_L...
key(DOMElement.class, "data-structr-action");
302,331
public void addQuads(List<MutableQuad> addTo, ITextureGetter spriteLookup) {<NEW_LINE>if (visible.evaluate()) {<NEW_LINE>float[] f = bakePosition(from);<NEW_LINE>float[] t = bakePosition(to);<NEW_LINE>float[] size = { t[0] - f[0], t[1] - f[1], t[<MASK><NEW_LINE>boolean s = shade.evaluate();<NEW_LINE>int l = (int) (ligh...
2], f[2] };
1,254,098
long[] floorPositions(final long clusterPosition, final OAtomicOperation atomicOperation) throws IOException {<NEW_LINE>if (clusterPosition < 0) {<NEW_LINE>return OCommonConst.EMPTY_LONG_ARRAY;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>int index = (int) (clusterPosition % OClusterPositionMapBucket.MAX_ENTRIES);<NEW_LINE>fina...
long pageIndex = clusterPosition / OClusterPositionMapBucket.MAX_ENTRIES;
724,777
private void rewriteHeartbeatTablePart2() throws Exception {<NEW_LINE>if (!tableExists("heartbeat_temp")) {<NEW_LINE>// previously failed mid-upgrade prior to updating schema version<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.info("rewriting heartbeat table (part 2)...");<NEW_LINE>Map<String, V09AgentRollup> v09AgentR...
v09AgentRollupId = row.getString(0);
1,833,158
/*public static boolean isAFWallAllowed(Context context) {<NEW_LINE>try {<NEW_LINE>int uid = context.getPackageManager().getApplicationInfo(context.getPackageName(<MASK><NEW_LINE>SharedPreferences prefs = context.getSharedPreferences(PREFS_NAME, Context.MODE_PRIVATE);<NEW_LINE>List<Integer> selected_wifi = getListFromP...
), PackageManager.GET_META_DATA).uid;
916,922
private void showNotification(BlockInfo info) {<NEW_LINE>String contentTitle = mContext.getString(R.string.dk_block_class_has_blocked, info.timeStart);<NEW_LINE>String contentText = mContext.<MASK><NEW_LINE>Intent intent = new Intent(mContext, UniversalActivity.class);<NEW_LINE>intent.setFlags(Intent.FLAG_ACTIVITY_NEW_...
getString(R.string.dk_block_notification_message);
1,820,823
public int analyzePacket(Packet packet, StringBuilder brief, StringBuilder verbose) {<NEW_LINE>int type = packet.get(0) & 0xff;<NEW_LINE>int code = packet.get(1) & 0xff;<NEW_LINE>// int checksum = ((packet.get(2) & 0xff) << 8) | packet.get(3) & 0xff;<NEW_LINE>brief.append("ICMPv6 ");<NEW_LINE>verbose.append("<b>ICMPv6<...
(TYPE_NAME[type - 128]);
380,977
private double computeValue() {<NEW_LINE>double result = getBaseValue();<NEW_LINE>for (AttributeModifier modifier : modifiers.values()) {<NEW_LINE>if (modifier.getOperation() == AttributeModifier.Operation.ADD_NUMBER) {<NEW_LINE>result += modifier.getAmount();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>double multiplier = 1.0;<NEW...
min(result, key.max);
553,615
public void sendTerminationNotification(InstanceGroup group, String instance, ChaosType chaosType) {<NEW_LINE>String propEmailGlobalEnabled = "simianarmy.chaos.notification.global.enabled";<NEW_LINE>String propEmailGroupEnabled = String.format("%s%s.%s.notification.enabled", NS, group.type(), group.name());<NEW_LINE>Ch...
= context().chaosEmailNotifier();
287,978
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void bnTestMultiUserActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_bnTestMultiUserActionPerformed<NEW_LINE>lbTestResultText.setForeground(Color.BLACK);<NEW_LINE>lbTestResultText.setText(NbBundle.getMessage(AutoIngestSettingsPanel....
.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
946,400
public void exitSnsgzn_layer3(Snsgzn_layer3Context ctx) {<NEW_LINE>for (Variable_list_itemContext var : variables(ctx.variable_list())) {<NEW_LINE>String name = getText(var);<NEW_LINE>if (_currentVsys.getImportedInterfaces().contains(name)) {<NEW_LINE>_currentZone.getInterfaceNames().add(name);<NEW_LINE>} else {<NEW_LI...
, getLine(var.start));
484,659
public void operationComplete(int rc, Set<LedgerFragment> fragments) {<NEW_LINE>if (rc == BKException.Code.OK) {<NEW_LINE>Set<BookieId> bookies = Sets.newHashSet();<NEW_LINE>for (LedgerFragment f : fragments) {<NEW_LINE>bookies.addAll(f.getAddresses());<NEW_LINE>}<NEW_LINE>if (bookies.isEmpty()) {<NEW_LINE>// no missin...
Code.OK, null, null);
588,230
public boolean register(String name, Properties props, Lazy<Annotator> annotator) {<NEW_LINE>boolean newAnnotator = false;<NEW_LINE>String newSig = PropertiesUtils.getSignature(name, props);<NEW_LINE>synchronized (this.cachedAnnotators) {<NEW_LINE>CachedAnnotator oldAnnotator = <MASK><NEW_LINE>if (oldAnnotator == null ...
this.cachedAnnotators.get(name);
707,847
static Object executeAddition(final IExpressionContext context, final AdditionExpression expression, final StandardExpressionExecutionContext expContext) {<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("[THYMELEAF][{}] Evaluating addition expression: \"{}\"", TemplateEngine.threadIndex(), expression.get...
rightValue).toString()));
859,111
public boolean addCassandraHost(CassandraHost cassandraHost) {<NEW_LINE>Properties props = KunderaMetadataManager.getPersistenceUnitMetadata(kunderaMetadata, getPersistenceUnit()).getProperties();<NEW_LINE>String keyspace = null;<NEW_LINE>if (externalProperties != null) {<NEW_LINE>keyspace = (String) externalProperties...
getPassword())), false);
1,828,235
public boolean updateSettings(final ZyGraphViewSettings settings) {<NEW_LINE>final boolean needsLayouting = settings.getLayoutSettings().getHierarchicalSettings().getMinimumLayerDistance() != Integer.valueOf(m_tfHierarchicMinLayerDistance.getText()) || settings.getLayoutSettings().getHierarchicalSettings().getMinimumNo...
(m_tfHierarchicMinNodeDistance.getText()));
475,884
public void processView(EventBean[] newData, EventBean[] oldData, boolean isGenerateSynthetic) {<NEW_LINE>generateRemoveStreamJustOnce(isGenerateSynthetic, false);<NEW_LINE>if (newData != null) {<NEW_LINE>for (EventBean aNewData : newData) {<NEW_LINE>EventBean[] eventsPerStream = new EventBean[] { aNewData };<NEW_LINE>...
mk, processor.getExprEvaluatorContext());
445,457
public void evaluateFinalModelParameters(final List<VariantDatum> data) {<NEW_LINE>sumProb = 0.0;<NEW_LINE>zeroOutMu();<NEW_LINE>zeroOutSigma();<NEW_LINE>int datumIndex = 0;<NEW_LINE>for (final VariantDatum datum : data) {<NEW_LINE>final double prob = pVarInGaussian[datumIndex++];<NEW_LINE>sumProb += prob;<NEW_LINE>inc...
= iii == jjj ? COVARIANCE_REGULARIZATION_EPSILON : 0.;
1,644,422
private static void twoParameterBBox(GeoBoundingBoxQuery.Builder queryBuilder, Object[] values) {<NEW_LINE>Assert.isTrue(allElementsAreOfType(values, GeoPoint.class) || allElementsAreOfType(values, String.class), " both elements of boundedBy filter must be type of GeoPoint or text(format lat,lon or geohash)");<NEW_LINE...
getLon())))));
1,386,362
public void marshall(Grant grant, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (grant == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(grant.getGrantArn(), GRANTARN_BINDING);<NEW_LINE>protocolMarshaller.m...
grant.getGranteePrincipalArn(), GRANTEEPRINCIPALARN_BINDING);
132,663
public void run(RegressionEnvironment env) {<NEW_LINE>String expression = "@name('s0') select * from pattern " + "[every A=SupportCallEvent -> every B=SupportCallEvent(dest=A.dest, startTime in [A.startTime:A.endTime]) where timer:within (7200000)]" + "where B.source != A.source";<NEW_LINE>env.compileDeploy(expression)...
"2005-09-26 13:03:31.300"), dateToLong("2005-09-26 13:04:12.100"));
1,362,650
public static ClientSecureChannel fromConfig(UaStackClientConfig config) throws UaException {<NEW_LINE>EndpointDescription endpoint = config.getEndpoint();<NEW_LINE>SecurityPolicy securityPolicy = SecurityPolicy.fromUri(endpoint.getSecurityPolicyUri());<NEW_LINE>if (securityPolicy == SecurityPolicy.None) {<NEW_LINE>ret...
(StatusCodes.Bad_ConfigurationError, "no KeyPair configured"));
1,001,230
public static int levenshteinDistance(String o1, String o2) {<NEW_LINE>// Let o1 be the shorter one:<NEW_LINE>if (o1.length() > o2.length()) {<NEW_LINE>return levenshteinDistance(o2, o1);<NEW_LINE>}<NEW_LINE>final int l1 = o1.length(), l2 = o2.length();<NEW_LINE>// Exploit that Java caches the hash code of strings:<NEW...
Math.abs(l1 - l2);
118,913
public void patchApplication(@PathVariable("id") final String id, @RequestBody final JsonPatch patch) throws NotFoundException, PreconditionFailedException, GenieServerException {<NEW_LINE>log.info("Called to patch application {} with patch {}", id, patch);<NEW_LINE>final Application currentApp = DtoConverters.toV3Appl...
getMapper().valueToTree(currentApp);
1,618,174
BLangStatementExpression desugar(BLangQueryAction queryAction, SymbolEnv env) {<NEW_LINE>containsCheckExpr = false;<NEW_LINE>HashSet<BType> prevCheckedErrorList = this.checkedErrorList;<NEW_LINE>this.checkedErrorList = new HashSet<>();<NEW_LINE>List<BLangNode> clauses = queryAction.getQueryClauses();<NEW_LINE>Location ...
ifBody.stmts.add(returnStmt);
1,124,256
public static void applyAccountStorageSyncUpdates(@NonNull Context context, @NonNull Recipient self, @NonNull StorageRecordUpdate<SignalAccountRecord> update, boolean fetchProfile) {<NEW_LINE>SignalDatabase.recipients().applyStorageSyncAccountUpdate(update);<NEW_LINE>TextSecurePreferences.setReadReceiptsEnabled(context...
.signalDonationsValues().clearUserManuallyCancelled();
1,234,339
private void loadNode521() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfiguration_CertificateGroups_DefaultApplicationGroup_TrustList_CloseAndUpdate_InputArguments, new QualifiedName(0, "InputArguments"), new LocalizedText("en", "InputArgum...
DataValue(new Variant(o));
1,341,012
public void run(@Nonnull final ProgressIndicator indicator) {<NEW_LINE>try {<NEW_LINE>Thread.currentThread().sleep(6000);<NEW_LINE>countTo(900, new AddTestProcessActionIndefinite.Count() {<NEW_LINE><NEW_LINE>public void onCount(int each) throws InterruptedException {<NEW_LINE>indicator.setText(<MASK><NEW_LINE>if (each ...
"Found: " + each / 20 + 1);
1,783,251
private void executeBody(HttpAction action) {<NEW_LINE>InputStream input = null;<NEW_LINE>try {<NEW_LINE>input = action.getRequestInputStream();<NEW_LINE>} catch (IOException ex) {<NEW_LINE>ServletOps.errorOccurred(ex);<NEW_LINE>}<NEW_LINE>if (action.verbose) {<NEW_LINE>// Verbose mode only .... capture request for log...
requestStr = Bytes.bytes2string(bytes);
1,675,458
protected ArrayList<Message> doInBackground(String... subredditPaginators) {<NEW_LINE>try {<NEW_LINE>if (reset || paginator == null) {<NEW_LINE>paginator = new InboxPaginator(Authentication.reddit, where);<NEW_LINE>paginator.setLimit(25);<NEW_LINE>nomore = false;<NEW_LINE>}<NEW_LINE>if (paginator.hasNext()) {<NEW_LINE>...
o.get("data")));
1,380,859
public void scan() {<NEW_LINE>WebcamDiscoveryListener[] listeners = Webcam.getDiscoveryListeners();<NEW_LINE>List<WebcamDevice> tmpnew = driver.getDevices();<NEW_LINE>List<WebcamDevice> tmpold = null;<NEW_LINE>try {<NEW_LINE>tmpold = getDevices(getWebcams(Long.MAX_VALUE, TimeUnit.MILLISECONDS));<NEW_LINE>} catch (Timeo...
new LinkedList<WebcamDevice>(tmpold);
16,690
public static void main(String[] args) throws Exception {<NEW_LINE>JetConfig jetConfig = getJetConfig();<NEW_LINE>JetInstance jet = Jet.newJetInstance(jetConfig);<NEW_LINE>Jet.newJetInstance(jetConfig);<NEW_LINE>try {<NEW_LINE>Pipeline p = Pipeline.create();<NEW_LINE>p.readFrom(Sources.<Integer, Integer>mapJournal(MAP_...
(Sinks.list(SINK_NAME));
1,340,892
// Pushes a frame we seek'd to<NEW_LINE>SegmentTermsEnumFrame pushFrame(FST.Arc<BytesRef> arc, BytesRef frameData, int length) throws IOException {<NEW_LINE>scratchReader.reset(frameData.bytes, frameData.offset, frameData.length);<NEW_LINE>final long code = scratchReader.readVLong();<NEW_LINE>final long fpSeek = code >...
f.setFloorData(scratchReader, frameData);
834,929
private WebuiHUTransformCommandResult action_SplitTU_To_NewTUs(final HUEditorRow tuRow, final BigDecimal qtyTU) {<NEW_LINE>final IHandlingUnitsBL handlingUnitsBL = Services.get(IHandlingUnitsBL.class);<NEW_LINE>// TODO: if qtyTU is the "maximum", then don't do anything, but show a user message<NEW_LINE>final I_M_HU fro...
(fromTopLevelHU.getM_HU_ID()));
1,853,323
protected final void onStreamError(ChannelHandlerContext ctx, boolean outbound, Throwable cause, Http2Exception.StreamException streamException) {<NEW_LINE>int streamId = streamException.streamId();<NEW_LINE>Http2Stream connectionStream = connection().stream(streamId);<NEW_LINE>if (connectionStream == null) {<NEW_LINE>...
ctx, outbound, cause, streamException);
825,255
void syncByMaster(TextSync textSync) {<NEW_LINE>beforeDocumentModification();<NEW_LINE>ignoreDocModifications++;<NEW_LINE>boolean oldTM = DocumentUtilities.isTypingModification(doc);<NEW_LINE>DocumentUtilities.setTypingModification(doc, false);<NEW_LINE>try {<NEW_LINE>TextRegion<?> masterRegion = textSync.validMasterRe...
remove(regionStartOffset, regionEndOffset - regionStartOffset);
925,082
static String asString(Object stringObject) {<NEW_LINE>checkNotNull(stringObject, "stringObject");<NEW_LINE>Instance instance = (Instance) stringObject;<NEW_LINE>List<ClassInstance.FieldValue> values = classInstanceValues(instance);<NEW_LINE>Integer count = fieldValue(values, "count");<NEW_LINE>checkNotNull(count, "cou...
, Charset.forName("UTF-8"));
1,715,018
public static PresentationE fromJson(String presentationJson) {<NEW_LINE>if (StringUtils.isBlank(presentationJson)) {<NEW_LINE>logger.error("create PresentationE with JSON String failed, " + "the presentation JSON String is null");<NEW_LINE>throw new DataTypeCastException("the presentation JSON String is null");<NEW_LI...
presentationString = DataToolUtils.removeTagFromToJson(presentationJson);
1,385,274
private Optional<HeaderSpace> computeVirtualMatchedHeaders(Virtual virtual) {<NEW_LINE>// Compute matching headers<NEW_LINE>String destination = virtual.getDestination();<NEW_LINE>if (destination == null) {<NEW_LINE>// Cannot match without destination node<NEW_LINE>_w.redFlag(String.format("Virtual '%s' is missing dest...
IpProtocol protocol = virtual.getIpProtocol();
22,451
public void init(Map<String, Object> params) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>BackgroundTask<T, V> task = (BackgroundTask<T, V>) params.get("task");<NEW_LINE>String title = (String) params.get("title");<NEW_LINE>if (title != null) {<NEW_LINE>setCaption(title);<NEW_LINE>}<NEW_LINE>String message = (Str...
Boolean) params.get("cancelAllowed");
67,552
final ListFirewallConfigsResult executeListFirewallConfigs(ListFirewallConfigsRequest listFirewallConfigsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listFirewallConfigsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListFirewallConfigs");
1,526,987
public static Classifications predict() throws IOException, ModelException, TranslateException {<NEW_LINE>Path imageFile = Paths.get("src/test/resources/0.png");<NEW_LINE>Image img = ImageFactory.getInstance().fromFile(imageFile);<NEW_LINE>String modelName = "mlp";<NEW_LINE>try (Model model = Model.newInstance(modelNam...
modelDir = Paths.get("build/model");
801,725
public VoidResponse addCohortRegistration(String userId, String serverName, String serverToBeConfiguredName, String cohortName) {<NEW_LINE>String methodName = "addCohortRegistration";<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("Entering method: " + methodName + " with serverName " + serverName + " server T...
getAuditLog(userId, serverName, methodName);
1,303,742
public boolean onCommand(CommandSender sender, Command command, String commandLabel, String[] args) {<NEW_LINE>if (!this.isEnabled()) {<NEW_LINE>sender.sendMessage("This plugin is Disabled!");<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>ArrayList<String> allArgs = new ArrayList<String><MASK><NEW_LINE>allArgs.add(0, comma...
(Arrays.asList(args));
1,794,246
private void updateStatus() {<NEW_LINE>if (filter != null) {<NEW_LINE>buttonCadeia.setEnabled(true);<NEW_LINE>buttonCaracter.setEnabled(true);<NEW_LINE>buttonInteiro.setEnabled(true);<NEW_LINE>buttonLogico.setEnabled(true);<NEW_LINE>buttonReal.setEnabled(true);<NEW_LINE>buttonVazio.setEnabled(true);<NEW_LINE>buttonShow...
.isAccepting(TipoDado.LOGICO));
1,627,529
public void writeToParcel(Parcel dest, int flags) {<NEW_LINE>dest.writeLong(id);<NEW_LINE>dest.writeString(hash);<NEW_LINE>dest.writeString(name);<NEW_LINE>dest.writeInt(statusCode.getCode());<NEW_LINE>dest.writeString(locationDir);<NEW_LINE>dest.writeInt(rateDownload);<NEW_LINE>dest.writeInt(rateUpload);<NEW_LINE>dest...
(sequentialDownload ? 1 : 0));
1,305,040
final BatchGetTriggersResult executeBatchGetTriggers(BatchGetTriggersRequest batchGetTriggersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetTriggersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,389,683
final UpdateResourceEventConfigurationResult executeUpdateResourceEventConfiguration(UpdateResourceEventConfigurationRequest updateResourceEventConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateResourceEventConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
(super.beforeMarshalling(updateResourceEventConfigurationRequest));
386,689
public Map<String, Object> handleJsonRequest(Map<String, ?> input) {<NEW_LINE>if (input == null) {<NEW_LINE>throw new BadRequestException("Malformed JSON");<NEW_LINE>}<NEW_LINE>String registrarId = (String) input.get(ID_PARAM);<NEW_LINE>if (Strings.isNullOrEmpty(registrarId)) {<NEW_LINE>throw new BadRequestException(St...
OP_PARAM)).orElse("read");
449,033
public Request<AddPermissionRequest> marshall(AddPermissionRequest addPermissionRequest) {<NEW_LINE>if (addPermissionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<AddPermissionRequest> request = new DefaultRequest<AddPermissionRequest>(...
, StringUtils.fromString(aWSAccountIdsListValue));
1,378,333
public void init() {<NEW_LINE>serverPort = System.getProperty("nacos.server.port", "8848");<NEW_LINE>String envDomainName = System.getenv("address_server_domain");<NEW_LINE>if (StringUtils.isBlank(envDomainName)) {<NEW_LINE>domainName = System.getProperty("address.server.domain", "jmenv.tbsite.net");<NEW_LINE>} else {<...
+ domainName + ":" + addressPort + "/env";