idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
80,654
private static void buildByColumns(StringBuilder sqlBuilder, List<Column> columns, char separator) {<NEW_LINE>for (int i = 0; i < columns.size(); i++) {<NEW_LINE>Column before = i > 0 ? columns.get(i - 1) : null;<NEW_LINE>Column curent = columns.get(i);<NEW_LINE>if (curent instanceof Or) {<NEW_LINE>continue;<NEW_LINE>}...
appendColumnName(sqlBuilder, curent, separator);
1,352,905
public Frequency unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Frequency frequency = new Frequency();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token =...
String currentParentElement = context.getCurrentParentElement();
1,208,396
private static byte[] compose(Object value, Class clazz, Class<?> mapGenericClassses) {<NEW_LINE>Class<?> valueValidationClass = CassandraValidationClassMapper.getValidationClassInstance(mapGenericClassses, true);<NEW_LINE>Object valueClassInstance;<NEW_LINE>try {<NEW_LINE>valueClassInstance = valueValidationClass.getD...
("instance").get(null);
329,940
public void recordComment(int token) {<NEW_LINE>// compute position<NEW_LINE>int commentStart = this.startPosition;<NEW_LINE>int stopPosition = this.currentPosition;<NEW_LINE>switch(token) {<NEW_LINE>case TokenNameCOMMENT_LINE:<NEW_LINE>// both positions are negative<NEW_LINE>commentStart = -this.startPosition;<NEW_LIN...
[newLength], 0, length);
671,807
private Object[] parseListener(Element element) {<NEW_LINE>Object[] ret = new Object[2];<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(MessageListenerAdapter.class);<NEW_LINE>builder.addConstructorArgReference<MASK><NEW_LINE>String method = element.getAttribute("method");<NEW_LINE...
(element.getAttribute("ref"));
1,067,081
private static void validateClientRedirectUris(String rootUrl, Set<String> redirectUris) throws ProtocolMapperConfigException {<NEW_LINE>Set<String> <MASK><NEW_LINE>for (String redirectUri : PairwiseSubMapperUtils.resolveValidRedirectUris(rootUrl, redirectUris)) {<NEW_LINE>try {<NEW_LINE>URI uri = new URI(redirectUri);...
hosts = new HashSet<>();
1,782,372
protected EnumMap<KeyIndex, String> initContentProviderKeys() {<NEW_LINE>EnumMap<KeyIndex, String> keys = new EnumMap<KeyIndex, String>(KeyIndex.class);<NEW_LINE>keys.put(KeyIndex.CALENDARS_ID, Calendars._ID);<NEW_LINE>keys.put(KeyIndex.IS_PRIMARY, Calendars.IS_PRIMARY);<NEW_LINE>keys.put(KeyIndex.CALENDARS_NAME, Calen...
KeyIndex.INSTANCES_BEGIN, Instances.BEGIN);
1,645,364
public void visitLocal(EclipseNode localNode, LocalDeclaration local) {<NEW_LINE>TypeReference type = local.type;<NEW_LINE>boolean isVal = typeMatches(val.class, localNode, type);<NEW_LINE>boolean isVar = typeMatches(<MASK><NEW_LINE>if (!(isVal || isVar))<NEW_LINE>return;<NEW_LINE>if (isVal)<NEW_LINE>handleFlagUsage(lo...
var.class, localNode, type);
1,347,521
public <T> void addValueCallback(T property, @Nullable LottieValueCallback<T> callback) {<NEW_LINE>if (property == LottieProperty.OPACITY) {<NEW_LINE>opacityAnimation.setValueCallback((LottieValueCallback<Integer>) callback);<NEW_LINE>} else if (property == LottieProperty.COLOR_FILTER) {<NEW_LINE>if (colorFilterAnimati...
(LottieValueCallback<Integer>) callback);
991,368
private void validateStaticIp(String sysTag) {<NEW_LINE>Map<String, String> token = TagUtils.parse(VmSystemTags.STATIC_IP.getTagFormat(), sysTag);<NEW_LINE>String l3Uuid = token.get(VmSystemTags.STATIC_IP_L3_UUID_TOKEN);<NEW_LINE>if (!dbf.isExist(l3Uuid, L3NetworkVO.class)) {<NEW_LINE>throw new ApiMessageInterceptionEx...
("L3 network[uuid:%s] not found. Please correct your system tag[%s] of static IP", l3Uuid, sysTag));
939,590
final DeleteIntentVersionResult executeDeleteIntentVersion(DeleteIntentVersionRequest deleteIntentVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteIntentVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
endClientExecution(awsRequestMetrics, request, response);
373,788
protected void processReport(File report) {<NEW_LINE>try {<NEW_LINE>var parser = new StaxParser((SMHierarchicCursor rootCursor) -> {<NEW_LINE>try {<NEW_LINE>rootCursor.advance();<NEW_LINE>} catch (com.ctc.wstx.exc.WstxEOFException e) {<NEW_LINE>throw new EmptyReportException("The 'Vera++' report is empty", e);<NEW_LINE...
, errorCursor.getAttrValue("message"));
1,447,714
private void indexUids(List<String> uids) throws MessagingException, IOException {<NEW_LINE>Set<String> unindexedUids = new HashSet<>();<NEW_LINE>for (String uid : uids) {<NEW_LINE>if (uidToMsgMap.get(uid) == null) {<NEW_LINE>if (K9MailLib.isDebug() && DEBUG_PROTOCOL_POP3) {<NEW_LINE>Timber.d("Need to index UID %s", ui...
.valueOf(uidParts[0]);
1,426,795
// rejectIt<NEW_LINE>@Override<NEW_LINE>public String completeIt() {<NEW_LINE>// Re-Check<NEW_LINE>if (!m_justPrepared) {<NEW_LINE>String status = prepareIt();<NEW_LINE>if (!IDocument.STATUS_InProgress.equals(status))<NEW_LINE>return status;<NEW_LINE>}<NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate...
fireDocValidate(this, ModelValidator.TIMING_AFTER_COMPLETE);
629,284
public void populateItem(final Item<FilestoreModel> item) {<NEW_LINE>final FilestoreModel entry = item.getModelObject();<NEW_LINE>DateFormat dateFormater <MASK><NEW_LINE>UserModel user = app().users().getUserModel(entry.getChangedBy());<NEW_LINE>user = user == null ? UserModel.ANONYMOUS : user;<NEW_LINE>Label icon = Fi...
= new SimpleDateFormat(Constants.ISO8601);
1,074,576
private List<NameValueCountPair> groupByCreatorUnit(Business business, Predicate predicate) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Review.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Tuple> cq = cb.createQuery(Tuple.class);<NEW_LINE>...
(predicate).groupBy(pathCreatorUnit);
730,605
protected boolean doAppend(List<InstanceEvent> events) {<NEW_LINE>if (events.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>InstanceId id = events.get(0).getInstance();<NEW_LINE>if (!events.stream().allMatch(event -> event.getInstance().equals(id))) {<NEW_LINE>throw new IllegalArgumentException("'events' must o...
log.debug("Events appended to log {}", events);
1,119,978
private void maybeDumpSourceFiles(TaskEvent e) {<NEW_LINE>JavacProcessingEnvironment jpe = JavacProcessingEnvironment.instance(JavacPlugin.instance().getContext());<NEW_LINE>Map<String, String> options = jpe.getOptions();<NEW_LINE>if (options == null) {<NEW_LINE>// no command line -A options<NEW_LINE>return;<NEW_LINE>}...
dumpSourceFile(target, sourceFile, source);
1,834,035
public static List<RegressionExecution> executions() {<NEW_LINE>List<RegressionExecution> <MASK><NEW_LINE>execs.add(new EPLSubselectUnfilteredExpression());<NEW_LINE>execs.add(new EPLSubselectUnfilteredUnlimitedStream());<NEW_LINE>execs.add(new EPLSubselectUnfilteredLengthWindow());<NEW_LINE>execs.add(new EPLSubselectU...
execs = new ArrayList<>();
425,408
@Trivial<NEW_LINE>protected Class<?> findOrDelegateLoadClass(String className, boolean onlySearchSelf, boolean returnNull) throws ClassNotFoundException {<NEW_LINE>ClassNotFoundException findClassException = null;<NEW_LINE>// search order: 1) my class path 2) parent loader<NEW_LINE>Class<?> rc;<NEW_LINE>// first check ...
?> generatedClass = generateClass(className);
1,339,407
protected void estimateCase2(double[] betas) {<NEW_LINE>x.reshape(3, 1, false);<NEW_LINE>if (numControl == 4) {<NEW_LINE>L.reshape(6, 3, false);<NEW_LINE>UtilLepetitEPnP.constraintMatrix6x3(L_full, L);<NEW_LINE>} else {<NEW_LINE>L.reshape(3, 3, false);<NEW_LINE>UtilLepetitEPnP.constraintMatrix3x3(L_full, L);<NEW_LINE>}...
solver.solve(y, x);
501,429
public void ready() {<NEW_LINE>if (initiating) {<NEW_LINE>initiating = false;<NEW_LINE>processingReady = false;<NEW_LINE>if (firstInit) {<NEW_LINE>firstInit = false;<NEW_LINE>if (// Show large warning when connected to >=2000 guilds<NEW_LINE>api.getGuilds().size() >= 2000) {<NEW_LINE>JDAImpl.LOG.warn(" __ __ _ ...
, api.getResponseTotal()));
1,220,359
protected void encodeInputField(FacesContext context, FileUpload fileUpload, String clientId, String tabIndex) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String inputId = clientId + "_input";<NEW_LINE>writer.startElement("input", null);<NEW_LINE>writer.writeAttribute("ty...
fileUpload.getAccept(), null);
1,747,255
private void search(DataSet dataSet, Object learner, int minFeatures, int maxFeatures, int folds) {<NEW_LINE>Random rand = RandomUtil.getRandom();<NEW_LINE>int nF = dataSet.getNumFeatures();<NEW_LINE>int nCat = dataSet.getNumCategoricalVars();<NEW_LINE>Set<Integer> available = new IntSet();<NEW_LINE>ListUtils.addRange(...
available, 0, nF, 1);
773,147
private static void tryAssertionNestedDotMethod(RegressionEnvironment env, boolean grouped, boolean soda, AtomicInteger milestone) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplDeclare = "@public create table varaggNDM (" + (grouped ? "key string primary key, " : "") + "windowSupportBean win...
, path).addListener("s0");
838,821
private Object constructObject(UserConfigurationDictionaryObjectType type, List<String> value, EwsServiceXmlReader reader) {<NEW_LINE>EwsUtilities.ewsAssert(value != null, "UserConfigurationDictionary.ConstructObject", "value is null");<NEW_LINE>EwsUtilities.ewsAssert((value.size() == 1 || type == UserConfigurationDict...
(value.get(0));
1,494,885
private void loadFromFile(File targetIgnoreFile) {<NEW_LINE>if (targetIgnoreFile.exists() && targetIgnoreFile.isFile()) {<NEW_LINE>try {<NEW_LINE>loadCodegenRules(targetIgnoreFile);<NEW_LINE>this.ignoreFile = targetIgnoreFile;<NEW_LINE>} catch (IOException e) {<NEW_LINE>LOGGER.error(String.format(Locale.ROOT, "Could no...
, targetIgnoreFile.getName()));
771,434
public com.amazonaws.services.cognitoidp.model.UnsupportedOperationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cognitoidp.model.UnsupportedOperationException unsupportedOperationException = new com.amazonaws.services.cognitoidp.model.UnsupportedOpe...
String currentParentElement = context.getCurrentParentElement();
1,343,190
public List<WumpusAction> planShot(Set<Room> possibleWumpus, Set<Room> allowed) {<NEW_LINE>Set<AgentPosition> shootingPositions = new LinkedHashSet<>();<NEW_LINE>for (Room room : possibleWumpus) {<NEW_LINE>int x = room.getX();<NEW_LINE>int y = room.getY();<NEW_LINE>for (int i = 1; i <= kb.getCaveXDimension(); i++) {<NE...
, AgentPosition.Orientation.FACING_EAST));
1,462,037
private SqlViewBinding createSqlViewBinding() {<NEW_LINE>// Get HU's standard entity descriptor. We will needed all over.<NEW_LINE>final DocumentEntityDescriptor huEntityDescriptor = getHUEntityDescriptor();<NEW_LINE>//<NEW_LINE>// Static where clause<NEW_LINE>final StringBuilder sqlWhereClause = new StringBuilder();<N...
cast(huEntityDescriptor.getDataBinding());
1,499,556
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length != 4 && args.length != 5) {<NEW_LINE>System.err.printf("Expected 4 or 5 parameters, got %d\n", args.length);<NEW_LINE>System.err.println("Usage: java AeadExample encrypt/decrypt key-file input-file output-file" + " [associated-data]");<N...
[4].getBytes(UTF_8);
133,264
private void reportSocketStats(long channelId, InternalWithLogId socketLogId) {<NEW_LINE>final long socketId = socketLogId.getLogId().getId();<NEW_LINE>InternalInstrumented<InternalChannelz.SocketStats> iSocket = channelz.getSocket(socketId);<NEW_LINE>if (iSocket == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final St...
add("streamsSucceeded", transportStats.streamsSucceeded);
216,751
private static void generateBOM(boolean isWebsphereLiberty, String version, File outputDir, Map<String, LibertyFeature> allFeatures, Constants.ArtifactType type) throws MavenRepoGeneratorException, IOException {<NEW_LINE>String groupId = isWebsphereLiberty ? Constants.WEBSPHERE_LIBERTY_FEATURES_GROUP_ID : Constants.OPE...
dependencies, requiredArtifact, type, "provided");
1,025,006
protected void execute(Terminal terminal, OptionSet options, Environment env) throws UserException {<NEW_LINE>if (options.nonOptionArguments().isEmpty() == false) {<NEW_LINE>throw new UserException(ExitCodes.USAGE, <MASK><NEW_LINE>}<NEW_LINE>if (options.has(versionOption)) {<NEW_LINE>final String versionOutput = String...
"Positional arguments not allowed, found " + options.nonOptionArguments());
1,410,435
public static DescribeTrafficControlsResponse unmarshall(DescribeTrafficControlsResponse describeTrafficControlsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeTrafficControlsResponse.setRequestId<MASK><NEW_LINE>describeTrafficControlsResponse.setTotalCount(_ctx.integerValue("DescribeTrafficControlsResponse.Tota...
(_ctx.stringValue("DescribeTrafficControlsResponse.RequestId"));
1,547,071
private final void printError() {<NEW_LINE>SharedCommandLineUtilities.printPrefix();<NEW_LINE>System.err.println("Name:");<NEW_LINE>System.err.println("\tTarsosDSP resynthesizer");<NEW_LINE>SharedCommandLineUtilities.printLine();<NEW_LINE>System.err.println("Synopsis:");<NEW_LINE><MASK><NEW_LINE>SharedCommandLineUtilit...
System.err.println("\tjava -jar CommandLineResynthesizer.jar [--detector DETECTOR] [--output out.wav] [--combined combined.wav] input.wav");
25,974
public static void main2(String[] args) {<NEW_LINE>String dbDriver = "COM.ibm.db2.jdbc.app.DB2Driver";<NEW_LINE>String url = "jdbc:db2:sample";<NEW_LINE>String user = "batra";<NEW_LINE>String pass = "varunbatra";<NEW_LINE>String querystring = "Select * from batra.employee";<NEW_LINE>String fn;<NEW_LINE>String ln;<NEW_L...
sal = qs.getValue("SALARY");
455,306
public MavenExecutionResult readMavenProject(File pomFile, ProjectBuildingRequest configuration) throws MavenException {<NEW_LINE>long start = System.currentTimeMillis();<NEW_LINE>// $NON-NLS-1$<NEW_LINE>log.debug("Reading Maven project: {}", pomFile.getAbsoluteFile());<NEW_LINE>MavenExecutionResult result = new Defaul...
setDependencyResolutionResult(projectBuildingResult.getDependencyResolutionResult());
1,369,678
public static PersonalPronounType disambiguatePersonalPronoun(SpanishVerbStripper.StrippedVerb strippedVerb, int pronounIdx, String clauseYield) {<NEW_LINE>List<String> pronouns = strippedVerb.getPronouns();<NEW_LINE>String pronoun = pronouns.<MASK><NEW_LINE>if (!ambiguousPersonalPronouns.contains(pronoun))<NEW_LINE>th...
get(pronounIdx).toLowerCase();
172,862
public void widgetSelected(SelectionEvent event) {<NEW_LINE>final TableItem[] selection = buddy_table.getSelection();<NEW_LINE>UIInputReceiver prompter = ui_instance.getInputReceiver();<NEW_LINE>prompter.setLocalisedTitle(lu.getLocalisedMessageText("azbuddy.ui.menu.send"));<NEW_LINE>prompter.setLocalisedMessage(lu.getL...
String text = prompter.getSubmittedInput();
633,507
long parseParam(String param) {<NEW_LINE>char[<MASK><NEW_LINE>int tuIndex = 0;<NEW_LINE>for (int c = 1; c < chars.length; c++) {<NEW_LINE>if (Character.isDigit(chars[c])) {<NEW_LINE>tuIndex++;<NEW_LINE>} else {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (tuIndex == 0) {<NEW_LINE>throw new RuntimeException("Inval...
] chars = param.toCharArray();
720,088
public CreateEventDestinationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateEventDestinationResult createEventDestinationResult = new CreateEventDestinationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
().unmarshall(context));
5,826
public static void cleanupSchemaMeta(String schemaName, Connection metaDbConn) {<NEW_LINE>TableInfoManager tableInfoManager = new TableInfoManager();<NEW_LINE>SchemaInfoCleaner schemaInfoCleaner = new SchemaInfoCleaner();<NEW_LINE>DdlPlanAccessor ddlPlanAccessor = new DdlPlanAccessor();<NEW_LINE>try {<NEW_LINE>assert m...
PolarDbXSystemTableLogicalTableStatistic.deleteAll(schemaName, metaDbConn);
573,478
private void save(ServerLongLongRow row, PSMatrixSaveContext saveContext, MatrixPartitionMeta meta, DataOutputStream out) throws IOException {<NEW_LINE>long startCol = meta.getStartCol();<NEW_LINE>if (ServerRowUtils.getVector(row) instanceof IntLongVector) {<NEW_LINE>IntLongVector vector = (IntLongVector) ServerRowUtil...
.getStorage().getValues();
942,757
public void bool(BoolCall<SearchLogCQ> boolLambda, ConditionOptionCall<BoolQueryBuilder> opLambda) {<NEW_LINE>SearchLogCQ mustQuery = new SearchLogCQ();<NEW_LINE>SearchLogCQ shouldQuery = new SearchLogCQ();<NEW_LINE>SearchLogCQ mustNotQuery = new SearchLogCQ();<NEW_LINE>SearchLogCQ filterQuery = new SearchLogCQ();<NEW_...
mustQuery, shouldQuery, mustNotQuery, filterQuery);
1,632,235
protected void onCreate(final Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setAp...
FeatureLayer statesFeatureLayer = new FeatureLayer(statesServiceFeatureTable);
1,313,230
private Trie split(TrieKeySlice commonPath) {<NEW_LINE>int commonPathLength = commonPath.length();<NEW_LINE>TrieKeySlice newChildSharedPath = sharedPath.slice(commonPathLength + 1, sharedPath.length());<NEW_LINE>Trie newChildTrie = new Trie(this.store, newChildSharedPath, this.value, this.left, this.right, this.valueLe...
Uint24.ZERO, null, childrenSize);
1,778,577
public void onClick(View v) {<NEW_LINE>final List<PopUpMenuItem> <MASK><NEW_LINE>for (final TracksSortByMode mode : TracksSortByMode.values()) {<NEW_LINE>items.add(new PopUpMenuItem.Builder(app).setTitleId(mode.getNameId()).setIcon(app.getUIUtilities().getThemedIcon(mode.getIconId())).setOnClickListener(new View.OnClic...
items = new ArrayList<>();
324,183
public static float[][] readValues(java.io.InputStream in, String delimiter) throws java.io.IOException, java.lang.NumberFormatException {<NEW_LINE>String thisLine;<NEW_LINE>java.io.BufferedInputStream s = new java.io.BufferedInputStream(in);<NEW_LINE>java.io.BufferedReader myInput = new java.io.BufferedReader(new java...
new float[512][512];
1,180,698
final GetBrowserSettingsResult executeGetBrowserSettings(GetBrowserSettingsRequest getBrowserSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBrowserSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
845,260
public void baseTick() {<NEW_LINE>super.baseTick();<NEW_LINE>float radius = 5F;<NEW_LINE>float renderRadius = (float) (radius - Math.random());<NEW_LINE>for (int i = 0; i < Math.min(90, tickCount); i++) {<NEW_LINE>float a = i;<NEW_LINE>if (a % 2 == 0) {<NEW_LINE>a = 45 + a;<NEW_LINE>}<NEW_LINE>if (level.random.nextInt(...
Math.cos(rad) * smokeRadius;
1,365,802
private Prune prune(Node node, List<Tuple> test, double[] importance, Formula formula, IntSet labels) {<NEW_LINE>if (node instanceof DecisionNode) {<NEW_LINE>DecisionNode leaf = (DecisionNode) node;<NEW_LINE>int y = leaf.output();<NEW_LINE>int error = 0;<NEW_LINE>for (Tuple t : test) {<NEW_LINE>if (y != labels.indexOf(...
trueBranch, importance, formula, labels);
840,900
public static void show(Context context, Store store, int notificationIconResId) {<NEW_LINE>android.app.Notification notification;<NEW_LINE>Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(UpdateChecker.ROOT_PLAY_STORE_DEVICE + context.getPackageName()));<NEW_LINE>PendingIntent pendingIntent = PendingIntent.g...
= new NotificationCompat.Builder(context);
1,675,021
private void merge(SQLCommand command, CallableStatement statement, KeyValueStreamListener listener) throws SQLException, IOException {<NEW_LINE>Map<String, Object<MASK><NEW_LINE>if (map.isEmpty()) {<NEW_LINE>// no register given, return without doing anything<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<String> keys = ne...
> map = command.getRegister();
1,604,267
// Copied from NbClassPath:<NEW_LINE>private static void createBootClassPath(List<String> l) {<NEW_LINE>// boot<NEW_LINE>// NOI18N<NEW_LINE>String boot = System.getProperty("sun.boot.class.path");<NEW_LINE>if (boot != null) {<NEW_LINE>StringTokenizer tok = new StringTokenizer(boot, File.pathSeparator);<NEW_LINE>while (...
File(st.nextToken());
1,806,874
void insertWorkloadRecord(String cn, String provider, String certReqInstanceId, String sanIpStr, String hostName, Date certExpiryTime) {<NEW_LINE>if (StringUtil.isEmpty(sanIpStr)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (hostName == null) {<NEW_LINE>hostName = cn + "." + sanIpStr;<NEW_LINE>if (LOGGER.isDebugEnabled()...
sanIps = sanIpStr.split(",");
369,719
public static ResultHandle collectQualifiers(ClassOutput classOutput, ClassCreator beanCreator, BeanDeployment beanDeployment, MethodCreator constructor, AnnotationLiteralProcessor annotationLiterals, Set<AnnotationInstance> requiredQualifiers) {<NEW_LINE>ResultHandle requiredQualifiersHandle;<NEW_LINE>if (requiredQual...
qualifierHandle = qualifier.getLiteralInstance(constructor);
1,241,906
static boolean certificateIsCa(X509Certificate certificate) {<NEW_LINE>boolean[] keyUsage = certificate.getKeyUsage();<NEW_LINE>int basicConstraints = certificate.getBasicConstraints();<NEW_LINE>if (keyUsage == null) {<NEW_LINE>// no KeyUsage, just check if the cA BasicConstraint is set.<NEW_LINE>return basicConstraint...
keyUsage[5] || basicConstraints >= 0;
960,417
private void initializeResources() {<NEW_LINE>Toolbar toolbar = findViewById(R.id.toolbar);<NEW_LINE>passphraseAuthContainer = findViewById(R.id.password_auth_container);<NEW_LINE>passphraseLayout = findViewById(R.id.passphrase_layout);<NEW_LINE>passphraseInput = findViewById(R.id.passphrase_input);<NEW_LINE>okButton =...
findViewById(R.id.ok_button);
904,075
/*<NEW_LINE>* This method is intended for internal use only, and should only<NEW_LINE>* be called by other classes for unit testing.<NEW_LINE>*/<NEW_LINE>protected void applyOverrides(Alert alert) {<NEW_LINE>if (this.alertOverrides.isEmpty()) {<NEW_LINE>// Nothing to do<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String chang...
.getSolution(), changedSolution));
1,600,181
public static Vector apply(LongFloatVector v1, LongDummyVector v2, Binary op) {<NEW_LINE>if (v1.isSparse()) {<NEW_LINE>if (op.isKeepStorage()) {<NEW_LINE>throw new AngelException("operation is not support!");<NEW_LINE>} else {<NEW_LINE>// multi-rehash<NEW_LINE>LongFloatVectorStorage newStorage = v1.getStorage().emptySp...
(v1.getDim()));
438,455
protected <T extends Metric> void configuration(@Observes AfterDeploymentValidation adv, BeanManager manager) {<NEW_LINE>MetricRegistry registry = getReference(manager, MetricRegistry.class);<NEW_LINE>MetricName name = getReference(manager, MetricName.class);<NEW_LINE>for (Map.Entry<Bean<?>, AnnotatedMember<?>> bean : ...
, Utils.tagsToTags(tags));
723,139
public static void show(final XmppActivity xmppActivity, final Blockable blockable) {<NEW_LINE>final AlertDialog.Builder builder = new AlertDialog.Builder(xmppActivity);<NEW_LINE>final boolean isBlocked = blockable.isBlocked();<NEW_LINE>builder.setNegativeButton(R.string.cancel, null);<NEW_LINE>DialogBlockContactBindin...
setView(binding.getRoot());
1,153,715
private void sendRecipes(GlowMerchantInventory inventory, GlowPlayer player) {<NEW_LINE>// TODO: Move this to a new 'GlowMerchant' class, to allow custom Merchant windows<NEW_LINE>checkNotNull(inventory);<NEW_LINE>checkNotNull(player);<NEW_LINE>int windowId = player.getOpenWindowId();<NEW_LINE>if (windowId == -1) {<NEW...
().get(0));
375,353
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.device.communication.mqtt.MqttLifecycleComponent#start(com.<NEW_LINE>* sitewhere.spi.server.lifecycle.ILifecycleProgressMonitor)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void start(ILifecycleProgressMonitor monitor) throws SiteWhereEx...
.getTopic(), qos) };
1,581,246
private void doHandleConfirm(boolean ack, Listener listener, PendingConfirm pendingConfirm) {<NEW_LINE>this.executor.execute(() -> {<NEW_LINE>try {<NEW_LINE>if (listener.isConfirmListener()) {<NEW_LINE>if (pendingConfirm.isReturned() && !pendingConfirm.waitForReturnIfNeeded()) {<NEW_LINE>this.logger.error(<MASK><NEW_LI...
"Return callback failed to execute in " + PendingConfirm.RETURN_CALLBACK_TIMEOUT + " seconds");
202,296
public void marshall(CreateDataRepositoryAssociationRequest createDataRepositoryAssociationRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createDataRepositoryAssociationRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LIN...
createDataRepositoryAssociationRequest.getFileSystemId(), FILESYSTEMID_BINDING);
372,790
public static void test4033(String[] args) throws Exception {<NEW_LINE>try {<NEW_LINE>int x;<NEW_LINE>// SSL testing<NEW_LINE>Connection conn = null;<NEW_LINE>String driver = "virtuoso.jdbc4.Driver";<NEW_LINE>Class.forName(driver);<NEW_LINE>String url;<NEW_LINE>if (args.length == 0)<NEW_LINE>url = "jdbc:virtuoso://loca...
out.println("@JBDC connection established through " + driver);
1,215,087
public NetScalerControlCenterVO registerNetscalerControlCenter(RegisterNetscalerControlCenterCmd cmd) {<NEW_LINE>if (_netscalerControlCenterDao.listAll() != null && _netscalerControlCenterDao.listAll().size() != 0) {<NEW_LINE>throw new CloudRuntimeException("One Netscaler Control Center already exist in the DataBase. A...
"password", cmd.getPassword());
1,731,987
public void processElement(ProcessContext context, MultiOutputReceiver outputReceiver) {<NEW_LINE><MASK><NEW_LINE>String headers;<NEW_LINE>List<String> records = null;<NEW_LINE>String delimiter = String.valueOf(this.csvFormat.getDelimiter());<NEW_LINE>try {<NEW_LINE>String csvFileString = f.readFullyAsUTF8String();<NEW...
ReadableFile f = context.element();
700,890
protected void surroundLinesInBlock(EditorAdaptor editorAdaptor, TextObject selection) throws CommandExecutionException {<NEW_LINE>CursorService cursor = editorAdaptor.getCursorService();<NEW_LINE>TextContent content = editorAdaptor.getModelContent();<NEW_LINE>TextRange range = selection.getRegion(editorAdaptor, Comman...
() > lineInfo.getEndOffset();
449,532
public SearchSessionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SearchSessionsResult searchSessionsResult = new SearchSessionsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
int originalDepth = context.getCurrentDepth();
307,470
private static // org.glowroot.common.repo.util.LazySecretKey.SymmetricEncryptionKeyMissingException<NEW_LINE>Session createMailSession(SmtpConfig smtpConfig, @Nullable String passwordOverride, LazySecretKey lazySecretKey) throws Exception {<NEW_LINE>Properties props = new Properties();<NEW_LINE>props.put("mail.smtp.ho...
), entry.getValue());
1,335,494
private static boolean isUnknownHost(String hostname) {<NEW_LINE>if (hostname == null) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>int length = hostname.length();<NEW_LINE>if (length == 0) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (length < 6) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>char <MASK><NEW_LINE>if ((...
firstChar = hostname.charAt(0);
1,851,066
public void encodeEnd(FacesContext context, UIComponent component) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>Hotkey hotkey = (Hotkey) component;<NEW_LINE>String <MASK><NEW_LINE>writer.startElement("script", null);<NEW_LINE>writer.writeAttribute("type", "text/javascript"...
clientId = hotkey.getClientId(context);
1,504,906
/*<NEW_LINE>* This is for performance - so we will not call jaspi processing for a request<NEW_LINE>* if there are no providers registered.<NEW_LINE>*<NEW_LINE>* @see com.ibm.ws.webcontainer.security.JaspiService#isAnyProviderRegistered()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public boolean isAnyProviderRegistered(We...
bridgeBuilderService.buildBridgeIfNeeded(appContext, providerFactory);
1,085,538
public void run() {<NEW_LINE>List<?> selection = getSelectedObjects();<NEW_LINE>IBorderObject model = (IBorderObject) getFirstValidSelectedModelObject(selection);<NEW_LINE>if (model == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CustomColorDialog colorDialog = new CustomColorDialog(getWorkbenchPart().getSite().getShel...
(0, 0, 0));
424,587
public void updateRotateAndScale(final float dx, final float dy) {<NEW_LINE>float c_x = mHelpBoxRect.centerX();<NEW_LINE>float c_y = mHelpBoxRect.centerY();<NEW_LINE>float x = mRotateDstRect.centerX();<NEW_LINE><MASK><NEW_LINE>float n_x = x + dx;<NEW_LINE>float n_y = y + dy;<NEW_LINE>float xa = x - c_x;<NEW_LINE>float ...
float y = mRotateDstRect.centerY();
683,859
private void addToOpenWithList(SystemApplicationKey app, FileExtensionKey ext, Properties props) throws NativeException {<NEW_LINE>String name = ext.getDotName();<NEW_LINE>String extKey = ext.getKey();<NEW_LINE>String appName = app.getKey();<NEW_LINE>if (app.isAddOpenWithList()) {<NEW_LINE>if (!isEmpty(name) && !isEmpt...
props, name, EXT_HKCR_OPENWITHLIST_PROPERTY, CREATED);
88,000
public void run() {<NEW_LINE>if (jurtQueue == null || jurtThread == null) {<NEW_LINE>cleanupTools.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!jurtThread.isAlive()) {<NEW_LINE>cleanupTools.warn(getName() + ": " + jurtThread.getName() + " is already dead?");<NEW_LINE>}<NEW_LINE>boolean queueIsEmpty = false;<NEW_LINE...
error(getName() + ": No queue or thread!?");
1,454,788
private void populateImpassableRoadsTypes() {<NEW_LINE>for (Map.Entry<String, Boolean> entry : routingParametersMap.entrySet()) {<NEW_LINE>final <MASK><NEW_LINE>boolean selected = entry.getValue();<NEW_LINE>GeneralRouter.RoutingParameter parameter = routingOptionsHelper.getRoutingPrefsForAppModeById(app.getRoutingHelpe...
String parameterId = entry.getKey();
1,406,325
private void toggleUnlimited(final User user, final User target, final String item) throws Exception {<NEW_LINE>final ItemStack stack = ess.getItemDb().get(item, 1);<NEW_LINE>stack.setAmount(Math.min(stack.getType().getMaxStackSize(), 2));<NEW_LINE>final String itemname = stack.getType().toString().toLowerCase(Locale.E...
(tl("unlimitedItemPermission", itemname));
1,028,133
public void validateProdProcess(ProdProcess prodProcess, BillOfMaterial bom) throws AxelorException {<NEW_LINE>Map<Product, BigDecimal> bomMap = new HashMap<Product, BigDecimal>();<NEW_LINE>Set<BillOfMaterial> setBoM = MoreObjects.firstNonNull(bom.getBillOfMaterialSet(), Collections.emptySet());<NEW_LINE>for (BillOfMat...
(prodProduct.getQty()));
1,102,692
final CreateLogPatternResult executeCreateLogPattern(CreateLogPatternRequest createLogPatternRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createLogPatternRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
(super.beforeMarshalling(createLogPatternRequest));
729,892
public ItemStack assemble(CraftingContainer inv) {<NEW_LINE>int[] colourArray = new int[3];<NEW_LINE>int j = 0;<NEW_LINE>int totalColourSets = 0;<NEW_LINE>ItemStack bullet = ItemStack.EMPTY;<NEW_LINE>for (int i = 0; i < inv.getContainerSize(); i++) {<NEW_LINE>ItemStack stackInSlot = inv.getItem(i);<NEW_LINE>if (!stackI...
float) j / (float) totalColourSets;
656,985
public List<LineDoc> linearize(int indent, boolean indentFirst) {<NEW_LINE>List<LineDoc> result = top.linearize(indent, indentFirst);<NEW_LINE>if (result.isEmpty()) {<NEW_LINE>return bottom.linearize(indent + INDENT, indentFirst);<NEW_LINE>}<NEW_LINE>if (bottom.isNull()) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>Li...
linearize(indent + INDENT, true);
135,241
public void updateAllCentralAdminConfig(AllCentralAdminConfig config, @Nullable String priorVersion) throws Exception {<NEW_LINE>validatePagerDutyConfig(config.pagerDuty());<NEW_LINE><MASK><NEW_LINE>if (priorVersion == null) {<NEW_LINE>centralConfigDao.writeWithoutOptimisticLocking(GENERAL_KEY, config.general());<NEW_L...
validateSlackConfig(config.slack());
158,624
protected ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>Work work = null;<NEW_LINE>try (EntityManagerContainer emc = EntityM...
getWork(), Work.class);
1,674,641
private static void configureTrustStore(ConfigElementList<KeyStore> keyStores, Integer port, Map<String, Object> serverProperties, SpringBootConfigFactory configFactory, Function<String, URL> urlGetter) {<NEW_LINE>KeyStore keyStore = new KeyStore();<NEW_LINE>keyStores.add(keyStore);<NEW_LINE>keyStore.setId(ID_TRUST_STO...
String trustStoreURLString = trustStoreURL.toString();
163,571
public static void renderWires(TilePipeHolder pipe, double x, double y, double z, BufferBuilder bb) {<NEW_LINE>int combinedLight = pipe.getWorld().getCombinedLight(pipe.getPipePos(), 0);<NEW_LINE>int <MASK><NEW_LINE>int blockLight = combinedLight & 0xFFFF;<NEW_LINE>RenderHelper.disableStandardItemLighting();<NEW_LINE>G...
skyLight = combinedLight >> 16 & 0xFFFF;
1,487,466
private AddressDefinition pickInterfaceAddressDef() throws UnknownHostException, SocketException {<NEW_LINE>Collection<MASK><NEW_LINE>if (interfaces.contains(new InterfaceDefinition("localhost", "127.0.0.1"))) {<NEW_LINE>return pickLoopbackAddress("localhost");<NEW_LINE>}<NEW_LINE>if (interfaces.contains(new InterfaceD...
<InterfaceDefinition> interfaces = getInterfaces();
391,802
private void stepDisable(Map<String, Map<String, Object>> dirtyprops) throws IOException {<NEW_LINE>LOG.fine("ModuleList: stepDisable");<NEW_LINE>Set<Module> todisable <MASK><NEW_LINE>for (Map.Entry<String, Map<String, Object>> entry : dirtyprops.entrySet()) {<NEW_LINE>String cnb = entry.getKey();<NEW_LINE>Map<String, ...
= new HashSet<Module>();
1,545,130
public static void apiManagementCreateSchema1(com.azure.resourcemanager.apimanagement.ApiManagementManager manager) {<NEW_LINE>manager.globalSchemas().define("schema1").withExistingService("rg1", "apimService1").withSchemaType(SchemaType.XML).withDescription("sample schema description").withValue("<xsd:schema xmlns:xsd...
" </xsd:complexType>\r\n" + "</xsd:schema>").create();
1,654,022
final GetDocumentResult executeGetDocument(GetDocumentRequest getDocumentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDocumentRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetDocumentRequest> request = null;<NEW_LINE>Respo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,247,258
static String responseToXml(String endpointName, ApiResponse response) throws ApiException {<NEW_LINE>try {<NEW_LINE>DocumentBuilderFactory docFactory = DocumentBuilderFactory.newInstance();<NEW_LINE>DocumentBuilder docBuilder = docFactory.newDocumentBuilder();<NEW_LINE><MASK><NEW_LINE>Element rootElement = doc.createE...
Document doc = docBuilder.newDocument();
1,434,108
private void action_loadBOM() {<NEW_LINE>int M_Product_ID = getM_Product_ID();<NEW_LINE>if (M_Product_ID == 0)<NEW_LINE>return;<NEW_LINE>MProduct product = MProduct.get(getCtx(), M_Product_ID);<NEW_LINE>SimpleTreeNode parent = new SimpleTreeNode(productSummary(product, false), new ArrayList());<NEW_LINE>dataBOM.clear()...
.getTreechildren().detach();
720,376
protected <T> T toPrimitiveJavaType(String json, Class<T> type) {<NEW_LINE>json = jsonHelper.cleanString(json);<NEW_LINE>if (typeIsString(type)) {<NEW_LINE>return (T) json;<NEW_LINE>}<NEW_LINE>if (typeIsInteger(type)) {<NEW_LINE>return (T) Integer.valueOf(json);<NEW_LINE>}<NEW_LINE>if (typeIsBoolean(type)) {<NEW_LINE>r...
(T) new BigInteger(json);
573,931
public static void main(String[] args) {<NEW_LINE>ServiceNamespace ns = ServiceNamespace.Dynamodb;<NEW_LINE>ScalableDimension tableWCUs = ScalableDimension.DynamodbTableWriteCapacityUnits;<NEW_LINE>String resourceID = "table/TestTable";<NEW_LINE>// Delete the scaling policy<NEW_LINE>DeleteScalingPolicyRequest delSPRequ...
System.out.println("DescribeScalableTargets result: ");
419,953
private static String message(Index index, ParsedDocument doc, long tookInNanos, boolean reformat, int maxSourceCharsToLog) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(index).append(" ");<NEW_LINE>sb.append("took[").append(TimeValue.timeValueNanos(tookInNanos)).append("], ");<NEW_LINE>sb.appen...
()).append("], ");
653,065
public void removeLeafEntry(final int entryIndex, byte[] key, byte[] value) {<NEW_LINE>final int entryPosition = getIntValue(POSITIONS_ARRAY_OFFSET + entryIndex * OIntegerSerializer.INT_SIZE);<NEW_LINE>final int entrySize;<NEW_LINE>if (isLeaf()) {<NEW_LINE>entrySize = key.length + RID_SIZE;<NEW_LINE>} else {<NEW_LINE>t...
- 1) * OIntegerSerializer.INT_SIZE);