idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
156,210
public boolean apply(Game game, Ability source) {<NEW_LINE>Permanent targetedPermanent = game.getPermanent(source.getFirstTarget());<NEW_LINE>// store the permanent that was targeted<NEW_LINE>game.getState().setValue("MysticReflection" + source.getSourceId().toString(), targetedPermanent);<NEW_LINE>MysticReflectionWatc...
game.addEffect(gainAbilityEffect, source);
462,235
public DeletePipelineResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeletePipelineResult deletePipelineResult = new DeletePipelineResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
JsonToken token = context.getCurrentToken();
579,586
public StringBuilder appendTo(final StringBuilder builder) {<NEW_LINE>if (null == buffer) {<NEW_LINE>return builder;<NEW_LINE>}<NEW_LINE>final int originalLimit = limit();<NEW_LINE>limit(initialOffset + actingBlockLength);<NEW_LINE>builder.append("[FrameCodec](sbeTemplateId=");<NEW_LINE>builder.append(TEMPLATE_ID);<NEW...
builder.append(irVersion());
1,551,985
public List<Move> generateCutOffMoves(StockMove stockMove, LocalDate moveDate, LocalDate reverseMoveDate, int accountingCutOffTypeSelect, boolean recoveredTax, boolean ati, String moveDescription, boolean includeNotStockManagedProduct) throws AxelorException {<NEW_LINE>List<Move> moveList = new ArrayList<>();<NEW_LINE>...
ati, moveDescription, includeNotStockManagedProduct, true);
239,379
<T> Iterable<Class<? extends T>> load(Class<T> pluginType) {<NEW_LINE>return PerfStatsCollector.getInstance().measure("loadPlugins", () -> {<NEW_LINE>ClassLoader serviceClassLoader = classLoader;<NEW_LINE>if (serviceClassLoader == null) {<NEW_LINE>serviceClassLoader = Thread.currentThread().getContextClassLoader();<NEW...
String s = reader.readLine();
335,062
private void addAnchorUrls(Document html, HTTPSampleResult result, HTTPSamplerBase config, List<HTTPSamplerBase> potentialLinks) {<NEW_LINE>String base = "";<NEW_LINE>// $NON-NLS-1$<NEW_LINE>NodeList baseList = html.getElementsByTagName("base");<NEW_LINE>if (baseList.getLength() > 0) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>...
namedItem = nnm.getNamedItem("href");
791,167
protected BootJavaHoverProvider createHoverHandler(JavaProjectFinder javaProjectFinder, SourceLinks sourceLinks, SpringProcessLiveDataProvider liveDataProvider) {<NEW_LINE>AnnotationHierarchyAwareLookup<HoverProvider> providers = new AnnotationHierarchyAwareLookup<>();<NEW_LINE>ValueHoverProvider valueHoverProvider = n...
ComponentInjectionsHoverProvider componentInjectionsHoverProvider = new ComponentInjectionsHoverProvider(sourceLinks);
1,484,753
public Double pay(@QueryParam("acct") String acctNumber, Payment payment) throws UnknownAccountException, InsufficientFundsException {<NEW_LINE>int myTimeout = AsyncTestServlet.TIMEOUT;<NEW_LINE>if (isAIX()) {<NEW_LINE>myTimeout = AsyncTestServlet.TIMEOUT * 2;<NEW_LINE>}<NEW_LINE>if (isZOS()) {<NEW_LINE>myTimeout = Asy...
balance = accountBalances.get(acctNumber);
458,370
private void emitBind(TypeSpec.Builder builder) {<NEW_LINE>MethodSpec.Builder bindBuilder = MethodSpec.methodBuilder("bind").addModifiers(Modifier.PUBLIC, Modifier.STATIC).addParameter(get(Dart.Finder.class), "finder").addParameter(bestGuess(target.getFQN()), "target");<NEW_LINE>bindBuilder.addStatement("target.$L = ne...
addMethod(bindBuilder.build());
1,026,878
public CreateSafetyRuleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateSafetyRuleResult createSafetyRuleResult = new CreateSafetyRuleResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok...
String currentParentElement = context.getCurrentParentElement();
1,650,684
public static CompilationUnitDeclaration parse(org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit, NodeSearcher nodeSearcher, Map settings, int flags) {<NEW_LINE>if (sourceUnit == null) {<NEW_LINE>throw new IllegalStateException();<NEW_LINE>}<NEW_LINE>CompilerOptions compilerOptions = new CompilerOptions...
TypeDeclaration[] types = compilationUnitDeclaration.types;
1,430,084
protected Object filterObject(Object result, GroovyDSLDContext context, String firstArgAsString) {<NEW_LINE>if (firstArgAsString == null) {<NEW_LINE>return reify(result);<NEW_LINE>}<NEW_LINE>String toCompare;<NEW_LINE>if (result instanceof ClassNode) {<NEW_LINE>toCompare = ((<MASK><NEW_LINE>} else if (result instanceof...
ClassNode) result).getName();
410,259
public void onClick(DialogInterface dialog, int _which) {<NEW_LINE>String ourVersion = Util.getSelfVersionName(context);<NEW_LINE>StringBuilder sb = new StringBuilder(text);<NEW_LINE>sb.insert(0, "\r\n");<NEW_LINE>sb.insert(0, String.format("Id: %s\r\n", Build.ID));<NEW_LINE>sb.insert(0, String.format("Display: %s\r\n"...
EXTRA_TEXT, sb.toString());
1,487,178
public static void updateTopologyTaskTimeout(NimbusData data, String topologyId) {<NEW_LINE>Map topologyConf = null;<NEW_LINE>try {<NEW_LINE>topologyConf = StormConfig.read_nimbus_topology_conf(<MASK><NEW_LINE>} catch (Exception e) {<NEW_LINE>LOG.warn("Failed to read configuration of {}, {}", topologyId, e.getMessage()...
topologyId, data.getBlobStore());
1,079,841
public void curve(float x1, float y1, float cx1, float cy1, float cx2, float cy2, float x2, float y2, int segments) {<NEW_LINE>check(ShapeType.Line, null, segments * 2 + 2);<NEW_LINE>float colorBits = color.toFloatBits();<NEW_LINE>// Algorithm from: http://www.antigrain.com/research/bezier_interpolation/index.html#PAGE...
vertex(fx, fy, 0);
1,093,630
public ListenableFuture<?> processFor(long maxRuntime, long start) {<NEW_LINE>checkLockNotHeld("Can not process for a duration while holding the driver lock");<NEW_LINE>try (DriverLockResult lockResult = tryLockAndProcessPendingStateChanges(100, TimeUnit.MILLISECONDS)) {<NEW_LINE>if (lockResult.wasAcquired()) {<NEW_LIN...
.getYieldSignal().reset();
244,153
final GetResourcePolicyResult executeGetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Requ...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,174,447
private AuthnRequest createAuthnRequest(Saml2AuthenticationRequestContext context) {<NEW_LINE>String issuer = context.getIssuer();<NEW_LINE>String destination = context.getDestination();<NEW_LINE>String assertionConsumerServiceUrl = context.getAssertionConsumerServiceUrl();<NEW_LINE>String protocolBinding = context.get...
auth.setProtocolBinding(SAMLConstants.SAML2_POST_BINDING_URI);
1,424,159
// generates the equivalent of IOUtils.toByteArray<NEW_LINE>private static MethodNode generateDecryptionMethod(ClassNode decryptorClass) {<NEW_LINE>LabelNode start = new LabelNode();<NEW_LINE>LabelNode end = new LabelNode();<NEW_LINE>MethodNode decryptorNode = new MethodNode(Opcodes.ACC_PUBLIC | Opcodes.ACC_STATIC, "De...
new JumpInsnNode(IF_ICMPEQ, end));
1,173,307
public MLFeature apply(@Nonnull final EntityResponse entityResponse) {<NEW_LINE>final MLFeature result = new MLFeature();<NEW_LINE>result.setUrn(entityResponse.getUrn().toString());<NEW_LINE>result.setType(EntityType.MLFEATURE);<NEW_LINE>EnvelopedAspectMap aspectMap = entityResponse.getAspects();<NEW_LINE>MappingHelper...
new Deprecation(dataMap))));
1,473,589
protected void performContextAction(final Node[] nodes) {<NEW_LINE>if (!Subversion.getInstance().checkClientAvailable()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Context ctx = getContext(nodes);<NEW_LINE>File[<MASK><NEW_LINE>// filter managed roots<NEW_LINE>List<File> l = new ArrayList<>();<NEW_LINE>for (File file ...
] roots = ctx.getRootFiles();
1,610,405
public void addRecord(IndexSegment segment, RecordInfo recordInfo) {<NEW_LINE>ThreadSafeMutableRoaringBitmap validDocIds = Objects.requireNonNull(segment.getValidDocIds());<NEW_LINE>_primaryKeyToRecordLocationMap.compute(hashPrimaryKey(recordInfo._primaryKey, _hashFunction), (primaryKey, currentRecordLocation) -> {<NEW...
recordInfo._docId, recordInfo._comparisonValue);
626,614
RedisProperties redisProperties(AzureRedisProperties azureRedisProperties, AzureResourceManager azureResourceManager) {<NEW_LINE>String cacheName = azureRedisProperties.getName();<NEW_LINE>String resourceGroup = azureRedisProperties<MASK><NEW_LINE>RedisCache redisCache = azureResourceManager.redisCaches().getByResource...
.getResource().getResourceGroup();
1,202,666
private BType checkErrCtrTargetTypeAndSetSymbol(BLangNamedArgsExpression namedArgsExpression, BType expectedType) {<NEW_LINE>BType type = Types.getReferredType(expectedType);<NEW_LINE>if (type == symTable.semanticError) {<NEW_LINE>return symTable.semanticError;<NEW_LINE>}<NEW_LINE>if (type.tag == TypeTags.MAP) {<NEW_LI...
get(namedArgsExpression.name.value);
1,692,154
private void updateLabels() {<NEW_LINE>String src = getFirstNotNullTrimmed(sourceText.getText(), "");<NEW_LINE>boolean validSource = isFileAccesible(src);<NEW_LINE>IPath path = Path.fromOSString(src);<NEW_LINE>String filename = (src.isEmpty() || path.isEmpty()) ? "Invalid" : path.segment(path.segmentCount() - 1);<NEW_L...
TransformType.CPP.getSuffix());
1,243,994
static private boolean anyAlpha(int[] pixels) {<NEW_LINE>// The upper-left corner is a good bet to test first, but not sufficient.<NEW_LINE>if ((pixels[0] & 0xFF000000) != 0xFF000000) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// Otherwise, take a random sample for our best guess. This is much<NEW_LINE>// faster (and ...
Math.sqrt(pixels.length);
123,044
private SchemaElementPrinter<GraphQLInterfaceType> interfacePrinter() {<NEW_LINE>return (out, type, visibility) -> {<NEW_LINE>if (isIntrospectionType(type)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (shouldPrintAsAst(type.getDefinition())) {<NEW_LINE>printAsAst(out, type.getDefinition(), type.getExtensionDefinitions())...
GraphQLInterfaceType.class, GraphQLFieldDefinition.class);
302,489
private static void changeStorageTypeObject2(OSS ossClient) throws InterruptedException, IOException {<NEW_LINE>// This example requires a bucket containing an object of the Archive storage class.<NEW_LINE>String objectName = "*** Provide object name ***";<NEW_LINE>// Obtain the object metadata.<NEW_LINE>ObjectMetadata...
out.println("storage type:" + storageClass);
1,522,807
private void crossover(final MSeq<G> that, final MSeq<G> other, final int i) {<NEW_LINE>final <MASK><NEW_LINE>final double u = random.nextDouble();<NEW_LINE>final double beta;<NEW_LINE>if (u < 0.5) {<NEW_LINE>// If u is smaller than 0.5 perform a contracting crossover.<NEW_LINE>beta = pow(2 * u, 1.0 / (_contiguity + 1)...
var random = RandomRegistry.random();
229,353
public static void updateGridOrListIcon(ImageView gridList, int libraryMode) {<NEW_LINE>if (gridList == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int stringId = R.string.list;<NEW_LINE>if (libraryMode == AppState.MODE_LIST) {<NEW_LINE>gridList.<MASK><NEW_LINE>stringId = R.string.list;<NEW_LINE>} else if (libraryMode...
setImageResource(R.drawable.glyphicons_114_justify);
987,504
final CreateSqlInjectionMatchSetResult executeCreateSqlInjectionMatchSet(CreateSqlInjectionMatchSetRequest createSqlInjectionMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSqlInjectionMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,530,879
public void run(ITextSelection selection) {<NEW_LINE>if (!(getSite() instanceof IEditorSite)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>IWorkbenchPart part = ((IEditorSite) getSite()).getPart();<NEW_LINE>if (!(part instanceof GroovyEditor)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>GroovyEditor groovyEditor = (GroovyEditor) ...
FormatterPreferences preferences = new FormatterPreferences(unit);
959,168
public static QueryLoginEventResponse unmarshall(QueryLoginEventResponse queryLoginEventResponse, UnmarshallerContext context) {<NEW_LINE>queryLoginEventResponse.setRequestId(context.stringValue("QueryLoginEventResponse.requestId"));<NEW_LINE>queryLoginEventResponse.setCode(context.stringValue("QueryLoginEventResponse....
("QueryLoginEventResponse.Data.List[" + i + "].Status"));
900,835
public co.elastic.clients.elasticsearch.indices.PutTemplateRequest indicesPutTemplateRequest(PutTemplateRequest putTemplateRequest) {<NEW_LINE>Assert.notNull(putTemplateRequest, "putTemplateRequest must not be null");<NEW_LINE>co.elastic.clients.elasticsearch.indices.PutTemplateRequest.Builder builder = new co.elastic....
searchRouting(parameters.getSearchRouting());
597,685
private static TreePath visitModel(@Nonnull TreeModel model, @Nonnull TreeVisitor visitor) {<NEW_LINE><MASK><NEW_LINE>if (root == null)<NEW_LINE>return null;<NEW_LINE>TreePath path = new TreePath(root);<NEW_LINE>switch(visitor.visit(path)) {<NEW_LINE>case INTERRUPT:<NEW_LINE>// root path is found<NEW_LINE>return path;<...
Object root = model.getRoot();
689,938
private JPanel buttonTab(final RailButton rbc) {<NEW_LINE>JPanel primary = new JPanel(new MigLayout("fill"));<NEW_LINE>JPanel panel = new JPanel(new MigLayout());<NEW_LINE>{<NEW_LINE>// // Outer Diameter<NEW_LINE>panel.add(new JLabel(trans.get("RailBtnCfg.lbl.OuterDiam")));<NEW_LINE>DoubleModel ODModel = new DoubleMode...
panel.add(heightSpinner, "growx");
1,852,033
void delete(Iterator<Triple> it, List<Triple> list) {<NEW_LINE>String del_start = "sparql define output:format '_JAVA_' DELETE FROM <";<NEW_LINE><MASK><NEW_LINE>int count = 0;<NEW_LINE>StringBuilder data = new StringBuilder(256);<NEW_LINE>data.append(del_start);<NEW_LINE>data.append(this.graphName);<NEW_LINE>data.appen...
java.sql.Statement stmt = null;
1,776,185
private static void serializeKeyToByteBuffer(final ByteBuffer buffer, final OType type, final Object key) {<NEW_LINE>switch(type) {<NEW_LINE>case BINARY:<NEW_LINE>final byte[] array = (byte[]) key;<NEW_LINE>buffer.putInt(array.length);<NEW_LINE>buffer.put(array);<NEW_LINE>return;<NEW_LINE>case BOOLEAN:<NEW_LINE>buffer....
.putInt((Integer) key);
1,695,423
public RestChannelConsumer prepareRequest(final RestRequest request, final NodeClient client) throws IOException {<NEW_LINE>CreateIndexRequest createIndexRequest = new CreateIndexRequest(request.param("index"));<NEW_LINE>boolean includeTypeName = <MASK><NEW_LINE>if (request.hasContent()) {<NEW_LINE>Map<String, Object> ...
request.paramAsBoolean(INCLUDE_TYPE_NAME_PARAMETER, DEFAULT_INCLUDE_TYPE_NAME_POLICY);
1,196,752
public static DescribeFabricConsortiumsResponse unmarshall(DescribeFabricConsortiumsResponse describeFabricConsortiumsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFabricConsortiumsResponse.setRequestId(_ctx.stringValue("DescribeFabricConsortiumsResponse.RequestId"));<NEW_LINE>describeFabricConsortiumsResponse...
+ "].Tags[" + j + "].Value"));
425,073
private static EngineInfo initIdmEngineFromResource(URL resourceUrl) {<NEW_LINE>EngineInfo idmEngineInfo = idmEngineInfosByResourceUrl.get(resourceUrl.toString());<NEW_LINE>// if there is an existing idm engine info<NEW_LINE>if (idmEngineInfo != null) {<NEW_LINE>// remove that idm engine from the member fields<NEW_LINE...
idmEngineInfosByName.put(idmEngineName, idmEngineInfo);
712,992
public static void dump(ServletContext ctx) {<NEW_LINE>log.config("ServletContext " + ctx.getServletContextName());<NEW_LINE>log.config(<MASK><NEW_LINE>if (!CLogMgt.isLevelFiner())<NEW_LINE>return;<NEW_LINE>boolean first = true;<NEW_LINE>Enumeration e = ctx.getInitParameterNames();<NEW_LINE>while (e.hasMoreElements()) ...
"- ServerInfo=" + ctx.getServerInfo());
437,409
public void parseArguments(String[] args) throws GCViewerArgsParserException {<NEW_LINE>List<String> argsList = new ArrayList<String><MASK><NEW_LINE>int typeIdx = argsList.indexOf("-t");<NEW_LINE>// If there is a -t and there is a string after, set the type<NEW_LINE>if (typeIdx != -1 && argsList.size() > (typeIdx + 1))...
(Arrays.asList(args));
451,339
public void actionPerformed(java.awt.event.ActionEvent p_evt) {<NEW_LINE>int[] selected_rows = table.getSelectedRows();<NEW_LINE>if (selected_rows.length <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>app.freerouting.interactive.BoardHandling board_handling = board_frame.board_panel.board_handling;<NEW_LINE>app.freerouti...
get(i).get_class();
279,930
public Expr apply(final List<Expr> args) {<NEW_LINE>if (args.size() < 2 || args.size() > 3) {<NEW_LINE>throw new IAE("Function[%s] must have 2 or 3 arguments", name());<NEW_LINE>}<NEW_LINE>final Expr arg = args.get(0);<NEW_LINE>final Expr patternExpr = args.get(1);<NEW_LINE>final Expr escapeExpr = args.size() > 2 ? arg...
), patternExpr.stringify());
1,041,822
public HeroicConfig.Builder build(final ExtraParameters params) throws Exception {<NEW_LINE>final BigtableMetricModule.Builder module = BigtableMetricModule.builder();<NEW_LINE>params.get("project").map(module::project);<NEW_LINE>params.get("instance").map(module::instance);<NEW_LINE>params.get("profile").map(module::p...
).ifPresent(sa::serviceAccount);
1,841,819
private boolean noDuplicateValues(LogicalInsertIgnore insertIgnore, ExecutionContext insertEc) {<NEW_LINE>final List<List<ColumnMeta>> ukColumnMetas = insertIgnore.getUkColumnMetas();<NEW_LINE>final List<List<Integer>> ukColumnsListAfterUkMapping = insertIgnore.getAfterUkMapping();<NEW_LINE>final LogicalDynamicValues i...
new TreeSet<>()));
1,009,684
private CommandSpec buildCommand(boolean reuseExisting, Element element, final Context context, final RoundEnvironment roundEnv) {<NEW_LINE>debugElement(element, "@Command");<NEW_LINE>CommandSpec result = null;<NEW_LINE>if (reuseExisting) {<NEW_LINE>// #1440 subcommands should create separate instances<NEW_LINE>result ...
context.commands.get(element);
1,202,782
private void internalDelete(Persistable persistable) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "internalDelete", "Persistable=" + persistable);<NEW_LINE>PersistableImpl thePersistable = (PersistableImpl) persistable;<NEW_LINE>// Deletion of an item<NEW_LINE>try...
ome, "com.ibm.ws.sib.msgstore.persistence.objectManager.BatchingContextImpl.internalDelete", "1:577:1.18", this);
1,105,756
protected boolean addRoots(URL[] classPathRoots, SourceGroup sourceGroup, String type) throws IOException, UnsupportedOperationException {<NEW_LINE>if (sourceGroup.getRootFolder() != project.getSourceDirectory()) {<NEW_LINE>throw new UnsupportedOperationException("cannot add raw JARs to test roots");<NEW_LINE>}<NEW_LIN...
<String, String>(origCpexts);
1,371,521
private static OutputEventArguments convertToOutputEventArguments(String message, String category, DebugAdapterContext context) {<NEW_LINE>Matcher matcher = STACKTRACE_PATTERN.matcher(message);<NEW_LINE>if (matcher.find()) {<NEW_LINE>String methodField = matcher.group(1);<NEW_LINE>String locationField = matcher.group(m...
locations = locationField.split(":");
200,073
private boolean injectTouch(int action, long pointerId, Position position, float pressure, int buttons) {<NEW_LINE><MASK><NEW_LINE>Point point = device.getPhysicalPoint(position);<NEW_LINE>if (point == null) {<NEW_LINE>Ln.w("Ignore touch event, it was generated for a different device size");<NEW_LINE>return false;<NEW_...
long now = SystemClock.uptimeMillis();
390,660
public boolean validateMethodRequest(MethodConfig methodConfig) {<NEW_LINE>if (methodConfig.getSpreadsheetId() == null || methodConfig.getSpreadsheetId().isBlank()) {<NEW_LINE>throw new AppsmithPluginException(AppsmithPluginError.PLUGIN_EXECUTE_ARGUMENT_ERROR, "Missing required field Spreadsheet Url");<NEW_LINE>}<NEW_L...
.objectMapper.readTree(body));
1,283,050
public void testSLLocalEnvEntry_Integer_InvalidValue() throws Exception {<NEW_LINE>SLLa ejb1 = fhome1.create();<NEW_LINE>try {<NEW_LINE>// The test case looks for a environment variable named "envIntegerInvalid".<NEW_LINE>Integer <MASK><NEW_LINE>fail("Get environment invalid int object should have failed, instead got: ...
tempInt = ejb1.getIntegerEnvVar("envIntegerBlankValue");
432,010
public VoidResult createDirectory(CreateDirectoryRequest createDirectoryRequest) throws OSSException, ClientException {<NEW_LINE>assertParameterNotNull(createDirectoryRequest, "createDirectoryRequest");<NEW_LINE>String bucketName = createDirectoryRequest.getBucketName();<NEW_LINE>String directory = createDirectoryReque...
HashMap<String, String>();
118,366
public static GetDrdsDbRdsRelationInfoResponse unmarshall(GetDrdsDbRdsRelationInfoResponse getDrdsDbRdsRelationInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDrdsDbRdsRelationInfoResponse.setRequestId(_ctx.stringValue("GetDrdsDbRdsRelationInfoResponse.RequestId"));<NEW_LINE>getDrdsDbRdsRelationInfoResponse.setSu...
("GetDrdsDbRdsRelationInfoResponse.Data[" + i + "].RdsInstanceId"));
904,133
final UpdateSiteResult executeUpdateSite(UpdateSiteRequest updateSiteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSiteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
655,406
private void validate() {<NEW_LINE>int size = deliveryBasket.size();<NEW_LINE>ArgChecker.isTrue(size == conversionFactors.size(), "The delivery basket size should be the same as the conversion factor size");<NEW_LINE>ArgChecker.inOrderOrEqual(firstNoticeDate, lastNoticeDate, "firstNoticeDate", "lastNoticeDate");<NEW_LI...
<FixedCouponBond> bondsList = getDeliveryBasket();
1,288,710
public Long count(List<String> searchFields, String keywords, String where) {<NEW_LINE>String q = "select count(*) from " + this.clazz.getName() + " e";<NEW_LINE>if (keywords != null && !keywords.equals("")) {<NEW_LINE>String searchQuery = getSearchQuery(searchFields);<NEW_LINE>if (!searchQuery.equals("")) {<NEW_LINE>q...
null ? " where " + where : "");
308,110
public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>String[] newOptions = (String[]) evt.getNewValue();<NEW_LINE>String[] oldOptions = (String[]) evt.getOldValue();<NEW_LINE>// added<NEW_LINE>if (newOptions.length > oldOptions.length) {<NEW_LINE>// new element is always added to the end<NEW_LINE>String[] new...
[]) evt.getNewValue();
1,161,626
public static Relation<String> guessObjectLabelRepresentation(Database database) {<NEW_LINE>try {<NEW_LINE>Relation<? extends LabelList> labelsrep = <MASK><NEW_LINE>if (labelsrep != null) {<NEW_LINE>return new ConvertToStringView(labelsrep);<NEW_LINE>}<NEW_LINE>} catch (NoSupportedDataTypeException e) {<NEW_LINE>// ret...
database.getRelation(TypeUtil.LABELLIST);
143,680
public void runSupport() {<NEW_LINE>List<Object[]> to_process;<NEW_LINE>synchronized (share_requests) {<NEW_LINE>to_process = new ArrayList<>(share_requests);<NEW_LINE>}<NEW_LINE>for (Object[] entry : to_process) {<NEW_LINE>try {<NEW_LINE>String key = (String) entry[0];<NEW_LINE>File file = (File) entry[1];<NEW_LINE>St...
download.setAttribute(share_ta, key);
689,520
protected Status writeToStorage(String tableName, String key, Map<String, ByteIterator> values) {<NEW_LINE>try {<NEW_LINE>byte[] jsonData = toJson(values<MASK><NEW_LINE>long now = System.currentTimeMillis() / 1000L;<NEW_LINE>FilerProto.Entry.Builder entry = FilerProto.Entry.newBuilder().setName(key).setIsDirectory(fals...
).getBytes(StandardCharsets.UTF_8);
1,623,352
protected void addCommonActivityInstanceFields(ActivityInstance activityInstance, ObjectNode data) {<NEW_LINE>putIfNotNull(data, HistoryJsonConstants.RUNTIME_ACTIVITY_INSTANCE_ID, activityInstance.getId());<NEW_LINE>putIfNotNull(data, HistoryJsonConstants.PROCESS_DEFINITION_ID, activityInstance.getProcessDefinitionId()...
TENANT_ID, activityInstance.getTenantId());
1,060,607
private RefactoringStatus initialize(JavaRefactoringArguments extended) {<NEW_LINE>final String handle = extended.getAttribute(JavaRefactoringDescriptorUtil.ATTRIBUTE_INPUT);<NEW_LINE>if (handle != null) {<NEW_LINE>final IJavaElement element = JavaRefactoringDescriptorUtil.handleToElement(extended.getProject(), handle,...
.InitializableRefactoring_argument_not_exist, JavaRefactoringDescriptorUtil.ATTRIBUTE_INPUT));
118,899
public void writeTo(T obj, Class<?> cls, Type genericType, Annotation[] anns, MediaType m, MultivaluedMap<String, Object> headers, OutputStream os) throws IOException {<NEW_LINE>try {<NEW_LINE>String encoding = HttpUtils.getSetEncoding(m, headers, StandardCharsets.UTF_8.name());<NEW_LINE>if (InjectionUtils.isSupportedC...
(ExceptionUtils.getStackTrace(e));
724,029
public void run(final FlowTrigger trigger, Map data) {<NEW_LINE>DownloadDataVolumeToPrimaryStorageMsg dmsg = originVolumeUuid != null ? new DownloadTemporaryDataVolumeToPrimaryStorageMsg<MASK><NEW_LINE>dmsg.setPrimaryStorageUuid(targetPrimaryStorage.getUuid());<NEW_LINE>dmsg.setVolumeUuid(vol.getUuid());<NEW_LINE>dmsg....
(originVolumeUuid) : new DownloadDataVolumeToPrimaryStorageMsg();
54,693
private void updateInternal() {<NEW_LINE>currentViewList.clear();<NEW_LINE>viewMap.clear();<NEW_LINE>// Plan to show all of the views in order to keep the order<NEW_LINE>for (TokenFilter filter : filterList) {<NEW_LINE>try {<NEW_LINE>if (filter.view.isAdmin && !MapTool.getPlayer().isGM()) {<NEW_LINE>continue;<NEW_LINE>...
log.warn("NullPointerException encountered while trying to update TokenPanelTreeModel", e);
500,150
public void encrypt() {<NEW_LINE>CryptographyClient cryptographyClient = createClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.keys.cryptography.CryptographyClient.encrypt#EncryptionAlgorithm-byte<NEW_LINE>byte[] plaintext = new byte[100];<NEW_LINE>new Random(0x1234567L).nextBytes(plaintext);<NEW_LINE>EncryptR...
] myPlaintext = new byte[100];
683,460
public static DescribeFrontVulPatchListResponse unmarshall(DescribeFrontVulPatchListResponse describeFrontVulPatchListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFrontVulPatchListResponse.setRequestId(_ctx.stringValue("DescribeFrontVulPatchListResponse.RequestId"));<NEW_LINE>List<FrontPatchItem> frontPatchLi...
+ "].PatchList[" + j + "].AliasName"));
450,543
final GetTraceGraphResult executeGetTraceGraph(GetTraceGraphRequest getTraceGraphRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTraceGraphRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<GetTraceGraphReq...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
38,057
/* (non-Javadoc)<NEW_LINE>* @see com.linkedin.databus.client.netty.HttpResponseProcessorDecorator#addTrailer(org.jboss.netty.handler.codec.http.HttpChunkTrailer)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void addTrailer(HttpChunkTrailer trailer) throws Exception {<NEW_LINE>// check for errors in the middle of the ...
"server error detected class=" + _serverErrorClass + " message=" + _serverErrorMessage);
1,624,956
public void toJSON(JsonGenerator json) {<NEW_LINE>try {<NEW_LINE>// object name for this should be 'user'<NEW_LINE>json.writeStartObject();<NEW_LINE>json.writeObjectField(field_screen_name, getScreenName());<NEW_LINE>json.writeObjectField(field_user_id, getUserId());<NEW_LINE>json.writeObjectField(field_name, getName()...
getAppearanceFirst().getTime());
85,210
public byte[] marshall(SetBucketEncryptionRequest setBucketEncryptionRequest) {<NEW_LINE>StringBuffer xmlBody = new StringBuffer();<NEW_LINE>ServerSideEncryptionConfiguration sseConfig = setBucketEncryptionRequest.getServerSideEncryptionConfiguration();<NEW_LINE>ServerSideEncryptionByDefault sseByDefault = sseConfig.ge...
sseByDefault.getKMSMasterKeyID() + "</KMSMasterKeyID>");
1,172,414
public float[] computeLowerBarycenters(int upperLayerIndex) {<NEW_LINE>boolean[][] matrix = computeAdjacencyMatrix(upperLayerIndex);<NEW_LINE>List<Vertex<N>> upperLayer = layers.get(upperLayerIndex);<NEW_LINE>List<Vertex<N>> lowerLayer = layers.get(upperLayerIndex + 1);<NEW_LINE><MASK><NEW_LINE>int lowerLayerSize = low...
int upperLayerSize = upperLayer.size();
993,039
protected String constructCommandUrl() throws CommandException {<NEW_LINE>String host = server.getHost();<NEW_LINE>boolean useAdminPort = !"false".equals(System.getProperty("payara.useadminport"));<NEW_LINE>int port = useAdminPort ? server.getAdminPort() : server.getPort();<NEW_LINE>String protocol = "http";<NEW_LINE>S...
getCommand() + "?" + query);
725,839
public String encode() throws IOException {<NEW_LINE>try (FastStringWriter fsw = new FastStringWriter()) {<NEW_LINE>fsw.write("{");<NEW_LINE>fsw.write(super.encode());<NEW_LINE>ChartUtils.writeDataValue(fsw, "beginAtZero", this.beginAtZero, true);<NEW_LINE>ChartUtils.writeDataValue(fsw, "backdropColor", this.backdropCo...
"maxTicksLimit", this.maxTicksLimit, true);
1,665,469
public static List<ChordDegree> createList(String str, ChordDegree dominant) {<NEW_LINE>List<ChordDegree> degrees = new ArrayList<>();<NEW_LINE>if ((str == null) || str.isEmpty()) {<NEW_LINE>return degrees;<NEW_LINE>}<NEW_LINE>// Loop on occurrences of the one-degree pattern<NEW_LINE>Matcher matcher = degPattern.matche...
alter = Alter.toAlter(altStr);
33,467
public String ensureUser(String userName, String password, String firstName, String lastName, String email, Set<String> expectedRoles) {<NEW_LINE>User previousUser = null;<NEW_LINE>try {<NEW_LINE>previousUser = userService.load(userName);<NEW_LINE>if (previousUser == null || !previousUser.getRoleIds().containsAll(expec...
fixedUser.setTimeZone(DateTimeZone.UTC);
1,793,220
static long vp8_temporal_filter_find_matching_mb(Compressor cpi, YV12buffer arf_frame, YV12buffer frame_ptr, int mb_offset, int error_thresh) {<NEW_LINE>Macroblock x = cpi.mb;<NEW_LINE>long bestsme = Long.MAX_VALUE;<NEW_LINE>Block b = x.block.get();<NEW_LINE>BlockD d = x.e_mbd.block.get();<NEW_LINE>MV best_ref_mv1 = ne...
int pre = d.getOffset();
951,592
public MultipartPart call() throws BackgroundException {<NEW_LINE>overall.validate();<NEW_LINE>final TransferStatus status = new TransferStatus().withLength(length).withOffset(offset);<NEW_LINE>final Map<String, String> requestParameters = new HashMap<>();<NEW_LINE>requestParameters.put("uploadId", multipart.getUploadI...
setHeader(overall.getHeader());
966,036
protected void changeEquate(ProgramDB program, String address, int opIndex, long value, String newName) {<NEW_LINE>EquateTable equateTab = program.getEquateTable();<NEW_LINE>Address addr = addr(program, address);<NEW_LINE>Equate oldEquate = equateTab.getEquate(addr, opIndex, value);<NEW_LINE>if (oldEquate.getName().equ...
newEquate.addReference(addr, opIndex);
602,946
public void add(URI uri, HttpCookie cookie) {<NEW_LINE>String name = getCookieToken(uri, cookie);<NEW_LINE>// Save cookie into local store, or remove if expired<NEW_LINE>if (!cookie.hasExpired()) {<NEW_LINE>if (!cookies.containsKey(uri.getHost()))<NEW_LINE>cookies.put(uri.getHost(), new ConcurrentHashMap<String, HttpCo...
)).keySet()));
692,628
public Object execute(CommandContext commandContext) {<NEW_LINE>ProcessDefinition processDefinition = CommandContextUtil.getProcessEngineConfiguration(commandContext).getDeploymentManager().findDeployedProcessDefinitionById(processDefinitionId);<NEW_LINE>if (processDefinition == null) {<NEW_LINE>throw new FlowableObjec...
processDefinitionId + "' not found", ProcessDefinition.class);
721,921
protected com.liferay.portal.model.PasswordTracker update(com.liferay.portal.model.PasswordTracker passwordTracker) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>if (passwordTracker.isNew() || passwordTracker.isModified()) {<NEW_LINE>session = openSession();<NEW_LINE>if (passwordTrac...
setCreateDate(passwordTracker.getCreateDate());
1,497,567
private boolean notificationIsValidForUI(StatusBarNotification sbn) {<NEW_LINE>Notification notification = sbn.getNotification();<NEW_LINE>updateGroupKeyIfNecessary(sbn);<NEW_LINE>getCurrentRanking().getRanking(sbn.getKey(), mTempRanking);<NEW_LINE>if (!mTempRanking.canShowBadge()) {<NEW_LINE>return false;<NEW_LINE>}<N...
extras.getCharSequence(Notification.EXTRA_TITLE);
559,065
default void emitEmpty(Sinks.EmitFailureHandler failureHandler) {<NEW_LINE>for (; ; ) {<NEW_LINE><MASK><NEW_LINE>if (emitResult.isSuccess()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean shouldRetry = failureHandler.onEmitFailure(SignalType.ON_COMPLETE, emitResult);<NEW_LINE>if (shouldRetry) {<NEW_LINE>continue;<NEW_L...
Sinks.EmitResult emitResult = tryEmitEmpty();
1,419,056
public void generateCode() throws FileNotFoundException {<NEW_LINE>printPreamble();<NEW_LINE>printAllOps(AutoTypeImage.F32, AutoTypeImage.F32, false);<NEW_LINE>// printAllOps(AutoTypeImage.F32, AutoTypeImage.F32, false, true);<NEW_LINE>printAllOps(AutoTypeImage.F64, AutoTypeImage.F64, false);<NEW_LINE>printAllOps(AutoT...
U8, AutoTypeImage.I16, false);
708,349
public Request createKeetpaliveMessageRequest(ParentPlatform parentPlatform, String content, String viaTag, String fromTag, String toTag, CallIdHeader callIdHeader) throws ParseException, InvalidArgumentException, PeerUnavailableException {<NEW_LINE>Request request = null;<NEW_LINE>// sipuri<NEW_LINE>SipURI requestURI ...
createHeaderFactory().createUserAgentHeader(agentParam);
299,732
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length != 1) {<NEW_LINE>throw new RuntimeException("Please specify the name of the topology");<NEW_LINE>}<NEW_LINE>TopologyBuilder builder = new TopologyBuilder();<NEW_LINE>int parallelism = 2;<NEW_LINE>builder.setSpout("word", new AckingTestWo...
put(Config.TOPOLOGY_WORKER_CHILDOPTS, "-XX:+HeapDumpOnOutOfMemoryError");
158,120
public int compare(final Change o1, final Change o2) {<NEW_LINE>final FilePath filePath1 = ChangesUtil.getFilePath(o1);<NEW_LINE>final FilePath filePath2 = ChangesUtil.getFilePath(o2);<NEW_LINE>if (myTreeCompare) {<NEW_LINE>final String path1 = FileUtilRt.toSystemIndependentName(filePath1.getPath());<NEW_LINE>final Str...
lastSlash2 = path2.lastIndexOf('/');
1,547,138
public static TextView createItemTextView(Context context) {<NEW_LINE><MASK><NEW_LINE>TypedArray a = context.obtainStyledAttributes(null, R.styleable.QMUIDialogMenuTextStyleDef, R.attr.qmui_dialog_menu_item_style, 0);<NEW_LINE>int count = a.getIndexCount();<NEW_LINE>for (int i = 0; i < count; i++) {<NEW_LINE>int attr =...
TextView tv = new QMUISpanTouchFixTextView(context);
1,409,108
public Object apply(ActionContext ctx, Object caller, Object[] sources) throws FrameworkException {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>String baseUrl = null;<NEW_LINE>String userParameter = null;<NEW_LINE>Boolean runWithXserver = false;<NEW_LINE>String xServerSettings = null;<NE...
.getSecurityContext().getSession();
1,693,361
public void bindView(View v, Context c, final Cursor cur) {<NEW_LINE>String listName = cur.getString(listNameColumn);<NEW_LINE>CheckableItem item = (CheckableItem) v.getTag();<NEW_LINE>String accountName = cur.getString(accountNameColumn);<NEW_LINE>String accountType = cur.getString(accountTypeColumn);<NEW_LINE>Model m...
item.text1.setText(listName);
1,112,919
private boolean createVTT(Namespace classNamespace, Address address) throws Exception {<NEW_LINE>// get pointer at address<NEW_LINE>Address pointer = getPointerToDefinedMemory(address);<NEW_LINE>if (pointer == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// check if pointer is to the class vftable or to a class i...
+ classNamespace.getName(true));
248,949
private void buildPreliminaryGraphs(Program program, MethodDependencyInfo thisMethodDep) {<NEW_LINE>GraphBuildingVisitor visitor = new GraphBuildingVisitor(program.variableCount(), dependencyInfo);<NEW_LINE>visitor.thisMethodDep = thisMethodDep;<NEW_LINE>for (BasicBlock block : program.getBasicBlocks()) {<NEW_LINE>visi...
= visitor.arrayGraphBuilder.build();
1,282,732
static void appendNumericEntity(int codepoint, Appendable output) throws IOException {<NEW_LINE>output.append("&#");<NEW_LINE>if (codepoint < 100) {<NEW_LINE>// TODO: is this dead code due to REPLACEMENTS above.<NEW_LINE>if (codepoint < 10) {<NEW_LINE>output.append((char) ('0' + codepoint));<NEW_LINE>} else {<NEW_LINE>...
.append(HEX_NUMERAL[hexDigit]);
502,671
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see freeplane.io.INodeWriter#saveContent(freeplane.io.ITreeWriter,<NEW_LINE>* java.lang.Object, java.lang.String)<NEW_LINE>*/<NEW_LINE>public void writeContent(final ITreeWriter writer, final Object node, final IExtension extension) throws IOException {<NEW_LINE>DetailModel detai...
String data = details.getText();
815,930
private Optional<ByteBuf> decode(ByteBuf buffer) {<NEW_LINE>if (bytesToDiscard > 0) {<NEW_LINE>discardTooLongFrame(buffer);<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>int initialReaderIndex = buffer.readerIndex();<NEW_LINE>if (buffer.readableBytes() < Integer.BYTES) {<NEW_LINE>return Optional.empty();<NEW_LI...
(), toIntExact(frameSizeInBytes));
1,013,228
private boolean placeAnchor(BlockPos pos) {<NEW_LINE>Vec3d eyesPos = RotationUtils.getEyesPos();<NEW_LINE>double rangeSq = Math.pow(range.getValue(), 2);<NEW_LINE>Vec3d <MASK><NEW_LINE>double distanceSqPosVec = eyesPos.squaredDistanceTo(posVec);<NEW_LINE>for (Direction side : Direction.values()) {<NEW_LINE>BlockPos nei...
posVec = Vec3d.ofCenter(pos);