idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
422,443
public static String buildAuraHome() {<NEW_LINE>String providedPath = System.getProperty("aura.home");<NEW_LINE>if (providedPath != null) {<NEW_LINE>try {<NEW_LINE>// try to clean up any provided path<NEW_LINE>File canonical = new File(providedPath).getCanonicalFile();<NEW_LINE>if (canonical.exists() && canonical.isDir...
URL url = source.getLocation();
1,288,398
public void rescaleCache(final Projection pProjection, final double pNewZoomLevel, final double pOldZoomLevel, final Rect pViewPort) {<NEW_LINE>if (TileSystem.getInputTileZoomLevel(pNewZoomLevel) == TileSystem.getInputTileZoomLevel(pOldZoomLevel)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final long startMs = System.curre...
ZoomInTileLooper() : new ZoomOutTileLooper();
152,364
private void updateParams(ApplicationMode appMode, boolean nighMode, boolean locationOutdated) {<NEW_LINE><MASK><NEW_LINE>int profileColor = locationOutdated ? ContextCompat.getColor(ctx, ProfileIconColors.getOutdatedLocationColor(nighMode)) : appMode.getProfileColor(nighMode);<NEW_LINE>int locationIconId = appMode.get...
Context ctx = view.getContext();
1,326,054
private void addDependency(List<IvyDependencyDescriptor> result, DependencyDescriptor dependencyDescriptor) {<NEW_LINE>ModuleRevisionId revisionId = dependencyDescriptor.getDependencyRevisionId();<NEW_LINE>ModuleComponentSelector requested = DefaultModuleComponentSelector.newSelector(DefaultModuleIdentifier.newId(revis...
().get(CLASSIFIER));
1,744,384
public static List<AssociatedTriple> imagesToTrifocal(GrayU8 gray01, GrayU8 gray02, GrayU8 gray03, TrifocalTensor model) {<NEW_LINE>// Using SURF features. Robust and fairly fast to compute<NEW_LINE>var configDetector = new ConfigFastHessian();<NEW_LINE>// limit the feature count<NEW_LINE>configDetector.maxFeaturesAll ...
associateThree.detectFeatures(gray01, 0);
237,322
public static void logMethodInvocations(ApplicationConnection c, Collection<MethodInvocation> methodInvocations) {<NEW_LINE>try {<NEW_LINE>getLogger().info("RPC invocations to be sent to the server:");<NEW_LINE>String curId = null;<NEW_LINE>List<MethodInvocation> invocations = new ArrayList<>();<NEW_LINE>for (MethodInv...
Level.SEVERE, "Error logging method invocations", e);
253,574
public void run(FlowTrigger trigger, Map data) {<NEW_LINE>GetInstallPathForDataVolumeDownloadMsg gmsg = originVolumeUuid != null ? new GetInstallPathForTemporaryDataVolumeDownloadMsg<MASK><NEW_LINE>gmsg.setPrimaryStorageUuid(targetPrimaryStorage.getUuid());<NEW_LINE>gmsg.setVolumeUuid(vol.getUuid());<NEW_LINE>gmsg.setB...
(originVolumeUuid) : new GetInstallPathForDataVolumeDownloadMsg();
1,835,511
public Concrete.Expression visitCase(Concrete.CaseExpression expr, Void params) {<NEW_LINE>Set<Referable> eliminatedRefs = new HashSet<>();<NEW_LINE>try (Utils.ContextSaver ignored = new Utils.ContextSaver(myContext)) {<NEW_LINE>for (Concrete.CaseArgument caseArg : expr.getArguments()) {<NEW_LINE>caseArg.expression = c...
.accept(this, null));
1,457,226
public static int adaptToType(MethodVisitor method, Class<?> type) {<NEW_LINE>if (type.isPrimitive()) {<NEW_LINE>if (type.equals(long.class)) {<NEW_LINE>method.visitTypeInsn(CHECKCAST, getInternalName(Long.class));<NEW_LINE>method.visitMethodInsn(INVOKEVIRTUAL, getInternalName(Long.class), "longValue", "()J", false);<N...
), "intValue", "()I", false);
1,840,472
private // }<NEW_LINE>void addSnapshotButton() {<NEW_LINE>Button snapShotButton = new Button(XYGraphMediaFactory.getInstance().getImage("images/camera.gif"));<NEW_LINE>snapShotButton.setToolTip(new Label("Save Snapshot to PNG file"));<NEW_LINE>addButton(snapShotButton);<NEW_LINE>snapShotButton.addActionListener(new Act...
String path = SingleSourceHelper.getImageSavePath();
1,407,879
protected void refresh() {<NEW_LINE>refreshJavaPlatforms();<NEW_LINE>refreshPlatforms();<NEW_LINE>platformValue.setEnabled(getProperties().isStandalone());<NEW_LINE>managePlafsButton.setEnabled(getProperties().isStandalone());<NEW_LINE>reqTokenList.setModel(getProperties().getRequiredTokenListModel());<NEW_LINE>final D...
= getProperties().getWrappedJarsListModel();
87,817
static // / @brief Print the solution.<NEW_LINE>void printSolution(DataModel data, RoutingModel routing, RoutingIndexManager manager, Assignment solution) {<NEW_LINE>// Solution cost.<NEW_LINE>logger.info(<MASK><NEW_LINE>// Inspect solution.<NEW_LINE>long totalDistance = 0;<NEW_LINE>for (int i = 0; i < data.vehicleNumb...
"Objective : " + solution.objectiveValue());
1,695,862
public void actionPerformed(ActionEvent e) {<NEW_LINE>JTextComponent textArea = (JTextComponent) e.getSource();<NEW_LINE>Caret caret = textArea.getCaret();<NEW_LINE>int dot = caret.getDot();<NEW_LINE>EditorPane currentCodePane = SikulixIDE.get().getCurrentCodePane();<NEW_LINE>int lineNumberAtCaret = currentCodePane.get...
caret.getDot() - 1);
130,592
public static String trimIndent(String line, int indentUnitsToRemove, int tabWidth, int indentWidth) {<NEW_LINE>if (tabWidth < 0 || indentWidth < 0 || line == null) {<NEW_LINE>throw new IllegalArgumentException();<NEW_LINE>}<NEW_LINE>if (indentUnitsToRemove <= 0 || indentWidth == 0) {<NEW_LINE>return line;<NEW_LINE>}<N...
c = line.charAt(i);
920,686
public void execute(AdminCommandContext context) {<NEW_LINE>ActionReport report = context.getActionReport();<NEW_LINE>Logger logger = context.getLogger();<NEW_LINE>logger.info(Strings.get("stop.dg", deploymentGroup));<NEW_LINE>// Require that we be a DAS<NEW_LINE>if (!env.isDas()) {<NEW_LINE>String <MASK><NEW_LINE>logg...
msg = Strings.get("cluster.command.notDas");
834,396
public static void addPath(String path) throws MalformedURLException {<NEW_LINE><MASK><NEW_LINE>// Ensure that directory URLs end in "/"<NEW_LINE>if (file.isDirectory() && !path.endsWith("/")) {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>// $NON-NLS-1$<NEW_LINE>file = new File(path + "/");<NEW_LINE>}<NEW_LINE>// See Java bug 449...
File file = new File(path);
1,575,399
private Object readArray() throws IOException {<NEW_LINE>JsonHandlerProvider provider = getHandlerProvider();<NEW_LINE>JsonArrayHandler handler = provider.getArrayHandler();<NEW_LINE>JsonConstant token;<NEW_LINE><MASK><NEW_LINE>int line = getLineNum();<NEW_LINE>int col = getColNum();<NEW_LINE>while ((token = next()) !=...
setHandlerProvider(provider.getArrayEntryHandlerProvider());
229,097
public List<IN> classifyGibbs(List<IN> document, Triple<int[][][], int[], double[][][]> documentDataAndLabels) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException {<NEW_LINE>// log.info("Testing usin...
= new ArrayList<>(document);
519,516
final ListIngestionsResult executeListIngestions(ListIngestionsRequest listIngestionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIngestionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
877,056
protected void activateSpecialAction(Game game, ManaCost unpaidForManaAction) {<NEW_LINE>if (gameInCheckPlayableState(game)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!canRespond()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<UUID, SpecialAction> specialActions = game.getState().getSpecialActions().<MASK><NEW_LINE>if (...
getControlledBy(playerId, unpaidForManaAction != null);
957,040
private Boolean testConnection() throws ResourceException {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (trace && tc.isEntryEnabled())<NEW_LINE>Tr.<MASK><NEW_LINE>try {<NEW_LINE>Boolean result = AccessController.doPrivileged(new PrivilegedExceptionAction<Boolean>() {<NEW_LINE><NEW_L...
entry(this, tc, "testConnection");
1,577,923
static void c_1() throws Exception {<NEW_LINE>BatchOperator<?> train_data = new AkSourceBatchOp().setFilePath(DATA_DIR <MASK><NEW_LINE>BatchOperator<?> test_data = new AkSourceBatchOp().setFilePath(DATA_DIR + TEST_FILE).select(CLAUSE_CREATE_FEATURES);<NEW_LINE>String[] new_features = ArrayUtils.removeElement(train_data...
+ TRAIN_FILE).select(CLAUSE_CREATE_FEATURES);
923,159
private List<Node> provision(NodeList nodeList) {<NEW_LINE>final List<Node> nodes = new ArrayList<>(provisionUntilNoDeficit(nodeList));<NEW_LINE>Map<String, Node> sharedHosts = new HashMap<>(findSharedHosts(nodeList));<NEW_LINE>int minCount = sharedHostFlag.value().getMinCount();<NEW_LINE>int deficit = minCount - share...
collect(Collectors.toList());
552,537
public JsonObject toJson() {<NEW_LINE>JsonObject json = new JsonObject();<NEW_LINE>json.addProperty("createdAt", this.eventSessionEnd.getStartTime());<NEW_LINE>json.addProperty("destroyedAt", this.eventSessionEnd.getTimestamp());<NEW_LINE>json.addProperty("sessionId", this.eventSessionEnd.getSessionId());<NEW_LINE>json...
recordingMode().name());
800,268
public final SelectClauseContext selectClause() throws RecognitionException {<NEW_LINE>SelectClauseContext _localctx = new SelectClauseContext(_ctx, getState());<NEW_LINE><MASK><NEW_LINE>paraphrases.push("select clause");<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>setStat...
enterRule(_localctx, 204, RULE_selectClause);
567,253
public static void main(String[] args) {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.println("Enter the number of points:");<NEW_LINE>int N = sc.nextInt();<NEW_LINE>ArrayList<Point> points = new ArrayList<Point>();<NEW_LINE>System.out.println("Enter the coordinates: X Y");<NEW_LINE>for (int i = 0...
int x = sc.nextInt();
1,538,654
public void connect(Callback callback, Activity activity) {<NEW_LINE>if (!connected) {<NEW_LINE>BluetoothDevice device = getDevice();<NEW_LINE>this.connectCallback = callback;<NEW_LINE>this.connecting = true;<NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {<NEW_LINE>Log.d(BleManager.LOG_TAG, " Is Or Great...
false, this, BluetoothDevice.TRANSPORT_LE);
256,805
public Object readFrom(Input input, Object owner) throws IOException {<NEW_LINE>if (ID_ARRAY_LEN != input.readFieldNumber(this))<NEW_LINE>throw new ProtostuffException("Corrupt input.");<NEW_LINE>final <MASK><NEW_LINE>Object[] array = (Object[]) Array.newInstance(delegate.typeClass(), len);<NEW_LINE>if (input instanceo...
int len = input.readInt32();
1,684,454
static Pair.NonNull<TextRange, LinesCols> translateViaDiff(@Nonnull final DocumentEventImpl event, @Nonnull LinesCols linesCols) {<NEW_LINE>try {<NEW_LINE>int myStartLine = event.translateLineViaDiffStrict(linesCols.myStartLine);<NEW_LINE>Document document = event.getDocument();<NEW_LINE>if (myStartLine < 0 || myStartL...
event.translateLineViaDiffStrict(linesCols.myEndLine);
1,064,321
public BytesReference slice(int from, int length) {<NEW_LINE>FutureObjects.checkFromIndexSize(from, length, this.length);<NEW_LINE>if (length == 0) {<NEW_LINE>return BytesArray.EMPTY;<NEW_LINE>}<NEW_LINE>// for slices we only need to find the start and the end reference<NEW_LINE>// adjust them and pass on the reference...
].slice(inSliceOffset, length);
957,583
public void before(Object target, Object[] args) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.beforeInterceptor(target, args);<NEW_LINE>}<NEW_LINE>final Trace trace = traceContext.currentTraceObject();<NEW_LINE>if (trace == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final InterceptorScopeInvocation invoca...
t.getMessage(), t);
259,262
// todo this doesn't export data for onions that orbot hosts which have authentication (not supported yet...)<NEW_LINE>private String[] createFilesForZippingV3(String relativePath) {<NEW_LINE>final String v3BasePath = getV3BasePath() + "/" + relativePath + "/";<NEW_LINE>final String hostnamePath = v3BasePath + "hostnam...
+ "hs_ed25519_secret_key", pubKeyPath = v3BasePath + "hs_ed25519_public_key";
1,717,747
public Mono<Void> writeWith(final ServerWebExchange exchange, final ShenyuPluginChain chain) {<NEW_LINE>return chain.execute(exchange).then(Mono.defer(() -> {<NEW_LINE>ServerHttpResponse response = exchange.getResponse();<NEW_LINE>ClientResponse clientResponse = exchange.getAttribute(Constants.CLIENT_RESPONSE_ATTR);<NE...
exchange, ShenyuResultEnum.SERVICE_RESULT_ERROR, null);
120,731
private Mono<Response<Void>> deleteWithResponseAsync(String resourceGroupName, String accountName, String creatorName, 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 Illega...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,580,357
public void handleResolvedAddresses(ResolvedAddresses resolvedAddresses) {<NEW_LINE>logger.log(XdsLogLevel.DEBUG, "Received resolution result: {0}", resolvedAddresses);<NEW_LINE>ClusterManagerConfig config = (ClusterManagerConfig) resolvedAddresses.getLoadBalancingPolicyConfig();<NEW_LINE>Map<String, PolicySelection> n...
setLoadBalancingPolicyConfig(childConfig).build();
358,904
public static void main(String[] args) {<NEW_LINE>FlowNetwork flowNetwork = new FlowNetwork(7);<NEW_LINE>// Path 1 from source to target<NEW_LINE>flowNetwork.addEdge(new FlowEdge(0, 1, 5));<NEW_LINE>flowNetwork.addEdge(new FlowEdge(1, 4, 4));<NEW_LINE>flowNetwork.addEdge(new FlowEdge(4, 6, 3));<NEW_LINE>// Path 2 from ...
(0, 2, 8));
508,592
public com.amazonaws.services.mgn.model.ResourceNotFoundException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.mgn.model.ResourceNotFoundException resourceNotFoundException = new com.amazonaws.services.mgn.model.ResourceNotFoundException(null);<NEW_LINE>int o...
class).unmarshall(context));
156,756
public static boolean showAcceptDialog(@Nonnull final Callable<? extends DialogWrapper> dialogFactory) {<NEW_LINE>Application app = ApplicationManager.getApplication();<NEW_LINE>final CountDownLatch proceeded = new CountDownLatch(1);<NEW_LINE>final AtomicBoolean accepted = new AtomicBoolean();<NEW_LINE>final AtomicRefe...
showDialog, ModalityState.any());
1,273,839
public InputStream asInputStream(DiscordApi api) throws IOException {<NEW_LINE>if (fileAsBufferedImage != null) {<NEW_LINE>PipedOutputStream pos = new PipedOutputStream();<NEW_LINE><MASK><NEW_LINE>api.getThreadPool().getExecutorService().submit(() -> {<NEW_LINE>try {<NEW_LINE>ImageIO.write(fileAsBufferedImage, getFileT...
PipedInputStream pis = new PipedInputStream(pos);
1,558,128
// Check the referred column of the expression<NEW_LINE>private Void visitColumnComparisonExpression(final UnqualifiedColumnReferenceExp column, final ComparisonExpression node) {<NEW_LINE>final ColumnName columnName = column.getColumnName();<NEW_LINE>if (columnName.equals(SystemColumns.WINDOWSTART_NAME) || columnName....
columnName + " bounds: " + type, true);
362,441
public static void addAutoLoginServer(String addr, String id, String encryptedPass, String socksAddr) {<NEW_LINE>String addrs = PManager.getInstance().getString(PreferenceConstants.P_SVR_AUTOLOGIN_LIST);<NEW_LINE>if (StringUtil.isEmpty(addrs)) {<NEW_LINE>PManager.getInstance().setValue(PreferenceConstants.P_SVR_AUTOLOG...
+= (PreferenceConstants.P_SVR_DIVIDER + socksAddr);
491,325
public boolean onLongClick(View v) {<NEW_LINE>if (!isMultiple) {<NEW_LINE>isMultiple = true;<NEW_LINE>chosen = new ArrayList<>();<NEW_LINE>chosen.add(origPos);<NEW_LINE>doNewToolbar();<NEW_LINE>holder.itemView.setBackgroundColor(Palette.getDarkerColor(Palette.getDefaultAccent()));<NEW_LINE>holder.<MASK><NEW_LINE>} else...
text.setTextColor(Color.WHITE);
1,269,561
private <T extends Markable> void addPins(boolean removeViews, List<T> countries, T selectedCountry) {<NEW_LINE>if (removeViews) {<NEW_LINE>mapView.getMarkerLayout().removeAllViews();<NEW_LINE>removePaths();<NEW_LINE>}<NEW_LINE>List<T> countriesCopy = sortPins(countries);<NEW_LINE>for (Markable country : countriesCopy)...
|| marker.isSelected()));
19,430
public void showDetail(final int how) {<NEW_LINE>prepareLine();<NEW_LINE>if (lineObj == null) {<NEW_LINE>Toolkit.getDefaultToolkit().beep();<NEW_LINE>EditCookie ed = dobj.getLookup(<MASK><NEW_LINE>if (ed != null) {<NEW_LINE>ed.edit();<NEW_LINE>// show correct line later<NEW_LINE>showAfterDataObjectUpdated = true;<NEW_L...
).lookup(EditCookie.class);
864,549
public void recalculateSize(Point p) {<NEW_LINE>int xDelta = (<MASK><NEW_LINE>int yDelta = (p.y - gesturePoint.y);<NEW_LINE>switch(resizeMode) {<NEW_LINE>case OneSideScaleMode.N_RESIZE_MODE:<NEW_LINE>currentDragRect.setBounds(rectangle.x, rectangle.y + yDelta, rectangle.width, rectangle.height - yDelta);<NEW_LINE>break...
p.x - gesturePoint.x);
325,781
public void onClick(View v) {<NEW_LINE>PictureAttributes pictureAttributes = Attributes.createPictureAttributes();<NEW_LINE>pictureAttributes.setHeight(500);<NEW_LINE>pictureAttributes.setWidth(500);<NEW_LINE>pictureAttributes.setType(PictureAttributes.PictureType.SQUARE);<NEW_LINE>Profile.Properties properties = new P...
str = Utils.toHtml(response);
1,827,044
static NetworkInterface[] filterBySubnet(final NetworkInterfaceShim shim, final InetAddress address, final int subnetPrefix) throws SocketException {<NEW_LINE>final ArrayList<FilterResult> filterResults = new ArrayList<>();<NEW_LINE>final byte[] queryAddress = address.getAddress();<NEW_LINE>final Enumeration<NetworkInt...
NetworkInterface networkInterface = interfaces.nextElement();
839,584
public static void horizontal3(Kernel1D_S32 kernel, GrayU8 input, GrayI16 output, int skip) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final i...
indexSrc++] & 0xFF) * k1;
617,719
void addAuthenticationSwitches(Map<String, Object> bundle) {<NEW_LINE>Map<String, SecurityScheme> securitySchemeMap = openAPI.getComponents() != null ? openAPI.getComponents().getSecuritySchemes() : null;<NEW_LINE>List<CodegenSecurity> authMethods = config.fromSecurity(securitySchemeMap);<NEW_LINE>if (authMethods != nu...
, ProcessUtils.getHttpBasicMethods(authMethods));
513,487
private void write(Coordinate[] coords, Writer writer, int level) throws IOException {<NEW_LINE>startLine(level, writer);<NEW_LINE>startGeomTag(GMLConstants.GML_COORDINATES, null, writer);<NEW_LINE>int dim = 2;<NEW_LINE>if (coords.length > 0) {<NEW_LINE>if (!(Double.isNaN(coords[0].getZ())))<NEW_LINE>dim = 3;<NEW_LINE>...
+ coords[i].y);
1,548,448
private void checkDuplicatedJars() {<NEW_LINE>threadService.runTaskLater(() -> {<NEW_LINE>try {<NEW_LINE>Path lib = getInstallationPath().resolve("lib");<NEW_LINE>// Path lib = IOHelper.getPath("C:\\Program Files\\AsciidocFX\\lib");<NEW_LINE>if (Files.notExists(lib)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<String, L...
AlertHelper.showDuplicateWarning(duplicatePaths, lib);
1,677,665
private void loadBase64Image() {<NEW_LINE>String[] parts = <MASK><NEW_LINE>String extension = parts[0].substring(11);<NEW_LINE>String encodedData = parts[1];<NEW_LINE>// byte[] decodedBytes = DatatypeConverter.parseBase64Binary(encodedData);<NEW_LINE>byte[] decodedBytes = parseHexBinary(encodedData);<NEW_LINE>if (decod...
this.imagePath.split(";base64,");
1,716,179
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String sentence = (String) msg;<NEW_LINE>DeviceSession deviceSession;<NEW_LINE>int index = sentence.indexOf("UB05");<NEW_LINE>if (index != -1) {<NEW_LINE>String imei = sentence.substring(index + 4, index + 4 + ...
= new Position(getProtocolName());
739,141
public void onBindViewHolder(final RecyclerView.ViewHolder holder, final int position) {<NEW_LINE>int type = getItemViewType(position);<NEW_LINE>switch(type) {<NEW_LINE>case TYPE_ACTION_HEADER:<NEW_LINE>{<NEW_LINE>HeaderViewHolder headerViewHolder = (HeaderViewHolder) holder;<NEW_LINE>headerViewHolder.setAction(mMassOp...
throw new AssertionError("Invalid item type: " + type);
152,651
private void copyGapInsideGroup(LayoutInterval gap, int gapSize, LayoutInterval group, int alignment) {<NEW_LINE>assert gap.isEmptySpace() && (alignment == LEADING || alignment == TRAILING);<NEW_LINE>if (alignment == LEADING)<NEW_LINE>gapSize = -gapSize;<NEW_LINE>group.getCurrentSpace().positions[dimension][alignment] ...
layoutModel.setIntervalAlignment(sub, DEFAULT);
755,936
protected ShardDeleteEvent createShardDeleteEvent(String clusterName, ClusterTbl clusterTbl, String shardName, ShardTbl shardTbl, Map<Long, SentinelGroupModel> sentinelTblMap) {<NEW_LINE>ClusterType clusterType = ClusterType.lookup(clusterTbl.getClusterType());<NEW_LINE>ShardDeleteEvent shardDeleteEvent = new ShardDele...
logger.warn("[createClusterEvent]", e);
966,997
private void clearIqCallbacks() {<NEW_LINE>final IqPacket failurePacket = new IqPacket(IqPacket.TYPE.TIMEOUT);<NEW_LINE>final ArrayList<OnIqPacketReceived> callbacks = new ArrayList<>();<NEW_LINE>synchronized (this.packetCallbacks) {<NEW_LINE>if (this.packetCallbacks.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>...
> entry = iterator.next();
1,160,451
final ListPublishedSchemaArnsResult executeListPublishedSchemaArns(ListPublishedSchemaArnsRequest listPublishedSchemaArnsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPublishedSchemaArnsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
endClientExecution(awsRequestMetrics, request, response);
1,798,913
public Geometry union() {<NEW_LINE>if (inputPolys == null)<NEW_LINE>throw new IllegalStateException("union() method cannot be called twice");<NEW_LINE>if (inputPolys.isEmpty())<NEW_LINE>return null;<NEW_LINE>geomFactory = ((Geometry) inputPolys.iterator().<MASK><NEW_LINE>// STRtree index = new STRtree();<NEW_LINE>STRtr...
next()).getFactory();
1,089,966
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String epl = "@name('s0') select * from " + "SupportMarketDataBean#length(5) " + "output every 6 events " + "order by price";<NEW_LINE>createAndSend(env, epl, milestone);<NEW_LINE>SymbolPricesVolumes spv = new ...
"volume", "price", "feed" }));
1,098,896
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>RecyclerView recyclerView = findViewById(R.id.list);<NEW_LINE>recyclerView.setLayoutManager(new LinearLayoutManager(this));<NEW_LINE>List<Type> dataSet = new ArrayL...
dataSet.add(Type.CropQuarterCenterTop);
1,507,937
private <T> Flux<JsonNode> findItems(@NonNull CosmosQuery query, @NonNull String containerName, @NonNull Class<T> domainType) {<NEW_LINE>final SqlQuerySpec sqlQuerySpec = new FindQuerySpecGenerator().generateCosmos(query);<NEW_LINE><MASK><NEW_LINE>cosmosQueryRequestOptions.setQueryMetricsEnabled(this.queryMetricsEnable...
final CosmosQueryRequestOptions cosmosQueryRequestOptions = new CosmosQueryRequestOptions();
1,211,377
void initialize() {<NEW_LINE>// NON-NLS<NEW_LINE>assert resetFiltersButton != null : "fx:id=\"resetFiltersButton\" was not injected: check your FXML file 'NoEventsDialog.fxml'.";<NEW_LINE>// NON-NLS<NEW_LINE>assert dismissButton != null : "fx:id=\"dismissButton\" was not injected: check your FXML file 'NoEventsDialog.f...
actionEvent -> closeCallback.run());
856,111
public void writeExternalUtil(@Nonnull Element element, @Nonnull OptionsAndConfirmations optionsAndConfirmations) throws WriteExternalException {<NEW_LINE>final Map<String, VcsShowOptionsSettingImpl> options = optionsAndConfirmations.getOptions();<NEW_LINE>final Map<String, VcsShowConfirmationOptionImpl> confirmations ...
ID_ATTRIBUTE, setting.getDisplayName());
653,377
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>getSerializedSize();<NEW_LINE>if (sceneId_ != 0) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (pos_ != null) {<NEW_LINE>output.writeMessage(2, getPos());<NEW_LINE>}<NEW_LINE>if (sceneBeginTime_ != 0L) {<NEW_LINE>output.w...
output.writeUInt32(1, sceneId_);
1,421,975
public static void openInVisualVM(long id) throws IOException {<NEW_LINE>SpecVersion sv = getJavaVersion();<NEW_LINE>if (sv == null || (sv.major == 1 && sv.minor < 6)) {<NEW_LINE>final <MASK><NEW_LINE>d.asyncExec(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>Shell s = new Shell(d);<NEW_LINE>MessageDi...
Display d = Display.getDefault();
1,676,846
private void populateAccessory(Project project) {<NEW_LINE>DefaultListModel model = (DefaultListModel) jListArtifacts.getModel();<NEW_LINE>model.clear();<NEW_LINE>// NOI18N<NEW_LINE>jTextFieldName.setText(project == null ? "" : ProjectUtils.getInformation(project).getDisplayName());<NEW_LINE>if (project != null) {<NEW_...
= new ArrayList<AntArtifact>();
168,382
private static WritableMap convertJsonToMap(JSONObject jsonObject) throws JSONException {<NEW_LINE>WritableMap map = new WritableNativeMap();<NEW_LINE>Iterator<String> iterator = jsonObject.keys();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>String key = iterator.next();<NEW_LINE>Object value = jsonObject.get(key);<...
convertJsonToArray((JSONArray) value));
1,544,757
public Object eval(Scope scope) {<NEW_LINE>Object target = expr.eval(scope);<NEW_LINE>if (target == null) {<NEW_LINE>if (scope.getCtrl().isNullSafe()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>Object[] argValues = exprList.evalExprList(scope);<NEW_LINE>try {<NEW_LINE>MethodInfo me...
TemplateException("The target for method invoking can not be null, method name: " + methodName, location);
1,680,800
private ICompositeQueryFilter<I_M_HU> createQueryFilter_Barcode() {<NEW_LINE>if (Check.isEmpty(barcode, true)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final ICompositeQueryFilter<I_M_HU> filters = queryBL.createCompositeQueryFilter(I_M_HU.class);<NEW_LINE>final Collection<HUAttributeQueryFilterVO> barcodeQueryFilte...
COLUMN_Value, barcode.trim());
1,561,676
public ErrorCode action(ByteBuf ackPayload, String clientID, String fromUser, ProtoConstants.RequestSourceType requestSourceType, WFCMessage.Message message, Qos1PublishHandler.IMCallback callback) {<NEW_LINE>ErrorCode errorCode = ErrorCode.ERROR_CODE_SUCCESS;<NEW_LINE>boolean isAdmin = requestSourceType == ProtoConsta...
build()).build();
1,755,012
protected Void doInBackground() throws Exception {<NEW_LINE>addPropertyChangeListener(evt -> {<NEW_LINE>if ("progress".equals(evt.getPropertyName())) {<NEW_LINE>progressBar.setValue((Integer) evt.getNewValue());<NEW_LINE>}<NEW_LINE>});<NEW_LINE>long totalSize = 0;<NEW_LINE>for (File copyable : copyItems) {<NEW_LINE><MA...
totalSize += Util.calcSize(copyable);
1,566,690
public Projector visitWriterProjection(WriterProjection projection, Context context) {<NEW_LINE>InputFactory.Context<CollectExpression<Row, ?>> ctx = inputFactory.ctxForInputColumns(context.txnCtx);<NEW_LINE>List<<MASK><NEW_LINE>if (!projection.inputs().isEmpty()) {<NEW_LINE>ctx.add(projection.inputs());<NEW_LINE>input...
Input<?>> inputs = null;
913,302
public static double min(int[] y1, int[] y2) {<NEW_LINE>ContingencyTable contingency = new ContingencyTable(y1, y2);<NEW_LINE>double n = contingency.n;<NEW_LINE>double[] p1 = Arrays.stream(contingency.a).mapToDouble(a -> <MASK><NEW_LINE>double[] p2 = Arrays.stream(contingency.b).mapToDouble(b -> b / n).toArray();<NEW_L...
a / n).toArray();
640,344
private RefactoringStatus createRenameChanges(IProgressMonitor monitor) throws CoreException {<NEW_LINE>Assert.isNotNull(monitor);<NEW_LINE>RefactoringStatus status = new RefactoringStatus();<NEW_LINE>try {<NEW_LINE>monitor.beginTask(RefactoringCoreMessages.RenameTypeParameterRefactoring_searching, 2);<NEW_LINE>ICompil...
getClass().getName());
595,941
public void fmlInit(FMLInitializationEvent evt) {<NEW_LINE>NetworkRegistry.INSTANCE.registerGuiHandler(instance, new FactoryGuiHandler());<NEW_LINE>BCRegistry.INSTANCE.registerTileEntity(TileMiningWell.class, "buildcraft.factory.MiningWell", "MiningWell");<NEW_LINE>BCRegistry.INSTANCE.registerTileEntity(TileAutoWorkben...
registerTileEntity(TileHeatExchange_BC8.class, "buildcraft.factory.TileHeatExchange");
643,576
public //<NEW_LINE>void //<NEW_LINE>postEvent(// , @RequestParam(name = "message", defaultValue = "test message") final String message//<NEW_LINE>@RequestParam(name = "topicName", defaultValue = "de.metas.event.GeneralNotifications") final String topicName, //<NEW_LINE>//<NEW_LINE>@RequestParam(name = "toUserId", defau...
Type.LOCAL).build();
74,772
public ApiResponse<MediaItemContents> mediaGet_1WithHttpInfo(String id, Integer pageIndex, Integer pageSize, String sortExpression, Boolean includeParent) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'id' is set<NEW_LINE>if (id == null) {<NEW_LINE>throw new Ap...
HashMap<String, Object>();
1,400,027
@Path("connectionTest")<NEW_LINE>public Status connectionTest(@FormParam("dbtype") String dbtype, @FormParam("dbaddress") String dbaddress, @FormParam("dbport") String dbport, @FormParam("dbuser") String dbuser, @FormParam("dbpassword") String dbpassword) throws Exception {<NEW_LINE>Status status = Status.OK();<NEW_LIN...
(rs.getString("TABLE_CAT"));
1,855,163
private boolean deleteRoleBindingsUsingServiceUser(boolean retry, List<String> roleBindingNames) {<NEW_LINE>DeleteRoleBindings deleteRoleBindingRequest = DeleteRoleBindings.newBuilder().addAllRoleBindingNames(roleBindingNames).build();<NEW_LINE>try (var authServiceChannel = uac.getBlockingAuthServiceChannel()) {<NEW_LI...
getRoleServiceBlockingStubForServiceUser().deleteRoleBindings(deleteRoleBindingRequest);
1,476,633
public static void main(String[] args) throws Exception {<NEW_LINE>// Connect to the sever<NEW_LINE>ManagedChannel channel = ManagedChannelBuilder.forAddress("localhost", PORT).usePlaintext().build();<NEW_LINE>ReactorChatGrpc.ReactorChatStub stub = ReactorChatGrpc.newReactorStub(channel);<NEW_LINE>CountDownLatch done =...
+ " left.")).subscribe();
1,614,481
public static String generate(ClientConfig clientConfig, int indent) {<NEW_LINE>Preconditions.isNotNull(clientConfig, "ClientConfig");<NEW_LINE>StringBuilder xml = new StringBuilder();<NEW_LINE>xml.append("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>");<NEW_LINE>XmlGenerator gen = new XmlGenerator(xml);<NEW_LINE>gen.ope...
gen, clientConfig.getSecurityConfig());
1,723,829
public static String escapeImages(String string, boolean unescape) {<NEW_LINE>for (Pattern p : Arrays.asList(fImgRegExpQ, fImgRegExpU)) {<NEW_LINE>Matcher m = p.matcher(string);<NEW_LINE>// NOTE: python uses the named group 'fname'. Java doesn't have named groups, so we have to determine<NEW_LINE>// the index based on ...
tag = m.group(0);
783,811
private static ActionResponse read(ActionResponse response, HttpURLConnection connection) throws IOException {<NEW_LINE>int code = connection.getResponseCode();<NEW_LINE>if (code >= 500) {<NEW_LINE>try (InputStream input = connection.getErrorStream()) {<NEW_LINE>byte[] buffer = IOUtils.toByteArray(input);<NEW_LINE>resp...
.getRequestMethod(), code));
41,026
public static void main(String[] args) throws Exception {<NEW_LINE>DialogViewer.prepare();<NEW_LINE>KeyPairGenerator keyGen = KeyPairGenerator.getInstance("RSA", "BC");<NEW_LINE>KeyPair caKeyPair = keyGen.genKeyPair();<NEW_LINE>X509CertificateGenerator certGen = new X509CertificateGenerator(X509CertificateVersion.VERSI...
, new KseFrame(), IMPORT_EXPORT);
423,662
protected void initColumnAndType() {<NEW_LINE>columns.put(COLUMN_ID, new ColumnMeta(COLUMN_ID, "int(11)", false, true));<NEW_LINE>columnsType.put(COLUMN_ID, Fields.FIELD_TYPE_LONG);<NEW_LINE>columns.put(COLUMN_TYPE, new ColumnMeta(COLUMN_TYPE, "varchar(9)", false));<NEW_LINE>columnsType.<MASK><NEW_LINE>columns.put(COLU...
put(COLUMN_TYPE, Fields.FIELD_TYPE_VAR_STRING);
727,697
public static Object makePlainCellValue(DBCSession session, DBSTypedObject attribute, Object value) throws DBCException {<NEW_LINE>if (value instanceof Map) {<NEW_LINE>Map<String, Object> map = (Map<String, Object>) value;<NEW_LINE>Object typeAttr = map.get(WebSQLConstants.VALUE_TYPE_ATTR);<NEW_LINE>if (typeAttr instan...
map.get(WebSQLConstants.ATTR_TEXT);
1,593,619
public byte[] toByteArray() {<NEW_LINE>byte[] guid = new byte[16];<NEW_LINE>byte[] bytes1 = new byte[4];<NEW_LINE>bytes1[0] = (byte) (Data1 >> 24);<NEW_LINE>bytes1[1] = (byte) (Data1 >> 16);<NEW_LINE>bytes1[2] = (byte) (Data1 >> 8);<NEW_LINE>bytes1[3] = (byte) (Data1 >> 0);<NEW_LINE>byte[<MASK><NEW_LINE>bytes2[0] = (by...
] bytes2 = new byte[4];
1,172,567
/* the javascript constructor */<NEW_LINE>private static Object jsConstructor(Context cx, Object[] args) {<NEW_LINE>NativeDate obj = new NativeDate();<NEW_LINE>// if called as a constructor with no args,<NEW_LINE>// return a new Date with the current time.<NEW_LINE>if (args.length == 0) {<NEW_LINE>obj.date = now();<NEW...
obj.date = TimeClip(date);
1,617,340
public DescribeElasticsearchDomainsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeElasticsearchDomainsResult describeElasticsearchDomainsResult = new DescribeElasticsearchDomainsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetD...
String currentParentElement = context.getCurrentParentElement();
426,722
public static String saveTimedImage(BufferedImage img, String path, String name) {<NEW_LINE>RunTime.pause(0.01f);<NEW_LINE>if (null == path) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>File fImage = new File(path, name);<NEW_LINE>String formatName = "png";<NEW_LINE>if (name == null) {<NEW_LINE>fImage = new File(path, S...
log(3, "saveImage: %s", fImage);
208,803
public List executeQuery(QueryBuilder filter, AggregationBuilder aggregation, final EntityMetadata entityMetadata, KunderaQuery query, int firstResult, int maxResults) {<NEW_LINE>String[] fieldsToSelect = query.getResult();<NEW_LINE>Class clazz = entityMetadata.getEntityClazz();<NEW_LINE>MetamodelImpl metaModel = (Meta...
getMetamodel(entityMetadata.getPersistenceUnit());
1,045,393
private void loadNode985() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SessionDiagnosticsObjectType_SessionDiagnostics_QueryFirstCount, new QualifiedName(0, "QueryFirstCount"), new LocalizedText("en", "QueryFirstCount"), LocalizedText.NULL_VALUE, UInteger.valueOf(0)...
this.nodeManager.addNode(node);
1,015,091
private void findTokensToWrap(InfixExpression node, int depth) {<NEW_LINE>Expression left = node.getLeftOperand();<NEW_LINE>if (left instanceof InfixExpression && samePrecedence(node, (InfixExpression) left)) {<NEW_LINE>findTokensToWrap((InfixExpression) left, depth + 1);<NEW_LINE>} else if (// always add first operand...
options.wrap_before_binary_operator ? indexBefore : indexAfter);
176,583
public void write(org.apache.thrift.protocol.TProtocol prot, TSummarizerConfiguration struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (stru...
writeString(_iter99.getKey());
805,573
public final OptionListContext optionList() throws RecognitionException {<NEW_LINE>OptionListContext _localctx = new OptionListContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 18, RULE_optionList);<NEW_LINE>int _la;<NEW_LINE>try {<NEW_LINE>enterOuterAlt(_localctx, 1);<NEW_LINE>{<NEW_LINE>{<NEW_LINE>setState(131...
_la = _input.LA(1);
1,728,012
private boolean createAlignedTimeseries(List<String> seriesList, InsertPlan insertPlan) throws IllegalPathException {<NEW_LINE>List<String> measurements = new ArrayList<>();<NEW_LINE>for (String series : seriesList) {<NEW_LINE>measurements.add((new PartialPath(series)).getMeasurement());<NEW_LINE>}<NEW_LINE>List<TSData...
insertPlan.getDataTypes()[index];
618,537
private void invalidateLines(int startLine, int oldEndLine, int newEndLine, boolean textChanged, boolean bidiRequiredForNewText) {<NEW_LINE>checkDisposed();<NEW_LINE>if (textChanged) {<NEW_LINE>LineLayout firstOldLine = startLine >= 0 && startLine < myLines.size() ? myLines.get(startLine) : null;<NEW_LINE>LineLayout la...
isLtr() ? null : myBidiNotRequiredMarker);
1,421,468
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public Function<Double, Double> differentiate(Function<Double, Double> function) {<NEW_LINE>ArgChecker.notNull(function, "function");<NEW_LINE>switch(differenceType) {<NEW_LINE>case FORWARD:<NEW_LINE>return new Func...
ArgChecker.notNull(x, "x");
25,977
public Collection<ErrorDescription> check(JPAProblemContext ctx, HintContext hc, AttributeWrapper attrib) {<NEW_LINE>Set<Modifier> fieldModifiers = attrib.getInstanceVariable() == null ? null : attrib.getInstanceVariable().getModifiers();<NEW_LINE>Set<Modifier> accesorModifiers = attrib.getAccesor() == null ? null : at...
, hc, attrib, "MSG_FinalMutator"));