idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,809,323
public void preVisit(ExploreNode exploreNode) {<NEW_LINE>if (skipNode(exploreNode)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ExploreNode parent = stack.peek();<NEW_LINE>if (exploreNode == this.rootModule) {<NEW_LINE>assert parent == null;<NEW_LINE>final ModuleNode mn = (ModuleNode) exploreNode;<NEW_LINE>this.writer...
this.writer.append(";\n");
675,276
public IInvoiceGenerateResult generateInvoicesFromQueue(final Properties ctx) {<NEW_LINE>// note that we don't want to store the actual invoices in the result to omit memory-problems<NEW_LINE>final InvoiceGenerateResult result = new InvoiceGenerateResult(false);<NEW_LINE>final <MASK><NEW_LINE>// We use a stateful packa...
IWorkpackageProcessor packageProcessor = new InvoiceCandWorkpackageProcessor(result);
1,450,291
public LexiconAttributes 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>LexiconAttributes lexiconAttributes = new LexiconAttributes();<NEW_LIN...
().unmarshall(context));
672,767
public void read(org.apache.thrift.protocol.TProtocol prot, startScan_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(5);<NEW_LINE>if (incoming.get(0)) ...
struct.tmfe.read(iprot);
1,607,169
public AutoScalePolicy updateAutoScalePolicy(UpdateAutoScalePolicyCmd cmd) {<NEW_LINE>Long policyId = cmd.getId();<NEW_LINE><MASK><NEW_LINE>Integer quietTime = cmd.getQuietTime();<NEW_LINE>List<Long> conditionIds = cmd.getConditionIds();<NEW_LINE>AutoScalePolicyVO policy = getEntityInDatabase(CallContext.current().getC...
Integer duration = cmd.getDuration();
32,605
private Box createMdat(final List<StreamingSample> samples) {<NEW_LINE>return new Box() {<NEW_LINE><NEW_LINE>public String getType() {<NEW_LINE>return "mdat";<NEW_LINE>}<NEW_LINE><NEW_LINE>public long getSize() {<NEW_LINE>long l = 8;<NEW_LINE>for (StreamingSample streamingSample : samples) {<NEW_LINE>l += streamingSamp...
bb = ByteBuffer.allocate(8);
1,701,746
final BatchDeleteImageResult executeBatchDeleteImage(BatchDeleteImageRequest batchDeleteImageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchDeleteImageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "BatchDeleteImage");
876,606
private boolean resolveWith(JsWithObjectImpl withObject, JsObject property) {<NEW_LINE>JsObject global = ModelUtils.getGlobalObject(withObject.getParent());<NEW_LINE>for (TypeUsage typeUsage : withObject.getTypes()) {<NEW_LINE>for (TypeUsage rType : ModelUtils.resolveTypeFromSemiType(withObject, typeUsage)) {<NEW_LINE>...
getProperty(property.getName());
368,806
public static StarTreeV2BuilderConfig fromIndexConfig(StarTreeIndexConfig indexConfig) {<NEW_LINE>List<String> dimensionsSplitOrder = indexConfig.getDimensionsSplitOrder();<NEW_LINE>Set<String> skipStarNodeCreationForDimensions;<NEW_LINE>if (indexConfig.getSkipStarNodeCreationForDimensions() != null) {<NEW_LINE>skipSta...
dimensionsSplitOrder, skipStarNodeCreationForDimensions, functionColumnPairs, maxLeafRecords);
686,013
private static void loadAllCountries(Properties ctx) {<NEW_LINE>MClient client = MClient.get(ctx);<NEW_LINE>MLanguage lang = MLanguage.get(ctx, client.getAD_Language());<NEW_LINE>MCountry usa = null;<NEW_LINE>//<NEW_LINE>s_countries = new CCache<String, MCountry>("C_Country", 250);<NEW_LINE>String sql = "SELECT * FROM ...
rs = stmt.executeQuery(sql);
1,526,984
static void findDuplicateElements(@NonNull Element parent, FileObject config, boolean shared) {<NEW_LINE>NodeList l = parent.getChildNodes();<NEW_LINE>int nodeCount = l.getLength();<NEW_LINE>Set<String> known <MASK><NEW_LINE>for (int i = 0; i < nodeCount; i++) {<NEW_LINE>if (l.item(i).getNodeType() == Node.ELEMENT_NODE...
= new HashSet<String>();
1,506,649
public void onMatch(RelOptRuleCall call) {<NEW_LINE>final HashGroupJoin hashGroupJoin = call.rel(0);<NEW_LINE>RelTraitSet emptyTraitSet = hashGroupJoin.getCluster().getPlanner().emptyTraitSet();<NEW_LINE>RelNode left = convert(hashGroupJoin.getLeft(), emptyTraitSet.replace(MppConvention.INSTANCE));<NEW_LINE>RelNode rig...
), hashGroupJoin.isSemiJoinDone());
1,009,050
// NOTE: copied from RubyArray, both RE, Struct, and Array should share one impl<NEW_LINE>@JRubyMethod(rest = true)<NEW_LINE>public IRubyObject values_at(IRubyObject[] args) {<NEW_LINE>final int olen = values.length;<NEW_LINE>RubyArray result = getRuntime().newArray(args.length);<NEW_LINE>for (int i = 0; i < args.lengt...
.append(aref(arg));
372,296
public void marshall(CreateInstancesRequest createInstancesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createInstancesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createInstancesReq...
createInstancesRequest.getKeyPairName(), KEYPAIRNAME_BINDING);
143,988
void stopListEdit() {<NEW_LINE>// this method can be called even when we are not editing<NEW_LINE>if (!isEditing()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String invalidFilenameMessage = chooser.getInvalidFilenameMessage(listEditorField.getText());<NEW_LINE>if (invalidFilenameMessage != null) {<NEW_LINE>chooser.setStat...
chooser.setStatusText("Unable to rename " + editedFileCopy);
1,836,273
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>Folder2 folder = emc.f...
emc.beginTransaction(Folder2.class);
395,799
private String parseCNB(final ZipEntry projectXML) throws IOException {<NEW_LINE>Document doc;<NEW_LINE>InputStream is = nbSrcZip.getInputStream(projectXML);<NEW_LINE>try {<NEW_LINE>doc = XMLUtil.parse(new InputSource(is), false, true, null, null);<NEW_LINE>} catch (SAXException e) {<NEW_LINE>// NOI18N<NEW_LINE>throw (...
Element docel = doc.getDocumentElement();
176,071
public void engineExplorationV1(KernelPackage kernelPackage) {<NEW_LINE>for (int i = 0; i < MAX_DEVICES; i++) {<NEW_LINE>for (int j = 0; j < MAX_DEVICES; j++) {<NEW_LINE>// We play with 2 devices<NEW_LINE>TaskSchedule s0 = new TaskSchedule("x" + i);<NEW_LINE>TornadoRuntime.setProperty("x" + i + ".t" + j + ".device", "0...
s0.streamOut(kernelPackage.z);
1,326,973
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplDeclare = "@public create table varTotalG3K (key0 string primary key, key1 int primary key," + "key2 long primary key, total sum(double), cnt count(*))";<NEW_LINE>env.compileDeploy(eplDeclare, path);<NEW...
new SupportBean_S0(10, "E1"));
1,823,121
public IfcBuilding createDefaultProjectStructure(double x, double y, double z) throws IfcModelInterfaceException {<NEW_LINE>IfcPerson person = create(IfcPerson.class);<NEW_LINE>IfcOrganization organization = create(IfcOrganization.class);<NEW_LINE>organization.setName("Required");<NEW_LINE>IfcPersonAndOrganization owni...
ifcProject = create(IfcProject.class);
1,719,932
public synchronized void start() {<NEW_LINE>if (!this.running) {<NEW_LINE>try {<NEW_LINE>Set<StreamsBuilderFactoryBean> streamsBuilderFactoryBeans = this.kafkaStreamsBindingInformationCatalogue.getStreamsBuilderFactoryBeans();<NEW_LINE>for (StreamsBuilderFactoryBean streamsBuilderFactoryBean : streamsBuilderFactoryBean...
this.kafkaStreamsBinderMetrics.addMetrics(streamsBuilderFactoryBeans);
64,169
public Conformity check(Cluster cluster) {<NEW_LINE>List<String> instanceIds = Lists.newArrayList();<NEW_LINE>for (AutoScalingGroup asg : cluster.getAutoScalingGroups()) {<NEW_LINE>instanceIds.addAll(asg.getInstances());<NEW_LINE>}<NEW_LINE>Map<String, Long> instanceIdToLaunchTime = getInstanceLaunchTimes(cluster.getRe...
instanceIds.size()]));
1,048,983
private LLVMValueRef emitCall(Invoke invoke, LoweredCallTargetNode callTarget, LLVMValueRef callee, long patchpointId, LLVMValueRef... args) {<NEW_LINE>boolean nativeABI = ((SubstrateCallingConventionType) callTarget.callType()).nativeABI();<NEW_LINE>if (!SubstrateBackend.hasJavaFrameAnchor(callTarget)) {<NEW_LINE>asse...
count() + 0] = anchor;
1,851,236
protected List<MethodNode> findMethodsWithGenerated(final ClassNode receiver, final String name) {<NEW_LINE>if (receiver.isArray()) {<NEW_LINE>if (name.equals("clone")) {<NEW_LINE>// GROOVY-10319: array clone -- <https://docs.oracle.com/javase/specs/jls/se8/html/jls-10.html#jls-10.7><NEW_LINE>MethodNode clone = new Met...
interfaceMethods = new ArrayList<>();
517,222
public static String stringify(final X509Certificate cert) {<NEW_LINE>final StringBuilder buf = new StringBuilder();<NEW_LINE>final String NL = "\n";<NEW_LINE>buf.append("Issuer: ").append(cert.getIssuerDN().getName()).append(NL);<NEW_LINE>buf.append("Issued to: ").append(cert.getSubjectDN().getName<MASK><NEW_LINE>buf....
()).append(NL);
1,364,657
public static String[] copyClassPathExtensionJar(File projectDir, File jar) throws IOException {<NEW_LINE>String[] ret = null;<NEW_LINE>// NOI18N<NEW_LINE>File releaseDir <MASK><NEW_LINE>if (!releaseDir.isDirectory() && !releaseDir.mkdirs()) {<NEW_LINE>// NOI18N<NEW_LINE>throw new IOException("cannot create release dir...
= new File(projectDir, CPEXT_BINARY_PATH);
1,839,670
private Position parseTrackingData(DeviceSession deviceSession, ByteBuf buf, int sequenceNumber, long timestamp) {<NEW_LINE>Position position = new Position(getProtocolName());<NEW_LINE>position.set(Position.KEY_INDEX, sequenceNumber);<NEW_LINE>position.setDeviceId(deviceSession.getDeviceId());<NEW_LINE>position.setTim...
(flags & 0x01) == 0x01);
715,562
private void createRelease(Gitea api, String tagName, String changelog, boolean deleteTags) throws IOException {<NEW_LINE>org.jreleaser.model.Gitea gitea = resolveGiteaFromModel();<NEW_LINE>if (context.isDryrun()) {<NEW_LINE>for (Asset asset : assets) {<NEW_LINE>if (0 == Files.size(asset.getPath()) || !Files.exists(ass...
getMilestone().getEffectiveName());
1,725,317
private void rewriteDagWithSnapshotRestore(DAG dag, long snapshotId, String mapName, String snapshotName) {<NEW_LINE>IMap<Object, Object> snapshotMap = mc.nodeEngine().getHazelcastInstance().getMap(mapName);<NEW_LINE>long resolvedSnapshotId = validateSnapshot(snapshotId, snapshotMap, mc.jobIdString(), snapshotName);<NE...
, index, userVertex, destOrdinal));
471,751
private void syncBPartnerToCandidate(@NonNull final NewManualInvoiceCandidateBuilder candidate, @NonNull final OrgId orgId, @NonNull final JsonCreateInvoiceCandidatesRequestItem item) {<NEW_LINE>final boolean noBPartnerIdentifier = isEmpty(item.getBillPartnerIdentifier(), true);<NEW_LINE>final BPartnerInfoBuilder bpart...
ofOrNull(item.getBillLocationIdentifier());
480,826
public SqlCreateSelection buildSqlCreateSelectionFrom(final ViewEvaluationCtx viewEvalCtx, final ViewId newViewId, final DocumentFilterList filters, final DocumentQueryOrderByList orderBys, final QueryLimit queryLimit, final SqlDocumentFilterConverterContext filterConverterCtx) {<NEW_LINE>if (!hasGroupingFields()) {<NE...
sqlCreateSelection(sqlCreateSelection).build();
752,006
public List<Amenity> searchAmenitiesByName(String searchQuery, double topLatitude, double leftLongitude, double bottomLatitude, double rightLongitude, double lat, double lon, ResultMatcher<Amenity> matcher) {<NEW_LINE>List<Amenity> amenities = new ArrayList<>();<NEW_LINE>List<AmenityIndexRepositoryBinary> list = new Ar...
right = MapUtils.get31TileNumberX(rightLongitude);
1,392,210
final CreateRuleGroupResult executeCreateRuleGroup(CreateRuleGroupRequest createRuleGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRuleGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
641,971
private void writeProfileActivation(IndentingWriter writer, MavenProfileActivation activation) {<NEW_LINE>if (activation.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>writeElement(writer, "activation", () -> {<NEW_LINE>writeSingleElement(writer, "activeByDefault", activation.getActiveByDefault());<NEW_LINE>writeSin...
"family", os.getFamily());
480,118
protected List<TableInfo<CommonField<Datatype>>> discoverInternal(final JdbcDatabase database, final String schema) throws Exception {<NEW_LINE>final Set<String> internalSchemas = new HashSet<>(getExcludedInternalNameSpaces());<NEW_LINE>final Set<JdbcPrivilegeDto> tablesWithSelectGrantPrivilege = getPrivilegesTableForC...
final Datatype datatype = getFieldType(f);
1,660,700
private StatisticImpl _getAggregate() {<NEW_LINE>// **FIXME: should be reset(false). add to statistic, statisticimpl<NEW_LINE>// this requires the code cleanup and adding reset or cleanup method to statistic interface<NEW_LINE>// if we add now it will be exposed so not the hard way now.<NEW_LINE>switch(_type) {<NEW_LIN...
) aggregateValue).reset(false);
41,349
private void subdivide(Octant octant) {<NEW_LINE>float quantum = octant.size / 4;<NEW_LINE>float newSize = octant.size / 2;<NEW_LINE>float posX = octant.posX;<NEW_LINE>float posY = octant.posY;<NEW_LINE>float posZ = octant.posZ;<NEW_LINE>int depth = octant.depth;<NEW_LINE>Octant o1 = new Octant(depth + 1, posX + quantu...
quantum, posZ - quantum, newSize);
685,809
private void parseOutputTypeNode(CanInclude include, int i, JsonNode typeNode) throws QueryException {<NEW_LINE>String identifier = i == -1 ? "outputType" : "\\outputTypes\"[" + i + "]";<NEW_LINE>if (typeNode.isTextual()) {<NEW_LINE>EClass eClass = packageMetaData.getEClassIncludingDependencies(typeNode.asText());<NEW_...
identifier + " object cannot contain \"" + fieldName + "\" field");
21,480
public static void performEncounter(Person person, long time) {<NEW_LINE>Map<String, List<Long>> immunizationsGiven;<NEW_LINE>if (person.attributes.containsKey(IMMUNIZATIONS)) {<NEW_LINE>immunizationsGiven = (Map<String, List<Long>>) <MASK><NEW_LINE>} else {<NEW_LINE>immunizationsGiven = new HashMap<String, List<Long>>...
person.attributes.get(IMMUNIZATIONS);
1,840,827
public PutBackupPolicyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>PutBackupPolicyResult putBackupPolicyResult = new PutBackupPolicyResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
1,408,994
private void initHotelRatingView() {<NEW_LINE>mHotelReview = findViewById(R.id.ll__place_hotel_rating);<NEW_LINE>RecyclerView rvHotelReview = findViewById(R.id.rv__place_hotel_review);<NEW_LINE>rvHotelReview.setLayoutManager(new LinearLayoutManager(getContext()));<NEW_LINE>rvHotelReview.<MASK><NEW_LINE>rvHotelReview.se...
getLayoutManager().setAutoMeasureEnabled(true);
1,417,175
public void executeOperations(ComponentContext c, List<Operation> operations) {<NEW_LINE>for (int i = 0, size = operations.size(); i < size; i++) {<NEW_LINE>final Operation operation = operations.get(i);<NEW_LINE>final List<ComponentContainer> components = operation.getComponentContainers();<NEW_LINE>List<RenderInfo> r...
(0).getRenderInfo());
867,882
private <V> List<Map.Entry<ByteString, V>> tagPrefixPageTagValues(Windmill.TagValuePrefixResponse tagValuePrefixResponse, Coder<V> valueCoder) {<NEW_LINE>if (tagValuePrefixResponse.getTagValuesCount() == 0) {<NEW_LINE>return new WeightedList<<MASK><NEW_LINE>}<NEW_LINE>WeightedList<Map.Entry<ByteString, V>> entryList = ...
>(Collections.emptyList());
1,842,955
protected int initialAssignToNearestCluster() {<NEW_LINE>assert k == means.length;<NEW_LINE>initialSeparation(ccsim);<NEW_LINE>for (DBIDIter it = relation.iterDBIDs(); it.valid(); it.advance()) {<NEW_LINE>NumberVector <MASK><NEW_LINE>double[] us = usim.get(it);<NEW_LINE>// Check all (other) means:<NEW_LINE>double best ...
fv = relation.get(it);
599,088
public Mono<Response<Void>> deleteBackupConfigurationWithResponseAsync(String resourceGroupName, String name) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (resou...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
1,037,981
public void run(int size) {<NEW_LINE>float[] input = new float[size];<NEW_LINE>float[] result = new float[1];<NEW_LINE>Random r = new Random();<NEW_LINE>IntStream.range(0, size).sequential().forEach(i -> {<NEW_LINE>input[i] = r.nextFloat();<NEW_LINE>});<NEW_LINE>// @formatter:off<NEW_LINE>TaskSchedule task = new TaskSc...
, result).streamOut(result);
413,634
public static Size fromDataSize(DataSize dataSize) {<NEW_LINE>switch(dataSize.getUnit()) {<NEW_LINE>case BYTES:<NEW_LINE>return Size.bytes(dataSize.getQuantity());<NEW_LINE>case KIBIBYTES:<NEW_LINE>return Size.kilobytes(dataSize.getQuantity());<NEW_LINE>case KILOBYTES:<NEW_LINE>return Size.<MASK><NEW_LINE>case MEBIBYTE...
bytes(dataSize.toBytes());
1,519,415
void configureReturner(Query q, SqlObjectStatementConfiguration cfg) {<NEW_LINE>UseRowMapper useRowMapper = getMethod().getAnnotation(UseRowMapper.class);<NEW_LINE>UseRowReducer useRowReducer = getMethod().getAnnotation(UseRowReducer.class);<NEW_LINE>if (useRowReducer != null && useRowMapper != null) {<NEW_LINE>throw n...
elementType(ctx.getConfig());
1,357,199
protected List findByUserId(String userId, int begin, int end, OrderByComparator obc) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM Address IN CLASS com.liferay.portal.ejb.AddressHB...
.setString(queryPos++, userId);
907,329
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "cnt" };<NEW_LINE>sendTimer(env, 0);<NEW_LINE>String selectStmt = "@name('s0') select count(*) as cnt from SupportBean#time(10 seconds) where intPrimitive > 0 output snapshot every 1 seconds";<NEW_LINE>env.compileDeploy(selectStmt).a...
sendEvent(env, "s4", 2);
1,053,705
private static EnumElement toEnum(EnumDescriptorProto ed) {<NEW_LINE><MASK><NEW_LINE>log.trace("*** enum name: {}", name);<NEW_LINE>ImmutableList.Builder<EnumConstantElement> constants = ImmutableList.builder();<NEW_LINE>for (EnumValueDescriptorProto ev : ed.getValueList()) {<NEW_LINE>ImmutableList.Builder<OptionElemen...
String name = ed.getName();
191,716
public static GenerateUpgradeRecordResponse unmarshall(GenerateUpgradeRecordResponse generateUpgradeRecordResponse, UnmarshallerContext _ctx) {<NEW_LINE>generateUpgradeRecordResponse.setRequestId<MASK><NEW_LINE>List<RecordsItem> records = new ArrayList<RecordsItem>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("Gene...
(_ctx.stringValue("GenerateUpgradeRecordResponse.RequestId"));
1,188,511
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>jLabelTarget = new javax.swing.JLabel();<NEW_LINE>jComboBoxTarget = new javax.swing.JComboBox();<NEW_LINE>jButton1 = new javax.swing.JButton();<NEW_LINE>jLabelTarget.setLabelFor(jC...
(LibrariesCustomizerPanel.class, "ACSD_CustomizerGeneral_jLabelTarget"));
1,552,809
private Expression readUserDefinedFunctionIf(Schema schema, String functionName) {<NEW_LINE>UserDefinedFunction userDefinedFunction = findUserDefinedFunctionWithinPath(schema, functionName);<NEW_LINE>if (userDefinedFunction == null) {<NEW_LINE>return null;<NEW_LINE>} else if (userDefinedFunction instanceof FunctionAlia...
toArray(new Expression[0]);
673,032
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_draft_box);<NEW_LINE><MASK><NEW_LINE>mDrafts = mDraftBox.getAllDrafts();<NEW_LINE>mAdapter = new DraftAdapter(this);<NEW_LINE>mNullView = findViewById(R.id.tv_null_view);<NEW_LINE>...
mDraftBox = PLDraftBox.getInstance(this);
1,049,136
final ListPipelineParametersForExecutionResult executeListPipelineParametersForExecution(ListPipelineParametersForExecutionRequest listPipelineParametersForExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPipelineParametersForExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
393,349
public DescribeWorkspaceImagesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeWorkspaceImagesResult describeWorkspaceImagesResult = new DescribeWorkspaceImagesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurren...
)).unmarshall(context));
1,238,117
protected int initialAssignToNearestCluster() {<NEW_LINE>assert k == means.length;<NEW_LINE>for (DBIDIter it = relation.iterDBIDs(); it.valid(); it.advance()) {<NEW_LINE>NumberVector fv = relation.get(it);<NEW_LINE>double[] l = lower.get(it);<NEW_LINE>// Check all (other) means:<NEW_LINE>double best = l[0] = sqrtdistan...
(sums[minIndex], fv);
1,182,476
public static void registerType(ModelBuilder modelBuilder) {<NEW_LINE>ModelElementTypeBuilder typeBuilder = modelBuilder.defineType(DataStoreReference.class, BPMN_ELEMENT_DATA_STORE_REFERENCE).namespaceUri(BPMN20_NS).extendsType(FlowElement.class).instanceProvider(new ModelElementTypeBuilder.ModelTypeInstanceProvider<D...
SequenceBuilder sequenceBuilder = typeBuilder.sequence();
1,035,873
private void parseTransformations(final InfiniumFileTOC toc) throws IOException {<NEW_LINE>stream.skipBytes(toc.getOffset());<NEW_LINE>final int arrayLen = Integer.reverseBytes(stream.readInt());<NEW_LINE>final InfiniumTransformation[] transformations = new InfiniumTransformation[arrayLen];<NEW_LINE>for (int i = 0; i <...
curTransformation.setReserved4(parseFloat());
193,124
public void deployResource(Object resource, String applicationName, String moduleName) throws Exception {<NEW_LINE>ManagedExecutorService managedExecutorServiceRes = (ManagedExecutorService) resource;<NEW_LINE>if (managedExecutorServiceRes == null) {<NEW_LINE>_logger.log(Level.WARNING, LogFacade.DEPLOY_ERROR_NULL_CONFI...
class.getName(), resourceInfo);
1,688,300
private void calculateLayoutX(final boolean isLeft) {<NEW_LINE>final Dimension contentSize = ContentSizeCalculator.INSTANCE.calculateContentSize(view);<NEW_LINE>int level = viewLevels.highestSummaryLevel + 1;<NEW_LINE>final int[] summaryBaseX = new int[level];<NEW_LINE>for (int i = 0; i < childViewCount; i++) {<NEW_LIN...
Math.min(left, x);
1,592,378
private static int extractErrorPositionForH2(Connection con, Statement stmt, Throwable ex, String sql) {<NEW_LINE>if (!(ex instanceof SQLException)) {<NEW_LINE>return -1;<NEW_LINE>}<NEW_LINE>SQLException se = (SQLException) ex;<NEW_LINE>Matcher matcher;<NEW_LINE>if (se.getErrorCode() == 42000 || se.getErrorCode() == 42...
).replace("\"\"", "\"");
849,333
public Status transferLeader(final String groupId, final Configuration conf, final PeerId peer) {<NEW_LINE>Requires.requireTrue(!StringUtils.isBlank(groupId), "Blank group id");<NEW_LINE>Requires.requireNonNull(conf, "Null configuration");<NEW_LINE>Requires.requireNonNull(peer, "Null peer");<NEW_LINE>final PeerId leade...
1, e.getMessage());
979,165
private <I extends ComponentInfo> List<ResolveInfo> queryComponentsInManifest(Intent intent, Function<PackageInfo, I[]> componentsInPackage, SortedMap<ComponentName, List<IntentFilter>> filters, BiConsumer<ResolveInfo, I> componentSetter) {<NEW_LINE>synchronized (lock) {<NEW_LINE>if (isExplicitIntent(intent)) {<NEW_LIN...
componentSetter.accept(resolveInfo, componentInfo);
961,700
public void train(RegressionDataSet dataSet, boolean parallel) {<NEW_LINE>final int N = dataSet.size();<NEW_LINE>vecs = new ArrayList<>(N);<NEW_LINE>// alphas initalized later<NEW_LINE>Vec Y = dataSet.getTargetValues();<NEW_LINE>for (int i = 0; i < N; i++) vecs.add(dataSet.getDataPoint(i).getNumericalValues());<NEW_LIN...
alphaTmp = cd.solve(Y);
12,457
public String handleRequest(String uri, String content, HttpResponse output) {<NEW_LINE>try (Connection connection = db.getConnection()) {<NEW_LINE>if (connection == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>output.setStatus(HttpResponseStatus.OK);<NEW_LINE>output.headers().set(<MASK><NEW_LINE>output.headers()....
HttpHeaders.Names.CONTENT_TYPE, "text/plain; charset=UTF-8");
1,138,406
protected Void createVolumeFromSnapshotCallback(AsyncCallbackDispatcher<VolumeServiceImpl, CopyCommandResult> callback, CreateVolumeFromBaseImageContext<VolumeApiResult> context) {<NEW_LINE>CopyCommandResult result = callback.getResult();<NEW_LINE>VolumeInfo <MASK><NEW_LINE>SnapshotInfo snapshot = context.snapshot;<NEW...
volume = (VolumeInfo) context.templateOnStore;
127,145
private HaskellHaddockLibRule requireHaddockLibrary(BuildTarget baseTarget, ProjectFilesystem projectFilesystem, BuildRuleParams baseParams, ActionGraphBuilder graphBuilder, HaskellPlatform platform, HaskellLibraryDescriptionArg args) {<NEW_LINE>CxxPlatform cxxPlatform = platform.getCxxPlatform();<NEW_LINE>CxxDeps allD...
), args.getCompilerFlags());
377,847
public boolean copyDir(URI srcUri, URI dstUri) throws IOException {<NEW_LINE>LOGGER.debug("copy is called with srcUri='{}', dstUri='{}'", srcUri, dstUri);<NEW_LINE>// If src and dst are the same, do nothing.<NEW_LINE>if (srcUri.equals(dstUri)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// Remove the destination direct...
copySucceeded &= copySrcToDst(currentSrc, newDst);
701,483
public static DownloadRequest.Builder create(FeedMedia media) {<NEW_LINE>final boolean partiallyDownloadedFileExists = media.getFile_url() != null && new File(media.<MASK><NEW_LINE>File dest;<NEW_LINE>if (media.getFile_url() != null && new File(media.getFile_url()).exists()) {<NEW_LINE>dest = new File(media.getFile_url...
getFile_url()).exists();
1,625,471
public void actionPerform(Component component) {<NEW_LINE>MetaClass entityMetaClass;<NEW_LINE>if (target.getItems() instanceof EntityDataUnit) {<NEW_LINE>entityMetaClass = ((EntityDataUnit) target.getItems()).getEntityMetaClass();<NEW_LINE>} else {<NEW_LINE>throw new UnsupportedOperationException("Unsupported data unit...
, ComponentsHelper.getFilterComponentPath(filter));
1,196,211
public static void execute(ManagerConnection c, int numLines) {<NEW_LINE>ByteBuffer buffer = c.allocate();<NEW_LINE>// write header<NEW_LINE>buffer = header.write(buffer, c, true);<NEW_LINE>// write fields<NEW_LINE>for (FieldPacket field : fields) {<NEW_LINE>buffer = field.write(buffer, c, true);<NEW_LINE>}<NEW_LINE>//...
write(buffer, c, true);
860,278
public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>JSONObject result = new JSONObject(true);<NEW_LINE>result.put("accepted", false);<NEW_LINE>result.put("message", "Error: Unable to reset Password");<...
pattern = Pattern.compile(passwordPattern);
1,408,431
public Object invokeServer(IRestfulServer<?> theServer, RequestDetails theRequest) throws BaseServerResponseException, IOException {<NEW_LINE>Object[] methodParams = createMethodParams(theRequest);<NEW_LINE>if (myIdParamIndex != null) {<NEW_LINE>methodParams[myIdParamIndex] = theRequest.getId();<NEW_LINE>}<NEW_LINE>Str...
ServletRequestDetails) theRequest).getServletResponse();
1,271,594
public JwtRsaSsaPkcs1PrivateKey createKey(JwtRsaSsaPkcs1KeyFormat format) throws GeneralSecurityException {<NEW_LINE>JwtRsaSsaPkcs1Algorithm algorithm = format.getAlgorithm();<NEW_LINE>KeyPairGenerator keyGen = <MASK><NEW_LINE>RSAKeyGenParameterSpec spec = new RSAKeyGenParameterSpec(format.getModulusSizeInBits(), new B...
EngineFactory.KEY_PAIR_GENERATOR.getInstance("RSA");
1,467,167
// [END delete_job]<NEW_LINE>public static void main(String... args) throws Exception {<NEW_LINE>// Create a company before creating jobs<NEW_LINE>Company companyToBeCreated = BasicCompanySample.generateCompany();<NEW_LINE>Company <MASK><NEW_LINE>String companyName = companyCreated.getName();<NEW_LINE>// Construct a jo...
companyCreated = BasicCompanySample.createCompany(companyToBeCreated);
595,652
BeanCacheResult<T> cacheIdLookup(PersistenceContext context, Collection<?> ids) {<NEW_LINE>Set<Object> keys = new HashSet<>(ids.size());<NEW_LINE>for (Object id : ids) {<NEW_LINE>keys.add(desc.cacheKey(id));<NEW_LINE>}<NEW_LINE>if (ids.isEmpty()) {<NEW_LINE>return new BeanCacheResult<>();<NEW_LINE>}<NEW_LINE>Map<Object...
, desc.id(bean));
581,342
public void layoutContainer(@NotNull final Container container) {<NEW_LINE>final Insets b = container.getInsets();<NEW_LINE>final Dimension s = container.getSize();<NEW_LINE>final Dimension next = nextButton != null ? nextButton.getPreferredSize() : new Dimension(0, 0);<NEW_LINE>final Dimension prev = previousButton !=...
next.width, prev.width);
345,452
public void preprocessOpenAPI(OpenAPI openAPI) {<NEW_LINE>List<Server> serverList = openAPI.getServers();<NEW_LINE>List<CodegenServer> CodegenServerList = new ArrayList<CodegenServer>();<NEW_LINE>URL url = URLPathUtils.getServerURL(openAPI, serverVariableOverrides());<NEW_LINE>String port = URLPathUtils.getPort(url, ""...
additionalProperties.put("serverHost", host);
1,275,868
public static void vertical(GrayF64 input, GrayF64 output, int radius, @Nullable GrowArray<DogArray_F64> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_F64::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final <MASK><NEW_LINE>final int kernelWidth = radius * 2 + 1;<NEW_LINE>final i...
DogArray_F64 work = workspaces.grow();
1,614,106
private void commitLoop() {<NEW_LINE>Map<ComputationState, Windmill.ComputationCommitWorkRequest.Builder> computationRequestMap = new HashMap<>();<NEW_LINE>while (running.get()) {<NEW_LINE>computationRequestMap.clear();<NEW_LINE>Windmill.CommitWorkRequest.Builder commitRequestBuilder = Windmill.CommitWorkRequest.newBui...
setComputationId(computationState.getComputationId());
1,732,443
public Map<String, String> toMap() {<NEW_LINE>HashMap<String, String> map = new HashMap<String, String>();<NEW_LINE>if (!isBlank(hostname)) {<NEW_LINE>map.put("hostname", getHostname());<NEW_LINE>}<NEW_LINE>if (!isBlank(osfamily)) {<NEW_LINE>map.put("osfamily", getOsfamily());<NEW_LINE>}<NEW_LINE>if (!isBlank(osarch)) ...
put("name", getName());
1,362,795
public List<Edge> findShortestCycle(TypeNode root) {<NEW_LINE>Map<TypeNode, Edge> backlinks = new HashMap<>();<NEW_LINE>Set<TypeNode> visited = new HashSet<>();<NEW_LINE>List<TypeNode> <MASK><NEW_LINE>outer: while (true) {<NEW_LINE>List<TypeNode> visitNext = new ArrayList<>();<NEW_LINE>for (TypeNode source : toVisit) {...
toVisit = Lists.newArrayList(root);
815,393
// FocusListener methods<NEW_LINE>@Override<NEW_LINE>public void focusGained(FocusEvent evt) {<NEW_LINE>if (LOG.isLoggable(Level.FINE)) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.// NOI18N<NEW_LINE>fine("BaseCaret.focusGained(); doc=" + component.getDocument().getProperty(Document.TitleProperty) + '\n');<NEW_LINE>}<NEW_LINE>JTe...
"Caret visibility: " + isVisible() + '\n');
270,697
public static QueryAdvancedDomainListResponse unmarshall(QueryAdvancedDomainListResponse queryAdvancedDomainListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryAdvancedDomainListResponse.setRequestId(_ctx.stringValue("QueryAdvancedDomainListResponse.RequestId"));<NEW_LINE>queryAdvancedDomainListResponse.setTotalIte...
("QueryAdvancedDomainListResponse.Data[" + i + "].Premium"));
802,396
private void initialize() {<NEW_LINE>locationTF.setPreferredSize(new Dimension(360, 30));<NEW_LINE>locationTF.setText(System.getProperty("user.home"));<NEW_LINE>locationTF.setEditable(false);<NEW_LINE>browseBtn.setText(FontUtils.elegantIconHtml("&#x6e;", MessageUtils.getLocalizedMessage("button.browse")));<NEW_LINE>bro...
new Dimension(250, 30));
91,720
final IncreaseStreamRetentionPeriodResult executeIncreaseStreamRetentionPeriod(IncreaseStreamRetentionPeriodRequest increaseStreamRetentionPeriodRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(increaseStreamRetentionPeriodRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "IncreaseStreamRetentionPeriod");
906,685
public static ProtoTxnOpImpl newTxnOp(TxnRequest request) {<NEW_LINE>ProtoTxnOpImpl op = RECYCLER.get();<NEW_LINE>op.setRequest(request);<NEW_LINE>RecyclableArrayList<CompareOp<byte[], byte[]>> compareOps = COMPARE_OPS_RECYCLER.newInstance();<NEW_LINE>for (Compare compare : request.getCompareList()) {<NEW_LINE>compareO...
> successOps = OPS_RECYCLER.newInstance();
459,743
public ScriptProcessor create(Map<String, Processor.Factory> registry, String processorTag, String description, Map<String, Object> config) throws Exception {<NEW_LINE>try (XContentBuilder builder = XContentBuilder.builder(JsonXContent.jsonXContent).map(config);<NEW_LINE>InputStream stream = BytesReference.bytes(builde...
TYPE, processorTag, null, e);
306,333
private List<Map> updateUserRole(@ApiParam(required = true) UserRoleList userRoleList, @HeaderParam(AUTHORIZATION) @ApiParam(value = EXAMPLE_AUTHORIZATION_HEADER, required = true) String authorizationHeader) {<NEW_LINE>Username subject = authorization.getUser(authorizationHeader);<NEW_LINE>UserInfo admin = authorizatio...
<Map> status = newArrayList();
165,114
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select " + "first(sa.doublePrimitive + sa.intPrimitive), " + "first(sa.intPrimitive), " + "window(sa.*), " + "last(*) from SupportBean#length(2) as sa";<NEW_LINE>env.compileDeploy(epl)...
tryAssertionType(env, false, milestone);
1,375,963
private static Map<String, DateTimeZone> buildDefaultTimeZoneNames() {<NEW_LINE>// names from RFC-822 / JDK<NEW_LINE>// this is all very US-centric and dubious, but perhaps it will help some<NEW_LINE>Map<String, DateTimeZone> map = new LinkedHashMap<String, DateTimeZone>();<NEW_LINE>map.put("UT", DateTimeZone.UTC);<NEW...
put(map, "PST", "America/Los_Angeles");
1,295,025
public static <M extends DataFrameClassifier> ClassificationValidation<M> of(Formula formula, DataFrame train, DataFrame test, BiFunction<Formula, DataFrame, M> trainer) {<NEW_LINE>int[] y = formula.y(train).toIntArray();<NEW_LINE>int[] testy = formula.<MASK><NEW_LINE>long start = System.nanoTime();<NEW_LINE>M model = ...
y(test).toIntArray();
740,982
public boolean finalizeNativeLibs(final ClassLoader cl) throws ValidatorManagerException {<NEW_LINE>boolean res = false;<NEW_LINE>final Class classClassLoader = ClassLoader.class;<NEW_LINE>java.lang.reflect.Field nativeLibraries = null;<NEW_LINE>try {<NEW_LINE>nativeLibraries = classClassLoader.getDeclaredField("native...
obj = nativeLibraries.get(cl);
433,142
protected boolean processViewIntent(@NonNull Intent intent) {<NEW_LINE>final String <MASK><NEW_LINE>if (inviteUri != null) {<NEW_LINE>final Invite invite = new Invite(inviteUri);<NEW_LINE>invite.account = intent.getStringExtra(EXTRA_ACCOUNT);<NEW_LINE>if (invite.isValidJid()) {<NEW_LINE>return invite.invite();<NEW_LINE...
inviteUri = intent.getStringExtra(EXTRA_INVITE_URI);
397,633
private static QPatch[] parsePatches(List<String> list, Queue q) {<NEW_LINE>List<QPatch> patches = new ArrayList<QPatch>(list.size());<NEW_LINE>// NOI18N<NEW_LINE>Pattern p = Pattern.compile("^\\s*(\\b\\d+)\\s([AU])\\s([^:]+?):\\s?(.*)$");<NEW_LINE>for (String line : list) {<NEW_LINE>Matcher m = p.matcher(line);<NEW_LI...
id = m.group(3);
1,408,706
/* package */<NEW_LINE>AndroidApp signTestServer(File customSelendroidServer, File outputFileName) throws ShellCommandException, AndroidSdkException {<NEW_LINE>if (outputFileName == null) {<NEW_LINE>throw new IllegalArgumentException("outputFileName parameter is null.");<NEW_LINE>}<NEW_LINE>File androidKeyStore = andro...
commandline.addArgument("-signedjar", false);
628,495
public int[] indexOfMV(Object value) {<NEW_LINE>Object[] multiValues = (Object[]) value;<NEW_LINE>int[] indexes = new int[multiValues.length];<NEW_LINE>switch(_storedType) {<NEW_LINE>case INT:<NEW_LINE>for (int i = 0; i < multiValues.length; i++) {<NEW_LINE>indexes[i] = _intValueToIndexMap.get((int) multiValues[i]);<NE...
(long) multiValues[i]);
61,604
public File bundlevalue(String attr, String label, Annotation annotation, String annotationMethod) throws LayerGenerationException {<NEW_LINE>String javaIdentifier = "(?:\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*)";<NEW_LINE>Matcher m = Pattern.compile("((?:" + javaIdentifier <MASK><NEW_LINE>if (m.matches...
+ "\\.)+[^\\s.#]+)?#(\\S*)").matcher(label);