idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
208,811
// kill default signal SIGTERM - 15, SIGKILL -9, SIGQUIT - 3<NEW_LINE>private List<String> prepareKillCommands(String module, String pid, String signal, boolean killWithRoot) {<NEW_LINE>List<String> result;<NEW_LINE>if (pid.isEmpty() || killWithRoot) {<NEW_LINE>String killStringToyBox = "toybox pkill " + module;<NEW_LI...
= "kill -s " + signal + " " + pid;
1,334,188
private void buildPartitionsSequentially(long dbId, OlapTable table, List<Partition> partitions, int numReplicas, int numBackends) throws DdlException {<NEW_LINE>// Try to bundle at least 200 CreateReplicaTask's in a single AgentBatchTask.<NEW_LINE>// The number 200 is just an experiment value that seems to work withou...
size(), i + partitionGroupSize);
247,022
protected void linkAttributes(Agent<?, ?, ?> agent, String assetId, Collection<Attribute<?>> attributes) {<NEW_LINE>withLock(getClass().getSimpleName() + "::linkAttributes", () -> {<NEW_LINE>Protocol<?> protocol = <MASK><NEW_LINE>if (protocol == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.info("Linking asset '" + ...
getProtocolInstance(agent.getId());
30,082
public double readDouble(ByteBuffer buffer) {<NEW_LINE>if (!flag) {<NEW_LINE>flag = true;<NEW_LINE>try {<NEW_LINE>int[] buf = new int[8];<NEW_LINE>for (int i = 0; i < 8; i++) {<NEW_LINE>buf[i] = ReadWriteIOUtils.read(buffer);<NEW_LINE>}<NEW_LINE>long res = 0L;<NEW_LINE>for (int i = 0; i < 8; i++) {<NEW_LINE>res += ((lo...
tmp = Double.longBitsToDouble(preValue);
157,135
public IStatus install(String packageName, String displayName, boolean global, char[] password, IPath workingDirectory, IProgressMonitor monitor) {<NEW_LINE>SubMonitor sub = SubMonitor.convert(monitor, 10);<NEW_LINE>String globalPrefixPath = null;<NEW_LINE>try {<NEW_LINE>// If we are doing a global install we will fetc...
("Failed to install {0}.\n\n{1}", packageName, message));
610,172
public void testClientBasicSSL_WebTarget(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("hostname");<NEW_LINE>String serverPort = param.get("secport");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defaultThreadFactory()...
executorService = Executors.newSingleThreadExecutor(jaxrs21ThreadFactory);
89,046
public void delete(Iterable<UserProfileRow> rows) {<NEW_LINE>Multimap<UserProfileRow, UserProfileNamedColumnValue<?>> result = getRowsMultimap(rows);<NEW_LINE>deleteCookiesIdx(result);<NEW_LINE>deleteCreatedIdx(result);<NEW_LINE>deleteUserBirthdaysIdx(result);<NEW_LINE>List<byte[]> rowBytes = Persistables.persistAll(ro...
PtBytes.toCachedBytes("m")));
1,348,643
private List<Future> schedule(Settings settings) {<NEW_LINE>List<Future> futures = new LinkedList<>();<NEW_LINE>if (threadPoolExecutor != null) {<NEW_LINE>logger.info("already scheduled");<NEW_LINE>return futures;<NEW_LINE>}<NEW_LINE>String[] schedule = settings.getAsArray("schedule");<NEW_LINE>Long seconds = settings....
.getAsInt("threadpoolsize", 1));
141,517
public void publish(@Nonnull List<? extends EventMessage<?>> events) {<NEW_LINE>List<MessageMonitor.MonitorCallback> ingested = events.stream().map(messageMonitor::onMessageIngested).collect(Collectors.toList());<NEW_LINE>if (CurrentUnitOfWork.isStarted()) {<NEW_LINE>UnitOfWork<?> unitOfWork = CurrentUnitOfWork.get();<...
(unitOfWork).addAll(events);
368,233
public ListUserPoolClientsResult listUserPoolClients(ListUserPoolClientsRequest listUserPoolClientsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUserPoolClientsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont...
ListUserPoolClientsRequestMarshaller().marshall(listUserPoolClientsRequest);
658,886
private void loadWebInfMap(String webInfPath, List loadedLocations) {<NEW_LINE>// No need to search META-INF resources<NEW_LINE>if (ctxt != null) {<NEW_LINE>Set libSet = ctxt.getResourcePaths(webInfPath, false);<NEW_LINE>if (libSet != null) {<NEW_LINE><MASK><NEW_LINE>while (it.hasNext()) {<NEW_LINE>String resourcePath ...
Iterator it = libSet.iterator();
647,337
public ClientStats stats() {<NEW_LINE>final LoadingCache<BufferedIncrement, BufferedIncrement.Amount> cache = increment_buffer;<NEW_LINE>long inflight_rpcs = 0;<NEW_LINE>long pending_rpcs = 0;<NEW_LINE>long pending_batched_rpcs = 0;<NEW_LINE>int dead_region_clients = 0;<NEW_LINE>final Collection<RegionClient> region_cl...
RegionClientStats stats = rc.stats();
886,470
public StartSelector unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartSelector startSelector = new StartSelector();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
540,287
public void apply(Activity activity, FormatItem format, boolean force) {<NEW_LINE>setContext(activity);<NEW_LINE>if (activity == null) {<NEW_LINE>Log.e(TAG, "Activity in null. exiting...");<NEW_LINE>if (mListener != null) {<NEW_LINE>mListener.onCancel();<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (format == nul...
Log.e(TAG, "Throttling afr calls...");
82,555
private void generateCreateErrorMethods(ClassWriter cw, List<BIRNode.BIRTypeDefinition> errorTypeDefList, String moduleInitClass, String typeOwnerClass, SymbolTable symbolTable) {<NEW_LINE>MethodVisitor mv = cw.visitMethod(ACC_PUBLIC + ACC_STATIC, CREATE_ERROR_VALUE, CREATE_ERROR, null, null);<NEW_LINE>mv.visitCode();<...
mv.visitVarInsn(ALOAD, 1);
256,490
public List<Document> bulkFetch(List<DBRef> refs) {<NEW_LINE><MASK><NEW_LINE>Assert.notNull(refs, "DBRef to fetch must not be null!");<NEW_LINE>if (refs.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>String collection = refs.iterator().next().getCollectionName();<NEW_LINE>List<Object> ids = n...
Assert.notNull(mongoDbFactory, "Factory must not be null!");
432,160
public static ListAsrVocabResponse unmarshall(ListAsrVocabResponse listAsrVocabResponse, UnmarshallerContext _ctx) {<NEW_LINE>listAsrVocabResponse.setRequestId(_ctx.stringValue("ListAsrVocabResponse.RequestId"));<NEW_LINE>listAsrVocabResponse.setCode<MASK><NEW_LINE>listAsrVocabResponse.setMessage(_ctx.stringValue("List...
(_ctx.stringValue("ListAsrVocabResponse.Code"));
1,117,252
public Object destination(String destPropertyPath) {<NEW_LINE>if (destPropertyPath == null)<NEW_LINE>errors.errorNullArgument("destPropertyPath");<NEW_LINE>String[] propertyNames = DOT_PATTERN.split(destPropertyPath);<NEW_LINE>destinationMutators = new ArrayList<Mutator>(propertyNames.length);<NEW_LINE>ValueWriter<?> v...
mutatorFor(propertyType, propertyName, configuration);
1,321,723
public void doCollectInformation(@Nonnull ProgressIndicator progress) {<NEW_LINE>final List<LineMarkerInfo<PsiElement>> lineMarkers = new ArrayList<>();<NEW_LINE>FileViewProvider viewProvider = myFile.getViewProvider();<NEW_LINE>for (Language language : viewProvider.getLanguages()) {<NEW_LINE>final PsiFile root = viewP...
myProject, getDocument(), info);
1,548,054
protected final PutObjectRequest updateInstructionPutRequest(PutObjectRequest req, ContentCryptoMaterial cekMaterial) {<NEW_LINE>byte[] bytes = cekMaterial.toJsonString(cryptoConfig.getCryptoMode()).getBytes(UTF8);<NEW_LINE>ObjectMetadata metadata = req.getMetadata();<NEW_LINE>if (metadata == null) {<NEW_LINE>metadata ...
setInputStream(new ByteArrayInputStream(bytes));
767,935
protected void updateEntityClient() {<NEW_LINE>if (PersonalConfig.machineParticlesEnabled.get() && isActive()) {<NEW_LINE>double x = getPos().getX() + world.rand.nextFloat();<NEW_LINE>double y = getPos().getY() + world.rand.nextFloat();<NEW_LINE>double z = getPos().getZ() + world.rand.nextFloat();<NEW_LINE>world.spawnP...
z, 0.0D, 0.0D, 0.0D);
1,844,125
public void marshall(MLModel mLModel, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (mLModel == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(mLModel.getMLModelId(), MLMODELID_BINDING);<NEW_LINE>protocolMa...
e.getMessage(), e);
1,832,002
public void deleteAttachmentsByTaskId(String taskId) {<NEW_LINE>checkHistoryEnabled();<NEW_LINE>List<AttachmentEntity> attachments = getDbSqlSession().selectList("selectAttachmentsByTaskId", taskId);<NEW_LINE>boolean dispatchEvents = getProcessEngineConfiguration().getEventDispatcher().isEnabled();<NEW_LINE>String proc...
String contentId = attachment.getContentId();
1,344,589
public boolean checkInterveningIfClause(Game game) {<NEW_LINE>Effect effect = <MASK><NEW_LINE>UUID targetId = (UUID) effect.getValue("targetId");<NEW_LINE>GameEvent.EventType eventType = (GameEvent.EventType) effect.getValue("eventType");<NEW_LINE>UUID exileId = (UUID) effect.getValue("exileId");<NEW_LINE>if (targetId ...
getEffects().get(0);
1,831,470
public void afterPropertiesSet() throws Exception {<NEW_LINE>TaskTrackerProperties properties = null;<NEW_LINE>if (locations == null || locations.length == 0) {<NEW_LINE>properties = new TaskTrackerProperties();<NEW_LINE>properties.setClusterName(clusterName);<NEW_LINE>properties.setDataPath(dataPath);<NEW_LINE>propert...
taskTracker = TaskTrackerBuilder.buildByProperties(properties);
1,209,827
public DnsRuleGroupLimitExceededViolation unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DnsRuleGroupLimitExceededViolation dnsRuleGroupLimitExceededViolation = new DnsRuleGroupLimitExceededViolation();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetD...
String currentParentElement = context.getCurrentParentElement();
144,680
public static RecalibrationReport apply(final JavaPairRDD<GATKRead, Iterable<GATKVariant>> readsWithVariants, final SAMFileHeader header, final String referenceFileName, final RecalibrationArgumentCollection recalArgs) {<NEW_LINE>JavaRDD<RecalibrationTables> unmergedTables = readsWithVariants.mapPartitions(readsWithVar...
.generateReportTables(combinedTables, covariates));
139,302
public static Result execute(Step step, Actions actions) {<NEW_LINE>String text = step.getText();<NEW_LINE>List<MethodMatch> matches = findMethodsMatching(text);<NEW_LINE>if (matches.isEmpty()) {<NEW_LINE>KarateException e = new KarateException("no step-definition method match found for: " + text);<NEW_LINE>return Resu...
match = matches.get(0);
1,842,324
final GetMapTileResult executeGetMapTile(GetMapTileRequest getMapTileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMapTileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,670,965
private void addActionButtonToFab(@NonNull FloatingActionMenu actionsMenu, @Nullable Integer bgColorOverride, @Nullable Integer iconColorOverride, @NonNull String name, @DrawableRes int icon, @NonNull View.OnClickListener listener) {<NEW_LINE>FloatingActionButton button = new FloatingActionButton(getContext());<NEW_LIN...
R.attr.proton_icon_norm) : iconColorOverride;
1,310,283
public void notifyResponse(V8Request request, V8Response response) {<NEW_LINE>Pair<JSLineBreakpoint, Location> lbLoc;<NEW_LINE>synchronized (submittingBreakpoints) {<NEW_LINE>lbLoc = submittingBreakpoints.remove(request.getArguments());<NEW_LINE>}<NEW_LINE>if (lbLoc == null) {<NEW_LINE>LOG.log(Level.INFO, "Did not find...
JSLineBreakpoint lb = lbLoc.first();
1,781,489
private void updateVolumeAfterMigration(Answer answer, DataObject srcData, DataObject destData) {<NEW_LINE>VolumeVO destinationVO = volDao.findById(destData.getId());<NEW_LINE>if (!(answer instanceof MigrateVolumeAnswer)) {<NEW_LINE>// OfflineVmwareMigration: reset states and such<NEW_LINE>VolumeVO sourceVO = volDao.fi...
"unexpected answer from hypervisor agent: " + answer.getDetails());
414,988
final DeleteTableResult executeDeleteTable(DeleteTableRequest deleteTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
(super.beforeMarshalling(deleteTableRequest));
11,744
public void execute(AdminCommandContext context) {<NEW_LINE>final ActionReport report = context.getActionReport();<NEW_LINE>// No duplicate auth realms found. So add one.<NEW_LINE>try {<NEW_LINE>ConfigSupport.apply(new SingleConfigCode<SecurityService>() {<NEW_LINE><NEW_LINE>public Object run(SecurityService param) thr...
param.createChild(JaccProvider.class);
851,111
public boolean isSame(FilterState other) {<NEW_LINE>Boolean wasEnabled = (Boolean) other.get(ENABLED_KEY);<NEW_LINE>if (!wasEnabled && !isEnabled) {<NEW_LINE>// we were disabled and we are still disabled...so we are considered unchanged<NEW_LINE>// for purposes of filtering<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if ...
String currentLowerText = lowerAddressRangeTextField.getText();
464,713
private Builder buildArg() {<NEW_LINE>if (this.path.startsWith(TUNNEL)) {<NEW_LINE>String remain = StringUtils.removeStart(path, TUNNEL);<NEW_LINE>String[] tokens = StringUtils.split(remain, '@');<NEW_LINE>if (tokens.length != 2) {<NEW_LINE>throw ILLEGAL_TUNNEL_EXCEPTION;<NEW_LINE>}<NEW_LINE>String[] idKey = StringUtil...
(endpointAndOthers[1], '&');
1,454,335
public Sheet unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Sheet sheet = new Sheet();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = conte...
class).unmarshall(context));
1,818,417
public void visit(String name, Object value) {<NEW_LINE>// Skip null<NEW_LINE>if (value == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (value instanceof String) {<NEW_LINE>collector.queries(StringQuery.class).forEach(q -> {<NEW_LINE>q.match((String) value);<NEW_LINE>collector.addMatched(context, q);<NEW_LINE>});<NE...
Array.get(value, i);
589,141
public static DescribeSlowLogRecordsResponse unmarshall(DescribeSlowLogRecordsResponse describeSlowLogRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSlowLogRecordsResponse.setRequestId(_ctx.stringValue("DescribeSlowLogRecordsResponse.RequestId"));<NEW_LINE>describeSlowLogRecordsResponse.setTotalRecordCou...
(_ctx.integerValue("DescribeSlowLogRecordsResponse.PageRecordCount"));
1,660,814
final UpdateGlobalSettingsResult executeUpdateGlobalSettings(UpdateGlobalSettingsRequest updateGlobalSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGlobalSettingsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Updat...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,106,927
public void writeCandlestickChart(JRChart chart) throws IOException {<NEW_LINE>writer.startElement(JRXmlConstants.ELEMENT_candlestickChart, getNamespace());<NEW_LINE>writeChart(chart);<NEW_LINE>writeHighLowDataset((<MASK><NEW_LINE>JRCandlestickPlot plot = (JRCandlestickPlot) chart.getPlot();<NEW_LINE>writer.startElemen...
JRHighLowDataset) chart.getDataset());
490,994
public boolean onScroll(MotionEvent e1, MotionEvent e2, float distanceX, float distanceY) {<NEW_LINE>if (!isActive || !allowPan) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>if (control == null) {<NEW_LINE>isActive = false;<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final Point2d newScreenPos = ne...
MapController control = mapControl.get();
1,495,001
public DeleteCostCategoryDefinitionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteCostCategoryDefinitionResult deleteCostCategoryDefinitionResult = new DeleteCostCategoryDefinitionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement...
class).unmarshall(context));
1,725,236
public synchronized void clear() {<NEW_LINE>logger.debug("Clearing all items from auto refresh scheduler");<NEW_LINE>ivUpdateQueue.clear();<NEW_LINE>// Restarting schedule executor<NEW_LINE>if (ivScheduledExecutorService != null) {<NEW_LINE>logger.debug("Schedule executor restart.");<NEW_LINE>ivScheduledExecutorService...
ivScheduledExecutorService = Executors.newScheduledThreadPool(cvNumberOfThreads);
1,734,063
public void executeImpl(AndroidGraphics underlying) {<NEW_LINE>if (width != lastWidth || height != lastHeight) {<NEW_LINE>lastWidth = width;<NEW_LINE>lastHeight = height;<NEW_LINE>switch(bgType) {<NEW_LINE>case Style.BACKGROUND_GRADIENT_LINEAR_VERTICAL:<NEW_LINE>paint.setShader(new LinearGradient(0, 0, 0, height, start...
, Shader.TileMode.MIRROR));
1,422,005
public List<ExtractResult> expandHalfSuffix(String source, List<ExtractResult> result, List<ExtractResult> numbers) {<NEW_LINE>// Expand Chinese phrase to the `half` patterns when it follows closely origin phrase.<NEW_LINE>if (halfUnitRegex != null) {<NEW_LINE>Match[] match = RegExpUtility.getMatches(halfUnitRegex, sou...
tmp = new ArrayList<>();
727,163
private void handleAckTuple(HeronTuples.AckTuple ackTuple, boolean isSuccess) {<NEW_LINE>for (HeronTuples.RootId rt : ackTuple.getRootsList()) {<NEW_LINE>if (rt.getTaskid() != helper.getMyTaskId()) {<NEW_LINE>throw new RuntimeException(String.format("Receiving tuple for task %d in task %d", rt.getTaskid()<MASK><NEW_LIN...
, helper.getMyTaskId()));
546,048
void startServer(ServerSocket serverSocket) {<NEW_LINE>final ConnectionListener connectionListener = new ConnectionListener() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onConnection(Connection connection) {<NEW_LINE>if (!connection.isStopped()) {<NEW_LINE>inBoundConnections.add((InboundConnection) connection);...
-> e.onConnection(connection));
1,245,389
public Model preprocessModel(Model model, GoSettings settings) {<NEW_LINE>ServiceShape service = model.expectShape(settings.getService(), ServiceShape.class);<NEW_LINE>if (!S3ModelUtils.isServiceS3(model, service)) {<NEW_LINE>return model;<NEW_LINE>}<NEW_LINE>for (OperationShape operationShape : TopDownIndex.of(model)....
Builder builder = operationShape.toBuilder();
1,139,540
// //////////////////////////////////////////////////////////////////////////<NEW_LINE>// Internals<NEW_LINE>@Override<NEW_LINE>public List<Message> createSpawnMessage() {<NEW_LINE>List<Message> result = new LinkedList<>();<NEW_LINE>// spawn player<NEW_LINE>double x = location.getX();<NEW_LINE>double y = location.getY(...
pitch = Position.getIntPitch(location);
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 -> a / n).toArray();<NEW_LINE>double[] p2 = Arrays.stream(contingency.b).mapToDouble(b -> b / n).toArr...
(h1, h2) - E);
1,045,788
public static void createDevice(String projectId, String cloudRegion, String registryName, String deviceId) throws GeneralSecurityException, IOException {<NEW_LINE>// [START create_device]<NEW_LINE>GoogleCredentials credential = GoogleCredentials.getApplicationDefault().createScoped(CloudIotScopes.all());<NEW_LINE>Json...
"Created device: " + createdDevice.toPrettyString());
874,220
protected List<String> statsDisplay(Player player, float skillValue, boolean hasEndurance, boolean isLucky) {<NEW_LINE>List<String> <MASK><NEW_LINE>if (canFuelEfficiency) {<NEW_LINE>messages.add(getStatMessage(false, true, SubSkillType.SMELTING_FUEL_EFFICIENCY, burnTimeModifier));<NEW_LINE>}<NEW_LINE>if (canSecondSmelt...
messages = new ArrayList<>();
485,705
// injects needs methods as defined by ScriptClassInfo<NEW_LINE>protected void injectNeedsMethods(ScriptScope scriptScope) {<NEW_LINE>Location internalLocation = new Location("$internal$ScriptInjectionPhase$injectNeedsMethods", 0);<NEW_LINE>for (org.objectweb.asm.commons.Method needsMethod : scriptScope.getScriptClassI...
(Collections.emptyList()));
252,511
public static Map<String, String> updatePartitionMetadataWithFileNamesAndSizes(PartitionUpdate partitionUpdate, Map<String, String> metadata) {<NEW_LINE>ImmutableMap.Builder<String, String> partitionMetadata = ImmutableMap.builder();<NEW_LINE>List<FileWriteInfo> fileWriteInfos = new ArrayList<>(partitionUpdate.getFileW...
).collect(toImmutableList());
1,146,868
public void run() {<NEW_LINE>try {<NEW_LINE>File contentFile = new File(getFilesDir(), CONTENT_FILE);<NEW_LINE>if (contentFile.createNewFile()) {<NEW_LINE>// Content file exist did not exist in internal storage and new file was created.<NEW_LINE>// Copy in the default content.<NEW_LINE>InputStream is;<NEW_LINE>is = <MA...
getAssets().open(DEFAULT_CONTENT_FILE);
1,339,948
private static void replaceWithTernary(MethodNode mth, IfRegion ifRegion, BlockNode block, InsnNode insn) {<NEW_LINE>RegisterArg resArg = insn.getResult();<NEW_LINE>if (resArg.getSVar().getUseList().size() != 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>PhiInsn phiInsn = resArg.getSVar().getOnlyOneUseInPhi();<NEW_LINE>if ...
.wrapInsnIntoArg(insn), otherArg);
915,021
private List<NameValueCountPair> groupByProcess(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(TaskCompleted.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LI...
root.get(TaskCompleted_.processName);
1,115,450
private void scanGames(Context context) {<NEW_LINE>gameList.clear();<NEW_LINE>errorList.clear();<NEW_LINE>// Retrieve the games folder<NEW_LINE>Uri gamesFolderURI = SettingsManager.getGamesFolderURI(context);<NEW_LINE>DocumentFile gamesFolder = Helper.getFileFromURI(context, gamesFolderURI);<NEW_LINE>// 1) The folder m...
gameList.size() + " game(s) found.");
346,520
private static void loadDetails(View dialogLayout, ThemedActivity activity, MediaDetailsMap<String, String> metadata) {<NEW_LINE>LinearLayout detailsTable = dialogLayout.findViewById(R.id.ll_list_details);<NEW_LINE>int tenPxInDp = Measure.pxToDp(10, activity);<NEW_LINE>// more or less an hundred. Did not used weight fo...
(metadata.getLabel(index));
207,770
public static List<LatLon> parse(final String encoded, double precision) {<NEW_LINE>List<LatLon> track = new ArrayList<LatLon>();<NEW_LINE>int index = 0;<NEW_LINE>int lat = 0, lng = 0;<NEW_LINE>while (index < encoded.length()) {<NEW_LINE>int b, shift = 0, result = 0;<NEW_LINE>do {<NEW_LINE>b = encoded.charAt(index++) -...
.charAt(index++) - 63;
1,376,011
final DeleteApnsVoipSandboxChannelResult executeDeleteApnsVoipSandboxChannel(DeleteApnsVoipSandboxChannelRequest deleteApnsVoipSandboxChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteApnsVoipSandboxChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Pinpoint");
123,949
public static Template<?> createTemplate(Context context, MethodTree decl) {<NEW_LINE>MethodSymbol declSym = ASTHelpers.getSymbol(decl);<NEW_LINE>ImmutableClassToInstanceMap<Annotation> annotations = UTemplater.annotationMap(declSym);<NEW_LINE>ImmutableMap<String, VarSymbol> freeExpressionVars = freeExpressionVariables...
throw new IllegalArgumentException("Expected genericType to be either a ForAll or a UMethodType, but was " + genericType);
351,397
public static String optimizedPathFor(File path, File optimizedDirectory) {<NEW_LINE>if (ShareTinkerInternals.isAfterAndroidO()) {<NEW_LINE>// dex_location = /foo/bar/baz.jar<NEW_LINE>// odex_location = /foo/bar/oat/<isa>/baz.odex<NEW_LINE>String currentInstructionSet;<NEW_LINE>try {<NEW_LINE>currentInstructionSet = Sh...
+ "/" + fileName + ShareConstants.ODEX_SUFFIX;
271,760
private Content retrieveInheritedDocumentation(TagletWriter writer, ProgramElementDoc ped, Tag holderTag, boolean isFirstSentence) {<NEW_LINE>Content replacement = writer.getOutputInstance();<NEW_LINE>Configuration configuration = writer.configuration();<NEW_LINE>Taglet inheritableTaglet = holderTag == null ? null : co...
, holderTag, isFirstSentence, true));
1,415,174
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.vaadin.addon.calendar.ui.CalendarComponentEvents.WeekClickHandler<NEW_LINE>* #weekClick<NEW_LINE>* (com.vaadin.addon.calendar.ui.CalendarComponentEvents.WeekClick)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void weekClick(WeekClick event) {<NEW_L...
set(GregorianCalendar.WEEK_OF_YEAR, week);
435,112
public Status removeLearners(final String groupId, final Configuration conf, final List<PeerId> learners) {<NEW_LINE>checkLearnersOpParams(groupId, conf, learners);<NEW_LINE>final PeerId leaderId = new PeerId();<NEW_LINE>final Status st = getLeader(groupId, conf, leaderId);<NEW_LINE>if (!st.isOk()) {<NEW_LINE>return st...
setLeaderId(leaderId.toString());
673,557
private int writeInternal(String path, Pointer buf, @size_t long size, @off_t long offset, FuseFileInfo fi) {<NEW_LINE>if (size > Integer.MAX_VALUE) {<NEW_LINE>LOG.error("Cannot write more than Integer.MAX_VALUE");<NEW_LINE>return ErrorCodes.EIO();<NEW_LINE>}<NEW_LINE>final int sz = (int) size;<NEW_LINE>final long fd =...
getOut().write(dest);
780,076
public int compare(Message a, Message b) {<NEW_LINE>MessagePart a0 = firstPartOf(a);<NEW_LINE>MessagePart b0 = firstPartOf(b);<NEW_LINE>InputSource aSrc = toInputSource(a0), bSrc = toInputSource(b0);<NEW_LINE>// Compure by source first.<NEW_LINE>if (aSrc != null && bSrc != null) {<NEW_LINE>int delta = aSrc.getUri().<MA...
compareTo(bSrc.getUri());
768,763
protected boolean isFieldDirty(PopulateValueRequest request, Object instance, Object checkValue) throws IllegalAccessException, FieldNotAvailableException {<NEW_LINE>boolean dirty = !(instance == null && checkValue == null) && (<MASK><NEW_LINE>if (!dirty) {<NEW_LINE>Object value = request.getFieldManager().getFieldValu...
instance == null || checkValue == null);
828,214
public CompilationResults compile(Program program, RubyBinding binding) {<NEW_LINE>binding_ = binding;<NEW_LINE>RubyIDClassGenerator.initScript(extra_, script_name_);<NEW_LINE>String className = NameFactory.createClassName(extra_, script_name_, null);<NEW_LINE>cg_ = new ClassGeneratorForRubyProgram(className, script_na...
add(cg_.getCompilationResult());
1,199,955
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String activityId, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>String job = null;<NEW_LINE>try (...
Business business = new Business(emc);
1,387,340
public static RepositoryConnection parse(String str) throws URISyntaxException {<NEW_LINE>String[] fields = str.split(RC_DELIMITER);<NEW_LINE>int l = fields.length;<NEW_LINE>String url = fields[0];<NEW_LINE>// NOI18N<NEW_LINE>String username = l > 1 && !fields[1].equals(""<MASK><NEW_LINE>// NOI18N<NEW_LINE>String passw...
) ? fields[1] : null;
1,648,582
/*<NEW_LINE>* When calling the java compiler programmatically, we map import requests to files with a<NEW_LINE>* custom {@link JavaFileManager}. We wrap the system JavaFileManager with one that handles<NEW_LINE>* ResourceFiles then wrap that with phidias, which handles imports based on bundle<NEW_LINE>* requirements.<...
bundleWirings.forEach(bundleJavaManager::addBundleWiring);
1,365,017
public void initialize() {<NEW_LINE>logger.config("Initialize VR application...");<NEW_LINE>initialize_internal();<NEW_LINE>cam.setFrustumFar(fFar);<NEW_LINE>cam.setFrustumNear(fNear);<NEW_LINE>dummyCam = cam.clone();<NEW_LINE>if (isInVR()) {<NEW_LINE>logger.config("VR mode enabled.");<NEW_LINE>if (vrHardware != null) ...
getLeftCamera().toString());
664,153
public static RecordFormats selectNewestFormat(Config config, RecordDatabaseLayout databaseLayout, FileSystemAbstraction fs, PageCache pageCache, LogProvider logProvider, PageCacheTracer pageCacheTracer) {<NEW_LINE>boolean formatConfigured = StringUtils<MASK><NEW_LINE>if (formatConfigured) {<NEW_LINE>// format was expl...
.isNotEmpty(configuredRecordFormat(config));
383,617
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent bountyOfLuxa = game.getPermanent(source.getSourceId());<NEW_LINE>if (bountyOfLuxa != null && bountyOfLuxa.getZoneChangeCounter(game) != source.getSourceObjectZoneChangeCounter()) {...
addMana(manaToAdd, game, source);
225,420
private boolean doLaunch(@Nullable String url, @Nonnull List<String> command, @Nullable final WebBrowser browser, @Nullable final Project project, @Nonnull String[] additionalParameters, @Nullable Runnable launchTask) {<NEW_LINE>if (url != null && url.startsWith("jar:")) {<NEW_LINE>String files = extractFiles(url);<NEW...
project, commandLine, process, launchTask);
680,340
private void processWorkerRemovedBlocks(MasterWorkerInfo workerInfo, Collection<Long> removedBlockIds, boolean sendCommand) {<NEW_LINE>for (long removedBlockId : removedBlockIds) {<NEW_LINE>try (LockResource r = lockBlock(removedBlockId)) {<NEW_LINE>Optional<BlockMeta> block = mBlockStore.getBlock(removedBlockId);<NEW_...
removedBlockId, workerInfo.getId());
463,770
public Object buildTree(Relation<? extends NumberVector> relation, int left, int right, ArrayModifiableDBIDs sorted, DBIDArrayMIter iter, VectorUtil.SortDBIDsBySingleDimension comp) {<NEW_LINE>if (right - left <= leafsize) {<NEW_LINE>return new IntIntPair(left, right);<NEW_LINE>}<NEW_LINE>SplitStrategy.Info s = split.f...
return new IntIntPair(left, right);
304,580
private void startVolleyRequest() {<NEW_LINE>DisposableSubscriber<JSONObject> d = new DisposableSubscriber<JSONObject>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onNext(JSONObject jsonObject) {<NEW_LINE>Log.e(TAG, "onNext " + jsonObject.toString());<NEW_LINE>_log(<MASK><NEW_LINE>}<NEW_LINE><NEW_LINE>@Overrid...
"onNext " + jsonObject.toString());
717,903
public void observe(final Node node, final NativeObject options) {<NEW_LINE>if (node == null) {<NEW_LINE>throw Context.throwAsScriptRuntimeEx(new IllegalArgumentException("Node is undefined"));<NEW_LINE>}<NEW_LINE>if (options == null) {<NEW_LINE>throw Context.throwAsScriptRuntimeEx(new IllegalArgumentException("Options...
getDomNodeOrDie().addCharacterDataChangeListener(this);
1,380,823
public static ListFlowsResponse unmarshall(ListFlowsResponse listFlowsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFlowsResponse.setRequestId(_ctx.stringValue("ListFlowsResponse.RequestId"));<NEW_LINE>listFlowsResponse.setNextToken(_ctx.stringValue("ListFlowsResponse.NextToken"));<NEW_LINE>List<FlowsItem> flows <...
= new ArrayList<FlowsItem>();
697,980
public void marshall(Device device, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (device == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(device.getDeviceId(), DEVICEID_BINDING);<NEW_LINE>protocolMarshall...
device.getState(), STATE_BINDING);
765,576
public void acceptLocalVariable(LocalVariableBinding binding, org.eclipse.jdt.internal.compiler.env.ICompilationUnit unit) {<NEW_LINE>LocalDeclaration local = binding.declaration;<NEW_LINE>IJavaElement parent = null;<NEW_LINE>if (binding.declaringScope.isLambdaSubscope() && unit instanceof ICompilationUnit) {<NEW_LINE>...
Util.typeSignature(local.type);
232,432
private void createSegment(File dataFile, int sequenceId) throws IOException {<NEW_LINE>LOGGER.info("Creating segment from data file: {} of sequence id: {}", dataFile, sequenceId);<NEW_LINE>_segmentGeneratorConfig.setInputFilePath(dataFile.getPath());<NEW_LINE>_segmentGeneratorConfig.setSequenceId(sequenceId);<NEW_LINE...
"Tarring segment: {} from directory: {} to: {}", segmentName, indexDir, segmentTarFile);
1,503,596
public void updatePlayback(ExoPlayback playback) {<NEW_LINE><MASK><NEW_LINE>boolean playing = Utils.isPlaying(state);<NEW_LINE>List<Integer> compact = new ArrayList<>();<NEW_LINE>builder.mActions.clear();<NEW_LINE>// Adds the media buttons to the notification<NEW_LINE>addAction(previousAction, PlaybackStateCompat.ACTIO...
int state = playback.getState();
1,640,826
final CreateSignalingChannelResult executeCreateSignalingChannel(CreateSignalingChannelRequest createSignalingChannelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSignalingChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateSignalingChannel");
1,637,031
public List<String> expendUnitToUnit(List<String> unitList) throws Exception {<NEW_LINE>List<String> unitIds = new ArrayList<>();<NEW_LINE>List<String> expendUnitIds = new ArrayList<>();<NEW_LINE>if (ListTools.isNotEmpty(unitList)) {<NEW_LINE>for (String s : unitList) {<NEW_LINE>Unit u = this.unit().pick(s);<NEW_LINE>i...
().listSubNested(s));
146,998
public LocalDate queryFrom(TemporalAccessor temporal) {<NEW_LINE>if (temporal.isSupported(ChronoField.EPOCH_DAY)) {<NEW_LINE>return LocalDate.ofEpochDay(temporal.getLong(ChronoField.EPOCH_DAY));<NEW_LINE>} else if (temporal.isSupported(ChronoField.YEAR_OF_ERA) || temporal.isSupported(ChronoField.YEAR)) {<NEW_LINE>int y...
.get(ChronoField.DAY_OF_MONTH));
583,016
private static void doOpen(@Nonnull File _dir, @Nullable File _toSelect) throws IOException, ExecutionException {<NEW_LINE>String dir = FileUtil.toSystemDependentName(FileUtil.toCanonicalPath<MASK><NEW_LINE>String toSelect = _toSelect != null ? FileUtil.toSystemDependentName(FileUtil.toCanonicalPath(_toSelect.getPath()...
(_dir.getPath()));
1,094,793
public boolean delistResource(Transaction tran, TransactionalResource h, int flag) throws IllegalStateException, SystemException {<NEW_LINE>if (_logger.isLoggable(Level.FINE)) {<NEW_LINE>_logger.log(Level.FINE, "\n\nIn JavaEETransactionManagerSimplified.delistResource, h=" + h + " h.xares=" + h.<MASK><NEW_LINE>}<NEW_LI...
getXAResource() + " tran=" + tran);
1,582,589
public static ChannelConfig defaultChannelConfig(String listenAddressName) {<NEW_LINE>ChannelConfig config = new ChannelConfig();<NEW_LINE>config.add(new ChannelConfigValue<>(CommonChannelConfigKeys.maxConnections, chooseIntChannelProperty(listenAddressName, "connection.max", CommonChannelConfigKeys.maxConnections.defa...
set(CommonChannelConfigKeys.preferProxyProtocolForClientIp, true);
859,238
public void paint(Graphics g) {<NEW_LINE>if (line != null) {<NEW_LINE>int x1 = (int) line.getX1();<NEW_LINE>int x2 = (int) line.getX2();<NEW_LINE>int y1 = (int) line.getY1();<NEW_LINE>int y2 = (int) line.getY2();<NEW_LINE>if (y1 == y2) {<NEW_LINE>// LINE<NEW_LINE>g.drawLine(x1 + 2, y1, x2 - 2, y1);<NEW_LINE>g.drawLine(...
y1, x1 + 3, y1);
115,713
public static RestClientConfig load(Class<?> interfaceClass) {<NEW_LINE>final RestClientConfig instance = new RestClientConfig();<NEW_LINE>instance.url = getConfigValue(interfaceClass, "url", String.class);<NEW_LINE>instance.uri = getConfigValue(interfaceClass, "uri", String.class);<NEW_LINE>instance.scope = getConfigV...
String.class, String.class);
352,310
public static void main(String[] args) {<NEW_LINE>Exercise31_Certification certification = new Exercise31_Certification();<NEW_LINE>BinarySearchTree.Node root = new BinarySearchTree().new Node(10, "Value 10", 7);<NEW_LINE>root.left = new BinarySearchTree().new Node(5, "Value 5", 4);<NEW_LINE>root.left.left = new Binary...
.isBST(root2) + " Expected: false");
1,545,174
public Hcl visitSplatOperator(Hcl.Splat.Operator splatOperator, PrintOutputCapture<P> p) {<NEW_LINE>visitSpace(splatOperator.getPrefix(), Space.Location.SPLAT_OPERATOR, p);<NEW_LINE>visitMarkers(splatOperator.getMarkers(), p);<NEW_LINE>if (splatOperator.getType().equals(Hcl.Splat.Operator.Type.Full)) {<NEW_LINE>p.out.a...
p.out.append('*');
524,356
final UpdateUserHierarchyStructureResult executeUpdateUserHierarchyStructure(UpdateUserHierarchyStructureRequest updateUserHierarchyStructureRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateUserHierarchyStructureRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,704,595
private void checkArgValueMatchesAllowedScalar(List<GraphQLError> errors, Value<?> instanceValue, ScalarTypeDefinition allowedTypeDefinition) {<NEW_LINE>// scalars are allowed to accept ANY literal value - its up to their coercion to decide if its valid or not<NEW_LINE>List<ScalarTypeExtensionDefinition> extensions = t...
scalarType = wiringFactory.getScalar(environment);
1,697,830
public Uni<HttpSecurityPolicy.CheckResult> runBlocking(RoutingContext context, Uni<SecurityIdentity> identity, BiFunction<RoutingContext, SecurityIdentity, HttpSecurityPolicy.CheckResult> function) {<NEW_LINE>if (BlockingOperationControl.isBlockingAllowed()) {<NEW_LINE>try {<NEW_LINE>HttpSecurityPolicy.CheckResult res ...
createFrom().failure(e);