idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
81,821
private <T> T[] allocateNewEntries(final T[] existingEntries, final T newEntry) {<NEW_LINE>if (existingEntries != null) {<NEW_LINE>for (T input : existingEntries) {<NEW_LINE>boolean found;<NEW_LINE>if (input instanceof CatalogEntity) {<NEW_LINE>found = ((CatalogEntity) input).getName().equals(((CatalogEntity) newEntry)...
) newEntry).name());
137,048
void expectSuperType(Node n, ObjectType superObject, ObjectType subObject) {<NEW_LINE>FunctionType subCtor = subObject.getConstructor();<NEW_LINE>ObjectType implicitProto = subObject.getImplicitPrototype();<NEW_LINE>ObjectType declaredSuper = implicitProto == null <MASK><NEW_LINE>if (declaredSuper != null && declaredSu...
? null : implicitProto.getImplicitPrototype();
57,607
void markSessionDisconnect() {<NEW_LINE>VolatileFields cache = fields;<NEW_LINE>synchronized (pendingSend) {<NEW_LINE>if (cache.state != ConnState.DISCONNECTED) {<NEW_LINE>// NOTICE:<NEW_LINE>// 1. when a connection is reset, the timeout response<NEW_LINE>// is not answered in the order they query<NEW_LINE>// 2. It's l...
warn("{}: session is closed already", name());
1,829,724
public AwsS3BucketBucketLifecycleConfigurationDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsS3BucketBucketLifecycleConfigurationDetails awsS3BucketBucketLifecycleConfigurationDetails = new AwsS3BucketBucketLifecycleConfigurationDetails();<NEW_LINE><MASK><NEW_LINE>String currentParen...
int originalDepth = context.getCurrentDepth();
745,221
public NetworkPathComponentDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>NetworkPathComponentDetails networkPathComponentDetails = new NetworkPathComponentDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
)).unmarshall(context));
101,304
public Tree visitClass(ClassTree node, Element elementToFind) {<NEW_LINE>if (workingCopy.getTreeUtilities().isSynthetic(getCurrentPath())) {<NEW_LINE>return super.visitClass(node, elementToFind);<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>Types types = workingCopy.getTypes();<NEW_LINE>TypeMirror type2 = elementToFind.asType()...
Trees trees = workingCopy.getTrees();
1,481,602
private static void testQueueCatenation(Exercise47_CatenableCollections<Integer> catenableCollections) {<NEW_LINE>Queue<Integer> queue1 = new Queue<>();<NEW_LINE>queue1.enqueue(0);<NEW_LINE>queue1.enqueue(1);<NEW_LINE>queue1.enqueue(2);<NEW_LINE>queue1.enqueue(3);<NEW_LINE>Queue<Integer> queue2 = new Queue<>();<NEW_LIN...
StringJoiner linkedListItems = new StringJoiner(" ");
892,055
private static // you can play game with w,a,s,d keys and set delay to >50 for playable spped.<NEW_LINE>void movement() throws snakeHeadTrapException {<NEW_LINE>snakeHead.setX(snakeHead.getX() + snakeHead.getXs());<NEW_LINE>snakeHead.setY(snakeHead.getY(<MASK><NEW_LINE>if (snakeHead.getX() >= width)<NEW_LINE>snakeHead....
) + snakeHead.getYs());
1,449,597
private static // ------------------//<NEW_LINE>void populateCharMaps() {<NEW_LINE>char c;<NEW_LINE>setMap.put(c = 'a', ShapeSet.Accidentals);<NEW_LINE>shapeMap.put("" + c + 'f', Shape.FLAT);<NEW_LINE>shapeMap.put("" + c + 'n', Shape.NATURAL);<NEW_LINE>shapeMap.put("" + c + 's', Shape.SHARP);<NEW_LINE>setMap.put(c = 'b...
c + 'h', Shape.HALF_NOTE_UP);
1,239,825
public FileObject generateTest(PhpModule phpModule, FileObject fo, GenerateCommand command, String suite, String fqName) throws ExecutionException {<NEW_LINE>String testPath = fullyQualifiedNameToPath(fqName);<NEW_LINE>if (testPath.startsWith("/")) {<NEW_LINE>// NOI18N<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>PhpExecutable ...
testPath = testPath.substring(1);
328,097
final StartBuildResult executeStartBuild(StartBuildRequest startBuildRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startBuildRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
244,014
OutputListener findHyperlink(String line) {<NEW_LINE>try {<NEW_LINE>Matcher m = hyperlinkable.matcher(line);<NEW_LINE>if (m.matches()) {<NEW_LINE>final String <MASK><NEW_LINE>final int row = m.group(2) != null ? Integer.parseInt(m.group(2)) - 1 : -1;<NEW_LINE>final int col = m.group(3) != null ? Integer.parseInt(m.grou...
path = m.group(1);
1,840,639
protected void checkParameters(Configuration conf) throws InvalidParameterException {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>int coreNum = conf.getInt(AngelConf.ANGEL_AM_CPU_VCORES, AngelConf.DEFAULT_ANGEL_AM_CPU_VCORES);<NEW_LINE>if (coreNum <= 0) {<NEW_LINE>sb.<MASK><NEW_LINE>sb.append("\n");<NEW_L...
append(AngelConf.ANGEL_AM_CPU_VCORES + " should > 0");
325,400
private static void addField(Schema schema, List<String> fields, FieldAlias fa, String currentNode) {<NEW_LINE>for (FieldSchema field : schema.getFields()) {<NEW_LINE>String node;<NEW_LINE>if (field.alias != null) {<NEW_LINE>// if no field<NEW_LINE>node = fa.toES(field.alias);<NEW_LINE>node = (currentNode != null ? cur...
schema, fields, fa, node);
799,253
private Mono<Response<NetworkProfileInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String networkProfileName, NetworkProfileInner parameters, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint...
error(new IllegalArgumentException("Parameter parameters is required and cannot be null."));
721,874
private void updateMasterProject() {<NEW_LINE>String s = masterProjectField.getText();<NEW_LINE>if (s != null && s.length() > 0) {<NEW_LINE>File f = new File(s);<NEW_LINE>FileObject <MASK><NEW_LINE>if (fo != null && fo.isFolder()) {<NEW_LINE>try {<NEW_LINE>Project p = ProjectManager.getDefault().findProject(fo);<NEW_LI...
fo = FileUtil.toFileObject(f);
1,050,204
public void createKey() {<NEW_LINE>KeyClient keyClient = createClient();<NEW_LINE>// BEGIN: com.azure.security.keyvault.keys.KeyClient.createKey#String-KeyType<NEW_LINE>KeyVaultKey key = keyClient.createKey("keyName", KeyType.EC);<NEW_LINE>System.out.printf("Created key with name: %s and id: %s%n", key.getName(), key.g...
rsaKey = keyClient.createRsaKey(createRsaKeyOptions);
331,603
public Cursor query(@NonNull Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {<NEW_LINE>SQLiteQueryBuilder qb = new SQLiteQueryBuilder();<NEW_LINE>int match = sURIMatcher.match(uri);<NEW_LINE><MASK><NEW_LINE>switch(match) {<NEW_LINE>case MATCH_ALL:<NEW_LINE>break;<NEW_LINE>case...
qb.setTables(DbHelper.BOOKMARKS_TABLE);
96,504
public void visit(OWLEquivalentClassesAxiom axiom) {<NEW_LINE>List<OWLClassExpression> classExpressions = <MASK><NEW_LINE>if (classExpressions.size() > 2) {<NEW_LINE>Set<Set<OWLClassExpression>> rendered = new HashSet<>();<NEW_LINE>for (OWLClassExpression left : classExpressions) {<NEW_LINE>for (OWLClassExpression righ...
asList(axiom.classExpressions());
1,403,893
public static Route convertAccessDTOtoRoute(AccessDTO accessDTO) {<NEW_LINE>Route route = new Route();<NEW_LINE>route.setService(ConvertUtil.getIdFromDTO(accessDTO));<NEW_LINE>route.setForce(true);<NEW_LINE>route.setFilterRule("false");<NEW_LINE>route.setEnabled(true);<NEW_LINE>Map<String, RouteUtils.MatchPair> <MASK><...
when = new HashMap<>();
1,648,667
void warm(Engine.Searcher searcher, IndexShard shard, IndexSettings settings) {<NEW_LINE>if (shard.state() == IndexShardState.CLOSED) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (settings.isWarmerEnabled() == false) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (logger.isTraceEnabled()) {<NEW_LINE>logger.trace("{} top warmin...
(took, TimeUnit.NANOSECONDS));
1,634,951
private NativePathRenderer renderShape(Shape shape, Stroke stroke) {<NEW_LINE>if (stroke != null) {<NEW_LINE>float lineWidth = stroke.getLineWidth();<NEW_LINE>int capStyle = stroke.getCapStyle();<NEW_LINE>int miterStyle = stroke.getJoinStyle();<NEW_LINE>float miterLimit = stroke.getMiterLimit();<NEW_LINE>PathIterator p...
), path.getWindingRule());
1,099,906
private static boolean registerResourceDir(File resourceDir, Hk2DeploymentManager dm, String baseName) throws ConfigurationException {<NEW_LINE>boolean succeeded = false;<NEW_LINE>// NOI18N<NEW_LINE>File sunResourcesXml = new File(resourceDir, baseName + ".xml");<NEW_LINE>if (sunResourcesXml.exists()) {<NEW_LINE>checkU...
gfie.getLocalizedMessage(), gfie);
947,419
protected void parseIntent(Context ctx, String action, Bundle bundle) throws IllegalArgumentException {<NEW_LINE>boolean playing = bundle.getBoolean("playing", false);<NEW_LINE>if (!playing) {<NEW_LINE>// if not playing, there is no guarantee the bundle will contain any track info<NEW_LINE>setState(MicroService.State.U...
(bundle.getString("artist"));
1,242,268
public static void vertical(Kernel1D_F32 kernel, GrayF32 input, GrayF32 output) {<NEW_LINE>final float[] dataSrc = input.data;<NEW_LINE>final float[] dataDst = output.data;<NEW_LINE>final float[] dataKer = kernel.data;<NEW_LINE>final int kernelWidth = kernel.getWidth();<NEW_LINE>final int offsetL = kernel.getOffset();<...
.startIndex + y * input.stride;
1,679,517
private DataBuffer readChunkInternal() throws IOException {<NEW_LINE>Preconditions.checkState(!mClient.get().isShutdown(), "Data reader is closed while reading data chunks.");<NEW_LINE>DataBuffer buffer = null;<NEW_LINE>ReadResponse response = null;<NEW_LINE>if (mStream instanceof GrpcDataMessageBlockingStream) {<NEW_L...
response = mStream.receive(mDataTimeoutMs);
1,618,554
public void addInner(SchedulableTask task) {<NEW_LINE>int driverIndex = task.meta().getDriverIndex();<NEW_LINE>Providers providers = getTornadoRuntime().getDriver(driverIndex).getProviders();<NEW_LINE>TornadoSuitesProvider suites = getTornadoRuntime().getDriver(driverIndex).getSuitesProvider();<NEW_LINE>logTaskMethodHa...
TornadoGraphBitcodes.LOAD_REF.index());
964,321
private static void registerUnsignedMathPlugins(InvocationPlugins plugins) {<NEW_LINE>Registration r = new Registration(plugins, UnsignedMath.class);<NEW_LINE>r.register(new UnsignedMathPlugin(Condition.AT, "aboveThan", int.class, int.class));<NEW_LINE>r.register(new UnsignedMathPlugin(Condition.AT, "aboveThan", long.c...
.class, long.class));
1,059,147
public void execute(IntegrationActivityBehavior receiveTaskActivityBehavior, DelegateExecution execution) {<NEW_LINE>Map<String, Object> stringObjectMap = new HashMap<String, Object>();<NEW_LINE>stringObjectMap.put(executionId, execution.getId());<NEW_LINE>stringObjectMap.put(processInstanceId, execution.getProcessInst...
(execution.getVariables()));
18,493
public FieldPath buildFieldPath(String remainFieldName) {<NEW_LINE>if (remainFieldName.length() == 0) {<NEW_LINE>return new FieldPath();<NEW_LINE>}<NEW_LINE>String currFieldName = remainFieldName;<NEW_LINE>String subFieldName = "";<NEW_LINE>for (int i = 0; i < remainFieldName.length(); i++) {<NEW_LINE>if (remainFieldNa...
remainFieldName.substring(0, i);
441,863
protected void startHeartbeat() throws ServiceException {<NEW_LINE>if (master == null) {<NEW_LINE>LOG.error("Master has not been connected");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>clientId = master.getClientId(null, GetClientIdRequest.getDefaultInstance()).getClientId();<NEW_LINE>master.clientRegister(null, ClientRegist...
LOG.info("clientId=" + clientId);
309,654
public void collect(@NotNull TwigFileVariableCollectorParameter parameter, @NotNull Map<String, Set<String>> variables) {<NEW_LINE>Map<String, Set<String>> map = new HashMap<>();<NEW_LINE>TwigGlobalsServiceParser twigPathServiceParser = ServiceXmlParserFactory.getInstance(parameter.getProject(), TwigGlobalsServiceParse...
, new HashSet<>());
388,337
public void adaptNonStructuralNodes(DataRecord root) {<NEW_LINE>if (nodeTrx.isElement()) {<NEW_LINE>final ElementNode element = (ElementNode) root;<NEW_LINE>for (int i = 0, attLength = element.getAttributeCount(); i < attLength; i++) {<NEW_LINE>SirixDeweyID deweyID;<NEW_LINE>if (i == 0) {<NEW_LINE>nodeTrx.moveToAttribu...
, IndexType.DOCUMENT, -1);
914,464
public View build() {<NEW_LINE>LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);<NEW_LINE>@SuppressLint("InflateParams")<NEW_LINE>View v = inflater.inflate(R.layout.dialog_title_with_two_icons, null);<NEW_LINE>TextView title = v.findViewById(R.id.title);<NEW_LINE>Text...
startIcon.setImageDrawable(this.startIcon);
200,640
private static ImageData convertToSWT(BufferedImage bufferedImage) {<NEW_LINE>if (bufferedImage.getColorModel() instanceof DirectColorModel) {<NEW_LINE>DirectColorModel colorModel = (DirectColorModel) bufferedImage.getColorModel();<NEW_LINE>PaletteData palette = new PaletteData(colorModel.getRedMask(), colorModel.getGr...
, y, pixelArray[0]);
1,658,240
private ClassLoader loadRampPolicyClassLoader(final File pluginDir, final String rampPolicyName, final RampPolicyPluginSet plugins) {<NEW_LINE>// sysconf says what jars/confs to load<NEW_LINE>final Props pluginLoadProps = plugins.getPluginLoadProps(rampPolicyName);<NEW_LINE>final List<URL> resources = new ArrayList<>()...
getClassLoader(resources, this.parentClassLoader);
408,593
public static KernelPackage readInputData() throws ClassNotFoundException, IOException {<NEW_LINE>System.out.println("Reading file for decompressing");<NEW_LINE>FileInputStream iStream = new FileInputStream("/tmp/huffman.txt");<NEW_LINE>@SuppressWarnings("resource")<NEW_LINE>ObjectInputStream inObject = new ObjectInput...
[]) inObject.readObject();
1,547,460
protected static FilterSpecParamForge handleBooleanLimited(ExprNode constituent, Function<String, Boolean> limitedExprExists, LinkedHashMap<String, Pair<EventType, String>> taggedEventTypes, LinkedHashMap<String, Pair<EventType, String>> arrayEventTypes, LinkedHashSet<String> allTagNamesOrdered, StreamTypeService strea...
).serdeForFilter(valueExpressionType, raw);
1,761,049
private Bson negate(Expression expression) {<NEW_LINE>if (!(expression instanceof Call)) {<NEW_LINE>return Filters.not(expression.accept(this));<NEW_LINE>}<NEW_LINE>Call notCall = (Call) expression;<NEW_LINE>Operator notOperator = notCall.operator();<NEW_LINE>if (notOperator == Operators.NOT) {<NEW_LINE>// NOT NOT a ==...
newCall(notCall, Operators.NOT_EQUAL);
634,822
final GetRecordsResult executeGetRecords(GetRecordsRequest getRecordsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRecordsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<GetRecordsRequest> request = nu...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
913,012
public CompletableFuture<VariablesResponse> variables(VariablesArguments args) {<NEW_LINE>VariablesResponse variablesResponse = new VariablesResponse();<NEW_LINE>try {<NEW_LINE>// 1. If frameId < 0, returns global variables.<NEW_LINE>// 2. If frameId >= 0, returns local variables.<NEW_LINE>// 3. If frameId is NULL, ret...
e.getMessage(), e);
514,251
private void heapHistogramAndRespond(CentralRequest request, StreamObserver<AgentResponse> responseObserver) {<NEW_LINE>HeapHistogram heapHistogram;<NEW_LINE>try {<NEW_LINE>heapHistogram = liveJvmService.heapHistogram("");<NEW_LINE>} catch (UnavailableDueToRunningInJreException e) {<NEW_LINE>logger.debug(e.getMessage()...
true)).build());
1,493,054
public void webSocketAbs(String url, MultiMap headers, WebsocketVersion version, List<String> subProtocols, Handler<AsyncResult<WebSocket>> handler) {<NEW_LINE>URI uri;<NEW_LINE>try {<NEW_LINE>uri = new URI(url);<NEW_LINE>} catch (URISyntaxException e) {<NEW_LINE>throw new IllegalArgumentException(e);<NEW_LINE>}<NEW_LI...
int port = uri.getPort();
312,130
private static byte[] unsalt(final byte[] text) {<NEW_LINE>if (text.length == 0) {<NEW_LINE>throw new DecodingException("empty input");<NEW_LINE>}<NEW_LINE>final int size = text[0];<NEW_LINE>if (size < 0) {<NEW_LINE>throw new DecodingException(String.format("Length of salt %+d is negative, something is wrong", size));<...
length - 1], sum));
858,999
private BoardCardFieldDescriptor createBoardCardFieldDescriptor(final I_WEBUI_Board_CardField cardFieldPO, final DocumentEntityDescriptor documentEntityDescriptor) {<NEW_LINE>// TODO: might be not so performant, we just need the ColumnName<NEW_LINE>final String fieldName = cardFieldPO.getAD_Column().getColumnName();<NE...
documentField.getDataBindingNotNull(SqlDocumentFieldDataBindingDescriptor.class);
1,377,618
private ClassPath[] validatePaths() {<NEW_LINE>ClassPath pmp = processorModulePath.get();<NEW_LINE>if (pmp == null) {<NEW_LINE>pmp = ClassPath.<MASK><NEW_LINE>if (pmp != null && processorModulePath.compareAndSet(null, pmp)) {<NEW_LINE>listenOnProcessorPath(pmp, this);<NEW_LINE>classLoaderCache = null;<NEW_LINE>}<NEW_LI...
getClassPath(root, JavaClassPathConstants.MODULE_PROCESSOR_PATH);
1,183,263
protected String doIt() throws Exception {<NEW_LINE>final I_AD_EventLog <MASK><NEW_LINE>final Topic topic = Topic.builder().name(eventLogRecord.getEventTopicName()).type(Type.valueOf(eventLogRecord.getEventTypeName())).build();<NEW_LINE>final IEventBus eventBus = Services.get(IEventBusFactory.class).getEventBus(topic);...
eventLogRecord = getRecord(I_AD_EventLog.class);
829,822
public void onMatch(RelOptRuleCall call) {<NEW_LINE>Join join = call.rel(0);<NEW_LINE>if (join.getJoinType() == JoinRelType.ANTI) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final RelMetadataQuery mq = call.getMetadataQuery();<NEW_LINE>RelOptPredicateList preds = mq.getPulledUpPredicates(join);<NEW_LINE>if (preds.leftInferr...
RelBuilder relBuilder = call.builder();
1,316,108
public List<AppInstance> appMetadataList(RSocketBrokerHandlerRegistry handlerFactory) {<NEW_LINE>return handlerFactory.findAll().stream().map(handler -> {<NEW_LINE>AppInstance appInstance = new AppInstance();<NEW_LINE>AppMetadata appMetadata = handler.getAppMetadata();<NEW_LINE>appInstance.setId(appMetadata.getUuid());...
setIp(appMetadata.getIp());
1,743,424
/*<NEW_LINE>* Performs a depth first search for all checkers this checker depends on.<NEW_LINE>* The depth first search ensures that the collection has the correct order the checkers need to be run in.<NEW_LINE>*<NEW_LINE>* Modifies the alreadyInitializedSubcheckerMap map by adding all recursively newly instantiated su...
immediateSubcheckers = instance.instantiateSubcheckers(alreadyInitializedSubcheckerMap);
652,648
public void expandIntoScope(NinjaScope scope, Map<NinjaScope, List<FileFragment>> rawTargets) throws InterruptedException, GenericParsingException, IOException {<NEW_LINE>scope.setRules(rules);<NEW_LINE>scope.setPools(pools);<NEW_LINE>rawTargets.put(scope, targets);<NEW_LINE>TreeMap<Long, NinjaCallable> resolvables = M...
fileParseResult.expandIntoScope(includedScope, rawTargets);
1,228,978
private static StarlarkFunction newFunction(StarlarkThread.Frame fr, Resolver.Function rfn) throws EvalException, InterruptedException {<NEW_LINE>// Evaluate default value expressions of optional parameters.<NEW_LINE>// We use MANDATORY to indicate a required parameter<NEW_LINE>// (not null, because defaults must be a ...
= new Object[nparams - i];
1,473,587
private void registerRoute(Route route) {<NEW_LINE>String path = parsePath(route.getPath());<NEW_LINE>Matcher matcher = null;<NEW_LINE>if (path != null) {<NEW_LINE>matcher = PATH_VARIABLE_PATTERN.matcher(path);<NEW_LINE>}<NEW_LINE>boolean find = false;<NEW_LINE>List<String> <MASK><NEW_LINE>while (matcher != null && mat...
uriVariableNames = new ArrayList<>();
408,220
public static byte[] compile(final String classPath, List<String> classNames, List<String> args) {<NEW_LINE>StandardJavaFileManager javaFileManager = null;<NEW_LINE>ClassFileManager classFileManager = null;<NEW_LINE>try {<NEW_LINE>javax.tools.JavaCompiler javac = ToolProvider.getSystemJavaCompiler();<NEW_LINE>javaFileM...
(".", "/") + ".java");
1,555,342
private static void shareBookmarksCategory(@NonNull Activity context, @NonNull BookmarkSharingResult result) {<NEW_LINE>switch(result.getCode()) {<NEW_LINE>case BookmarkSharingResult.SUCCESS:<NEW_LINE>String name = new File(result.getSharingPath()).getName();<NEW_LINE>shareOutside(new LocalFileShareable(context, result...
dialog_routing_system_error, R.string.bookmarks_error_message_share_general);
601,106
// private helper methods -------------------------------------------------<NEW_LINE>private synchronized void updateCredentials() {<NEW_LINE>File usersPropFile = new File(getServerDir(), "/conf/props/jmx-console-users.properties");<NEW_LINE>long lastModified = usersPropFile.lastModified();<NEW_LINE>if (lastModified ==...
BufferedInputStream(new FileInputStream(usersPropFile));
165,118
private void init_standard_header_with_overflow_button() {<NEW_LINE>// Create a Card<NEW_LINE>Card card <MASK><NEW_LINE>// Create a CardHeader<NEW_LINE>CardHeader header = new CardHeader(getActivity());<NEW_LINE>// Set the header title<NEW_LINE>header.setTitle(getString(R.string.demo_header_basetitle));<NEW_LINE>// Add...
= new Card(getActivity());
1,485,811
public Request<ListCustomVerificationEmailTemplatesRequest> marshall(ListCustomVerificationEmailTemplatesRequest listCustomVerificationEmailTemplatesRequest) {<NEW_LINE>if (listCustomVerificationEmailTemplatesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListCustomVeri...
<ListCustomVerificationEmailTemplatesRequest>(listCustomVerificationEmailTemplatesRequest, "AmazonSimpleEmailService");
448,377
public boolean onCreateOptionsMenu(Menu menu) {<NEW_LINE>MenuInflater inflater = getMenuInflater();<NEW_LINE>inflater.inflate(<MASK><NEW_LINE>SearchManager searchManager = (SearchManager) getSystemService(Context.SEARCH_SERVICE);<NEW_LINE>mSearchView = (SearchView) MenuItemCompat.getActionView(menu.findItem(R.id.menu_s...
R.menu.contact_list_menu, menu);
902,755
public void commitIssue(@NonNull String title, @NonNull String comment) {<NEW_LINE>HttpObserver<Issue> httpObserver = new HttpObserver<Issue>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onError(Throwable error) {<NEW_LINE>mView.showErrorToast(getErrorTip(error));<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LI...
, IssueRequestModel.generateFromIssue(issue));
580,571
public void updateContainerInstances(String namespace, String taskId, int instances) throws SaturnJobConsoleException {<NEW_LINE>CuratorRepository.CuratorFrameworkOp curatorFrameworkOp = registryCenterService.getCuratorFrameworkOp(namespace);<NEW_LINE>String dcosTaskIdNodePath = ContainerNodePath.getDcosTaskIdNodePath(...
parseObject(taskConfigJson, ContainerConfig.class);
1,540,591
private NodeEntryImpl createFrameworkNodeNew() {<NEW_LINE>NodeEntryImpl node = new NodeEntryImpl(null != hostname ? hostname : framework.getFrameworkNodeHostname(<MASK><NEW_LINE>node.setDescription(description != null ? description : "Rundeck server node");<NEW_LINE>node.setOsArch(osArch != null ? osArch : System.getPr...
), framework.getFrameworkNodeName());
209,971
private static void handleVorbisCommentMetadata(MusicManager manager, Metadata metadata) {<NEW_LINE>String title = null, url = null, artist = null, album = null<MASK><NEW_LINE>for (int i = 0; i < metadata.length(); i++) {<NEW_LINE>Metadata.Entry entry = metadata.get(i);<NEW_LINE>if (!(entry instanceof VorbisComment))<N...
, date = null, genre = null;
566,419
public Object apply(@Nonnull Context ctx) {<NEW_LINE>MetricRegistry registry = ctx.require(MetricRegistry.class);<NEW_LINE>Map<String, Metric> allMetrics = registry.getMetrics();<NEW_LINE>if (allMetrics.isEmpty()) {<NEW_LINE>ctx.setResponseCode(StatusCode.NOT_IMPLEMENTED);<NEW_LINE>ctx.setResponseHeader(MetricsModule.C...
rateUnitLabel = calculateRateUnit(unit, "ops");
763,377
public static void encode(ClientMessage clientMessage, com.hazelcast.cache.impl.CacheEventData cacheEventData) {<NEW_LINE>clientMessage.add(BEGIN_FRAME.copy());<NEW_LINE>ClientMessage.Frame initialFrame = new ClientMessage.Frame(new byte[INITIAL_FRAME_SIZE]);<NEW_LINE>encodeInt(initialFrame.content, CACHE_EVENT_TYPE_FI...
getDataOldValue(), DataCodec::encode);
1,256,720
private void actionPerformedUpdates(Window _parent) {<NEW_LINE>boolean tempDirty = isDirty();<NEW_LINE>if (paneNaming.isDirty()) {<NEW_LINE>String filename = paneNaming.getAbsolutePath();<NEW_LINE>if (filename.contains("%")) {<NEW_LINE>Debug.error("%s\n%% in filename replaced with _", filename);<NEW_LINE>filename = fil...
String oldFilename = _imgBtn.getFilename();
1,337,541
final ListConnectorDefinitionVersionsResult executeListConnectorDefinitionVersions(ListConnectorDefinitionVersionsRequest listConnectorDefinitionVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listConnectorDefinitionVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
false), new ListConnectorDefinitionVersionsResultJsonUnmarshaller());
990,183
public static List<List<GenomeLoc>> splitLocusIntervals(final List<GenomeLoc> locs, final int numParts) {<NEW_LINE>Utils.nonNull(locs, "locs is null");<NEW_LINE>if (numParts < 0) {<NEW_LINE>throw new CommandLineException.BadArgumentValue("scatterParts", String.format("Cannot scatter %d locs into %d parts.", locs.size()...
new ArrayList<>(locsLinkedList));
841,619
public final WebuiHUTransformCommandResult action_CreateCUs_With_SerialNumbers(final HUEditorRow.HUEditorRowHierarchy huEditorRowHierarchy, final List<String> availableSerialNumbers) {<NEW_LINE>final HUEditorRow selectedCuRow = huEditorRowHierarchy.getCuRow();<NEW_LINE>final int qtyCU = selectedCuRow.getQtyCU().intValu...
selectedCuRow.getHuId(), serialNo);
1,021,756
public void onServiceConnected(ComponentName component, IBinder service) {<NEW_LINE>if (component.equals(new ComponentName(FileDisplayActivity.this, FileDownloader.class))) {<NEW_LINE>Log_OC.d(TAG, "Download service connected");<NEW_LINE>mDownloaderBinder = (FileDownloaderBinder) service;<NEW_LINE>if (mWaitingToPreview...
Log_OC.d(TAG, "Upload service connected");
565,864
public AbortTransactionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AbortTransactionResult abortTransactionResult = new AbortTransactionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken tok...
String currentParentElement = context.getCurrentParentElement();
409,792
public void render() {<NEW_LINE>final String md = "" + "* one\n" + "* two\n" + "* three\n" + "* * four\n" + " * five\n\n" + "- [ ] and task?\n" + "- [x] it is";<NEW_LINE>final Markwon markwon = Markwon.builder(context).usePlugin(TaskListPlugin.create(context)).usePlugin(new AbstractMarkwonPlugin() {<NEW_LINE><NEW_LINE...
markwon.setMarkdown(textView, md);
1,392,251
public WebResponse performIDPLogin(String testcase, WebConversation wc, WebResponse response, TestSettings settings, List<validationData> expectations) throws Exception {<NEW_LINE>String thisMethod = "performIDPLogin";<NEW_LINE>msgUtils.printMethodName(thisMethod);<NEW_LINE>try {<NEW_LINE>// Read response from HTTP POS...
printResponseParts(response, thisMethod, "Response from login: ");
1,784,380
public static void main(String[] args) throws ReflectiveOperationException {<NEW_LINE>String userName = Utils.getJvmUser();<NEW_LINE>String hostName = Utils.getComputerName();<NEW_LINE>// val allArgs = args ++<NEW_LINE>System.setProperty("hostName", hostName);<NEW_LINE><MASK><NEW_LINE>String serviceName = System.getPro...
System.setProperty("userName", userName);
245,918
static WritableMap extract(String path) throws IOException {<NEW_LINE>WritableMap exifData = new WritableNativeMap();<NEW_LINE>List<MASK><NEW_LINE>if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {<NEW_LINE>attributes.addAll(getLevel23Attributes());<NEW_LINE>}<NEW_LINE>ExifInterface exif = new ExifInterface(path);<N...
<String> attributes = getBasicAttributes();
548,106
protected void configureRabbitConnectionFactory(RabbitConnectionFactoryBean factoryBean) {<NEW_LINE>// overrides all preceding items when set<NEW_LINE>JavaUtils.INSTANCE.acceptIfNotNull(this.host, factoryBean::setHost).acceptIfNotNull(this.port, factoryBean::setPort).acceptIfNotNull(this.username, factoryBean::setUsern...
factoryBean.setKeyStorePassphrase(this.keyStorePassphrase);
36,136
public Credentials unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Credentials credentials = new Credentials();<NEW_LINE>reader.beginObject();<...
().unmarshall(context));
1,524,559
public MLMethod create(final String architecture, final int input, final int output) {<NEW_LINE>if (input <= 0) {<NEW_LINE>throw new EncogError("Must have at least one input for feedforward.");<NEW_LINE>}<NEW_LINE>if (output <= 0) {<NEW_LINE>throw new EncogError("Must have at least one output for feedforward.");<NEW_LI...
boolean bias = layer.isBias();
224,434
protected void asTable(List<PluginWrapper> list) {<NEW_LINE>String[] headers;<NEW_LINE>if (verbose) {<NEW_LINE>String[] h = { "#", "Id", "Description", "Version", "Requires", "State", "Path" };<NEW_LINE>headers = h;<NEW_LINE>} else {<NEW_LINE>String[] h = { "#", <MASK><NEW_LINE>headers = h;<NEW_LINE>}<NEW_LINE>Object[]...
"Id", "Version", "State", "Path" };
1,031,936
public StandardSyncOutput replicate(final JobRunConfig jobRunConfig, final IntegrationLauncherConfig sourceLauncherConfig, final IntegrationLauncherConfig destinationLauncherConfig, final StandardSyncInput syncInput) {<NEW_LINE>return TemporalUtils.withBackgroundHeartbeat(() -> {<NEW_LINE>final var fullSourceConfig = s...
LOGGER.info("sync summary: {}", standardSyncOutput);
932,335
public Object apply(ActionContext ctx, Object caller, Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndMaxLengthAndAllElementsNotNull(sources, 2, 3);<NEW_LINE>final String typeName = sources[0].toString();<NEW_LINE>final String enumPropertyName = sources[1].toString();<NEW...
add(constant.toString());
1,330,001
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String routeTableName, String routeName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be ...
error(new IllegalArgumentException("Parameter routeName is required and cannot be null."));
925,506
static JLabel addMessageRow(JPanel panel, GridBagLayout gridbagLayout, GridBagConstraints constraints, Insets insets, String messageString, int gridx) {<NEW_LINE>// create label<NEW_LINE>javax.swing.JLabel messageLabel = new javax.swing.JLabel();<NEW_LINE>constraints.gridy++;<NEW_LINE>constraints.gridx = gridx < MAX_CO...
gridbagLayout.setConstraints(messageLabel, constraints);
1,205,574
public void render(MenuViewState menuViewState) {<NEW_LINE>Timber.d("Render %s", menuViewState);<NEW_LINE>TransitionManager.beginDelayedTransition(this);<NEW_LINE>if (menuViewState instanceof MenuViewState.LoadingState) {<NEW_LINE><MASK><NEW_LINE>recyclerView.setVisibility(View.GONE);<NEW_LINE>errorView.setVisibility(V...
loadingView.setVisibility(View.VISIBLE);
1,180,882
private void onManageClick() {<NEW_LINE><MASK><NEW_LINE>final PropertiesTable propTable;<NEW_LINE>propTable = new PropertiesTable(panel.labelForTable, PropertiesTable.PROPERTIES_COLUMNS, new String[] { PropertiesTableModel.COLUMN_NAME_VALUE });<NEW_LINE>panel.setPropertiesTable(propTable);<NEW_LINE>JComponent component...
final PropertiesPanel panel = new PropertiesPanel();
284,790
public ValueHolder<V> replace(K key, V value) throws StoreAccessException {<NEW_LINE>checkKey(key);<NEW_LINE>checkValue(value);<NEW_LINE>replaceObserver.begin();<NEW_LINE>AtomicReference<OnHeapValueHolder<V>> returnValue = new AtomicReference<>(null);<NEW_LINE>StoreEventSink<K, V> eventSink = storeEventDispatcher.event...
storeEventDispatcher.releaseEventSinkAfterFailure(eventSink, re);
273,324
public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>Pack p = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", objHash);<NEW_LINE>param.put("key", key);<NEW_LINE>p = tcp.getSingle(RequestCmd.OBJECT_SOCKET, param);<NEW_LINE>} catch (Exception e) {...
(serviceLv.getInt(i));
1,008,496
// Initialize FX runtime when the JFXPanel instance is constructed<NEW_LINE>private synchronized static void initFx() {<NEW_LINE>// Note that calling PlatformImpl.startup more than once is OK<NEW_LINE>if (fxInitialized) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EventQueue eventQueue = AccessController.doPrivileged((Privil...
("FX initialization failed", th[0]);
912,583
private FinalizationRequest retrieveFinalizationRequest() {<NEW_LINE>FinalizationRequest request = null;<NEW_LINE>synchronized (lock) {<NEW_LINE>if (!myFinalizationQueue.isEmpty()) {<NEW_LINE>final PoolPageKey key;<NEW_LINE>if (lastFinalizedKey == null) {<NEW_LINE>key = myFinalizationQueue.firstKey();<NEW_LINE>} else {...
() : tail.firstKey();
358,550
// The ECMQV Primitive as described in SEC-1, 3.4<NEW_LINE>private ECPoint calculateMqvAgreement(ECDomainParameters parameters, ECPrivateKeyParameters d1U, ECPrivateKeyParameters d2U, ECPublicKeyParameters Q2U, ECPublicKeyParameters Q1V, ECPublicKeyParameters Q2V) {<NEW_LINE>BigInteger n = parameters.getN();<NEW_LINE>i...
(n), q2v, hs);
19,497
public void offer(SendLogRequest log) {<NEW_LINE>// if nodeLogQueues.isEmpty(), then nothing to do.<NEW_LINE>// do serialization here to avoid taking LogManager for too long<NEW_LINE>if (!nodeLogQueues.isEmpty()) {<NEW_LINE>log.serializedLogFuture = serializationService.submit(() -> {<NEW_LINE>ByteBuffer byteBuffer = l...
.getLog().serialize();
1,284,810
public void run() throws IOException {<NEW_LINE>if (messages == null || messages.size() == 0) {<NEW_LINE>throw new RuntimeException("Need to specify a message");<NEW_LINE>}<NEW_LINE>getFileTypeFromFileName();<NEW_LINE>System.out.println(" File Name : " + fileName);<NEW_LINE>if (fileType.equals("pdf")) {<NEW_LINE>O...
qr.message.length());
370,651
public static BodyDTO createDTO(Body<?> body) {<NEW_LINE>BodyDTO result = null;<NEW_LINE>if (body instanceof BinaryBody) {<NEW_LINE>BinaryBody binaryBody = (BinaryBody) body;<NEW_LINE>result = new BinaryBodyDTO(binaryBody, binaryBody.getNot());<NEW_LINE>} else if (body instanceof JsonBody) {<NEW_LINE>JsonBody jsonBody ...
regexBody, regexBody.getNot());
1,393,574
private static void FindBicyclesOfSpecificTypeWithMultipleThreads(DynamoDBMapper mapper, int numberOfThreads, String bicycleType) throws Exception {<NEW_LINE>System.out.println("FindBicyclesOfSpecificTypeWithMultipleThreads: Scan ProductCatalog With Multiple Threads.");<NEW_LINE>Map<String, AttributeValue> eav = new Ha...
("ProductCategory = :val1 and BicycleType = :val2").withExpressionAttributeValues(eav);
1,821,023
Configuration toConfigurationNode(ConvertedConfiguration awsConfiguration, Region region, Warnings warnings) {<NEW_LINE>Configuration cfgNode = Utils.newAwsConfiguration(_id, "aws", DeviceModel.AWS_VPC_ENDPOINT_GATEWAY);<NEW_LINE>cfgNode.getVendorFamily().getAws().setRegion(region.getName());<NEW_LINE>cfgNode.getVendor...
getServicePrefixes(_serviceName, region, warnings);
516,489
public static byte[] toImage(String fileName, byte[] bytes, String stamp, Integer page) throws Exception {<NEW_LINE>Config.collect().validate();<NEW_LINE>URL serverUrl = new URL(Config.collect().url() + "/o2_collect_assemble/jaxrs/document/to/image");<NEW_LINE>HttpURLConnection connection = (HttpURLConnection) serverUr...
writer.write(twoHyphens + boundary);
1,248,533
public void updatePetWithForm(Long petId, String name, String status, ApiClient.AuthInfo authInfo, Handler<AsyncResult<Void>> resultHandler) {<NEW_LINE>Object localVarBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE>resultHandler.handle(ApiException.fail(400, ...
MultiMap localVarHeaderParams = MultiMap.caseInsensitiveMultiMap();
598,415
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>painelSelecionadorPlugins = new javax.swing.JPanel();<NEW_LINE>botaoSelecionarTodos = new com.alee.laf.button.WebButton();<NEW_LINE>botaoInstalarPlugins = new com.alee.laf.button.W...
java.awt.BorderLayout.CENTER);
1,392,781
protected IndexTreePath<E> createNewRoot(final N oldRoot, final N newNode) {<NEW_LINE>N root = createNewDirectoryNode();<NEW_LINE>writeNode(root);<NEW_LINE>// switch the ids<NEW_LINE>oldRoot.setPageID(root.getPageID());<NEW_LINE>if (!oldRoot.isLeaf()) {<NEW_LINE>for (int i = 0; i < oldRoot.getNumEntries(); i++) {<NEW_L...
, getRootEntry(), -1);
1,597,591
private void innerDeleteLog(int sizeToReserve) {<NEW_LINE>long removeSize = (long) committedEntryManager.getTotalSize() - sizeToReserve;<NEW_LINE>if (removeSize <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long compactIndex = Math.min(committedEntryManager.getDummyIndex() + removeSize, maxHaveAppliedCommitIndex - 1);<N...
getStableEntryManager().removeCompactedEntries(compactIndex);