idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,188,534
public Builder mergeFrom(io.kubernetes.client.proto.Meta.LabelSelector other) {<NEW_LINE>if (other == io.kubernetes.client.proto.Meta.LabelSelector.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>internalGetMutableMatchLabels().mergeFrom(other.internalGetMatchLabels());<NEW_LINE>if (matchExpressionsBuilder_ == nul...
matchExpressions_.addAll(other.matchExpressions_);
1,726,530
private void loadExtend() {<NEW_LINE>Iterator<HealthCheckProcessor> processorIt = processors.iterator();<NEW_LINE>Iterator<AbstractHealthChecker> healthCheckerIt = checkers.iterator();<NEW_LINE>Set<String> origin = new HashSet<>();<NEW_LINE>for (HealthCheckType type : HealthCheckType.values()) {<NEW_LINE>origin.add(typ...
HealthCheckProcessor processor = processorIt.next();
417,750
private void unselectedCellView() {<NEW_LINE>int unSelectedColor = mTableView.getUnSelectedColor();<NEW_LINE>// Change background color of the row header which is located on Y Position of the cell<NEW_LINE>// view.<NEW_LINE>AbstractViewHolder rowHeader = (<MASK><NEW_LINE>// If view is null, that means the row view hold...
AbstractViewHolder) mRowHeaderRecyclerView.findViewHolderForAdapterPosition(mSelectedRowPosition);
981,812
public void updatePartitionAssignments(String key, Datastream datastream, HostTargetAssignment targetAssignment, boolean notifyLeader) throws DatastreamException {<NEW_LINE>Validate.notNull(datastream, "null datastream");<NEW_LINE>Validate.notNull(key, "null key for datastream" + datastream);<NEW_LINE>verifyHostname(ta...
ensurePath(path + '/' + currentTime);
278,749
public void actionPerformed(ActionEvent e) {<NEW_LINE>X509Metadata metadata = new X509Metadata("whocares", "whocares");<NEW_LINE>File certificatesConfigFile = new File(folder, X509Utils.CA_CONFIG);<NEW_LINE>FileBasedConfig config = new FileBasedConfig(certificatesConfigFile, FS.detect());<NEW_LINE>NewCertificateConfig ...
parseInt(validityTF.getText());
1,014,697
private void run() {<NEW_LINE>KeybaseEngine engine = context.getNativeModule(KeybaseEngine.class);<NEW_LINE>if (bundleFromNotification != null) {<NEW_LINE>engine.setInitialBundleFromNotification(bundleFromNotification);<NEW_LINE>} else if (uri != null) {<NEW_LINE>String filePath = readFileFromUri(getReactContext(), uri...
args.putString("text", textPayload);
1,246,650
public ValueT put(KeyT key, ValueT value) {<NEW_LINE>val e = new Entry<KeyT, ValueT>(key, value);<NEW_LINE>e.lastAccessTime = this.currentTime.get();<NEW_LINE>Entry<KeyT, ValueT> prevValue;<NEW_LINE>synchronized (this.lock) {<NEW_LINE>prevValue = this.<MASK><NEW_LINE>if (prevValue != null) {<NEW_LINE>// Replacement.<NE...
map.put(key, e);
1,317,987
private void initSchemaPartition() throws Exception {<NEW_LINE>final InstanceLayout instanceLayout = this.service.getInstanceLayout();<NEW_LINE>final File schemaPartitionDirectory = new File(instanceLayout.getPartitionsDirectory(), "schema");<NEW_LINE>if (schemaPartitionDirectory.exists()) {<NEW_LINE>System.out.println...
this.service.setSchemaPartition(schemaPartition);
1,684,349
protected Result deleteVoD(String id) {<NEW_LINE>boolean success = false;<NEW_LINE>String message = "";<NEW_LINE>ApplicationContext appContext = getAppContext();<NEW_LINE>if (appContext != null) {<NEW_LINE>File videoFile = null;<NEW_LINE>VoD voD = getDataStore().getVoD(id);<NEW_LINE>if (voD != null) {<NEW_LINE>try {<NE...
return new Result(success, message);
1,691,573
static void write(Manifest manifest, OutputStream out) throws IOException {<NEW_LINE>CharsetEncoder encoder = Charsets.UTF_8.newEncoder();<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(LINE_LENGTH_LIMIT);<NEW_LINE>String version = manifest.mainAttributes.getValue(Attributes.Name.MANIFEST_VERSION);<NEW_LINE>if (versi...
.keySet().iterator();
696,983
public JsonConfigurationMetadata convert(PersistentEntity persistentEntity) {<NEW_LINE>final JsonConfigurationMetadata jsonConfigurationMetadata = new JsonConfigurationMetadata(persistentEntity.getName(), globalAdministrationConfiguration.isManagedDomainType(persistentEntity.getType()));<NEW_LINE>persistentEntity.doWit...
LIST_VIEW, FORM_VIEW, SHOW_VIEW, QUICK_VIEW);
790,608
public int[][] highFive(int[][] items) {<NEW_LINE>TreeMap<Integer, PriorityQueue<Integer>> treeMap = new TreeMap<>();<NEW_LINE>for (int[] studentToScores : items) {<NEW_LINE>if (treeMap.containsKey(studentToScores[0])) {<NEW_LINE>PriorityQueue<Integer> maxHeap = treeMap.get(studentToScores[0]);<NEW_LINE>maxHeap.offer(s...
(studentToScores[0], maxHeap);
1,683,661
public static BechAddressParams bchBechDecode(String bech) throws Exception {<NEW_LINE>byte[<MASK><NEW_LINE>for (byte b : buffer) {<NEW_LINE>if (b < 0x21 || b > 0x7e) {<NEW_LINE>throw new Exception("bech32 characters out of range");<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (!bech.equals(bech.toLowerCase(Locale.ROOT)) && !bech...
] buffer = bech.getBytes();
1,699,066
public static boolean drawImage(GC gc, Image image, Point srcStart, Rectangle dstRect, Rectangle clipping, int hOffset, int vOffset, boolean clearArea) {<NEW_LINE>Rectangle srcRect;<NEW_LINE>Point dstAdj;<NEW_LINE>if (clipping == null) {<NEW_LINE>dstAdj = new Point(0, 0);<NEW_LINE>srcRect = new Rectangle(srcStart.x, sr...
dstRect.width, dstRect.height);
164,696
public void writeCustomNBT(CompoundTag nbt, boolean descPacket) {<NEW_LINE>super.writeCustomNBT(nbt, descPacket);<NEW_LINE>nbt.putInt("energyStorage", energyStorage);<NEW_LINE>nbt.putBoolean("redstoneControlInverted", redstoneControlInverted);<NEW_LINE>nbt.putInt("facing", facing.ordinal());<NEW_LINE>nbt.putFloat("rotY...
, cc.getZ() });
386,507
public static void horizontal(GrayU16 src, GrayF32 dst) {<NEW_LINE>if (src.width < dst.width)<NEW_LINE>throw new IllegalArgumentException("src width must be >= dst width");<NEW_LINE>if (src.height != dst.height)<NEW_LINE>throw new IllegalArgumentException("src height must equal dst height");<NEW_LINE>float scale = src....
startWeight + middle + end) / scale;
1,639,731
// Earth annoying his friends <3 nothing to see here<NEW_LINE>@Inject(method = "getWindowTitle", at = @At("RETURN"), cancellable = true)<NEW_LINE>private void modifyWindowTitle(CallbackInfoReturnable<String> ci) {<NEW_LINE>String playerName = MinecraftClient.getInstance().getSession()<MASK><NEW_LINE>if ("Earthcomputer"...
.getProfile().getName();
1,662,741
public RFuture<Boolean> putAllAsync(K key, Iterable<? extends V> values) {<NEW_LINE>List<Object> params <MASK><NEW_LINE>ByteBuf keyState = encodeMapKey(key);<NEW_LINE>params.add(keyState);<NEW_LINE>String keyHash = hash(keyState);<NEW_LINE>params.add(keyHash);<NEW_LINE>for (Object value : values) {<NEW_LINE>ByteBuf val...
= new ArrayList<Object>();
1,125,886
public boolean action(Request request, Response response) {<NEW_LINE>if (request.getNettyRequest() instanceof FullHttpRequest) {<NEW_LINE>InputCreateGroup inputCreateGroup = getRequestBody(request.getNettyRequest(), InputCreateGroup.class);<NEW_LINE>if (inputCreateGroup.isValide()) {<NEW_LINE>sendApiMessage(response, i...
ByteBuf byteBuf = Unpooled.buffer();
1,211,686
private static void doExperiment(int numberOfExperiments, int initialArraySize, Map<Integer, Comparable[]> allInputArrays) {<NEW_LINE>StdOut.printf("%13s %16s %38s %52s\n", <MASK><NEW_LINE>int arraySize = initialArraySize;<NEW_LINE>for (int i = 0; i < numberOfExperiments; i++) {<NEW_LINE>Comparable[] originalArray = al...
"Array Size | ", "QuickSort 3-Way |", "QuickSort with fast 3-way partitioning | ", "QuickSort w/ fast 3-way partitioning + Tukey Ninther");
1,674,551
private boolean processFileNotify(String id, EventAction action) {<NEW_LINE>MagicEntity <MASK><NEW_LINE>if (entity == null) {<NEW_LINE>// create<NEW_LINE>this.readAll();<NEW_LINE>entity = fileCache.get(id);<NEW_LINE>}<NEW_LINE>if (entity != null) {<NEW_LINE>Group group = groupCache.get(entity.getGroupId());<NEW_LINE>if...
entity = fileCache.get(id);
880,044
public static ListNamespacedConfigMapsResponse unmarshall(ListNamespacedConfigMapsResponse listNamespacedConfigMapsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNamespacedConfigMapsResponse.setRequestId(_ctx.stringValue("ListNamespacedConfigMapsResponse.RequestId"));<NEW_LINE>listNamespacedConfigMapsResponse.setCo...
("ListNamespacedConfigMapsResponse.Data.ConfigMaps[" + i + "].Name"));
25,692
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String registryName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgume...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,732,615
protected WebRtcServiceState handleStartOutgoingCall(@NonNull WebRtcServiceState currentState, @NonNull RemotePeer remotePeer, @NonNull OfferMessage.Type offerType) {<NEW_LINE>Log.i(TAG, "handleStartOutgoingCall():");<NEW_LINE>WebRtcServiceStateBuilder builder = currentState.builder();<NEW_LINE>remotePeer.dialing();<NE...
SignalAudioManager.AudioDevice.EARPIECE, false);
325,951
public Response download(String downloadId) throws DownloadNotFoundException {<NEW_LINE>DownloadBean download;<NEW_LINE>try {<NEW_LINE>download = downloadManager.getDownload(downloadId);<NEW_LINE>if (download == null) {<NEW_LINE>throw new DownloadNotFoundException();<NEW_LINE>}<NEW_LINE>} catch (StorageException e) {<N...
String path = download.getPath();
1,458,146
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>setTheme(<MASK><NEW_LINE>overridePendingTransition(de.cotech.sweetspot.R.anim.fade_in_quick, de.cotech.sweetspot.R.anim.fade_out_quick);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(de.cotech.sweetspot.R.layout.activity_nfc_sweetspot)...
android.R.style.Theme_Translucent_NoTitleBar_Fullscreen);
421,125
private MaterialConfigs knownMaterials(Pipeline pipeline, MaterialRevisions scheduledRevs) {<NEW_LINE>CruiseConfig currentConfig = goConfigService.getCurrentConfig();<NEW_LINE>MaterialConfigs configuredMaterials = new MaterialConfigs();<NEW_LINE>for (MaterialRevision revision : scheduledRevs) {<NEW_LINE>String fingerpr...
.getName()), fingerprint);
930,335
public void handleInsert(InsertionContext context, LookupElement item) {<NEW_LINE>final Editor editor = context.getEditor();<NEW_LINE>final Project project = editor.getProject();<NEW_LINE>if (project != null) {<NEW_LINE>final JSGraphQLEndpointImportDeclaration[] imports = PsiTreeUtil.getChildrenOfType(context.getFile()...
imports[imports.length - 1];
1,084,234
public boolean isValid() {<NEW_LINE>switch(htmlTag) {<NEW_LINE>case A:<NEW_LINE>return (hasAttr(HtmlAttr.NAME) || (hasAttr(HtmlAttr.<MASK><NEW_LINE>case BR:<NEW_LINE>return (!hasContent() && (!hasAttrs() || hasAttr(HtmlAttr.CLEAR)));<NEW_LINE>case FRAME:<NEW_LINE>return (hasAttr(HtmlAttr.SRC) && !hasContent());<NEW_LIN...
HREF) && hasContent()));
727,282
private void allocateContainer(Container container) throws Exception {<NEW_LINE>String containerId = container.getId().toString();<NEW_LINE>LOGGER.logInfo("[%s]: allocateContainer: Try to Allocate Container to Task: Container: %s", containerId, HadoopExts.toString(container));<NEW_LINE>// 0. findTask<NEW_LINE>TaskStatu...
e, "%s[%s]: Failed to Allocate Container to Task, Release Container and Request again", taskLocator, containerId);
226,487
private void updateSummary() {<NEW_LINE>FixDescription curFix = getResult();<NEW_LINE><MASK><NEW_LINE>if (curFix.isSet && curFix.version2Set != null) {<NEW_LINE>part1 = FixVersionConflictPanel_sumPart1_text(getSetText(), curFix.version2Set.toString(), conflictNode.getImpl().getArtifact().getArtifactId());<NEW_LINE>}<NE...
String part1 = "", part2 = "";
1,407,455
@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public final Response findStepById(@Context final HttpServletRequest request, @Context final HttpServletResponse response, @NotNull @PathParam("stepId") final String stepId) {<NEW_LINE>this.webResource.init(nu...
(step)).build();
290,079
protected void parseCreateField(ParseContext context) throws IOException {<NEW_LINE>if (stored == false && hasDocValues == false) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>byte[] value = context.<MASK><NEW_LINE>if (value == null) {<NEW_LINE>if (context.parser().currentToken() == XContentParser.Token.VALUE_NULL) {<NEW_LINE...
parseExternalValue(byte[].class);
1,482,347
public void compileRoutes() {<NEW_LINE>if (routes.isEmpty()) {<NEW_LINE>// nothing to do<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log.debug("Compile routes");<NEW_LINE>Iterator<Route> it = routes.iterator();<NEW_LINE>while (it.hasNext()) {<NEW_LINE>Route route = it.next();<NEW_LINE>// remove route<NEW_LINE>it.remove();<NEW...
get(route.getRequestMethod());
5,545
final GetOnPremisesInstanceResult executeGetOnPremisesInstance(GetOnPremisesInstanceRequest getOnPremisesInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getOnPremisesInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
false), new GetOnPremisesInstanceResultJsonUnmarshaller());
1,069,357
public Sequence execute(StaticContext sctx, QueryContext ctx, Sequence[] args) {<NEW_LINE>final XmlDBNode doc = ((XmlDBNode) args[0]);<NEW_LINE>final NodeReadOnlyTrx rtx = doc.getTrx();<NEW_LINE>final XmlIndexController controller = (XmlIndexController) rtx.getResourceManager().<MASK><NEW_LINE>if (controller == null) {...
getRtxIndexController(rtx.getRevisionNumber());
656,687
private void init() {<NEW_LINE>this.setLayout(new BorderLayout());<NEW_LINE>// HEADER<NEW_LINE>Box boxV = Box.createVerticalBox();<NEW_LINE>// DIALS/HTML+Bars<NEW_LINE>Box boxH = Box.createHorizontalBox();<NEW_LINE>// DIALS<NEW_LINE>Box boxV1 = Box.createVerticalBox();<NEW_LINE>// HTML/Bars<NEW_LINE>Box boxV2 = Box.cre...
createVerticalGlue(), BorderLayout.CENTER);
279,036
public String stringValue(BLink parent) {<NEW_LINE>StringJoiner sj = new StringJoiner(",");<NEW_LINE>for (Map.Entry<K, V> kvEntry : this.entrySet()) {<NEW_LINE>K key = kvEntry.getKey();<NEW_LINE>V value = kvEntry.getValue();<NEW_LINE>if (value == null) {<NEW_LINE>sj.add("\"" + key + "\":null");<NEW_LINE>} else {<NEW_LI...
CycleUtils.Node(this, parent);
444,094
public void endVisit(SQLCaseExpr x) {<NEW_LINE>List<SQLCaseExpr.Item> whenList = x.getItems();<NEW_LINE>ArrayList<Item> args = new ArrayList<>();<NEW_LINE>int nCases, firstExprNum = -1, elseExprNum = -1;<NEW_LINE>for (SQLCaseExpr.Item when : whenList) {<NEW_LINE>args.add(getItem(when.getConditionExpr()));<NEW_LINE>args...
.add(getItem(elseExpr));
669,014
public DimensionValueContribution unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DimensionValueContribution dimensionValueContribution = new DimensionValueContribution();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
class).unmarshall(context));
1,572,505
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String serverName, String virtualNetworkRuleName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and c...
error(new IllegalArgumentException("Parameter virtualNetworkRuleName is required and cannot be null."));
1,711,491
private void processClassReferences(ObjectiveC2_State state) throws Exception {<NEW_LINE>state.monitor.setMessage("Objective-C 2.0 Class References...");<NEW_LINE>MemoryBlock block = state.program.getMemory().getBlock(ObjectiveC2_Constants.OBJC2_CLASS_REFS);<NEW_LINE>if (block == null) {<NEW_LINE>return;<NEW_LINE>}<NEW...
createPointerAndReturnAddressBeingReferenced(state.program, address);
1,545,259
private void checkResources(final String schemaName, final ShardingSphereMetaData shardingSphereMetaData, final ReadwriteSplittingRuleConfiguration currentRuleConfig) throws DistSQLException {<NEW_LINE>Collection<String> requireResources = new LinkedHashSet<>();<NEW_LINE>Collection<String> requireDiscoverableResources ...
String> logicResources = getLogicResources(shardingSphereMetaData);
139,282
public void upload2() throws NoSuchAlgorithmException {<NEW_LINE>// BEGIN: com.azure.storage.blob.specialized.BlockBlobAsyncClient.uploadWithResponse#Flux-long-BlobHttpHeaders-Map-AccessTier-byte-BlobRequestConditions<NEW_LINE>BlobHttpHeaders headers = new BlobHttpHeaders().setContentMd5("data".getBytes(StandardCharset...
.getBytes(StandardCharsets.UTF_8));
788,106
public CreateFirewallResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateFirewallResult createFirewallResult = new CreateFirewallResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
int originalDepth = context.getCurrentDepth();
353,049
public static ImageResult postImage(final Geocache cache, final Image image) {<NEW_LINE>final IConnector connector = ConnectorFactory.getConnector(cache.getGeocode());<NEW_LINE>if (!(connector instanceof SuConnector)) {<NEW_LINE>return new ImageResult(StatusCode.LOGIMAGE_POST_ERROR, "");<NEW_LINE>}<NEW_LINE>final SuCon...
Log.e("SuApi.postLogImage", e);
1,082,482
private void process(OPCPackage xlsxPackage) throws IOException, OpenXML4JException, SAXException {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>Map<Integer, Map<CellAddress, CellAddress>> <MASK><NEW_LINE>StringsCache stringsCache = new StringsCache();<NEW_LINE>try {<NEW_LINE>ReadOnlySharedStringsTabl...
mergeCellIndexMapping = this.processMerge(xlsxPackage);
1,275,392
public List<PreparedFetch> ranges(final Series series, final DateRange range) throws IOException {<NEW_LINE>final List<PreparedFetch> bases = new ArrayList<>();<NEW_LINE>final long start = calculateBaseTimestamp(range.getStart());<NEW_LINE>final long end = calculateBaseTimestamp(range.getEnd());<NEW_LINE>for (long curr...
new MetricsRowKey(series, currentBase));
887,253
private void init(@Nullable AttributeSet attrs) {<NEW_LINE>final TypedArray typedArray;<NEW_LINE>if (attrs != null) {<NEW_LINE>typedArray = getContext().getTheme().obtainStyledAttributes(attrs, R.styleable.ConversationItemFooter, 0, 0);<NEW_LINE>} else {<NEW_LINE>typedArray = null;<NEW_LINE>}<NEW_LINE>@LayoutRes<NEW_LI...
notifyTouchDelegateChanged(getPlaybackSpeedToggleTouchDelegateRect(), playbackSpeedToggleTextView);
56,745
public List<String> checkAssets(IProgress progress, boolean forceUpdate, boolean forceCheck) {<NEW_LINE>if (context.getAppInitializer().isAppVersionChanged()) {<NEW_LINE>copyMissingJSAssets();<NEW_LINE>}<NEW_LINE>String fv = Version.getFullVersion(context);<NEW_LINE>OsmandSettings settings = context.getSettings();<NEW_...
firstInstall || forceUpdate, overwrite, forceCheck);
369,472
private Placeable merge(Placeable data1, Placeable data2) {<NEW_LINE>if (data1 == null) {<NEW_LINE>return data2;<NEW_LINE>}<NEW_LINE>if (data2 == null) {<NEW_LINE>return data1;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>if (data1 instanceof BpmElement) {<NEW_LINE>return data1;<NEW_LINE>}<NEW_LINE>if (data2 instanceof BpmEleme...
assert data1 != null && data2 != null;
1,496,818
void initiateClose(boolean saveState) {<NEW_LINE>log.trace(<MASK><NEW_LINE>MinorCompactionTask mct = null;<NEW_LINE>synchronized (this) {<NEW_LINE>if (isClosed() || isClosing()) {<NEW_LINE>String msg = "Tablet " + getExtent() + " already " + closeState;<NEW_LINE>throw new IllegalStateException(msg);<NEW_LINE>}<NEW_LINE...
"initiateClose(saveState={}) {}", saveState, getExtent());
1,461,629
private Object extractWithPath(ObjectToJsonConverter pConverter, Collection pCollection, Stack<String> pPathParts, boolean pJsonify, String pPathPart, int pLength) throws AttributeNotFoundException {<NEW_LINE>try {<NEW_LINE>int idx = Integer.parseInt(pPathPart);<NEW_LINE>return pConverter.extractObject(getElement(pColl...
ValueFaultHandler faultHandler = pConverter.getValueFaultHandler();
1,485,032
private String loadProjectName() {<NEW_LINE>String appName = null;<NEW_LINE>InputStream in = null;<NEW_LINE>try {<NEW_LINE>in = Thread.currentThread().getContextClassLoader().getResourceAsStream(PROPERTIES_FILE);<NEW_LINE>if (in == null) {<NEW_LINE>in = Cat.class.getResourceAsStream(PROPERTIES_FILE);<NEW_LINE>}<NEW_LIN...
.format("Can't find app.properties in %s", PROPERTIES_FILE));
533,338
final SearchGameSessionsResult executeSearchGameSessions(SearchGameSessionsRequest searchGameSessionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchGameSessionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "GameLift");
1,733,401
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select * from SupportBean(2 = (select count(*) from SupportEventWithLongArray#unique(coll)))";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>sendSBAssertFilter(env, false);<NEW_LINE>env.sendEventBean(new SupportEventWithLongAr...
] { 1, 2 }));
1,456,181
public static <T> PartitionMutableList<T> partitionWhile(ArrayList<T> list, Predicate<? super T> predicate) {<NEW_LINE><MASK><NEW_LINE>if (ArrayListIterate.isOptimizableArrayList(list, size)) {<NEW_LINE>PartitionMutableList<T> result = new PartitionFastList<T>();<NEW_LINE>MutableList<T> selected = result.getSelected();...
int size = list.size();
795,376
public Object schemaGet(String model) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/schema";<NEW_LINE>// query params<NEW_LINE>List<Pair> queryParams = new ArrayList<Pair>();<NEW_LINE>...
MultipartEntityBuilder localVarBuilder = MultipartEntityBuilder.create();
1,301,235
private String toNormalSQL(SQLShowTablesStatement ast) {<NEW_LINE>SQLName database = ast.getDatabase();<NEW_LINE><MASK><NEW_LINE>// for mysql<NEW_LINE>boolean full = ast.isFull();<NEW_LINE>SQLExpr where = ast.getWhere();<NEW_LINE>List<String[]> strings = full ? Arrays.asList(new String[] { "TABLE_NAME", "`Tables_in_" +...
SQLExpr like = ast.getLike();
974,851
private void export(XlsxBorderInfo info) {<NEW_LINE>// if(info.hasBorder())<NEW_LINE>{<NEW_LINE>write("<border");<NEW_LINE>if (info.getDirection() != null) {<NEW_LINE>write(info.getDirection().equals(LineDirectionEnum.TOP_DOWN) ? " diagonalDown=\"1\"" : " diagonalUp=\"1\"");<NEW_LINE>}<NEW_LINE>write(">");<NEW_LINE>exp...
exportBorder(info, XlsxBorderInfo.BOTTOM_BORDER);
1,188,593
public void onBindViewHolder(@NonNull ViewHolder holder, int position) {<NEW_LINE>if (holder instanceof HeaderStatusViewHolder) {<NEW_LINE>HeaderStatusViewHolder viewHolder = (HeaderStatusViewHolder) holder;<NEW_LINE>viewHolder.bindView(this, status, nightMode);<NEW_LINE>} else if (holder instanceof WarningViewHolder) ...
viewHolder.bindView(mapActivity, nightMode);
679,337
public static ListUsersOfRoleResponse unmarshall(ListUsersOfRoleResponse listUsersOfRoleResponse, UnmarshallerContext context) {<NEW_LINE>listUsersOfRoleResponse.setRequestId(context.stringValue("ListUsersOfRoleResponse.RequestId"));<NEW_LINE>listUsersOfRoleResponse.setSuccess(context.booleanValue("ListUsersOfRoleRespo...
("ListUsersOfRoleResponse.Users.List[" + i + "].Detail.DisplayName"));
1,672,529
public Vulnerability updateVulnerability(Vulnerability transientVulnerability, boolean commitIndex) {<NEW_LINE>final Vulnerability vulnerability;<NEW_LINE>if (transientVulnerability.getId() > 0) {<NEW_LINE>vulnerability = getObjectById(Vulnerability.class, transientVulnerability.getId());<NEW_LINE>} else {<NEW_LINE>vul...
setDescription(transientVulnerability.getDescription());
1,354,396
public Label visit(SubqueryWrapperLabel subqueryWrapperLabel) {<NEW_LINE>// Visit all subquery<NEW_LINE>final SubqueryWrapperLabel visited = ((SubqueryWrapperLabel) super.visit(subqueryWrapperLabel)).subqueryAccept(this);<NEW_LINE>final List<RelDataTypeField> fields = new ArrayList<>();<NEW_LINE>final List<Pair<Label, ...
> valuePredicates = inference.allValuePredicate();
1,487,417
// </editor-fold>//GEN-END:initComponents<NEW_LINE>private void targetComboBoxActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_targetComboBoxActionPerformed<NEW_LINE>String selection = (String) targetComboBox.getSelectedItem();<NEW_LINE>if (selection == null) {<NEW_LINE>// Why? Not sure. #4...
= new StringTokenizer(selection, " ,");
496,658
final boolean add(T entry) {<NEW_LINE>T[] a = array;<NEW_LINE>if (a == terminated()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>synchronized (this) {<NEW_LINE>a = array;<NEW_LINE>if (a == terminated()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int idx = pollFree();<NEW_LINE>if (idx < 0) {<NEW_LINE>int n = a.length...
<< 1) : newArray(4);
662,218
// static jobjectArray NativeGetResourceStringArray(JNIEnv* env, jclass /*clazz*/, jlong ptr,<NEW_LINE>// jint resid) {<NEW_LINE>@Implementation(minSdk = P)<NEW_LINE>@Nullable<NEW_LINE>protected static String[] nativeGetResourceStringArray(long ptr, @ArrayRes int resid) {<NEW_LINE>CppAssetManager2 assetmanager = AssetM...
value, selected_config, flags, ref);
875,946
private static boolean canBlinkTo(@Nonnull BlockPos bc, @Nonnull World w, @Nonnull Vec3d start, @Nonnull Vec3d target) {<NEW_LINE>RayTraceResult p = w.rayTraceBlocks(start, target, !TeleportConfig.enableBlinkNonSolidBlocks.get());<NEW_LINE>if (p != null) {<NEW_LINE>if (!TeleportConfig.enableBlinkNonSolidBlocks.get()) {...
getBlockState(p.getBlockPos());
1,379,439
private void checkPfadName() {<NEW_LINE>String pfad = ((JTextComponent) jComboBoxPath.getEditor().<MASK><NEW_LINE>String name = jTextFieldName.getText();<NEW_LINE>String p;<NEW_LINE>if (pfad.endsWith(File.separator)) {<NEW_LINE>p = pfad.substring(0, pfad.length() - 1);<NEW_LINE>} else {<NEW_LINE>p = pfad;<NEW_LINE>}<NE...
getEditorComponent()).getText();
1,392,433
public static ListDeployGroupResponse unmarshall(ListDeployGroupResponse listDeployGroupResponse, UnmarshallerContext _ctx) {<NEW_LINE>listDeployGroupResponse.setRequestId(_ctx.stringValue("ListDeployGroupResponse.RequestId"));<NEW_LINE>listDeployGroupResponse.setCode(_ctx.integerValue("ListDeployGroupResponse.Code"));...
("ListDeployGroupResponse.DeployGroupList[" + i + "].Env"));
1,199,427
public GridBoundsChange performAction(GridManager gridManager, DesignerContext context) {<NEW_LINE>GridInfoProvider gridInfo = gridManager.getGridInfo();<NEW_LINE>boolean gapSupport = gridInfo.hasGaps();<NEW_LINE>int[] originalColumnBounds = gridInfo.getColumnBounds();<NEW_LINE>int[] originalRowBounds = gridInfo.getRow...
] newRowBounds = gridInfo.getRowBounds();
1,727,686
public void marshall(APNSChannelResponse aPNSChannelResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (aPNSChannelResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(aPNSChannelResponse.getAppl...
e.getMessage(), e);
189,910
List<PathMatcher> compilePattern(List<String> patternStrings, final String separator) {<NEW_LINE>if (CollectionUtils.isEmpty(patternStrings)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final List<PathMatcher> pathMatchers = new ArrayList<>(patternStrings.size());<NEW_LINE>for (String patternString : patternStrings) {<...
pattern = Pattern.compile(trimmed);
802,169
public com.amazonaws.services.cloudtrail.model.InvalidEventDataStoreStatusException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cloudtrail.model.InvalidEventDataStoreStatusException invalidEventDataStoreStatusException = new com.amazonaws.services.<MASK><NEW...
cloudtrail.model.InvalidEventDataStoreStatusException(null);
894,181
private void insertTime(final Dialog dialog, final JButton appendButton) {<NEW_LINE>FormattedDate date = getCalendarDate();<NEW_LINE>final String dateAsString = dateFormat.formatObject(date).toString();<NEW_LINE>final Window parentWindow;<NEW_LINE>if (dialog != null) {<NEW_LINE>parentWindow = (Window) dialog.getParent(...
parentWindow = SwingUtilities.getWindowAncestor(appendButton);
810,642
public static List<ScaleMeasurement> importFrom(BufferedReader reader) throws IOException, ParseException {<NEW_LINE>CsvProcessor<ScaleMeasurement> csvProcessor = new CsvProcessor<>(ScaleMeasurement.class).withHeaderValidation(true).withFlexibleOrder(true).withAlwaysTrimInput(true).withAllowPartialLines(true);<NEW_LINE...
csvProcessor.readHeader(reader, null);
727,291
private static // -------------<NEW_LINE>void debugElement(Element e, MyPopup p) {<NEW_LINE>StringBuilder result = new StringBuilder();<NEW_LINE>result.append("<html><body style='font-weight:normal;'>");<NEW_LINE>try {<NEW_LINE>String text = e.getDocument().getText(e.getStartOffset(), e.getEndOffset() - e.getStartOffse...
()).append(")");
1,032,611
private void init() {<NEW_LINE>m_simDevice = SimDevice.create(<MASK><NEW_LINE>if (m_simDevice != null) {<NEW_LINE>m_simPosition = m_simDevice.createDouble("position", SimDevice.Direction.kInput, 0.0);<NEW_LINE>m_simDistancePerRotation = m_simDevice.createDouble("distance_per_rot", SimDevice.Direction.kOutput, 1.0);<NEW...
"DutyCycle:DutyCycleEncoder", m_dutyCycle.getSourceChannel());
964,510
final GetExtensionResult executeGetExtension(GetExtensionRequest getExtensionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getExtensionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetExtension");
800,086
public void marshall(MediaCapturePipeline mediaCapturePipeline, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (mediaCapturePipeline == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(mediaCapturePipeline.get...
mediaCapturePipeline.getSourceArn(), SOURCEARN_BINDING);
528,483
public static void serialize(Source source, Result result, boolean omit_xml_declaration, boolean method_xml, boolean indent) throws Docx4JException {<NEW_LINE>// Xalan <= 2.7.2 can't handle astral characters: https://issues.apache.org/jira/browse/XALANJ-2419<NEW_LINE>// but org.docx4j.org.apache.xalan repackaging is pa...
transform.OutputKeys.METHOD, "xml");
281,367
final CreateSiteResult executeCreateSite(CreateSiteRequest createSiteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSiteRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
invoke(request, responseHandler, executionContext);
1,854,961
private void populateFromPubKeyInfo(SubjectPublicKeyInfo info) {<NEW_LINE>ASN1BitString bits = info.getPublicKeyData();<NEW_LINE>ASN1OctetString key;<NEW_LINE>this.algorithm = "ECGOST3410";<NEW_LINE>try {<NEW_LINE>key = (ASN1OctetString) ASN1Primitive.fromByteArray(bits.getBytes());<NEW_LINE>} catch (IOException ex) {<...
ECCurve curve = spec.getCurve();
876,523
protected void drawBackgroundLayer(float partialTicks) {<NEW_LINE>ICON_GUI.drawAt(mainGui.rootElement);<NEW_LINE>RenderHelper.enableGUIStandardItemLighting();<NEW_LINE>for (int i = 0; i < 9; i++) {<NEW_LINE>ItemStack stack = container.tile.invFilter.getStackInSlot(i);<NEW_LINE>double currentX = mainGui.rootElement.getX...
) currentX, (int) currentY);
498,230
public boolean onTouch(View v, MotionEvent event) {<NEW_LINE>if (getDisplayedDrawable() != null) {<NEW_LINE>int x = (int) event.getX();<NEW_LINE>int y = (int) event.getY();<NEW_LINE>int left = (loc == Location.LEFT) ? 0 : getWidth() - getPaddingRight() - xD.getIntrinsicWidth();<NEW_LINE>int right = (loc == Location.LEF...
l.onTouch(v, event);
1,030,169
public String toXml(int offset) {<NEW_LINE>StringBuilder buffer = new StringBuilder();<NEW_LINE>String mentionType = mType;<NEW_LINE>appendOffset(buffer, offset);<NEW_LINE>buffer.append("<entity_mention ID=\"" + getId() + "\" TYPE =\"" + mentionType + "\" LDCTYPE=\"" + mLdctype + "\">\n");<NEW_LINE>buffer.append(mExten...
(offset + 4) + "\n");
1,278,745
protected void readBitmap() {<NEW_LINE>// (sub)image position & size<NEW_LINE>currentFrame.ix = readShort();<NEW_LINE>currentFrame.iy = readShort();<NEW_LINE>currentFrame.iw = readShort();<NEW_LINE>currentFrame.ih = readShort();<NEW_LINE>int packed = read();<NEW_LINE>// 1 - local color table flag interlace<NEW_LINE>lct...
currentFrame.lct = readColorTable(lctSize);
647,494
private boolean saveFileToExternalStorage() {<NEW_LINE>// build paths<NEW_LINE>mArcGISTempFolderPath = getExternalFilesDir(null) + File.separator + getResources().getString(R.string.pin_blank_orange_folder_name);<NEW_LINE>mPinBlankOrangeFilePath = mArcGISTempFolderPath + File.separator + getResources().getString(R.stri...
), R.drawable.pin_blank_orange);
677,626
protected MetadataFieldRest put(Context context, HttpServletRequest request, String apiCategory, String model, Integer id, JsonNode jsonNode) throws SQLException, AuthorizeException {<NEW_LINE>MetadataFieldRest metadataFieldRest = new Gson().fromJson(jsonNode.toString(), MetadataFieldRest.class);<NEW_LINE>if (isBlank(m...
setScopeNote(metadataFieldRest.getScopeNote());
1,051,665
private void addGraphicsOverlay() {<NEW_LINE>// create the polygon<NEW_LINE>PolygonBuilder polygonGeometry = new PolygonBuilder(SpatialReferences.getWebMercator());<NEW_LINE>polygonGeometry.addPoint(-20e5, 20e5);<NEW_LINE><MASK><NEW_LINE>polygonGeometry.addPoint(20e5, -20e5);<NEW_LINE>polygonGeometry.addPoint(-20e5, -2...
polygonGeometry.addPoint(20e5, 20.e5);
1,777,249
private void generateCreateFieldsForClass(GeneratorContext context, SourceWriter writer, String className) throws IOException {<NEW_LINE>ReflectionDependencyListener reflection = context.getService(ReflectionDependencyListener.class);<NEW_LINE>Set<String> accessibleFields = reflection.getAccessibleFields(className);<NE...
renderSetter(context, writer, field);
1,720,233
final RejectQualificationRequestResult executeRejectQualificationRequest(RejectQualificationRequestRequest rejectQualificationRequestRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(rejectQualificationRequestRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "MTurk");
84,014
public final void changeView(@Nonnull final String typeName, boolean requestFocus) {<NEW_LINE>myCurrentViewType = typeName;<NEW_LINE>final PsiElement element = mySmartPsiElementPointer.getElement();<NEW_LINE>if (element == null || !isApplicableElement(element)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (myContent != nu...
HierarchyNodeDescriptor descriptor = structure.getBaseDescriptor();
814,050
public INDArray tensorAlongDimension(long index, int... dimension) {<NEW_LINE>if (dimension == null || dimension.length == 0)<NEW_LINE>throw new IllegalArgumentException("Invalid input: dimensions not specified (null or length 0)");<NEW_LINE>Preconditions.checkArgument(!this.isEmpty(), "tensorAlongDimension(...) can't ...
"Illegal index " + index + " out of tads " + tads);
229,757
public static void addDataSource(AutoIngestDataSourceProcessor dataSourceProcessor, Path dataSourcePath) throws TestUtilsException {<NEW_LINE>try {<NEW_LINE>if (!dataSourcePath.toFile().exists()) {<NEW_LINE>throw new TestUtilsException("IngestUtils.addDataSource: Data source not found: " + dataSourcePath.toString());<N...
DataSourceProcessorRunner.runDataSourceProcessor(dataSourceProcessor, dataSourcePath);
373,794
public static void equalizeLocal(GrayU16 input, int radius, GrayU16 output, int histogramLength, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>InputSanityCheck.checkReshape(input, output);<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_I32::new);<NEW_LINE>int width = radius * 2 + 1;<NEW_...
radius, histogramLength, output, workspaces);
347,982
private synchronized CompactHashSet<E> lockedExpand(Object[] children) {<NEW_LINE>// Precondition: this is a non-leaf node with non-leaf successors (depth > 2).<NEW_LINE>// Postcondition: memo is completely populated.<NEW_LINE>if (memo != null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>CompactHashSet<E> members = Com...
int size = members.size();
223,950
private boolean estimateMotion() {<NEW_LINE>CameraModel leftCM = cameraModels.get(CAMERA_LEFT);<NEW_LINE>CameraModel rightCM = cameraModels.get(CAMERA_RIGHT);<NEW_LINE>// Perform motion estimation relative to the most recent key frame<NEW_LINE>previousLeft.frame_to_world.invert(world_to_prev);<NEW_LINE>// Put observati...
previousLeft.frame_to_world, currentLeft.frame_to_world);
1,015,303
private boolean createReversals() {<NEW_LINE>// Cancel only Sales<NEW_LINE>if (!isSOTrx()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>log.debug("createReversals");<NEW_LINE>final StringBuilder info = new StringBuilder();<NEW_LINE>// Reverse All *Shipments*<NEW_LINE>info.append("@M_InOut_ID@:");<NEW_LINE>final MInOut[]...
invoice.setDocAction(MInvoice.DOCACTION_None);
108,314
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not val...
Utils.getValueFromIdByName(id, "managedPrivateEndpoints");