idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,398,308
public boolean execute() {<NEW_LINE>Progress.start(progress);<NEW_LINE>PreviewController controller = Lookup.getDefault().lookup(PreviewController.class);<NEW_LINE>controller.getModel(workspace).getProperties().putValue(PreviewProperty.VISIBILITY_RATIO, 1.0);<NEW_LINE>controller.refreshPreview(workspace);<NEW_LINE>Prev...
, col.getBlue()));
29,779
final ListQueueQuickConnectsResult executeListQueueQuickConnects(ListQueueQuickConnectsRequest listQueueQuickConnectsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listQueueQuickConnectsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
false), new ListQueueQuickConnectsResultJsonUnmarshaller());
1,390,270
private static void loadFile() throws IOException {<NEW_LINE>kits.clear();<NEW_LINE>NbtCompound rootTag = NbtIo.read(new File(configPath.toFile(), "kits.dat"));<NEW_LINE>if (rootTag == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int currentVersion = SharedConstants.getGameVersion().getWorldVersion();<NEW_LINE>fi...
ITEM_STACK, oldTagDynamic, fileVersion, currentVersion);
1,191,132
public void testTransactionContextPropagatedToAsyncTaskInline() throws Exception {<NEW_LINE>ManagedExecutorService executor = InitialContext.doLookup("java:module/concurrent/txexecutor");<NEW_LINE>// In order to prevent overlap of the transaction on the submitter thread and<NEW_LINE>// the thread of execution, we are m...
Object txKey = tranSyncRegistry.getTransactionKey();
310,919
private List<List<Dimension>> listDimensions(MetricRule rule, List<String> tagBasedResourceIds, CloudWatchClient cloudWatchClient) {<NEW_LINE>List<List<Dimension>> dimensions = new ArrayList<>();<NEW_LINE>if (rule.awsDimensions == null) {<NEW_LINE>dimensions.add(new ArrayList<>());<NEW_LINE>return dimensions;<NEW_LINE>...
rule.awsNamespace).inc();
797,422
public static void main(String[] args) throws IOException {<NEW_LINE>Cmd cmd = MainUtils.parseArguments(args, FLAGS);<NEW_LINE>if (cmd.argsLength() < 1) {<NEW_LINE>MainUtils.printHelpArgs(FLAGS, new String[] { "output file" });<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int speed = 4;<NEW_LINE>final int ballSize = 40;<...
long start = System.nanoTime();
682,530
public String toVarName(String name) {<NEW_LINE>// translate @ for properties (like @type) to at_.<NEW_LINE>// Otherwise an additional "type" property will leed to duplcates<NEW_LINE>name = name.replaceAll("^@", "at_");<NEW_LINE>// replace - with _ e.g. created-at => created_at<NEW_LINE>name = sanitizeName(name<MASK><N...
.replaceAll("-", "_"));
579,376
public static Field convertField(org.apache.arrow.flatbuf.Field field) {<NEW_LINE>Map<String, String> metadata = new HashMap<>();<NEW_LINE>for (int i = 0; i < field.customMetadataLength(); i++) {<NEW_LINE>KeyValue kv = field.customMetadata(i);<NEW_LINE>String key = kv.key();<NEW_LINE>String value = kv.value();<NEW_LINE...
metadata.get(ExtensionType.EXTENSION_METADATA_KEY_NAME);
410,627
final DeleteRuleResult executeDeleteRule(DeleteRuleRequest deleteRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
endClientExecution(awsRequestMetrics, request, response);
929,900
private void draw(GC gc, boolean odd) {<NEW_LINE>String speed = getBPSForDisplay(count_recv + count_sent);<NEW_LINE>String nums = speed;<NEW_LINE>int pos = nums.indexOf(" ");<NEW_LINE>if (pos != -1) {<NEW_LINE>nums = nums.substring(0, pos);<NEW_LINE>}<NEW_LINE>int speed_width = gc.textExtent(nums).x;<NEW_LINE>int speed...
= image.getBounds().width;
894,275
public static sockaddr create(InetSocketAddress socket) {<NEW_LINE>InetAddress address = socket.getAddress();<NEW_LINE>if (address instanceof Inet4Address) {<NEW_LINE>sockaddr_in v4 = new sockaddr_in();<NEW_LINE>v4.sin_addr = address.getAddress();<NEW_LINE>v4.sin_port = (short) socket.getPort();<NEW_LINE>v4.sin_len = (...
.sin6_addr = address.getAddress();
494,463
public void run(FlowTrigger trigger, Map data) {<NEW_LINE>final String primaryStorageUuid = msg.getVolume().getPrimaryStorageUuid();<NEW_LINE>AskVolumeSnapshotCapabilityMsg askMsg = new AskVolumeSnapshotCapabilityMsg();<NEW_LINE>askMsg.setPrimaryStorageUuid(primaryStorageUuid);<NEW_LINE>askMsg.setVolume(vol);<NEW_LINE>...
, vol.getUuid()));
1,655,360
public void generate(final Module module, final Element element) {<NEW_LINE>if (!(module instanceof SimpleListExtension)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final SimpleListExtension sle = (SimpleListExtension) module;<NEW_LINE>addNotNullElement(element, "treatAs", sle.getTreatAs());<NEW_LINE>final Group[] groups =...
[i].getElement());
1,818,030
public static JFreeChart createWindPlot(String title, String xAxisLabel, String yAxisLabel, WindDataset dataset, boolean legend, boolean tooltips, boolean urls) {<NEW_LINE><MASK><NEW_LINE>ValueAxis yAxis = new NumberAxis(yAxisLabel);<NEW_LINE>yAxis.setRange(-12.0, 12.0);<NEW_LINE>WindItemRenderer renderer = new WindIte...
ValueAxis xAxis = new DateAxis(xAxisLabel);
345,522
public void marshall(InstanceStorageConfig instanceStorageConfig, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (instanceStorageConfig.getAssociationId() != null) {<NEW_LINE>String associationId = instanceStorageConfig.getAssociationId();<NEW_LINE>jsonWriter.name("Associati...
S3Config s3Config = instanceStorageConfig.getS3Config();
1,056,214
public static Map<String, Properties> readMultipleClientConfigAvro(String configAvro) {<NEW_LINE>Map<String, Properties<MASK><NEW_LINE>try {<NEW_LINE>JsonDecoder decoder = new JsonDecoder(CLIENT_CONFIGS_AVRO_SCHEMA, configAvro);<NEW_LINE>GenericDatumReader<Object> datumReader = new GenericDatumReader<Object>(CLIENT_CON...
> mapStoreToProps = Maps.newHashMap();
1,222,822
final ListResolversResult executeListResolvers(ListResolversRequest listResolversRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listResolversRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
endClientExecution(awsRequestMetrics, request, response);
705,255
public Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException {<NEW_LINE>Entity entity = persistencePackage.getEntity();<NEW_LINE>try {<NEW_LINE>PersistencePerspective persistencePerspective = persistencePackage.getPersistencePerspective();<N...
)[0]), primaryKey);
1,367,997
void transpileTry(Node n, @Nullable TranspilationContext.Case breakCase) {<NEW_LINE>Node tryBlock = n.removeFirstChild();<NEW_LINE>Node catchBlock = n.removeFirstChild();<NEW_LINE>Node finallyBlock = n.removeFirstChild();<NEW_LINE>TranspilationContext.Case catchCase = catchBlock.hasChildren() ? context.createCase() : n...
? null : context.createCase();
813,559
public static TypeToken<?> resolveTypeName(String type) {<NEW_LINE>Preconditions.checkArgument(type.length() > 0, "type name is empty");<NEW_LINE>if (type.endsWith("[]")) {<NEW_LINE>String nt = type.substring(0, type.length() - 2);<NEW_LINE>TypeToken<?> inner = resolveTypeName(nt);<NEW_LINE>return makeListType(inner);<...
TypeToken.of(Text.class);
358,935
public void updated(Dictionary config) throws ConfigurationException {<NEW_LINE>if (config != null) {<NEW_LINE>Enumeration keys = config.keys();<NEW_LINE>while (keys.hasMoreElements()) {<NEW_LINE>String key = (String) keys.nextElement();<NEW_LINE>Matcher <MASK><NEW_LINE>if (!matcher.matches()) {<NEW_LINE>logger.debug("...
matcher = EXTRACT_HDANYWHERE_CONFIG_PATTERN.matcher(key);
1,261,432
public static String doPost(String url, String paramStr, Map<String, String> headers, String method) {<NEW_LINE>try {<NEW_LINE>URL u = new URL(url);<NEW_LINE>HttpURLConnection conn = (HttpURLConnection) u.openConnection();<NEW_LINE>addHeaders(conn, headers);<NEW_LINE>if (StringUtils.isBlank(method)) {<NEW_LINE>conn.set...
IOUtils.toString(is, DEFAULT_ENCODING);
356,878
public String fun(PsiElement element) {<NEW_LINE>if (element instanceof GoTypeSpec) {<NEW_LINE>String localUrl = getLocalUrlToElement(element);<NEW_LINE>String name = ((GoTypeSpec) element).getName();<NEW_LINE>if (StringUtil.isNotEmpty(name)) {<NEW_LINE>String importPath = getImportPathForElement(element);<NEW_LINE>GoF...
GoTypeSpec) element).getContainingFile();
640,924
public Result process(Path localPath, Path absolutePath, ParseResult<CompilationUnit> result) {<NEW_LINE>Result res = Result.SAVE;<NEW_LINE>// System.out.printf("Minimizing %s%n", absolutePath);<NEW_LINE>Optional<CompilationUnit> opt = result.getResult();<NEW_LINE>if (opt.isPresent()) {<NEW_LINE>CompilationUnit cu = op...
toUri()).delete();
349,561
public static GetKubernetesTriggerResponse unmarshall(GetKubernetesTriggerResponse getKubernetesTriggerResponse, UnmarshallerContext _ctx) {<NEW_LINE>List<TriggersItem> triggers = new ArrayList<TriggersItem>();<NEW_LINE>for (int i = 0; i < _ctx.lengthValue("GetKubernetesTriggerResponse.triggers.Length"); i++) {<NEW_LIN...
("GetKubernetesTriggerResponse.triggers[" + i + "].cluster_id"));
1,773,713
public LoadContext<E> createLoadContext() {<NEW_LINE>Class<E> entityClass = container.getEntityMetaClass().getJavaClass();<NEW_LINE>LoadContext<E> <MASK><NEW_LINE>String queryString = getQueryStringProcessor().process(this.query, entityClass);<NEW_LINE>LoadContext.Query query = loadContext.setQueryString(queryString);<...
loadContext = LoadContext.create(entityClass);
1,437,484
private int[] calculateAlleleTypes(final List<Allele> alleles) {<NEW_LINE>Utils.validateArg(!alleles.isEmpty(), "the input allele list cannot empty");<NEW_LINE>final Allele refAllele = alleles.get(0);<NEW_LINE>Utils.nonNull(refAllele, "the reference allele cannot be null");<NEW_LINE>Utils.validateArg(refAllele.isRefere...
? AlleleType.SNP : AlleleType.INDEL;
538,381
public void drawArc(final double x, final double y, final double width, final double height, final double start, final double extent, final boolean open) {<NEW_LINE>final Style styleAtDrawingCall = style.cloneFromMe();<NEW_LINE>addDrawable(new DrawFunction() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<N...
) / (width * zoomFactor));
178,011
public SQLConnection createDatabase(PostgresGlobalState globalState) throws SQLException {<NEW_LINE>synchronized (CitusProvider.class) {<NEW_LINE>// returns connection to coordinator node, test database<NEW_LINE>SQLConnection con = super.createDatabase(globalState);<NEW_LINE>String entryDatabaseName = entryPath.substri...
.getState().commentStatements();
863,318
private void updateUi(Playable media) {<NEW_LINE>if (media == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>((MainActivity) getActivity<MASK><NEW_LINE>txtvTitle.setText(media.getEpisodeTitle());<NEW_LINE>feedName.setText(media.getFeedTitle());<NEW_LINE>onPositionObserverUpdate(new PlaybackPositionEvent(media.getPosition...
()).setPlayerVisible(true);
1,037,669
private void updateCorsConfig(CorsConfiguration config, @Nullable CrossOrigin annotation) {<NEW_LINE>if (annotation == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (String origin : annotation.origins()) {<NEW_LINE>config.addAllowedOrigin(resolveCorsAnnotationValue(origin));<NEW_LINE>}<NEW_LINE>for (String patterns ...
.addExposedHeader(resolveCorsAnnotationValue(header));
1,385,395
public static void main(String[] args) throws IOException {<NEW_LINE>// Use the factory to get Cryptopia exchange API using default settings<NEW_LINE>Exchange cryptopia = ExchangeFactory.INSTANCE.createExchange(CryptopiaExchange.class);<NEW_LINE>// Interested in the public market data feed (no authentication)<NEW_LINE>...
xData = new ArrayList<>();
781,701
public void handle(Channel channel, Command command, String... args) {<NEW_LINE>if (AuthHandler.checkAuth(channel)) {<NEW_LINE>// provider side<NEW_LINE>if (serverRegisterService != null) {<NEW_LINE>channel.writeAndFlush("Provider side: " + JConstants.NEWLINE);<NEW_LINE>channel.writeAndFlush("--------------------------...
writeAndFlush("Consumer side: " + JConstants.NEWLINE);
176,560
public IntervalMatchesIterator matches(String field, LeafReaderContext ctx, int doc) throws IOException {<NEW_LINE>Terms terms = ctx.reader().terms(field);<NEW_LINE>if (terms == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>List<MatchesIterator> subMatches = new ArrayList<>();<NEW_LINE>TermsEnum <MASK><NEW_LINE>Byt...
te = automaton.getTermsEnum(terms);
1,497,642
void checkConcreteInheritedMethod(MethodBinding concreteMethod, MethodBinding[] abstractMethods) {<NEW_LINE><MASK><NEW_LINE>boolean analyseNullAnnotations = this.environment.globalOptions.isAnnotationBasedNullAnalysisEnabled;<NEW_LINE>// TODO (stephan): unclear if this srcMethod is actually needed<NEW_LINE>AbstractMeth...
super.checkConcreteInheritedMethod(concreteMethod, abstractMethods);
1,191,157
final DescribeImageAttributeResult executeDescribeImageAttribute(DescribeImageAttributeRequest describeImageAttributeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeImageAttributeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
507,631
protected static void open(final String[] args, final TerminalPreferences defaults) {<NEW_LINE>// Register preferences<NEW_LINE>PreferencesFactory.set(defaults);<NEW_LINE>final Options options = TerminalOptionsBuilder.options();<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>final CommandLineParser parser = new DefaultParser(...
final Console console = new Console();
226,093
public void marshall(Nodegroup nodegroup, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (nodegroup == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(nodegroup.getNodegroupName(), NODEGROUPNAME_BINDING);<NEW...
nodegroup.getClusterName(), CLUSTERNAME_BINDING);
1,104,961
private void registerProblem(@Nonnull String message, @Nullable List<PackagingElement<?>> pathToPlace, final ProjectStructureProblemType problemType, @Nonnull ArtifactProblemQuickFix... quickFixes) {<NEW_LINE>String parentPath;<NEW_LINE>PackagingElement<?> element;<NEW_LINE>if (pathToPlace != null && !pathToPlace.isEmp...
- 1)).getPathString();
1,523,864
public void write(CompoundTag compound, boolean clientPacket) {<NEW_LINE>if (!clientPacket) {<NEW_LINE>compound.put("Inventory", inventory.serializeNBT());<NEW_LINE>if (state == State.RUNNING) {<NEW_LINE>compound.putBoolean("Running", true);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>// Gui information<NEW_LINE>compound.putFloat("...
compound.putFloat("PaperProgress", bookPrintingProgress);
22,022
public void run() {<NEW_LINE>try {<NEW_LINE>String newDoc = newDocInput;<NEW_LINE>int origLen = doc.getLength();<NEW_LINE>String origDoc = doc.getText(0, origLen);<NEW_LINE>int prefixInd = 0;<NEW_LINE>if (prefixMark != null) {<NEW_LINE>prefixInd = origDoc.indexOf(prefixMark);<NEW_LINE>if (prefixInd > 0) {<NEW_LINE>orig...
remove(prefixInd, origLen - prefixInd);
1,036,597
private static boolean compare(Object[] a, Object[] b) {<NEW_LINE>if (a == b) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>int len = Math.min(<MASK><NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>if (a[i] != b[i]) {<NEW_LINE>if (a[i] == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (a[i].equals(b[i])) {<NEW_L...
a.length, b.length);
897,258
public void writeValue(JSONWriter jsonWriter, T object) {<NEW_LINE>Object value = getFieldValue(object);<NEW_LINE>if (value == null) {<NEW_LINE>jsonWriter.writeNull();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Class<?> valueClass = value.getClass();<NEW_LINE>ObjectWriter valueWriter;<NEW_LINE>if (initValueClass == null) {<N...
jsonWriter.setPath(name, value);
1,370,795
public Credentials unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>Credentials credentials = new Credentials();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 2;<NEW_LINE>whil...
int xmlEvent = context.nextEvent();
217,268
protected Map<String, String> extractExternalSystemParameters(@NonNull final ExternalSystemParentConfig externalSystemParentConfig) {<NEW_LINE>final ExternalSystemShopware6Config shopware6Config = ExternalSystemShopware6Config.cast(externalSystemParentConfig.getChildConfig());<NEW_LINE>final Map<String, String> paramet...
, invokeShopwareService.getConfigMappings(shopware6Config));
1,252,836
public void partitionUpdate(PartitionUpdateParam partParam) {<NEW_LINE>PartInitNeighborAliasTableParam param = (PartInitNeighborAliasTableParam) partParam;<NEW_LINE>ServerMatrix matrix = psContext.getMatrixStorageManager().getMatrix(partParam.getMatrixId());<NEW_LINE>RowBasedPartition part = (RowBasedPartition) matrix....
NeighborsAliasTableElement element = entry.getValue();
305,762
final GetAssessmentReportResult executeGetAssessmentReport(GetAssessmentReportRequest getAssessmentReportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getAssessmentReportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,719,591
public void load(Map props) throws IllegalArgumentException {<NEW_LINE>// NOI18N<NEW_LINE>setMainClass(getProperty<MASK><NEW_LINE>// NOI18N<NEW_LINE>setMainClassPath(getProperty(props, PROP_CLASS_PATH, ""));<NEW_LINE>// NOI18N<NEW_LINE>setMainArgs(getProperty(props, PROP_ARGS, ""));<NEW_LINE>// NOI18N<NEW_LINE>setJVMAr...
(props, PROP_CLASS_NAME, ""));
816,437
private void updateControls() {<NEW_LINE>if (totalPages == 0) {<NEW_LINE>pagePrevButton.setEnabled(false);<NEW_LINE>pageNextButton.setEnabled(false);<NEW_LINE>goToPageField.setEnabled(false);<NEW_LINE>pageNumLabel.setText("");<NEW_LINE>imagesRangeLabel.setText("");<NEW_LINE>thumbnailSizeComboBox.setEnabled(false);<NEW_...
sortLabel.setText(DataResultViewerThumbnail_sortLabel_text());
457,852
public void onActivityCreated(Bundle savedInstanceState) {<NEW_LINE>super.onActivityCreated(savedInstanceState);<NEW_LINE>shareButton.setOnClickListener(new View.OnClickListener() {<NEW_LINE><NEW_LINE>public void onClick(View v) {<NEW_LINE>openInvite();<NEW_LINE>}<NEW_LINE>});<NEW_LINE>setListAdapter(mAdapter);<NEW_LIN...
getListView().addFooterView(footerView);
1,433,406
private void downloadFile(Request req) {<NEW_LINE>String url = req.parameters().get(0).asString();<NEW_LINE>File downloadDir = new File(UrlDownloadRpcServer.downloadDir, urlToDirName(url));<NEW_LINE>try {<NEW_LINE>URL website = new URL(url);<NEW_LINE>HttpURLConnection connection = (HttpURLConnection) website.openConnec...
downloadFile(req, connection, downloadDir);
1,341,354
public static void main(final String[] args) throws Exception {<NEW_LINE>// Preload classes that cause a deadlock between the ServiceLoader and the DFSClient when<NEW_LINE>// using the VFSClassLoader with jars in HDFS.<NEW_LINE>ClassLoader loader = getClassLoader();<NEW_LINE>Class<?> confClass = null;<NEW_LINE>try {<NE...
getClassLoader().loadClass("org.apache.hadoop.conf.Configuration");
147,747
public static TableColumn create(final Table table, int swt, String name, final int col_tot, final int col_idx, final boolean isNum, int width, final ViewWithTable viewWithTable) {<NEW_LINE>final TableColumn c = new TableColumn(table, swt);<NEW_LINE>c.setText(name);<NEW_LINE>c.setWidth(width);<NEW_LINE>c.addListener(SW...
sort_num(items, col_idx, col_tot);
129,433
public void uploadChunk(String blockContext, long blockOffset, byte[] chunkData, long chunkOffset, boolean isAsync, final RequestProgressHandler progressHandler, final RequestCompleteHandler completeHandler) {<NEW_LINE>requestInfo.requestType = UploadRequestInfo.RequestTypeBput;<NEW_LINE>requestInfo.fileOffset = blockO...
header.put("Authorization", token);
193,010
public PiecewisePolynomialResult interpolate(final double[] xValues, final double[] yValues) {<NEW_LINE>ArgChecker.notNull(xValues, "xValues");<NEW_LINE><MASK><NEW_LINE>ArgChecker.isTrue(xValues.length == yValues.length, "(xValues length = yValues length) should be true");<NEW_LINE>ArgChecker.isTrue(xValues.length > 1,...
ArgChecker.notNull(yValues, "yValues");
1,414,162
public RelatedEntitiesResult findRelatedEntities(@Nullable final String sourceType, @Nonnull final Filter sourceEntityFilter, @Nullable final String destinationType, @Nonnull final Filter destinationEntityFilter, @Nonnull final List<String> relationshipTypes, @Nonnull final RelationshipFilter relationshipFilter, final ...
getSourceAsMap().get("relationshipType");
1,166,847
private CToolchain.Builder createBaseArmeabiToolchain(boolean thumb, String gccVersion, String stackProtectorFlag, CppConfiguration.Tool... excludedTools) {<NEW_LINE>String toolchainName = "arm-linux-androideabi-" + gccVersion;<NEW_LINE>String targetPlatform = "arm-linux-androideabi";<NEW_LINE>CToolchain.Builder toolch...
"-marm").addCompilerFlag("-fno-omit-frame-pointer"));
138,497
public static ByteBuffer fromByteArray(byte[] array, int offset, int length) {<NEW_LINE>ByteBuffer byteBuffer = new ByteBuffer();<NEW_LINE>if (isAllZeroes(array, offset, length)) {<NEW_LINE>// Special case: for all zeroes, it's definitely not an ObjectInputStream, because it has a<NEW_LINE>// non-zero mandatory magic. ...
ByteArrayInputStream(array, offset, length);
582,828
public boolean visit(SQLShowCreateViewStatement x) {<NEW_LINE>this.sqlNode = SqlShowCreateView.create(SqlParserPos.ZERO, convertToSqlNode(x.getName()));<NEW_LINE>SQLName tableSource = x.getName();<NEW_LINE>if (tableSource instanceof SQLPropertyExpr) {<NEW_LINE>SQLPropertyExpr propertyExpr = (SQLPropertyExpr) tableSourc...
getSimpleName(), PrivilegePoint.SHOW_VIEW);
10,388
private static ThinLevel convertLevel(QueryLevel ql, ThinQuery tq) {<NEW_LINE>List<ThinMember> inclusions = convertMembers(ql.getInclusions(), tq);<NEW_LINE>List<ThinMember> exclusions = convertMembers(<MASK><NEW_LINE>ThinMember rangeStart = convertMember(ql.getRangeStart(), tq);<NEW_LINE>ThinMember rangeEnd = convertM...
ql.getExclusions(), tq);
854,757
public static Collection<Device> parse(String output) throws IOException {<NEW_LINE>BufferedReader r = new BufferedReader(new StringReader(output));<NEW_LINE>// NOI18N<NEW_LINE>Pattern pattern = Pattern.compile(" *([\\w]*): (.*)");<NEW_LINE>ArrayList<Device> result <MASK><NEW_LINE>// ignore first line<NEW_LINE>String l...
= new ArrayList<Device>();
46,041
private void displayToast(View v, CharSequence message) {<NEW_LINE>int xOffset = 0;<NEW_LINE>int yOffset = 0;<NEW_LINE>Rect gvr = new Rect();<NEW_LINE>// View parent = (View) v.getParent();<NEW_LINE>// int parentHeight = parent.getHeight();<NEW_LINE>if (v.getGlobalVisibleRect(gvr)) {<NEW_LINE><MASK><NEW_LINE>int halfWi...
View root = v.getRootView();
880,776
private void convertPicture(Row row, T obj, Integer index, Field field) {<NEW_LINE>byte[] pictureData;<NEW_LINE>if (isXSSFSheet) {<NEW_LINE>XSSFPicture xssfPicture = xssfPicturesMap.get(row.getRowNum() + "_" + index);<NEW_LINE>if (xssfPicture == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>pictureData = xssfPicture.get...
obj, new ByteArrayInputStream(pictureData));
1,807,625
private void salvaArquivo() {<NEW_LINE>if (podeSalvar) {<NEW_LINE>try {<NEW_LINE>final <MASK><NEW_LINE>if (documento.getFile() != null) {<NEW_LINE>String texto = documento.getText(0, documento.getLength());<NEW_LINE>texto = inserirInformacoesPortugolStudio(texto);<NEW_LINE>PortugolStudio.getInstancia().salvarComoRecent...
PortugolDocumento documento = editor.getPortugolDocumento();
501,949
public void contributeToMenu(IMenuManager manager) {<NEW_LINE>if (!isNestedEditor()) {<NEW_LINE>try {<NEW_LINE>super.contributeToMenu(manager);<NEW_LINE>} catch (Exception e) {<NEW_LINE>log.debug("Error contributing base SQL actions", e);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (!isNestedEditor()) {<NEW_LINE>IWorkbenchWindow...
(window, SQLEditorCommands.CMD_SQL_QUERY_PREV));
1,562,015
public void unsubscribeDownloadShare(Long shareId, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'shareId' is set<NEW_LINE>if (shareId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'shareId' when calling u...
localVarAccept, localVarContentType, localVarAuthNames, null);
232,344
public static DescribeInstancesResponse unmarshall(DescribeInstancesResponse describeInstancesResponse, UnmarshallerContext context) {<NEW_LINE>describeInstancesResponse.setRequestId(context.stringValue("DescribeInstancesResponse.RequestId"));<NEW_LINE>describeInstancesResponse.setTotalCount(context.integerValue("Descr...
("DescribeInstancesResponse.Instances[" + i + "].PrivateIpAddress"));
7,188
private boolean loadLegacyThreadStore(final JsonNode rootNode) {<NEW_LINE>var threadStoreNode = rootNode.get("threadStore");<NEW_LINE>if (threadStoreNode != null && !threadStoreNode.isNull()) {<NEW_LINE>var threadStore = jsonProcessor.convertValue(threadStoreNode, LegacyJsonThreadStore.class);<NEW_LINE>// Migrate threa...
groupInfo).messageExpirationTime = thread.messageExpirationTime;
73,728
public static Direction rotateFacingTowardsDir(Direction f, Direction dir) {<NEW_LINE>if (dir == Direction.NORTH)<NEW_LINE>return f;<NEW_LINE>else if (dir == Direction.SOUTH && f.getAxis() != Axis.Y)<NEW_LINE>return f.getClockWise().getClockWise();<NEW_LINE>else if (dir == Direction.WEST && f.getAxis() != Axis.Y)<NEW_L...
Axis.X).getOpposite();
1,699,486
private static void testEquals() {<NEW_LINE>// equals<NEW_LINE>assertTrue(B.equals(B));<NEW_LINE>assertTrue(B.equals(new Byte((byte) 1)));<NEW_LINE>assertTrue(D.equals(D));<NEW_LINE>assertTrue(D.equals(new Double(1.0)));<NEW_LINE>assertTrue<MASK><NEW_LINE>assertTrue(F.equals(new Float(1.0f)));<NEW_LINE>assertTrue(I.equ...
(F.equals(F));
607,507
protected void fillValues(int index) {<NEW_LINE>if (index <= this.size) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(this.elementType.getTag()) {<NEW_LINE>case TypeTags.STRING_TAG:<NEW_LINE>Arrays.fill(bStringValues, <MASK><NEW_LINE>return;<NEW_LINE>case TypeTags.INT_TAG:<NEW_LINE>case TypeTags.SIGNED32_INT_TAG:<NEW_L...
size, index, RuntimeConstants.STRING_EMPTY_VALUE);
351,406
private int processBlock192or256(byte[] in, int inOff, byte[] out, int outOff) {<NEW_LINE>int[] state = new int[4];<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>state[i] = bytes2int(in, inOff + (i * 4)) ^ kw[i];<NEW_LINE>}<NEW_LINE>camelliaF2(state, subkey, 0);<NEW_LINE>camelliaF2(state, subkey, 4);<NEW_LINE><MASK><...
camelliaF2(state, subkey, 8);
617,582
public UpdateDimensionResult updateDimension(UpdateDimensionRequest updateDimensionRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDimensionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMet...
new JsonResponseHandler<UpdateDimensionResult>(unmarshaller);
1,099,412
public GenericsType visitTypeArgument(final TypeArgumentContext ctx) {<NEW_LINE>if (asBoolean(ctx.QUESTION())) {<NEW_LINE>ClassNode baseType = configureAST(ClassHelper.makeWithoutCaching(QUESTION_STR<MASK><NEW_LINE>baseType.addAnnotations(this.visitAnnotationsOpt(ctx.annotationsOpt()));<NEW_LINE>if (!asBoolean(ctx.type...
), ctx.QUESTION());
387,607
protected void convertAndSend(Message<?> message) throws IOException, URISyntaxException {<NEW_LINE>DatagramSocket datagramSocket;<NEW_LINE>if (this.socketExpression != null) {<NEW_LINE>datagramSocket = this.socketExpression.getValue(this.<MASK><NEW_LINE>} else {<NEW_LINE>datagramSocket = getSocket();<NEW_LINE>}<NEW_LI...
evaluationContext, message, DatagramSocket.class);
1,229,764
public void updateRef(List<Long> list) {<NEW_LINE>mCompositeSubscription.add(Observable.just(list).doOnNext(new Action1<List<Long>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void call(List<Long> list) {<NEW_LINE>updateInTx(list);<NEW_LINE>mTagSet.clear();<NEW_LINE>mTagSet.addAll(list);<NEW_LINE>}<NEW_LINE>}).sub...
.EVENT_TAG_UPDATE, mComicId, list));
364,284
public SwaggerInventory process(Swagger swagger) {<NEW_LINE>Iterator var2;<NEW_LINE>if (swagger.getTags() != null) {<NEW_LINE>var2 = swagger<MASK><NEW_LINE>while (var2.hasNext()) {<NEW_LINE>Tag key = (Tag) var2.next();<NEW_LINE>this.process(key);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>String key1;<NEW_LINE>if (swagger.getPaths...
.getTags().iterator();
1,453,617
public static SearchTableResponse unmarshall(SearchTableResponse searchTableResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchTableResponse.setRequestId(_ctx.stringValue("SearchTableResponse.RequestId"));<NEW_LINE>searchTableResponse.setTotalCount(_ctx.longValue("SearchTableResponse.TotalCount"));<NEW_LINE>searchTab...
= new ArrayList<String>();
1,497,932
private static void boundaryPm(Cookie cookie, Node[] leaves, Node[] list0, Node[] list1, int numSymbols, int index, boolean last) {<NEW_LINE>int lastCount = list1[index].count;<NEW_LINE>if (index == 0 && lastCount >= numSymbols) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>list0[index] = list1[index];<NEW_LINE>if (index == 0...
numSymbols, index - 1, false);
628,987
public void scrutinize(TermedStatementEntityEdit update) {<NEW_LINE>Map<PropertyIdValue, Set<Value>> <MASK><NEW_LINE>for (Statement statement : update.getAddedStatements()) {<NEW_LINE>PropertyIdValue pid = statement.getClaim().getMainSnak().getPropertyId();<NEW_LINE>Value value = null;<NEW_LINE>Snak mainSnak = statemen...
propertyIdValueValueMap = new HashMap<>();
357,610
public CFG clone(CloneInfo info, IRScope clonedScope) {<NEW_LINE>CFG newCFG = new CFG(clonedScope);<NEW_LINE>Map<BasicBlock, BasicBlock> cloneBBMap = new HashMap<>();<NEW_LINE>// Part 1: Clone all BBs and stuff in map so graph building in 2 will have all BBs available.<NEW_LINE>for (BasicBlock bb : getBasicBlocks()) {<...
newDestination, edge.getType());
894,607
public void outAFile(AFile node) {<NEW_LINE>List implementsList = null;<NEW_LINE>String superClass = null;<NEW_LINE>String classType = null;<NEW_LINE>if (node.getImplementsClause() != null) {<NEW_LINE>implementsList = (List) mProductions.removeLast();<NEW_LINE>}<NEW_LINE>if (node.getExtendsClause() != null) {<NEW_LINE>...
(String) mProductions.removeLast();
283,512
private FieldType toBeamRowType(DataType type) {<NEW_LINE>DataType.Name n = type.getName();<NEW_LINE>switch(n) {<NEW_LINE>case TIMESTAMP:<NEW_LINE>case DATE:<NEW_LINE>return FieldType.DATETIME;<NEW_LINE>case BLOB:<NEW_LINE>return FieldType.BYTES;<NEW_LINE>case BOOLEAN:<NEW_LINE>return FieldType.BOOLEAN;<NEW_LINE>case D...
getTypeArguments().get(0);
1,785,381
public boolean doInsert(DB db, Object threadstate) {<NEW_LINE>int keynum = keysequence.nextValue().intValue();<NEW_LINE>String dbkey = CoreWorkload.<MASK><NEW_LINE>HashMap<String, ByteIterator> values = buildValues(dbkey);<NEW_LINE>Status status;<NEW_LINE>int numOfRetries = 0;<NEW_LINE>do {<NEW_LINE>status = db.insert(...
buildKeyName(keynum, zeropadding, orderedinserts);
256,484
public void start(BootstrapContext bootstrapContext) throws ResourceAdapterInternalException {<NEW_LINE>try {<NEW_LINE>this.bootstrapContext = bootstrapContext;<NEW_LINE>appServerSupportsHintsContext = bootstrapContext.isContextSupported(HintsContext.class);<NEW_LINE>appServerSupportsSecurityContext = bootstrapContext....
(XADataSource) dsClass.newInstance();
894,158
protected List<ForeignNote> foreignNotes() {<NEW_LINE>open();<NEW_LINE>// process all lines<NEW_LINE>// Number of element is reader's size<NEW_LINE>List<String> log = new ArrayList<>();<NEW_LINE>// Number of element is reader's size<NEW_LINE>List<ForeignNote> notes = new ArrayList<>();<NEW_LINE>int lineNum = 0;<NEW_LIN...
.string.csv_importer_error_exception, e));
740,910
public void run(Result result, SchedulerEvent event) {<NEW_LINE>resume();<NEW_LINE>CompilationInfo info = CompilationInfo.get(result);<NEW_LINE>if (info == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Document doc = result.getSnapshot().getSource().getDocument(false);<NEW_LINE>if (doc == null) {<NEW_LINE>Logger.getLogg...
result.getSnapshot(), errors);
1,335,044
public List<EventTypePartitionView> listPartitions(@PathVariable("name") final String eventTypeName, @RequestParam(value = "cursors", required = false) final String cursorsString) throws NoSuchEventTypeException {<NEW_LINE>LOG.<MASK><NEW_LINE>final EventType eventType = eventTypeCache.getEventType(eventTypeName);<NEW_L...
trace("Get partitions endpoint for event-type '{}' with cursorList `{}` is called", eventTypeName, cursorsString);
383,287
public void print(PO document, int printFormatId, int windowNo, boolean askPrint) {<NEW_LINE>JFrame window = Env.getWindow(windowNo);<NEW_LINE>if (ADialog.ask(windowNo, window, "PrintDocument", document.getDisplayValue())) {<NEW_LINE>window.setCursor(Cursor<MASK><NEW_LINE>// see also ProcessDialog.printShipments/Invoic...
.getPredefinedCursor(Cursor.WAIT_CURSOR));
1,119,960
public final Global_stmtContext global_stmt() throws RecognitionException {<NEW_LINE>Global_stmtContext _localctx = new Global_stmtContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 74, RULE_global_stmt);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>int start = string...
_la = _input.LA(1);
372,347
public void paintIcon(Component c, Graphics g, int x, int y) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g.create();<NEW_LINE>try {<NEW_LINE>int width = 12;<NEW_LINE>int height = 12;<NEW_LINE>int xOffset = x + getIconWidth() / 2 - width / 2;<NEW_LINE>int yOffset = y + getIconHeight() / 2 - height / 2;<NEW_LINE>g2.setRender...
g2.setColor(getBorderColor());
1,747,101
private void migrateFieldValue(Helper helper) {<NEW_LINE>final String type = helper.parameters().getString("type");<NEW_LINE>final String field = helper.parameters().getString("field");<NEW_LINE>final String seriesId = helper.newSeriesId();<NEW_LINE>final AggregationSeries.Builder aggregationSeriesBuilder = Aggregation...
aggregationSeriesBuilder.function(AggregationFunction.MAX);
1,011,357
private SelectOrSinkPlan toPlan(RelNode rel, List<String> fieldNames, OptimizerContext context, boolean isInfiniteRows) {<NEW_LINE>logger.fine("Before logical opt:\n" + RelOptUtil.toString(rel));<NEW_LINE>LogicalRel <MASK><NEW_LINE>logger.fine("After logical opt:\n" + RelOptUtil.toString(logicalRel));<NEW_LINE>Physical...
logicalRel = optimizeLogical(context, rel);
42,713
public void render(OWLOntology o, PrintWriter _w) throws OWLRendererException {<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>w.write("\\documentclass{article}\n");<NEW_LINE>w.write("\\usepackage{breqn}\n");<NEW_LINE>w.write("\\parskip 0pt\n");<NEW_LINE>w.write("\\parindent 0pt\n");<NEW_LINE>w.write("\\oddsidemargin 0cm\n");...
LatexWriter w = new LatexWriter(_w);
1,454,956
private boolean addAction(ActionInfo actInfo, SearchResponse response, Map<Object, String> duplicateCheck) {<NEW_LINE>KeyStroke stroke = null;<NEW_LINE>// obtaining shortcut, first try Keymaps<NEW_LINE>Set<String> shortcuts = actInfo.getShortcuts();<NEW_LINE>if (shortcuts != null && shortcuts.size() > 0) {<NEW_LINE>Str...
action.getValue(Action.ACCELERATOR_KEY);
98,152
public Boolean visitAssignment(AssignmentTree node, Void p) {<NEW_LINE>int alignIndent = cs.alignMultilineAssignment() ? col : -1;<NEW_LINE>boolean b = scan(<MASK><NEW_LINE>if (b || getCurrentPath().getParentPath().getLeaf().getKind() != Tree.Kind.ANNOTATION) {<NEW_LINE>boolean spaceAroundAssignOps = insideAnnotation ?...
node.getVariable(), p);
1,531,368
private void findNextSuitableRange() {<NEW_LINE>myNextAttributes = null;<NEW_LINE>while (myIterator.hasNext()) {<NEW_LINE>RangeHighlighterEx highlighter = myIterator.next();<NEW_LINE>if (highlighter == null || !highlighter.isValid() || !isInterestedInLayer(highlighter.getLayer())) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LI...
highlighter.getStartOffset(), myStartOffset);
797,031
private void fillManifest(Attributes main) throws IOException {<NEW_LINE>JarFile jarFile;<NEW_LINE>Manifest manifest;<NEW_LINE>StringBuffer fromBuffer = new StringBuffer();<NEW_LINE>StringBuffer toBuffer = new StringBuffer();<NEW_LINE>String from;<NEW_LINE>String to;<NEW_LINE>String name;<NEW_LINE>// String classes;<NE...
to = attributes.getValue("To-File");
929,799
public static Certificate readCertificate(InputStream stream) throws FileNotFoundException, CertificateException, IOException {<NEW_LINE>CertificateFactory certFactory = CertificateFactory.getInstance("X.509");<NEW_LINE>Collection<? extends java.security.cert.Certificate> certs = certFactory.generateCertificates(stream...
x509.Certificate.getInstance(asn1Cert);
1,409,161
private boolean isClass(String result) {<NEW_LINE>if (result == null || result.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// if it's the class we're compiling, then of course it's a class<NEW_LINE>if (result.equals(targetName)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>InputStream is = null;<NEW_LINE>try...
is = parentClassLoader.getResourceAsStream(resourceName);