idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
785,504
public static String[] parse(String languageTag) {<NEW_LINE>String[] parts = new String[partsLength];<NEW_LINE>String x = pattern.toString();<NEW_LINE>Pattern.compile(languageRE_1);<NEW_LINE>Matcher m = pattern.matcher(languageTag);<NEW_LINE>if (!m.find()) {<NEW_LINE>m = patternPrivateuse.matcher(languageTag);<NEW_LINE...
int gc = m.groupCount();
739,273
public static ListObjectsResponse unmarshall(ListObjectsResponse listObjectsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listObjectsResponse.setRequestId(_ctx.stringValue("ListObjectsResponse.RequestId"));<NEW_LINE>listObjectsResponse.setBucketName(_ctx.stringValue("ListObjectsResponse.BucketName"));<NEW_LINE>listObj...
= new ArrayList<String>();
195,675
public Map<String, List<String>> resolve(HttpFacade httpFacade) {<NEW_LINE>Map<String, List<String>> <MASK><NEW_LINE>for (Entry<String, Object> configEntry : config.entrySet()) {<NEW_LINE>String claimName = configEntry.getKey();<NEW_LINE>Object claimValue = configEntry.getValue();<NEW_LINE>List<String> values = new Arr...
claims = new HashMap<>();
604,026
public static int[][] factorialDesign(int[] totalItemsInNodes) {<NEW_LINE>int totalPaths = 1;<NEW_LINE>int i;<NEW_LINE>for (i = 0; i < totalItemsInNodes.length; i++) {<NEW_LINE>if (totalItemsInNodes[i] > 0)<NEW_LINE>totalPaths *= totalItemsInNodes[i];<NEW_LINE>}<NEW_LINE>int[][] pathInds = new int[totalPaths][totalItem...
], 0, currentPath.length);
132,876
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B...
IntegratedMeshLayer gironaMeshLayer = new IntegratedMeshLayer("https://tiles.arcgis.com/tiles/z2tnIkrLQ2BRzr6P/arcgis/rest/services/Girona_Spain/SceneServer");
277,027
public byte[] compressItemInfo(List<? extends IServerItemEntry> items) throws IOException {<NEW_LINE>CompressedDataOutput cdo = new CompressedDataOutput();<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>cdo.writeVariable(count);<NEW_LINE>for (IServerItemEntry entry : items) {<NEW_LINE>assert entry.getDbID() >= COMPLEX_DBINDEX...
int count = items.size();
1,407,643
public static String generate(Map<SourcePosition, SourcePosition> javaSourcePositionByOutputSourcePosition, String javaScriptImplementationFileContents, NativeJavaScriptFile nativeJavaScriptFile, String j2clUnitFilePath, Problems problems) {<NEW_LINE>Map<String, List<String>> sourceLinesByFileName = buildSourceLinesByF...
>(javaSourcePositionByOutputSourcePosition.entrySet());
1,011,450
public void doAsJar(ActionEvent ae) {<NEW_LINE>EditorPane codePane = getCurrentCodePane();<NEW_LINE>String orgName = codePane.getCurrentShortFilename();<NEW_LINE>log(lvl, "doAsJar requested: %s", orgName);<NEW_LINE>if (codePane.isDirty()) {<NEW_LINE>Sikulix.popError("Please save script before!", "Export as jar");<NEW_L...
options = new ArrayList<>();
1,843,560
private CurrentCost toCurrentCost(final I_M_Cost record) {<NEW_LINE>final I_C_UOM uom = uomsRepo.getById(record.getC_UOM_ID());<NEW_LINE>final CostElementId costElementId = CostElementId.ofRepoId(record.getM_CostElement_ID());<NEW_LINE>final CostElement <MASK><NEW_LINE>final AcctSchemaId acctSchemaId = AcctSchemaId.ofR...
costElement = costElementRepo.getById(costElementId);
916,093
protected void drawGuiContainerBackgroundLayer(float partialTick, int mouseX, int mouseY) {<NEW_LINE>GlStateManager.color(<MASK><NEW_LINE>bindGuiTexture();<NEW_LINE>int sx = (width - xSize) / 2;<NEW_LINE>int sy = (height - ySize) / 2;<NEW_LINE>drawTexturedModalRect(sx, sy, 0, 0, this.xSize, this.ySize);<NEW_LINE>target...
1.0F, 1.0F, 1.0F, 1.0F);
433,179
public void visit(NodeTraversal unused, Node n, Node parent) {<NEW_LINE>if (!n.isCall() || !n.getFirstChild().isName()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Node callTarget = n.getFirstChild();<NEW_LINE>String callName = callTarget.getString();<NEW_LINE>if (startMarkerName.equals(callName)) {<NEW_LINE>if (!parent.isE...
, UNMATCHED_END_MARKER, startMarkerName, endMarkerName));
170,261
public void prune() {<NEW_LINE>// helper classes that may help another helper class implement an abstract library method<NEW_LINE>// must be retained<NEW_LINE>// for example if helper class A extends helper class B, and A also implements a library<NEW_LINE>// interface L, then B needs to be retained so that it can be u...
ClassRef reference = i.next();
817,868
private int validateBackupLog(DurableDataLogFactory dataLogFactory, int containerId, DebugDurableDataLogWrapper originalDataLog, boolean createNewBackupLog) throws Exception {<NEW_LINE>// Validate that the Original and Backup logs have the same number of operations.<NEW_LINE>int operationsReadFromOriginalLog = readDura...
val validationBackupDataLogReadOnly = validationBackupDataLog.asReadOnly();
1,732,945
public final GitProgressSupport scanStatus(final VCSContext context) {<NEW_LINE>Set<File> repositories = GitUtils.getRepositoryRoots(context);<NEW_LINE>if (repositories.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>} else {<NEW_LINE>final Map<File, Collection<File>> toRefresh = new HashMap<File, Collection<File><MASK><NE...
>(repositories.size());
1,052,212
public // setting columns = NULL when they do not exist in the updated value<NEW_LINE>Onboarding updateOnboarding(Onboarding onboarding) {<NEW_LINE>long startTimeMillis = System.currentTimeMillis();<NEW_LINE>LOGGER.info("OnboardingServiceDAL::updateOnboarding");<NEW_LINE>try {<NEW_LINE>// Created and Modified are owned...
AttributeValue> item = toAttributeValueMap(onboarding);
1,167,728
private void initPredicateSecurityOptimizationsInternal(ODatabaseSession session) {<NEW_LINE>Map<String, Map<String, Boolean>> result = new HashMap<>();<NEW_LINE>Collection<OClass> allClasses = session.getMetadata().getSchema().getClasses();<NEW_LINE>if (session.getClass("ORole") == null) {<NEW_LINE>return;<NEW_LINE>}<...
roleMap = result.get(roleName);
1,243,275
public int compare(FileDescriptor e1, FileDescriptor e2) {<NEW_LINE>// If prefered prefer prefered<NEW_LINE>if (usePreferred) {<NEW_LINE>FileProviderAccessor fpa = FileProviderAccessor.getInstance();<NEW_LINE>boolean isE1Curr = fpa.isFromCurrentProject(e1);<NEW_LINE>boolean isE2Curr = fpa.isFromCurrentProject(e2);<NEW_...
e2.getOwnerPath(), caseSensitive);
173,394
protected Transferable createTransferable(JComponent c) {<NEW_LINE>if (!(c instanceof XDebuggerFramesList)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>XDebuggerFramesList list = (XDebuggerFramesList) c;<NEW_LINE>// noinspection deprecation<NEW_LINE>Object[] values = list.getSelectedValues();<NEW_LINE>if (values == nul...
), plainBuf.toString());
1,064,838
public static // and make one single printable string<NEW_LINE>String dbgWashCmds(String[] cmd) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>boolean prevHeader = false;<NEW_LINE>for (String argument : cmd) {<NEW_LINE>if (isNotBlank(argument)) {<NEW_LINE>if (sb.length() > 0) {<NEW_LINE>sb.append(" ");<NEW...
(modifiedArgument).append("\"");
242,138
public boolean isValidAnnotationType(BType type) {<NEW_LINE>if (type == symTable.semanticError) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>switch(type.tag) {<NEW_LINE>case TypeTags.MAP:<NEW_LINE>BType constraintType = ((BMapType) type).constraint;<NEW_LINE>return isCloneableTypeTypeSkippingObjectType(constraintType);...
(BTypeReferenceType) type).referredType);
1,802,537
public OutlierResult run(Relation<O> rel) {<NEW_LINE>final DBIDs ids = rel.getDBIDs();<NEW_LINE>KNNSearcher<DBIDRef> knnq = new QueryBuilder<>(rel, distance).precomputed().kNNByDBID(kmax + 1);<NEW_LINE>// Initialize store for densities<NEW_LINE>WritableDataStore<double[]> densities = DataStoreUtil.makeStorage(ids, Data...
makeDoubleStorage(ids, DataStoreFactory.HINT_DB);
447,793
// ----- private methods -----<NEW_LINE>private String sendInitialSystemInfoData() {<NEW_LINE>String id = null;<NEW_LINE>try {<NEW_LINE>final URL url = new URL("https://sysinfo.structr.com/structr/rest/SystemInfoData");<NEW_LINE>final Map<String, Object> data = new LinkedHashMap<>();<NEW_LINE>final URLConnection con = ...
"version", VersionHelper.getFullVersionInfo());
1,192,197
public Pair<List<? extends VpnUser>, Integer> searchForVpnUsers(ListVpnUsersCmd cmd) {<NEW_LINE>String username = cmd.getUsername();<NEW_LINE>Long id = cmd.getId();<NEW_LINE>String keyword = cmd.getKeyword();<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>List<Long> permittedAccounts = ne...
), cmd.getPageSizeVal());
1,411,453
final GetClusterCredentialsResult executeGetClusterCredentials(GetClusterCredentialsRequest getClusterCredentialsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getClusterCredentialsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
87,846
public void testCopy() throws Exception {<NEW_LINE>CountDownLatch continueLatch = new CountDownLatch(1);<NEW_LINE>BlockableSupplier<Long> blocker = new BlockableSupplier<Long<MASK><NEW_LINE>CompletableFuture<Long> cf0 = defaultManagedExecutor.supplyAsync(blocker);<NEW_LINE>if (!AT_LEAST_JAVA_9)<NEW_LINE>try {<NEW_LINE>...
>(100l, null, continueLatch);
474,177
static void computeRotation(DMatrix3 t, DMatrix3x3 R) {<NEW_LINE>for (int i = 1; i >= 0; i--) {<NEW_LINE>double a = t.get(i, 0);<NEW_LINE>double b = t.<MASK><NEW_LINE>// compute the rotator such that [a,b] = [||X||,0]<NEW_LINE>double r = Math.sqrt(a * a + b * b);<NEW_LINE>double q11 = a / r;<NEW_LINE>double q21 = b / r...
get(i + 1, 0);
617,359
public void initialize() {<NEW_LINE>setLayout(<MASK><NEW_LINE>Label ipPrototypeLabel = new Label(this, SWT.NONE);<NEW_LINE>ipPrototypeText = new Text(this, SWT.BORDER);<NEW_LINE>Label ipMaskLabel = new Label(this, SWT.NONE);<NEW_LINE>ipMaskCombo = new Combo(this, SWT.NONE);<NEW_LINE>Label hostnameLabel = new Label(this...
new GridLayout(5, false));
936,008
private static Set<String> matchGroup(String input) {<NEW_LINE>int openingIndex = indexOfEither(input, OPEN_GROUP, OPEN_GROUP_2);<NEW_LINE>if (openingIndex == -1) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int closingIndex = indexOfEither(input, CLOSE_GROUP, CLOSE_GROUP_2);<NEW_LINE>if (closingIndex < openingIndex) {<...
extracted.next() + after);
1,434,812
public void onSuccess(List<Barcode> barcodes) {<NEW_LINE>// Task completed successfully<NEW_LINE>// [START_EXCLUDE]<NEW_LINE>// [START get_barcodes]<NEW_LINE>for (Barcode barcode : barcodes) {<NEW_LINE><MASK><NEW_LINE>Point[] corners = barcode.getCornerPoints();<NEW_LINE>String rawValue = barcode.getRawValue();<NEW_LIN...
Rect bounds = barcode.getBoundingBox();
455,059
public void scrollToNextParentComment() {<NEW_LINE>RecyclerView chooseYourView = mCommentsRecyclerView == null ? mRecyclerView : mCommentsRecyclerView;<NEW_LINE>if (mCommentsAdapter != null && chooseYourView != null) {<NEW_LINE>int currentPosition = ((LinearLayoutManagerBugFixed) chooseYourView.getLayoutManager()).find...
isSingleCommentThreadMode ? nextParentPosition + 1 : nextParentPosition);
1,191,569
final ListCodeReviewsResult executeListCodeReviews(ListCodeReviewsRequest listCodeReviewsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCodeReviewsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
326,389
public static ClientMessage encodeRequest(com.hazelcast.cp.internal.RaftGroupId groupId, java.lang.String name, com.hazelcast.internal.serialization.Data function, int returnValueType) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(false);<NEW_LINE>clientMe...
DataCodec.encode(clientMessage, function);
1,561,752
private boolean checkChild(ASTNode parent, ASTNode previous, ASTNode child) {<NEW_LINE>if ((parent.getFlags() & (ASTNode.RECOVERED | ASTNode.MALFORMED)) != 0 || (child.getFlags() & (ASTNode.RECOVERED | ASTNode.MALFORMED)) != 0)<NEW_LINE>return false;<NEW_LINE>if (DOMASTUtil.isRecordDeclarationSupported(child.getAST()) ...
= childStart + child.getLength();
665,149
public Response rejectFileAccess(@PathParam("id") String fileToRequestAccessId, @PathParam("identifier") String identifier, @Context HttpHeaders headers) {<NEW_LINE>DataverseRequest dataverseRequest;<NEW_LINE>DataFile dataFile;<NEW_LINE>try {<NEW_LINE>dataFile = findDataFileOrDie(fileToRequestAccessId);<NEW_LINE>} catc...
.getStringFromBundle("access.api.requestAccess.fileNotFound", args));
430,841
private static Vector apply(CompLongDoubleVector v1, LongLongVector v2, Binary op) {<NEW_LINE>LongDoubleVector[] parts = v1.getPartitions();<NEW_LINE>Storage[] resParts = StorageSwitch.applyComp(v1, v2, op);<NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].getS...
= new LongDoubleVector[parts.length];
407,582
public void onLoadFinished(Loader<Cursor> loader, Cursor cursor) {<NEW_LINE>Bundle extras = cursor.getExtras();<NEW_LINE>int totalSize = extras.getInt(ContentResolver.EXTRA_SIZE);<NEW_LINE>mAdapter.setTotalSize(totalSize);<NEW_LINE>int beforeCount = mAdapter.getFetchedItemCount();<NEW_LINE>while (cursor.moveToNext()) {...
imageDocument = new ImageAdapter.ImageDocument();
468,675
public static ErlangExpressionType calculateFunctionType(@NotNull ErlangFunction function) {<NEW_LINE>ErlangSpecification spec = function.findSpecification();<NEW_LINE>if (spec == null)<NEW_LINE>return UNKNOWN;<NEW_LINE>ErlangFunTypeSigs <MASK><NEW_LINE>if (signature == null)<NEW_LINE>return UNKNOWN;<NEW_LINE>for (Erla...
signature = ErlangPsiImplUtil.getSignature(spec);
870,955
final DisableFastLaunchResult executeDisableFastLaunch(DisableFastLaunchRequest disableFastLaunchRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disableFastLaunchRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
(super.beforeMarshalling(disableFastLaunchRequest));
589,544
public void run() throws IOException {<NEW_LINE>Log.info("Generating classification model from %s", input);<NEW_LINE>FastTextClassifierTrainer trainer = FastTextClassifierTrainer.builder().epochCount(epochCount).learningRate(learningRate).lossType(lossType).quantizationCutOff(cutOff).minWordCount(minWordCount).threadCo...
Log.info("Quantization dictionary cut-off value = %d", cutOff);
1,464,319
public static long parseMemory(String memory) {<NEW_LINE>boolean seenDot = false;<NEW_LINE>boolean seenE = false;<NEW_LINE>boolean seenm = false;<NEW_LINE>long factor = 1L;<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < memory.length(); i++) {<NEW_LINE>char ch = memory.charAt(i);<NEW_LINE>if (ch == 'e') {<NEW_LINE>seenE ...
int end = memory.length();
1,120,346
public Object call() throws Exception {<NEW_LINE>if (KerberosUtils.runRefreshKerberosLogin()) {<NEW_LINE>logger.info("Ran runRefreshKerberosLogin command successfully.");<NEW_LINE>kinitFailCount = 0;<NEW_LINE>logger.info("Scheduling Kerberos ticket refresh thread with interval {} ms", KerberosUtils.getKerberosRefreshIn...
logger.info("runRefreshKerberosLogin failed for {} time(s).", kinitFailCount);
1,452,289
private static final <E, D> EntryList of(Iterable<E> elements, StaticArrayEntry.GetColVal<E, D> getter, StaticArrayEntry.DataHandler<D> datahandler) {<NEW_LINE>Preconditions.checkArgument(elements != null && getter != null && datahandler != null);<NEW_LINE>int num = 0;<NEW_LINE>int datalen = 0;<NEW_LINE>EntryMetaData[]...
StaticArrayEntryList(data, limitAndValuePos, metadataschema);
414,886
final DeleteVoiceConnectorEmergencyCallingConfigurationResult executeDeleteVoiceConnectorEmergencyCallingConfiguration(DeleteVoiceConnectorEmergencyCallingConfigurationRequest deleteVoiceConnectorEmergencyCallingConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteVoiceConne...
endClientExecution(awsRequestMetrics, request, response);
1,819,214
public static InputStream tryGzipInput(InputStream in) throws IOException {<NEW_LINE>if (in instanceof GZIPInputStream) {<NEW_LINE>// We do not expect double-gzip input.<NEW_LINE>return in;<NEW_LINE>}<NEW_LINE>// try autodetecting gzip compression.<NEW_LINE>if (!in.markSupported()) {<NEW_LINE>PushbackInputStream pb = n...
? new GZIPInputStream(pb) : pb;
842,856
public void addField(final VEditor fieldEditor) {<NEW_LINE>final GridField gridField = fieldEditor.getField();<NEW_LINE>//<NEW_LINE>// Special case: Field which is an Included tab placeholder<NEW_LINE>final int AD_Tab_ID = gridField.getIncluded_Tab_ID();<NEW_LINE>if (AD_Tab_ID > 0) {<NEW_LINE>// Create the included tab...
includedGC = includedTabList.get(AD_Tab_ID);
1,440,567
private void dialogSortType() {<NEW_LINE>LocalSortType sortType = Global.getLocalSortType();<NEW_LINE>MaterialAlertDialogBuilder builder = new MaterialAlertDialogBuilder(this);<NEW_LINE>LinearLayout view = (LinearLayout) LayoutInflater.from(this).inflate(R.layout.local_sort_type, toolbar, false);<NEW_LINE>ChipGroup gro...
string.sort_select_type).show();
1,145,690
public static ListActivatedAlertsResponse unmarshall(ListActivatedAlertsResponse listActivatedAlertsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listActivatedAlertsResponse.setRequestId(_ctx.stringValue("ListActivatedAlertsResponse.RequestId"));<NEW_LINE>Page page = new Page();<NEW_LINE>page.setPageSize(_ctx.integerV...
("ListActivatedAlertsResponse.Page.Alerts[" + i + "].Status"));
1,151
private float findEdgeSpan(View v, int axis, int fp, int p0, int p1) {<NEW_LINE>int len = p1 - p0;<NEW_LINE>if (len <= 1) {<NEW_LINE>// further fragmentation is not possible<NEW_LINE>return v.getMinimumSpan(axis);<NEW_LINE>} else {<NEW_LINE><MASK><NEW_LINE>boolean startEdge = mid > fp;<NEW_LINE>// initial view is break...
int mid = p0 + len / 2;
415,906
public static String replace(String text, String searchString, String replacement, int max) {<NEW_LINE>if (isEmpty(text) || isEmpty(searchString) || replacement == null || max == 0) {<NEW_LINE>return text;<NEW_LINE>}<NEW_LINE>int start = 0;<NEW_LINE>int end = text.indexOf(searchString, start);<NEW_LINE>if (end == -1) {...
text.length() + increase);
355,804
public void open(Map<String, Object> map, SinkContext sinkContext) throws Exception {<NEW_LINE>try {<NEW_LINE>val <MASK><NEW_LINE>configV2.validate();<NEW_LINE>sink = new InfluxDBSink();<NEW_LINE>} catch (Exception e) {<NEW_LINE>try {<NEW_LINE>val configV1 = org.apache.pulsar.io.influxdb.v1.InfluxDBSinkConfig.load(map)...
configV2 = InfluxDBSinkConfig.load(map);
295,385
protected final Size computeCaptureSize(@NonNull Mode mode) {<NEW_LINE>// We want to pass stuff into the REF_VIEW reference, not the sensor one.<NEW_LINE>// This is already managed by CameraOptions, so we just flip again at the end.<NEW_LINE>boolean flip = getAngles().flip(Reference.SENSOR, Reference.VIEW);<NEW_LINE>Si...
throw new RuntimeException("SizeSelectors must not return Sizes other than " + "those in the input list.");
1,684,623
private static boolean usesGenerics(TypeMirror type) {<NEW_LINE>return type.accept(new SimpleTypeVisitor8<Boolean, Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Boolean defaultAction(TypeMirror e, Void aVoid) {<NEW_LINE>throw new IllegalArgumentException(String.format("Unexpected type kind: %s", e.getKind()...
usesGenerics(t.getComponentType());
529,608
public void checkForCommonExceptionTypes(IOException ex) throws DownloadFailedException {<NEW_LINE>Throwable cause = ex;<NEW_LINE>while (cause != null) {<NEW_LINE>if (cause instanceof java.net.UnknownHostException) {<NEW_LINE>final String msg = format("Unable to resolve domain '%s'", cause.getMessage());<NEW_LINE>LOGGE...
keystore = System.getProperty("javax.net.ssl.keyStore");
432,832
public static String utf_escape(String s) {<NEW_LINE>StringBuffer sbuf = new StringBuffer();<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>int ch = s.charAt(i);<NEW_LINE>if (ch == ' ') {<NEW_LINE>// space : map to '+'<NEW_LINE>sbuf.append('+');<NEW_LINE>} else if ('A' <= ch && ch <= 'Z') {<NEW_LINE>...
int len = s.length();
151,579
/*<NEW_LINE>* Processors are wrapped and therefore we can apply dialect precedence<NEW_LINE>*/<NEW_LINE>private int compareWrapped(final ProcessorConfigurationUtils.AbstractProcessorWrapper o1w, final ProcessorConfigurationUtils.AbstractProcessorWrapper o2w) {<NEW_LINE>final int dialectPrecedenceComp = compareInts(o1w....
, System.identityHashCode(o2));
168,315
public static ListApiMsgRecordsResponse unmarshall(ListApiMsgRecordsResponse listApiMsgRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listApiMsgRecordsResponse.setRequestId(_ctx.stringValue("ListApiMsgRecordsResponse.RequestId"));<NEW_LINE>listApiMsgRecordsResponse.setPageIndex(_ctx.integerValue("ListApiMsgRecor...
(_ctx.stringValue("ListApiMsgRecordsResponse.ErrorMessage"));
566,616
public void start(AdsMediaSource adsMediaSource, DataSpec adTagDataSpec, Object adsId, AdViewProvider adViewProvider, EventListener eventListener) {<NEW_LINE>checkState(wasSetPlayerCalled, "Set player using adsLoader.setPlayer before preparing the player.");<NEW_LINE>if (adTagLoaderByAdsMediaSource.isEmpty()) {<NEW_LIN...
(adsMediaSource, checkNotNull(adTagLoader));
1,068,249
public static String formatDateTime(Date time, TimeZone tz) {<NEW_LINE>Calendar cal = Calendar.getInstance(tz, Locale.ENGLISH);<NEW_LINE>cal.setTime(time);<NEW_LINE>int offset = cal.get(Calendar.ZONE_OFFSET);<NEW_LINE>offset += cal.get(Calendar.DST_OFFSET);<NEW_LINE>// DateFormat is operating on GMT so adjust for time ...
(Integer.toString(offsetHour));
699,647
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>// Call super to obtain child measurements.<NEW_LINE>super.onMeasure(widthMeasureSpec, heightMeasureSpec);<NEW_LINE>// `match_parent` specified, address issue where parent is not calculated correctly.<NEW_LINE>if (getLayoutParams().height ...
makeMeasureSpec(height, MeasureSpec.EXACTLY);
211,495
public CloseableImage decode(final EncodedImage encodedImage, int length, QualityInfo qualityInfo, ImageDecodeOptions options) {<NEW_LINE>InputStream is = encodedImage.getInputStream();<NEW_LINE>try {<NEW_LINE>ByteArrayOutputStream out = new ByteArrayOutputStream();<NEW_LINE>GifMetadataDecoder decoder = GifMetadataDeco...
MovieDrawer drawer = new MovieDrawer(movie);
390,712
final RegisterMailDomainResult executeRegisterMailDomain(RegisterMailDomainRequest registerMailDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerMailDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
429,073
static Path processDataBindings(Path processedResourceOutputDirectory, Path inputResourcesDir, Path dataBindingInfoOut, String packagePath, boolean shouldZipDataBindingInfo, boolean useDataBindingAndroidX) throws IOException {<NEW_LINE>if (dataBindingInfoOut == null) {<NEW_LINE>return inputResourcesDir;<NEW_LINE>} else...
relativize(inputResourcesDir) : inputResourcesDir));
276,470
public ResponseEntity<Object> listVulnerableAssets(@RequestBody(required = true) Request request) {<NEW_LINE>String assetGroup = request.getAg();<NEW_LINE>if (Strings.isNullOrEmpty(assetGroup)) {<NEW_LINE>return ResponseUtils.buildFailureResponse(new Exception(Constants.ASSET_MANDATORY));<NEW_LINE>}<NEW_LINE>int from =...
> filter = request.getFilter();
739,383
public static TextureAtlasSprite createForConfig(ResourceLocation baseName) {<NEW_LINE>if (baseName.getResourceDomain().startsWith("minecraft")) {<NEW_LINE>// Vanilla sprites never have colourblind variants, so don't bother<NEW_LINE>// This is mostly just a fix for optifine compat as this shouldn't be a problem normall...
int index = INDEX_COLOUR_BLIND.getAsInt();
1,297,725
private void spawnMount() {<NEW_LINE>if (isRiding() || !spawned) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EntityFallenMount mount = null;<NEW_LINE>if (rand.nextFloat() < ZooConfig.fallenKnightChanceMounted.get()) {<NEW_LINE>mount = new EntityFallenMount(world);<NEW_LINE>mount.setLocationAndAngles(posX, posY, posZ, rotati...
getDifficultyForLocation(new BlockPos(mount));
1,607,185
public void run() {<NEW_LINE>ApplicationManager.getApplication().runWriteAction(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>final List<IncludeDuplicate<T>> duplicates = new ArrayList<IncludeDuplicate<T>>();<NEW_LINE>final T first = children.getFirst();<NEW_LINE>fin...
.getSelectionModel().removeSelection();
494,934
public void start() throws Exception {<NEW_LINE>_component.getServers().add(Protocol.HTTP, _config.getManagerPort());<NEW_LINE>_component.getClients().add(Protocol.FILE);<NEW_LINE>_component.getClients().add(Protocol.JAR);<NEW_LINE>Context applicationContext = _component.getContext().createChildContext();<NEW_LINE>LOGG...
class.toString(), _config);
1,526,517
public IHttpResponse send(HttpRequest httpRequest) {<NEW_LINE>// convert request<NEW_LINE>com.azure.core.http.HttpRequest request = new com.azure.core.http.HttpRequest(HttpMethod.valueOf(httpRequest.httpMethod().name()), httpRequest.url());<NEW_LINE>if (httpRequest.headers() != null) {<NEW_LINE>request.setHeaders(new H...
(httpRequest.headers()));
1,630,746
private void addMajorVersionToTerms(Set<String> majorVersions, Map<String, MutableInt> products) {<NEW_LINE>final Map<String, MutableInt> temp = new HashMap<>();<NEW_LINE>products.entrySet().stream().filter(term -> term.getKey() != null).forEach(term -> {<NEW_LINE>majorVersions.stream().filter(version -> version != nul...
term.getKey() + version);
1,678,564
protected void componentShowing() {<NEW_LINE>// NOI18N<NEW_LINE>Log.getLogger().entering("QueryBuilder", "componentShowing");<NEW_LINE>String command = getSqlCommand();<NEW_LINE>if (_queryModel == null)<NEW_LINE>_queryModel = new QueryModel(quoter);<NEW_LINE>Log.getLogger().finest(" * command=" + command);<NEW_LINE>//...
getDefault().notify(d);
1,179,109
public void bindRuntime(Runtime runtime, int pos) {<NEW_LINE>mCurrentRuntime = runtime;<NEW_LINE>mCurrentPosition = pos;<NEW_LINE>if (runtime.versionString != null && Tools.DEVICE_ARCHITECTURE == Architecture.archAsInt(runtime.arch)) {<NEW_LINE>mJavaVersionTextView.setText(mContext.getString(R.string.multirt_java_ver, ...
.name, runtime.javaVersion));
872,610
public static void toJSON(OutputWriter jsonWriter, Stage stage) {<NEW_LINE>jsonWriter.add("name", stage.getName());<NEW_LINE>jsonWriter.add("counter", stage.getCounter());<NEW_LINE>jsonWriter.add(<MASK><NEW_LINE>jsonWriter.add("approved_by", stage.getApprovedBy());<NEW_LINE>jsonWriter.add("scheduled_at", stage.getCreat...
"approval_type", stage.getApprovalType());
1,417,830
private static void writeAndEmptyDataSet(List<String> deviceIds, List<Long> times, List<List<TSDataType>> typesList, List<List<Object>> valuesList, List<List<String>> measurementsList, int retryTime) {<NEW_LINE>try {<NEW_LINE>session.insertAlignedRecords(deviceIds, <MASK><NEW_LINE>} catch (IoTDBConnectionException e) {...
times, measurementsList, typesList, valuesList);
1,753,851
private void handleSetBlobAcl(HttpServletRequest request, HttpServletResponse response, InputStream is, BlobStore blobStore, String containerName, String blobName) throws IOException, S3Exception {<NEW_LINE>BlobAccess access;<NEW_LINE>String cannedAcl = request.getHeader(AwsHttpHeaders.ACL);<NEW_LINE>if (cannedAcl == n...
setBlobAccess(containerName, blobName, access);
513,181
private Object intrate(Object[] result) {<NEW_LINE>Date maturity;<NEW_LINE>Date settlement;<NEW_LINE>double investment;<NEW_LINE>double redemption;<NEW_LINE>long basis = 0;<NEW_LINE>if (result[0] == null || result[1] == null || result[2] == null || result[3] == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<...
MessageManager mm = EngineMessage.get();
1,515,032
final DeleteBotAliasResult executeDeleteBotAlias(DeleteBotAliasRequest deleteBotAliasRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBotAliasRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
(super.beforeMarshalling(deleteBotAliasRequest));
1,028,452
public static ListNodesByOutputResponse unmarshall(ListNodesByOutputResponse listNodesByOutputResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNodesByOutputResponse.setRequestId(_ctx.stringValue("ListNodesByOutputResponse.RequestId"));<NEW_LINE>listNodesByOutputResponse.setSuccess(_ctx.booleanValue("ListNodesByOutput...
= new ArrayList<Node>();
1,757,810
public okhttp3.Call connectPostNamespacedPodProxyWithPathCall(String name, String namespace, String path, String path2, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/pod...
final String[] localVarContentTypes = {};
1,692,371
private JTree buildTree() {<NEW_LINE>JTree tree = new JTree(treeRoot);<NEW_LINE>tree.setLayout(new BorderLayout());<NEW_LINE>tree.setBorder(BorderFactory.createEmptyBorder());<NEW_LINE>tree.setShowsRootHandles(false);<NEW_LINE>tree.setScrollsOnExpand(false);<NEW_LINE>tree.setSelectionModel(null);<NEW_LINE>tree.setCellR...
node = getNodeUnderMouse(tree, event);
466,141
public int readKfIntraModeSub(int miCol, int miRow, int blSz, VPXBooleanDecoder decoder, DecodingContext c) {<NEW_LINE>// Frame based<NEW_LINE>boolean availAbove = miRow > 0;<NEW_LINE>// Tile based<NEW_LINE>boolean availLeft = miCol > c.getMiTileStartCol();<NEW_LINE>int[] aboveIntraModes = c.getAboveModes();<NEW_LINE>i...
leftIntraModes[miRow & 0x7] = mode1;
1,593,981
public void begin(boolean boundaryIsAS) throws IllegalStateException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "begin", new Object[] { boundaryIsAS, this });<NEW_LINE>if (_coord != null) {<NEW_LINE>final IllegalStateException ise = new IllegalStateException("Cannot begin a LocalTransactionContainment. A...
exit(tc, "begin", ise);
1,724,993
final DescribeInstanceTypeOfferingsResult executeDescribeInstanceTypeOfferings(DescribeInstanceTypeOfferingsRequest describeInstanceTypeOfferingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeInstanceTypeOfferingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
endClientExecution(awsRequestMetrics, request, response);
176,869
public Object apply(ActionContext ctx, Object caller, Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>String smtpHost = "localhost";<NEW_LINE>int smtpPort = 25;<NEW_LINE>String smtpUser = null;<NEW_LINE>String smtpPassword = null;<NEW_LINE>boolean smtpUseTLS = true;<NEW_LINE>boolean smtpRequireTLS...
sources[2].toString();
805,298
public static JavacFileManager testFileManager() {<NEW_LINE>JavacFileManager fileManager = FILE_MANAGER.get();<NEW_LINE>// Explicitly set the class path to the ambient runtime's classpath. This is the default<NEW_LINE>// behaviour, but re-doing it for each test avoids issues when tests are executed in different<NEW_LIN...
systemClassPath(), StandardLocation.CLASS_PATH);
626,239
private static boolean matchHeader(HeaderMatcher headerMatcher, @Nullable String value) {<NEW_LINE>if (headerMatcher.present() != null) {<NEW_LINE>return (value == null) == headerMatcher.present().equals(headerMatcher.inverted());<NEW_LINE>}<NEW_LINE>if (value == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boole...
startsWith(headerMatcher.prefix());
1,151,673
public void initialize(Server server, Injector injector) {<NEW_LINE>final ServletContextHandler root = new ServletContextHandler(ServletContextHandler.SESSIONS);<NEW_LINE>root.addServlet(new ServletHolder(new DefaultServlet()), "/*");<NEW_LINE>// Add LimitRequestsFilter as first in the chain if enabled.<NEW_LINE>if (se...
injector.getInstance(AuthenticatorMapper.class);
683,361
public String determineCurrentVersion(CommandTimeoutType cmdType) throws IOException {<NEW_LINE>try (org.eclipse.jgit.lib.Repository repository = getJGitRepository(getDirectoryName())) {<NEW_LINE>Ref head = repository.exactRef(Constants.HEAD);<NEW_LINE>if (head != null && head.getObjectId() != null) {<NEW_LINE>try (Rev...
parseCommit(head.getObjectId());
1,738,356
public static void rotateCW(GrayI16 image) {<NEW_LINE>if (image.width != image.height)<NEW_LINE>throw new IllegalArgumentException("Image must be square");<NEW_LINE>int w = image.height / 2 + image.height % 2;<NEW_LINE>int h = image.height / 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, h, y0->{<NEW_LINE>f...
+ y1 * image.stride + x1;
1,261,268
public static void main(String[] args) {<NEW_LINE>Map<String, BaseCommand> commands = new HashMap<>();<NEW_LINE>commands.put<MASK><NEW_LINE>commands.put("get", new GetCommand());<NEW_LINE>commands.put("readFile", new ReadFileCommand());<NEW_LINE>commands.put("leadershipTransfer", new LeadershipTransferCommand());<NEW_L...
("append", new AppendCommand());
859,748
private void createReaderVar() {<NEW_LINE>// Rewind to where we added the UnionHolder<NEW_LINE>int curPosn = vvSetupBlock.pos();<NEW_LINE>vvSetupBlock.pos(insertPosn);<NEW_LINE>// UnionReader readerx = vvy.getReader();<NEW_LINE>JType readerClass = classGen.getModel()._ref(FieldReader.class);<NEW_LINE>JExpression expr =...
("setPosition").arg(recordIndex);
1,775,599
private static ProguardOutput applyProguard(RuleContext ruleContext, AndroidCommon common, JavaSemantics javaSemantics, Artifact deployJarArtifact, ImmutableList<Artifact> proguardSpecs, Artifact proguardMapping, @Nullable Artifact proguardOutputMap) throws InterruptedException {<NEW_LINE>Artifact proguardOutputJar = r...
ruleContext.getImplicitOutputArtifact(JavaSemantics.JAVA_BINARY_PROGUARD_USAGE);
1,326,314
public void move(Var variable, int delta) {<NEW_LINE>final var index = data.indexOf(variable);<NEW_LINE>if (index < 0)<NEW_LINE>throw new NoSuchElementException(variable.toString());<NEW_LINE>final var bitIndex = names.indexOf(variable.bitName(0));<NEW_LINE>if (bitIndex < 0)<NEW_LINE>throw new NoSuchElementException(va...
.bitName(0)) - bitIndex;
405,780
protected String doIt() throws Exception {<NEW_LINE>AtomicInteger windowAdded = new AtomicInteger(0);<NEW_LINE><MASK><NEW_LINE>getSelectionKeys().stream().filter(windowId -> windowId > 0).filter(windowId -> !isExistsWindow(windowId)).forEach(windowId -> {<NEW_LINE>MWindow window = MWindow.get(getCtx(), windowId);<NEW_L...
AtomicInteger processAdded = new AtomicInteger(0);
531,159
public Pair<ResultSourceInfo, ResultSinkInfo> addResult(ISourceSinkDefinition sinkDefinition, AccessPath sink, Stmt sinkStmt, ISourceSinkDefinition sourceDefinition, AccessPath source, Stmt sourceStmt, Object userData, List<Abstraction> propagationPath) {<NEW_LINE>// Get the statements and the access paths from the abs...
>(propagationPath.size());
1,777,150
// TODO job specific migration config is not supported, migration config will be at cluster level<NEW_LINE>public static IMantisJobMetadata convertMantisJobWriteableToMantisJobMetadata(MantisJobMetadata archJob, LifecycleEventPublisher eventPublisher, boolean isArchived) throws Exception {<NEW_LINE>if (logger.isTraceEn...
logger.trace("DataFormatAdapter:Converting {}", archJob);
1,763,268
public final // /home/matthias/src/netbeans/ide/css.lib/src/org/netbeans/modules/css/lib/Css3.g:937:1: syncToDeclarationsRule :;<NEW_LINE>void syncToDeclarationsRule() throws RecognitionException {<NEW_LINE>// why sync to DOT? - LESS allows class rules nested<NEW_LINE>syncToSet(BitSet.of(IDENT, RBRACE, STAR, DOT));<NEW...
enterRule(getGrammarFileName(), "syncToDeclarationsRule");
1,086,070
public HollowHashIndexResult findMatches(Object... query) {<NEW_LINE>int hashCode = 0;<NEW_LINE>for (int i = 0; i < query.length; i++) {<NEW_LINE>if (query[i] == null)<NEW_LINE>throw new IllegalArgumentException("querying by null unsupported; i=" + i);<NEW_LINE>hashCode ^= HashCodes.hashInt(keyHashCode(query[i], i));<N...
1) & hashState.getMatchHashMask();
1,248,723
public void onBindView(GeoActivity activity, @NonNull Location location, @NonNull ResourceProvider provider, boolean listAnimationEnabled, boolean itemAnimationEnabled, boolean firstCard) {<NEW_LINE>super.onBindView(activity, location, provider, listAnimationEnabled, itemAnimationEnabled);<NEW_LINE>CardView card = (Car...
FirstCardHeaderController(activity, location, themeManager);
363,223
public // permits window.open to reactivate windows in that context.<NEW_LINE>void forceReopenSatellite(final String name, final JavaScriptObject params, boolean activate) {<NEW_LINE>Size preferredSize = null;<NEW_LINE>Point preferredPos = null;<NEW_LINE>for (ActiveSatellite satellite : satellites_) {<NEW_LINE>if (sate...
WindowEx win = satellite.getWindow();
389,380
public OFromItem copy() {<NEW_LINE>OFromItem result = new OFromItem(-1);<NEW_LINE>if (rids != null) {<NEW_LINE>result.rids = rids.stream().map(r -> r.copy()).<MASK><NEW_LINE>}<NEW_LINE>if (inputParams != null) {<NEW_LINE>result.inputParams = inputParams.stream().map(r -> r.copy()).collect(Collectors.toList());<NEW_LINE...
collect(Collectors.toList());