idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
276,636
public IPath[] enclosingProjectsAndJars() {<NEW_LINE>IPath[] result = this.enclosingPaths;<NEW_LINE>if (result != null) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>long start = BasicSearchEngine.VERBOSE ? System.currentTimeMillis() : -1;<NEW_LINE>try {<NEW_LINE>IJavaProject[] projects = JavaModelManager.getJavaModelM...
JavaModel.getTarget(path, false);
1,218,675
public String saveJobSubmission(@Valid final JobSubmission jobSubmission) throws IdAlreadyExistsException {<NEW_LINE>log.debug("[saveJobSubmission] Attempting to save job submission {}", jobSubmission);<NEW_LINE>// TODO: Metrics<NEW_LINE>final JobEntity jobEntity = new JobEntity();<NEW_LINE>jobEntity.setStatus(JobStatu...
JobRequestMetadata jobRequestMetadata = jobSubmission.getJobRequestMetadata();
630,605
public static void horizontal5(Kernel1D_S32 kernel, GrayU8 input, GrayI8 output, int skip, int divisor) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final byte[] 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_L...
indexSrc++] & 0xFF) * k1;
1,564,954
private Response response(final String home, final URI dest, final com.jcabi.http.Response rsp) {<NEW_LINE>final Collection<String> hdrs = new LinkedList<>();<NEW_LINE>hdrs.add(String.format("X-Takes-TkProxy: from %s to %s by %s", home, dest, this.label));<NEW_LINE>for (final Map.Entry<String, List<String>> entry : rsp...
.getKey(), val));
26,806
ArrayList<Object> new99() /* reduce AIfStatement */<NEW_LINE>{<NEW_LINE>@SuppressWarnings("hiding")<NEW_LINE>ArrayList<Object> nodeList = new ArrayList<Object>();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<Object> nodeArrayList3 = pop();<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>ArrayList<MASK><NEW_LIN...
<Object> nodeArrayList2 = pop();
1,563,760
public void run(SourceContext<Row> ctx) throws Exception {<NEW_LINE>final StringBuilder buffer = new StringBuilder();<NEW_LINE>long attempt = 0;<NEW_LINE>while (isRunning) {<NEW_LINE>try (Socket socket = new Socket()) {<NEW_LINE>currentSocket = socket;<NEW_LINE>LOG.info("Connecting to server socket " + tableInfo.getHos...
LOG.error("parseData error ", e);
1,572,542
private boolean shouldInvalidateBounds() {<NEW_LINE>final Widget chatbox = client.getWidget(WidgetInfo.CHATBOX);<NEW_LINE>final boolean resizeableChanged <MASK><NEW_LINE>boolean changed = false;<NEW_LINE>if (resizeableChanged) {<NEW_LINE>isResizeable = client.isResized();<NEW_LINE>changed = true;<NEW_LINE>}<NEW_LINE>fi...
= isResizeable != client.isResized();
989,488
private T tranResultSet(final ResultSet rs, final T targetObject) throws SQLException {<NEW_LINE>ResultSetMetaData rsmd = rs.getMetaData();<NEW_LINE>int nrOfColumns = rsmd.getColumnCount();<NEW_LINE>List<String> resultColumns = new ArrayList<>();<NEW_LINE>Map<String, Integer> resultColumnIndexMap = this.tableMapping.ge...
resultColumnIndexMap.put(colName, i);
1,748,953
final GetVpcLinksResult executeGetVpcLinks(GetVpcLinksRequest getVpcLinksRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getVpcLinksRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
277,447
void collectClusterCandidates_(int xyindex, AttributeStreamOfInt32 candidates) {<NEW_LINE>Point2D pointOfInterest = new Point2D();<NEW_LINE>m_shape.getXY(xyindex, pointOfInterest);<NEW_LINE>double x_0 = pointOfInterest.x - m_origin.x;<NEW_LINE>double x = x_0 * m_inv_cell_size;<NEW_LINE>double y0 = pointOfInterest.y - m...
xi + dx, yi + dy);
1,660,908
public ObjectDataConfigExport save(ObjectDataConfigExport entity) {<NEW_LINE>try {<NEW_LINE>Class<? extends Model> klass = (Class<? extends Model>) Class.<MASK><NEW_LINE>JpaRepository<? extends Model> repo = JpaRepository.of(klass);<NEW_LINE>Object obj = repo.all().filter("self.id = ?", entity.getModelSelectId()).fetch...
forName(entity.getModelSelect());
1,431,071
public TypecheckingResult visitUniverse(Concrete.UniverseExpression expr, Expression expectedType) {<NEW_LINE>if (!isHBased() && expr.getHLevel() == null) {<NEW_LINE>errorReporter.report(new TypecheckingError(GeneralError.Level.WARNING, "Universe can be replaced with \\Prop", expr));<NEW_LINE>return new TypecheckingRes...
getEquations().addVariable(pl);
666,651
public static void registerAllHatDefaults() {<NEW_LINE>final PluginManager pluginManager = Bukkit.getPluginManager();<NEW_LINE>final Permission hatPerm = pluginManager.getPermission(Commandhat.PERM_PREFIX + "*");<NEW_LINE>if (hatPerm != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ImmutableMap.Builder<String, Boo...
.name().toLowerCase();
1,853,279
private static <T, Context> List<T> parseArray(XContentParser parser, Context context, ContextParser<Context, T> itemParser) throws IOException {<NEW_LINE>final XContentParser.Token currentToken = parser.currentToken();<NEW_LINE>if (currentToken.isValue() || currentToken == XContentParser.Token.VALUE_NULL || currentTok...
IllegalStateException("expected value but got [" + token + "]");
1,160,974
public void init(ServletConfig config) throws ServletException {<NEW_LINE>super.init(config);<NEW_LINE>final ServletContext context = config.getServletContext();<NEW_LINE>if (null == registry) {<NEW_LINE>final Object registryAttr = context.getAttribute(HEALTH_CHECK_REGISTRY);<NEW_LINE>if (registryAttr instanceof Health...
this.executorService = (ExecutorService) executorAttr;
587,786
final UpdateEndpointResult executeUpdateEndpoint(UpdateEndpointRequest updateEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
false), new UpdateEndpointResultJsonUnmarshaller());
532,758
public static GetSubscriptionItemResponse unmarshall(GetSubscriptionItemResponse getSubscriptionItemResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSubscriptionItemResponse.setRequestId(_ctx.stringValue("GetSubscriptionItemResponse.RequestId"));<NEW_LINE>getSubscriptionItemResponse.setSuccess(_ctx.booleanValue("GetSu...
(_ctx.integerValue("GetSubscriptionItemResponse.SubscriptionItem.TtsStatus"));
588,950
final DeprovisionByoipCidrResult executeDeprovisionByoipCidr(DeprovisionByoipCidrRequest deprovisionByoipCidrRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deprovisionByoipCidrRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,582,170
private int fetchMetricsAsync(ConsumerId consumer) {<NEW_LINE>Map<Node, Future<Boolean>> futures = new HashMap<>();<NEW_LINE>for (NodeMetricsClient client : clients) {<NEW_LINE>var optional = client.startSnapshotUpdate(consumer, METRICS_TTL);<NEW_LINE>optional.ifPresent(future -> futures.put(client.node, future));<NEW_...
int numTried = futures.size();
541,175
public void configure(DslJson json) {<NEW_LINE>new LocalDateDslJsonConverter().configure(json);<NEW_LINE>new LocalDateTimeDslJsonConverter().configure(json);<NEW_LINE>new LocalTimeDslJsonConverter().configure(json);<NEW_LINE>new OffsetDateTimeDslJsonConverter().configure(json);<NEW_LINE>new OffsetTimeDslJsonConverter()...
ResultSetDslJsonConverter().configure(json);
1,360,605
public static DescribeIpv6GatewaysResponse unmarshall(DescribeIpv6GatewaysResponse describeIpv6GatewaysResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeIpv6GatewaysResponse.setRequestId(_ctx.stringValue("DescribeIpv6GatewaysResponse.RequestId"));<NEW_LINE>describeIpv6GatewaysResponse.setPageSize(_ctx.integerValue...
("DescribeIpv6GatewaysResponse.Ipv6Gateways[" + i + "].BusinessStatus"));
1,137,423
private ProducerServiceRestClient assertCreateSingleAppData(String m, String appName) throws Exception {<NEW_LINE>ProducerServiceRestClient service = null;<NEW_LINE>try {<NEW_LINE>service = builderProducer.build(ProducerServiceRestClient.class);<NEW_LINE>} catch (Exception e) {<NEW_LINE>_log.severe("Check ProducerServi...
200, r.getStatus());
1,423,493
public void serialize(ByteBuf buf) {<NEW_LINE>super.serialize(buf);<NEW_LINE>LongDoubleVectorStorage storage = split.getStorage();<NEW_LINE>if (storage instanceof LongDoubleSparseVectorStorage) {<NEW_LINE>ObjectIterator<Long2DoubleMap.Entry> iter = storage.entryIterator();<NEW_LINE>buf.writeInt(storage.size());<NEW_LIN...
getClass().getName());
278,723
private DirectoryEntry lookUp(File dir, Iterable<Name> names, Set<? super LinkOption> options, int linkDepth) throws IOException {<NEW_LINE>Iterator<Name> nameIterator = names.iterator();<NEW_LINE><MASK><NEW_LINE>while (nameIterator.hasNext()) {<NEW_LINE>Directory directory = toDirectory(dir);<NEW_LINE>if (directory ==...
Name name = nameIterator.next();
300,508
private void beforeAsync(Object target, Object[] args) {<NEW_LINE>((AsyncStartFlagFieldAccessor) args[<MASK><NEW_LINE>final AsyncContext asyncContext = AsyncContextAccessorUtils.getAsyncContext(args, 1);<NEW_LINE>if (asyncContext == null) {<NEW_LINE>logger.debug("AsyncContext not found");<NEW_LINE>return;<NEW_LINE>}<NE...
1])._$PINPOINT$_setAsyncStartFlag(true);
1,581,972
private void updateLongTermWeatherUI() {<NEW_LINE>if (destroyed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ViewPagerAdapter viewPagerAdapter = new ViewPagerAdapter(getSupportFragmentManager());<NEW_LINE>Bundle bundleToday = new Bundle();<NEW_LINE>bundleToday.putInt("day", 0);<NEW_LINE>RecyclerViewFragment recyclerViewFrag...
bundle.putInt("day", 2);
493,163
private Map<String, Object> createHeader(AMQP.BasicProperties properties, Trace trace) {<NEW_LINE>final Map<String, Object> headers = copyHeader(properties);<NEW_LINE>if (trace.canSampled()) {<NEW_LINE>TraceId nextId = retrieveNextTraceId();<NEW_LINE>if (nextId == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>heade...
(nextId.getParentSpanId()));
1,698,077
private void make(File baseFeatureApk, File apkFile, File bundleFile, CoreSigningConfig signingConfig) throws IOException, SigningException {<NEW_LINE>ZipFile zipFile = new ZipFile(apkFile);<NEW_LINE>Enumeration entries = zipFile.entries();<NEW_LINE>ZipOutputStream zipOutputStream = new <MASK><NEW_LINE>ZipOutputStream ...
ZipOutputStream(new FileOutputStream(bundleFile));
607,791
public void onClicked(int x, int y) {<NEW_LINE>// Check for board click<NEW_LINE>Optional<int[]> boardCoordinates = boardRenderer.convertScreenToCoordinates(x, y);<NEW_LINE>int moveNumber = winrateGraph.moveNumber(x, y);<NEW_LINE>if (boardCoordinates.isPresent()) {<NEW_LINE>int[] coords = boardCoordinates.get();<NEW_LI...
variationTree.onClicked(x, y);
1,583,420
private User jsonToUser(JSONObject user) throws JSONException {<NEW_LINE>Uri picture = Uri.parse(user.getJSONObject("picture").getJSONObject("data").getString("url"));<NEW_LINE>String name = user.getString("name");<NEW_LINE>String <MASK><NEW_LINE>String email = null;<NEW_LINE>if (user.has("email")) {<NEW_LINE>email = u...
id = user.getString("id");
920,286
public void update(StoreClient<I, List<Map<String, Object>>> storeClient) {<NEW_LINE>Versioned<List<Map<String, Object>>> versionedIndex = storeClient.get(_identifier);<NEW_LINE>List<Map<String, Object>> pageIndex = versionedIndex.getValue();<NEW_LINE>VPageIndexEntry<LK> oldIndexEntry = VPageIndexEntry.valueOf(pageInde...
0, newIndexEntry.mapValue());
1,075,986
public DatabaseInfo parse(String jdbcUrl) {<NEW_LINE>if (jdbcUrl == null) {<NEW_LINE>logger.info("jdbcUrl");<NEW_LINE>return UnKnownDatabaseInfo.INSTANCE;<NEW_LINE>}<NEW_LINE>Type type = getType(jdbcUrl);<NEW_LINE>if (type == null) {<NEW_LINE>logger.info("jdbcUrl has invalid prefix.(url:{}, valid prefixes:{}, {})", jdb...
e.getMessage(), e);
1,317,807
private void buildCells(YearMonth yearMonth, int colIndex) {<NEW_LINE>List<Node> cells = new ArrayList<>();<NEW_LINE>Node header = buildHeaderCell(yearMonth);<NEW_LINE>header.getStyleClass().add("month-header");<NEW_LINE>cells.add(header);<NEW_LINE>LocalDate start = yearMonth.atDay(1);<NEW_LINE>LocalDate end = yearMont...
getStyleClass().add("first-month");
767,863
private static void asyncClean(CommandEnvironment env, Path path, String pathItemName) throws IOException, CommandException, InterruptedException {<NEW_LINE>String tempBaseName = path.getBaseName() + "_tmp_" + ProcessHandle.current().pid() + "_" + UUID.randomUUID();<NEW_LINE>// Keeping tempOutputBase in the same direct...
+ " moved to " + tempPath + " for deletion"));
1,346,973
public void refreshUpdate(final ReadDB pDB) {<NEW_LINE>mDb = checkNotNull(pDB);<NEW_LINE>mSunburstGUI.mDone = false;<NEW_LINE>mSunburstGUI.mUseDiffView = ViewType.NODIFF;<NEW_LINE>mModel = new SunburstModel(<MASK><NEW_LINE>final SunburstContainer container = new SunburstContainer(mSunburstGUI, mModel).setNewStartKey(mD...
mSunburstGUI.mParent, mSunburstGUI.mDb);
587,350
private void processConstant(Map<String, String> map, JCTree.JCVariableDecl def) {<NEW_LINE>JCTree.JCModifiers modifiers = def.getModifiers();<NEW_LINE>long mods = modifiers == null ? 0 : modifiers.flags;<NEW_LINE>int psf = Modifier.PUBLIC | Modifier.STATIC | Modifier.FINAL;<NEW_LINE>if ((mods & psf) == psf) {<NEW_LINE...
).toString(), value);
525,582
private Page parsePage(NextPageData overflow, List<TokenWithWidth> wordsAndSpaces, Predicate<List<String>> canPlaceAnchors, Function<List<String>, Integer> getLines) {<NEW_LINE>List<List<Token>> page = new ArrayList<>();<NEW_LINE>NextLineData lineOverflow = overflow.topLine;<NEW_LINE>List<String> anchorsOnPage = new Ar...
parseLine(lineOverflow, getAnchorViability, wordsAndSpaces);
1,799,154
public SSLContext createSSLContext() throws GeneralSecurityException, IOException {<NEW_LINE>SSLContext sslContext;<NEW_LINE>if (sslProviderString != null) {<NEW_LINE>sslContext = SSLContext.getInstance(protocol, sslProviderString);<NEW_LINE>} else {<NEW_LINE>sslContext = SSLContext.getInstance(protocol);<NEW_LINE>}<NE...
keyStore.load(inputStream, passwordChars);
672,419
protected void download() throws SubscriptionException {<NEW_LINE>log("Downloading");<NEW_LINE>Map map = JSONUtils.decodeJSON(subs.getJSON());<NEW_LINE>Long engine_id = (Long) map.get("engine_id");<NEW_LINE>String search_term = (String) map.get("search_term");<NEW_LINE>String networks = (String) map.get("networks");<NE...
(SubscriptionHistoryImpl) subs.getHistory();
525,070
private String doGenerate() {<NEW_LINE>Map<ClassDeclaration, Set<String>> planClassMap = parentClassMap.entrySet().stream().filter(kv -> kv.getValue().contains("org.apache.doris.nereids.trees.plans.Plan")).filter(kv -> !kv.getKey().name.equals("GroupPlan")).filter(kv -> !Modifier.isAbstract(kv.getKey().modifiers.mod) &...
PatternGenerator.generateCode(generators, this);
906,480
public static List<IGeometry> copy(IGeometry shape, long copies, String order, Point translate, double rotate, Point scale) {<NEW_LINE>ImmutableList.Builder<IGeometry> builder = ImmutableList.builder();<NEW_LINE>Geometry geo = new Geometry();<NEW_LINE>double tx = 0;<NEW_LINE>double ty = 0;<NEW_LINE>double r = 0;<NEW_LI...
t.scale(sx, sy);
1,138,706
public void configurarCores() {<NEW_LINE><MASK><NEW_LINE>painelPluginsInstalados.setBackground(ColorController.FUNDO_CLARO);<NEW_LINE>if (WeblafUtils.weblafEstaInstalado()) {<NEW_LINE>WeblafUtils.configuraWebLaf(scrollPlugins);<NEW_LINE>WeblafUtils.configurarBotao(botaoInstalarPlugins, ColorController.FUNDO_ESCURO, Col...
painelSelecionadorPlugins.setBackground(ColorController.FUNDO_MEDIO);
508,072
protected Object decode(Channel channel, SocketAddress remoteAddress, Object msg) throws Exception {<NEW_LINE>String sentence = (String) msg;<NEW_LINE>int type = Integer.parseInt(sentence.substring(6, 8), 16);<NEW_LINE>if (type == 0x01 || type == 0x02 || type == 0x04) {<NEW_LINE>ByteBuf buf = Unpooled.wrappedBuffer(Dat...
setLatitude(buf.readFloat());
474,886
/*<NEW_LINE>* Waits for the table to become ACTIVE Times out after 10 minutes<NEW_LINE>*/<NEW_LINE>private static void waitForTableToBecomeAvailable(String tableName) {<NEW_LINE>logger.info("Waiting for " + tableName + " to become ACTIVE...");<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>long endTime ...
+ (10 * 60 * 1000);
635,615
public static <T, V> Collection<V> collectIf(Iterable<T> iterable, Predicate<? super T> predicate, Function<? super T, ? extends V> function) {<NEW_LINE>if (iterable instanceof MutableCollection) {<NEW_LINE>return ((MutableCollection<T>) iterable).collectIf(predicate, function);<NEW_LINE>}<NEW_LINE>if (iterable instanc...
>) iterable, predicate, function);
390,226
public void addSyntheticFieldWriteAccessMethod(SyntheticMethodBinding methodBinding) {<NEW_LINE>generateMethodInfoHeader(methodBinding);<NEW_LINE>int methodAttributeOffset = this.contentsOffset;<NEW_LINE>// this will add exception attribute, synthetic attribute, deprecated attribute,...<NEW_LINE>int attributeNumber = g...
byte) (attributeNumber >> 8);
1,751,723
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException, ServletException {<NEW_LINE>// logic based on: https://app.code2flow.com/flowcharts/617a9aafdc97ee415448db74<NEW_LINE>String userId = InputParser.getQueryParamOrThrowError(req, "userId", true);<NEW_LINE>String email = InputParser...
sendJsonResponse(200, result, resp);
634,912
final DisassociateResolverQueryLogConfigResult executeDisassociateResolverQueryLogConfig(DisassociateResolverQueryLogConfigRequest disassociateResolverQueryLogConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateResolverQueryLogConfigRequest);<NEW_LINE>AWSRequestMetrics awsRe...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
390,309
public static String attrValueToString(Object value) {<NEW_LINE>if (value instanceof CompositeData[]) {<NEW_LINE>CompositeData[] data = (CompositeData[]) value;<NEW_LINE>ArrayBuilder sb = new ArrayBuilder();<NEW_LINE>for (int i = 0; i < data.length; i++) {<NEW_LINE>sb.append(compositeToString(data[i]));<NEW_LINE>}<NEW_...
+ value.toString() + "\"";
1,367,554
public void open(Map<String, Object> config, SinkContext sinkContext) throws Exception {<NEW_LINE>jdbcSinkConfig = JdbcSinkConfig.load(config);<NEW_LINE>jdbcUrl = jdbcSinkConfig.getJdbcUrl();<NEW_LINE>if (jdbcSinkConfig.getJdbcUrl() == null) {<NEW_LINE>throw new IllegalArgumentException("Required jdbc Url not set.");<N...
properties.setProperty("password", password);
1,092,284
private void displayManualLinks() {<NEW_LINE>// get table model for manual links<NEW_LINE>DefaultTableModel tm = (DefaultTableModel) jTableManLinks.getModel();<NEW_LINE>// reset the table<NEW_LINE>tm.setRowCount(0);<NEW_LINE>// get the current manual links<NEW_LINE>int[] manlinks;<NEW_LINE>manlinks = data.getCurrentMan...
.getZettelTitle(manlinks[cnt]);
1,046,128
private static ValueNode createNewObjectCall(UniverseMetaAccess metaAccess, JNIGraphKit kit, ResolvedJavaMethod constructor, FrameStateBuilder state, ValueNode... argsWithReceiver) {<NEW_LINE>assert constructor<MASK><NEW_LINE>ResolvedJavaMethod factoryMethod = FactoryMethodSupport.singleton().lookup(metaAccess, constru...
.isConstructor() : "Cannot create a NewObject call to the non-constructor method " + constructor;
961,162
public static void addContent(JRPrintPage printPage, int pageIndex, ElementRangeContents elementsToMove, int xdelta, int ydelta, DelayedFillActions delayedActions) {<NEW_LINE>if (elementsToMove != null && !elementsToMove.getElements().isEmpty()) {<NEW_LINE>List<JRPrintElement> elements = elementsToMove.getElements();<N...
printElement = elements.get(i);
1,652,476
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select intPrimitive, s1.* as s1stream, theString, symbol as sym, s0.* as s0stream from SupportBean#length(3) as s0, " + "SupportMarketDataBean#keepall as s1";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>env.assertStatement("...
sendBeanEvent(env, "E1", 13);
906,921
public void swapSegment(@Nullable Segment newSegment) {<NEW_LINE>while (true) {<NEW_LINE><MASK><NEW_LINE>if (currentSegment == null && newSegment == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (currentSegment != null && newSegment != null && !newSegment.getId().equals(currentSegment.getId())) {<NEW_LINE>// Sanity c...
ReferenceCountingSegment currentSegment = adapter.get();
1,154,795
public Config hazelcast() {<NEW_LINE>MapConfig eventStoreMap = new MapConfig("spring-boot-admin-event-store").setInMemoryFormat(InMemoryFormat.OBJECT).setBackupCount(1).setEvictionConfig(new EvictionConfig().setEvictionPolicy(EvictionPolicy.NONE)).setMergePolicyConfig(new MergePolicyConfig(PutIfAbsentMergePolicy.class....
.getName(), 100));
1,087,632
public static BufferedImage checkInputs(ImageBase src, @Nullable BufferedImage dst) {<NEW_LINE>if (dst != null) {<NEW_LINE>if (dst.getWidth() != src.getWidth() || dst.getHeight() != src.getHeight()) {<NEW_LINE>throw new IllegalArgumentException("Shapes do not match: " + "src = ( " + src.width + " , " + src.height + " )...
dst.getHeight() + " )");
873,727
public void disableGzipForCustomRequest(View view) {<NEW_LINE>AndroidNetworking.post(ApiEndPoint.BASE_URL + ApiEndPoint.POST_CREATE_AN_USER).addBodyParameter("firstname", "Amit").addBodyParameter("lastname", "Shekhar").setTag(this).setOkHttpClient(new OkHttpClient()).setPriority(Priority.LOW).build().setAnalyticsListen...
d(TAG, " isFromCache : " + isFromCache);
1,548,791
protected void internalTransform(Body b, String phaseName, Map<String, String> options) {<NEW_LINE>// if (b.getMethod().getSignature().indexOf("run")<0) return;<NEW_LINE>System.out.println("\n" + b.<MASK><NEW_LINE>if (stack) {<NEW_LINE>Map<Unit, Stack<Type>> stacks = null;<NEW_LINE>Map<Local, Local> b2j = soot.jbco.Mai...
getMethod().getSignature());
1,207,329
public Glossary map(EntityDetail entityDetail) {<NEW_LINE>// construct the right type of node.<NEW_LINE>Glossary glossary = new Glossary();<NEW_LINE>List<org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.instances.Classification<MASK><NEW_LINE>if (omrsClassifications != null)...
> omrsClassifications = entityDetail.getClassifications();
802,544
public DisassociateFirewallRuleGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DisassociateFirewallRuleGroupResult disassociateFirewallRuleGroupResult = new DisassociateFirewallRuleGroupResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int tar...
String currentParentElement = context.getCurrentParentElement();
1,417,255
public WriteRequest unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>WriteRequest writeRequest = new WriteRequest();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE...
String currentParentElement = context.getCurrentParentElement();
951,464
synchronized void addChunk(SegmentChunk segmentChunk, SegmentHandle activeChunkHandle) {<NEW_LINE>Preconditions.checkState(!this.sealed, "Cannot add SegmentChunks for a Sealed Handle.");<NEW_LINE>if (this.segmentChunks.size() > 0) {<NEW_LINE>long expectedOffset = this.segmentChunks.get(this.segmentChunks.size() - 1).ge...
Preconditions.checkNotNull(activeChunkHandle, "activeChunkHandle");
182,903
public void enterParameter(String ns, String name, String qname, Attributes attributes) {<NEW_LINE>Map<String, String> attrs = attributesToMap(attributes, true);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>String parameterName = attrs.get("name");<NEW_LINE>if (isValidIdentifier(parameterName)) {<NEW_LINE>// create a new parameter...
Type> types = parseTypes(typespec);
1,407,019
void initSpinner() {<NEW_LINE>if (spin == null) {<NEW_LINE>if (model.length == 1) {<NEW_LINE>spin = new Spinner<MASK><NEW_LINE>if (renderingPrototype != null) {<NEW_LINE>spin[0].setRenderingPrototype(renderingPrototype[0]);<NEW_LINE>}<NEW_LINE>setLayout(new BorderLayout());<NEW_LINE>addComponent(BorderLayout.CENTER, sp...
[] { createSpinner(0) };
1,141,318
static Stream<RetrieveResult> retrieve(String graphToken, Kernel kernel, long numSilentQueryDrops) throws TransactionFailureException {<NEW_LINE>Map<String, Object> systemData = new HashMap<>();<NEW_LINE>systemData.put("jvmMemoryFree", Runtime.getRuntime().freeMemory());<NEW_LINE>systemData.put("jvmMemoryTotal", Runtim...
"systemFreeSwapSpace", OsBeanUtil.getFreeSwapSpace());
1,258,977
public static SqlNode convertStatementToSqlNode(SQLStatement statement, List<?> params, ContextParameters context, ExecutionContext ec) {<NEW_LINE>context.setHeadHints(statement.getHeadHintsDirect());<NEW_LINE>if (CollectionUtils.isNotEmpty(params)) {<NEW_LINE>context.putParameter(ContextParameterKey.PARAMS, params);<N...
= new FastSqlToCalciteNodeVisitor(context, ec);
811,906
public OResultSet executeSimple(OCommandContext ctx) {<NEW_LINE>OInternalResultSet rs = new OInternalResultSet();<NEW_LINE>ODatabaseSession db = (ODatabaseSession) ctx.getDatabase();<NEW_LINE>OSecurityInternal security = ((ODatabaseInternal) db).getSharedContext().getSecurity();<NEW_LINE>ORole role = db.getMetadata().g...
result.setProperty("result", "failure");
1,127,362
public boolean apply(Game game, Ability source) {<NEW_LINE>for (Permanent permanent : game.getBattlefield().getActivePermanents(filter, source.getControllerId(), source, game)) {<NEW_LINE>permanent.moveToExile(null, "", source, game);<NEW_LINE>}<NEW_LINE>for (UUID playerId : game.getState().getPlayersInRange(source.get...
setLife(1, game, source);
874,395
public Optional<FieldValueBuilder> fieldValue(final Object value) {<NEW_LINE>if (value != null) {<NEW_LINE>if (value instanceof String) {<NEW_LINE>return Optional.of(SelectFieldType.builder().value((String) value));<NEW_LINE>}<NEW_LINE>if (value instanceof Boolean) {<NEW_LINE>return Optional.of(BoolSelectFieldType.buil...
().value(false));
1,186,448
static Integer executeHelpRequest(List<CommandLine> parsedCommands) {<NEW_LINE>Tracer t = CommandLine.tracer();<NEW_LINE>for (CommandLine parsed : parsedCommands) {<NEW_LINE>Help.ColorScheme colorScheme = parsed.getColorScheme();<NEW_LINE>PrintWriter out = parsed.getOut();<NEW_LINE>if (parsed.isUsageHelpRequested()) {<...
t.debug("helpCommand '%s' does not implement IHelpCommandInitializable2 or IHelpCommandInitializable...", fullName);
825,123
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("pos" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object obj = param.getLeafExpression().calculate(ctx);<NEW_LINE>return src...
MessageManager mm = EngineMessage.get();
1,677,832
public static synchronized // TODO remember to sync this with wear code base<NEW_LINE>BgReading bgReadingInsertFromG5(double calculated_value, final long timestamp, String sourceInfoAppend) {<NEW_LINE>final Sensor sensor = Sensor.currentSensor();<NEW_LINE>if (sensor == null) {<NEW_LINE>Log.w(TAG, "No sensor, ignoring t...
() -> notifyAndSync(bgr));
1,120,037
private void startAcceptingRequests() {<NEW_LINE>// START ALL THE WORKER THREADS (CONFIGURABLE)<NEW_LINE>int totalWorkers = OGlobalConfiguration.DISTRIBUTED_DB_WORKERTHREADS.getValueAsInteger();<NEW_LINE>if (totalWorkers < 0)<NEW_LINE>throw new ODistributedException("Cannot create configured distributed workers (" + to...
().size() + 1;
759,867
private void changeOnOffline(String subject, String consumerGroup, boolean isOnline, StatusSource src) {<NEW_LINE>synchronized (getConsumerLockKey(subject, consumerGroup, "onOffline")) {<NEW_LINE>final String realSubject = RetrySubjectUtils.getRealSubject(subject);<NEW_LINE>final String retrySubject = RetrySubjectUtils...
MapKeyBuilder.buildSubscribeKey(realSubject, consumerGroup);
695,950
private void prepare(UploadCheckPoint uploadCheckPoint, UploadFileRequest uploadFileRequest) {<NEW_LINE>uploadCheckPoint.magic = UploadCheckPoint.UPLOAD_MAGIC;<NEW_LINE>uploadCheckPoint<MASK><NEW_LINE>uploadCheckPoint.key = uploadFileRequest.getKey();<NEW_LINE>uploadCheckPoint.uploadFileStat = FileStat.getFileStat(uplo...
.uploadFile = uploadFileRequest.getUploadFile();
987,135
public final WebuiHUTransformCommandResult execute() {<NEW_LINE>final HUEditorRow row = getSelectedRow();<NEW_LINE>final ActionType action = getActionType();<NEW_LINE>final WebuiHUTransformParameters parameters = getParameters();<NEW_LINE>switch(action) {<NEW_LINE>case CU_To_NewCU:<NEW_LINE>{<NEW_LINE>return action_Spl...
), parameters.isHuPlanningReceiptOwnerPM_TU());
965,541
Statement toStatement(RouteMapEntry entry) {<NEW_LINE>List<BooleanExpr> matchConjuncts = entry.getMatches().map(m -> m.toBooleanExpr(_c, _vc, _w)).collect(ImmutableList.toImmutableList());<NEW_LINE>List<Statement> trueStatements = // Call statement is executed after all set statements.<NEW_LINE>Stream.// Call statement...
(matchConjuncts), trueStatements, noMatchStatements);
1,264,168
public void hardlink(String oldpath, String newpath) throws SftpException {<NEW_LINE>if (!extension_hardlink) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>try {<NEW_LINE>((MyPipedInputStream) io_in).updateReadSide();<NEW_LINE>String _oldpath = remoteAbsolutePath(oldpath);<NEW_LINE>newpath = remoteAbsolutePath(newpath);<NEW_LI...
throw new SftpException(SSH_FX_OP_UNSUPPORTED, "hardlink@openssh.com is not supported");
263,377
final DeleteReusableDelegationSetResult executeDeleteReusableDelegationSet(DeleteReusableDelegationSetRequest deleteReusableDelegationSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteReusableDelegationSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.get...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
860,202
protected Bundle doInBackground(Bundle... params) {<NEW_LINE>Bundle args = params[0];<NEW_LINE>Bundle result = new Bundle(args);<NEW_LINE>String userID = args.getString(PARAM_USER_ID);<NEW_LINE>String token = mSharedPreferences.getString(SAVE_STATE_KEY_OAUTH_TOKEN, null);<NEW_LINE>String urlString = INSTAGRAM_APIURL + ...
InputStream inputStream = connection.getInputStream();
199,767
public static void main(String[] args) {<NEW_LINE>String url;<NEW_LINE>if (args.length == 0)<NEW_LINE>url = "jdbc:virtuoso://localhost:1111";<NEW_LINE>else<NEW_LINE>url = args[0];<NEW_LINE>Node foo1 = Node.createURI("http://example.org/#foo1");<NEW_LINE>Node bar1 = Node.createURI("http://example.org/#bar1");<NEW_LINE>N...
foo3 = Node.createURI("http://example.org/#foo3");
1,506,225
/*<NEW_LINE>* @see com.sitewhere.commands.spi.ICommandDeliveryParameterExtractor#<NEW_LINE>* extractDeliveryParameters(com.sitewhere.commands.spi.ICommandDestination,<NEW_LINE>* com.sitewhere.spi.device.IDeviceNestingContext, java.util.List,<NEW_LINE>* com.sitewhere.spi.device.command.IDeviceCommandExecution)<NEW_LINE>...
.getCommand().getMetadata();
1,794,788
private Map<String, Map<String, Object>> buildReferencesMetadata(Map<InjectionMetadata.InjectedElement, ReferenceBean<?>> injectedElementReferenceBeanMap) {<NEW_LINE>Map<String, Map<String, Object>> referencesMetadata = new HashMap<>();<NEW_LINE>for (Map.Entry<InjectionMetadata.InjectedElement, ReferenceBean<?>> entry ...
beanMetadata = new LinkedHashMap<>();
1,321,096
public VariableAttributes decode(SerializationContext context, UaDecoder decoder) {<NEW_LINE>UInteger specifiedAttributes = decoder.readUInt32("SpecifiedAttributes");<NEW_LINE>LocalizedText displayName = decoder.readLocalizedText("DisplayName");<NEW_LINE>LocalizedText description = decoder.readLocalizedText("Descriptio...
valueRank = decoder.readInt32("ValueRank");
1,603,692
public Response delete(@PathParam("id") String id) {<NEW_LINE>if (!authenticate() || principal.isGuest()) {<NEW_LINE>throw new ForbiddenClientException();<NEW_LINE>}<NEW_LINE>// Check that the user can share the linked document<NEW_LINE>AclDao aclDao = new AclDao();<NEW_LINE>List<Acl> aclList = aclDao.getByTargetId(id)...
setDocumentId(acl.getSourceId());
754,983
public JsonResult execute() throws InvalidHttpRequestBodyException {<NEW_LINE>FeedbackSessionRemindRequest remindRequest = getAndValidateRequestBody(FeedbackSessionRemindRequest.class);<NEW_LINE>String googleIdOfInstructorToNotify = remindRequest.getRequestingInstructorId();<NEW_LINE>if (googleIdOfInstructorToNotify ==...
instructorsToEmailList = new ArrayList<>();
53,220
private Optional<Long> addErrorTasksIfAny(TaskControl lockedTask, boolean isParentErrorPropagatedFromChildren, Function<Config, Config> errorBuilder) throws TaskLimitExceededException {<NEW_LINE>Config subtaskConfig = lockedTask.get().getConfig().getErrorConfig();<NEW_LINE>if (subtaskConfig.isEmpty()) {<NEW_LINE>return...
subtaskConfig.setNested("_export", export);
333,088
protected void assemble(Fields fields) {<NEW_LINE>// Keep a local cache of converted fields so as not to create redundant<NEW_LINE>// objects.<NEW_LINE>HashMap<Object, Object> converted = new HashMap<Object, Object>();<NEW_LINE>// Convert duration fields...<NEW_LINE>fields.eras = convertField(fields.eras, converted);<N...
convertField(fields.months, converted);
1,234,786
public void marshall(GCMChannelResponse gCMChannelResponse, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (gCMChannelResponse == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(gCMChannelResponse.getApplicat...
gCMChannelResponse.getLastModifiedDate(), LASTMODIFIEDDATE_BINDING);
1,714,147
public Stream<ORawPair<Object, ORID>> iterateEntriesBetween(Object rangeFrom, boolean fromInclusive, Object rangeTo, boolean toInclusive, boolean ascSortOrder, ValuesTransformer transformer) {<NEW_LINE>if (mvTree != null) {<NEW_LINE>return mvTree.iterateEntriesBetween(rangeFrom, fromInclusive, rangeTo, toInclusive, asc...
final OCompositeKey fromKey = convertToCompositeKey(rangeFrom);
1,205,729
private void decodingLoop() {<NEW_LINE>Executors.newSingleThreadExecutor().execute(() -> {<NEW_LINE>boolean errFromCallback;<NEW_LINE>while (true) {<NEW_LINE>errFromCallback = false;<NEW_LINE>try {<NEW_LINE>Packet res = readPacket(inputStream);<NEW_LINE>if (res == null) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>suspendInfo...
LOG.error("Error in debugger decoding loop", e);
984,233
public static CodegenExpression codegen(ExprDotNodeForgeStream forge, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LINE>EPTypeClass evaluationType = forge.getEvaluationType();<NEW_LINE>EPTypeClass eventUndType = forge.getEventType().getUnderlyingEP...
).blockReturn(constantNull());
1,728,710
private void assertDockerReachable(final int probePort) throws Exception {<NEW_LINE>try (final DockerClient docker = getNewDockerClient()) {<NEW_LINE>// Pull our base images<NEW_LINE>try {<NEW_LINE>docker.inspectImage(BUSYBOX);<NEW_LINE>} catch (ImageNotFoundException e) {<NEW_LINE>docker.pull(BUSYBOX);<NEW_LINE>}<NEW_...
createContainer(config, testTag + "-probe");
1,479,450
public static void response(ServerConnection c) {<NEW_LINE>SchemaConfig schema = c.getSchemaConfig();<NEW_LINE>if (schema == null) {<NEW_LINE>c.writeErrMessage(ErrorCode.ER_BAD_DB_ERROR, "Unknown database '" + <MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (SystemDbHelper.isDBBuildIn(schema.getName())) {<NEW_LINE>c.wri...
c.getSchema() + "'");
701,480
private void deletePartialRow(DataPointsRowKey rowKey, long start, long end, ClusterConnection cluster) throws DatastoreException {<NEW_LINE>RowSpec rowSpec = cluster.getRowSpec();<NEW_LINE>if (cluster.psDataPointsDeleteRange != null) {<NEW_LINE>BoundStatement statement = new BoundStatement(cluster.psDataPointsDeleteRa...
statement.setBytesUnsafe(2, b);
730,901
protected void commit() {<NEW_LINE>AppFolder folder = (AppFolder) AppFolderEditWindow.this.folder;<NEW_LINE>if (StringUtils.trimToNull(nameField.getValue()) == null) {<NEW_LINE>String msg = messages.getMessage(messagesPack, "folders.folderEditWindow.emptyName");<NEW_LINE>App.getInstance().getWindowManager().showNotific...
setName(nameField.getValue());
169,341
protected Composite createDialogArea(Composite parent) {<NEW_LINE>Composite composite = super.createDialogArea(parent);<NEW_LINE>objectTree = new Tree(composite, SWT.BORDER | SWT.SINGLE | SWT.FULL_SELECTION);<NEW_LINE>GridData gd = new GridData(GridData.FILL_BOTH);<NEW_LINE>gd.widthHint = 500;<NEW_LINE>gd.heightHint = ...
new GridData(GridData.FILL_HORIZONTAL));
1,683,334
public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>if (item.getItemId() == R.id.action_feedback) {<NEW_LINE>String to = "pieter.pareit@gmail.com";<NEW_LINE>String subject = "FTP Server feedback";<NEW_LINE>String message = "Device: " + Build.MODEL + "\n" + "Android version: " + VERSION.RELEASE + "-" + VERSIO...
Toast.LENGTH_LONG).show();
697,700
final ListModelQualityJobDefinitionsResult executeListModelQualityJobDefinitions(ListModelQualityJobDefinitionsRequest listModelQualityJobDefinitionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listModelQualityJobDefinitionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);