idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,130,627
public static int wrapPosition(@NonNull AdapterPath path, @Nullable RecyclerView.Adapter originAdapter, @Nullable RecyclerView.Adapter targetAdapter, int position) {<NEW_LINE>final List<AdapterPathSegment> segments = path.segments();<NEW_LINE>final int nSegments = segments.size();<NEW_LINE>int originSegmentIndex = (ori...
== null) ? 0 : -1;
1,027,909
private Mono<Response<CheckNameAvailabilityResultInner>> checkNameAvailabilityWithResponseAsync(String resourceGroupName, String namespaceName, String name, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>retu...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,821,320
public static UpdateDictResponse unmarshall(UpdateDictResponse updateDictResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateDictResponse.setRequestId(_ctx.stringValue("UpdateDictResponse.RequestId"));<NEW_LINE>List<DictList> result <MASK><NEW_LINE>for (int i = 0; i < _ctx.lengthValue("UpdateDictResponse.Result.Length...
= new ArrayList<DictList>();
540,824
private void peerRemoved(PEPeerTransport pc) {<NEW_LINE>if (is_running) {<NEW_LINE>updateConnectHealth(pc);<NEW_LINE>}<NEW_LINE>if (is_running && !seeding_mode && (prefer_udp || prefer_udp_default)) {<NEW_LINE>int udp = pc.getUDPListenPort();<NEW_LINE>if (udp != 0 && udp == pc.getTCPListenPort()) {<NEW_LINE>BloomFilter...
final ArrayList<PEPeerManagerListener> peer_manager_listeners = peer_manager_listeners_cow;
435,066
public void onFilterChanged(Participant participant, Participant moderator, Integer transactionId, Set<Participant> participants, String streamId, KurentoFilter filter, OpenViduException error, String filterReason) {<NEW_LINE>boolean isRpcFromModerator = transactionId != null && moderator != null;<NEW_LINE>if (isRpcFro...
, transactionId, new JsonObject());
1,567,709
private void encryptAll(SharedPreferences plainSharedPreferences) {<NEW_LINE>Map<String, ?<MASK><NEW_LINE>SharedPreferences.Editor plainEditor = plainSharedPreferences.edit();<NEW_LINE>for (Map.Entry<String, ?> entry : plainTextMap.entrySet()) {<NEW_LINE>String key = entry.getKey();<NEW_LINE>Object value = entry.getVal...
> plainTextMap = plainSharedPreferences.getAll();
1,142,084
protected void annotateSectionInner(@Nonnull AnnotatedBytes out, int itemCount) {<NEW_LINE>String itemName = getItemName();<NEW_LINE>if (itemCount > 0) {<NEW_LINE>out.annotate(0, "");<NEW_LINE><MASK><NEW_LINE>out.annotate(0, "%s section", itemName);<NEW_LINE>out.annotate(0, "-----------------------------");<NEW_LINE>ou...
out.annotate(0, "-----------------------------");
1,186,331
public CreateAppInstanceResult createAppInstance(CreateAppInstanceRequest createAppInstanceRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAppInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws...
invoke(request, responseHandler, executionContext);
1,542,355
private JMethod addInternalSetMethodJava7(JDefinedClass jclass, JsonNode propertiesNode) {<NEW_LINE>JMethod method = jclass.method(PROTECTED, jclass.owner().BOOLEAN, DEFINED_SETTER_NAME);<NEW_LINE>JVar nameParam = method.param(String.class, "name");<NEW_LINE>JVar valueParam = method.param(Object.class, "value");<NEW_LI...
propertySwitch = body._switch(nameParam);
1,385,573
public void insertAdditionalBuffers(int offset, int count) {<NEW_LINE>boolean[] newCrDone = new boolean[bufferCount + count];<NEW_LINE>// copy before and including offset<NEW_LINE>System.arraycopy(crDone, 0, newCrDone, 0, offset + 1);<NEW_LINE>// copy after offset<NEW_LINE>System.arraycopy(crDone, offset + 1, newCrDone...
offset + 1 + i] = 0;
564,633
public static Expr wrapExpr(Expr expr, List<TupleId> tids, TNullSide nullSide, Analyzer analyzer) throws UserException {<NEW_LINE>if (!requiresNullWrapping(expr, analyzer)) {<NEW_LINE>return expr;<NEW_LINE>}<NEW_LINE>List<Expr> params = Lists.newArrayList();<NEW_LINE>params.add(<MASK><NEW_LINE>params.add(new NullLitera...
new TupleIsNullPredicate(tids, nullSide));
1,222,146
final DescribeFirewallPolicyResult executeDescribeFirewallPolicy(DescribeFirewallPolicyRequest describeFirewallPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeFirewallPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
438,479
public FluidStack extract(int amount, Action action, AutomationType automationType) {<NEW_LINE>if (isEmpty() || amount < 1 || !canExtract.test(stored, automationType)) {<NEW_LINE>// "Fail quick" if we don't can never extract from this tank, have a fluid stored, or the amount being requested is less than one<NEW_LINE>re...
= new FluidStack(stored, size);
76,983
public int readData(FormatHolder formatHolder, DecoderInputBuffer buffer, @ReadFlags int readFlags) {<NEW_LINE>maybeNotifyDownstreamFormat();<NEW_LINE>if (loadingFinished && sampleData == null) {<NEW_LINE>streamState = STREAM_STATE_END_OF_STREAM;<NEW_LINE>}<NEW_LINE>if (streamState == STREAM_STATE_END_OF_STREAM) {<NEW_...
buffer.addFlag(C.BUFFER_FLAG_END_OF_STREAM);
979,639
public void encode(DexFile file) {<NEW_LINE>finishProcessingIfNecessary();<NEW_LINE>TypeIdsSection typeIds = file.getTypeIds();<NEW_LINE>int size = table.size();<NEW_LINE>handlerOffsets = new TreeMap<CatchHandlerList, Integer>();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>handlerOffsets.put(table.get(i).getHand...
writeUleb128(entry.getHandler());
168,772
public static void login(final JSONObject user, final Response response) {<NEW_LINE>try {<NEW_LINE>final String userId = user.optString(Keys.OBJECT_ID);<NEW_LINE>final JSONObject cookieJSONObject = new JSONObject();<NEW_LINE>cookieJSONObject.put(Keys.OBJECT_ID, userId);<NEW_LINE>final String b3Key = user.optString(User...
random = RandomStringUtils.randomAlphanumeric(8);
1,062,645
public static java.util.Map importAll(org.python.types.Module module) {<NEW_LINE>java.util.Map<java.lang.String, org.python.Object> exports = new java.util.HashMap<java.lang.String, org.python.Object>();<NEW_LINE>org.python.Object all_obj = module.__getattribute_null("__all__");<NEW_LINE>if (all_obj == null) {<NEW_LINE...
.__dict__.get(name));
1,852,708
public void prepare(Map conf, TopologyContext context, OutputCollector collector) {<NEW_LINE>this.collector = collector;<NEW_LINE>LinkedHashMap copy = new LinkedHashMap(conf);<NEW_LINE>copy.putAll(boltConfig);<NEW_LINE>StormSettings settings = new StormSettings(copy);<NEW_LINE>flushOnTickTuple = settings.getStormTickTu...
settings, StormTupleFieldExtractor.class, log);
1,512,206
public Resource execute(String[] fields) throws IllegalArgumentException, IOException {<NEW_LINE>if (fields.length < 3) {<NEW_LINE>System.out.println("Wrong TILESET definition");<NEW_LINE>System.out.println("TILESET name \"file\" [compression [opt]]");<NEW_LINE>System.out.println(" name Tileset variable name"...
System.out.println(" opt define the optimisation level, accepted values:");
1,333,460
private Mono<Response<PrivateLinkResourceListResultInner>> listByBotResourceWithResponseAsync(String resourceGroupName, String resourceName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and c...
getSubscriptionId(), accept, context);
410,143
// Jmeter runs once runTest to calculate a thing, it will run repeatedly<NEW_LINE>@Override<NEW_LINE>public SampleResult runTest(JavaSamplerContext context) {<NEW_LINE>SampleResult result = new SampleResult();<NEW_LINE>result.setSampleLabel("producer");<NEW_LINE>try {<NEW_LINE>result.sampleStart();<NEW_LINE>SendResult ...
defaultCharset().name());
223,013
public void add(short bucket, byte positionOf1) {<NEW_LINE>if (storageBuffer.isReadOnly()) {<NEW_LINE>convertToMutableByteBuffer();<NEW_LINE>}<NEW_LINE>byte registerOffset = getRegisterOffset();<NEW_LINE>// discard everything outside of the range we care about<NEW_LINE>if (positionOf1 <= registerOffset) {<NEW_LINE>retu...
0xff & positionOf1) - registerOffset));
1,778,780
public void drawObjects(PlatformImage output) {<NEW_LINE>output.create(image.getWidth(), image.getHeight());<NEW_LINE>ImageUtils.log("Columns:", columns.size());<NEW_LINE>ImageUtils.log(<MASK><NEW_LINE>ImageUtils.log("Words:", words.size());<NEW_LINE>for (int y = 0; y < image.getHeight(); y++) {<NEW_LINE>for (int x = 0...
"Lines:", lines.size());
1,788,241
public boolean apply(Game game, Ability source) {<NEW_LINE>// Store for each player the cards to exile, that's important because all exile shall happen at the same time<NEW_LINE>Map<UUID, Cards> <MASK><NEW_LINE>// Each player chooses 2 cards to discard<NEW_LINE>for (UUID playerId : game.getState().getPlayersInRange(sou...
cardsToExile = new HashMap<>();
258,592
/* Compare version strings:<NEW_LINE><NEW_LINE>This function compares strings S1 and S2:<NEW_LINE>1) By PREFIX in the same way as strcmp.<NEW_LINE>2) Then by VERSION (most similarly to version compare of Debian's dpkg).<NEW_LINE>Leading zeros in version numbers are ignored.<NEW_LINE>3) If both (PREFIX and VERSION) are...
String s1_suffix = "", s2_suffix = "";
1,054,404
public static INDArray toArray(DataType dataType, Collection<? extends Writable> record) {<NEW_LINE>List<Writable> l;<NEW_LINE>if (record instanceof List) {<NEW_LINE>l = (List<Writable>) record;<NEW_LINE>} else {<NEW_LINE>l = new ArrayList<>(record);<NEW_LINE>}<NEW_LINE>// Edge case: single NDArrayWritable<NEW_LINE>if ...
NDArrayWritable) w).get();
1,192,363
public void testLocalMethodwithRemoteExAndSub() throws Exception {<NEW_LINE>SLRemoteExLocal remoteExLocal = lookupSLRemoteExBeanLocal();<NEW_LINE>// verify method with throws exception may be called without an exception<NEW_LINE>remoteExLocal.testMethodwithRemoteExAndSub("none");<NEW_LINE>try {<NEW_LINE>remoteExLocal.t...
getClass() == SLRemoteException.class);
405,557
public synchronized void appendURL(URL url) {<NEW_LINE>try {<NEW_LINE>if (url == null) {<NEW_LINE>_logger.log(<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>URLEntry entry = new URLEntry(url);<NEW_LINE>if (!urlSet.contains(entry)) {<NEW_LINE>// adds the url entry to the list<NEW_LINE>this.urlSet.add(entry);<NEW_LINE>if (e...
Level.INFO, CULoggerInfo.missingURLEntry);
1,483,636
private static void testExample1() {<NEW_LINE>int n = 9;<NEW_LINE>List<List<Integer>> graph = createGraph(n);<NEW_LINE>addEdge(graph, 0, 1);<NEW_LINE>addEdge(graph, 0, 2);<NEW_LINE>addEdge(graph, 1, 2);<NEW_LINE>addEdge(graph, 2, 3);<NEW_LINE>addEdge(graph, 3, 4);<NEW_LINE>addEdge(graph, 2, 5);<NEW_LINE>addEdge(graph, ...
addEdge(graph, 7, 8);
1,046,526
public void scoreRow(int row, ImageData leftRow, ImageData rightRow, int[] scores, int disparityMin, int disparityMax, int regionWidth, int[] elementScore) {<NEW_LINE>int regionRadius = regionWidth / 2;<NEW_LINE>// image width plus left and right borders<NEW_LINE>int widthAndBorder = left.width + regionRadius * 2;<NEW_...
++) score += elementScore[i];
949,878
public static void listener(ClientTabCompletePacket packet, Player player) {<NEW_LINE>final String text = packet.text();<NEW_LINE>String commandString = text.replaceFirst(CommandManager.COMMAND_PREFIX, "");<NEW_LINE>String[] split = commandString.split(StringUtils.SPACE);<NEW_LINE>String commandName = split[0];<NEW_LIN...
).getDispatcher(), commandString);
1,132,472
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_loadmore);<NEW_LINE>toolbar = (Toolbar) findViewById(R.id.tool_bar);<NEW_LINE>setSupportActionBar(toolbar);<NEW_LINE>getSupportActionBar().setDisplayShowTitleEnabled(false);<NEW_LI...
.layout.custom_bottom_progressbar, null));
1,142,070
public void addAbility(Ability ability) {<NEW_LINE>ability.setSourceId(this.getId());<NEW_LINE>abilities.add(ability);<NEW_LINE>abilities.addAll(ability.getSubAbilities());<NEW_LINE>// dynamic check: you can't add ability to the PermanentCard, use permanent.addAbility(a, source, game) instead<NEW_LINE>// reason: trigge...
).toLowerCase(Locale.ENGLISH);
98,031
// ----------------------------------------------------------------<NEW_LINE>private static // returns line-counter<NEW_LINE>// returns line-counter<NEW_LINE>int handleStream(BufferedReader reader, String filename, MIH256<String> mihWithCenters, Map<Hash256, Integer> centersToIndices, int distanceThreshold, int lineCou...
"%s: could not read line %d of file \"%s\".\n", PROGNAME, lineCounter, filename);
358,286
public AnomalousService unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AnomalousService anomalousService = new AnomalousService();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentT...
String currentParentElement = context.getCurrentParentElement();
1,145,325
public ListParentsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListParentsResult listParentsResult = new ListParentsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token...
int originalDepth = context.getCurrentDepth();
1,695,618
public void testBuildApacheConfiguredValidatorFactory(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>if (validatorFactory == null) {<NEW_LINE>throw new IllegalStateException("Injection of ValidatorFactory never occurred.");<NEW_LINE>}<NEW_LINE>boolean isFeature11 = Boolean.parseBo...
.getClass().getName();
1,156,697
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see org.openhab.binding.ebus.connection.EBusConnectorEventListener#onTelegramReceived(org.openhab.binding.ebus.<NEW_LINE>* EbusTelegram)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void onTelegramReceived(EBusTelegram telegram) {<NEW_LINE>// parse the raw telegram t...
convertToState(entry.getValue());
1,623,156
final AcceptReservedInstancesExchangeQuoteResult executeAcceptReservedInstancesExchangeQuote(AcceptReservedInstancesExchangeQuoteRequest acceptReservedInstancesExchangeQuoteRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(acceptReservedInstancesExchangeQuoteRequest);<NEW_LINE>AWSRequestMet...
addHandlerContext(HandlerContextKey.SERVICE_ID, "EC2");
1,089,258
private static PrivateKey generatePEMPrivateKey(final Path keyPath) throws IOException {<NEW_LINE>String key = Files.readString(keyPath, Charset.defaultCharset());<NEW_LINE>String privateKeyPEM = key.replace("-----BEGIN PRIVATE KEY-----", "").replaceAll(System.lineSeparator(), "").replace("-----END PRIVATE KEY-----", "...
privateKey = kf.generatePrivate(keySpec);
1,227,612
public DisassociatePersonasFromEntitiesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DisassociatePersonasFromEntitiesResult disassociatePersonasFromEntitiesResult = new DisassociatePersonasFromEntitiesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_...
String currentParentElement = context.getCurrentParentElement();
1,576,799
private View inflateRoutingParameter(final int position) {<NEW_LINE>View v = mapActivity.getLayoutInflater().inflate(R.layout.layers_list_activity_item, null);<NEW_LINE>AndroidUtils.setListItemBackground(mapActivity, v, nightMode);<NEW_LINE>final TextView tv = (TextView) v.findViewById(R.id.title);<NEW_LINE>final TextV...
(rp.getText(mapActivity));
301,356
static Frame read(final int marker, final DataInput data, final int length) throws IOException {<NEW_LINE>int samplePrecision = data.readUnsignedByte();<NEW_LINE>int lines = data.readUnsignedShort();<NEW_LINE>int samplesPerLine = data.readUnsignedShort();<NEW_LINE>int componentsInFrame = data.readUnsignedByte();<NEW_LI...
int qtSel = data.readUnsignedByte();
184,897
public static IndexMetadata readFrom(StreamInput in) throws IOException {<NEW_LINE>Builder builder = new Builder(in.readString());<NEW_LINE>builder.version(in.readLong());<NEW_LINE>builder.mappingVersion(in.readVLong());<NEW_LINE>builder.settingsVersion(in.readVLong());<NEW_LINE>if (in.getVersion().onOrAfter(LegacyESVe...
int rolloverAliasesSize = in.readVInt();
1,842,602
public Feature mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>String featUid = rs.getString(COL_FEAT_UID);<NEW_LINE>Feature f = new Feature(featUid, rs.getInt(COL_FEAT_ENABLE) > 0);<NEW_LINE>f.setDescription(rs.getString(COL_FEAT_DESCRIPTION));<NEW_LINE>f.setGroup(rs.getString(COL_FEAT_GROUPNAME));<NEW...
instanceFlippingStrategy(featUid, strategy, initParams);
1,756,943
private void inflateRoutingParameter(final LocalRoutingParameter parameter) {<NEW_LINE>if (parameter != null) {<NEW_LINE>final BottomSheetItemWithCompoundButton[] item = new BottomSheetItemWithCompoundButton[1];<NEW_LINE>BottomSheetItemWithCompoundButton.Builder <MASK><NEW_LINE>builder.setCompoundButtonColor(selectedMo...
builder = new BottomSheetItemWithCompoundButton.Builder();
954,505
protected void createFieldEditors() {<NEW_LINE>// default launch location for scripts<NEW_LINE>addField(new RadioGroupFieldEditor(PreferenceConstants.GROOVY_SCRIPT_DEFAULT_WORKING_DIRECTORY, "Default working directory for running Groovy scripts\n (will not change the working directory of existing scripts)", 1, new Str...
SWT.LEFT | SWT.WRAP);
460,957
public com.amazonaws.services.codecommit.model.FileModeRequiredException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codecommit.model.FileModeRequiredException fileModeRequiredException = new com.amazonaws.services.<MASK><NEW_LINE>int originalDepth = context...
codecommit.model.FileModeRequiredException(null);
1,846,616
public void marshall(Action action, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (action == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(action.getDynamoDB(), DYNAMODB_BINDING);<NEW_LINE>protocolMarshall...
action.getRepublish(), REPUBLISH_BINDING);
1,552,996
public boolean refreshTTL(RefreshOfferMessage refreshTTLMessage, @Nullable NodeAddress sender) {<NEW_LINE>try {<NEW_LINE>ByteArray hashOfPayload = new <MASK><NEW_LINE>ProtectedStorageEntry storedData = map.get(hashOfPayload);<NEW_LINE>if (storedData == null) {<NEW_LINE>log.debug("We don't have data for that refresh mes...
ByteArray(refreshTTLMessage.getHashOfPayload());
450,960
public boolean flushable() throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "flushable");<NEW_LINE>// Short circuit if we've never created a stream<NEW_LINE>if (streamSet == null) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isE...
tc, "flushable", Boolean.TRUE);
1,739,434
public void contextInitialized(ServletContextEvent event) {<NEW_LINE>ServletContext servletContext = event.getServletContext();<NEW_LINE>String contextName = servletContext.getContextPath().replaceAll("/", "");<NEW_LINE>if ("".equals(contextName)) {<NEW_LINE>contextName = "root";<NEW_LINE>}<NEW_LINE>System.out.printf("...
logger.info("Starting up context: {}", contextName);
473,741
public static BaseOperation operation(JsonNode message) {<NEW_LINE>String type = null;<NEW_LINE>if (message.has("type")) {<NEW_LINE>type = message.get("type").asText();<NEW_LINE>}<NEW_LINE>if (type == null) {<NEW_LINE>throw new IllegalArgumentException("Couldn't create Operation, missing 'type' property: " <MASK><NEW_L...
+ JsonUtil.toJson(message));
801,290
static KafkaStreams buildWikipediaFeed(final String bootstrapServers, final String schemaRegistryUrl, final String stateDir) {<NEW_LINE>final Properties streamsConfiguration = new Properties();<NEW_LINE>// Give the Streams application a unique name. The name must be unique in the Kafka cluster<NEW_LINE>// against whic...
> longSerde = Serdes.Long();
1,285,929
public Object visit(SmtArrayVariable.SmtIntegerArrayVariable n, Void arg) {<NEW_LINE>String varName = n.getName();<NEW_LINE>if (!solution.containsKey(varName)) {<NEW_LINE>throw new IllegalStateException("The variable " + varName + " is not defined in the given solution");<NEW_LINE>}<NEW_LINE>Object <MASK><NEW_LINE>if (...
value = solution.get(varName);
377,203
public void initialize(ExtensionContext context) {<NEW_LINE>// Note: initialize could be called twice in an account migration scenario where we import and<NEW_LINE>// export to the same service provider. So just return rather than throwing if called multiple<NEW_LINE>// times.<NEW_LINE>if (initialized)<NEW_LINE>return;...
Monitor monitor = context.getMonitor();
657,319
private void mergeBrowse(MBrowse browse, MBrowseCustom customBrowse) {<NEW_LINE>// Name<NEW_LINE>if (!Util.isEmpty(customBrowse.getName())) {<NEW_LINE>browse.setName(customBrowse.getName());<NEW_LINE>}<NEW_LINE>// Description<NEW_LINE>if (!Util.isEmpty(customBrowse.getDescription())) {<NEW_LINE>browse.setDescription(cu...
().equals("Y"));
549,446
protected String replaceBoolean(String statement) {<NEW_LINE>// try start matches<NEW_LINE>statement = statement.replaceAll(BOOLEANTRUEMATCH + "\\s*[,]", TRUE + ",");<NEW_LINE>statement = statement.replaceAll(BOOLEANFALSEMATCH + "\\s*[,]", FALSE + ",");<NEW_LINE>statement = statement.replaceAll(TIMESTAMPMATCH + "\\s*[,...
"\\s*[,]", "," + FALSE + ",");
1,606,769
public SingularityCreateResult saveDeploy(SingularityRequest request, SingularityDeployMarker deployMarker, SingularityDeploy deploy) {<NEW_LINE><MASK><NEW_LINE>LOG.info("Creating deploy {}", deployMarker);<NEW_LINE>singularityEventListener.deployHistoryEvent(new SingularityDeployUpdate(deployMarker, Optional.of(deploy...
createDeployIfNotExists(request, deployMarker, deploy);
1,521,334
/* (non-Javadoc)<NEW_LINE>* @see org.gudy.bouncycastle.math.ec.ECPoint#twice()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public ECPoint twice() {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>// Twice identity element (point at infinity) is identity<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (this.x.toBigInteger().signum(...
curve.fromBigInteger(ECConstants.ONE);
559,122
public boolean isInInterval(IssueScheduleInfo schedule, IssueScheduleInfo restrictionInterval) {<NEW_LINE>if (restrictionInterval == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>Calendar scheduleStart = Calendar.getInstance();<NEW_LINE>scheduleStart.setTime(schedule.getDate());<NEW_LINE>Calendar scheduleEnd = Cale...
scheduleStart.get(Calendar.DAY_OF_YEAR);
1,242,597
private StringBuilder genQuery() {<NEW_LINE>int columnCount = 0;<NEW_LINE>StringBuilder sb = new StringBuilder(INSERT_INTO);<NEW_LINE>sb.append(keyspace + "." + cfDef.getName());<NEW_LINE>sb.append(OPEN_PARA);<NEW_LINE>Iterator<ColumnDefinition> iter = cfDef.getPartitionKeyColumnDefinitionList().iterator();<NEW_LINE>wh...
next().getName());
712,461
private void showUsageView(@Nonnull UsageViewDescriptor viewDescriptor, @Nonnull Factory<UsageSearcher> factory, @Nonnull UsageInfo[] usageInfos) {<NEW_LINE>UsageViewManager viewManager = UsageViewManager.getInstance(myProject);<NEW_LINE>final PsiElement[] initialElements = viewDescriptor.getElements();<NEW_LINE>final ...
targets, usages, presentation, factory);
1,377,706
private void printCateFeatureInfo(StringBuilder sb) {<NEW_LINE>HashMap<Object, HashMap<Object, HashMap<Object, Double>>> cateFeaInfo = getCategoryFeatureInfo();<NEW_LINE>if (cateFeaInfo.size() == 0) {<NEW_LINE>sb.append("There is no category feature.\n");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (Map.Entry<Object, Hash...
featureValues[i].toString();
1,390,735
public GSSContext validateSpnegoToken(HttpServletResponse resp, GSSCredential spnGssCredential, @Sensitive final byte[] inToken, Subject clientSubject, SpnegoConfig spnegoConfig) throws AuthenticationException {<NEW_LINE>final GSSContext <MASK><NEW_LINE>byte[] responseToken = null;<NEW_LINE>PrivilegedExceptionAction<by...
gssContext = createGssContext(spnGssCredential, spnegoConfig);
663,429
private void walkJNICallInFrame(WalkState walkState) throws CorruptDataException {<NEW_LINE>J9SFJNICallInFramePointer callInFrame;<NEW_LINE>walkState.bp = walkState.arg0EA;<NEW_LINE>callInFrame = J9SFJNICallInFramePointer.cast(walkState.bp.subOffset(J9SFJNICallInFrame.SIZEOF).addOffset(UDATA.SIZEOF));<NEW_LINE>walkStat...
.cast(walkState.walkSP));
1,116,244
public SortState sort(final Comparator<BytesRef> comp, final IntBinaryOperator tieComparator) {<NEW_LINE>final int[] orderedEntries = new int[size()];<NEW_LINE>for (int i = 0; i < orderedEntries.length; i++) {<NEW_LINE>orderedEntries[i] = i;<NEW_LINE>}<NEW_LINE>new IntroSorter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>...
final int index = orderedEntries[j];
406,636
public static String doHttpPut(final String url, final String requestBody) throws Exception {<NEW_LINE>try {<NEW_LINE>HttpClient client = HttpClientBuilder.create().build();<NEW_LINE>HttpPut httpPut = new HttpPut(url);<NEW_LINE>httpPut.setHeader(CONTENT_TYPE, APPLICATION_JSON);<NEW_LINE>StringEntity jsonEntity = null;<...
"ParseException in getHttpPut :" + parseException.getMessage());
1,506,117
public Observable<ServiceResponse<Integer>> addPhraseListWithServiceResponseAsync(UUID appId, String versionId, PhraselistCreateObject phraselistCreateObject) {<NEW_LINE>if (this.client.endpoint() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.endpoint() is required and cannot be null.");...
this.client.endpoint());
60,549
public Object connect(String url, boolean read, boolean write, int timeout) throws IOException {<NEW_LINE>if (disconnectedMode && url.toLowerCase().startsWith("http")) {<NEW_LINE>throw new IOException("Unreachable");<NEW_LINE>}<NEW_LINE>if (url.toLowerCase().startsWith("http:")) {<NEW_LINE>if (!warnAboutHttpChecked) {<...
setTimeSent(System.currentTimeMillis());
688,312
private void applyTransforms(PoseStack matrixStackIn, T entityIn, float partialTicks, float entityYaw) {<NEW_LINE>long i = (long) entityIn.getId() * 493286711L;<NEW_LINE>i = i * i * 4392167121L + i * 98761L;<NEW_LINE>float f = (((float) (i >> 16 & 7L) + 0.5F) / 8.0F - 0.5F) * 0.004F;<NEW_LINE>float f1 = (((float) (i >>...
, d1, d2, -0.3F);
1,656,080
public static COSUnderFileSystem createInstance(AlluxioURI uri, UnderFileSystemConfiguration conf) throws Exception {<NEW_LINE>String bucketName = UnderFileSystemUtils.getBucketName(uri);<NEW_LINE>Preconditions.checkArgument(conf.isSet(PropertyKey.COS_ACCESS_KEY), "Property %s is required to connect to COS", PropertyKe...
conf.getString(PropertyKey.COS_APP_ID);
318,307
public void write(ByteBuf output, ClientWorld world, Chunk chunk) throws Exception {<NEW_LINE>output.writeInt(chunk.getX());<NEW_LINE>output.writeInt(chunk.getZ());<NEW_LINE>output.writeBoolean(chunk.isFullChunk());<NEW_LINE>Type.VAR_INT.writePrimitive(output, chunk.getBitmask());<NEW_LINE>ByteBuf buf = output<MASK><NE...
.alloc().buffer();
1,148,474
protected OrderedTensorType lazyGetType() {<NEW_LINE>if (!allInputTypesPresent(2))<NEW_LINE>return null;<NEW_LINE>OrderedTensorType dataType = inputs.get(0).type().get();<NEW_LINE>OrderedTensorType indicesType = inputs.get(1).type().get();<NEW_LINE>axis = (int) attributeMap.get("axis").orElse(DoubleValue.zero).asDouble...
get(0).exportAsRankingFunction = true;
1,439,583
private boolean execute(final ExecutionGroupContext<JDBCExecutionUnit> executionGroupContext, final ExecuteCallback executeCallback, final SQLStatement sqlStatement, final Collection<RouteUnit> routeUnits) throws SQLException {<NEW_LINE>boolean isExceptionThrown = SQLExecutorExceptionHandler.isExceptionThrown();<NEW_LI...
getLogicSQL(), routeUnits, jdbcExecutorCallback);
626,627
public void exitCfa_set_associated_interface(Cfa_set_associated_interfaceContext ctx) {<NEW_LINE>Optional<String> optName = toString(ctx, ctx.name);<NEW_LINE>if (!optName.isPresent()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Permitted zone names are a superset of permitted interface names, so at this point we know<NEW...
warn(ctx, "No interface or zone named " + name);
1,484,185
public void partialUpdate() {<NEW_LINE>// Here's a channel with some custom field data that might be useful<NEW_LINE>ChannelClient channelClient = <MASK><NEW_LINE>List<String> members = Arrays.asList("thierry", "tommaso");<NEW_LINE>Map<String, String> channelDetail = new HashMap<>();<NEW_LINE>channelDetail.put("topic",...
client.channel("messaging", "general");
1,056,263
public void deleteFromBlackList(MethodCall methodCall, final MethodChannel.Result result) {<NEW_LINE>List<String> userIDList = CommonUtil.<MASK><NEW_LINE>V2TIMManager.getFriendshipManager().deleteFromBlackList(userIDList, new V2TIMValueCallback<List<V2TIMFriendOperationResult>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE...
getParam(methodCall, result, "userIDList");
1,422,662
public void saveDownloadList(File file) {<NEW_LINE>int count = downloads.size();<NEW_LINE>BufferedWriter writer = null;<NEW_LINE>SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");<NEW_LINE>String newLine = System.getProperty("line.separator");<NEW_LINE>try {<NEW_LINE>writer = new BufferedWriter(...
ent.getId() + newLine);
643,332
public void marshall(ListStudioLifecycleConfigsRequest listStudioLifecycleConfigsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (listStudioLifecycleConfigsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh...
listStudioLifecycleConfigsRequest.getMaxResults(), MAXRESULTS_BINDING);
138,296
public void open(Configuration parameters) throws Exception {<NEW_LINE>size = 1;<NEW_LINE>if (hasGroupType) {<NEW_LINE>List<Tuple2<Object, Integer>> types = getRuntimeContext().getBroadcastVariable("w2vGroupTypes");<NEW_LINE>for (Tuple2<Object, Integer> type : types) {<NEW_LINE>typeMap.put(type.f0, type.f1);<NEW_LINE>}...
] += weightInstSum.f1[i];
1,272,179
public void run(RegressionEnvironment env) {<NEW_LINE>sendCurrentTime(env, "2002-02-01T09:00:00.000");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE><MASK><NEW_LINE>env.compileDeploy("@name('s0') context MyCtx select * from SupportBean", path).addListener("s0");<NEW_LINE>env.sendEventBean(new SupportBea...
env.compileDeploy("@public create context MyCtx start SupportBean_S1 end after 1 month", path);
1,020,733
protected void reflectTabChangeToUrl(boolean userOriginated) {<NEW_LINE>if (!userOriginated) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Component selectedTab = tabbedContainer.getTabSheetBehaviour().getSelectedTab();<NEW_LINE>if (selectedTab == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Window selectedWindow = ((TabWindo...
getScreenContext(screen).getUrlRouting();
94,752
public Node writeDescriptor(Node parent, String nodeName, JMSConnectionFactoryDefinitionDescriptor desc) {<NEW_LINE>Node node = appendChild(parent, nodeName);<NEW_LINE>appendTextChild(node, TagNames.JMS_CONNECTION_FACTORY_DESCRIPTION, desc.getDescription());<NEW_LINE>appendTextChild(node, TagNames.JMS_CONNECTION_FACTOR...
JMS_CONNECTION_FACTORY_CLASS_NAME, desc.getClassName());
940,053
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<UUID> perms = new ArrayList<>();<NEW_LINE>filter.add(<MASK><NEW_LINE>for (UUID playerId : game.getOpponents(source.g...
TargetController.YOU.getControllerPredicate());
784,864
public static AutomaticDependencies parse(URL[] urls) throws SAXException, IOException {<NEW_LINE>LOG.log(Level.FINE, "Parsing automatic dependencies {0}", Arrays.asList(urls));<NEW_LINE>AutomaticDependencies h = new AutomaticDependencies();<NEW_LINE>Parser p = new Parser(h.new Handler());<NEW_LINE>for (URL url : urls)...
InputSource is = new InputSource(id);
426,537
public Object listStates(HttpServletRequest request) {<NEW_LINE>String namespaceId = WebUtils.optional(request, CommonParams.NAMESPACE_ID, Constants.DEFAULT_NAMESPACE_ID);<NEW_LINE>JSONObject result = new JSONObject();<NEW_LINE>int page = Integer.parseInt(WebUtils.required(request, "pageNo"));<NEW_LINE>int pageSize = I...
result.put("clusterStateList", clusterStateJsonArray);
259,698
// fetch All Radio Maps except from current floor(floor_number)<NEW_LINE>private void fetchAllRadioMaps(final int index) {<NEW_LINE>if (build.getFloors() != null) {<NEW_LINE>if (index < build.getFloors().size()) {<NEW_LINE>FloorModel f = build.getFloors().get(index);<NEW_LINE>AsyncTask<Void, Void, String> task = new Do...
result, BackgroundFetchListener.ErrorType.EXCEPTION);
1,828,388
private boolean isIatValid(JSONObject jobj, OidcClientConfig clientConfig, OidcClientRequest oidcClientRequest) {<NEW_LINE>Date currentDate = new Date();<NEW_LINE>Long iat = 0L;<NEW_LINE>if (jobj.get("iat") != null && (iat = getLong(jobj.get("iat"))) != null) {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.<MASK><NEW...
debug(tc, "iat = ", iat);
1,697,695
private org.w3c.dom.Node storeCompoundBorder(org.w3c.dom.Document doc) {<NEW_LINE>try {<NEW_LINE>org.w3c.dom.Element <MASK><NEW_LINE>FormProperty prop;<NEW_LINE>// NOI18N<NEW_LINE>prop = (FormProperty) borderSupport.getPropertyOfName("outsideBorder");<NEW_LINE>if (prop != null && prop.isChanged())<NEW_LINE>writePropert...
el = doc.createElement(XML_COMPOUND_BORDER);
1,538,674
private static String formatLink(String text, String link) {<NEW_LINE>link = link == null ? "" : link;<NEW_LINE>text = text == null ? "" : text;<NEW_LINE>final String formattedLink;<NEW_LINE>final Matcher linkMatch = Patterns.WEB_URL.matcher(link.trim());<NEW_LINE>if (linkMatch.matches() && !link.trim().matches("\\s") ...
link.replaceAll("(?m)(?<=&|\\?)(utm_|source|__mk_|ref|sprefix|crid|partner|promo).*?(&|$|\\s|\\))", "");
170,022
final GetExpenseAnalysisResult executeGetExpenseAnalysis(GetExpenseAnalysisRequest getExpenseAnalysisRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getExpenseAnalysisRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Textract");
1,603,106
public ByteBuffer asByteBuffer() {<NEW_LINE>int spsPpsSize = 0;<NEW_LINE>for (ByteBuffer bytes : avcC.getSequenceParameterSets()) {<NEW_LINE>spsPpsSize += len + bytes.limit();<NEW_LINE>}<NEW_LINE>for (ByteBuffer bytes : avcC.getSequenceParameterSetExts()) {<NEW_LINE>spsPpsSize += len + bytes.limit();<NEW_LINE>}<NEW_LIN...
limit(), data, len);
815,296
public DiscordantPairEvidence decode(final Reader<DiscordantPairEvidence> reader) throws IOException {<NEW_LINE>if (!versionChecked) {<NEW_LINE>if (!DiscordantPairEvidence.BCI_VERSION.equals(reader.getVersion())) {<NEW_LINE>throw new UserException("baf.bci file has wrong version: expected " + DiscordantPairEvidence.BCI...
" but found " + reader.getVersion());
639,601
final ListBackupSelectionsResult executeListBackupSelections(ListBackupSelectionsRequest listBackupSelectionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBackupSelectionsRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListB...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,835,364
final InferSNOMEDCTResult executeInferSNOMEDCT(InferSNOMEDCTRequest inferSNOMEDCTRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(inferSNOMEDCTRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
808,198
public void encodeValues(Buffer valueBuffer, List<JoinActiveTraceBo> joinActiveTraceBoList) {<NEW_LINE>if (CollectionUtils.isEmpty(joinActiveTraceBoList)) {<NEW_LINE>throw new IllegalArgumentException("JoinActiveTraceBoList must not be empty");<NEW_LINE>}<NEW_LINE>final int numValues = joinActiveTraceBoList.size();<NEW...
codec.encodeTimestamps(valueBuffer, timestamps);
1,094,350
final GetRecommendationPreferencesResult executeGetRecommendationPreferences(GetRecommendationPreferencesRequest getRecommendationPreferencesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRecommendationPreferencesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
endClientExecution(awsRequestMetrics, request, response);
125,459
protected void visitJspParamStart(Element jspElement) throws JspCoreException {<NEW_LINE>List specifiedStandardActionAttrs = getAttributeList(jspElement);<NEW_LINE>validateRequiredAttributes(jspElement, specifiedStandardActionAttrs, paramAttrsRequiredAttrs);<NEW_LINE>validateAttributes(specifiedStandardActionAttrs, jsp...
name = getAttributeValue(jspElement, "name");
1,076,956
private void init() throws NullPointerException {<NEW_LINE>try {<NEW_LINE>configuration = new HdfsConfiguration();<NEW_LINE>if (CommonUtils.loadKerberosConf(configuration)) {<NEW_LINE>hdfsUser = "";<NEW_LINE>}<NEW_LINE>String defaultFS = configuration.get(Constants.FS_DEFAULT_FS);<NEW_LINE>// first get key from core-si...
ugi = UserGroupInformation.createRemoteUser(hdfsUser);