idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,814,202
public static SvnMaterialConfig fromJSON(JsonReader jsonReader, ConfigHelperOptions options) {<NEW_LINE>SvnMaterialConfig svnMaterialConfig = new SvnMaterialConfig();<NEW_LINE>ScmMaterialRepresenter.fromJSON(jsonReader, svnMaterialConfig);<NEW_LINE>jsonReader.readStringIfPresent("url", svnMaterialConfig::setUrl);<NEW_L...
readStringIfPresent("username", svnMaterialConfig::setUserName);
1,816,210
public CreateStreamingDistributionWithTagsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>CreateStreamingDistributionWithTagsResult createStreamingDistributionWithTagsResult = new CreateStreamingDistributionWithTagsResult();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE...
int originalDepth = context.getCurrentDepth();
1,808,733
@Consumes(MediaType.APPLICATION_JSON)<NEW_LINE>@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Removes the permission from the team.", response = Team.class)<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 304, message = "The team already has the specified permission assigned"), @ApiResponse(...
team = qm.persist(team);
1,106,138
private static void initialize() {<NEW_LINE>if (supported != null)<NEW_LINE>return;<NEW_LINE>supported = false;<NEW_LINE>// requires JetBrains Runtime 11 and Windows 10<NEW_LINE>if (!SystemInfo.isJetBrainsJVM_11_orLater || !SystemInfo.isWindows_10_orLater)<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>Class<?> awtAcessorCla...
Window.class.getDeclaredMethod("hasCustomDecoration");
1,199,298
// TODO: allow defining custom types in separate files and re-use<NEW_LINE>@Override<NEW_LINE>public BEObjectModel buildModel(Map map) {<NEW_LINE>// try reading custom object type and if it's not there resort to default types<NEW_LINE>return readObjectModel(map).orElseGet(() -> {<NEW_LINE>try {<NEW_LINE>String sourceTy...
BEIntegerModel(Collections.emptyList());
354,060
public boolean place(@Nonnull FeaturePlaceContext<ResizableOreFeatureConfig> context) {<NEW_LINE>Random random = context.random();<NEW_LINE>BlockPos pos = context.origin();<NEW_LINE>WorldGenLevel world = context.level();<NEW_LINE>ResizableOreFeatureConfig config = context.config();<NEW_LINE>float angle = random.nextFlo...
) * (float) Math.PI;
667,928
public SObjectIDMPluginConfiguration convertToSObject(ObjectIDMPluginConfiguration input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SObjectIDMPluginConfiguration result = new SObjectIDMPluginConfiguration();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.getUuid())...
UserSettings userSettingsVal = input.getUserSettings();
206,610
public Request<DeregisterTransitGatewayMulticastGroupSourcesRequest> marshall(DeregisterTransitGatewayMulticastGroupSourcesRequest deregisterTransitGatewayMulticastGroupSourcesRequest) {<NEW_LINE>if (deregisterTransitGatewayMulticastGroupSourcesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument ...
String>) deregisterTransitGatewayMulticastGroupSourcesRequest.getNetworkInterfaceIds();
1,498,831
private SessionHandler createSessionHandler(Config config, final SecurityHandler securityHandler) {<NEW_LINE>SessionHandler sessionHandler = new SessionHandler();<NEW_LINE>sessionHandler.setMaxInactiveInterval(config.getInt(DrillOnYarnConfig.HTTP_SESSION_MAX_IDLE_SECS));<NEW_LINE>sessionHandler.addEventListener(new Htt...
final SessionAuthentication sessionAuth = (SessionAuthentication) authCreds;
415,341
protected void loadLibrary(String path) throws ArchNotSupportedException, ArchLoaderException {<NEW_LINE>try {<NEW_LINE>String libName = getLibraryName();<NEW_LINE>if (path == null) {<NEW_LINE>// e.g. org.hyperic.sigar.path<NEW_LINE>path = System.<MASK><NEW_LINE>}<NEW_LINE>if (path != null) {<NEW_LINE>if (path.equals("...
getProperty(getPackageName() + ".path");
1,719,541
public void marshall(Trial trial, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (trial == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(trial.getTrialName(), TRIALNAME_BINDING);<NEW_LINE>protocolMarshaller...
trial.getCreatedBy(), CREATEDBY_BINDING);
1,000,249
protected void parseSetting(final String option, final List<String> items) {<NEW_LINE>if (option.equalsIgnoreCase("-excludeAll")) {<NEW_LINE>includeInfo = false;<NEW_LINE>includeClusterDefinitions = false;<NEW_LINE>includeSchema = false;<NEW_LINE>includeSecurity = false;<NEW_LINE>includeRecords = false;<NEW_LINE>includ...
new HashSet<String>(items);
1,020,390
public LdcInsnAST visit(int lineNo, String line) throws ASTParseException {<NEW_LINE>try {<NEW_LINE>String trim = line.trim();<NEW_LINE>int ti = line.indexOf(trim);<NEW_LINE>int space = line.indexOf(' ');<NEW_LINE>String opS = trim.substring(0, space);<NEW_LINE>// op<NEW_LINE>OpcodeParser opParser = new OpcodeParser();...
setOffset(ti + space + 1);
553,207
public Client load(InputStream input) throws IOException {<NEW_LINE>// check signature<NEW_LINE>byte[] signature = new byte[SIGNATURE.length];<NEW_LINE>int read = input.read(signature);<NEW_LINE>if (read != SIGNATURE.length)<NEW_LINE>throw new IOException();<NEW_LINE>if (!Arrays.equals(signature, SIGNATURE))<NEW_LINE>t...
loadPortfolios(newClient, client, lookup);
1,831,713
void updateClusterState(ClusterState newState) throws WriteStateException {<NEW_LINE>Metadata newMetadata = newState.metadata();<NEW_LINE>final long startTimeMillis = relativeTimeMillisSupplier.getAsLong();<NEW_LINE>final AtomicClusterStateWriter writer = new AtomicClusterStateWriter(metaStateService, previousManifest)...
= relativeTimeMillisSupplier.getAsLong() - startTimeMillis;
1,524,272
public void execute(EditorAdaptor editorAdaptor, LineRange lineRange) throws CommandExecutionException {<NEW_LINE>CursorService cursor = editorAdaptor.getCursorService();<NEW_LINE>TextContent model = editorAdaptor.getModelContent();<NEW_LINE>Iterable<KeyStroke> <MASK><NEW_LINE>boolean resetPos = true;<NEW_LINE>if (line...
parsed = ConstructorWrappers.parseKeyStrokes(macro);
639,725
public void marshall(DomainAssociation domainAssociation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (domainAssociation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(domainAssociation.getDomainAssoci...
e.getMessage(), e);
243,734
public void processRecord(final TypedRecord<DeploymentRecord> command, final TypedResponseWriter responseWriter, final TypedStreamWriter streamWriter, final Consumer<SideEffectProducer> sideEffect) {<NEW_LINE>// need to add multiple side-effects for sending a response and scheduling timers<NEW_LINE>sideEffects.add(resp...
DeploymentRecord deploymentEvent = command.getValue();
784,083
public TopDocs searchAfter(ScoreDoc after, Query query, int numHits) throws IOException {<NEW_LINE>final int limit = Math.max(1, reader.maxDoc());<NEW_LINE>if (after != null && after.doc >= limit) {<NEW_LINE>throw new IllegalArgumentException("after.doc exceeds the number of documents in the reader: after.doc=" + after...
.max(TOTAL_HITS_THRESHOLD, numHits));
1,650,542
public Node parse(String source) {<NEW_LINE>source = source.endsWith(QUOTE) ? source : source + QUOTE;<NEW_LINE>String sourceCode = String.format("function main(){return %s}", source);<NEW_LINE>TextDocument document = TextDocuments.from(sourceCode);<NEW_LINE>SyntaxTree tree = getSyntaxTree(document);<NEW_LINE>ModulePar...
isEmpty(), "not a valid expression: " + "expected at least one member");
994,614
public Entry<Integer, List<Long>> readArray(RuntimeValue reg, int startIndex, int len) throws SmaliDebuggerException {<NEW_LINE>long id = readID(reg);<NEW_LINE>Entry<Integer, List<Long>> ret;<NEW_LINE>if (len <= 0) {<NEW_LINE>Packet res = sendCommandSync(jdwp.arrayReference().cmdLength().encode(id));<NEW_LINE>tryThrowE...
min(99, data.arrayLength);
476,388
private void processOpenedProjectsChanged() {<NEW_LINE>Collection<Lookup.Provider> lastOpenedProjects = new ArrayList();<NEW_LINE>List<Lookup.Provider> lastProvidedScopes = new ArrayList();<NEW_LINE>synchronized (openedProjects) {<NEW_LINE>lastOpenedProjects.addAll(openedProjects);<NEW_LINE>openedProjects.clear();<NEW_...
FileObject> lastProvidedScopesLoc = locations(lastProvidedScopes);
1,639,687
public void reload() {<NEW_LINE>LOG.info("reload KafkaFederationSinkContext.");<NEW_LINE>try {<NEW_LINE>SortTaskConfig newSortTaskConfig = SortClusterConfigHolder.getTaskConfig(taskName);<NEW_LINE>if (newSortTaskConfig == null) {<NEW_LINE>LOG.error("newSortTaskConfig is null.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if ...
clusterConfig.setClusterName(this.taskName);
770,675
private void addCSSClasses(SVGPlot svgp) {<NEW_LINE>final StyleLibrary style = context.getStyleLibrary();<NEW_LINE>// Class for the cube<NEW_LINE>if (!svgp.getCSSClassManager().contains(MARKER)) {<NEW_LINE>CSSClass cls = new CSSClass(this, MARKER);<NEW_LINE>cls.setStatement(SVGConstants.CSS_STROKE_VALUE, style.getColor...
(StyleLibrary.PLOT) * 2.);
1,523,729
public void validate() throws ValidationException {<NEW_LINE>if (hasValidationError()) {<NEW_LINE>setValidationError(null);<NEW_LINE>}<NEW_LINE>if (!isVisibleRecursive() || !isEditableWithParent() || !isEnabledRecursive()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// if we cannot convert current presentatio...
beanLocator.get(Messages.NAME);
497,856
public void show(Node node, PopupVPosition vAlign, PopupHPosition hAlign, double initOffsetX, double initOffsetY) {<NEW_LINE>if (!isShowing()) {<NEW_LINE>if (node.getScene() == null || node.getScene().getWindow() == null) {<NEW_LINE>throw new IllegalStateException("Can not show popup. The node must be attached to a sce...
()).animate());
1,102,961
public static <T> T convertType(Class<T> type, String value, String paramName) {<NEW_LINE>try {<NEW_LINE>if (value == null || NULL_VALUE.equalsIgnoreCase(value)) {<NEW_LINE>if (type.isPrimitive()) {<NEW_LINE>Utils.log("Parameters", 2, "Attempt to pass null value to primitive type parameter '" + paramName + "'");<NEW_LI...
T) Float.valueOf(value);
186,381
public String toJson() throws JsonProcessingException {<NEW_LINE>JsonObject retVal = new JsonObject();<NEW_LINE>ObjectMapper mapper = mapper();<NEW_LINE>Iterator<T> iter = vocabulary.values().iterator();<NEW_LINE>Class clazz = null;<NEW_LINE>if (iter.hasNext())<NEW_LINE>clazz = iter.next().getClass();<NEW_LINE>else<NEW...
, mapper.writeValueAsString(retentionDelay));
1,745,474
private Map<String, Object> refreshCmd(Map<String, Object> config) {<NEW_LINE>String cmdPath = (String) config.get(CMD_PATH);<NEW_LINE>String cmdArgs = (String) config.get(CMD_ARGS);<NEW_LINE>List<String> fullCmd = Arrays.asList(String.join(" ", cmdPath.trim(), cmdArgs.trim()).split(" "));<NEW_LINE>try {<NEW_LINE>Proce...
("token_expiry").getAsString());
1,290,180
public InputStream pull(final EtcdConfig config) {<NEW_LINE>if (client == null) {<NEW_LINE>client = Client.builder().endpoints(config.getServer()).build();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>CompletableFuture<GetResponse> future = client.getKVClient().get(ByteSequence.fromString<MASK><NEW_LINE>List<KeyValue> kvs;<NEW_L...
(config.getKey()));
1,665,559
private void printEntityInstantiation(HDLNodeBuildIn node, int num, File root) throws IOException, HDLException {<NEW_LINE>String entityName = node.getHdlEntityName();<NEW_LINE>out.print("gate").print(num).print(": entity work.").print(entityName);<NEW_LINE>final String label = node.getElementAttributes().getLabel();<N...
writeGenericMap(out, node, root);
455,532
public ProcessStatus handleProcessFormRequest(final PwmRequest pwmRequest) throws PwmUnrecoverableException, ChaiUnavailableException, IOException, ServletException {<NEW_LINE>final NewUserBean newUserBean = getNewUserBean(pwmRequest);<NEW_LINE>if (CaptchaUtility.captchaEnabledForRequest(pwmRequest)) {<NEW_LINE>if (!Ca...
pwmRequest, e.getErrorInformation());
136,064
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@public @buseventtype create schema Arriving(value int);\n" + "update istream Arriving set value = (select sum(value) as c0 from SupportEventWithIntArray#keepall group by array);\n" + "@name('s0') select * from Arriving;\n";<NEW_LINE>env.compileDeploy(...
1, 2 }, 11));
262,292
public void configureInit() throws UnableToAdaptException {<NEW_LINE>String methodName = "configureInit";<NEW_LINE>String displayName = webAppConfiguration.getDisplayName();<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, methodName, "WebAppConfiguration [ " + displayNa...
methodName, "WebAppConfiguration [ " + displayName + " ]");
1,299,965
public static ListControlPoliciesResponse unmarshall(ListControlPoliciesResponse listControlPoliciesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listControlPoliciesResponse.setRequestId(_ctx.stringValue("ListControlPoliciesResponse.RequestId"));<NEW_LINE>listControlPoliciesResponse.setTotalCount(_ctx.integerValue("Li...
= new ArrayList<ControlPolicy>();
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....
= (Set<String>) value;
513,559
private void addSourcePathToHeadersBuildPhase(SourcePath headerPath, PBXGroup headersGroup, PBXHeadersBuildPhase headersBuildPhase, HeaderVisibility visibility) {<NEW_LINE>PBXFileReference fileReference = headersGroup.getOrCreateFileReferenceBySourceTreePath(new SourceTreePath(PBXReference.SourceTree.SOURCE_ROOT, pathR...
PBXBuildFile buildFile = new PBXBuildFile(fileReference);
1,297,764
public void processAction(ActionMapping mapping, ActionForm form, PortletConfig config, ActionRequest req, ActionResponse res) throws Exception {<NEW_LINE>PermissionAPI perAPI = APILocator.getPermissionAPI();<NEW_LINE>String cmd = <MASK><NEW_LINE>String referer = req.getParameter("referer");<NEW_LINE>HttpServletRequest...
req.getParameter(Constants.CMD);
824,898
private CrossGammaParameterSensitivity computeGammaForCurve(CurveName curveName, Curve curve, Currency sensitivityCurrency, Function<Curve, ImmutableLegalEntityDiscountingProvider> ratesProviderFn, Function<ImmutableLegalEntityDiscountingProvider, CurrencyParameterSensitivities> sensitivitiesFn) {<NEW_LINE>Function<Dou...
curveName, sensitivityCurrency).getSensitivity();
1,275,344
public void saveDialogValues(Settings settings) {<NEW_LINE>int listenPort = dialog.getIntValue(LaunchForm.PORT, 8080);<NEW_LINE>settings.<MASK><NEW_LINE>settings.setString(LaunchForm.SETSSLMON, dialog.getValue(LaunchForm.SETSSLMON));<NEW_LINE>settings.setString(SecurityTabForm.SSLTUNNEL_KEYSTORE, dialog.getValue(Securi...
setLong(LaunchForm.PORT, listenPort);
1,170,734
public View onCreateView(@NonNull LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>View view = inflater.inflate(R.layout.list_fragment, container, false);<NEW_LINE>mListView = view.findViewById(<MASK><NEW_LINE>mBackgroundList = view.findViewById(R.id.background_list);<NEW_LINE>((Image...
android.R.id.list);
821,240
public Verdict applyRulesAndReturnDecision(RestOperationTypeEnum theOperation, RequestDetails theRequestDetails, IBaseResource theInputResource, IIdType theInputResourceId, IBaseResource theOutputResource, Pointcut thePointcut) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>List<IAuthRule> rules = (List<IAuthRule>)...
<AuthorizationFlagsEnum> flags = getFlags();
1,113,610
public static /*<NEW_LINE>// FileChannel.transferTo() seems to fail under certain linux configurations.<NEW_LINE>public static boolean copyFile( final File _source, final File _dest ) {<NEW_LINE>FileChannel source = null;<NEW_LINE>FileChannel dest = null;<NEW_LINE>try {<NEW_LINE>if( _source.length() < 1L ) {<NEW_LINE>t...
_source.getAbsolutePath() + " does not exist or is 0-sized" );
1,511,570
public io.kubernetes.client.proto.V1Apps.ReplicaSetStatus buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1Apps.ReplicaSetStatus result = new io.kubernetes.client.proto.V1Apps.ReplicaSetStatus(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_bitField0_ & 0x0000...
util.Collections.unmodifiableList(conditions_);
1,186,563
public static ListProjectsResponse unmarshall(ListProjectsResponse listProjectsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listProjectsResponse.setRequestId(_ctx.stringValue("ListProjectsResponse.RequestId"));<NEW_LINE>listProjectsResponse.setTotalCount(_ctx.integerValue("ListProjectsResponse.TotalCount"));<NEW_LINE...
("ListProjectsResponse.Projects[" + i + "].OnlineServiceStatus"));
703,059
private CostDetailCreateResult createUsageVariance(@NonNull final CostDetailCreateRequest request) {<NEW_LINE>final AcctSchema acctSchema = acctSchemasRepo.getById(request.getAcctSchemaId());<NEW_LINE>final CostSegmentAndElement costSegmentAndElement = utils.extractCostSegmentAndElement(request);<NEW_LINE>final CostPri...
CostDetailPreviousAmounts.of(currentCosts)));
864,335
private void appendMessageToString(final StringBuilder sb, final String decoderName) {<NEW_LINE>sb.append('\n');<NEW_LINE><MASK><NEW_LINE>append(sb, INDENT, "{");<NEW_LINE>append(sb, INDENT, " if (null == buffer)");<NEW_LINE>append(sb, INDENT, " {");<NEW_LINE>append(sb, INDENT, " return \"\";");<NEW_LINE>a...
append(sb, INDENT, "public String toString()");
1,744,494
public JobInvocation.Builder decode(@NonNull Bundle providedBundle) {<NEW_LINE>if (providedBundle == null) {<NEW_LINE>throw new IllegalArgumentException("Unexpected null Bundle provided");<NEW_LINE>}<NEW_LINE>// Copy to prevent modification<NEW_LINE>Bundle data = new Bundle(providedBundle);<NEW_LINE>boolean recur = dat...
.keySet().iterator();
1,746,541
public void printInfo(boolean includeIndexDetails) throws IOException {<NEW_LINE>System.out.<MASK><NEW_LINE>System.out.println();<NEW_LINE>for (LocalityGroupMetadata lgm : localityGroups) {<NEW_LINE>lgm.printInfo(false, includeIndexDetails);<NEW_LINE>}<NEW_LINE>if (!sampleGroups.isEmpty()) {<NEW_LINE>System.out.println...
printf("%-24s : %d\n", "RFile Version", rfileVersion);
1,800,610
public static List<BingTile> findMinimalTileCovering(Envelope envelope, int zoom) {<NEW_LINE>Optional<List<BingTile>> maybeResult = handleTrivialCases(envelope, zoom);<NEW_LINE>if (maybeResult.isPresent()) {<NEW_LINE>return maybeResult.get();<NEW_LINE>}<NEW_LINE>// envelope x,y (longitude,latitude) goes NE as they incr...
* (maxY - minY + 1);
1,331,793
private void addIndexStats(String mapName, LocalMapStatsImpl localMapStats) {<NEW_LINE>MapContainer mapContainer = mapServiceContext.getMapContainer(mapName);<NEW_LINE>Indexes globalIndexes = mapContainer.getIndexes();<NEW_LINE>Map<String, OnDemandIndexStats> freshStats = null;<NEW_LINE>if (globalIndexes != null) {<NEW...
globalIndexes.getIndexes(), null);
1,635,075
final DescribeClassicLinkInstancesResult executeDescribeClassicLinkInstances(DescribeClassicLinkInstancesRequest describeClassicLinkInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeClassicLinkInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
223,599
final DescribeOpsItemsResult executeDescribeOpsItems(DescribeOpsItemsRequest describeOpsItemsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeOpsItemsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
435,278
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// Log.trace(Log.l1_User, "WWorkflow.doGet");<NEW_LINE>// WUtil.debug(new String("In do get"),"");<NEW_LINE>// Get Session attributes<NEW_LINE>HttpSession sess = request.getSession();<NEW_LINE>Mob...
loadWorkflow(ctx, AD_Workflow_ID, sess);
511,376
// for jbootDialect -----------------<NEW_LINE>@Override<NEW_LINE>public String forFindByColumns(String alias, List<Join> joins, String table, String loadColumns, List<Column> columns, String orderBy, Object limit) {<NEW_LINE>StringBuilder sqlBuilder = SqlBuilder.forFindByColumns(alias, joins, table, loadColumns, colum...
toString().split(",");
1,247,892
public boolean contains(T point) {<NEW_LINE>boolean l = hasLowerBound();<NEW_LINE>boolean u = hasUpperBound();<NEW_LINE>if (l && u) {<NEW_LINE>boolean inLower = hasMask(LOWER_INCLUSIVE) ? lower.compareTo(point) <= 0 : <MASK><NEW_LINE>boolean inUpper = hasMask(UPPER_INCLUSIVE) ? upper.compareTo(point) >= 0 : upper.compa...
lower.compareTo(point) < 0;
1,155,622
public BigdataStatement asStatement(final ISPO spo) {<NEW_LINE>final List<IV<?, ?>> ivs = new ArrayList<IV<?, ?>>(4);<NEW_LINE>ivs.add(spo.s());<NEW_LINE>ivs.add(spo.p());<NEW_LINE>ivs.<MASK><NEW_LINE>final IV<?, ?> c = spo.c();<NEW_LINE>if (c != null) {<NEW_LINE>ivs.add(c);<NEW_LINE>}<NEW_LINE>final Map<IV<?, ?>, Bigd...
add(spo.o());
1,366,193
protected void doAction() {<NEW_LINE>try {<NEW_LINE>KeyStoreHistory history = kseFrame.getActiveKeyStoreHistory();<NEW_LINE>KeyStoreState currentState = history.getCurrentState();<NEW_LINE>// get alias of selected (signing) key entry<NEW_LINE>String alias = kseFrame.getSelectedEntryAlias();<NEW_LINE>Password password =...
KeyStore keyStore = currentState.getKeyStore();
1,808,100
public void justifyEvent(IntEventType mask, int one, int two, int three) {<NEW_LINE>if (this.isInstantiated())<NEW_LINE>return;<NEW_LINE>switch(mask) {<NEW_LINE>case DECUPP:<NEW_LINE>if (one < cste) {<NEW_LINE>model.getSolver().getEventObserver().instantiateTo(this, 0, this, 0, 1);<NEW_LINE>} else if (this.var.getLB() ...
0, this, 0, 1);
1,509,071
public boolean onPreferenceChange(Preference preference, Object newValue) {<NEW_LINE>if (preference.getKey().equals(getString(R.string.key_enable_passcode))) {<NEW_LINE>if ((Boolean) newValue) {<NEW_LINE>startActivityForResult(new Intent(getActivity(), PasscodePreferenceActivity.class), GeneralPreferenceFragment.PASSCO...
UxArgument.DISABLE_PASSCODE, UxArgument.DISABLE_PASSCODE);
960,040
private void clearAllBreakpoints() {<NEW_LINE>Set<FileFunction> functions = new TreeSet<>();<NEW_LINE>for (Breakpoint breakpoint : breakpoints_) {<NEW_LINE><MASK><NEW_LINE>if (breakpoint.getType() == Breakpoint.TYPE_FUNCTION)<NEW_LINE>functions.add(new FileFunction(breakpoint));<NEW_LINE>}<NEW_LINE>// Remove the breakp...
breakpoint.setState(Breakpoint.STATE_REMOVING);
615,855
private // about reobtaining.<NEW_LINE>void buildSubJobBatchWorkUnits() {<NEW_LINE>List<Flow> flows = (List<Flow>) this.split.getFlows();<NEW_LINE>splitFlowWorkUnits = new ArrayList<BatchSplitFlowWorkUnit>();<NEW_LINE>for (Flow flow : flows) {<NEW_LINE>// 1. First, we build the subjob JSLJob model for flows in split<NE...
createSplitFlowWorkUnit(splitFlowConfig, splitFlowJSLJob, completedWorkQueue);
549,009
public void runCommercial(String stream, int length) {<NEW_LINE>String channel = Helper.toChannel(stream);<NEW_LINE>if (stream == null || stream.isEmpty()) {<NEW_LINE>commercialResult(stream, <MASK><NEW_LINE>} else if (stream.equals(settings.getString("username"))) {<NEW_LINE>// Broadcaster can use API<NEW_LINE>if (isC...
"Can't run commercial, not on a channel.", TwitchApi.RequestResultCode.FAILED);
1,533,916
public ImportApiKeysResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ImportApiKeysResult importApiKeysResult = new ImportApiKeysResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
)).unmarshall(context));
340,609
public synchronized Settings applySettings(Settings newSettings) {<NEW_LINE>if (lastSettingsApplied != null && newSettings.equals(lastSettingsApplied)) {<NEW_LINE>// nothing changed in the settings, ignore<NEW_LINE>return newSettings;<NEW_LINE>}<NEW_LINE>final Settings current = Settings.builder().put(this.settings).pu...
logger.warn("failed to apply settings", ex);
868,647
private void handleDelete(@NonNull Collection<Long> ids) {<NEW_LINE>int conversationsCount = ids.size();<NEW_LINE>MaterialAlertDialogBuilder alert = new MaterialAlertDialogBuilder(requireActivity());<NEW_LINE>Context context = requireContext();<NEW_LINE>alert.setTitle(context.getResources().getQuantityString(R.plurals....
= new HashSet<>(ids);
299,954
private void extendForNextPeriod() {<NEW_LINE>// We can have a race-condition when we extend the lock but the `lock` field is accessed before we update it.<NEW_LINE>synchronized (this) {<NEW_LINE>if (!active) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (currentLockAtMostUntil.isBefore(now())) {<NEW_LINE>// Failsafe for c...
lockConfiguration.getLockAtMostFor(), remainingLockAtLeastFor);
1,331,748
public void handleBlockCompleteRequest(boolean isCanceled) {<NEW_LINE>final String methodName = isCanceled ? "AbortBlock" : "CommitBlock";<NEW_LINE>RpcUtils.streamingRPCAndLog(LOG, new RpcUtils.StreamingRpcCallable<CreateLocalBlockResponse>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public CreateLocalBlockResponse call(...
), mRequest.getPinOnCreate());
1,829,090
public static GetSqlServerDatabasesToRestoreResponse unmarshall(GetSqlServerDatabasesToRestoreResponse getSqlServerDatabasesToRestoreResponse, UnmarshallerContext _ctx) {<NEW_LINE>getSqlServerDatabasesToRestoreResponse.setRequestId(_ctx.stringValue("GetSqlServerDatabasesToRestoreResponse.RequestId"));<NEW_LINE>getSqlSe...
(_ctx.booleanValue("GetSqlServerDatabasesToRestoreResponse.Success"));
1,384,695
static void findFieldsForComponents(JavaComponentInfo ci) {<NEW_LINE>// Components by UID:<NEW_LINE>int n = countComponents(ci);<NEW_LINE>long[] uids = new long[n];<NEW_LINE>JavaComponentInfo[] components = new JavaComponentInfo[n];<NEW_LINE>fillComponents(ci, components, 0);<NEW_LINE>Arrays.sort(components, new JavaCo...
] = components[i].uid;
840,647
public Object calculate(Context ctx) {<NEW_LINE>Node left = getLeft();<NEW_LINE>Object result1 = left.calculate(ctx);<NEW_LINE>if (result1 == null) {<NEW_LINE>return null;<NEW_LINE>} else if (!(result1 instanceof Sequence)) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("()" + mm.get...
+ mm.getMessage("function.invalidParam"));
406,854
public boolean onContextItemSelected(MenuItem item) {<NEW_LINE>AdapterView.AdapterContextMenuInfo info = (AdapterView.AdapterContextMenuInfo) item.getMenuInfo();<NEW_LINE>int index = info.position;<NEW_LINE>final Profile profile = adapter.getItem(index);<NEW_LINE>int itemId = item.getItemId();<NEW_LINE>if (itemId == R....
PREF_DEFAULT_PROFILE, profile.getName());
871,062
public Request<CreateTagsRequest> marshall(CreateTagsRequest createTagsRequest) {<NEW_LINE>if (createTagsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<CreateTagsRequest> request = new DefaultRequest<MASK><NEW_LINE>request.addParamete...
<CreateTagsRequest>(createTagsRequest, "AmazonEC2");
512,804
public boolean applies(UUID objectId, Ability source, UUID affectedControllerId, Game game) {<NEW_LINE>// note to always discard the effect if anything fails<NEW_LINE>UUID targetId = getTargetPointer().getFirst(game, source);<NEW_LINE>if (targetId == null) {<NEW_LINE>this.discard();<NEW_LINE>return false;<NEW_LINE>}<NE...
exiledCard = game.getCard(objectId);
790,625
public static GetAggregateConfigRuleSummaryByRiskLevelResponse unmarshall(GetAggregateConfigRuleSummaryByRiskLevelResponse getAggregateConfigRuleSummaryByRiskLevelResponse, UnmarshallerContext _ctx) {<NEW_LINE>getAggregateConfigRuleSummaryByRiskLevelResponse.setRequestId(_ctx.stringValue("GetAggregateConfigRuleSummaryB...
("GetAggregateConfigRuleSummaryByRiskLevelResponse.ConfigRuleSummaries[" + i + "].CompliantCount"));
1,193,507
public static QueryScriptWaveformsResponse unmarshall(QueryScriptWaveformsResponse queryScriptWaveformsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryScriptWaveformsResponse.setRequestId(_ctx.stringValue("QueryScriptWaveformsResponse.RequestId"));<NEW_LINE>queryScriptWaveformsResponse.setCode(_ctx.stringValue("Que...
("QueryScriptWaveformsResponse.ScriptWaveforms[" + i + "].FileName"));
1,566,289
private void parseDialogueLine(String dialogueLine, SsaDialogueFormat format, List<List<Cue>> cues, List<Long> cueTimesUs) {<NEW_LINE>Assertions.checkArgument(dialogueLine.startsWith(DIALOGUE_LINE_PREFIX));<NEW_LINE>String[] lineValues = dialogueLine.substring(DIALOGUE_LINE_PREFIX.length()).split(",", format.length);<N...
addCuePlacerholderByTime(endTimeUs, cueTimesUs, cues);
1,833,392
public static PasswordEncoder createDelegatingPasswordEncoder() {<NEW_LINE>// copy from PasswordEncoderFactories, and it's should follow the upgrade of the PasswordEncoderFactories<NEW_LINE>String encodingId = "bcrypt";<NEW_LINE>Map<String, PasswordEncoder> encoders = new HashMap<>();<NEW_LINE>encoders.put(encodingId, ...
crypto.password.Md4PasswordEncoder());
1,598,523
public Object functionTemplateGetFunction(Object realm, Object templateObj) {<NEW_LINE>JSRealm jsRealm = (JSRealm) realm;<NEW_LINE>JSContext jsContext = jsRealm.getContext();<NEW_LINE>FunctionTemplate template = (FunctionTemplate) templateObj;<NEW_LINE>if (template.getFunctionObject(jsRealm) == null) {<NEW_LINE>Compile...
JSOrdinary.create(jsContext, jsRealm);
1,694,075
public SnowconeDeviceConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SnowconeDeviceConfiguration snowconeDeviceConfiguration = new SnowconeDeviceConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NE...
String currentParentElement = context.getCurrentParentElement();
361,629
public static String timeToString(long ns) {<NEW_LINE>ns = Math.abs(ns);<NEW_LINE>long u = <MASK><NEW_LINE>long m = NANOSECONDS.toMillis(ns) % 1000;<NEW_LINE>long s = NANOSECONDS.toSeconds(ns);<NEW_LINE>if (s > 0) {<NEW_LINE>if (u == 0) {<NEW_LINE>return (m == 0) ? s + "s" : String.format("%ds%03dms", s, m);<NEW_LINE>}...
NANOSECONDS.toMicros(ns) % 1000;
135,735
protected void checkArguments() {<NEW_LINE>if (filterConfig != null && typeFilter != null) {<NEW_LINE>// this should only be possible in custom subclasses that override #withFilterConfig(...)<NEW_LINE>throw new IllegalStateException("Only one of typeFilter and filterConfig can be set");<NEW_LINE>}<NEW_LINE>if (blobRetr...
toPath(), blobRetriever, useExistingStaleSnapshot);
441,506
public JobConf createJobConf(final SampleDataForSplitPoints operation, final String mapperGeneratorClassName, final Store store) throws IOException {<NEW_LINE>final JobConf jobConf = new JobConf(configuration);<NEW_LINE>LOGGER.info("Setting up job conf");<NEW_LINE>jobConf.set(SCHEMA, new String(store.getSchema().toComp...
(operation.isValidate()));
1,504,608
public static LocalPredictor loadLocalPredictor(String modelPath, TableSchema inputSchema) throws Exception {<NEW_LINE>Map<Long, List<Row>> rows = readPipelineModelRowsFromCsvFile(modelPath, LegacyModelExporterUtils.PIPELINE_MODEL_SCHEMA);<NEW_LINE>Preconditions.checkState(rows.containsKey(-1L), "can't find meta in mod...
), String[].class);
1,424,110
public void run() {<NEW_LINE>if (command == null || command.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String[] cmd = split(command);<NEW_LINE>try {<NEW_LINE>Runtime rt = Runtime.getRuntime();<NEW_LINE>Process p = rt.exec(cmd);<NEW_LINE>this.process = p;<NEW_LINE>LOGGER.info(String.format("[%s] Process %s starte...
StringUtil.join(cmd)));
1,756,604
public // region indices client<NEW_LINE>Settings indicesGetSettings(GetIndicesSettingsResponse getIndicesSettingsResponse, String indexName) {<NEW_LINE>Assert.notNull(getIndicesSettingsResponse, "getIndicesSettingsResponse must not be null");<NEW_LINE>Assert.notNull(indexName, "indexName must not be null");<NEW_LINE>S...
apply(indexState.settings());
972,283
private void activatePanelElements(TournamentTypeView tournamentType) {<NEW_LINE>this.pnlDraftOptions.setVisible(tournamentType.isDraft());<NEW_LINE>this.lblNumRounds.setVisible(!tournamentType.isElimination());<NEW_LINE>this.spnNumRounds.setVisible(!tournamentType.isElimination());<NEW_LINE>this.lblConstructionTime.se...
this.cbDraftCube.setVisible(true);
431,838
private static ServiceCallMetric callMetricForMethod(TableReference tableReference, String method) {<NEW_LINE>if (tableReference != null) {<NEW_LINE>// TODO(ajamato): Add Ptransform label. Populate it as empty for now to prevent the<NEW_LINE>// SpecMonitoringInfoValidator from dropping the MonitoringInfo.<NEW_LINE>Hash...
BIGQUERY_DATASET, tableReference.getDatasetId());
1,497,074
public I_AD_PrinterHW_Calibration retrieveCalibration(final I_AD_PrinterHW_MediaSize hwMediaSize, final I_AD_PrinterHW_MediaTray hwTray) {<NEW_LINE>Check.assume(hwMediaSize != null, "Param 'hwMediaSize' is not null");<NEW_LINE>Check.assume(hwTray != null, "Param 'hwTray' is not null");<NEW_LINE>final Properties <MASK><...
ctx = InterfaceWrapperHelper.getCtx(hwMediaSize);
1,130,428
public void commitBlobBlocks(String container, String blob, BlockList blockList, CommitBlobBlocksOptions options) throws ServiceException {<NEW_LINE>String path = createPathFromContainer(container);<NEW_LINE>WebResource webResource = getResource(options).path(path).path(blob).queryParam("comp", "blocklist");<NEW_LINE>B...
"x-ms-blob-content-language", options.getBlobContentLanguage());
273,961
public void visit(JsonMaterialization jsonMaterialization) {<NEW_LINE>try {<NEW_LINE>checkRequiredAttributes(jsonMaterialization, "sql");<NEW_LINE>final SchemaPlus schema = currentSchema();<NEW_LINE>if (!schema.isMutable()) {<NEW_LINE>throw new RuntimeException("Cannot define materialization; parent schema '" + current...
viewPath = calciteSchema.path(viewName);
300,950
public void before(Object target, Object[] args) {<NEW_LINE>if (isDebug) {<NEW_LINE>logger.beforeInterceptor(target, args);<NEW_LINE>}<NEW_LINE>if (target == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Trace trace = traceContext.currentRawTraceObject();<NEW_LINE>if (trace == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LIN...
final HttpURLConnection request = (HttpURLConnection) target;
596,080
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<Integer> results = player.rollDice(outcome, source, game, 10, 2, 0);<NEW_LINE>int firstResult = results.get(0);<NEW_LINE>int...
= new TargetCardInYourGraveyard(StaticFilters.FILTER_CARD_CREATURE_YOUR_GRAVEYARD);
539,111
public boolean prepare(PaletteItem item, FileObject classPathRep) {<NEW_LINE>ChooseBeanPanel panel = new ChooseBeanPanel();<NEW_LINE>DialogDescriptor dd = new // NOI18N<NEW_LINE>DialogDescriptor(// NOI18N<NEW_LINE>panel, NbBundle.getMessage(ChooseBeanInitializer.class, "TITLE_Choose_Bean"));<NEW_LINE><MASK><NEW_LINE>//...
dd.setOptionType(DialogDescriptor.OK_CANCEL_OPTION);
878,041
final DescribeHostReservationsResult executeDescribeHostReservations(DescribeHostReservationsRequest describeHostReservationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeHostReservationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
717,785
public void processSelection(@NonNull final WindowId windowId, @NonNull final Document document, @NonNull final String bpartnerFieldName, @NonNull final String selectionIdStr) {<NEW_LINE>final SqlViewKeyColumnNamesMap keyColumnNamesMap = sqlViewFactory.getKeyColumnNamesMap(windowId);<NEW_LINE>final SqlComposedKey compo...
final String bpContactIdFieldName = getUserIdFieldNameForBPartnerField(bpartnerFieldName);
1,300,644
public List<ValidateError> validate(Map<String, String> values) {<NEW_LINE>List<ValidateError> errors = new ArrayList<>();<NEW_LINE>Validator validator;<NEW_LINE>ValidateError error;<NEW_LINE>validator = ValidatorFactory.getInstance(Validator.REQUIRED);<NEW_LINE>error = validator.validate(values.get("token"), convLabel...
ValidatorFactory.getInstance(Validator.INTEGER);
31,076
protected Set<Element> evaluateElementTypeExpression(String expr, DslContext context) {<NEW_LINE>Set<Element> elements = new LinkedHashSet<>();<NEW_LINE>String type = expr.substring(ELEMENT_TYPE_EQUALS_EXPRESSION.length());<NEW_LINE>switch(type.toLowerCase()) {<NEW_LINE>case "custom":<NEW_LINE>context.getWorkspace().ge...
).forEach(elements::add);
1,620,095
/* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.websvc.rest.client.ClientGenerationStrategy#generateFields(org.netbeans.api.java.source.TreeMaker, org.netbeans.api.java.source.WorkingCopy, com.sun.source.tree.ClassTree, java.lang.String, org.netbeans.modules.websvc.rest.client.Security)<NEW_LINE>*/<NEW_LINE>@Over...
, maker.Literal(baseUri));
502,266
public List<DatasetField> initDatasetFields() {<NEW_LINE>// retList - Return List of values<NEW_LINE>List<DatasetField> <MASK><NEW_LINE>// Running into null on create new dataset<NEW_LINE>if (this.getDatasetFields() != null) {<NEW_LINE>for (DatasetField dsf : this.getDatasetFields()) {<NEW_LINE>retList.add(initDatasetF...
retList = new ArrayList<>();