idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,078,393
// observer for tunnel change<NEW_LINE>@Override<NEW_LINE>public void update(Object args, Observable observable) {<NEW_LINE>if (!(observable instanceof Tunnel)) {<NEW_LINE>logger.error("[update] should observe tunnel only, not {}", observable.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DefaultTunnel tunnel = (DefaultTu...
getClass().getName());
133,076
private synchronized void dropOnePartition(DbusPartitionInfo partition) throws DatabusException {<NEW_LINE>if (_state == RegistrationState.REGISTERED) {<NEW_LINE>_partitionSet.remove(partition);<NEW_LINE>} else if (_state.isRunning()) {<NEW_LINE>if (!regMap.containsKey(partition)) {<NEW_LINE>_log.warn("Partition (" + p...
getRegistrationId().getId());
512,553
private List<MongoCredential> buildCredentials(Iterable<String> userPasses) {<NEW_LINE>ImmutableList.Builder<MongoCredential> builder = ImmutableList.builder();<NEW_LINE>for (String userPass : userPasses) {<NEW_LINE>int atPos = userPass.lastIndexOf('@');<NEW_LINE>checkArgument(atPos > 0, "Invalid credential format. Req...
, password.toCharArray()));
1,836,615
public void registerClient(Client client, IAsyncResultHandler<Void> handler) {<NEW_LINE>Exception error = null;<NEW_LINE>synchronized (mutex) {<NEW_LINE>// Validate the client first - we need to be able to resolve all the contracts.<NEW_LINE>for (Contract contract : client.getContracts()) {<NEW_LINE>String apiIdx = get...
(error, Void.class));
1,487,088
public void processXML() throws InjectionException {<NEW_LINE>final boolean isTraceOn = TraceComponent.isAnyTracingEnabled();<NEW_LINE>if (isTraceOn && tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "processXML : " + this);<NEW_LINE>List<? extends DataSource<MASK><NEW_LINE>if (dsds != null) {<NEW_LINE>for (DataSource dsd :...
> dsds = ivNameSpaceConfig.getDataSourceDefinitions();
68,318
private static void testUnbox_byAssignment() {<NEW_LINE>Byte boxB = new Byte((byte) 100);<NEW_LINE>Double boxD = new Double(1111.0);<NEW_LINE>Float boxF = new Float(1111.0f);<NEW_LINE>Integer boxI = new Integer(1111);<NEW_LINE>Long boxL = new Long(1111L);<NEW_LINE>Short boxS = <MASK><NEW_LINE>Boolean boxBool = new Bool...
new Short((short) 100);
694,674
public static boolean checkVersion(String groupId, String artifactId, String separator, boolean logWarnings, Class cls) {<NEW_LINE>try {<NEW_LINE>String javacppVersion = getVersion();<NEW_LINE>String version = getVersion(groupId, artifactId, cls);<NEW_LINE>if (version == null) {<NEW_LINE>if (logWarnings && isLoadLibrar...
"Unable to load properties : " + ex.getMessage());
1,597,492
protected void registerDefaultRecipes() {<NEW_LINE>registerRecipe(10, new ItemStack[] { new ItemStack(Material.BUCKET), new ItemStack(Material.COBBLESTONE, 16) }, new ItemStack[] { new ItemStack(Material.LAVA_BUCKET) });<NEW_LINE>registerRecipe(8, new ItemStack[] { new ItemStack(Material.BUCKET), new ItemStack(Material...
ItemStack(Material.LAVA_BUCKET) });
1,376,935
public BaseSummarizer visit(Row row) {<NEW_LINE>int n = row.getArity();<NEW_LINE>int numberN = numericalColIndices.length;<NEW_LINE>if (count == 0) {<NEW_LINE>init();<NEW_LINE>}<NEW_LINE>count++;<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>Object obj = row.getField(i);<NEW_LINE>if (obj == null) {<NEW_LINE>numMissin...
Number) obj).doubleValue();
147,174
public Set<PotionMixData> load(Object input) {<NEW_LINE>List<ItemMapping> ingredients = new ArrayList<>();<NEW_LINE>ingredients.add(getNonNull("minecraft:nether_wart"));<NEW_LINE>ingredients.add(getNonNull("minecraft:redstone"));<NEW_LINE>ingredients.add(getNonNull("minecraft:glowstone_dust"));<NEW_LINE>ingredients.add...
.add(getNonNull("minecraft:pufferfish"));
1,297,372
private void populateNodeProperties(Object entity, EntityMetadata m, Node node) {<NEW_LINE>MetamodelImpl metaModel = (MetamodelImpl) kunderaMetadata.getApplicationMetadata().getMetamodel(m.getPersistenceUnit());<NEW_LINE>EntityType entityType = metaModel.entity(m.getEntityClazz());<NEW_LINE>// Iterate over entity attri...
(Field) attribute.getJavaMember();
999,720
public static <E> Multiset<E> difference(final Multiset<E> multiset1, final Multiset<?> multiset2) {<NEW_LINE>checkNotNull(multiset1);<NEW_LINE>checkNotNull(multiset2);<NEW_LINE>// TODO(lowasser): consider making the entries live views<NEW_LINE>return new ViewMultiset<E>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public...
.entrySet().iterator();
378,808
private static Set<Flag> parseFlags(@Nullable Set<NodeFlag> source) {<NEW_LINE>Set<Flag> flags = new LinkedHashSet<>(source != null ? source.size() : 8, 1);<NEW_LINE>for (NodeFlag flag : source) {<NEW_LINE>switch(flag) {<NEW_LINE>case NOFLAGS:<NEW_LINE>flags.add(Flag.NOFLAGS);<NEW_LINE>break;<NEW_LINE>case EVENTUAL_FAI...
flags.add(Flag.MASTER);
41,178
// compute the likelihoods that each allele is contained at some allele fraction in the sample<NEW_LINE>protected <EVIDENCE extends Locatable> PerAlleleCollection<Double> somaticLogOdds(final LikelihoodMatrix<EVIDENCE, Allele> logMatrix) {<NEW_LINE>final int alleleListEnd = logMatrix.alleles().size() - 1;<NEW_LINE>if (...
>(PerAlleleCollection.Type.ALT_ONLY);
1,548,648
public Status read(String table, String key, Set<String> fields, Map<String, ByteIterator> result) {<NEW_LINE>try {<NEW_LINE>CosmosContainer container = AzureCosmosClient.containerCache.get(table);<NEW_LINE>if (container == null) {<NEW_LINE>container = <MASK><NEW_LINE>AzureCosmosClient.containerCache.put(table, contain...
AzureCosmosClient.database.getContainer(table);
1,150,049
public void print(String[] string) {<NEW_LINE>Map<String, List<Integer>> invertedIndex = new HashMap<String<MASK><NEW_LINE>int index = 0;<NEW_LINE>for (String str : string) {<NEW_LINE>char[] charArray = str.toCharArray();<NEW_LINE>Arrays.sort(charArray);<NEW_LINE>String newString = new String(charArray);<NEW_LINE>if (i...
, List<Integer>>();
1,492,828
public void performOperation(POMModel model) {<NEW_LINE>Dependency jUnitDependency = ModelUtils.checkModelDependency(model, JUNIT_GROUP_ID, JUNIT_ARTIFACT_ID, false);<NEW_LINE>if (jUnitDependency != null) {<NEW_LINE>final String declaredVersion = jUnitDependency.getVersion();<NEW_LINE>if (declaredVersion != null) {<NEW...
.this.jUnitVersion = JUnit.JUNIT4;
260,764
public void start() throws Exception {<NEW_LINE>vertx.createHttpServer().requestHandler(req -> {<NEW_LINE>System.out.println("Got form with content-type " + req.getHeader("content-type"));<NEW_LINE>req.setExpectMultipart(true);<NEW_LINE>req.endHandler(v -> {<NEW_LINE>System.out.println("firstName: " <MASK><NEW_LINE>Sys...
+ req.getFormAttribute("firstName"));
1,109,148
public static ListItemsResponse unmarshall(ListItemsResponse listItemsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listItemsResponse.setRequestId(_ctx.stringValue("ListItemsResponse.requestId"));<NEW_LINE>Result result = new Result();<NEW_LINE>Total total = new Total();<NEW_LINE>total.setInstanceRecommendItem<MASK><N...
(_ctx.longValue("ListItemsResponse.result.total.instanceRecommendItem"));
876,210
public void deleteMongoDatasourceStructures(MongockTemplate mongoTemplate, MongoOperations mongoOperations) {<NEW_LINE>// Mongo Form requires the query templates to change as well. To ensure this, mongo datasources<NEW_LINE>// must re-compute the structure. The following deletes all such structures. Whenever getStructu...
.datasource.structure), null);
1,442,414
public Serializable read(final MySQLBinlogColumnDef columnDef, final MySQLPacketPayload payload) {<NEW_LINE>int type = <MASK><NEW_LINE>int length = columnDef.getColumnMeta() & 0xff;<NEW_LINE>// unpack type & length, see https://bugs.mysql.com/bug.php?id=37426.<NEW_LINE>if ((type & 0x30) != 0x30) {<NEW_LINE>length += ((...
columnDef.getColumnMeta() >> 8;
485,546
protected IStatus run(IProgressMonitor monitor) {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>Pack p = null;<NEW_LINE>try {<NEW_LINE>p = tcp.getSingle(RequestCmd.LOAD_SERVICE_SUMMARY, param);<NEW_LINE>} catch (Exception e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>return Status.CANCEL_STATUS;<NEW_LI...
load(date, idLv, serverId);
869,378
private List<LdapEntry> deleteAll(LdapEntry ldapEntry, boolean delDescendant) throws WIMException {<NEW_LINE>String dn = ldapEntry.getDN();<NEW_LINE>List<LdapEntry> delEntries = new ArrayList<LdapEntry>();<NEW_LINE>List<LdapEntry> descs = getDescendants(dn, SearchControls.ONELEVEL_SCOPE);<NEW_LINE>if (descs.size() > 0)...
descEntry = descs.get(i);
1,653,365
public boolean isMatch(ZonedDateTime date) {<NEW_LINE>// Issue #200: Truncating the date to the least granular precision supported by different cron systems.<NEW_LINE>// For Quartz, it's seconds while for Unix & Cron4J it's minutes.<NEW_LINE>final boolean isSecondGranularity = cronDefinition.containsFieldDefinition(SEC...
(previousClosestMatch(date), date);
738,272
private void pubRunDevTools(FlutterSdk sdk) {<NEW_LINE>final FlutterCommand command = sdk.flutterPub(null, "global", "run", "devtools", "--machine", "--port=0");<NEW_LINE>final ColoredProcessHandler handler = command.startProcessOrShowError(project);<NEW_LINE>if (handler == null) {<NEW_LINE>logExceptionAndComplete("Han...
JsonUtils.getStringMember(params, "host");
1,617,344
protected void sendLazyHaves(final int[] lazy_haves, boolean immediate) {<NEW_LINE>if (immediate) {<NEW_LINE>if (current_peer_state == TRANSFERING) {<NEW_LINE>for (int lazy_have : lazy_haves) {<NEW_LINE>connection.getOutgoingMessageQueue().addMessage(new BTHave(lazy_have, other_peer_bt_have_version), false);<NEW_LINE>}...
.nextInt(2000), this);
1,755,406
private void handleURL(String url) {<NEW_LINE>FileObject newFO = null;<NEW_LINE>if (url.length() > 0) {<NEW_LINE>try {<NEW_LINE>newFO = URLMapper.findFileObject(new URL(url));<NEW_LINE>} catch (MalformedURLException ex) {<NEW_LINE>LOG.log(Level.WARNING, "URL = '" + url + "'", ex);<NEW_LINE>} catch (IllegalArgumentExcep...
"URL = '" + url + "'", ex);
1,087,982
public String download(HttpServletResponse response) {<NEW_LINE>String fileName = "common_db_server_template.csv";<NEW_LINE>String realPath = new File("").getAbsolutePath();<NEW_LINE>File file = new File(realPath, fileName);<NEW_LINE>if (file.exists()) {<NEW_LINE>try (FileInputStream fis = new FileInputStream(file);<NE...
write(buffer, 0, i);
368,972
final ListInstanceStorageConfigsResult executeListInstanceStorageConfigs(ListInstanceStorageConfigsRequest listInstanceStorageConfigsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listInstanceStorageConfigsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
139,163
void init(String text) {<NEW_LINE>setBackground(Color.yellow);<NEW_LINE>setForeground(Color.black);<NEW_LINE>JPanel content = new JPanel();<NEW_LINE>content.setLayout(new BoxLayout<MASK><NEW_LINE>add(content);<NEW_LINE>textPane = new TextPane();<NEW_LINE>textPane.setText(text);<NEW_LINE>textPane.setBorder(BorderFactory...
(content, BoxLayout.Y_AXIS));
1,161,028
protected final void fastPathOrderedEmitMax(U value, boolean delayError, Disposable dispose) {<NEW_LINE>final Subscriber<MASK><NEW_LINE>final SimplePlainQueue<U> q = queue;<NEW_LINE>if (fastEnter()) {<NEW_LINE>long r = requested.get();<NEW_LINE>if (r != 0L) {<NEW_LINE>if (q.isEmpty()) {<NEW_LINE>if (accept(s, value)) {...
<? super V> s = downstream;
356,618
public ListObjectsV2Result listObjectsV2(ListObjectsV2Request listObjectsV2Request) throws SdkClientException, AmazonServiceException {<NEW_LINE>listObjectsV2Request = beforeClientExecution(listObjectsV2Request);<NEW_LINE>rejectNull(listObjectsV2Request.getBucketName(), "The bucket name parameter must be specified when...
equals(listObjectsV2Request.getEncodingType());
1,853,480
public static void main(String[] args) {<NEW_LINE>// grep -C1 'static boolean . = false;' * | grep 'static final Logger . = LogManager\.getLogger();' # od<NEW_LINE>od.c();<NEW_LINE>// grep '"textures/atlas/blocks.png"' * # cty<NEW_LINE>// grep 'private final cty b;' * # cxi<NEW_LINE>cxi manager = new cxi(new cty("textu...
System.out.print("\n None,");
862,101
void insertNode(String filter, BuildNode node) {<NEW_LINE>int end = filter.length();<NEW_LINE>int splitPosition = -1;<NEW_LINE>boolean findEscapes = false;<NEW_LINE>for (int i = 0; i < end; i++) {<NEW_LINE>char c = filter.charAt(i);<NEW_LINE>if (c == '.') {<NEW_LINE>splitPosition = i;<NEW_LINE>break;<NEW_LINE>} else if...
node.children.get(field);
1,615,233
static void c_2_2() throws Exception {<NEW_LINE>if (!new File(DATA_DIR + VECTOR_FILE).exists()) {<NEW_LINE>new CsvSourceBatchOp().setFilePath(DATA_DIR + ORIGIN_FILE).setSchemaStr(SCHEMA_STRING).link(new VectorAssemblerBatchOp().setSelectedCols(FEATURE_COL_NAMES).setOutputCol(VECTOR_COL_NAME).setReservedCols(LABEL_COL_N...
.lazyPrint(-1, "all data");
209,175
public void visit(OWLSubClassOfAxiom axiom) {<NEW_LINE>if (axiom.getSubClass().isAnonymous()) {<NEW_LINE>// Not in our results because we only want to return class names<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Example:<NEW_LINE>// If searching for subs of B, candidates are:<NEW_LINE>// SubClassOf(A B)<NEW_LINE>// SubCl...
child, c.getProperty());
452,772
public void importDCTerms(String xmlToParse, DatasetVersion datasetVersion, DatasetFieldServiceBean datasetFieldSvc, MetadataBlockServiceBean blockService, SettingsServiceBean settingsService) {<NEW_LINE>DatasetDTO datasetDTO = this.initializeDataset();<NEW_LINE>try {<NEW_LINE>// Read docDescr and studyDesc into DTO ob...
).parseDatasetVersion(obj, datasetVersion);
123,207
public boolean verify(final Host host, final PublicKey key) throws BackgroundException {<NEW_LINE>String lookup = preferences.getProperty(this<MASK><NEW_LINE>if (StringUtils.isEmpty(lookup)) {<NEW_LINE>// Backward compatiblity to find keys with no port number saved<NEW_LINE>lookup = preferences.getProperty(this.toForma...
.toFormat(host, key));
1,686,834
private // <editor-fold defaultstate="collapsed" desc=" Generated Code ">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>sourceLabel = new javax.swing.JLabel();<NEW_LINE>sourceCombo = new javax.swing.JComboBox();<NEW_LINE>setLayout(new java.a...
= java.awt.GridBagConstraints.HORIZONTAL;
48,031
private void sharpen8(AutoTypeImage image) {<NEW_LINE><MASK><NEW_LINE>String bitwise = image.getBitWise();<NEW_LINE>String cast = image.getTypeCastFromSum();<NEW_LINE>String sumtype = image.getSumType();<NEW_LINE>out.print("\tpublic static void sharpenInner8( " + name + " input , " + name + " output , " + sumtype + " m...
String name = image.getSingleBandName();
1,114,705
private int bdd_setvarnum(int num) {<NEW_LINE>int bdv;<NEW_LINE>int oldbddvarnum = bddvarnum;<NEW_LINE>if (num < 1 || num > MAXVAR) {<NEW_LINE>bdd_error(BDD_RANGE);<NEW_LINE>return BDDZERO;<NEW_LINE>}<NEW_LINE>if (num < bddvarnum) {<NEW_LINE>return bdd_error(BDD_DECVNUM);<NEW_LINE>}<NEW_LINE>if (num == bddvarnum) {<NEW...
= new int[num + 1];
821,664
public static LocationOptions fromReadableMap(ReadableMap map) {<NEW_LINE>LocationAccuracy accuracy = getAccuracy(map);<NEW_LINE>long interval = map.hasKey("interval") ? (long) map.getDouble("interval") : DEFAULT_INTERVAL;<NEW_LINE>long fastestInterval = map.hasKey("fastestInterval") ? (long) <MASK><NEW_LINE>float dist...
map.getDouble("fastestInterval") : DEFAULT_FASTEST_INTERVAL;
1,621,584
public void OpenShift_StubbedTests_blankUserApiToken() throws Exception {<NEW_LINE>// send a flag to the stubbed an OpenShift tokenReviews response<NEW_LINE>String access_token = "badServiceAccountToken";<NEW_LINE>WebClient webClient = getAndSaveWebClient();<NEW_LINE>SocialTestSettings updatedSocialTestSettings = socia...
"Response did not contain message indicating that we can't process the response", null, SocialMessageConstants.CWWKS5489E_SOCIAL_LOGIN_FAILED);
1,608,318
public static String decryptUserSpecificSolution(String userNameKey, String encryptedSolution) throws GeneralSecurityException, Exception {<NEW_LINE>try {<NEW_LINE>String key = createUserSpecificEncryptionKey(userNameKey);<NEW_LINE>byte[] raw = key.getBytes(Charset.forName("US-ASCII"));<NEW_LINE>if (raw.length != 16) {...
(new byte[16]));
1,129,155
protected PreparedStatement prepareReadDatabaseListStatement(@NotNull DBRProgressMonitor monitor, @NotNull Connection bootstrapConnection, @NotNull DBPConnectionConfiguration configuration) throws SQLException {<NEW_LINE>// Make initial connection to read database list<NEW_LINE>DBSObjectFilter catalogFilters = getConta...
dbStat.setString(1, connectionDBName);
1,536,918
private void loadResources(Context context) {<NEW_LINE>mA1 = BitmapFactory.decodeResource(context.getResources(), R.drawable.callout_a1);<NEW_LINE>mA2 = BitmapFactory.decodeResource(context.getResources(), R.drawable.callout_a2);<NEW_LINE>mA3 = BitmapFactory.decodeResource(context.getResources(), R.drawable.callout_a3)...
), R.drawable.callout_b1);
1,268,044
public Future<Void> startAsync() {<NEW_LINE>log.info("Session store / pubsub factory used: {}", configCopy.getStoreFactory());<NEW_LINE>initGroups();<NEW_LINE><MASK><NEW_LINE>Class<? extends ServerChannel> channelClass = NioServerSocketChannel.class;<NEW_LINE>if (configCopy.isUseLinuxNativeEpoll()) {<NEW_LINE>channelCl...
pipelineFactory.start(configCopy, namespacesHub);
1,750,409
private void doComplete(CompletionInitializationContextImpl initContext, boolean hasModifiers, boolean isValidContext, long startingTime) {<NEW_LINE>final Editor editor = initContext.getEditor();<NEW_LINE>CompletionAssertions.checkEditorValid(editor);<NEW_LINE>LookupImpl lookup = obtainLookup(editor, initContext.getPro...
CompletionPhase.NoCompletion.getClass());
22,312
public ListenerResult listen(WorkflowContext context) throws WorkflowListenerException {<NEW_LINE>GroupResourceProcessForm form = (GroupResourceProcessForm) context.getProcessForm();<NEW_LINE>String groupId = form.getInlongGroupId();<NEW_LINE>String streamId = form.getInlongStreamId();<NEW_LINE>String applicant = conte...
STREAM_CONFIG_SUCCESSFUL.getCode(), applicant);
1,729,681
protected void introInits(CodeWriter writer, EntityType model) throws IOException {<NEW_LINE>List<String> inits = new ArrayList<String>();<NEW_LINE>for (Property property : model.getProperties()) {<NEW_LINE>for (String init : property.getInits()) {<NEW_LINE>inits.add(property.getEscapedName() + DOT + init);<NEW_LINE>}<...
"INITS", "new PathInits(" + initsAsString + ")");
317,953
JarFile createBootProxyJar() throws IOException {<NEW_LINE>File dataFile = bundleContext.getDataFile("boot-proxy-throwable.jar");<NEW_LINE>// Create the file if it doesn't already exist<NEW_LINE>if (!dataFile.exists()) {<NEW_LINE>dataFile.createNewFile();<NEW_LINE>}<NEW_LINE>// Generate a manifest<NEW_LINE>Manifest man...
= new JarOutputStream(fileOutputStream, manifest);
214,978
private OLCand toOLCand(@NonNull final I_C_OLCand olCandRecord) {<NEW_LINE>final BPartnerOrderParams params = olCandBL.getBPartnerOrderParams(olCandRecord);<NEW_LINE>final DeliveryRule deliveryRule = olCandBL.getDeliveryRule(olCandRecord, params, orderDefaults);<NEW_LINE>final DeliveryViaRule deliveryViaRule = olCandBL...
getShipperId(params, orderDefaults, olCandRecord);
1,057,206
public Status checkPathExist(String remotePath) {<NEW_LINE>// 1. get a proper broker<NEW_LINE>Pair<TFileBrokerService.Client, TNetworkAddress> pair = new Pair<TFileBrokerService.Client, TNetworkAddress>(null, null);<NEW_LINE>Status st = getBroker(pair);<NEW_LINE>if (!st.ok()) {<NEW_LINE>return st;<NEW_LINE>}<NEW_LINE><...
TFileBrokerService.Client client = pair.first;
624,103
public void delete(final FileLock lock, ProvidedExtensions.DeleteHandler deleteHandler) throws IOException {<NEW_LINE>final File f = getFileName().getFile();<NEW_LINE>final FolderObj existingParent = getExistingParent();<NEW_LINE>final ChildrenCache childrenCache = (existingParent != null) ? existingParent.getChildrenC...
"EXC_InvalidLock", lock, getPath());
1,335,132
public String verifyEmail(@RequestAttribute SysSite site, String authToken, String returnUrl, HttpServletRequest request, HttpSession session, ModelMap model) {<NEW_LINE>Map<String, String> config = configComponent.getConfigData(site.getId(), Config.CONFIG_CODE_SITE);<NEW_LINE>String safeReturnUrl = config.get(LoginCon...
sysEmailToken = sysEmailTokenService.getEntity(authToken);
360,864
private SendMailCommand createSendMailCommandFromProperties() throws AddressException {<NEW_LINE>SendMailCommand sendMailCmd = new SendMailCommand();<NEW_LINE>sendMailCmd.setSmtpServer(getPropertyAsString(SmtpSampler.SERVER));<NEW_LINE>sendMailCmd.setSmtpPort(getPropertyAsString(SmtpSampler.SERVER_PORT));<NEW_LINE>send...
(getPropertyAsBoolean(SecuritySettingsPanel.USE_SSL));
637,473
public static void main(String[] args) throws Throwable {<NEW_LINE>String cp = System.getProperty("java.class.path", null);<NEW_LINE>JarFile mainJar = new JarFile(cp);<NEW_LINE>Manifest manifest = mainJar.getManifest();<NEW_LINE>if (manifest == null) {<NEW_LINE>System.err.println("JAR file is missing manifest; cannot s...
new Object[] { args });
634,774
public SourceSinkType filter(ISourceSinkCategory category, SourceSinkType sourceSinkType) {<NEW_LINE>// We cannot compare descriptions to the configuration file<NEW_LINE>if (category instanceof CategoryDefinition) {<NEW_LINE>CategoryDefinition catDef = (CategoryDefinition) category;<NEW_LINE>catDef = catDef.getIdOnlyDe...
getSourceCategoriesAndModes().get(category);
1,440,485
public void actionPerformed(ActionEvent e) {<NEW_LINE>if (e.getActionCommand().equals(ConfirmPanel.A_OK)) {<NEW_LINE>Timestamp date = null;<NEW_LINE>if (dateFrom.getValue() != null)<NEW_LINE>date = (Timestamp) dateFrom.getValue();<NEW_LINE>int S_Resource_ID = 0;<NEW_LINE>if (resource.getValue() != null)<NEW_LINE>S_Reso...
dataset = createDataset(date, r);
637,921
public void serialize(QueryMetadata metadata, boolean forCountRow, SQLSerializer context) {<NEW_LINE>if (!forCountRow && metadata.getModifiers().isRestricting() && !metadata.getJoins().isEmpty()) {<NEW_LINE>QueryModifiers mod = metadata.getModifiers();<NEW_LINE>if (mod.getOffset() == null) {<NEW_LINE>context.serializeF...
limitTemplate, mod.getLimit());
1,737,875
public void invokePopup(Component comp, int x, int y) {<NEW_LINE>final DefaultActionGroup group = new DefaultActionGroup();<NEW_LINE>group.addAll(rerunActionGroup);<NEW_LINE>group.addAll(sourceActionGroup);<NEW_LINE>group.addSeparator();<NEW_LINE><MASK><NEW_LINE>if (selectedNodes.length == 1) {<NEW_LINE>ExecutionNode s...
ExecutionNode[] selectedNodes = getSelectedNodes();
641,796
protected UiControllerProperty loadUiControllerProperty(Element propertyElement) {<NEW_LINE>String propertyName = propertyElement.attributeValue("name");<NEW_LINE>if (StringUtils.isEmpty(propertyName)) {<NEW_LINE>throw new IllegalStateException("Screen property cannot have empty name");<NEW_LINE>}<NEW_LINE>String prope...
propertyValue, UiControllerProperty.Type.VALUE);
416,928
public Attribute createAttribute(HttpClientResponse response, String name, String value) {<NEW_LINE>if (useDisk) {<NEW_LINE>Attribute attribute;<NEW_LINE>try {<NEW_LINE>attribute = new DiskAttribute(name, value, charset, baseDir, deleteOnExit);<NEW_LINE>attribute.setMaxSize(maxSize);<NEW_LINE>} catch (IOException e) {<...
HttpData> list = getList(response);
1,681,325
private void loadNode1200() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_XmlSchema_AxisInformation, new QualifiedName(0, "AxisInformation"), new LocalizedText("en", "AxisInformation"), LocalizedText.NULL_VALUE, UInteger.va...
this.nodeManager.addNode(node);
861,676
public void applyMigration() {<NEW_LINE>List<String> toClean = ImmutableList.of(<MASK><NEW_LINE>try {<NEW_LINE>for (String node : toClean) {<NEW_LINE>if (curatorFramework.checkExists().forPath(node) != null) {<NEW_LINE>curatorFramework.delete().deletingChildrenIfNeeded().forPath(node);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Li...
"/disasters/previous-stats", "/disasters/stats", "/disasters/task-credits", "/offer-state");
1,580,437
private static void showTaskKillerHelp(final Context context) {<NEW_LINE>if (!Preferences.getBoolean(P_TASK_KILLER_HELP, false))<NEW_LINE>return;<NEW_LINE>// search for task killers. if they exist, show the help!<NEW_LINE>PackageManager pm = context.getPackageManager();<NEW_LINE>List<PackageInfo> apps = pm.getInstalled...
app.applicationInfo.loadLabel(pm);
719,436
protected Rope substringConcatRope(ConcatRope base, int byteOffset, int byteLength, @Cached BytesNode bytesNode, @Cached MakeSubstringRopeNode makeSubstringRopeNode) {<NEW_LINE>// NOTE(norswap, 19 Nov 2020):<NEW_LINE>// We flatten the rope here. This avoids issue in the (fairly common) case where the rope tree is basic...
), base, byteOffset, byteLength);
457,759
/*<NEW_LINE>* passed JSON is a single connection from the response to sites/%d/publicize-connections<NEW_LINE>{"ID":12783250,<NEW_LINE>"site_ID":52451176,<NEW_LINE>"user_ID":5399133,<NEW_LINE>"keyring_connection_ID":12781808,<NEW_LINE>"keyring_connection_user_ID":5399133,<NEW_LINE>"shared":false,<NEW_LINE>"service":"tw...
.mSites = new long[0];
1,230,002
public ListUsersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListUsersResult listUsersResult = new ListUsersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken...
String currentParentElement = context.getCurrentParentElement();
483,301
public static <P, T> BiFunction<P, Headers, T> propertyToMethodInvokingFunction(String methodProperty, Class<P> payloadType, ClassLoader classLoader) {<NEW_LINE>int <MASK><NEW_LINE>Assert.state(lastDotPosn > 1, "the method property needs to be a class name followed by the method name, separated by '.'");<NEW_LINE>BiFun...
lastDotPosn = methodProperty.lastIndexOf('.');
413,552
final ListRepositoriesForApprovalRuleTemplateResult executeListRepositoriesForApprovalRuleTemplate(ListRepositoriesForApprovalRuleTemplateRequest listRepositoriesForApprovalRuleTemplateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listRepositoriesForApprovalRuleTemplateRequest);<NEW_LIN...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,360,067
private boolean backupGroupCtrlConfig(StringBuilder strBuff) {<NEW_LINE>logger.info("[Backup Group Ctrl] begin ");<NEW_LINE>Map<String, GroupResCtrlEntity> groupCtrlMap = getGroupResCtrlInfos(strBuff);<NEW_LINE>if (groupCtrlMap == null) {<NEW_LINE>logger.error(" download group-control configurations are null!");<NEW_L...
()).toString());
969,314
public int numberOfArithmeticSlices(int[] A) {<NEW_LINE>int res = 0;<NEW_LINE>Map<Integer, Integer>[] map <MASK><NEW_LINE>for (int i = 0; i < A.length; i++) {<NEW_LINE>map[i] = new HashMap<>(i);<NEW_LINE>for (int j = 0; j < i; j++) {<NEW_LINE>long diff = (long) A[i] - A[j];<NEW_LINE>if (diff <= Integer.MIN_VALUE || dif...
= new Map[A.length];
403,277
// CHECKSTYLE_RULES.OFF: CyclomaticComplexity<NEW_LINE>private static CastFunction castFunction(final SqlType from, final SqlType to, final KsqlConfig config) {<NEW_LINE>// CHECKSTYLE_RULES.ON: CyclomaticComplexity<NEW_LINE>final SqlBaseType toBaseType = to.baseType();<NEW_LINE>if (toBaseType == SqlBaseType.INTEGER) {<...
castToMapFunction(from, to, config);
326,779
private void addScript(final File file, final Map<File, Script> addOnScriptMap) {<NEW_LINE>final Script scriptConfig = addOnScriptMap.get(file);<NEW_LINE>if (scriptConfig != null && !scriptConfig.active) {<NEW_LINE>LogUtils.info("skipping deactivated " + scriptConfig);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final String ...
menuTitleToMetaDataMap.put(menuTitle, metaData);
814,083
public Response afterReceiveRequest(Invocation invocation, HttpServletRequestEx requestEx) {<NEW_LINE>String invocationContextHeader = requestEx.getHeader(Const.CSE_CONTEXT);<NEW_LINE>if (StringUtils.isEmpty(invocationContextHeader)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>@SuppressWarnings("unchecke...
, invocationContext.get("allowInherit"));
1,473,853
public static void registerExtras(IModRegistry registry) {<NEW_LINE>final Boolean onFire = InfinityConfig.inWorldCraftingEnabled.get();<NEW_LINE>final Boolean onWater = InfinityConfig.inWorldCraftingFireWaterEnabled.get();<NEW_LINE>if (!onFire && !onWater && !InfinityConfig.bedrock.get().isEmpty()) {<NEW_LINE>return;<N...
, 0), InfinityRecipeCategory.UUID);
1,362,548
protected final Properties generateLTPAKeys(byte[] keyPasswordBytes, final String realm) throws Exception {<NEW_LINE>Properties expProps = null;<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>LTPAKeyPair pair = LTPADigSignature.generateLTPAKeyPair();<NEW_LINE>byte[] publicKey = pair.getPublic().getEncoded();<NEW_LINE>byte[] p...
KeyEncryptor encryptor = new KeyEncryptor(keyPasswordBytes);
493,249
private FxNode handleFxInclude(Attributes atts, String localName) {<NEW_LINE>String include = null;<NEW_LINE>String id = null;<NEW_LINE>for (int i = 0; i < atts.getLength(); i++) {<NEW_LINE>String uri = atts.getURI(i);<NEW_LINE>String attName = atts.getLocalName(i);<NEW_LINE>if (FX_ATTR_REFERENCE_SOURCE.equals(attName)...
, ERR_invalidFxElement(localName), localName);
601,785
public void stopColEditing(boolean updateCellLabel) {<NEW_LINE>if (!editing) {<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>editing = false;<NEW_LINE>}<NEW_LINE>if (currentDiv.getEditor() != null) {<NEW_LINE>WEditor entry = currentDiv.getEditor();<NEW_LINE>Component component = currentDiv.getFirstChild();<NEW_LINE>if (u...
.getChildren().clear();
281,876
public Mono<AppServiceDomain> createResourceAsync() {<NEW_LINE>if (this.dnsZoneCreatable != null) {<NEW_LINE>DnsZone dnsZone = this.taskResult(dnsZoneCreatable.key());<NEW_LINE>innerModel().withDnsZoneId(dnsZone.id());<NEW_LINE>}<NEW_LINE>String[] domainParts = this.name().split("\\.");<NEW_LINE>String topLevel = domai...
name(), innerModel());
1,654,035
public // ------------------------------------------------------------------------<NEW_LINE>void childAdded(NodeChangeEvent evt) {<NEW_LINE>NodeChangeListener[] listeners;<NEW_LINE>Preferences childNode;<NEW_LINE>synchronized (tree.treeLock()) {<NEW_LINE>String childName = evt.getChild().name();<NEW_LINE>if (removed ||...
getChild().name());
664,001
public BrokeredIdentityContext deserialize(KeycloakSession session, AuthenticationSessionModel authSession) {<NEW_LINE>BrokeredIdentityContext ctx = new BrokeredIdentityContext(getId());<NEW_LINE>ctx.setUsername(getBrokerUsername());<NEW_LINE><MASK><NEW_LINE>ctx.setEmail(getEmail());<NEW_LINE>ctx.setFirstName(getFirstN...
ctx.setModelUsername(getModelUsername());
552,735
private Function<DOMImplementation, DocumentType> findDoctype() throws ParseException {<NEW_LINE>if (tokens.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Function<DOMImplementation, DocumentType> doctypeMaker = null;<NEW_LINE>Mark start = tokens.mark();<NEW_LINE>doctypeloop: while (!tokens.isEmpty()) {<NEW_LIN...
Nodes.setFilePositionFor(t, pos);
1,201,561
private void loadNode1077() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.UserTokenType_EnumStrings, new QualifiedName(0, "EnumStrings"), new LocalizedText("en", "EnumStrings"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), new D...
DataValue(new Variant(o));
874,721
public ResponseEntity<?> filterEntities(DomainTypeAdministrationConfiguration domainTypeAdministrationConfiguration, RootResourceInformation repoRequest, PersistentEntityResourceAssembler assembler, WebRequest request, Pageable pageable, @PathVariable String scopeName) throws Exception {<NEW_LINE>DynamicRepositoryInvok...
findItemsBySpecification(repositoryInvoker, filterSpecification, pageable);
512,056
public void updateClob(String columnLabel, Reader x, long length) throws SQLException {<NEW_LINE>try {<NEW_LINE>rsetImpl.updateClob(columnLabel, x, length);<NEW_LINE>} catch (SQLException sqlX) {<NEW_LINE>FFDCFilter.processException(sqlX, getClass().getName() + ".updateClob", "3886", this);<NEW_LINE>throw WSJdbcUtil.ma...
this, tc, "updateClob", runX);
1,839,914
protected void configureCallgraph() {<NEW_LINE>// Configure the callgraph algorithm<NEW_LINE>switch(config.getCallgraphAlgorithm()) {<NEW_LINE>case AutomaticSelection:<NEW_LINE>case SPARK:<NEW_LINE>Options.v(<MASK><NEW_LINE>break;<NEW_LINE>case GEOM:<NEW_LINE>Options.v().setPhaseOption("cg.spark", "on");<NEW_LINE>Abstr...
).setPhaseOption("cg.spark", "on");
1,782,124
public static ListNotaryOrdersResponse unmarshall(ListNotaryOrdersResponse listNotaryOrdersResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNotaryOrdersResponse.setRequestId(_ctx.stringValue("ListNotaryOrdersResponse.RequestId"));<NEW_LINE>listNotaryOrdersResponse.setTotalItemNum(_ctx.integerValue("ListNotaryOrdersRe...
(_ctx.stringValue("ListNotaryOrdersResponse.ErrorCode"));
1,572,762
private void onDownlinkResponse(DownlinkResponseMsg msg) {<NEW_LINE>try {<NEW_LINE>if (msg.getSuccess()) {<NEW_LINE>sessionState.getPendingMsgsMap().remove(msg.getDownlinkMsgId());<NEW_LINE>log.debug("[{}] Msg has been processed successfully! {}", edge.getRoutingKey(), msg);<NEW_LINE>} else {<NEW_LINE>log.error("[{}] M...
getSendDownlinkMsgsFuture().set(null);
1,187,148
public String userGetDepositAddress(String currency) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String path = "/user/depositAddress";<NEW_LINE>// query params<NEW_LINE>List<Pair> queryParams = new ...
headerParams, formParams, contentType, authNames);
893,818
public boolean login() throws LoginException {<NEW_LINE>if ((getSharedLoginCreds().isUseFirstPass() || getSharedLoginCreds().isTryFirstPass()) && getSharedLoginCreds().isHasSharedAuth()) {<NEW_LINE>debug(String.format("AbstractSharedLoginModule: login with sharedLoginState auth, " + "try? %s, use? %s", getSharedLoginCr...
char[]) userPass[1];
1,700,668
byte[] toArray() {<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(MAX_POSSIBLE_NODE_DATA_SIZE);<NEW_LINE>// Write data (compatible with version 0)<NEW_LINE>buffer.putInt(this.processingStatus);<NEW_LINE>buffer.putInt(this.priority);<NEW_LINE>buffer.putInt(this.numberOfCrashes);<NEW_LINE><MASK><NEW_LINE>buffer.putInt(...
buffer.putLong(this.completedDate);
1,061,828
public void write(final MySQLPacketPayload payload, final Object value) {<NEW_LINE>Timestamp timestamp = new Timestamp(((Date) value).getTime());<NEW_LINE>Calendar calendar = Calendar.getInstance();<NEW_LINE>calendar.setTime(timestamp);<NEW_LINE>int year = calendar.get(Calendar.YEAR);<NEW_LINE>int month = calendar.get(...
calendar.get(Calendar.DAY_OF_MONTH);
1,565,405
void build(TypeSpec.Builder builder) {<NEW_LINE>// get<NEW_LINE>MethodSpec.Builder getMethod = CodeGeneration.overridePublicMethod("get" + methodSuffix).addParameter(entity, "entity").returns(typeName);<NEW_LINE>final String accessName = "entity" + (accessSuffix == null ? "" : accessSuffix);<NEW_LINE>if (isWriteOnly) {...
"return $L.$L()" : "return $L.$L", accessName, readName);
1,237,363
private void processLevel(final int currentLevel, double[] derivative) {<NEW_LINE>final int fromLayerIndex = this.layerIndex[currentLevel + 1];<NEW_LINE>final int toLayerIndex = this.layerIndex[currentLevel];<NEW_LINE>final int fromLayerSize = this.layerCounts[currentLevel + 1];<NEW_LINE>final int toLayerSize = this.la...
getActivationFunctions()[currentLevel + 1];
327,488
final CreateIpamPoolResult executeCreateIpamPool(CreateIpamPoolRequest createIpamPoolRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createIpamPoolRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,051,072
public Optional<NodeContent> load() throws ConfigException {<NEW_LINE>if (!Files.exists(directoryPath)) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>ConfigNode.ObjectNode.Builder objectNodeRoot = ConfigNode.ObjectNode.builder();<NEW_LINE>Files.walk(directoryPath, 1, FOLLOW_LINKS).filter(Files:...
).toString(), content);
1,597,274
public void print(StringBuilder toStringBuilder) {<NEW_LINE>toStringBuilder.append("\n JspGroupDescriptor");<NEW_LINE>toStringBuilder.append("\n");<NEW_LINE>super.print(toStringBuilder);<NEW_LINE>toStringBuilder.append("\n DisplayName:").append(this.getDisplayName());<NEW_LINE>toStringBuilder.append("\n PageEncoding:")...
("\n includePreludes: ").append(includePreludes);
1,162,649
private void refresh() {<NEW_LINE>if (agg_size == null || managers.length == 0 || managers[0].getDownloadManager() == null) {<NEW_LINE>// not yet init<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long total_size = 0;<NEW_LINE>long total_remaining = 0;<NEW_LINE>long total_good_downloaded = 0;<NEW_LINE>long total_downloaded = 0;...
(DisplayFormatters.formatByteCountToKiBEtc(total_downloaded));