idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,299,420
public ResUnMarshalerT execute(ReqMarshalerT exportRequest, ResUnMarshalerT responseUnmarshaller) {<NEW_LINE>MarshalerServiceStub<ReqMarshalerT, ResUnMarshalerT, ?> stub = this.stub;<NEW_LINE>if (timeoutNanos > 0) {<NEW_LINE>stub = stub.withDeadlineAfter(timeoutNanos, TimeUnit.NANOSECONDS);<NEW_LINE>}<NEW_LINE>try {<NE...
". Error message: " + status.getDescription());
992,831
public EndpointServerBuilder createEndpointServerBuilder() {<NEW_LINE>EndpointServerBuilder endpointServerBuilder = EndpointServerBuilder.endpointServerBuilder();<NEW_LINE>endpointServerBuilder.setEnableHealthEndpoint(isEnableLocalHealth());<NEW_LINE>endpointServerBuilder.setSystemManager(this.getSystemManager());<NEW_...
setEventManager(this.getEventManager());
1,511,669
public boolean isOnTop(RootPaneContainer rpc, Point screenLoc) {<NEW_LINE>logger.entering(getClass().getName(), "isOnTop");<NEW_LINE>int size = zOrder.size();<NEW_LINE>WeakReference<RootPaneContainer> curWeakW = null;<NEW_LINE>RootPaneContainer curRpc = null;<NEW_LINE>for (int i = size - 1; i >= 0; i--) {<NEW_LINE>curW...
Point loc = new Point(screenLoc);
670,358
public void migrate(Schema schema, DatabaseSession databaseSession) {<NEW_LINE>EClass newServiceDescriptor = schema.createEClass("store", "NewServiceDescriptor");<NEW_LINE>schema.createEAttribute(newServiceDescriptor, "name", EcorePackage.eINSTANCE.getEString());<NEW_LINE>schema.createEAttribute(newServiceDescriptor, "...
EcorePackage.eINSTANCE.getEString());
1,608,052
public JsonNode normalizeData(final EventNode event, final long timestamp, final long slot, final List<String> fillIds) {<NEW_LINE>final String side = event.eventFlags.bid ? "buy" : "sell";<NEW_LINE>if (event.eventFlags.fill) {<NEW_LINE>final ObjectNode fill = JsonNodeFactory.instance.objectNode();<NEW_LINE>fill.put("t...
"maker", event.eventFlags.maker);
1,172,317
private void populate(Map<Map<Property<?>, Object>, BlockState> stateMap) {<NEW_LINE>final ImmutableTable.Builder<Property<?>, Object, BlockState> states = ImmutableTable.builder();<NEW_LINE>for (final Map.Entry<Property<?>, Object> entry : this.values.entrySet()) {<NEW_LINE>final Property<Object> property = (Property<...
Object>) entry.getKey();
1,245,742
private void handleLockFree(RequestHeader header, ByteBuf in, ChannelHandlerContext ctx) {<NEW_LINE>MatrixPartition mp = new MatrixPartition(header.matrixId, header.partId);<NEW_LINE>// Get and init the queue<NEW_LINE>ChannelHandlerContextMsg task = new <MASK><NEW_LINE>PartitionHandler handler = lockFreeHandlers.get(mp...
ChannelHandlerContextMsg(header, in, ctx);
16,151
private Object initSchemafullCollections(OResultInternal doc, String propName) {<NEW_LINE>OClass oClass = doc.getElement().flatMap(x -> x.getSchemaType()).orElse(null);<NEW_LINE>if (oClass == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>OProperty prop = oClass.getProperty(propName);<NEW_LINE>if (prop == null) {<NE...
result = new ArrayList<>();
327,202
public void run() {<NEW_LINE>sessionComboBox.removeActionListener(sessionsComboListener);<NEW_LINE>sessionComboBox.removePopupMenuListener(sessionsComboListener);<NEW_LINE>ComboBoxModel model = sessionComboBox.getModel();<NEW_LINE>sessionComboBox.removeAllItems();<NEW_LINE>DebuggerManager dm = DebuggerManager.getDebugg...
(dm.getCurrentSession()));
1,129,627
public void onStart() throws Exception {<NEW_LINE>super.onStart();<NEW_LINE>KeycloakDemoSetup keycloakDemoSetup = setupService.getTaskOfType(KeycloakDemoSetup.class);<NEW_LINE>Tenant masterTenant = keycloakDemoSetup.masterTenant;<NEW_LINE>masterRealm = masterTenant.getRealm();<NEW_LINE>if (knx) {<NEW_LINE>LOG.info(<MAS...
"Enable KNX demo agent, gateway/local IP: " + knxGatewayIp + "/" + knxLocalIp);
780,702
public Prediction<Label> combine(ImmutableOutputInfo<Label> outputInfo, List<Prediction<Label>> predictions, float[] weights) {<NEW_LINE>if (predictions.size() != weights.length) {<NEW_LINE>throw new IllegalArgumentException("predictions and weights must be the same length. predictions.size()=" + predictions.size() + "...
get(0).getExample();
1,556,436
public void touchMove(final CustomTouchEvent event) {<NEW_LINE>if (touching) {<NEW_LINE>if (!movedSignificantly) {<NEW_LINE>double distanceSquared = Math.abs(xMov.delta) * Math.abs(xMov.delta) + Math.abs(yMov.delta) * Math.abs(yMov.delta);<NEW_LINE>movedSignificantly = distanceSquared > SIGNIFICANT_MOVE_THRESHOLD * SIG...
delta, event.getNativeEvent());
815,663
public BooleanResponse verifyTypeDef(String serverName, String userId, TypeDef typeDef) {<NEW_LINE>final String methodName = "verifyTypeDef";<NEW_LINE>log.debug("Calling method: " + methodName);<NEW_LINE>BooleanResponse response = new BooleanResponse();<NEW_LINE>try {<NEW_LINE>OMRSMetadataCollection metadataCollection ...
error, userId, serverName, methodName);
632,384
public UriBuilder schemeSpecificPart(String ssp) throws IllegalArgumentException {<NEW_LINE>if (ssp == null)<NEW_LINE>throw new IllegalArgumentException("Scheme was null");<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (scheme != null)<NEW_LINE>sb.append<MASK><NEW_LINE>if (ssp != null)<NEW_LINE>sb.append...
(scheme).append(':');
1,483,936
public void wizardRealTime(List<SourceElement> sourceData, File csvFile, int backwardWindow, int forwardWindow, PredictionType prediction, String predictField) {<NEW_LINE>this.preprocess = true;<NEW_LINE>this.script.setBasePath(csvFile.getParent());<NEW_LINE>this.script.getProperties().setProperty(ScriptProperties.HEAD...
ScriptProperties.HEADER_DATASOURCE_RAW_FILE, AnalystWizard.FILE_PRE);
773,308
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,701,258
private SootMethod createUnresolvedErrorMethod(SootClass declaringClass) {<NEW_LINE>final Jimple jimp = Jimple.v();<NEW_LINE>SootMethod m = Scene.v().makeSootMethod(name, parameterTypes, returnType, isStatic() ? Modifier.STATIC : 0);<NEW_LINE>// we don't know who will be calling us<NEW_LINE>int modifiers = Modifier.PUB...
initStmt = jimp.newInvokeStmt(constructorInvokeExpr);
1,244,285
private static void dumpCallStack(@Nonnull ThreadInfo info, @Nonnull Writer f, @Nonnull StackTraceElement[] stackTraceElements) {<NEW_LINE>try {<NEW_LINE>@NonNls<NEW_LINE>StringBuilder sb = new StringBuilder("\"").append(info.getThreadName()).append("\"");<NEW_LINE>sb.append(" prio=0 tid=0x0 nid=0x0 ").append(getReadab...
()).append("\n");
1,026,662
// Create a binary tree by taking input level wise<NEW_LINE>public static Node createBinaryTree() {<NEW_LINE>Scanner sc <MASK><NEW_LINE>System.out.print("Enter root node value or -1 to exit: ");<NEW_LINE>int rootData = sc.nextInt();<NEW_LINE>Node root = null;<NEW_LINE>if (rootData != -1) {<NEW_LINE>root = new Node(root...
= new Scanner(System.in);
422,029
public boolean visit(SQLDataType x) {<NEW_LINE>printDataType(x);<NEW_LINE>if (x instanceof SQLDataTypeImpl) {<NEW_LINE>SQLDataTypeImpl dataTypeImpl = (SQLDataTypeImpl) x;<NEW_LINE>if (dataTypeImpl.isUnsigned()) {<NEW_LINE>print0(ucase ? " UNSIGNED" : " unsigned");<NEW_LINE>}<NEW_LINE>if (dataTypeImpl.isZerofill()) {<NE...
print0(charType.getCharSetName());
300,467
public static DescribeUserUsageDataExportTaskResponse unmarshall(DescribeUserUsageDataExportTaskResponse describeUserUsageDataExportTaskResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeUserUsageDataExportTaskResponse.setRequestId(_ctx.stringValue("DescribeUserUsageDataExportTaskResponse.RequestId"));<NEW_LINE>Usa...
(_ctx.integerValue("DescribeUserUsageDataExportTaskResponse.UsageDataPerPage.PageNumber"));
1,316,543
public AssignTapePoolResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssignTapePoolResult assignTapePoolResult = new AssignTapePoolResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con...
String currentParentElement = context.getCurrentParentElement();
880,831
public void drawTooltip(PoseStack matrices, int mouseX, int mouseY) {<NEW_LINE>// Liquids<NEW_LINE>int checkX = mouseX - parent.leftPos;<NEW_LINE>int checkY = mouseY - parent.topPos;<NEW_LINE>if (withinTank(checkX, checkY)) {<NEW_LINE>int hovered = tank.getContained() == 0 ? -1 : getFluidFromMouse<MASK><NEW_LINE>List<C...
(calcLiquidHeights(false), checkY);
426,840
private void createInterestingFileHit(AbstractFile file, FileType fileType) {<NEW_LINE>List<BlackboardAttribute> attributes = Arrays.asList(new BlackboardAttribute(TSK_SET_NAME, FileTypeIdModuleFactory.getModuleName(), fileType.getInterestingFilesSetName()), new BlackboardAttribute(TSK_CATEGORY, FileTypeIdModuleFactory...
.getSleuthkitCase().getBlackboard();
1,805,089
private static void updateFilters(String filterString) {<NEW_LINE>excludeFilterString = filterString;<NEW_LINE>// Build up the list of filters in a local list, then convert that to an array<NEW_LINE>// and assign to the static reference. This is done to avoid creating an iterator<NEW_LINE>// in the main path in `proces...
filterString, "excludeSpans", ExcludePathFilter.class);
1,587,918
protected void displayOneOrMoreFailure(KoanSuiteResult result) {<NEW_LINE>printSuggestion(result);<NEW_LINE><MASK><NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>if (ApplicationSettings.isExpectationResultVisible()) {<NEW_LINE>sb.append(message == null || message.length() == 0 || !result.displayIncompleteExc...
String message = result.getMessage();
995,543
protected TruffleString loadModule(Object nameObj, Object modulesSourceMapObj) {<NEW_LINE>TruffleString <MASK><NEW_LINE>JSDynamicObject modulesSourceMap = (JSDynamicObject) modulesSourceMapObj;<NEW_LINE>Evaluator evaluator = getContext().getEvaluator();<NEW_LINE>JSModuleLoader moduleLoader = new JSModuleLoader() {<NEW_...
name = JSRuntime.toString(nameObj);
1,634,142
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>getSerializedSize();<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeBytes(1, getNameBytes());<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.write...
, cities_.get(i));
346,865
public void propagate(InstanceState state) {<NEW_LINE>Object triggerType = <MASK><NEW_LINE>final var parallel = state.getAttributeValue(ATTR_LOAD);<NEW_LINE>ShiftRegisterData data = getData(state);<NEW_LINE>final var len = data.getLength();<NEW_LINE>final var triggered = data.updateClock(state.getPortValue(CK), trigger...
state.getAttributeValue(StdAttr.EDGE_TRIGGER);
1,082,289
private void checkJournalDirSizeAndType() {<NEW_LINE>final Map<String, FsStats.Filesystem> filesystems = fsProbe.fsStats().filesystems();<NEW_LINE>final FsStats.Filesystem journalFs = filesystems.get(journalDirectory.toAbsolutePath().toString());<NEW_LINE>if (journalFs != null) {<NEW_LINE>if (journalFs.available() > 0 ...
, journalMaxSize.toMegabytes()));
1,385,016
public void actionPerformed(ActionEvent evt) {<NEW_LINE>JEditTextArea textArea = getTextArea(evt);<NEW_LINE>int caret = textArea.getCaretPosition();<NEW_LINE>int firstLine = textArea.getFirstLine();<NEW_LINE>int firstOfLine = textArea.getLineStartOffset(textArea.getCaretLine());<NEW_LINE>int firstVisibleLine = (firstLi...
0 ? 0 : firstLine + 1);
797,406
private void bindWithSourcePathProvider() {<NEW_LINE>debuggerListener = new DebuggerManagerAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>String propertyName = evt.getPropertyName();<NEW_LINE>if (DebuggerManager.PROP_CURRENT_SESSION.equals(propertyName))...
, DebuggerManager.getDebuggerManager()));
1,525,935
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, JsonElement jsonElement) throws Exception {<NEW_LINE>logger.debug(effectivePerson.getDistinguishedName());<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> <MASK><NEW_LINE>Wi w...
result = new ActionResult<>();
213,344
public void showError(String title, String message, Throwable ex) {<NEW_LINE>final Alert alert = new Alert(Alert.AlertType.ERROR);<NEW_LINE>final Scene scene = alert.getDialogPane().getScene();<NEW_LINE>BrandUtil.applyBrand(injector, stage, scene);<NEW_LINE>alert.setHeaderText(title);<NEW_LINE>alert.setContentText(mess...
String exceptionText = sw.toString();
1,585,730
private static void validateClassValues(AnnotationMirror annotationMirror) {<NEW_LINE>// A class literal can appear in three places:<NEW_LINE>// * for an element of type Class, for example @SomeAnnotation(Foo.class);<NEW_LINE>// * for an element of type Class[], for example @SomeAnnotation({Foo.class, Bar.class});<NEW_...
AnnotationMirror) value.getValue());
857,755
private void deletePet(RoutingContext routingContext) {<NEW_LINE>logger.info("deletePet()");<NEW_LINE>// Param extraction<NEW_LINE>RequestParameters requestParameters = routingContext.get(ValidationHandler.REQUEST_CONTEXT_KEY);<NEW_LINE>Long petId = requestParameters.pathParameter("petId") != null ? requestParameters.p...
setStatusCode(apiResponse.getStatusCode());
288,353
public void doQuoteToMention(Annotation doc) {<NEW_LINE>List<CoreMap> quotes = doc.get(CoreAnnotations.QuotationsAnnotation.class);<NEW_LINE>List<List<Pair<Integer, Integer>>> skipChains = new ArrayList<>();<NEW_LINE>// Pairs are (quote_idx, paragraph_idx)<NEW_LINE>List<Pair<Integer, Integer>> currChain = new ArrayList...
, getMentionData(prevQuote), sieveName);
785,554
public void doCommit(TableMetadata base, TableMetadata metadata) {<NEW_LINE>String newMetadataLocation = writeNewMetadata(metadata, currentVersion() + 1);<NEW_LINE>try {<NEW_LINE>Map<String, String> table = getTable();<NEW_LINE>if (base != null) {<NEW_LINE>validateMetadataLocation(table, base);<NEW_LINE>String oldMetad...
.currentThread().interrupt();
941,300
final CreateProfileResult executeCreateProfile(CreateProfileRequest createProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateProfile");
658,700
void updateUsingBesuService(final V1Service service) throws RuntimeException {<NEW_LINE>try {<NEW_LINE>LOG.info("Found Besu service: {}", service.getMetadata().getName());<NEW_LINE>internalAdvertisedHost = getIpDetector(service).detectAdvertisedIp().orElseThrow(() -> new NatInitializationException("Unable to retrieve I...
get(TIMEOUT_SECONDS, TimeUnit.SECONDS);
1,328,228
public GetContactMethodsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetContactMethodsResult getContactMethodsResult = new GetContactMethodsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
JsonToken token = context.getCurrentToken();
1,664,566
public void layoutContainer(Container target) {<NEW_LINE>Insets insets = target.getInsets();<NEW_LINE>int maxheight = target.getSize().height - (insets.top + insets.bottom + vgap * 2);<NEW_LINE>int maxwidth = target.getSize().width - (insets.left + insets.right + hgap * 2);<NEW_LINE>int nmembers = target.getComponentCo...
d.width, d.height);
1,498,288
final GetServiceResult executeGetService(GetServiceRequest getServiceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getServiceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetServiceRequest> request = null;<NEW_LINE>Response<Ge...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,516,480
protected void startAndCompleteReportingInstances(ProcessEngine engine, BpmnModelInstance model, Date currentTime, int offset) {<NEW_LINE>Calendar calendar = Calendar.getInstance();<NEW_LINE>int currentMonth = calendar.get(Calendar.MONTH);<NEW_LINE>int currentYear = calendar.get(Calendar.YEAR);<NEW_LINE>calendar.add(Ca...
add(Calendar.DAY_OF_YEAR, randomDuration);
555,803
public ListTagsForResourceResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListTagsForResourceResult listTagsForResourceResult = new ListTagsForResourceResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
JsonToken token = context.getCurrentToken();
293,978
public void paint(Graphics g, JComponent c) {<NEW_LINE>JBTabsImpl tabs = (JBTabsImpl) c;<NEW_LINE>if (tabs.getVisibleInfos().isEmpty())<NEW_LINE>return;<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>final GraphicsConfig config = new GraphicsConfig(g2d);<NEW_LINE>config.setAntialiasing(true);<NEW_LINE>try {<NEW_LIN...
TabLabel selectedLabel = tabs.getSelectedLabel();
862,107
public boolean matches() {<NEW_LINE>final <MASK><NEW_LINE>if (eval.type().isArray()) {<NEW_LINE>switch(eval.elementType().getType()) {<NEW_LINE>case LONG:<NEW_LINE>final Long[] lResult = eval.asLongArray();<NEW_LINE>if (lResult == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>return Arrays.stream(lResult).filter(O...
ExprEval eval = selector.getObject();
77,793
public void testCaptureDebuggerStaticMappingPlugin() throws Throwable {<NEW_LINE>DomainFolder root = tool.getProject().getProjectData().getRootFolder();<NEW_LINE>try (UndoableTransaction tid = tb.startTransaction()) {<NEW_LINE>long snap = tb.trace.getTimeManager().createSnapshot("First").getKey();<NEW_LINE>TraceModule ...
.range(0x7fac0000, 0x7facffff));
1,585,051
private void writeObject(ObjectOutputStream stream) throws IOException {<NEW_LINE>stream.defaultWriteObject();<NEW_LINE>SerialUtils.writeStroke(this.domainGridlineStroke, stream);<NEW_LINE>SerialUtils.writePaint(this.domainGridlinePaint, stream);<NEW_LINE>SerialUtils.writeStroke(this.rangeGridlineStroke, stream);<NEW_L...
writePaint(this.rangeGridlinePaint, stream);
1,852,511
private void decodeTypRequest(ArrayList<Short> mac) {<NEW_LINE>try {<NEW_LINE>short tgtnode = mac.get(3);<NEW_LINE>int <MASK><NEW_LINE>int typXnodo = SoulissNetworkParameter.maxnodes;<NEW_LINE>logger.debug("--DECODE MACACO OFFSET: {} NUMOF: {} TYPICALSXNODE: {}", tgtnode, numberOf, typXnodo);<NEW_LINE>// creates Soulis...
numberOf = mac.get(4);
697,368
public io.kubernetes.client.proto.V1.PodCondition buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1.PodCondition result = new io.kubernetes.client.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>to_bitField0_...
proto.V1.PodCondition(this);
586,553
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String sentence = (String) msg;<NEW_LINE>String type = sentence.substring(5, 8);<NEW_LINE>Pattern pattern;<NEW_LINE>if (type.equals("MIF")) {<NEW_LINE>pattern = PATTERN_MIF;<NEW_LINE>} else {<NEW_LINE>pattern =...
remoteAddress, parser.next());
551,892
public void subscribeTopic(final String senderId, final String gcmToken, final String topic, final Bundle extras) {<NEW_LINE>new AsyncTask<Void, Void, Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Void doInBackground(Void... params) {<NEW_LINE>try {<NEW_LINE>GcmPubSub.getInstance(mContext).subscribe(gcmToke...
entry = mSenders.getSender(senderId);
1,276,228
public int compareTo(getBlobReplication_result other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = Boolean.valueOf(is_set_success()).compareTo(other.is_set_success(...
compareTo(other.is_set_knf());
157,625
private static BufferedImage takeVisibleScreenshot(WebDriver augmentedDriver) throws Exception {<NEW_LINE>Future<?> future = Executors.newSingleThreadExecutor().submit(new Callable<BufferedImage>() {<NEW_LINE><NEW_LINE>public BufferedImage call() throws IOException {<NEW_LINE>return ImageIO.read(((TakesScreenshot) augm...
String msg = e.getMessage();
1,549,685
public void onMaster() {<NEW_LINE>clusterService.submitStateUpdateTask("publish-secure-settings-hashes", new ClusterStateUpdateTask(Priority.URGENT) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public ClusterState execute(ClusterState currentState) {<NEW_LINE>final Map<String, String> publishedHashesOfConsistentSettings = c...
(computedHashesOfConsistentSettings)).build();
264,103
private void initialize(List<ContextResolver> contextResolvers) {<NEW_LINE>Map<Type, Map<MediaType, List<ContextResolver>>> rs = new HashMap<>();<NEW_LINE>for (ContextResolver provider : contextResolvers) {<NEW_LINE>List<MediaType> ms = MediaTypes.createFrom(provider.getClass().getAnnotation(Produces.class));<NEW_LINE>...
crl = mr.get(m);
485,107
private ResponseRef executeWidget(AsyncExecutionRequestRef ref) throws ExternalOperationFailedException {<NEW_LINE>String url = URLUtils.getUrl(getBaseUrl(), URLUtils.WIDGET_DATA_URL_FORMAT, getId(ref));<NEW_LINE>ref.getExecutionRequestRefContext(<MASK><NEW_LINE>List<Column> columns = Lists.newArrayList();<NEW_LINE>Lis...
).appendLog("Ready to get result set from " + url);
695,631
protected void layout() {<NEW_LINE>TextFlow textFlow = (TextFlow) getFlowFigure();<NEW_LINE>String text = textFlow.getText();<NEW_LINE>List fragments = textFlow.getFragments();<NEW_LINE>Font font = textFlow.getFont();<NEW_LINE>TextFragmentBox fragment;<NEW_LINE>int i = 0;<NEW_LINE>int offset = 0;<NEW_LINE>FlowUtilities...
.substring(offset, result));
1,351,989
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>JsonObject input = InputParser.parseJsonObjectOrThrowError(req);<NEW_LINE>String refreshToken = InputParser.parseStringOrThrowError(input, "refreshToken", false);<NEW_LINE>String antiCsrfToken = Input...
reply.addProperty("status", "TOKEN_THEFT_DETECTED");
496,650
static public String typeIdToClass(String id) {<NEW_LINE>if (!id.startsWith("::")) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>StringBuilder buf = new StringBuilder(id.length());<NEW_LINE>for (int i = 0; i < _iceTypeIdPrefixes.length; ++i) {<NEW_LINE>if (id.startsWith(_iceTypeIdPrefixes[i])) {<NEW_LINE>buf.append("com....
s = id.substring(start);
542,220
public int compareTo(update_response other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.valueOf(isSetError()).compareTo(other.isSetError());<NEW_...
compareTo(other.isSetServer());
1,298,386
public List<ActionEntity> listLogins(DateTime startAt, DateTime endAt, String display, String cursor, Integer perPage, Object sortBy) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/history/login";<NEW_LINE>// query params<NEW_LIN...
("", "sort_by", sortBy));
1,102,459
private Object decodeObdData(Channel channel, SocketAddress remoteAddress, String sentence) {<NEW_LINE>Parser parser = new Parser(PATTERN_OBD_DATA, sentence);<NEW_LINE>if (!parser.matches()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>DeviceSession deviceSession = getDeviceSession(channel, <MASK><NEW_LINE>if (deviceSes...
remoteAddress, parser.next());
1,734,852
private void generateU(int nu, int nct) {<NEW_LINE>for (int j = nct; j < nu; j++) {<NEW_LINE>for (int i = 0; i < m; i++) {<NEW_LINE>U[i][j] = 0.0;<NEW_LINE>}<NEW_LINE>U[j][j] = 1.0;<NEW_LINE>}<NEW_LINE>for (int k = nct - 1; k >= 0; k--) {<NEW_LINE>if (s[k] != 0.0) {<NEW_LINE>for (int j = k + 1; j < nu; j++) {<NEW_LINE>...
[] Ui = U[i];
1,518,527
void assembleMessageParameters() {<NEW_LINE>final ByteBuffer paramsBuffer;<NEW_LINE>// We check if the model identifier value is within the range of a 16-bit value here. If it is then it is a sigmodel<NEW_LINE>final byte[] elementAddress = MeshAddress.addressIntToBytes(mElementAddress);<NEW_LINE>final byte[] subscripti...
).order(ByteOrder.LITTLE_ENDIAN);
179,011
private void parse(AbstractCompiler compiler) {<NEW_LINE>RecordingReporterProxy reporter = new RecordingReporterProxy(compiler.getDefaultErrorReporter());<NEW_LINE>try {<NEW_LINE>ParserRunner.ParseResult result = ParserRunner.parse(sourceFile, sourceFile.getCode(), compiler.getParserConfig(sourceFile.isExtern() ? Abstr...
.copyOf(reporter.warnings));
365,378
private RexNode swapFilter(RexBuilder rexBuilder, LoptMultiJoin multiJoin, RelNode origLeft, RelNode origRight, RexNode condition) {<NEW_LINE>int nFieldsOnLeft = origLeft.getRowType().getFieldCount();<NEW_LINE>int nFieldsOnRight = origRight<MASK><NEW_LINE>int[] adjustments = new int[nFieldsOnLeft + nFieldsOnRight];<NEW...
.getRowType().getFieldCount();
1,585,232
private void operateInputParameter(Map<String, String> inputParameter, DataQualityTaskExecutionContext dataQualityTaskExecutionContext) {<NEW_LINE>DateTimeFormatter df = DateTimeFormatter.ofPattern(YYYY_MM_DD_HH_MM_SS);<NEW_LINE><MASK><NEW_LINE>String now = df.format(time);<NEW_LINE>inputParameter.put(RULE_ID, String.v...
LocalDateTime time = LocalDateTime.now();
374,421
public synchronized JSONObject saveToJSONObject() {<NEW_LINE>JSONObject object = new JSONObject();<NEW_LINE>// Loop through every preference in the in-memory preference map<NEW_LINE>for (Map.Entry<String, Object> entry : prefs.entrySet()) {<NEW_LINE>JSONObject entryObj = new JSONObject();<NEW_LINE>Object value = entry....
entry.getKey(), entryObj);
606,287
public void showTables(UUID roomId) {<NEW_LINE>this.roomId = roomId;<NEW_LINE>UUID chatRoomId = null;<NEW_LINE>if (SessionHandler.getSession() != null) {<NEW_LINE>btnQuickStartDuel.setVisible(SessionHandler.isTestMode());<NEW_LINE>btnQuickStartCommander.setVisible(SessionHandler.isTestMode());<NEW_LINE>btnQuickStartMCT...
add(newTableDialog, JLayeredPane.MODAL_LAYER);
218,709
final GetRunResult executeGetRun(GetRunRequest getRunRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRunRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Get...
invoke(request, responseHandler, executionContext);
1,170,773
public void deleteAtOffset(int offset) {<NEW_LINE>if (offset < 0) {<NEW_LINE>throw new IllegalArgumentException("Offset cannot be negative.");<NEW_LINE>}<NEW_LINE>if (offset > structLength) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int index = Collections.binarySearch(components, Integer.valueOf<MASK><NEW_LINE>if (index <...
(offset), OffsetComparator.INSTANCE);
549,808
public Boolean checkingHeartBeat() {<NEW_LINE>Script cmd = new Script(vmActivityCheckPath, activityScriptTimeout.getStandardSeconds(), LOG);<NEW_LINE>cmd.add("-i", nfsStoragePool._poolIp);<NEW_LINE>cmd.add("-p", nfsStoragePool._poolMountSourcePath);<NEW_LINE>cmd.add("-m", nfsStoragePool._mountDestPath);<NEW_LINE>cmd.ad...
parser = new OutputInterpreter.OneLineParser();
1,046,288
/* (non-Javadoc)<NEW_LINE>* @see com.webank.weid.rpc.generateHash<NEW_LINE>* #generateHash(T object)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public <T> ResponseData<HashString> generateHash(T object) {<NEW_LINE>if (object == null) {<NEW_LINE>return new ResponseData<>(null, ErrorCode.ILLEGAL_INPUT);<NEW_LINE>}<NEW_LINE>...
= getHashValue((Hashable) object);
1,149,170
public RegisterThingResult registerThing(RegisterThingRequest registerThingRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(registerThingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NE...
new JsonResponseHandler<RegisterThingResult>(unmarshaller);
498,721
private static String printParameters(JsComment jsComment) {<NEW_LINE>List<DocParameter> parameters = jsComment.getParameters();<NEW_LINE>if (!parameters.isEmpty()) {<NEW_LINE>StringBuilder sb = new StringBuilder(renderHeader(WRAPPER_HEADER, Bundle.JsDocumentationPrinter_title_parameters()));<NEW_LINE>// NOI18N<NEW_LIN...
String description = docParam.getParamDescription();
761,536
protected void writeLine() throws IOException {<NEW_LINE>switch(getMessageState()) {<NEW_LINE>case START:<NEW_LINE>if (getHelper().getLogger().isLoggable(Level.FINE)) {<NEW_LINE>getHelper().getLogger().log(Level.FINE, "Writing message to " + getConnection().getSocketAddress());<NEW_LINE>}<NEW_LINE>writeStartLine();<NEW...
setHeaderIndex(getHeaderIndex() + 1);
1,262,094
public static void fillAppInfo() {<NEW_LINE>try {<NEW_LINE>// ActivityThread activityThread = new ActivityThread();<NEW_LINE>Class<?> <MASK><NEW_LINE>Constructor<?> activityThreadConstructor = activityThreadClass.getDeclaredConstructor();<NEW_LINE>activityThreadConstructor.setAccessible(true);<NEW_LINE>Object activityT...
activityThreadClass = Class.forName("android.app.ActivityThread");
1,444,177
private Mono<PagedResponse<WorkloadNetworkPublicIpInner>> listPublicIPsNextSinglePageAsync(String nextLink) {<NEW_LINE>if (nextLink == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null."));<NEW_LINE>}<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_...
)).readOnly()));
1,362,924
public ServerGroupValidationConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ServerGroupValidationConfiguration serverGroupValidationConfiguration = new ServerGroupValidationConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement...
)).unmarshall(context));
184,970
/* Build call for tiersTierLevelTierNameGet */<NEW_LINE>private com.squareup.okhttp.Call tiersTierLevelTierNameGetCall(String tierName, String tierLevel, String accept, String ifNoneMatch, String ifModifiedSince, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestList...
= new ArrayList<Pair>();
182,944
private int merge(int[] nums, int l, int r) {<NEW_LINE>if (l == r) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int mid = (l + r) >> 1;<NEW_LINE>int cnt = merge(nums, l, mid);<NEW_LINE>cnt += merge(nums, mid + 1, r);<NEW_LINE>int[] tmp = new int[r - l + 1];<NEW_LINE>int i = l, j = mid + 1;<NEW_LINE>int k = 0;<NEW_LINE>int ...
nums, l, tmp.length);
361,797
private static void checksumFromLuceneFile(Directory directory, String file, Map<String, StoreFileMetadata> builder, Logger logger, Version version, boolean readFileAsHash) throws IOException {<NEW_LINE>final String checksum;<NEW_LINE>final BytesRefBuilder fileHash = new BytesRefBuilder();<NEW_LINE>try (IndexInput in =...
VerifyingIndexInput verifyingIndexInput = new VerifyingIndexInput(in);
1,049,136
final ListPipelineParametersForExecutionResult executeListPipelineParametersForExecution(ListPipelineParametersForExecutionRequest listPipelineParametersForExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPipelineParametersForExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRe...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
816,505
public void onClick(View view) {<NEW_LINE>super.onClick(view);<NEW_LINE>AlertDialog.Builder builder = new <MASK><NEW_LINE>builder.setTitle(R.string.superuser_access);<NEW_LINE>String[] items = new String[] { getString(R.string.access_disabled), getString(R.string.apps_only), getString(R.string.adb_only), getString(R.st...
AlertDialog.Builder(getActivity());
300,854
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static com.sun.jdi.event.EventIterator eventIterator(com.sun.jdi.event.EventSet a) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>if (org.netbeans...
new Object[] { a });
1,705,082
public static VariantContext addAlleleAndSiteFilters(VariantContext vc, List<Set<String>> newAlleleFilters, boolean invalidatePreviousFilters) {<NEW_LINE>if (newAlleleFilters.isEmpty()) {<NEW_LINE>return vc;<NEW_LINE>}<NEW_LINE>List<List<String>> currentAlleleFilters = decodeASFilters(vc);<NEW_LINE>if (!currentAlleleFi...
singletonList(GATKVCFConstants.SITE_LEVEL_FILTERS)));
55,794
private void generateCodeFile(Task task, Document document, Map<String, String> parameters, String outputFileName, Transformer transformer) throws TransformerFactoryConfigurationError, FileNotFoundException, TransformerException {<NEW_LINE>if (parameters != null) {<NEW_LINE>for (Map.Entry<String, String> entry : parame...
.getParentFile().mkdirs();
533,133
public ObjectInspector initialize(ObjectInspector[] args) throws UDFArgumentException {<NEW_LINE>if (args.length < 2) {<NEW_LINE>throw new UDFArgumentException("Usage: combine takes 2 or more maps or lists, and combines the result");<NEW_LINE>}<NEW_LINE>ObjectInspector first = args[0];<NEW_LINE>this.category = first.ge...
[0] = (ListObjectInspector) first;
1,654,596
public boolean createStructure(Level world, BlockPos pos, Direction side, Player player) {<NEW_LINE>GlobalWireNetwork globalNet = GlobalWireNetwork.getNetwork(world);<NEW_LINE>// Check<NEW_LINE>BlockState stateHere = world.getBlockState(pos);<NEW_LINE>if (stateHere.hasProperty(FACING_ALL))<NEW_LINE>side = stateHere.get...
masterPos = pos.relative(side);
934,146
public static void storeSettingsToPom(FileObject projectFile, final String name, final String value) {<NEW_LINE>final ModelOperation<POMModel> operation = new ModelOperation<POMModel>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void performOperation(POMModel model) {<NEW_LINE>Properties props = model.getProject()....
props.setProperty(name, value);
1,777,990
synchronized long minTranslogGenRequired(List<TranslogReader> readers, TranslogWriter writer) throws IOException {<NEW_LINE>long minByLocks = getMinTranslogGenRequiredByLocks();<NEW_LINE>long minByAge = getMinTranslogGenByAge(readers, writer, retentionAgeInMillis, currentTime());<NEW_LINE>long minBySize = getMinTranslo...
getMinTranslogGenByTotalFiles(readers, writer, retentionTotalFiles);
1,117,000
public void refilter() {<NEW_LINE>if (filter == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (filter.eventUpdate != null) {<NEW_LINE>filter.eventUpdate.cancel();<NEW_LINE>filter.text = filter.nextText;<NEW_LINE>filter.checker.filterSet(filter.text);<NEW_LINE>}<NEW_LINE>filter.eventUpdate = null;<NEW_LINE>boolean cha...
debug("filter: unfilteredArray is " + unfilteredArray.length);
166,612
public void marshall(ComplianceItem complianceItem, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (complianceItem == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(complianceItem.getComplianceType(), COMPLI...
complianceItem.getStatus(), STATUS_BINDING);
942,986
public int compareTo(Compacting other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetRunning(), other.isSetRunning());<NEW_LINE>if (la...
this.queued, other.queued);
1,251,430
public FileVisitResult preVisitDirectory(Path path, BasicFileAttributes attrs) throws IOException {<NEW_LINE>// Do not traverse the bazel-* convenience symlinks. On windows these are created as<NEW_LINE>// junctions.<NEW_LINE>if (isWindows && attrs.isOther()) {<NEW_LINE>return FileVisitResult.SKIP_SUBTREE;<NEW_LINE>}<N...
StandardWatchEventKinds.ENTRY_MODIFY, StandardWatchEventKinds.ENTRY_DELETE);
599,437
private void license(File file) throws IOException {<NEW_LINE>String fileName = file.getAbsolutePath();<NEW_LINE>boolean isJava = fileName.endsWith(".java");<NEW_LINE>boolean isJSP = fileName.endsWith(".jsp");<NEW_LINE>boolean other = !(isJava || isJSP);<NEW_LINE>BufferedReader in = new BufferedReader(new FileReader(fi...
= new File(fileName + ".tmp");
615,328
private SqlNode visitOneLiteral(SqlLiteral literal) {<NEW_LINE>if (autoIncrementColumn != curFieldIndex) {<NEW_LINE>return SqlNode.clone(literal);<NEW_LINE>}<NEW_LINE>boolean shouldReplace = false;<NEW_LINE>long value = 0;<NEW_LINE>SqlTypeFamily typeFamily = literal<MASK><NEW_LINE>switch(typeFamily) {<NEW_LINE>case NUM...
.getTypeName().getFamily();
998,601
private void initSchedulerFactory(StdSchedulerFactory schedulerFactory) throws SchedulerException, IOException {<NEW_LINE>Properties mergedProps = new Properties();<NEW_LINE>if (this.resourceLoader != null) {<NEW_LINE>mergedProps.setProperty(StdSchedulerFactory.PROP_SCHED_CLASS_LOAD_HELPER_CLASS, ResourceLoaderClassLoa...
fillProperties(mergedProps, this.configLocation);