idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,361,238
static Optional<String> longestCommonPath(List<ApiDescription> apiDescriptions) {<NEW_LINE>List<String> commons = new ArrayList<>();<NEW_LINE>if (null == apiDescriptions || apiDescriptions.isEmpty()) {<NEW_LINE>return empty();<NEW_LINE>}<NEW_LINE>List<String> firstWords = urlParts<MASK><NEW_LINE>for (int position = 0; ...
(apiDescriptions.get(0));
1,690,533
public void visitEnd() {<NEW_LINE>super.visitEnd();<NEW_LINE>if (visibleParamAnnotations != null) {<NEW_LINE>VisibilityParameterAnnotationTag tag = new VisibilityParameterAnnotationTag(<MASK><NEW_LINE>for (VisibilityAnnotationTag vat : visibleParamAnnotations) {<NEW_LINE>tag.addVisibilityAnnotation(vat);<NEW_LINE>}<NEW...
visibleParamAnnotations.length, AnnotationConstants.RUNTIME_VISIBLE);
90,815
private TransactionPair<PortfolioTransaction> splitBuySell(BuySellEntry entry, Portfolio portfolio, double weight) {<NEW_LINE>PortfolioTransaction t = entry.getPortfolioTransaction();<NEW_LINE>BuySellEntry copy = new BuySellEntry();<NEW_LINE>copy.setPortfolio(entry.getPortfolio());<NEW_LINE>copy.setAccount(entry.getAcc...
), copy.getPortfolioTransaction());
1,592,589
public Request<GetMLModelRequest> marshall(GetMLModelRequest getMLModelRequest) {<NEW_LINE>if (getMLModelRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetMLModelRequest)");<NEW_LINE>}<NEW_LINE>Request<GetMLModelRequest> request = new DefaultRequest<GetMLModelRequest>(g...
t.getMessage(), t);
1,634,750
Map<DISPID, Method> createDispIdMap(Class<?> comEventCallbackInterface) {<NEW_LINE>Map<DISPID, Method> map = new HashMap<DISPID, Method>();<NEW_LINE>for (Method meth : comEventCallbackInterface.getMethods()) {<NEW_LINE>ComEventCallback callbackAnnotation = meth.getAnnotation(ComEventCallback.class);<NEW_LINE>ComMethod ...
new DISPID(dispId), meth);
939,434
static Expression createFieldAccessor(EclipseNode field, FieldAccess fieldAccess, ASTNode source, char[] receiver) {<NEW_LINE>int pS = source.sourceStart, pE = source.sourceEnd;<NEW_LINE>long p = <MASK><NEW_LINE>boolean lookForGetter = lookForGetter(field, fieldAccess);<NEW_LINE>GetterMethod getter = lookForGetter ? fi...
(long) pS << 32 | pE;
1,758,524
private void manageNotPatterns(OSelectExecutionPlan result, Pattern pattern, List<OMatchExpression> notMatchExpressions, OCommandContext context, boolean enableProfiling) {<NEW_LINE>for (OMatchExpression exp : notMatchExpressions) {<NEW_LINE>if (pattern.aliasToNode.get(exp.getOrigin().getAlias()) == null) {<NEW_LINE>th...
(steps, context, enableProfiling));
324,258
public ServiceInfo listInstance(String namespaceId, String serviceName, Subscriber subscriber, String cluster, boolean healthOnly) {<NEW_LINE>Service service = <MASK><NEW_LINE>// For adapt 1.X subscribe logic<NEW_LINE>if (subscriber.getPort() > 0 && pushService.canEnablePush(subscriber.getAgent())) {<NEW_LINE>String cl...
getService(namespaceId, serviceName, true);
836,914
final CreateInputResult executeCreateInput(CreateInputRequest createInputRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createInputRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
533,709
public static double germlineProbability(final double normalLogOdds, final double logOddsOfGermlineHetVsSomatic, final double logOddsOfGermlineHomAltVsSomatic, final double populationAF, final double logPriorSomatic) {<NEW_LINE>final double logPriorNotSomatic = NaturalLogUtils.log1mexp(logPriorSomatic);<NEW_LINE>final ...
NaturalLogUtils.logSumExp(logProbGermlineHet, logProbGermlineHomAlt);
760,208
public DescribeNatGatewaysResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeNatGatewaysResult describeNatGatewaysResult = new DescribeNatGatewaysResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isSta...
XMLEvent xmlEvent = context.nextEvent();
34,235
protected TreeBuilder createTreeBuilder(Properties properties, Feature... features) {<NEW_LINE>Class<?> clazz = load(TreeBuilder.class, properties);<NEW_LINE>if (clazz == null) {<NEW_LINE>return createDefaultTreeBuilder(features);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>if (Builder.class.isAssignableFrom(clazz)) {<NEW_LINE>...
"TreeBuilder " + clazz + " could not be instantiated", e);
1,204,614
public void decode(ByteBuf buf, ProtocolUtils.Direction direction, ProtocolVersion version) {<NEW_LINE>this.locale = ProtocolUtils.readString(buf, 16);<NEW_LINE>this.viewDistance = buf.readByte();<NEW_LINE>this.chatVisibility = ProtocolUtils.readVarInt(buf);<NEW_LINE>this.chatColors = buf.readBoolean();<NEW_LINE>if (ve...
mainHand = ProtocolUtils.readVarInt(buf);
751,373
private void loadChineseGenderNumberAnimacy(String file) {<NEW_LINE>String[] split = new String[8];<NEW_LINE>for (String line : IOUtils.readLines(file)) {<NEW_LINE>// ignore first row<NEW_LINE>if (line.startsWith("#WORD"))<NEW_LINE>continue;<NEW_LINE>StringUtils.<MASK><NEW_LINE>String word = split[0];<NEW_LINE>int anim...
splitOnChar(split, line, '\t');
1,443,079
public void marshall(CreateFlowRequest createFlowRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createFlowRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createFlowRequest.getFlowName(), ...
e.getMessage(), e);
995,983
final UpdateStreamResult executeUpdateStream(UpdateStreamRequest updateStreamRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateStreamRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
false), new UpdateStreamResultJsonUnmarshaller());
415,648
protected final void addAnnotationValuesFromData(List results, Map<CharSequence, Object> values) {<NEW_LINE>if (values != null) {<NEW_LINE>Object v = values.get(AnnotationMetadata.VALUE_MEMBER);<NEW_LINE>if (v instanceof io.micronaut.core.annotation.AnnotationValue[]) {<NEW_LINE>io.micronaut.core.annotation.AnnotationV...
.annotation.AnnotationValue) o));
303,013
public Stat concurrentSpreadRate(String key) {<NEW_LINE>return concurrent.computeIfAbsent(key, k -> {<NEW_LINE>SpreadStat stat = new SpreadStat(key);<NEW_LINE>addDynamicCounter(key + ".rate", () -> stat.getRate().getAllTime());<NEW_LINE>addDynamicCounter(key + ".rate.3600", () -> stat.getRate().getHour());<NEW_LINE>add...
getAverage().getMinute());
510,585
public DatasetVersion deleteDatasetVersionTags(String datasetVersionId, List<String> datasetVersionTagList, Boolean deleteAll) {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>var transaction = session.beginTransaction();<NEW_LINE>if (deleteAll) {<NEW_LINE>var query = ses...
query.setParameter("tags", datasetVersionTagList);
351,072
public void actionPerformed(final ActionEvent e) {<NEW_LINE>if (getResourceController().getBooleanProperty(IGNORE_UNASSIGNED_F_KEYS))<NEW_LINE>return;<NEW_LINE>AccelerateableAction.setNewAcceleratorOnNextClick(accelerator);<NEW_LINE>final JCheckBox dontShowAgainBox = new JCheckBox(TextUtils.getRawText(OptionalDontShowM...
add(dontShowAgainBox, BorderLayout.SOUTH);
767,054
public BatchCreateChannelMembershipResult batchCreateChannelMembership(BatchCreateChannelMembershipRequest batchCreateChannelMembershipRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchCreateChannelMembershipRequest);<NEW_LINE>AWSReq...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,270,665
public static GetMigrationProcessResponse unmarshall(GetMigrationProcessResponse getMigrationProcessResponse, UnmarshallerContext _ctx) {<NEW_LINE>getMigrationProcessResponse.setRequestId(_ctx.stringValue("GetMigrationProcessResponse.RequestId"));<NEW_LINE>getMigrationProcessResponse.setHttpStatusCode(_ctx.integerValue...
= new ArrayList<ProgressTaskItem>();
1,041,944
public void create(Properties ctx, TransformerHandler document) throws SAXException {<NEW_LINE>int workflowId = Env.getContextAsInt(ctx, X_AD_Package_Exp_Detail.COLUMNNAME_AD_Workflow_ID);<NEW_LINE>PackOut packOut = (PackOut) ctx.get("PackOutProcess");<NEW_LINE>if (packOut == null) {<NEW_LINE>packOut = new PackOut();<N...
).<MWFNextCondition>list();
1,846,324
public static CalculateSavingsPlansResponse unmarshall(CalculateSavingsPlansResponse calculateSavingsPlansResponse, UnmarshallerContext _ctx) {<NEW_LINE>calculateSavingsPlansResponse.setRequestId(_ctx.stringValue("CalculateSavingsPlansResponse.RequestId"));<NEW_LINE>calculateSavingsPlansResponse.setCode(_ctx.stringValu...
("CalculateSavingsPlansResponse.Data[" + i + "].UserId"));
175,971
public void handleOutboundPubrel(@NotNull final ChannelHandlerContext ctx, @NotNull final PUBREL pubrel, @NotNull final ChannelPromise promise) {<NEW_LINE>final Channel channel = ctx.channel();<NEW_LINE>final ClientConnection clientConnection = channel.attr(ChannelAttributes.CLIENT_CONNECTION).get();<NEW_LINE>final Str...
ctx.write(pubrel, promise);
1,089,967
public boolean inCategory(@Name("node") Node individual, @Name("category") Node category, @Name(value = "params", defaultValue = "{}") Map<String, Object> props) {<NEW_LINE>final GraphConfig gc = getGraphConfig();<NEW_LINE>final String inCatRelName = (props.containsKey("inCatRel") ? (String) props.get("inCatRel") : get...
contains(category.getId());
1,801,059
public SNOMEDCTTrait unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SNOMEDCTTrait sNOMEDCTTrait = new SNOMEDCTTrait();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCu...
int originalDepth = context.getCurrentDepth();
619,002
private static Map<URL, Collection<URL>> findReverseDependencies(@NonNull final Map<URL, List<URL>> deps) {<NEW_LINE>final Map<URL, Collection<URL>> inverseDeps = new HashMap<URL, Collection<URL>>();<NEW_LINE>for (Map.Entry<URL, List<URL>> entry : deps.entrySet()) {<NEW_LINE>final URL u1 = entry.getKey();<NEW_LINE>if (...
= new HashSet<URL>();
1,138,744
private Version createVersionComponents() {<NEW_LINE>String tagName = myName;<NEW_LINE>if (tagName.startsWith("v.")) {<NEW_LINE>tagName = tagName.substring(2);<NEW_LINE>} else if (StringUtil.startsWithChar(tagName, 'v')) {<NEW_LINE>tagName = tagName.substring(1);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>int startInd = 0;<NE...
IntList intComponents = IntLists.newArrayList();
983,412
private void populateFromPubKeyInfo(SubjectPublicKeyInfo info) {<NEW_LINE>X962Parameters params = X962Parameters.getInstance(info.getAlgorithm().getParameters());<NEW_LINE>ECCurve curve = EC5Util.getCurve(configuration, params);<NEW_LINE>ecSpec = EC5Util.convertToSpec(params, curve);<NEW_LINE><MASK><NEW_LINE>byte[] dat...
ASN1BitString bits = info.getPublicKeyData();
1,307,363
private JPanel createFieldPanel() {<NEW_LINE>// $NON-NLS-1$<NEW_LINE>responseStringButton = new JRadioButton(JMeterUtils.getResString("assertion_text_resp"));<NEW_LINE>// $NON-NLS-1$<NEW_LINE>responseAsDocumentButton = new JRadioButton(JMeterUtils.getResString("assertion_text_document"));<NEW_LINE>// $NON-NLS-1$<NEW_LI...
JMeterUtils.getResString("assertion_resp_field")));
288,471
protected void writeAdditionalAttributes(BaseElement element, BpmnModel model, XMLStreamWriter xtw) throws Exception {<NEW_LINE>UserTask userTask = (UserTask) element;<NEW_LINE>writeQualifiedAttribute(ATTRIBUTE_TASK_USER_ASSIGNEE, userTask.getAssignee(), xtw);<NEW_LINE>writeQualifiedAttribute(ATTRIBUTE_TASK_USER_OWNER,...
userTask.getBusinessCalendarName(), xtw);
118,274
public String register(String... senderIds) throws IOException {<NEW_LINE>if (Looper.getMainLooper() == Looper.myLooper())<NEW_LINE>throw new IOException(ERROR_MAIN_THREAD);<NEW_LINE>if (senderIds == null || senderIds.length == 0)<NEW_LINE>throw new IllegalArgumentException("No sender ids");<NEW_LINE>StringBuilder sb =...
.append(senderIds[i]);
1,667,895
protected boolean canUserEvaluate() {<NEW_LINE>if (!Config.getBooleanProperty("ENABLE_SCRIPTING", false)) {<NEW_LINE>Logger.warn(this.getClass(), "Scripting called and ENABLE_SCRIPTING set to false");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>ica = new InternalContextAdapterImpl(ctx);<NEW_LINE>String fi...
).doesUserHaveRole(mu, scripting);
225,165
public BotCommandScope deserialize(JsonParser jsonParser, DeserializationContext deserializationContext) throws IOException {<NEW_LINE>JsonNode node = jsonParser.getCodec().readTree(jsonParser);<NEW_LINE>String type = node.has("Type") ? node.get(<MASK><NEW_LINE>switch(type) {<NEW_LINE>case "default":<NEW_LINE>return ob...
"type").asText() : "";
1,560,490
private void updatePorts(Instance instance) {<NEW_LINE>final var nrBits = instance.getAttributeValue(StdAttr.WIDTH).getWidth();<NEW_LINE>var nrOfPorts = nrBits;<NEW_LINE>final var dir = instance.getAttributeValue(PioAttributes.PIO_DIRECTION);<NEW_LINE>final var hasIrq = hasIrqPin(instance.getAttributeSet());<NEW_LINE>i...
Integer.toString(b)));
723,326
public void onImportUserFromLDAP(LDAPObject ldapUser, UserModel user, RealmModel realm, boolean isCreate) {<NEW_LINE>LDAPGroupMapperMode mode = config.getMode();<NEW_LINE>// For now, import LDAP role mappings just during create<NEW_LINE>if (mode == LDAPGroupMapperMode.IMPORT && isCreate) {<NEW_LINE>List<LDAPObject> lda...
role = roleContainer.getRole(roleName);
267,819
protected String[] process(final long offset, final String[] firstFour, final String[] secondFour) {<NEW_LINE>final String diff1 = environment.getNextVariableString();<NEW_LINE>final String diff2 = environment.getNextVariableString();<NEW_LINE>final String diff3 = environment.getNextVariableString();<NEW_LINE>final Str...
String usignedDoesSat = environment.getNextVariableString();
502,316
private void doPrintEntries(PrintStream out) throws Exception {<NEW_LINE>// Adjust displayed keystore type if needed.<NEW_LINE>String keystoreTypeToPrint = keyStore.getType();<NEW_LINE>if ("JKS".equalsIgnoreCase(keystoreTypeToPrint)) {<NEW_LINE>if (ksfile != null && ksfile.exists()) {<NEW_LINE>String realType = keyStor...
getProvider().getName());
230,337
public Map<String, String> availableImages() throws IOException {<NEW_LINE>Path webRoot = plugin.getRenderConfig().getWebRoot().toPath().toAbsolutePath();<NEW_LINE>String separator = webRoot.getFileSystem().getSeparator();<NEW_LINE>Path imageRootPath = webRoot.resolve("data").resolve(IMAGE_ROOT_PATH).toAbsolutePath();<...
).replace(separator, "/");
54,959
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (player == null || sourceObject == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Cards cards = new CardsImpl(player.getLi...
0, 1, StaticFilters.FILTER_CARD);
713,023
protected Boolean doInBackground(String... urls) {<NEW_LINE>try {<NEW_LINE>Twitter twitter = Utils.getTwitter(context, settings);<NEW_LINE>if (stream == null) {<NEW_LINE>// create a file to write bitmap data<NEW_LINE>// context being the Activity pointer<NEW_LINE><MASK><NEW_LINE>File f = File.createTempFile("compose", ...
File outputDir = context.getCacheDir();
177,829
public static void glStencilThenCoverStrokePathInstancedNV(@NativeType("GLenum") int pathNameType, @NativeType("void const *") ByteBuffer paths, @NativeType("GLuint") int pathBase, @NativeType("GLint") int reference, @NativeType("GLuint") int mask, @NativeType("GLenum") int coverMode, @NativeType("GLenum") int transfor...
remaining() / pathNameTypeToBytes(pathNameType);
318,730
private static void fixExtents(LayoutMasterSet lms, AbstractWmlConversionContext context, boolean useXSLT) {<NEW_LINE>WordprocessingMLPackage wordMLPackage = context.getWmlPackage();<NEW_LINE>StartEvent startEvent = new StartEvent(wordMLPackage, WellKnownProcessSteps.FO_EXTENTS);<NEW_LINE>startEvent.publish();<NEW_LINE...
, Context.getXslFoContext()));
760,331
private boolean dispatchTransactionSurface(float depth) {<NEW_LINE>boolean supportsBlur = BlurUtils.supportsBlursOnWindows();<NEW_LINE>if (supportsBlur && (mSurface == null || !mSurface.isValid())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>ensureDependencies();<NEW_LINE>IBinder windowToken = mLauncher.getRootView()....
mSurface, opaque).apply();
473,323
protected void submitResponse(RestRequest restRequest, RestResponseChannel restResponseChannel, ReadableStreamChannel response, Exception exception) throws RestServiceException {<NEW_LINE>long processingStartTime = System.currentTimeMillis();<NEW_LINE>if (restRequest == null || restResponseChannel == null) {<NEW_LINE>t...
).scalingMetricsTracker.addToResponseProcessingTime(preProcessingTime);
164,664
public void onCreate() {<NEW_LINE>SharedPreferences themePrefs = getSharedPreferences("THEME", 0);<NEW_LINE>Boolean isDark = <MASK><NEW_LINE>if (isDark)<NEW_LINE>setTheme(R.style.DarkTheme);<NEW_LINE>else<NEW_LINE>setTheme(R.style.AppTheme);<NEW_LINE>super.onCreate();<NEW_LINE>ACRA.init(this);<NEW_LINE>Services.init(th...
themePrefs.getBoolean("isDark", false);
1,809,603
public void iterationStart(LoopIterationEvent event) {<NEW_LINE>// Cannot use getThreadContext() as not cloned per thread<NEW_LINE>JMeterVariables variables = JMeterContextService.getContext().getVariables();<NEW_LINE>long start = getStart();<NEW_LINE>long end = getEnd();<NEW_LINE>long increment = getIncrement();<NEW_L...
long current = perTheadNumber.get();
666,480
private static MBPartner cleanBPartner(Properties ctx, MBPartner source) {<NEW_LINE>if (source == null)<NEW_LINE>source = new MBPartner(ctx, 0, null);<NEW_LINE>// Reset<NEW_LINE>source.set_ValueNoCheck("C_BPartner_ID", new Integer(0));<NEW_LINE>source.setTaxID("");<NEW_LINE>source.setValue("");<NEW_LINE>source.setName(...
source.setAcqusitionCost(Env.ZERO);
183,218
final ListTemplateAliasesResult executeListTemplateAliases(ListTemplateAliasesRequest listTemplateAliasesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTemplateAliasesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTemplateAliases");
215,575
private EventSetDescriptor[] introspectEvents() throws IntrospectionException {<NEW_LINE>// Get descriptors for the public methods<NEW_LINE>// FIXME: performance<NEW_LINE>MethodDescriptor[] theMethods = introspectMethods();<NEW_LINE>if (theMethods == null)<NEW_LINE>return null;<NEW_LINE>HashMap<String, HashMap> eventTa...
Class) table.get("listenerType");
976,236
public List<String> sortFile(File sourceFile) {<NEW_LINE>List<String> lines = new LinkedList<String>();<NEW_LINE>try {<NEW_LINE>BufferedReader reader = new <MASK><NEW_LINE>String line = reader.readLine();<NEW_LINE>while (line != null) {<NEW_LINE>line = line.replace(" ", "").trim();<NEW_LINE>while (!line.endsWith(";")) ...
BufferedReader(new FileReader(sourceFile));
69,051
public CreateBillingGroupResult createBillingGroup(CreateBillingGroupRequest createBillingGroupRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createBillingGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.g...
new JsonResponseHandler<CreateBillingGroupResult>(unmarshaller);
1,483,020
public static DescribeClusterConnectionResponse unmarshall(DescribeClusterConnectionResponse describeClusterConnectionResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeClusterConnectionResponse.setRequestId(_ctx.stringValue("DescribeClusterConnectionResponse.RequestId"));<NEW_LINE>describeClusterConnectionResponse...
("DescribeClusterConnectionResponse.ServiceConnAddrs[" + i + "].ConnType"));
145,282
private void processJsonNode(ObjectMapper mapper, JsonNode node) {<NEW_LINE>JsonNode eventTypeNode = node.get("eventType");<NEW_LINE>if (eventTypeNode == null) {<NEW_LINE>System.err.println(format("{0}: Invalid message, missing eventType", discoveryName));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(eventTypeNode.asTex...
"error: " + msg.getMessage());
528,215
private static void createSipConnectorVirtualHost(Map<String, Object> sipEndpointProperties, boolean isSslEnabled, ConfigurationAdmin configAdminRef) throws IOException, InvalidSyntaxException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {<NEW_LINE>Object[] params = { sipEndpointPropertie...
props.put("id", SIP_CONNECTOR_VH_ID);
602,049
public static void wipePS(ByteBuffer _in, ByteBuffer out, List<ByteBuffer> spsList, List<ByteBuffer> ppsList) {<NEW_LINE>ByteBuffer dup = _in.duplicate();<NEW_LINE>while (dup.hasRemaining()) {<NEW_LINE>ByteBuffer buf = H264Utils.nextNALUnit(dup);<NEW_LINE>if (buf == null)<NEW_LINE>break;<NEW_LINE>NALUnit nu = NALUnit.<...
read(buf.duplicate());
930,261
public void added(Rule rule) {<NEW_LINE>if (!rule.getTags().contains(RULES_TAG)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>HueRuleEntry entry = new HueRuleEntry(rule.getName());<NEW_LINE>String desc = rule.getDescription();<NEW_LINE>if (desc != null) {<NEW_LINE>entry.description = desc;<NEW_LINE>}<NEW_LINE>rule.getConditi...
as(HueRuleEntry.Condition.class);
19,681
// ///////////////////////////////////////////////////////////////////////<NEW_LINE>// HACKING section<NEW_LINE>// Let's simulate some hacking that is needed if the framework is unaware<NEW_LINE>// of hotswap agent plugin.<NEW_LINE>// Use this approach only if you cannot or do not want to modify framework<NEW_LINE>// c...
PrinterSourceScanner().scanPrintSources());
123,993
private static void pushValue(final V8 v8, final V8Array result, final Object value, final Map<Object, V8Value> cache) {<NEW_LINE>if (value == null) {<NEW_LINE>result.pushUndefined();<NEW_LINE>} else if (value instanceof Integer) {<NEW_LINE>result.push(value);<NEW_LINE>} else if (value instanceof Long) {<NEW_LINE>resul...
Double((Long) value));
1,612,580
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("informix " + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>if (size == 0) {<NEW_LINE>Object o = param.<MASK><NEW_L...
getLeafExpression().calculate(ctx);
1,816,089
public PCollection<KV<ShardedKey<K>, Iterable<InputT>>> expand(PCollection<KV<K, InputT>> input) {<NEW_LINE>checkArgument(input.getCoder() instanceof KvCoder, "coder specified in the input PCollection is not a KvCoder");<NEW_LINE>KvCoder<K, InputT> inputCoder = (KvCoder<K, InputT>) input.getCoder();<NEW_LINE>Coder<K> k...
getCoderArguments().get(0);
111,219
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>overridePendingTransition(0, 0);<NEW_LINE>SharedPreferences sharedPrefs = getSharedPreferences("com.klinker.android.twitter_world_preferences", 0);<NEW_LINE>int currentAccount = sharedPrefs.getInt("current_account", ...
getInt(pageIdentifier, AppSettings.PAGE_TYPE_NONE);
1,064,408
public QuranRow fromBookmark(Context context, Bookmark bookmark, Long tagId) {<NEW_LINE>final QuranRow.Builder builder = new QuranRow.Builder();<NEW_LINE>if (bookmark.isPageBookmark()) {<NEW_LINE>final int sura = quranInfo.getSuraNumberFromPage(bookmark.getPage());<NEW_LINE>builder.withText(quranDisplayData.getSuraName...
bookmark.getAyah(), context);
1,544,422
public void writeField(FieldInfo fieldInfo, PointsReader reader) throws IOException {<NEW_LINE>PointValues.PointTree values = reader.getValues(<MASK><NEW_LINE>BKDConfig config = new BKDConfig(fieldInfo.getPointDimensionCount(), fieldInfo.getPointIndexDimensionCount(), fieldInfo.getPointNumBytes(), maxPointsInLeafNode);...
fieldInfo.name).getPointTree();
389,946
public boolean isTriggerActive(IStatementContainer container, IStatementParameter[] parameters) {<NEW_LINE>if (!(container instanceof IGate) || parameters.length < 1 || !(parameters[0] instanceof StatementParameterRedstoneLevel)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int level = ((StatementParameterRedstoneLevel...
getSide().ordinal()];
271,609
/* (non-Javadoc)<NEW_LINE>* @see org.docx4j.openpackaging.parts.WordprocessingML.AltChunkInterface#addAltChunkOfTypeHTML(java.io.InputStream)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public AlternativeFormatInputPart addAltChunk(AltChunkType type, InputStream is, int index) throws Docx4JException {<NEW_LINE>AlternativeF...
).getName() + " doesn't implement ContentAccessor");
1,006,502
// Throws a RuntimeException if failed trade cannot be changed to OPEN for any reason.<NEW_LINE>private void verifyCanUnfailTrade(Trade failedTrade) {<NEW_LINE>if (tradeUtil.getTradeAddresses(failedTrade) == null)<NEW_LINE>throw new IllegalStateException(format("cannot change failed trade to open because no trade addre...
, failedTrade.getId()));
1,774,813
public static void plus(IntIterableRangeSet setr, IntIterableRangeSet set1, int l, int u) {<NEW_LINE>setr.clear();<NEW_LINE>int <MASK><NEW_LINE>if (s1 > 0 && l <= u) {<NEW_LINE>int k = 0;<NEW_LINE>setr.grow(set1.SIZE);<NEW_LINE>int lb = set1.ELEMENTS[0] + l;<NEW_LINE>int ub = set1.ELEMENTS[1] + u;<NEW_LINE>for (; k < s...
s1 = set1.SIZE >> 1;
1,124,232
public static IndexOrdinalsFieldData buildEmpty(IndexReader indexReader, IndexOrdinalsFieldData indexFieldData) throws IOException {<NEW_LINE>assert indexReader.leaves().size() > 1;<NEW_LINE>final LeafOrdinalsFieldData[] atomicFD = new LeafOrdinalsFieldData[indexReader.leaves().size()];<NEW_LINE>final SortedSetDocValue...
leaves().size()];
707,468
private void registerStandardImportProcesses() {<NEW_LINE>final IImportProcessFactory importProcessesFactory = Services.get(IImportProcessFactory.class);<NEW_LINE>importProcessesFactory.registerImportProcess(I_I_BPartner.class, BPartnerImportProcess.class);<NEW_LINE>importProcessesFactory.registerImportProcess(I_I_User...
I_I_Replenish.class, ReplenishmentImportProcess.class);
1,541,389
public void initialize(ExtensionContext context) {<NEW_LINE>if (initialized) {<NEW_LINE>Monitor monitor = context.getMonitor();<NEW_LINE>monitor.severe(() -> "SpotifyTransferExtension already initialized");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>AppCredentials appCredentials;<NEW_LINE>try {<NEW_LINE>appCredentials = cont...
getSecret()).build();
1,688,755
private void checkAuthnStatement(List<AuthnStatement> authnStatements) {<NEW_LINE>if (authnStatements.size() != 1) {<NEW_LINE>throw samlException("SAML Assertion subject contains [{}] Authn Statements while exactly one was expected.", authnStatements.size());<NEW_LINE>}<NEW_LINE>final AuthnStatement authnStatement = au...
.getAuthnContextClassRef().getURI();
879,216
protected String rrToString() {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(alg);<NEW_LINE>sb.append(" ");<NEW_LINE>if (Options.check("multiline")) {<NEW_LINE>sb.append("(\n\t");<NEW_LINE>}<NEW_LINE>sb.append(FormattedTime.format(timeInception));<NEW_LINE>sb.append(" ");<NEW_LINE>sb.append(Forma...
, 64, "\t", false));
244,003
public ObjectInstance createMBean(String className, ObjectName name, ObjectName loaderName, Object[] params, String[] signature) throws ReflectionException, InstanceAlreadyExistsException, MBeanRegistrationException, MBeanException, NotCompliantMBeanException, InstanceNotFoundException {<NEW_LINE>ObjectInstance oi = nu...
signature, "createMBean", "failure", "Class definition not found for MBean");
1,429,632
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE><MASK><NEW_LINE>get_scanner_result result = new get_scanner_result();<NEW_LINE>if (e instanceof org.apache.thrift.transport.TTransportException) {<NEW_LINE>_LOGGER.error("TTransportException insi...
org.apache.thrift.TSerializable msg;
132,203
final DeleteIntegrationAssociationResult executeDeleteIntegrationAssociation(DeleteIntegrationAssociationRequest deleteIntegrationAssociationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIntegrationAssociationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
(super.beforeMarshalling(deleteIntegrationAssociationRequest));
554,950
private void onDeleteClickeddialogtext(String reason) {<NEW_LINE>applicationKvStore.putBoolean(String.format(NOMINATING_FOR_DELETION_MEDIA, media.getImageUrl()), true);<NEW_LINE>enableProgressBar();<NEW_LINE>Single<Boolean> resultSingletext = reasonBuilder.getReason(media, reason).flatMap(reasonString -> deleteHelper.m...
(), media, reason));
1,617,331
private BLangBlockStmt rewriteNestedOnFail(BLangOnFailClause onFailClause, BLangFail fail) {<NEW_LINE>BLangOnFailClause currentOnFail = this.onFailClause;<NEW_LINE>BLangBlockStmt onFailBody = ASTBuilderUtil.createBlockStmt(onFailClause.pos);<NEW_LINE>onFailBody.stmts.addAll(onFailClause.body.stmts);<NEW_LINE>onFailBody...
stmts.add(0, errorVarDef);
476,960
public ChannelActivity unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ChannelActivity channelActivity = new ChannelActivity();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
224,559
private void saveIntIntRows(ServerPartition part, ServerRow[] rows, MatrixPartitionMeta partMeta, PSMatrixSaveContext saveContext, DataOutputStream output) throws IOException {<NEW_LINE>Vector vec = ServerRowUtils.getVector((ServerIntIntRow) rows[0]);<NEW_LINE>// int size = rows.size();<NEW_LINE>int indexOffset = (int)...
IntIntVector) vec).getStorage();
1,513,071
public static void deleteLocalInstructionComment(final SQLProvider provider, final INaviCodeNode codeNode, final INaviInstruction instruction, final Integer commentId, final Integer userId) throws CouldntDeleteException {<NEW_LINE>Preconditions.checkNotNull(codeNode, "IE02432: codeNode argument can not be null");<NEW_L...
registerOutParameter(1, Types.INTEGER);
1,141,313
public static List<SingleDml> dml2SingleDmls(Dml dml, boolean caseInsensitive) {<NEW_LINE>List<SingleDml> singleDmls = new ArrayList<>();<NEW_LINE>if (dml.getData() != null) {<NEW_LINE>int size = dml.getData().size();<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_LINE>SingleDml singleDml = new SingleDml();<NEW_LINE>sin...
getOld().get(i);
254,762
private Mono<PagedResponse<FrontDoorInner>> listSinglePageAsync() {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getSubscriptionId() is requi...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,799,115
public boolean visit(SQLShowColumnsStatement x) {<NEW_LINE>final List<SqlNode> operands = new LinkedList<>();<NEW_LINE>final SqlNode like = convertToSqlNode(x.getLike());<NEW_LINE>final SqlNode where = convertToSqlNode(x.getWhere());<NEW_LINE>final List<SqlSpecialIdentifier> specialIdentifiers = new LinkedList<>();<NEW...
convertToSqlNode(x.getDatabase());
968,375
public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {<NEW_LINE>super.onCreatePreferences(savedInstanceState, rootKey);<NEW_LINE>addPreferencesFromResource(R.xml.preferences_behavior);<NEW_LINE>Preference copyOnTapPreference = findPreference("pref_copy_on_tap");<NEW_LINE>copyOnTapPreference.setOnP...
).putExtra("needsRefresh", true);
1,735,069
public double score(DataPoint x) {<NEW_LINE>IntList knn = new IntList(minPnts);<NEW_LINE>DoubleList dists = new DoubleList(minPnts);<NEW_LINE>vc.search(x.getNumericalValues(), minPnts, knn, dists);<NEW_LINE>double e_pdist = 0;<NEW_LINE>double stndDist_q = 0;<NEW_LINE>for (int i_indx = 0; i_indx < minPnts; i_indx++) {<N...
.sqrt(2))));
696,246
public GroupLevelInfo display(ProblemReport report) {<NEW_LINE>Machine machine = report.getMachines().get(m_model.getIpAddress());<NEW_LINE>if (machine == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Collection<Entity> entities = machine.getEntities().values();<NEW_LINE>for (Entity entity : entities) {<NEW_LINE>Ma...
statistics = findOrCreatGroupStatistics(groupName, m_minutes);
364,254
private Optional<X509Certificate> parseUrlEncodedPem(String urlEncodedPem) {<NEW_LINE>String certPem;<NEW_LINE>try {<NEW_LINE>certPem = URLDecoder.decode(urlEncodedPem, UTF_8);<NEW_LINE>} catch (NullPointerException | IllegalArgumentException e) {<NEW_LINE>logger.warn(format("Unable to decode url-encoded certificate fr...
("Failed to parse client certificate from %s header", XFCC_HEADER_NAME), e);
888,138
public com.amazonaws.services.simpleemailv2.model.BadRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.simpleemailv2.model.BadRequestException badRequestException = new com.amazonaws.services.simpleemailv2.model.BadRequestException(null);<NEW_LINE...
int originalDepth = context.getCurrentDepth();
1,693,854
private void initCacheStrategyButton() {<NEW_LINE>mLayoutCacheStrategy = (RadioSelectView) findViewById(R.id.liveplayer_rsv_cache_strategy);<NEW_LINE>mImageCacheStrategyShadow = (ImageView) findViewById(R.id.liveplayer_btn_cache_strategy_shadow);<NEW_LINE>mButtonCacheStrategy = (ImageButton) <MASK><NEW_LINE>mButtonCach...
findViewById(R.id.liveplayer_btn_cache_strategy);
1,231,003
protected void processThermostatSetpointReport(SerialMessage serialMessage, int offset, int endpoint) {<NEW_LINE>int setpointTypeCode = serialMessage.getMessagePayloadByte(offset + 1);<NEW_LINE>int scale = (serialMessage.getMessagePayloadByte(offset + <MASK><NEW_LINE>try {<NEW_LINE>BigDecimal value = extractValue(seria...
2) >> 3) & 0x03;
1,734,357
public Observable<ServiceResponse<Void>> deleteFaceWithServiceResponseAsync(String faceListId, UUID persistedFaceId) {<NEW_LINE>if (this.client.azureRegion() == null) {<NEW_LINE>throw new IllegalArgumentException("Parameter this.client.azureRegion() is required and cannot be null.");<NEW_LINE>}<NEW_LINE>if (faceListId ...
this.client.azureRegion());
1,494,492
public static double stringSimilarity(String... strings) {<NEW_LINE>if (strings == null)<NEW_LINE>return 0;<NEW_LINE>Counter<String> counter = new Counter<>();<NEW_LINE>Counter<String> counter2 = new Counter<>();<NEW_LINE>for (int i = 0; i < strings[0].length(); i++) counter.incrementCount(String.valueOf(strings[0].cha...
SetUtils.intersection(v1, v2);
1,849,021
private void compileGetValue(ArrayInitializer ai, IType arrayType) throws CompileException {<NEW_LINE>if (!(arrayType instanceof IClass) || !((IClass) arrayType).isArray()) {<NEW_LINE>this.compileError("Array initializer not allowed for non-array type \"" + arrayType.toString() + "\"");<NEW_LINE>}<NEW_LINE>IClass ct = ...
this.consT(ai, i);
1,801,698
boolean canSkipPhase1(Store.MetadataSnapshot source, Store.MetadataSnapshot target) {<NEW_LINE>if (source.getSyncId() == null || source.getSyncId().equals(target.getSyncId()) == false) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (source.numDocs() != target.numDocs()) {<NEW_LINE>throw new IllegalStateException("try ...
commitUserData().entrySet());
1,795,499
private LineMarkerInfo<?> attachFormType(@NotNull PsiElement psiElement) {<NEW_LINE>// form(theform);<NEW_LINE>PsiElement twigFunctionParameterIdentifierPsi = TwigUtil.getTwigFunctionParameterIdentifierPsi(psiElement);<NEW_LINE>if (twigFunctionParameterIdentifierPsi == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>...
, TwigTypeResolveUtil.formatPsiTypeNameWithCurrent(twigFunctionParameterIdentifierPsi));
255,510
final AddAttributesToFindingsResult executeAddAttributesToFindings(AddAttributesToFindingsRequest addAttributesToFindingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addAttributesToFindingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "AddAttributesToFindings");
1,281,784
protected ChannelFactoryBuilder newChannelFactoryBuilder(boolean sslEnable) {<NEW_LINE>final int channelExecutorQueueSize = grpcTransportConfig.getMetadataChannelExecutorQueueSize();<NEW_LINE>final UnaryCallDeadlineInterceptor unaryCallDeadlineInterceptor = new UnaryCallDeadlineInterceptor(grpcTransportConfig.getMetada...
ClientOption clientOption = grpcTransportConfig.getMetadataClientOption();
979,693
protected ExecutableDdlJob doCreate() {<NEW_LINE>ValidateGsiExistenceTask validateTask = new ValidateGsiExistenceTask(schemaName, primaryTableName, indexTableName, null, null);<NEW_LINE>List<DdlTask> taskList = new ArrayList<>();<NEW_LINE>// 1. validate<NEW_LINE>taskList.add(validateTask);<NEW_LINE>// 2. GSI status: pu...
.newArrayList(primaryTableName, indexTableName));