idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
138,042
boolean handleDrag(float x, float y) {<NEW_LINE>mCurrent.x = x;<NEW_LINE>mCurrent.y = y;<NEW_LINE>float diffX = (<MASK><NEW_LINE>float diffY = (mCurrent.y - mLast.y);<NEW_LINE>if (diffX != 0 || diffY != 0) {<NEW_LINE>if (mCanDragX)<NEW_LINE>mNext.x += diffX;<NEW_LINE>if (mCanDragY)<NEW_LINE>mNext.y += diffY;<NEW_LINE>b...
mCurrent.x - mLast.x);
327,363
public static void writeHexLong(char[] data, int pos, long v) {<NEW_LINE>writeHexByte(data, pos + 0, (byte) ((v >>> 56L) & 0xff));<NEW_LINE>writeHexByte(data, pos + 2, (byte) ((v >>> 48L) & 0xff));<NEW_LINE>writeHexByte(data, pos + 4, (byte) ((v >>> 40L) & 0xff));<NEW_LINE>writeHexByte(data, pos + 6, (byte) ((v >>> 32L...
>> 16L) & 0xff));
1,785,971
public LogicalSubQueryPlan buildLogicalQueryPlan(ContextManager contextManager) {<NEW_LINE>LogicalSubQueryPlan logicalSubQueryPlan = new LogicalSubQueryPlan(contextManager);<NEW_LINE>LogicalVertex sourceVertex = getInputNode().getOutputVertex();<NEW_LINE>logicalSubQueryPlan.addLogicalVertex(sourceVertex);<NEW_LINE>Quer...
()), false, sourceVertex);
888,403
public Builder mergeFrom(io.kubernetes.client.proto.V1alpha1Admissionregistration.ExternalAdmissionHook other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1alpha1Admissionregistration.ExternalAdmissionHook.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasName()) {<NEW_LINE>bitField0_ |= 0x00000...
this.mergeUnknownFields(other.unknownFields);
552,821
public void apply(Project project) {<NEW_LINE>this.project = project;<NEW_LINE>project.getPlugins().apply(JavaPlugin.class);<NEW_LINE>ContractVerifierExtension extension = project.getExtensions().create(EXTENSION_NAME, ContractVerifierExtension.class);<NEW_LINE>JavaPluginConvention javaConvention = project.getConventio...
getGroovy().srcDirs(generatedTestSourcesDir);
1,171,478
public String apply(String o) {<NEW_LINE>StringWriter taggedResults = new StringWriter();<NEW_LINE>List<List<HasWord>> sentences;<NEW_LINE>if (tokenize) {<NEW_LINE>sentences = tokenizeText(new StringReader(o), tokenizerFactory);<NEW_LINE>} else {<NEW_LINE>sentences = Generics.newArrayList();<NEW_LINE>sentences.add(Sent...
o.split("\\s+")));
502,554
private SortedSetEntry readSortedSet(IndexInput meta) throws IOException {<NEW_LINE>SortedSetEntry entry = new SortedSetEntry();<NEW_LINE>byte multiValued = meta.readByte();<NEW_LINE>switch(multiValued) {<NEW_LINE>case // singlevalued<NEW_LINE>0:<NEW_LINE>entry.singleValueEntry = readSorted(meta);<NEW_LINE>return entry...
.docsWithFieldOffset = meta.readLong();
443,176
private EntityType createEntityType(Class<?> cl, Map<Class<?>, EntityType> types) {<NEW_LINE>if (types.get(cl) != null) {<NEW_LINE>return types.get(cl);<NEW_LINE>} else {<NEW_LINE>EntityType type = allTypes.get(ClassUtils.getFullName(cl));<NEW_LINE>if (type == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>types.put(cl, t...
type = typeFactory.getEntityType(cl);
1,217,354
public static String sendHttpDelete(String url, String user) throws Exception {<NEW_LINE>String resultString = "{}";<NEW_LINE>HttpDelete httpdelete = new HttpDelete(url);<NEW_LINE>logger.info("sendDeleteReq url is: " + url);<NEW_LINE>httpdelete.addHeader(HTTP.CONTENT_ENCODING, "UTF-8");<NEW_LINE>httpdelete.addHeader("T...
logger.info("Send Http Delete Request Success", resultString);
1,786,420
public void runSupport() {<NEW_LINE>FileDialog dialog = new FileDialog(shell, SWT.SYSTEM_MODAL | SWT.OPEN);<NEW_LINE>dialog.setFilterPath(TorrentOpener.getFilterPathData());<NEW_LINE>dialog.setText(MessageText.getString("metasearch.import.select.template.file"));<NEW_LINE>dialog.setFilterExtensions(VuzeFileHandler.getV...
params = new HashMap<>();
826,515
public final ProtoContext proto() throws RecognitionException {<NEW_LINE>ProtoContext _localctx = new ProtoContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 0, RULE_proto);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setState(74);<NEW_LINE>syntax();<NEW_LINE>setStat...
_errHandler.reportError(this, re);
1,021,292
public void configure(TestElement el) {<NEW_LINE>super.configure(el);<NEW_LINE>if (!(el instanceof JMSSampler)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JMSSampler sampler = (JMSSampler) el;<NEW_LINE>queueConnectionFactory.setText(sampler.getQueueConnectionFactory());<NEW_LINE>sendQueue.setText(sampler.getSendQueue());<N...
setText(sampler.getExpiration());
509,528
private void prepareEsniServerSharedSecret(EncryptedServerNameIndicationExtensionMessage msg) {<NEW_LINE>NamedGroup group = NamedGroup.getNamedGroup(msg.getKeyShareEntry().getGroup().getValue());<NEW_LINE>boolean isFoundSharedNamedGroup = false;<NEW_LINE>BigInteger serverPrivateKey = chooser.getConfig().getEsniServerKe...
LOGGER.warn("No private key available for selected named group: " + group);
1,343,501
private // TODO(ruibm): Add cache health information to the SuperConsole.<NEW_LINE>void backgroundThreadCallForHealthCheck() {<NEW_LINE>LOG.verbose("Starting pings. %s", toString());<NEW_LINE>List<ListenableFuture<LoadBalancerPingEvent.PerServerPingData>> futures = new ArrayList<>();<NEW_LINE>for (URI serverUri : serve...
add(serverPing.getFuture());
1,298,977
public static <T> List<List<T>> parseArrayOfArrays(String fieldName, CheckedFunction<XContentParser, T, IOException> valueParser, XContentParser parser) throws IOException {<NEW_LINE>if (parser.currentToken() != XContentParser.Token.START_ARRAY) {<NEW_LINE>throw new IllegalArgumentException("unexpected token [" + parse...
innerList = new ArrayList<>();
1,013,363
private void importUsers(final ODatabase<?> odb, final Map<String, DatabaseUser> usersMap) {<NEW_LINE>try {<NEW_LINE>for (Map.Entry<String, DatabaseUser> entry : usersMap.entrySet()) {<NEW_LINE>String upn = entry.getKey();<NEW_LINE>if (upsertDbUser(odb, upn, entry.getValue().getRoles()))<NEW_LINE>OLogManager.instance()...
upn, odb.getName());
1,144,190
private void damage(GlowPlayer player) {<NEW_LINE>// TODO: Do proper damage calculations, based upon the tool used<NEW_LINE>VehicleDamageEvent damageEvent = new VehicleDamageEvent(this, player, 10);<NEW_LINE>if (EventFactory.getInstance().callEvent(damageEvent).isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>play...
SoundCategory.PLAYERS, 1, 1);
1,218,593
public J.Binary visitBinary(J.Binary binary, ExecutionContext ctx) {<NEW_LINE>J.Binary b = super.visitBinary(binary, ctx);<NEW_LINE>if (b.getLeft() instanceof J.MethodInvocation && STRING_INDEX_MATCHER.matches(b.getLeft()) && b.getOperator() == J.Binary.Type.GreaterThan && b.getRight() instanceof J.Literal && isValueNo...
, b.getRight()));
1,400,667
public static View createCompleteView(final ICallResolverTarget target, final List<IndirectCall> indirectCallAddresses, final Map<BigInteger, Set<ResolvedFunction>> resolvedAddresses) {<NEW_LINE>final View view = target.createView();<NEW_LINE>final Map<Function, FunctionNode> nodes = new HashMap<Function, FunctionNode>...
targetNode = nodes.get(function);
603,087
public SchemaRegistryValue deserializeValue(SchemaRegistryKey key, byte[] value) throws SerializationException {<NEW_LINE>SchemaRegistryValue schemaRegistryValue = null;<NEW_LINE>if (key.getKeyType().equals(SchemaRegistryKeyType.CONFIG)) {<NEW_LINE>try {<NEW_LINE>schemaRegistryValue = JacksonMapper.INSTANCE.readValue(v...
throw new SerializationException("Error while deserializing schema", e);
862,409
private static void updateIndexMappingsAndBuildSortOrder(IndexService indexService, CreateIndexClusterStateUpdateRequest request, List<CompressedXContent> mappings, @Nullable IndexMetadata sourceMetadata) throws IOException {<NEW_LINE>MapperService mapperService = indexService.mapperService();<NEW_LINE>IndexMode indexM...
.getMode() : IndexMode.STANDARD;
601,030
public com.amazonaws.services.ssmincidents.model.ConflictException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.ssmincidents.model.ConflictException conflictException = new com.amazonaws.services.ssmincidents.model.ConflictException(null);<NEW_LINE>int origin...
String currentParentElement = context.getCurrentParentElement();
1,624,704
public static void scaleDeployment(String deploymentName, int numberOfReplicas) throws ApiException {<NEW_LINE>AppsV1Api appsV1Api = new AppsV1Api();<NEW_LINE>appsV1Api.setApiClient(COREV1_API.getApiClient());<NEW_LINE>V1DeploymentList listNamespacedDeployment = appsV1Api.listNamespacedDeployment(DEFAULT_NAME_SPACE, nu...
warn("Scale the pod failed for Deployment:" + deploymentName, ex);
644,233
protected HashMap<String, Bitmap> doInBackground(FeatureCollection... params) {<NEW_LINE>QueryFeatureActivity activity = activityRef.get();<NEW_LINE>HashMap<String, Bitmap> imagesMap = new HashMap<>();<NEW_LINE>if (activity != null) {<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(activity);<NEW_LINE>if (params...
0, View.MeasureSpec.UNSPECIFIED);
1,324,913
final UpdateElasticIpResult executeUpdateElasticIp(UpdateElasticIpRequest updateElasticIpRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateElasticIpRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "UpdateElasticIp");
920,712
public void refreshRecentFile(String fileName) throws Throwable {<NEW_LINE>if (!StringUtils.isValidString(fileName)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GM.setCurrentPath(fileName);<NEW_LINE>String tempFileName;<NEW_LINE>int point = GC.RECENT_MENU_COUNT - 1;<NEW_LINE>for (int i = 0; i < fileItem.length; i++) {<NEW_L...
[0].setText(fileName);
313,749
private String addFieldsBinding(String target, List<ActionBuilderLine> lines, int level) {<NEW_LINE>StringBuilder stb = new StringBuilder();<NEW_LINE>lines.sort((l1, l2) -> {<NEW_LINE>if (l1.getDummy() && !l2.getDummy()) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>if (!l1.getDummy() && l2.getDummy()) {<NEW_LINE>return 1;...
addRelationalBinding(line, target, true);
1,132,554
public ChainableStage<RequestProcessingContext> buildStage() {<NEW_LINE>// No L10N - internally used class<NEW_LINE>if (resourceContext == null) {<NEW_LINE>throw new NullPointerException("Resource context is not set.");<NEW_LINE>}<NEW_LINE>if (config == null) {<NEW_LINE>throw new NullPointerException("Runtime configura...
.buildModel(resourceModel, false));
367,207
protected final void bindValues(SQLiteStatement stmt, Thread entity) {<NEW_LINE>stmt.clearBindings();<NEW_LINE>Long id = entity.getId();<NEW_LINE>if (id != null) {<NEW_LINE>stmt.bindLong(1, id);<NEW_LINE>}<NEW_LINE>String entityID = entity.getEntityID();<NEW_LINE>if (entityID != null) {<NEW_LINE>stmt.bindString(2, enti...
stmt.bindLong(5, creatorId);
1,438,370
public void process() {<NEW_LINE>// Check agent information<NEW_LINE>if (StringUtils.isEmpty(service) || StringUtil.isEmpty(serviceInstance) || timestamp == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Get all meter builders.<NEW_LINE>final List<MetricConvert<MASK><NEW_LINE>if (CollectionUtils.isEmpty(converts)) {<N...
> converts = processService.converts();
291,449
final DescribeReplicationConfigurationTemplatesResult executeDescribeReplicationConfigurationTemplates(DescribeReplicationConfigurationTemplatesRequest describeReplicationConfigurationTemplatesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeReplicationConfigurationTemplatesRequest...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
33,120
public void checkForExternalChange(MapModel map) {<NEW_LINE>if (map == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Controller controller = Controller.getCurrentController();<NEW_LINE>if (controller.getMap() != map) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean reloadsMapAfterExternalChange = ResourceController.getRes...
).getBooleanProperty(MONITOR_EXTERNAL_MIND_MAP_FILE_CHANGES_PROPERTY, true);
894,140
public static void remove(DatabaseConnection dbconn) throws IOException {<NEW_LINE>String name = dbconn.getName();<NEW_LINE>// NOI18N<NEW_LINE>FileObject fo = FileUtil.getConfigFile(CONNECTIONS_PATH);<NEW_LINE>// If CONNECTIONS_PATH can't be found (getConfigFile returns null)<NEW_LINE>// its useless to try to delete an...
objects[i].delete();
54,122
public TaskAnalysisReport analyze(TaskManifest existing, TaskManifest replacing) {<NEW_LINE>Map<String, String> existingDeploymentProperties = null;<NEW_LINE>if (existing != null) {<NEW_LINE>AppDeploymentRequest taskDeploymentRequest = existing.getTaskDeploymentRequest();<NEW_LINE>if (taskDeploymentRequest != null) {<N...
<String, String> replacingDeploymentProperties = null;
897,645
public void channelOpen(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {<NEW_LINE>// add new socket channel in channel container, used to manage sockets.<NEW_LINE>if (childGroups != null) {<NEW_LINE>childGroups.add(ctx.getChannel());<NEW_LINE>}<NEW_LINE>final byte[] seed = org.apache.commons.lang3.Ran...
.build().toByteArray();
231,482
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {<NEW_LINE>Query post = RemoteAccess.evaluate(request);<NEW_LINE>// Get the json data to visualize as a key value pair of data=<NEW_LINE>if (post.isDoS_blackout()) {<NEW_LINE>response.sendError(503, "Your request frequency...
post.get("legend", "");
915,912
public double paymentDelayConvexityFactor(HullWhiteOneFactorPiecewiseConstantParameters parameters, double startExpiry, double endExpiry, double u, double v, double tp) {<NEW_LINE>double a = parameters.getMeanReversion();<NEW_LINE>double factor1 = (Math.exp(-a * v) - Math.exp(-a * tp)) * (Math.exp(-a * v) - Math.exp(-a...
int sLen = indexEnd - indexStart + 1;
1,467,584
private RequestHeader createRequestheader(final Request request, final ClientIdentification.Agent agent) throws IOException {<NEW_LINE>final RequestHeader requestHeader = new RequestHeader();<NEW_LINE>requestHeader.put(<MASK><NEW_LINE>if (request.referrerhash() != null) {<NEW_LINE>String refererURL = this.sb.getURL(req...
HeaderFramework.USER_AGENT, agent.userAgent);
688,757
public DataType toDataType() throws DuplicateNameException {<NEW_LINE>UnionDataType union = new UnionDataType("Misc");<NEW_LINE>union.add(DWORD, "PhysicalAddress", null);<NEW_LINE>union.add(DWORD, "VirtualSize", null);<NEW_LINE>union.setCategoryPath(new CategoryPath("/PE"));<NEW_LINE>StructureDataType struct = new Stru...
setCategoryPath(new CategoryPath("/PE"));
67,895
public AsyncFuture<Void> configure() {<NEW_LINE>final IndicesAdminClient indices = client.admin().indices();<NEW_LINE>final List<AsyncFuture<AcknowledgedResponse>> writes = new ArrayList<>();<NEW_LINE>// ES 7+ no longer allows indexes to have multiple types. Each type is now it's own index.<NEW_LINE>for (final Map.Entr...
fail(new Exception("request not acknowledged"));
1,163,201
public boolean doBuild(TopologyBuilder bldr, Set<String> stageNames) {<NEW_LINE>// Create and set bolt<NEW_LINE>BoltDeclarer declarer;<NEW_LINE>if (operator instanceof IStreamletBasicOperator) {<NEW_LINE>setDefaultNameIfNone(StreamletNamePrefix.CUSTOM, stageNames);<NEW_LINE>IStreamletBasicOperator<R, T> op = (IStreamle...
IStreamletRichOperator<R, T>) operator;
1,200,451
public boolean canReorder(Object parent) throws UnknownTypeException {<NEW_LINE>UnknownTypeException uex = null;<NEW_LINE>TreeModel model = classNameToModel.get(parent.getClass().getName());<NEW_LINE>if (model != null) {<NEW_LINE>if (model instanceof ReorderableTreeModel) {<NEW_LINE>try {<NEW_LINE>return ((ReorderableT...
) model).canReorder(parent);
1,261,139
private static void fixStoredChartConfigurationToSupportMultipleViews(Client client) {<NEW_LINE>@SuppressWarnings("nls")<NEW_LINE>String[] charts = new String[] { //<NEW_LINE>"name.abuchen.portfolio.ui.views.DividendsPerformanceView", //<NEW_LINE>"name.abuchen.portfolio.ui.views.StatementOfAssetsViewer", //<NEW_LINE>"n...
values = new ArrayList<>();
1,634,753
public static ListQualityRulesResponse unmarshall(ListQualityRulesResponse listQualityRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listQualityRulesResponse.setRequestId(_ctx.stringValue("ListQualityRulesResponse.RequestId"));<NEW_LINE>listQualityRulesResponse.setHttpStatusCode(_ctx.integerValue("ListQualityRules...
("ListQualityRulesResponse.Data.Rules[" + i + "].RuleName"));
243,886
public void run() {<NEW_LINE>try {<NEW_LINE>ProcessBuilder builder = new ProcessBuilder();<NEW_LINE>List<String> cmd = new ArrayList<>();<NEW_LINE>cmd.add("java");<NEW_LINE>cmd.addAll(List.of("-cp", System.getProperty("java.class.path")));<NEW_LINE>if (jdwpPort >= 0) {<NEW_LINE>cmd.add("-agentlib:jdwp=server=y,transpor...
new RuntimeException("Agent terminated with error: " + errorMessage));
1,843,734
@Path("image")<NEW_LINE>@Produces("image/png")<NEW_LINE>public Response render(@QueryParam("q") String queryString, @QueryParam("backend") String backendGroup, @QueryParam("title") String title, @QueryParam("width") Integer width, @QueryParam("height") Integer height, @QueryParam("highlight") String highlightRaw, @Quer...
newQueryFromString(queryString).build();
1,125,635
protected ThingHandler createHandler(Thing thing) {<NEW_LINE>if (MieleBridgeHandler.SUPPORTED_THING_TYPES.contains(thing.getThingTypeUID())) {<NEW_LINE>MieleBridgeHandler handler = new MieleBridgeHandler((Bridge) thing, httpClient);<NEW_LINE>registerApplianceDiscoveryService(handler);<NEW_LINE>return handler;<NEW_LINE>...
HobHandler(thing, i18nProvider, localeProvider);
1,599,572
public static ListLocationResponse unmarshall(ListLocationResponse listLocationResponse, UnmarshallerContext _ctx) {<NEW_LINE>listLocationResponse.setRequestId<MASK><NEW_LINE>listLocationResponse.setErrorCode(_ctx.stringValue("ListLocationResponse.ErrorCode"));<NEW_LINE>listLocationResponse.setErrorMessage(_ctx.stringV...
(_ctx.stringValue("ListLocationResponse.RequestId"));
473,872
public int _deckNewLimitSingle(@NonNull Deck g, boolean considerCurrentCard) {<NEW_LINE>if (g.isDyn()) {<NEW_LINE>return mDynReportLimit;<NEW_LINE>}<NEW_LINE>long <MASK><NEW_LINE>@NonNull<NEW_LINE>DeckConfig c = mCol.getDecks().confForDid(did);<NEW_LINE>int lim = Math.max(0, c.getJSONObject("new").getInt("perDay") - g....
did = g.getLong("id");
488,447
private Mono<PagedResponse<ClusterPrincipalAssignmentInner>> listSinglePageAsync(String resourceGroupName, String clusterName, 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....
this.client.mergeContext(context);
1,142,935
protected List<LSCompletionItem> expressionCompletions(BallerinaCompletionContext context) {<NEW_LINE>List<Symbol> visibleSymbols = context.visibleSymbols(context.getCursorPosition());<NEW_LINE>List<LSCompletionItem> completionItems = new ArrayList<>(this.getModuleCompletionItems(context));<NEW_LINE>// Here we do not a...
.EXPR_BASE64_LITERAL.get()));
944,240
private void parseVersion(final File config, final Map<String, List<String>> toAdd) throws Exception {<NEW_LINE>class P extends DefaultHandler {<NEW_LINE><NEW_LINE>String name;<NEW_LINE><NEW_LINE>List<String> arr;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void startElement(String uri, String localName, String qName,...
name = attributes.getValue("codename");
367,978
public ThingAttribute unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ThingAttribute thingAttribute = new ThingAttribute();<NEW_LINE>reader.beg...
().unmarshall(context));
1,720,732
public Attribute unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Attribute attribute = new Attribute();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token =...
String currentParentElement = context.getCurrentParentElement();
567,179
public XmlObject generateWadl() {<NEW_LINE>ApplicationDocument applicationDocument = ApplicationDocument.Factory.newInstance();<NEW_LINE>Application application = applicationDocument.addNewApplication();<NEW_LINE>createDoc(application.addNewDoc(), restService);<NEW_LINE>Resources resources = application.addNewResources...
Grammars grammars = application.addNewGrammars();
1,672,719
public boolean isClosure(GraphManager graphMgr, Vertex<?, ?> fromVertex, Vertex<?, ?> toVertex, Traversal.Parameters params, GraphIterator.Scopes.Scoped scoped) {<NEW_LINE>ThingVertex player = fromVertex.asThing();<NEW_LINE><MASK><NEW_LINE>Set<TypeVertex> relationRoleTypes = graphMgr.schema().relatedRoleTypes(rel.type(...
ThingVertex rel = toVertex.asThing();
72,181
static Map<String, Multimap<String, FirewallSessionTraceInfo>> buildSessionsByOriginatingVrf(@Nullable Set<FirewallSessionTraceInfo> sessions) {<NEW_LINE>if (sessions == null) {<NEW_LINE>return ImmutableMap.of();<NEW_LINE>}<NEW_LINE>Map<String, ImmutableMultimap.Builder<String, FirewallSessionTraceInfo>> builder = new ...
originatingSessionScope.getOriginatingVrf(), session);
380,179
public void execute(JobExecutionContext jobExecutionContext) {<NEW_LINE>ExecutorService executorService = ExecutorUtils.getJobWorkers();<NEW_LINE>ExecutorUtils.printThreadPoolStatus(executorService, "JOB_WORKERS", scheduleLogger);<NEW_LINE>executorService.submit(() -> {<NEW_LINE>TriggerKey triggerKey = jobExecutionCont...
e.getMessage(), e);
762,487
public static BatchGetInstanceRunSummaryResponse unmarshall(BatchGetInstanceRunSummaryResponse batchGetInstanceRunSummaryResponse, UnmarshallerContext _ctx) {<NEW_LINE>batchGetInstanceRunSummaryResponse.setRequestId(_ctx.stringValue("BatchGetInstanceRunSummaryResponse.RequestId"));<NEW_LINE>List<RunSummary> runSummarys...
("BatchGetInstanceRunSummaryResponse.RunSummarys[" + i + "].Id"));
1,579,728
public void prepareForMigration(VirtualMachineProfile vm, DeployDestination dest) {<NEW_LINE>List<VolumeVO> vols = _volsDao.findUsableVolumesForInstance(vm.getId());<NEW_LINE>if (s_logger.isDebugEnabled()) {<NEW_LINE>s_logger.debug("Preparing " + vols.size() + " volumes for " + vm);<NEW_LINE>}<NEW_LINE>for (VolumeVO vo...
getVolume(vol.getId());
1,387,634
protected int compareNormal(Object e1, Object e2) {<NEW_LINE>try {<NEW_LINE>ColumnLabelProvider labelProvider = (<MASK><NEW_LINE>String t1 = labelProvider.getText(e1);<NEW_LINE>String t2 = labelProvider.getText(e2);<NEW_LINE>Boolean isNumber = (Boolean) this.col.getData("isNumber");<NEW_LINE>if (isNumber != null && isN...
ColumnLabelProvider) viewer.getLabelProvider(colIndex);
1,101,743
private void create(File ghidraInstallDir, String projectName, File projectDir, boolean createRunConfig, String runConfigMemory, boolean linkUserScripts, boolean linkSystemScripts, String jythonInterpreterName, IProgressMonitor monitor) throws InvocationTargetException {<NEW_LINE>try {<NEW_LINE>info("Creating " + proje...
linkSystemScripts, ghidraLayout, jythonInterpreterName, monitor);
1,160,154
public static String rocChartToHtml(ROCMultiClass rocMultiClass, List<String> classNames) {<NEW_LINE>int n = rocMultiClass.getNumClasses();<NEW_LINE>List<Component> components = new ArrayList<>(n);<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>RocCurve roc = rocMultiClass.getRocCurve(i);<NEW_LINE>String headerText = ...
, rocMultiClass.getPrecisionRecallCurve(i));
611,753
protected void performRewrite(TransformationContext ctx) throws Exception {<NEW_LINE>WorkingCopy javac = ctx.getWorkingCopy();<NEW_LINE>DocTreePath path = dtph.resolve(javac);<NEW_LINE>if (path == null) {<NEW_LINE>LOG.log(Level.WARNING, "Cannot resolve DocTreePathHandle: {0}", dtph);<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
TreeMaker make = javac.getTreeMaker();
228,192
public RelNode toRel(final RelOptTable table) {<NEW_LINE>final RelNode scan = table.toRel(createToRelContext());<NEW_LINE>final InitializerExpressionFactory ief = Util.first(table.unwrap(InitializerExpressionFactory.class), NullInitializerExpressionFactory.INSTANCE);<NEW_LINE>// Lazily create a blackboard that contains...
sourceRef = rexBuilder.makeRangeReference(scan);
145,277
<T> BindingImpl<T> createUninitializedBinding(Key<T> key, Scoping scoping, Object source, Errors errors, boolean jitBinding) throws ErrorsException {<NEW_LINE>Class<?> rawType = key.getTypeLiteral().getRawType();<NEW_LINE>ImplementedBy implementedBy = rawType.getAnnotation(ImplementedBy.class);<NEW_LINE>// Don't try to...
Object>>) key, errors);
1,069,482
public static QueryDetailSceneRuleLogResponse unmarshall(QueryDetailSceneRuleLogResponse queryDetailSceneRuleLogResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryDetailSceneRuleLogResponse.setRequestId(_ctx.stringValue("QueryDetailSceneRuleLogResponse.RequestId"));<NEW_LINE>queryDetailSceneRuleLogResponse.setSuccess(...
(_ctx.stringValue("QueryDetailSceneRuleLogResponse.Code"));
660,757
private void exportFiles(AutoIngestDataSource dataSource) throws FileExportException, AutoIngestJobLoggerException, InterruptedException, IOException, CoordinationServiceException {<NEW_LINE>Manifest manifest = currentJob.getManifest();<NEW_LINE>Path manifestPath = manifest.getFilePath();<NEW_LINE>sysLogger.log(Level.I...
Path caseDirectoryPath = currentJob.getCaseDirectoryPath();
1,107,678
private void alertTopicAnomaly(AnomalyType anomalyType, final String localHostname, List<AlertaMessage> alertaMessages, TopicAnomaly topicAnomaly) {<NEW_LINE>if (topicAnomaly instanceof TopicPartitionSizeAnomaly) {<NEW_LINE>TopicPartitionSizeAnomaly topicPartitionSizeAnomaly = (TopicPartitionSizeAnomaly) topicAnomaly;<...
localHostname, anomalyType.toString());
1,591,890
private void parseErrorTag(UnknownBlockTagTree tagTree) {<NEW_LINE>// Parse the @error tag text to find the @link inline tag.<NEW_LINE>LinkTree linkedTag;<NEW_LINE>try {<NEW_LINE>linkedTag = tagTree.getContent().stream().filter(docTree -> docTree.getKind() == Kind.LINK).map(LinkTree.class::cast).collect(onlyElement());...
getDocTrees().getDocCommentTree(referencedTypeElement);
1,177,520
final GetStreamingDistributionConfigResult executeGetStreamingDistributionConfig(GetStreamingDistributionConfigRequest getStreamingDistributionConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getStreamingDistributionConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
GetStreamingDistributionConfigResult>(new GetStreamingDistributionConfigResultStaxUnmarshaller());
246,893
protected LdapServer createLdapServer() {<NEW_LINE>LdapServer ldapServer = super.createLdapServer();<NEW_LINE>ldapServer.setSaslHost(this.bindHost);<NEW_LINE>ldapServer.setSaslPrincipal(this.ldapSaslPrincipal);<NEW_LINE>ldapServer.setSaslRealms(new ArrayList<String>());<NEW_LINE>ldapServer.addSaslMechanismHandler(Suppo...
.PLAIN, new PlainMechanismHandler());
1,157,117
private static void executeOneTrainingBatch(SentimentModel model, List<Tree> trainingBatch, double[] sumGradSquare) {<NEW_LINE>SentimentCostAndGradient gcFunc = new SentimentCostAndGradient(model, trainingBatch);<NEW_LINE>double[] theta = model.paramsToVector();<NEW_LINE>// AdaGrad<NEW_LINE>double eps = 1e-3;<NEW_LINE>...
[feature]) + eps));
293,071
public PersistenceException translate(String message, SQLException e) {<NEW_LINE>DataErrorType errorType = getErrorType(e);<NEW_LINE>// for DB2 we must inspect the sql exception chain to determine which<NEW_LINE>// persistence error occurred in a batch execution. We also concatenate<NEW_LINE>// the error messages to im...
append(chain.getMessage());
1,145,340
private SegmentZKMetadata updateCommittingSegmentZKMetadata(String realtimeTableName, CommittingSegmentDescriptor committingSegmentDescriptor) {<NEW_LINE><MASK><NEW_LINE>LOGGER.info("Updating segment ZK metadata for committing segment: {}", segmentName);<NEW_LINE>Stat stat = new Stat();<NEW_LINE>SegmentZKMetadata commi...
String segmentName = committingSegmentDescriptor.getSegmentName();
1,441,038
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Task t...
getWork(), Work.class);
1,016,775
/*<NEW_LINE>* Add a synthetic field to handle the cache of the switch translation table for the corresponding enum type<NEW_LINE>*/<NEW_LINE>public SyntheticFieldBinding addSyntheticFieldForSwitchEnum(char[] fieldName, String key) {<NEW_LINE>if (!isPrototype())<NEW_LINE>throw new IllegalStateException();<NEW_LINE>if (t...
.FIELD_EMUL].size());
1,194,792
public List<TskFileRange> convertToImgRanges(long fileOffset, long length) throws TskCoreException {<NEW_LINE>if (fileOffset < 0 || length < 0) {<NEW_LINE>throw new TskCoreException("fileOffset and length must be non-negative");<NEW_LINE>}<NEW_LINE>List<TskFileRange> thisRanges = getRanges();<NEW_LINE>List<TskFileRange...
toRet = new ArrayList<>();
85,886
private Map<String, String> queryEnvironmentVariables() {<NEW_LINE>// Get environment variables via sysctl(3)<NEW_LINE>int[] mib = new int[4];<NEW_LINE>// CTL_KERN<NEW_LINE>mib[0] = 1;<NEW_LINE>// KERN_PROC_ARGS<NEW_LINE>mib[1] = 55;<NEW_LINE>mib[2] = getProcessID();<NEW_LINE>// KERN_PROC_ENV<NEW_LINE>mib[3] = 3;<NEW_L...
m.getString(argAddr - baseAddr);
1,122,559
public ListControlPanelsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListControlPanelsResult listControlPanelsResult = new ListControlPanelsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
JsonToken token = context.getCurrentToken();
578,792
private void showView(SettingsView aView) {<NEW_LINE>if (mCurrentView != null) {<NEW_LINE>mCurrentView.onHidden();<NEW_LINE>this.removeView(mCurrentView);<NEW_LINE>}<NEW_LINE>mCurrentView = aView;<NEW_LINE>if (mCurrentView != null) {<NEW_LINE>mOpenDialog = aView.getType();<NEW_LINE>Point viewDimensions = mCurrentView.g...
optionsLayout.setVisibility(View.GONE);
832,308
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {<NEW_LINE>if (!Optional.ofNullable(req.getPathInfo()).filter(s -> !s.isEmpty()).isPresent()) {<NEW_LINE>try (final PrintWriter output = resp.getWriter()) {<NEW_LINE>resp.setContentType(DEFAULT_CONTENT_TYPE);<NEW...
resp.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
1,747,224
private OptimizerStats optimizeJavaOneTime(String passName, int numNodes, OptimizerContext optimizerCtx) {<NEW_LINE>Event optimizeEvent = SpeedTracerLogger.start(CompilerEventType.OPTIMIZE, "phase", "loop");<NEW_LINE>// Clinits might have become empty become empty.<NEW_LINE>jprogram.typeOracle.recomputeAfterOptimizatio...
OptimizerStats stats = new OptimizerStats(passName);
66,499
public static void renderBehaviorizedFieldEventHandlersWithoutOnchange(FacesContext facesContext, ResponseWriter writer, long commonPropertiesMarked, long commonEventsMarked, UIComponent uiComponent, String targetClientId, Map<String, List<ClientBehavior>> clientBehaviors) throws IOException {<NEW_LINE>if ((commonPrope...
BLUR, clientBehaviors, HTML.ONBLUR_ATTR);
734,224
static MethodSpec generateDispatchOnEventImpl(SpecModel specModel) {<NEW_LINE>final MethodSpec.Builder methodBuilder = MethodSpec.methodBuilder("dispatchOnEventImpl").addModifiers(Modifier.PROTECTED).addAnnotation(Override.class).returns(TypeName.OBJECT).addParameter(ParameterSpec.builder(EVENT_HANDLER, "eventHandler",...
.endControlFlow().build();
141,353
private CommonResponse handleStaticResource(String path, CommonRequest request) throws IOException {<NEW_LINE>URL url = getSecureUrlForPath(RESOURCE_BASE + path);<NEW_LINE>if (url == null) {<NEW_LINE>// log at debug only since this is typically just exploit bot spam<NEW_LINE>logger.debug("unexpected path: {}", path);<N...
mediaType = mediaTypes.get(extension);
1,377,397
public static void main(String[] args) {<NEW_LINE>Channel channel = ManagedChannelBuilder.forAddress("localhost", 1408).usePlaintext().build();<NEW_LINE>// Obtain the user name and password from the program arguments<NEW_LINE>String user = args.length >= 2 ? args[0] : "Ted";<NEW_LINE>String password = args.length >= 2 ...
response.getText() + "'");
344,976
public static MoveResourcesResponse unmarshall(MoveResourcesResponse moveResourcesResponse, UnmarshallerContext _ctx) {<NEW_LINE>moveResourcesResponse.setRequestId(_ctx.stringValue("MoveResourcesResponse.RequestId"));<NEW_LINE>List<Response> responses <MASK><NEW_LINE>for (int i = 0; i < _ctx.lengthValue("MoveResourcesR...
= new ArrayList<Response>();
573,780
public BatchCreateVariableError unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BatchCreateVariableError batchCreateVariableError = new BatchCreateVariableError();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
class).unmarshall(context));
888,599
public void run(RegressionEnvironment env) {<NEW_LINE>String text = "@name('s0') select irstream * from SupportMarketDataBean#length(3)#uni(price)";<NEW_LINE>env.compileDeployAddListenerMileZero(text, "s0");<NEW_LINE>env.sendEventBean(makeBean(50, "f1"));<NEW_LINE>env.assertPropsNV("s0", new Object[][] { { "total", 50...
(makeBean(25, "f2"));
65,327
public void load() {<NEW_LINE>ExUtil.asyncRun(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>MapPack mpack = null;<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE><MASK><NEW_LINE>mpack = (MapPack) tcp.getSingle(RequestCmd.APACHE_S...
param.put("objHash", objHash);
506,066
public static DescribeDomainHttpCodeDataResponse unmarshall(DescribeDomainHttpCodeDataResponse describeDomainHttpCodeDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainHttpCodeDataResponse.setRequestId(_ctx.stringValue("DescribeDomainHttpCodeDataResponse.RequestId"));<NEW_LINE>describeDomainHttpCodeDataRe...
("DescribeDomainHttpCodeDataResponse.HttpCodeData[" + i + "].TimeStamp"));
731,180
protected static ControlCardinalityInfo createCardinalityInfo(MessageProcessor MP, SIBUuid8 target, long reqID, int card) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "createCardinalityInfo", new Object[] { MP, target, new Long(reqID), new Integer(card) });<NEW_LI...
exit(tc, "createCardinalityInfo", msg);
1,619,349
public void editDetails(final NodeModel nodeModel, InputEvent e, final boolean editInDialog) {<NEW_LINE>final Controller controller = Controller.getCurrentController();<NEW_LINE>stopInlineEditing();<NEW_LINE>DetailTextEditorHolder editorHolder = nodeModel.getExtension(DetailTextEditorHolder.class);<NEW_LINE>if (editorH...
getMapViewManager().getMapViewComponent());
1,759,410
public static void main1(String[] args) throws IOException {<NEW_LINE>if (args.length < 1) {<NEW_LINE>System.out.println("Syntax: <movie.mov>");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File file = new File(args[0]);<NEW_LINE>FilePool fp = new FilePool(file, 10);<NEW_LINE>MovieBox movie = MP4Util.parseMovie(file);<NEW_LINE...
(vm, ref, cmrs));
258,539
public static MutableRoaringBitmap priorityqueue_or(ImmutableRoaringBitmap... bitmaps) {<NEW_LINE>if (bitmaps.length == 0) {<NEW_LINE>return new MutableRoaringBitmap();<NEW_LINE>} else if (bitmaps.length == 1) {<NEW_LINE>return bitmaps[0].toMutableRoaringBitmap();<NEW_LINE>}<NEW_LINE>// we buffer the call to getLongSiz...
buffer[x1].serializedSizeInBytes();
819,083
public Set<LanguagePath> languagePaths() {<NEW_LINE>ensureReadLocked();<NEW_LINE>Set<LanguagePath> lps;<NEW_LINE>synchronized (rootTokenList) {<NEW_LINE>lps = languagePaths;<NEW_LINE>if (lps == null) {<NEW_LINE>if (!isActiveImpl())<NEW_LINE>return Collections.emptySet();<NEW_LINE>Language<?<MASK><NEW_LINE>LanguageOpera...
> lang = rootTokenList.language();
433,243
public static <E> String limitedToString(Collection<E> c) {<NEW_LINE>Iterator<E> it = c.iterator();<NEW_LINE>if (it.hasNext() == false) {<NEW_LINE>return "[]";<NEW_LINE>}<NEW_LINE>// ..]<NEW_LINE>StringBuilder sb = new StringBuilder(TO_STRING_LIMIT + 4);<NEW_LINE>sb.append('[');<NEW_LINE>for (; ; ) {<NEW_LINE>E e = it....
sb.length())));
1,654,907
private TabLabel findMostOverlapping(Axis measurer, TabLabel... labels) {<NEW_LINE>double freeSpace;<NEW_LINE>if (measurer.getMinValue(myDragRec) < measurer.getMinValue(myDragOriginalRec)) {<NEW_LINE>freeSpace = measurer.getMaxValue(myDragOriginalRec<MASK><NEW_LINE>} else {<NEW_LINE>freeSpace = measurer.getMinValue(myD...
) - measurer.getMaxValue(myDragRec);
1,712,547
protected void invalidateTable(String databaseName, String tableName) {<NEW_LINE>HiveTableName <MASK><NEW_LINE>tableCache.asMap().keySet().stream().filter(hiveTableNameKey -> hiveTableNameKey.getKey().equals(hiveTableName)).forEach(tableCache::invalidate);<NEW_LINE>tableNamesCache.asMap().keySet().stream().filter(table...
hiveTableName = hiveTableName(databaseName, tableName);