idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
737,480
private void initMapOfAustraliaCsp() {<NEW_LINE>csp = new MapCSP();<NEW_LINE>int c = 15;<NEW_LINE>stateViewCtrl.clearMappings();<NEW_LINE>stateViewCtrl.setPositionMapping(MapCSP.WA, c * 5, c * 10);<NEW_LINE>stateViewCtrl.setPositionMapping(MapCSP.NT, c * 15, c * 3);<NEW_LINE>stateViewCtrl.setPositionMapping(MapCSP.SA, ...
c * 20, c * 15);
1,547,340
final ListIPSetsResult executeListIPSets(ListIPSetsRequest listIPSetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIPSetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
280,229
private void generateCsr() throws CommandException {<NEW_LINE>// Get CSR install dir and ensure it actually exists<NEW_LINE>File csrLocation = new File(getInstallRootPath() + File.separator + "tls");<NEW_LINE>if (!csrLocation.exists()) {<NEW_LINE>csrLocation.mkdir();<NEW_LINE>}<NEW_LINE>// Run keytool command to genera...
keytoolExecutor.execute("csrNotCreated", keystore);
1,493,502
public static DescribeAppDetailResponse unmarshall(DescribeAppDetailResponse describeAppDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAppDetailResponse.setRequestId(_ctx.stringValue("DescribeAppDetailResponse.RequestId"));<NEW_LINE>describeAppDetailResponse.setCode(_ctx.longValue("DescribeAppDetailRespon...
("DescribeAppDetailResponse.Result.UserRoles[" + i + "].RoleName"));
452,486
private static PlayerRegistryInternal load(MinecraftServer server, CompoundTag nbt) {<NEW_LINE>int[] playerIds = nbt.getIntArray(TAG_PLAYER_IDS);<NEW_LINE>long[] profileIds = nbt.getLongArray(TAG_PROFILE_IDS);<NEW_LINE>if (playerIds.length * 2 != profileIds.length) {<NEW_LINE>throw new IllegalStateException("Plaer ID m...
mapping.put(profileId, playerId);
630,676
private void postDelete(Collection entityIds, Class entityClass) {<NEW_LINE>List<String> rtypes = getResourceTypes(entityClass);<NEW_LINE><MASK><NEW_LINE>Query q = dbf.getEntityManager().createQuery(sql);<NEW_LINE>q.setParameter("resourceTypes", rtypes);<NEW_LINE>q.setParameter("resourceUuids", entityIds);<NEW_LINE>q.e...
String sql = "delete from SystemTagVO s" + " where s.resourceType in (:resourceTypes)" + " and s.resourceUuid in (:resourceUuids)";
171,974
public int executeWithTargetInt(VirtualFrame frame, Object target, Object receiver) throws UnexpectedResultException {<NEW_LINE>byte is = indexState;<NEW_LINE>if (is == 0) {<NEW_LINE>CompilerDirectives.transferToInterpreterAndInvalidate();<NEW_LINE>Object index = getIndexNode().execute(frame);<NEW_LINE>if (index instan...
getIndexNode().execute(frame);
1,344,033
public void write(org.apache.thrift.protocol.TProtocol prot, TSqlMetaData struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct.isSetAgen...
oprot.writeI32(struct.sqlId);
675,904
private boolean executeDeterminePloidyAndDepthPythonScript(final File samplesByCoveragePerContigFile, final File intervalsFile) {<NEW_LINE>final PythonScriptExecutor executor = new PythonScriptExecutor(true);<NEW_LINE>final String outputDirArg = CopyNumberArgumentValidationUtils.addTrailingSlashIfNecessary(outputDir.ge...
+ CopyNumberArgumentValidationUtils.getCanonicalPath(inputModelDir));
1,293,213
protected IStatus run(final IProgressMonitor monitor) {<NEW_LINE>String dirPath = StackUtil.getStackWorkspaceDir(this.objName);<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(DateUtil.format(from, "yyyyMMdd"));<NEW_LINE>sb.append("_");<NEW_LINE>sb.append(DateUtil.format(from, "HHmmss"));<NEW_LINE>s...
monitor.beginTask("Fetching...", total);
1,342,078
protected DirectoryReader doBody(String segmentFileName) throws IOException {<NEW_LINE>if (minSupportedMajorVersion > Version.LATEST.major || minSupportedMajorVersion < 0) {<NEW_LINE>throw new IllegalArgumentException("minSupportedMajorVersion must be positive and <= " + Version.LATEST.major + " but was: " + minSupport...
getIndexCreatedVersionMajor(), IOContext.READ);
337,856
public TransformationStatus transform(TransformWork work) throws IOException, ValidationException, RepoException {<NEW_LINE>SkylarkConsole skylarkConsole = new SkylarkConsole(work.getConsole());<NEW_LINE>TransformWork skylarkWork = work.withConsole(skylarkConsole).withParams(params);<NEW_LINE>TransformationStatus statu...
? TransformationStatus.success() : result;
1,761,974
private DiskManagerRandomReadRequest addRequest(DiskManagerFileInfoImpl file, long file_offset, long length, boolean reverse_order, DiskManagerListener listener) {<NEW_LINE>DiskManagerRandomReadRequestImpl request = new DiskManagerRandomReadRequestImpl(file, file_offset, length, reverse_order, listener);<NEW_LINE>long ...
"Invalid request offset: " + file_offset + ", file length=" + file_length);
881,000
public File backup() throws Exception {<NEW_LINE>Stopwatch stopwatch = Stopwatch.createStarted();<NEW_LINE>File backupFolder = getBackupFolder();<NEW_LINE>if (!backupFolder.exists()) {<NEW_LINE>boolean created = backupFolder.mkdirs();<NEW_LINE>if (!created) {<NEW_LINE>throw new IOException(<MASK><NEW_LINE>}<NEW_LINE>}<...
"Unable to create backup target folder " + backupFolder.getAbsolutePath());
131,542
private EconomicMap<Node, Node> inlineSnippet(Node replacee, DebugContext debug, StructuredGraph replaceeGraph, EconomicMap<Node, Node> replacements) {<NEW_LINE><MASK><NEW_LINE>try (InliningLog.UpdateScope scope = replaceeGraph.getInliningLog().openUpdateScope((oldNode, newNode) -> {<NEW_LINE>InliningLog log = replacee...
Mark mark = replaceeGraph.getMark();
1,180,055
private static List<Map<String, Object>> mergeNamedList(List listA, List listB) {<NEW_LINE>Map<String, Map<String, Object>> mapped = new HashMap<String, Map<String, Object>>();<NEW_LINE>for (Object item : (List) listA) {<NEW_LINE>Map<String, Object> map = (Map<String, Object>) item;<NEW_LINE>String name = (String) map....
mapped.put(name, map);
1,571,494
private Function<String, org.hl7.fhir.r5.model.ValueSet> newValueSetLoader(ValidationSupportContext theValidationSupportContext) {<NEW_LINE>switch(myCtx.getVersion().getVersion()) {<NEW_LINE>case DSTU2:<NEW_LINE>case DSTU2_HL7ORG:<NEW_LINE>return t -> {<NEW_LINE>IBaseResource vs = theValidationSupportContext.getRootVal...
valueSetRi, new BaseAdvisor_10_50(false));
517,120
public MaryData process(MaryData d) throws Exception {<NEW_LINE>String phoneString = d.getPlainText();<NEW_LINE>MaryData result = new MaryData(getOutputType(), d.getLocale(), true);<NEW_LINE>Document doc = result.getDocument();<NEW_LINE><MASK><NEW_LINE>root.setAttribute("xml:lang", MaryUtils.locale2xmllang(d.getLocale(...
Element root = doc.getDocumentElement();
1,275,039
public synchronized void addWorkersToMirrorMaker(InstanceTopicPartitionHolder controller, String pipeline, int routeId, int numWorkersToAdd) throws Exception {<NEW_LINE>LOGGER.info("Trying to add {} workers to route: {}@{}", numWorkersToAdd, pipeline, routeId);<NEW_LINE>_lock.lock();<NEW_LINE>try {<NEW_LINE>if (_availa...
info("Topic {} Partition {} exists", pipeline, routeId);
1,771,340
void startHealthChecker() {<NEW_LINE>if (requestCount.getAndIncrement() != 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ScheduledHealthCheckerImpl newlyScheduled = new <MASK><NEW_LINE>// This spin prevents the following race condition, which occurs when this instance is shared<NEW_LINE>// by more than one server ins...
ScheduledHealthCheckerImpl(healthChecker, fallbackTtl, eventExecutor);
886,803
public static Object createSVGImage(String baseURL, byte[] data) throws IOException {<NEW_LINE>try {<NEW_LINE>SVG s = new SVG();<NEW_LINE>s.setBaseURL(baseURL);<NEW_LINE>s.setSvgData(data);<NEW_LINE>org.apache.batik.transcoder.image.PNGTranscoder t = new org.apache.batik<MASK><NEW_LINE>org.apache.batik.transcoder.Trans...
.transcoder.image.PNGTranscoder();
180,157
// for rss -> synd<NEW_LINE>// rss.content -> synd.content<NEW_LINE>// rss.description -> synd.description<NEW_LINE>@Override<NEW_LINE>protected SyndEntry createSyndEntry(final Item item, final boolean preserveWireItem) {<NEW_LINE>final SyndEntry syndEntry = super.createSyndEntry(item, preserveWireItem);<NEW_LINE>final...
setValue(desc.getValue());
1,654,889
public static Stream<?> toStream(Object object) {<NEW_LINE>Preconditions.notNull(object, "Object must not be null");<NEW_LINE>if (object instanceof Stream) {<NEW_LINE>return (Stream<?>) object;<NEW_LINE>}<NEW_LINE>if (object instanceof DoubleStream) {<NEW_LINE>return ((DoubleStream) object).boxed();<NEW_LINE>}<NEW_LINE...
getName() + " into a Stream: " + object);
448,866
// snippet-start:[pinpoint.java2.send_voice_message.main]<NEW_LINE>public static void sendVoiceMsg(PinpointSmsVoiceClient client, String originationNumber, String destinationNumber) {<NEW_LINE>try {<NEW_LINE>SSMLMessageType ssmlMessageType = SSMLMessageType.builder().languageCode(languageCode).text(ssmlMessage).voiceId...
System.out.println("The message was sent successfully.");
1,598,568
static Object classOrStatic(Object methodDefPtr, String name, Object methObj, int flags, int wrapper, Object type, Object doc, PythonObjectFactory factory, @CachedLibrary(limit = "1") DynamicObjectLibrary dylib, @Shared("cf") @Cached CreateFunctionNode createFunctionNode, @Shared("cstr") @Cached CharPtrToJavaObjectNode...
function = factory.createClassmethodFromCallableObj(func);
387,604
private void assertValidInvoiceCurrency(final I_C_PaySelectionLine paySelectionLine) {<NEW_LINE>final I_C_PaySelection paySelection = paySelectionLine.getC_PaySelection();<NEW_LINE>final I_C_BP_BankAccount bankAccount = InterfaceWrapperHelper.create(paySelection.getC_BP_BankAccount(), I_C_BP_BankAccount.class);<NEW_LIN...
() }).markAsUserValidationError();
956,012
public void init() throws ServletException {<NEW_LINE>super.init();<NEW_LINE>try {<NEW_LINE>defaultJMSCF = (ConnectionFactory) new InitialContext().lookup("java:comp/env/DefaultJMSConnectionFactory");<NEW_LINE>} catch (NamingException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_LINE>System.out.println("Connection...
InitialContext().lookup("jndi_INPUT_Q");
1,202,223
private static int startsWithLenient(String s, String match, int minChars, boolean acceptTrailing) {<NEW_LINE>if (// Fast sanity check.<NEW_LINE>s.charAt(0) != match.charAt(0)) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>if (minChars == -1) {<NEW_LINE>minChars = match.length();<NEW_LINE>}<NEW_LINE>int sSz = s.length();<N...
int mSz = match.length();
798,722
private static void updateReservationRecord(@NonNull final I_C_Payment_Reservation record, @NonNull final PaymentReservation from) {<NEW_LINE>InterfaceWrapperHelper.setValue(record, "AD_Client_ID", from.getClientId().getRepoId());<NEW_LINE>record.setAD_Org_ID(from.getOrgId().getRepoId());<NEW_LINE>record.setAmount(from...
getSalesOrderId().getRepoId());
915,916
void createOAuth2LoginFilter(BeanReference sessionStrategy, BeanReference authManager, BeanReference authenticationFilterSecurityContextRepositoryRef) {<NEW_LINE>Element oauth2LoginElt = DomUtils.getChildElementByTagName(this.httpElt, Elements.OAUTH2_LOGIN);<NEW_LINE>if (oauth2LoginElt == null) {<NEW_LINE>return;<NEW_L...
getReaderContext().generateBeanName(oauth2LoginAuthProvider);
1,059,825
public static <T extends PsiElement> T findElementOfClassAtOffsetWithStopSet(@Nonnull PsiFile file, int offset, @Nonnull Class<T> clazz, boolean strictStart, @Nonnull Class<? extends PsiElement>... stopAt) {<NEW_LINE>final List<PsiFile> psiRoots = file.getViewProvider().getAllFiles();<NEW_LINE>T result = null;<NEW_LINE...
elementAt, clazz, strictStart, stopAt);
264,359
/* Check all dependencies, picking the "pinnacles", i.e.<NEW_LINE>* tokens that govern some dependencies but aren't governed<NEW_LINE>* themselves, these might be local roots. In case of multiple<NEW_LINE>* pinnacles, the first one is chosen. */<NEW_LINE>protected FocusPair fpDepRoot(JCas jcas) {<NEW_LINE>FocusPair fp...
), jcas.getDocumentText());
358,093
public void createTopic(String connectionString, int numberOfPartitions, Properties topicProperties, Datastream datastream) {<NEW_LINE>Validate.notNull(connectionString, "destination should not be null");<NEW_LINE>Validate.notNull(topicProperties, "topicConfig should not be null");<NEW_LINE>String topicName = KafkaTran...
("Creating topic %s failed with exception: ", topicName), e);
212,103
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(listTagsForResourceRequest));
1,000,675
protected void cleanup(Session session) {<NEW_LINE>Optional<Registration> registration = registrations.stream().filter(r -> r.sessionId() == session.sessionId().id()).findFirst();<NEW_LINE>if (registration.isPresent()) {<NEW_LINE>List<Registration> updatedRegistrations = registrations.stream().filter(r -> r.sessionId()...
leader = updatedRegistrations.get(0);
1,512,214
public List<ActionWrapper> parseActions(String watchId, XContentParser parser) throws IOException {<NEW_LINE>if (parser.currentToken() != XContentParser.Token.START_OBJECT) {<NEW_LINE>throw new ElasticsearchParseException("could not parse actions for watch [{}]. expected an object but found [{}] instead", watchId, pars...
ElasticsearchParseException("could not parse action [{}] for watch [{}]. id contains whitespace", id, watchId);
342,927
public ListSecurityProfilesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListSecurityProfilesResult listSecurityProfilesResult = new ListSecurityProfilesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
class).unmarshall(context));
1,267,535
public static DescribeDBInstanceMetricsResponse unmarshall(DescribeDBInstanceMetricsResponse describeDBInstanceMetricsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBInstanceMetricsResponse.setRequestId(_ctx.stringValue("DescribeDBInstanceMetricsResponse.RequestId"));<NEW_LINE>describeDBInstanceMetricsResponse...
("DescribeDBInstanceMetricsResponse.Items[" + i + "].MetricsKey"));
561,324
public static <States extends Num> Matrix<States, N1> rk4(Function<Matrix<States, N1>, Matrix<States, N1>> f, Matrix<States, N1> x, double dtSeconds) {<NEW_LINE>final var h = dtSeconds;<NEW_LINE>Matrix<States, N1> <MASK><NEW_LINE>Matrix<States, N1> k2 = f.apply(x.plus(k1.times(h * 0.5)));<NEW_LINE>Matrix<States, N1> k3...
k1 = f.apply(x);
546,408
private Collection<? extends ShipmentScheduleWithHU> createShipmentScheduleWithHUForPick(@NonNull final I_M_ShipmentSchedule schedule, @NonNull final IHUContext huContext, @NonNull final M_ShipmentSchedule_QuantityTypeToUse quantityType) {<NEW_LINE>List<I_M_ShipmentSchedule_QtyPicked> qtyPickedRecords = retrieveQtyPick...
create(qtyPickedRecord, I_M_ShipmentSchedule_QtyPicked.class);
1,770,273
private boolean isIFixFileListValid(IFixInfo iFixInfo, File wlpInstallationDirectory) throws ParseException {<NEW_LINE>// First get the list of files to check<NEW_LINE>Updates updates = iFixInfo.getUpdates();<NEW_LINE>if (updates == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Set<UpdatedFile> files = updates.getF...
= new File(wlpInstallationDirectory, fileId);
1,238,272
public void updateSessionStatus() {<NEW_LINE>int failureCount = 0;<NEW_LINE>if (getFinalStatus() == FinalApplicationStatus.FAILED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Map.Entry<String, TonyTask[]> entry : jobTasks.entrySet()) {<NEW_LINE>String jobName = entry.getKey();<NEW_LINE>TonyTask[] tasks = entry.getValue...
FinalApplicationStatus.SUCCEEDED, "Training completed with some worker jobs failure, failedCnt=" + failureCount);
285,855
public void select(int imageWidth, int imageHeight, @Nullable FastAccess<Point> prior, FastAccess<Point> detected, int limit, FastArray<Point> selected) {<NEW_LINE>BoofMiscOps.checkTrue(limit > 0);<NEW_LINE>selected.reset();<NEW_LINE>// the limit is more than the total number of features. Return them all!<NEW_LINE>if (...
nextInt(indexes.size - i);
1,550,051
public void marshall(QueryFilters queryFilters, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (queryFilters == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(queryFilters.getTypes(), TYPES_BINDING);<NEW_LIN...
queryFilters.getCreatedBefore(), CREATEDBEFORE_BINDING);
1,174,163
private BLangSimpleVarRef defineNilFrameForType(List<BVarSymbol> symbols, BLangBlockStmt blockStmt, Location pos) {<NEW_LINE>BLangSimpleVarRef frame = defineFrameVariable(blockStmt, pos);<NEW_LINE>for (BVarSymbol symbol : symbols) {<NEW_LINE>BType type = symbol.type;<NEW_LINE>String key = symbol.name.value;<NEW_LINE>BT...
frame, key, blockStmt, pos);
1,714,329
public void marshall(Finding finding, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (finding == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(finding.getAction(), ACTION_BINDING);<NEW_LINE>protocolMarshall...
finding.getSources(), SOURCES_BINDING);
1,216,591
public void marshall(MySQLSettings mySQLSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (mySQLSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(mySQLSettings.getAfterConnectScript(), AFTERC...
e.getMessage(), e);
1,667,680
// GRECLIPSE add -- GROOVY-7293, GROOVY-9901<NEW_LINE>public static void addNewPhaseOperation(final CompilationUnit compilationUnit, final SourceUnit sourceUnit, final ClassNode classNode) {<NEW_LINE>int phase = compilationUnit.getPhase();<NEW_LINE>if (phase < Phases.SEMANTIC_ANALYSIS) {<NEW_LINE>return;<NEW_LINE>}<NEW...
), compilationUnit.getASTTransformationsContext());
442,650
public static Tuple<String, String> log(SQLExpr base, SQLExpr strColumn, String valueName) {<NEW_LINE>String name = "log_" + random();<NEW_LINE>String result;<NEW_LINE>if (valueName == null) {<NEW_LINE>if (isProperty(strColumn)) {<NEW_LINE>result = "def " + name + " = Math.log(doc['" + Util.expr2Object(strColumn).toStr...
base).toString() + ")";
447,310
public static KeyValuePart[] split(MatrixMeta matrixMeta, int rowId, int[] keys, float[] values, boolean isSorted) {<NEW_LINE>if (!isSorted) {<NEW_LINE>Sort.quickSort(keys, values, 0, keys.length - 1);<NEW_LINE>}<NEW_LINE>PartitionKey[] matrixParts = matrixMeta.getPartitionKeys();<NEW_LINE>KeyValuePart[] dataParts <MAS...
= new KeyValuePart[matrixParts.length];
1,098,034
protected <T extends com.x.base.core.project.organization.Group> T convert(Business business, Group group, Class<T> clz) throws Exception {<NEW_LINE>T t = clz.newInstance();<NEW_LINE>t.setId(group.getId());<NEW_LINE>t.setName(group.getName());<NEW_LINE>t.setDescription(group.getDescription());<NEW_LINE>t.setUnique(grou...
setOrderNumber(group.getOrderNumber());
1,110,752
public Builder mergeFrom(io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration other) {<NEW_LINE>if (other == io.kubernetes.client.proto.V1beta1Admissionregistration.MutatingWebhookConfiguration.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasMetadata()) {<NEW_LINE>merge...
.alwaysUseFieldBuilders ? getWebhooksFieldBuilder() : null;
1,410,887
final GetDeviceDefinitionVersionResult executeGetDeviceDefinitionVersion(GetDeviceDefinitionVersionRequest getDeviceDefinitionVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDeviceDefinitionVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetDeviceDefinitionVersion");
723,350
public final boolean validate() {<NEW_LINE>if (makeNoise()) {<NEW_LINE>System.out.println("This method is NOT intended to be called from the runtime");<NEW_LINE>System.out.println("but is provided as part of unit test for diagnostic modules");<NEW_LINE>ListIterator<Method> im;<NEW_LINE>try {<NEW_LINE>init();<NEW_LINE><...
System.out.println("default directives on the diagnostic module : ");
371,586
public Map<String, Map<String, PropertyMapping>> mappingsForFunction() {<NEW_LINE>Map<String, Map<String, PropertyMapping>> ret = new HashMap<>();<NEW_LINE>Map<String, PropertyMapping> map = new HashMap<>();<NEW_LINE>val broadcast = PropertyMapping.builder().onnxAttrName("indices").tfInputPosition(1).propertyNames(new ...
{ "indices" }).build();
1,570,769
protected JPanel initResultsTable() {<NEW_LINE>ResultsTableCellRenderer renderer = new ResultsTableCellRenderer();<NEW_LINE>resultsModel = new ResultsModel(renderer);<NEW_LINE>resultsModel.addTableModelListener(e -> updateProgressLabel());<NEW_LINE>resultsTable = new ResultsTable(resultsModel, renderer);<NEW_LINE>resul...
(paginationPanel, BoxLayout.X_AXIS));
955,282
// Let<NEW_LINE>private TypecheckingResult typecheckLetClause(List<? extends Concrete.Parameter> parameters, Concrete.LetClause letClause, boolean useSpecifiedType) {<NEW_LINE>if (parameters.isEmpty()) {<NEW_LINE>Concrete.Expression letResult = letClause.getResultType();<NEW_LINE>if (letResult != null) {<NEW_LINE>Type ...
type.getExpr()) : result;
1,685,402
public boolean isValid(Resource resource) {<NEW_LINE>Validate.notNull(resource);<NEW_LINE>if (!"ASG".equals(resource.getResourceType().name())) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (StringUtils.isNotEmpty(resource.getAdditionalField(ASGJanitorCrawler.ASG_FIELD_ELBS))) {<NEW_LINE>LOGGER.info(String.format("ASG...
("The launch configuration %s has not been created for more than %d days", lcName, launchConfigAgeThreshold));
287,122
public static Object convertToDisplayType(final String value, final String columnName, final int displayType) {<NEW_LINE>// true NULL<NEW_LINE>if (value == null || value.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// see also MTable.readData<NEW_LINE>try {<NEW_LINE>//<NEW_LINE>// Handle hardcoded cases<NEW_L...
Timestamp(date.getTime());
261,701
public void startEditingAsync() {<NEW_LINE>if (!Display.getInstance().isTextEditing(this)) {<NEW_LINE>if (Display.impl.usesInvokeAndBlockForEditString()) {<NEW_LINE>// Implementations that use invokeAndBlock for edit string<NEW_LINE>// need to have the existing text area's editing stopped<NEW_LINE>// before starting a ...
this, maxSize, constraint, text);
863,914
public void addSegment(String title) {<NEW_LINE>final Context context = getContext();<NEW_LINE>final LayoutInflater inflater = LayoutInflater.from(context);<NEW_LINE>if (mDividerDrawable != null && getSegmentCount() > 0) {<NEW_LINE>ImageView divider = new ImageView(context);<NEW_LINE>final int width = (mDividerWidth > ...
? mDividerWidth : mDividerDrawable.getIntrinsicWidth();
31,286
final PutPortfolioPreferencesResult executePutPortfolioPreferences(PutPortfolioPreferencesRequest putPortfolioPreferencesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putPortfolioPreferencesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
807,113
public void init(final ServletConfig config) throws ServletException {<NEW_LINE>this.application = SERVICE_PROVIDER.getInstance(AzkabanWebServer.class);<NEW_LINE>if (this.application == null) {<NEW_LINE>throw new IllegalStateException("No batch application is defined in the servlet context!");<NEW_LINE>}<NEW_LINE>final...
props.getString("azkaban.depth", "2");
1,506,922
public static File saveWARFile(String appName, InputStream inputStream) {<NEW_LINE>File file = null;<NEW_LINE>String fileExtension = "war";<NEW_LINE>try {<NEW_LINE>String tmpsDirectory = System.getProperty("java.io.tmpdir");<NEW_LINE>File savedFile = new File(tmpsDirectory + File.separator + appName + "." + fileExtensi...
), savedFile.getPath());
1,831,588
public static DescribeProjectAttachmentsResponse unmarshall(DescribeProjectAttachmentsResponse describeProjectAttachmentsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeProjectAttachmentsResponse.setRequestId(_ctx.stringValue("DescribeProjectAttachmentsResponse.RequestId"));<NEW_LINE>describeProjectAttachmentsRe...
("DescribeProjectAttachmentsResponse.Result[" + i + "].AttachmentType"));
326,383
public void releaseWork(FVTGeneralWorkImpl inputWork) {<NEW_LINE>svLogger.entering(CLASSNAME, "releaseWork", new Object[] { this, inputWork });<NEW_LINE>// get all the instances including the first one.<NEW_LINE>Hashtable instances = getEndpoints(inputWork);<NEW_LINE>// release all the instances<NEW_LINE>if (instances ...
Collection endpoints = instances.entrySet();
826,116
public void waitFor(String narrative, Condition condition) {<NEW_LINE>ContextImpl context = new ContextImpl();<NEW_LINE>SeleniumException seleniumException = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>threadSleep(initialDelay);<NEW_LINE>while (context.elapsed() < context.timeout()) {<NEW_LINE>seleniumException = nul...
monitor.waitHasBegun(context, condition);
493,950
static void convertSnmpServer(Configuration c, String communityName, Map<String, AclTable> aclTables, Map<String, SortedSet<AclRuleWithName>> aclNameToRules, Warnings w) {<NEW_LINE>SnmpServer snmpServer = new SnmpServer();<NEW_LINE>SnmpCommunity snmpCommunity = new SnmpCommunity(communityName);<NEW_LINE>snmpServer.setC...
collect(ImmutableList.toImmutableList());
835,006
public Void deleteVolumeCallback(AsyncCallbackDispatcher<VolumeServiceImpl, CommandResult> callback, DeleteVolumeContext<VolumeApiResult> context) {<NEW_LINE><MASK><NEW_LINE>VolumeObject vo = context.getVolume();<NEW_LINE>VolumeApiResult apiResult = new VolumeApiResult(vo);<NEW_LINE>try {<NEW_LINE>if (result.isSuccess(...
CommandResult result = callback.getResult();
1,778,966
public void store(Context context, Bundle outState) {<NEW_LINE>synchronized (this) {<NEW_LINE>List<State> list = mSaveStates.get(context);<NEW_LINE>if (list == null)<NEW_LINE>return;<NEW_LINE>for (State state : list) {<NEW_LINE>Class<?> type = state.field.getType();<NEW_LINE>Dispatcher dispatcher;<NEW_LINE>if (Parcelab...
sDispatchers.get(Serializable.class);
803,013
private File createZIPFromExcel(File excelFile) throws IOException, ParseException, AxelorException {<NEW_LINE>Workbook workBook = new XSSFWorkbook(new FileInputStream(excelFile));<NEW_LINE>File zipFile = <MASK><NEW_LINE>List<String> entries = new ArrayList<>();<NEW_LINE>for (int i = 0; i < workBook.getNumberOfSheets()...
File.createTempFile("demo", ".zip");
219,395
public NbTask createSubtask(NbTask parentTask) throws CoreException {<NEW_LINE>ensureTaskListLoaded();<NEW_LINE>TaskRepository taskRepository = taskRepositoryManager.getRepository(parentTask.<MASK><NEW_LINE>if (taskRepository == null || parentTask.isUnsubmittedRepositoryTask()) {<NEW_LINE>throw new IllegalStateExceptio...
getDelegate().getRepositoryUrl());
1,582,065
private Map<String, Object> createInsightsMap() {<NEW_LINE><MASK><NEW_LINE>long now = System.currentTimeMillis();<NEW_LINE>long halfMonthAgo = now - TimeUnit.DAYS.toMillis(15L);<NEW_LINE>long monthAgo = now - TimeUnit.DAYS.toMillis(30L);<NEW_LINE>Long playThreshold = config.get(TimeSettings.ACTIVE_PLAY_THRESHOLD);<NEW_...
Database db = dbSystem.getDatabase();
505,459
private List<PersistenceProvider> findProvidersByClassLoader() {<NEW_LINE>List<PersistenceProvider> nonOSGiProviders = new ArrayList<PersistenceProvider>();<NEW_LINE>// try to get the context classloader first, if that fails, use the loader<NEW_LINE>// that loaded this class<NEW_LINE>ClassLoader <MASK><NEW_LINE>if (cl ...
cl = PrivClassLoader.get(null);
1,440,701
private static Spawn createXmlGeneratingSpawn(TestRunnerAction action, ImmutableMap<String, String> testEnv, SpawnResult result) {<NEW_LINE>ImmutableList<String> args = ImmutableList.of(action.getTestXmlGeneratorScript().getExecPath().getCallablePathString(), action.getTestLog().getExecPathString(), action.getXmlOutput...
> envBuilder = ImmutableMap.builder();
287,507
static JavaMethod findMethod(String methodName, String methodSignature, JavaClass cls) {<NEW_LINE>// TODO: lambdas not supported yet!<NEW_LINE>// NOI18N<NEW_LINE>if (methodName.contains("lambda$"))<NEW_LINE>return null;<NEW_LINE>// NOI18N<NEW_LINE>String source = JavaSourceUtils.maskNonBlock(cls.getSource(), '{', '}', ...
methodName, methodSignature, cls, source);
1,577,521
private void filterByTags() {<NEW_LINE>final List<Tag> tags = TagsHelper.getAllTags();<NEW_LINE>if (tags.isEmpty()) {<NEW_LINE>mainActivity.showMessage(R.string.no_tags_created, ONStyle.WARN);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Dialog and events creation<NEW_LINE>new MaterialDialog.Builder(mainActivity).title(R.st...
(aWhich).getText());
705,227
final DeleteAccessPointForObjectLambdaResult executeDeleteAccessPointForObjectLambda(DeleteAccessPointForObjectLambdaRequest deleteAccessPointForObjectLambdaRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteAccessPointForObjectLambdaRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetri...
"%s.", deleteAccessPointForObjectLambdaRequest.getAccountId());
1,773,655
public void run() {<NEW_LINE>int invalidSelectCount = 0;<NEW_LINE>for (; ; ) {<NEW_LINE>try {<NEW_LINE>final Selector tSelector = this.selector;<NEW_LINE>++connectCount;<NEW_LINE><MASK><NEW_LINE>tSelector.select(1000L);<NEW_LINE>long end = System.nanoTime();<NEW_LINE>connect(tSelector);<NEW_LINE>Set<SelectionKey> keys ...
long start = System.nanoTime();
1,494,707
public void run() {<NEW_LINE>final String oldPreference = System.getProperty(WORKING_COPY_FORMAT_PROP);<NEW_LINE>System.setProperty(WORKING_COPY_FORMAT_PROP, <MASK><NEW_LINE>SvnClient client;<NEW_LINE>try {<NEW_LINE>// this needs to be done in a background thread, otherwise the password won't be acquired from the keyri...
Boolean.toString(!old16Format));
541,022
public static DescribeUserCertificateListResponse unmarshall(DescribeUserCertificateListResponse describeUserCertificateListResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeUserCertificateListResponse.setRequestId(_ctx.stringValue("DescribeUserCertificateListResponse.RequestId"));<NEW_LINE>describeUserCertificate...
("DescribeUserCertificateListResponse.CertificateList[" + i + "].expired"));
1,100,587
public void marshall(ActivityTaskScheduledEventAttributes activityTaskScheduledEventAttributes, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (activityTaskScheduledEventAttributes == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>prot...
activityTaskScheduledEventAttributes.getScheduleToStartTimeout(), SCHEDULETOSTARTTIMEOUT_BINDING);
1,187,659
final CreateFleetResult executeCreateFleet(CreateFleetRequest createFleetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createFleetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new CreateFleetResultJsonUnmarshaller());
178,033
private <T extends Trait> void addOperationSecurity(Context<T> context, OperationObject.Builder builder, OperationShape shape, OpenApiMapper plugin) {<NEW_LINE>ServiceShape service = context.getService();<NEW_LINE>ServiceIndex serviceIndex = ServiceIndex.of(context.getModel());<NEW_LINE>Map<ShapeId, Trait> serviceSchem...
converters = findMatchingConverters(context, authSchemeClasses);
744,172
public static void logVersionInfo(Detail detail) {<NEW_LINE>List<VersionInfo> info = getVersionInfos();<NEW_LINE>for (VersionInfo grp : info) {<NEW_LINE>switch(detail) {<NEW_LINE>case GAV:<NEW_LINE>log.info("{} : {} : {}", grp.getGroupId(), grp.getArtifactId(), grp.getBuildVersion());<NEW_LINE>break;<NEW_LINE>case GAVC...
), grp.getCommitIdAbbrev());
1,533,018
public static void main(String[] arg) throws CLParsingException {<NEW_LINE>String jsonStr = "{\n" + " Header: {\n" + " name: 'RotationZ28'\n" + " },\n" + " ConstraintSets: {\n" + " start: {\n" + " a: {\n" + " ...
+ " }\n" + " }\n" + " }\n" + " }";
1,783,687
private void loadSpeakerImage() {<NEW_LINE>String photo = Utils.<MASK><NEW_LINE>if (photo == null) {<NEW_LINE>progressBar.setVisibility(View.GONE);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final Context context = this;<NEW_LINE>setUIColor(color);<NEW_LINE>final Target imageTarget = new Target() {<NEW_LINE><NEW_LINE>@Overri...
parseImageUri(selectedSpeaker.getPhotoUrl());
1,161,991
private void run() throws IOException, OtrException {<NEW_LINE>BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));<NEW_LINE>while (true) {<NEW_LINE>System.out.print(">");<NEW_LINE>String line = reader.readLine().trim();<NEW_LINE>if ("/quit".equals(line)) {<NEW_LINE>disconnect();<NEW_LINE>retur...
System.err.println("Unknown command");
124,312
public void visitTypeReference(TypeReference typeReference) {<NEW_LINE>if (typeReference.getName() != null) {<NEW_LINE>if (!JSweetDefTranslatorConfig.isJDKReplacementMode() && !"any".equals(typeReference.getName()) && Util.coreTypeMap.containsKey(typeReference.getName())) {<NEW_LINE>String name = Util.coreTypeMap.get(t...
getCurrentToken().getLocation());
112,676
public void exitRs_route(Rs_routeContext ctx) {<NEW_LINE>Route_nexthopContext nextHop = ctx.route_nexthop();<NEW_LINE>Route_propertiesContext props = ctx.route_properties();<NEW_LINE>Optional<Prefix> prefix = <MASK><NEW_LINE>if (prefix.isPresent()) {<NEW_LINE>Optional<Ip> nextHopIp = toNextHopIp(nextHop);<NEW_LINE>Opti...
toPrefix(ctx.route_prefix());
867,699
public void onPartitionsRevoked(Collection<TopicPartition> partitions) {<NEW_LINE>if (this.consumerAwareListener != null) {<NEW_LINE>this.consumerAwareListener.onPartitionsRevokedBeforeCommit(ListenerConsumer.this.consumer, partitions);<NEW_LINE>} else {<NEW_LINE>this.userListener.onPartitionsRevoked(partitions);<NEW_L...
this.consumerSeekAwareListener.onPartitionsRevoked(partitions);
961,063
protected boolean compareElement(org.w3c.dom.Element n1, org.w3c.dom.Element n2, org.w3c.dom.Node parent1, org.w3c.dom.Document doc1, org.w3c.dom.Document doc2) {<NEW_LINE><MASK><NEW_LINE>String qName2 = n2.getLocalName();<NEW_LINE>String ns1 = ((Node) n1).getNamespaceURI((Document) doc1);<NEW_LINE>String ns2 = ((Node)...
String qName1 = n1.getLocalName();
1,745,662
public void init() {<NEW_LINE>registerBeanDefinitionParser("application", new DubboBeanDefinitionParser(ApplicationConfig.class));<NEW_LINE>registerBeanDefinitionParser("module", new DubboBeanDefinitionParser(ModuleConfig.class));<NEW_LINE>registerBeanDefinitionParser("registry", new DubboBeanDefinitionParser(RegistryC...
("annotation", new AnnotationBeanDefinitionParser());
1,566,385
public Object _reflectiveCallStrict(String className, Object instance, String methodName, ModuleLog L, Object... arguments) {<NEW_LINE>try {<NEW_LINE>Log.d(Countly.TAG, "cls " + className + ", inst " + instance);<NEW_LINE>if (arguments != null && arguments.length % 2 != 0) {<NEW_LINE>L.w("wrong arguments passed to refl...
methodName + " of " + className, t);
1,465,344
protected void consumeInstanceOfExpressionWithName() {<NEW_LINE>// RelationalExpression_NotName ::= Name instanceof ReferenceType<NEW_LINE>// optimize the push/pop<NEW_LINE>int length = this.patternLengthPtr >= 0 ? this.patternLengthStack[this.patternLengthPtr--] : 0;<NEW_LINE>Expression exp;<NEW_LINE>if (length != 0) ...
[this.expressionPtr], typeRef);
448,529
public void testForceImmediateRetry() throws Exception {<NEW_LINE>// Expected behavior:<NEW_LINE>// Initial timeout should fail.<NEW_LINE>//<NEW_LINE>// Retry should occur immediately, even though we have a few second timeout interval configured.<NEW_LINE>//<NEW_LINE>// No additional retries should occur, because the f...
props.get(TimerRetryDriverBean.TIMESTAMP_KEY);
662,778
static DependencyState maybeSubstitute(DependencyState dependencyState, DependencySubstitutionApplicator dependencySubstitutionApplicator) {<NEW_LINE>DependencySubstitutionApplicator.SubstitutionResult substitutionResult = dependencySubstitutionApplicator.apply(dependencyState.getDependency());<NEW_LINE>if (substitutio...
), details.getRuleDescriptors());
1,422,382
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>for (UUID playerId : game.getState().getPlayersInRange(controller.getId(), game)) {<NEW_LINE>Player player = game.getPlayer(playerId);<NEW_LINE>if (pla...
getPlayer(source.getControllerId());
830,091
private void listeBauen() {<NEW_LINE>// LinkedList mit den URLs aus dem Logfile bauen<NEW_LINE>checkUrlFilePath();<NEW_LINE>List<String> badEntriesList = new ArrayList<>();<NEW_LINE>try (InputStream is = Files.newInputStream(urlPath);<NEW_LINE><MASK><NEW_LINE>LineNumberReader in = new LineNumberReader(isr)) {<NEW_LINE>...
InputStreamReader isr = new InputStreamReader(is);
1,086,823
public io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetList buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetList result = new io.kubernetes.client.proto.V1Policy.PodDisruptionBudgetList(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if ...
util.Collections.unmodifiableList(items_);