idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
467,708
synchronized static Map<String, Throwable> loadAllLibraries() {<NEW_LINE>final String[] toLoad = { "avutil", "swresample", "swscale", "avcodec", "avformat", "avfilter", "avdevice", "faad", "ft2", "png", "jpegdroid", "mad", "openjpeg", "z", "gpac", "mp4box" };<NEW_LINE>HashMap<String, Throwable> exceptions = new HashMap...
e.getLocalizedMessage(), e);
569,774
private boolean doPost(final UUID tenantId, final String url, final String body, final NotificationJson notification, final int timeoutSec, final int attemptRetryNumber) {<NEW_LINE>log.info("Sending push notification url='{}', body='{}', attemptRetryNumber='{}'", url, body, attemptRetryNumber);<NEW_LINE>final BoundRequ...
"statusCode=" + response.getStatusCode());
1,575,186
private boolean isRetryMsgTimeout(DownStreamMsgContext downStreamMsgContext) {<NEW_LINE>boolean flag = false;<NEW_LINE>String ttlStr = (String) downStreamMsgContext.event.getExtension(EventMeshConstants.PROPERTY_MESSAGE_TTL);<NEW_LINE>long ttl = StringUtils.isNumeric(ttlStr) ? Long.parseLong(ttlStr) : EventMeshConstant...
.getMessageBizSeq(downStreamMsgContext.event));
1,554,058
// getC_SalesRegion_ID<NEW_LINE>@Override<NEW_LINE>protected boolean beforeSave(final boolean newRecord) {<NEW_LINE>if (newRecord) {<NEW_LINE>log.debug(toString());<NEW_LINE>//<NEW_LINE>getAD_Org_ID();<NEW_LINE>getC_SalesRegion_ID();<NEW_LINE>// Set Default Account Info<NEW_LINE>if (getM_Product_ID() == 0) {<NEW_LINE>s...
setC_LocFrom_ID(m_acct.getC_LocFrom_ID());
514,837
public Date parseDate(String d) {<NEW_LINE>if (d != null && d.length() > 0) {<NEW_LINE>if (d.contains("T") && d.contains("Z")) {<NEW_LINE>if (d.length() == 27)<NEW_LINE>d = d.substring(0, 23) + 'Z';<NEW_LINE>String format = "yyyy-MM-dd'T'HH:mm:ss.SSS";<NEW_LINE><MASK><NEW_LINE>sdf.setTimeZone(TimeZone.getTimeZone("GMT"...
SimpleDateFormat sdf = new SimpleDateFormat(format);
972,707
final CreateJobResult executeCreateJob(CreateJobRequest createJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
invoke(request, responseHandler, executionContext);
1,619,514
private void updateWhenTextView(View view) {<NEW_LINE>Context context = view.getContext();<NEW_LINE>// Set the date and repeats (if any)<NEW_LINE>String localTimezone = Utils.getTimeZone(mActivity, mTZUpdater);<NEW_LINE>String displayedDatetime = Utils.getDisplayedDatetime(mStartMillis, mEndMillis, System.currentTimeMi...
length(), Spannable.SPAN_INCLUSIVE_INCLUSIVE);
1,803,147
// Implement JSCoder.decode<NEW_LINE>public Object decode(byte[] frame, int offset, int indirect, JMFMessageData msg) throws JMFMessageCorruptionException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>JmfTr.entry(this, tc, "decode", new Object[] { frame, offset, indirect, msg });<...
frame, offset, element, 0);
573,075
public <V> VertexProperty<V> property(VertexProperty.Cardinality cardinality, String key, V value, Object... objects) {<NEW_LINE>if (objects.length != 0 && objects[0].equals(T.id)) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// TODO: extra props: objects<NEW_LINE>if (objects.length != 0) {<NEW_LINE>throw VertexProperty.Excep...
throw VertexProperty.Exceptions.userSuppliedIdsNotSupported();
844,728
@ResponseBody<NEW_LINE>@ApiImplicitParams({ @ApiImplicitParam(name = "store", dataType = "String", defaultValue = "DEFAULT"), @ApiImplicitParam(name = "lang", dataType = "String", defaultValue = "en") })<NEW_LINE>public PersistableProductReview update(@PathVariable final Long id, @PathVariable final Long reviewId, @Val...
404, "Product review with id " + reviewId + " does not exist");
1,138,547
public int onStartCommand(@Nullable Intent intent, int flags, int startId) {<NEW_LINE>int startCommand = super.onStartCommand(intent, flags, startId);<NEW_LINE>if (intent != null) {<NEW_LINE>int id = intent.getIntExtra(getPackageName() + ".ID", -1);<NEW_LINE>String mode = intent.getStringExtra(getPackageName() + ".MODE...
setStatus(GalleryDownloaderV2.Status.PAUSED);
827,886
public void flushToLocalPropertiesFile() {<NEW_LINE>LOCK.writeLock().lock();<NEW_LINE>// TODO: flush to local file as properties file.<NEW_LINE>try {<NEW_LINE>String agentConfParent = get(AgentConstants.AGENT_CONF_PARENT, AgentConstants.DEFAULT_AGENT_CONF_PARENT);<NEW_LINE>File sourceFile = new File(agentConfParent, DE...
boolean result = tmpFile.delete();
371,461
public static void deleteConfigCascade(HandlerContext handlerCtx) {<NEW_LINE>List<Map> selectedRows = (List<Map>) handlerCtx.getInputValue("selectedRows");<NEW_LINE>String id = (String) handlerCtx.getInputValue("id");<NEW_LINE>String prefix = (String) handlerCtx.getInputValue("endpoint");<NEW_LINE>Map<String, Object> p...
), "DELETE", "null" }));
32,135
public static void vertical(BorderIndex1D border, WlCoef_F32 coefficients, GrayF32 input, GrayF32 output) {<NEW_LINE>final int offsetA = coefficients.offsetScaling;<NEW_LINE>final int offsetB = coefficients.offsetWavelet;<NEW_LINE>final float[] alpha = coefficients.scaling;<NEW_LINE>final <MASK><NEW_LINE>border.setLeng...
float[] beta = coefficients.wavelet;
127,629
private RoaringBitmap compute(long threshold, boolean upper, RoaringBitmap context) {<NEW_LINE>if (context.isEmpty()) {<NEW_LINE>return new RoaringBitmap();<NEW_LINE>}<NEW_LINE>if (Long.numberOfLeadingZeros(threshold) < Long.numberOfLeadingZeros(mask)) {<NEW_LINE>return upper ? RoaringBitmap.bitmapOfRange(0, max) : new...
keys[contextArray.size - 1];
1,417,049
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi....
copier.copy(wi, file);
7,176
private static double parseTime(String str, MetricType type) {<NEW_LINE>String timePattern = "|Time";<NEW_LINE>int start = str.indexOf(timePattern);<NEW_LINE>if (start < 0) {<NEW_LINE>return Double.NaN;<NEW_LINE>}<NEW_LINE>start += timePattern.length();<NEW_LINE>int openBraceIndex = str.indexOf('(', start);<NEW_LINE>if...
, end).trim());
1,589,145
final AcknowledgeThirdPartyJobResult executeAcknowledgeThirdPartyJob(AcknowledgeThirdPartyJobRequest acknowledgeThirdPartyJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(acknowledgeThirdPartyJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
(super.beforeMarshalling(acknowledgeThirdPartyJobRequest));
109,203
public synchronized void publish(final LogRecord record) {<NEW_LINE>final Controller controller = Controller.getCurrentController();<NEW_LINE>if (controller == null) {<NEW_LINE>// ReportGenerator is not available during controller initialization<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final ViewController viewController =...
viewController.addStatusComponent("internal_error", logButton);
1,374,362
final DetachLoadBalancerFromSubnetsResult executeDetachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest detachLoadBalancerFromSubnetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detachLoadBalancerFromSubnetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,757,979
public void onSheetClick(int index) {<NEW_LINE>if (index == 0) {<NEW_LINE>popupInputCard.setContent(mGroupNameView.getText().toString());<NEW_LINE>popupInputCard.setTitle(modifyGroupName);<NEW_LINE>popupInputCard.setOnPositive((result -> {<NEW_LINE>mPresenter.modifyGroupName(result);<NEW_LINE>if (!TextUtils.isEmpty(res...
(R.string.group_notice_empty_tip));
444,847
public static QuerySecCheckLatestSummaryResponse unmarshall(QuerySecCheckLatestSummaryResponse querySecCheckLatestSummaryResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySecCheckLatestSummaryResponse.setRequestId(_ctx.stringValue("QuerySecCheckLatestSummaryResponse.RequestId"));<NEW_LINE>querySecCheckLatestSummaryRe...
("QuerySecCheckLatestSummaryResponse.Data.List[" + i + "].ConfType"));
1,614,089
protected JComponent createCenterPanel() {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>JLabel questLabel = new JLabel("Delete already unshelved changelists: \n");<NEW_LINE>String panelConstraints = "flowx, ins 0";<NEW_LINE>final MigLayout migLayout = new MigLayout(panelConstraints);<NEW_LINE><MASK>...
JPanel buttonsPanel = new JPanel(migLayout);
1,496,882
protected void doAction() {<NEW_LINE>try {<NEW_LINE>KeyStoreHistory history = kseFrame.getActiveKeyStoreHistory();<NEW_LINE>KeyStoreState currentState = history.getCurrentState();<NEW_LINE>String alias = kseFrame.getSelectedEntryAlias();<NEW_LINE>Password password = getEntryPassword(alias, currentState);<NEW_LINE>if (p...
= new DViewJwt(frame, encodedJWT);
626,388
public void initializeFrom(ILaunchConfiguration config) {<NEW_LINE>super.initializeFrom(config);<NEW_LINE>try {<NEW_LINE>String v = config.getAttribute(IOSSimulatorLaunchConfigurationDelegate.ATTR_IOS_SIM_DEVICE_TYPE, (String) null);<NEW_LINE>DeviceType type = DeviceType.getDeviceType(v);<NEW_LINE>if (type == null) {<N...
.DEFAULT_ARCH.toString()));
358,194
public Object reversed(VirtualFrame frame, Object cls, Object sequence, @Cached GetClassNode getClassNode, @Cached("create(Reversed)") LookupSpecialMethodSlotNode lookupReversed, @Cached CallUnaryMethodNode callReversed, @Cached("create(Len)") LookupAndCallUnaryNode lookupLen, @Cached("create(GetItem)") LookupSpecialMe...
execute(frame, sequenceKlass, sequence);
1,771,802
final GetResourcePolicyResult executeGetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getResourcePolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,406,228
private static Subgraph computeConnectedSubgraph(Map<Vertex, ArrayList<Vertex>> neighborsForVertex, Vertex startVertex, Map<Vertex, Subgraph> anchors) {<NEW_LINE>Subgraph subgraph = new Subgraph();<NEW_LINE>Queue<Vertex> q = new LinkedList<>();<NEW_LINE>Subgraph anchor = null;<NEW_LINE>if (anchors != null) {<NEW_LINE>/...
Vertex vertex = q.poll();
146,552
public StringBuilder append(long value, int minLength, char prefix) {<NEW_LINE>if (value == Long.MIN_VALUE) {<NEW_LINE>append0("-9223372036854775808");<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (value < 0L) {<NEW_LINE>append0('-');<NEW_LINE>value = -value;<NEW_LINE>}<NEW_LINE>if (minLength > 1) {<NEW_LINE>for (int j...
; --j) append(prefix);
421,932
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent permanent = source.getSourcePermanentIfItStillExists(game);<NEW_LINE>if (player == null || permanent == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int counterCount = permanent....
).forEach(cards::add);
1,379,117
static URL findJavadocForNetBeansOrgModules(final ModuleEntry entry, File destDir) {<NEW_LINE>File nbOrg = null;<NEW_LINE>if (destDir.getParent() != null) {<NEW_LINE>nbOrg = destDir.getParentFile().getParentFile();<NEW_LINE>}<NEW_LINE>if (nbOrg == null) {<NEW_LINE>throw new // NOI18N<NEW_LINE>IllegalArgumentException(/...
.urlForArchiveOrDir(javadocs[i]);
1,477,234
public void collectWin(Map<String, Map<String, String>> resultMap) {<NEW_LINE>try {<NEW_LINE>String output = RuntimeHelper.exec("wmic path Win32_PerfFormattedData_PerfDisk_LogicalDisk get DiskReadBytesPerSec,DiskWriteBytesPerSec,Name");<NEW_LINE>if (StringHelper.isEmpty(output)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>S...
strs = output.split("\n");
434,727
public Memory findFiles(final Environment env, Memory... args) {<NEW_LINE>File[] result;<NEW_LINE>if (args[0].isNull()) {<NEW_LINE>result = file.listFiles();<NEW_LINE>} else {<NEW_LINE>final Invoker invoker = Invoker.valueOf(env<MASK><NEW_LINE>if (invoker == null) {<NEW_LINE>exception(env, "Invalid filter value, must b...
, null, args[0]);
1,599,329
public static DescribeDnsCacheDomainsResponse unmarshall(DescribeDnsCacheDomainsResponse describeDnsCacheDomainsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDnsCacheDomainsResponse.setRequestId(_ctx.stringValue("DescribeDnsCacheDomainsResponse.RequestId"));<NEW_LINE>describeDnsCacheDomainsResponse.setTotalCou...
= new ArrayList<Domain>();
835,282
public void marshall(CreateModelRequest createModelRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createModelRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createModelRequest.getModelNam...
createModelRequest.getOffCondition(), OFFCONDITION_BINDING);
1,689,907
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> <MASK><NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<Wo> wos = emc.fetchAll(Query.class, Wo.c...
result = new ActionResult<>();
1,003,728
final GetFunctionResult executeGetFunction(GetFunctionRequest getFunctionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFunctionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,656,461
public int delete(final Uri uri, final String selection, final String[] selectionArgs, final Integer knownSize) {<NEW_LINE>final int <MASK><NEW_LINE>final SQLiteDatabase db = databaseHelper.getWritableDatabase();<NEW_LINE>int rowsDeleted = 0;<NEW_LINE>switch(uriType) {<NEW_LINE>case EVENTS:<NEW_LINE>rowsDeleted = db.de...
uriType = uriMatcher.match(uri);
479,158
public void start(Stage stage) {<NEW_LINE>FlowPane main = new FlowPane();<NEW_LINE>main.setVgap(20);<NEW_LINE>main.setHgap(20);<NEW_LINE>DatePicker datePicker = new DatePicker();<NEW_LINE>main.getChildren().add(datePicker);<NEW_LINE>JFXDatePicker datePickerFX = new JFXDatePicker();<NEW_LINE>main.getChildren().add(dateP...
> stylesheets = scene.getStylesheets();
505,075
public int compareImportant(Rectangle collisionToCheck, Rectangle currentMostImportant) {<NEW_LINE>// return: <0 if important, 0 if the same, >0 if not important<NEW_LINE>if (!intersectsZero(collisionToCheck))<NEW_LINE>return Integer.MAX_VALUE;<NEW_LINE>if (currentMostImportant == null)<NEW_LINE>return Integer.MIN_VALU...
return collisionToCheck.x - currentMostImportant.x;
607,969
private PAGImage makePAGImage(Context context, String filePath) {<NEW_LINE>if (eglContext == null || !EGL14.eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>AssetManager assetManager = context.getAssets();<NEW_LINE>InputStream stream;<NEW_LINE>Bitmap bitmap = n...
), bitmap.getHeight());
360,044
public void removeNonLeafEntry(final int entryIndex, final byte[] key, final int prevChild) {<NEW_LINE>if (isLeaf()) {<NEW_LINE>throw new IllegalStateException("This remove method is applied to non-leaf buckets only.");<NEW_LINE>}<NEW_LINE>final int entryPosition = getIntValue(POSITIONS_ARRAY_OFFSET + entryIndex * OInt...
- 1) * OIntegerSerializer.INT_SIZE);
1,189,542
static OperationResult handleInputCmd(String cmd, IoTDBConnection connection) {<NEW_LINE>lastProcessStatus = CODE_OK;<NEW_LINE>String specialCmd = cmd.toLowerCase().trim();<NEW_LINE>if (QUIT_COMMAND.equals(specialCmd) || EXIT_COMMAND.equals(specialCmd)) {<NEW_LINE>return OperationResult.STOP_OPER;<NEW_LINE>}<NEW_LINE>i...
importCmd(specialCmd, cmd, connection);
731,496
protected void write(FileAccessor fa, DirectByteBuffer buffer, long position) throws FMFileManagerException {<NEW_LINE>int <MASK><NEW_LINE>try {<NEW_LINE>int len = original_limit - buffer.position(SS);<NEW_LINE>// System.out.println( "compact: write - " + position + "/" + len );<NEW_LINE>// deal with any write access t...
original_limit = buffer.limit(SS);
958,136
final DeleteEventsConfigurationResult executeDeleteEventsConfiguration(DeleteEventsConfigurationRequest deleteEventsConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEventsConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,389,212
public BeanDefinition parse(Element elt, ParserContext parserContext) {<NEW_LINE>RuntimeBeanReference contextSource = LdapUserServiceBeanDefinitionParser.parseServerReference(elt, parserContext);<NEW_LINE>BeanDefinition searchBean = LdapUserServiceBeanDefinitionParser.parseSearchBean(elt, parserContext);<NEW_LINE>Strin...
userDnPattern = elt.getAttribute(ATT_USER_DN_PATTERN);
996,176
public Boolean visitBinarySentence(ComplexSentence bs, Boolean arg) {<NEW_LINE>Boolean firstValue = (Boolean) bs.getSimplerSentence(0).accept(this, null);<NEW_LINE>Boolean secondValue = (Boolean) bs.getSimplerSentence(1).accept(this, null);<NEW_LINE>boolean bothValuesKnown = firstValue != null && secondValue != null;<N...
Connective connective = bs.getConnective();
1,299,782
static DataObject createDuplicateFromNode(Node n) {<NEW_LINE>DataObject source = getDOFromNode(n);<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>DataObject target = source.copy(source.getFolder());<NEW_LINE>FileObject srcFo = source.getPrimaryFile();<NEW_LINE>FileObject targetFo = target.getPrimaryFile();<NEW_LINE>setTemplat...
Node parent = n.getParentNode();
394,397
public void openLoggerControlDialog() {<NEW_LINE>Map<String, Level> loggersMap = new HashMap<>();<NEW_LINE>Map<String, String> loggersLevels = jmxRemoteLoggingAPI.getLoggersLevels(getSelectedConnection());<NEW_LINE>for (Map.Entry<String, String> log : loggersLevels.entrySet()) {<NEW_LINE>loggersMap.put(log.getKey(), Lo...
loggerName, newLogLevel.toString());
6,899
public void startElement(final StartElement element) {<NEW_LINE>final String tagName = element<MASK><NEW_LINE>current = new Element(current, tagName);<NEW_LINE>final Map<String, Object> typeHandler = (Map) configuration.get(current.getPath());<NEW_LINE>if (typeHandler != null) {<NEW_LINE>final Map<String, Object> prope...
.getName().toString();
297,701
public void paintBorder(Component component, Graphics g, int x, int y, int w, int h) {<NEW_LINE>MapViewPane mapViewPane = (MapViewPane) component.getParent();<NEW_LINE>final Color mapViewBackground = mapViewPane.getMapViewBackground();<NEW_LINE>final Color invertedColor = complementaryColor(mapViewBackground);<NEW_LINE...
= new Rectangle(size, size);
293,477
void updateRoleSystemMetaFields(ObjectStoreConnection con, Role updatedRole, Role originalRole, final String attribute, RoleSystemMeta meta, final String caller) {<NEW_LINE>// system attributes we'll only set if they're available<NEW_LINE>// in the given object<NEW_LINE>if (ZMSConsts.SYSTEM_META_AUDIT_ENABLED.equals(at...
requestError("role has invalid group member: " + memberName, caller);
1,824,374
public static void main(String[] args) throws IOException {<NEW_LINE>String f = Avc1ToAvc3Example.class.getProtectionDomain().getCodeSource().getLocation().getFile() + "/1365070268951.mp4";<NEW_LINE>Movie m = MovieCreator.build(new FileInputStream(f).getChannel(), new FileRandomAccessSourceImpl(new RandomAccessFile(f, ...
addTrack(new Avc1ToAvc3TrackImpl(track));
496,127
final EnableProactiveEngagementResult executeEnableProactiveEngagement(EnableProactiveEngagementRequest enableProactiveEngagementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableProactiveEngagementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,336,478
protected void installFromCache(BundleContext bundleContext, String addonId) throws MarketplaceHandlerException {<NEW_LINE>Path addonPath = getAddonCacheDirectory(addonId);<NEW_LINE>if (Files.isDirectory(addonPath)) {<NEW_LINE>try {<NEW_LINE>List<Path> bundleFiles = Files.list(addonPath).collect(Collectors.toList());<N...
MarketplaceHandlerException("The local cache folder doesn't contain a single file: " + addonPath, null);
702,235
public void build(LiteralArgumentBuilder<CommandSource> builder) {<NEW_LINE>builder.executes(context -> {<NEW_LINE>// Modules<NEW_LINE>List<Module> modules = Modules.get().getAll().stream().filter(module -> module.keybind.isSet()).collect(Collectors.toList());<NEW_LINE>ChatUtils.info("--- Bound Modules ((highlight)%d(d...
().withHoverEvent(hoverEvent));
748,963
public static ListProjectResponse unmarshall(ListProjectResponse listProjectResponse, UnmarshallerContext _ctx) {<NEW_LINE>listProjectResponse.setRequestId(_ctx.stringValue("ListProjectResponse.RequestId"));<NEW_LINE>listProjectResponse.setPageIndex(_ctx.integerValue("ListProjectResponse.PageIndex"));<NEW_LINE>listProj...
("ListProjectResponse.Projects[" + i + "].ClusterId"));
1,433,014
public boolean isRequiresOtpConfig() throws PwmUnrecoverableException {<NEW_LINE>LOGGER.trace(sessionLabel, () -> "checkOtp: beginning process to check if user OTP setup is required");<NEW_LINE>SetupOtpProfile setupOtpProfile = null;<NEW_LINE>final Map<ProfileDefinition, String> profileIDs = selfCachedReference.getProf...
(sessionLabel, () -> "checkOtp: OTP allow setup is not enabled");
309,682
public Request<DescribeIdentityPoolRequest> marshall(DescribeIdentityPoolRequest describeIdentityPoolRequest) {<NEW_LINE>if (describeIdentityPoolRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(DescribeIdentityPoolRequest)");<NEW_LINE>}<NEW_LINE>Request<DescribeIdentityPo...
request.addHeader("X-Amz-Target", target);
1,167,701
final void array_fromstring(PyObject input) {<NEW_LINE>// This is an append, so start at the current end.<NEW_LINE>int start = delegate.getSize();<NEW_LINE>if (input instanceof BufferProtocol) {<NEW_LINE>if (input instanceof PyUnicode) {<NEW_LINE>// Unicode is treated as specifying a byte string via the default encodin...
pybuf.copyTo(copy, 0);
1,161,291
public void extract(CrawlURI curi) {<NEW_LINE>// { regex name -> list of matches }<NEW_LINE>Map<String, MatchList> matchLists;<NEW_LINE>// uri regex<NEW_LINE>Matcher matcher = TextUtils.getMatcher(getUriRegex(), curi.getURI());<NEW_LINE>if (matcher.matches()) {<NEW_LINE>matchLists = new LinkedHashMap<String, MatchList>...
= new MatchList(regex, cs);
232,583
public void createOrUpdateIndexWithResponse() {<NEW_LINE>// BEGIN: com.azure.search.documents.indexes.SearchIndexClient.createOrUpdateIndexWithResponse#SearchIndex-boolean-boolean-Context<NEW_LINE>SearchIndex <MASK><NEW_LINE>indexFromService.setSuggesters(Collections.singletonList(new SearchSuggester("sg", Collections....
indexFromService = searchIndexClient.getIndex("searchIndex");
1,569,890
private JApiSuperclass extractSuperclass(Optional<CtClass> oldClassOptional, Optional<CtClass> newClassOptional) {<NEW_LINE>JApiSuperclass retVal = new JApiSuperclass(this, Optional.<CtClass>absent(), Optional.<CtClass>absent(), JApiChangeStatus.UNCHANGED, jarArchiveComparator);<NEW_LINE>if (oldClassOptional.isPresent(...
CtClass oldClass = oldClassOptional.get();
1,433,854
private static Constructor<?> findConstructorForClass(Class<?> controllerClass) {<NEW_LINE>Constructor<?> helperCtor = BINDINGS.get(controllerClass);<NEW_LINE>if (helperCtor != null || BINDINGS.containsKey(controllerClass)) {<NEW_LINE>return helperCtor;<NEW_LINE>}<NEW_LINE>String clsName = controllerClass.getName();<NE...
Class.forName(clsName + GENERATED_HELPER_CLASS_SUFFIX);
1,394,211
final ExportApiResult executeExportApi(ExportApiRequest exportApiRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(exportApiRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
(super.beforeMarshalling(exportApiRequest));
679,004
public Request<TagResourceRequest> marshall(TagResourceRequest tagResourceRequest) {<NEW_LINE>if (tagResourceRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(TagResourceRequest)");<NEW_LINE>}<NEW_LINE>Request<TagResourceRequest> request = new DefaultRequest<TagResourceReq...
.toString(content.length));
805,039
public void ongoing(ContractVersion version, LocalDate date) throws AxelorException {<NEW_LINE>List<Integer> authorizedStatus = new ArrayList<>();<NEW_LINE>authorizedStatus.add(AbstractContractVersionRepository.WAITING_VERSION);<NEW_LINE>authorizedStatus.add(AbstractContractVersionRepository.DRAFT_VERSION);<NEW_LINE>if...
getContract().setEngagementStartDate(date);
243,841
public int compare(Object o1, Object o2) {<NEW_LINE>SketchHolder h1 = (SketchHolder) o1;<NEW_LINE>SketchHolder h2 = (SketchHolder) o2;<NEW_LINE>if (h1.obj instanceof Sketch || h1.obj instanceof Union) {<NEW_LINE>if (h2.obj instanceof Sketch || h2.obj instanceof Union) {<NEW_LINE>return SKETCH_COMPARATOR.compare(h1.getS...
, (Memory) h2.obj);
1,633,201
public String stringify(Object o) {<NEW_LINE>if (o == null) {<NEW_LINE>return ("null");<NEW_LINE>}<NEW_LINE>final ObjectName on = (ObjectName) o;<NEW_LINE>final StringBuilder buf = new StringBuilder();<NEW_LINE>if (!mOmitDomain) {<NEW_LINE>buf.append(on.getDomain()).append(":");<NEW_LINE>}<NEW_LINE>final Map<String, St...
retainAll(props.keySet());
829,645
protected boolean innerExtract(CrawlURI curi) {<NEW_LINE>try {<NEW_LINE>// Parse the robots for the sitemaps.<NEW_LINE>List<String> links = parseRobotsTxt(curi.getRecorder().getContentReplayInputStream());<NEW_LINE>LOGGER.finest("Checked " + curi + " GOT " + links);<NEW_LINE>// Get the max outlinks (needed by add metho...
curi.getURI(), e);
805,350
protected Description scanEntireMethodFor(Matcher<? super MethodInvocationTree> m, MethodTree tree, VisitorState state) {<NEW_LINE>FixAggregator aggregator = findingPerMethod();<NEW_LINE>new TreePathScanner<Void, Void>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Void visitMethod(MethodTree methodTree, Void aVoid) ...
matchNewClassOrMethodInvocation(methodInvocationTree, localState, aggregator);
1,170,353
/*<NEW_LINE>* Answer a base type reference (can be an array of base type).<NEW_LINE>*/<NEW_LINE>public static final TypeReference baseTypeReference(int baseType, int dim, Annotation[][] dimAnnotations) {<NEW_LINE>if (dim == 0) {<NEW_LINE>switch(baseType) {<NEW_LINE>case (TypeIds.T_void):<NEW_LINE>return new SingleTypeR...
simpleName, dim, dimAnnotations, 0);
1,411,887
public static Map<PartitionKey, HashIndicesView> split(int[] indices, List<PartitionKey> parts) {<NEW_LINE>Map<PartitionKey, HashIndicesView> ret = new HashMap<>();<NEW_LINE>Map<Integer, IntArrayList> partIndex2Indices = new HashMap<>();<NEW_LINE>SortedMap<Integer, Integer> key2partIndex = new TreeMap<>();<NEW_LINE>for...
().toIntArray()));
869,291
// GEN-END:initComponents<NEW_LINE>private void targetComboBoxActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_targetComboBoxActionPerformed<NEW_LINE>String selection = (String) targetComboBox.getSelectedItem();<NEW_LINE>if (selection == null) {<NEW_LINE>// Why? Not sure. #45097.<NEW_LINE>s...
targetsL = Collections.list(tok);
1,805,647
public void addURL(String fileName) throws IOException {<NEW_LINE>String protocol = URLClassPath.getURLProtocol(fileName);<NEW_LINE>if (protocol == null) {<NEW_LINE>fileName = "file:" + fileName;<NEW_LINE>protocol = "file";<NEW_LINE>}<NEW_LINE>String fileExtension = URLClassPath.getFileExtension(fileName);<NEW_LINE>boo...
IOException("Classpath entry " + fileName + " is not a directory or archive file");
863,563
public void resolve(Type t, Type declaredType, Type sigType, SootMethodRef callee, SootMethod container, ChunkedQueue<SootMethod> targets, boolean appOnly) {<NEW_LINE>if (declaredType instanceof ArrayType) {<NEW_LINE>declaredType = RefType.v("java.lang.Object");<NEW_LINE>}<NEW_LINE>if (sigType instanceof ArrayType) {<N...
throw new RuntimeException("oops " + t);
383,486
public Object visit(ASTCompilationUnit cUnit, Object data) {<NEW_LINE>SortedMap<Integer, Node> itemsByLineNumber = this.orderedCommentsAndEnumDeclarations(cUnit);<NEW_LINE>// Check comments between ASTEnumDeclaration and ASTEnumConstant.<NEW_LINE>boolean isPreviousEnumDecl = false;<NEW_LINE>for (Entry<Integer, Node> en...
, enumDeclaration.getImage()));
589,046
public int copyLinesFrom(MHRProcess from) {<NEW_LINE>if (isProcessed() || isPosted() || from == null)<NEW_LINE>return 0;<NEW_LINE>List<MHRMovement> fromLines = MHRMovement.findByProcess(from);<NEW_LINE>for (MHRMovement fromMovement : fromLines) {<NEW_LINE>MHRMovement toMovement = new MHRMovement(getCtx(), 0, from.get_T...
setIsPrinted(fromMovement.isPrinted());
1,292,043
public static void vertical11(Kernel1D_S32 kernel, GrayU16 src, GrayI16 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final i...
[indexSrc] & 0xFFFF) * k1;
1,030,521
public StreamKeySummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StreamKeySummary streamKeySummary = new StreamKeySummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
)).unmarshall(context));
310,268
public StartImagePipelineExecutionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartImagePipelineExecutionResult startImagePipelineExecutionResult = new StartImagePipelineExecutionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = c...
JsonToken token = context.getCurrentToken();
1,850,822
private void sendResendRequest(String beginString, int msgSeqNum, int beginSeqNo, int endSeqNo) {<NEW_LINE>int lastEndSeqNoSent = resendRequestChunkSize == 0 ? endSeqNo : beginSeqNo + resendRequestChunkSize - 1;<NEW_LINE>if (lastEndSeqNoSent > endSeqNo) {<NEW_LINE>lastEndSeqNoSent = endSeqNo;<NEW_LINE>}<NEW_LINE>if (la...
== 0 ? "infinity" : endSeqNo));
1,301,377
private void initialize(@Nullable AttributeSet attrs) {<NEW_LINE>inflate(getContext(), R.layout.shared_contact_view, this);<NEW_LINE>avatarView = findViewById(R.id.contact_avatar);<NEW_LINE>nameView = findViewById(R.id.contact_name);<NEW_LINE>numberView = findViewById(R.id.contact_number);<NEW_LINE>actionButtonView = f...
R.styleable.SharedContactView_contact_footerAlpha, 1);
1,148,293
public static void arrayToGray(byte[] array, Bitmap.Config config, GrayU8 output) {<NEW_LINE>final int h = output.height;<NEW_LINE>final int w = output.width;<NEW_LINE>int indexSrc = 0;<NEW_LINE>switch(config) {<NEW_LINE>case ARGB_8888:<NEW_LINE>{<NEW_LINE>for (int y = 0; y < h; y++) {<NEW_LINE>int indexDst = output.st...
indexDst++] = (byte) value;
26,784
public boolean sendResponse(Context context, boolean success) {<NEW_LINE>if (hasPendingIntent()) {<NEW_LINE>mZoomLevel = Framework.nativeGetDrawScale();<NEW_LINE>final Intent i = new Intent();<NEW_LINE>if (success) {<NEW_LINE>i.putExtra(Const.EXTRA_MWM_RESPONSE_POINT_LAT, mLat).putExtra(Const.EXTRA_MWM_RESPONSE_POINT_L...
RESULT_OK : Activity.RESULT_CANCELED, i);
591,548
public void validate() {<NEW_LINE>super.validate();<NEW_LINE>if (error() != null) {<NEW_LINE>error().validate();<NEW_LINE>}<NEW_LINE>if (sharepointIds() != null) {<NEW_LINE>sharepointIds().validate();<NEW_LINE>}<NEW_LINE>if (siteCollection() != null) {<NEW_LINE>siteCollection().validate();<NEW_LINE>}<NEW_LINE>if (analy...
e -> e.validate());
292,042
private <R> Optional<RouteMatch<R>> findStatusInternal(@Nullable Class<?> originatingClass, @NonNull HttpStatus status, HttpRequest<?> request) {<NEW_LINE>Collection<MediaType> accept = request.accept();<NEW_LINE>final boolean <MASK><NEW_LINE>if (hasAcceptHeader) {<NEW_LINE>for (StatusRoute statusRoute : statusRoutes) ...
hasAcceptHeader = CollectionUtils.isNotEmpty(accept);
109,463
// Invokes the 9 relational predicates of area vs area.<NEW_LINE>private boolean areaAreaPredicates_(int half_edge, int id_a, int id_b) {<NEW_LINE>boolean bRelationKnown = true;<NEW_LINE>if (m_perform_predicates[MatrixPredicate.InteriorInterior]) {<NEW_LINE>interiorAreaInteriorArea_(half_edge, id_a, id_b);<NEW_LINE>bRe...
bRelationKnown &= isPredicateKnown_(MatrixPredicate.ExteriorBoundary);
1,162,355
public double[] kg(T x, T y) {<NEW_LINE>double[] kg1 = k1.kg(x, y);<NEW_LINE>double[] kg2 = k2.kg(x, y);<NEW_LINE>double[] kg = new double[kg1.length + kg2.length - 1];<NEW_LINE>double k1 = kg1[0];<NEW_LINE>double k2 = kg2[0];<NEW_LINE><MASK><NEW_LINE>int n1 = kg1.length;<NEW_LINE>for (int i = 1; i < n1; i++) {<NEW_LIN...
kg[0] = k1 + k2;
1,393,790
public static <T extends ImageGray<T>> void applyTransform(T input, int[] transform, int minValue, T output) {<NEW_LINE>InputSanityCheck.checkSameShape(input, output);<NEW_LINE>if (input instanceof GrayU8) {<NEW_LINE>EnhanceImageOps.applyTransform((GrayU8) input, transform, (GrayU8) output);<NEW_LINE>} else if (input i...
, minValue, (GrayS32) output);
439,315
static OrcaTrip create(@NonNull DesfireRecord record) {<NEW_LINE>byte[] useData = record.getData().bytes();<NEW_LINE>long[] usefulData = new long[useData.length];<NEW_LINE>for (int i = 0; i < useData.length; i++) {<NEW_LINE>usefulData[i] = ((long) useData[i]) & 0xFF;<NEW_LINE>}<NEW_LINE>long timestamp = ((0x0F & useful...
transType = (usefulData[17]);
522,328
public static void drawIRQs(Graphics2D g, int x, int y, boolean scale, int nrOfIrqs, int irqs, int irqMask) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g.create();<NEW_LINE>Bounds bds;<NEW_LINE>if (scale)<NEW_LINE>g2.setFont(AppPreferences.getScaledFont(g.getFont()));<NEW_LINE>bds = getBounds(x, y, 0, 0, scale);<NEW_LINE>g...
71, 15, 15, scale);
605,959
private boolean checkAuthorization(String authorization) {<NEW_LINE>if (authorization == null)<NEW_LINE>return false;<NEW_LINE>try {<NEW_LINE>String userInfo = authorization.substring(6).trim();<NEW_LINE>Base64 decoder = new Base64();<NEW_LINE>String namePassword = new String(decoder.decode(userInfo.getBytes()));<NEW_L...
namePassword.substring(0, index);
368,660
public boolean onDelete(long id, DataObject obj) {<NEW_LINE>boolean available = obj.isNull("unavailable") || !obj.getBoolean("unavailable");<NEW_LINE>if (isUnavailable(id) && available) {<NEW_LINE>log.debug("Leaving unavailable guild with id {}", id);<NEW_LINE>remove(id);<NEW_LINE>api.getEventManager().handle(new Unava...
.getResponseTotal(), id));
1,253,629
public void validate() {<NEW_LINE>if (virtualNetworkTaps() != null) {<NEW_LINE>virtualNetworkTaps().forEach(e -> e.validate());<NEW_LINE>}<NEW_LINE>if (applicationGatewayBackendAddressPools() != null) {<NEW_LINE>applicationGatewayBackendAddressPools().forEach(e -> e.validate());<NEW_LINE>}<NEW_LINE>if (loadBalancerBack...
e -> e.validate());
651,885
void init() {<NEW_LINE><MASK><NEW_LINE>helper.log(lvl, "SikulixForJython: init: starting");<NEW_LINE>String sikuliStuff = "sikuli/Sikuli";<NEW_LINE>File fSikuliStuff = helper.existsSysPathModule(sikuliStuff);<NEW_LINE>String libSikuli = "/Lib/" + sikuliStuff + ".py";<NEW_LINE>String fpSikuliStuff;<NEW_LINE>if (null == ...
JythonSupport helper = JythonSupport.get();
1,339,565
public void invoke(int index, Element _ele, int length) throws ExitLoop, ContinueLoop, LoopException {<NEW_LINE>String key = _ele.getNodeName();<NEW_LINE>if (opts.lowerFirst)<NEW_LINE>key = Strings.lowerFirst(key);<NEW_LINE>Map<String, Object> tmp = asMap(_ele, opts);<NEW_LINE>if (!tmp.isEmpty()) {<NEW_LINE>if (opts.al...
map.setv(key, val);
1,784,671
private void addMenuItems() {<NEW_LINE>JNodePopupBuilder popup = new JNodePopupBuilder(this, getPopupMenu());<NEW_LINE>popup.addSeparator();<NEW_LINE>popup.add(new FindUsageAction(this));<NEW_LINE>popup.add(new GoToDeclarationAction(this));<NEW_LINE>popup.add(new CommentAction(this));<NEW_LINE>popup.add(new CommentSear...
add(new XposedAction(this));
283,631
static void saveEventsNow() {<NEW_LINE>if (skipAutoSave) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>config_mon.enter();<NEW_LINE>Map<String, Object> mapSave = new HashMap<>();<NEW_LINE>mapSave.put("LastChecks", lastNewsAt);<NEW_LINE>mapSave.put("version", 2L);<NEW_LINE>List<Object> entriesList = new ArrayLis...
removedEntriesList = new ArrayList<>();
1,098,065
protected ActionToolbar buildToolbar(@Nullable Point mousePosition, @Nonnull Disposable parentDisposable) {<NEW_LINE>final DefaultActionGroup group = new DefaultActionGroup();<NEW_LINE>final ShowPrevChangeMarkerAction localShowPrevAction = new ShowPrevChangeMarkerAction(myTracker.getPrevRange(myRange), myTracker, myEdi...
(myRange), myTracker, myEditor);