idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,631,349
public void marshall(EndpointProperties endpointProperties, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (endpointProperties == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(endpointProperties.getEndpoint...
endpointProperties.getDesiredDataAccessRoleArn(), DESIREDDATAACCESSROLEARN_BINDING);
754,951
public static <A> CloneableIterator<A> stack(final CloneableIterator<A>[] iterators, final Comparator<A> c, final boolean up) {<NEW_LINE>// this extends the ability to combine two iterators<NEW_LINE>// to the ability of combining a set of iterators<NEW_LINE>if (iterators == null || iterators.length == 0)<NEW_LINE>retur...
[1], c, up);
1,678,491
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Portal por...
collect(Collectors.toList());
251,472
private Map<String, Object> makeContextProperies(ContextControllerFactoryForge[] controllers, StatementRawInfo statementRawInfo, StatementCompileTimeServices services) throws ExprValidationException {<NEW_LINE>LinkedHashMap<String, Object> props = new LinkedHashMap<>();<NEW_LINE>props.put(ContextPropertyEventType.PROP_...
nestedContextName, level, statementRawInfo, services);
1,254,189
public Request<ListUserImportJobsRequest> marshall(ListUserImportJobsRequest listUserImportJobsRequest) {<NEW_LINE>if (listUserImportJobsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListUserImportJobsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListUserImportJobsRequest> r...
String paginationToken = listUserImportJobsRequest.getPaginationToken();
10,797
public ArrayList<Actor> scrapeActors() {<NEW_LINE>ArrayList<Actor> actorList = new ArrayList<>();<NEW_LINE>Elements actorElementTabs = document.select("div.js-tab-contents div[id]");<NEW_LINE>if (actorElementTabs != null) {<NEW_LINE>for (Element currentActor : actorElementTabs) {<NEW_LINE>String actorName = currentActo...
.first().text();
1,658,416
public static String perRequestProxyAuthorizationHeader(Request request, Realm proxyRealm) {<NEW_LINE>String proxyAuthorization = null;<NEW_LINE>if (proxyRealm != null && proxyRealm.isUsePreemptiveAuth()) {<NEW_LINE>switch(proxyRealm.getScheme()) {<NEW_LINE>case BASIC:<NEW_LINE>proxyAuthorization = computeBasicAuthenti...
getMethod()).build();
848,289
protected ConsoleReporter createInstance() {<NEW_LINE>final ConsoleReporter.Builder reporter = ConsoleReporter.forRegistry(getMetricRegistry());<NEW_LINE>if (hasProperty(DURATION_UNIT)) {<NEW_LINE>reporter.convertDurationsTo(getProperty(DURATION_UNIT, TimeUnit.class));<NEW_LINE>}<NEW_LINE>if (hasProperty(RATE_UNIT)) {<...
(OUTPUT_REF, PrintStream.class));
400,197
public Object calculate(Context ctx) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>if (param == null) {<NEW_LINE>throw new RQException("round" + mm.getMessage("function.missingParam"));<NEW_LINE>} else if (param.isLeaf()) {<NEW_LINE>Object o = param.getLeafExpression().calculate(ctx);<NEW_LINE>return Var...
p2 = param.getSub(1);
105,500
public static void display(ChassisTileEntity chassis) {<NEW_LINE>// Display a group and kill any selections of its contained chassis blocks<NEW_LINE>if (AllKeys.ctrlDown()) {<NEW_LINE>GroupEntry hoveredGroup = new GroupEntry(chassis);<NEW_LINE>for (ChassisTileEntity included : hoveredGroup.includedTEs) CreateClient.OUT...
remove(included.getBlockPos());
86,040
public void writeObject(FSTObjectOutput out, Object toWrite, FSTClazzInfo clzInfo, FSTClazzInfo.FSTFieldInfo referencedBy, int streamPosition) throws IOException {<NEW_LINE>EnumSet enset = (EnumSet) toWrite;<NEW_LINE>int count = 0;<NEW_LINE>out.writeInt(enset.size());<NEW_LINE>if (enset.isEmpty()) {<NEW_LINE>// WTF onl...
()).getName());
1,078,733
public IAddress map(final ICodeContainer<?> block) {<NEW_LINE>// getLastInstruction(block);<NEW_LINE>final IInstruction lastInstruction = Iterables.getFirst(block.getInstructions(), null);<NEW_LINE>final ReilTranslator<IInstruction> translator = new ReilTranslator<IInstruction>();<NEW_LINE>try {<NEW_LINE>final ReilGrap...
getLast(lastNode.getInstructions());
1,149,825
private void initLayout(Intent intent) {<NEW_LINE>if (Build.VERSION.SDK_INT > Build.VERSION_CODES.GINGERBREAD_MR1) {<NEW_LINE>// Animate if greater than 2.3.3<NEW_LINE>overridePendingTransition(R.anim.nothing, R.anim.nothing);<NEW_LINE>}<NEW_LINE>Bundle extras = intent.getExtras();<NEW_LINE>if (extras != null) {<NEW_LI...
(R.id.pin_code_logo_imageview));
45,253
public static void convolve(Kernel2D_S32 kernel, GrayU16 input, GrayI16 output, ImageBorder_S32<GrayU16> binput) {<NEW_LINE>final int offset = kernel.getOffset();<NEW_LINE>final int weight = kernel.computeSum();<NEW_LINE>final int width = input.getWidth();<NEW_LINE>final int height = input.getHeight();<NEW_LINE>for (in...
int yy = y - offset + i;
1,392,214
public void chargePoint(final RequestContext context) {<NEW_LINE>final String userId = context.pathVar("userId");<NEW_LINE>final Request request = context.getRequest();<NEW_LINE>final String pointStr = <MASK><NEW_LINE>final String memo = context.param("memo");<NEW_LINE>if (StringUtils.isBlank(pointStr) || StringUtils.i...
context.param(Common.POINT);
276,409
protected AuthenticatedUserDisplayInfo parseActivitiesResponse(String responseBody) {<NEW_LINE>DocumentBuilderFactory dbFact = DocumentBuilderFactory.newInstance();<NEW_LINE>try (StringReader reader = new StringReader(responseBody)) {<NEW_LINE>DocumentBuilder db = dbFact.newDocumentBuilder();<NEW_LINE>Document doc = db...
ex.getMessage(), ex);
234,204
private List<SplitPoint> buildSplitPoint(PartitionStat partition, BalanceOptions options, long expectedRowsOfPartition) {<NEW_LINE>List<SplitPoint> splitPoints = new ArrayList<>();<NEW_LINE>SplitNameBuilder snb = new SplitNameBuilder(partition.getPartitionName());<NEW_LINE>for (long offset = expectedRowsOfPartition; of...
), sorted, BalanceOptions.SPLIT_PARTITION_MAX_COUNT);
435,180
public static Map<String, List<SSLCertificateVH>> fetchACMCertficateInfo(BasicSessionCredentials temporaryCredentials, String skipRegions, String account, String accountName) {<NEW_LINE>log.info("ACM cert method Entry");<NEW_LINE>Map<String, List<SSLCertificateVH>> sslVH = new LinkedHashMap<>();<NEW_LINE>List<Certifica...
listCertificateSummary = new ArrayList<>();
355,156
public void paint(Graphics g) {<NEW_LINE>// left-to-right<NEW_LINE>boolean dotLTR = true;<NEW_LINE>Position.Bias dotBias = Position.Bias.Forward;<NEW_LINE>//<NEW_LINE>if (isVisible()) {<NEW_LINE>try {<NEW_LINE>TextUI mapper = getComponent().getUI();<NEW_LINE>Rectangle r = mapper.modelToView(getComponent(), getDot(), do...
r.y, cThick, cHeight);
826,453
protected ITranslatableString buildMessage() {<NEW_LINE>final TranslatableStringBuilder message = TranslatableStrings.builder();<NEW_LINE>message.appendADMessage(MSG_TaxNotFound);<NEW_LINE>//<NEW_LINE>if (productId != null) {<NEW_LINE>final String productName = Services.get(IProductBL.class).getProductValueAndName(prod...
(": ").append(taxCategoryName);
360,354
public static LeafSlice[] slices(List<LeafReaderContext> leaves, int maxDocsPerSlice, int maxSegmentsPerSlice) {<NEW_LINE>// Make a copy so we can sort:<NEW_LINE>List<LeafReaderContext> sortedLeaves = new ArrayList<>(leaves);<NEW_LINE>// Sort by maxDoc, descending:<NEW_LINE>Collections.sort(sortedLeaves, Collections.re...
LeafSlice[groupedLeaves.size()];
615,228
public void applyPreferences() {<NEW_LINE>if (!hasChanges) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>hasChanges = false;<NEW_LINE>// must do the store before setting the preference<NEW_LINE>// to ensure that the store is flushed<NEW_LINE>disableButton.store();<NEW_LINE>List<String> elts = patternList.getElements();<NEW_LI...
elts.size() * 2);
260,428
public Collection<LoadSpec> findSupportedLoadSpecs(ByteProvider provider) throws IOException {<NEW_LINE>List<LoadSpec> loadSpecs = new ArrayList<>();<NEW_LINE>BinaryReader reader = new BinaryReader(provider, true);<NEW_LINE>try {<NEW_LINE>byte[] magicBytes = provider.readBytes(0, CDexConstants.MAGIC.length());<NEW_LINE...
(this, 0, true));
887,669
public static void datasetDeIdentify(String srcDatasetName, String destDatasetName) throws IOException {<NEW_LINE>// String srcDatasetName =<NEW_LINE>// String.format(DATASET_NAME, "your-project-id", "your-region-id", "your-src-dataset-id");<NEW_LINE>// String destDatasetName =<NEW_LINE>// String.format(DATASET_NAME, "...
).deidentify(srcDatasetName, deidentifyRequest);
637,712
public AssetPropertyValue unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssetPropertyValue assetPropertyValue = new AssetPropertyValue();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
().unmarshall(context));
266,398
public static void createMarkers(final IJavaProject javaProject, final SortedBugCollection theCollection, final ISchedulingRule rule, IProgressMonitor monitor) {<NEW_LINE>if (monitor.isCanceled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final List<MarkerParameter> bugParameters = createBugParameters(javaProject, theColl...
, project).run(monitor1);
879,032
private void periodicCheck() {<NEW_LINE>final long deltaMillis = (System.currentTimeMillis() - <MASK><NEW_LINE>// every 2 minutes<NEW_LINE>// Ensure that we are not overreacting...<NEW_LINE>if (deltaMillis < periodicUpdatesInterval) {<NEW_LINE>this.scheduledExecutorService.schedule(this::periodicCheck, periodicUpdatesI...
this.lastCheck.get());
1,126,198
// Finishes all terms in this field<NEW_LINE>public void finish() throws IOException {<NEW_LINE>if (numTerms > 0) {<NEW_LINE>// if (DEBUG) System.out.println("BTTW: finish prefixStarts=" +<NEW_LINE>// Arrays.toString(prefixStarts));<NEW_LINE>// Add empty term to force closing of all final blocks:<NEW_LINE>pushTerm(new ...
metaOut.writeVInt(fieldInfo.number);
930,654
private void fixAppDirLinesList(String path, List<String> lines) {<NEW_LINE>if (lines != null) {<NEW_LINE>String line;<NEW_LINE>for (int i = 0; i < lines.size(); i++) {<NEW_LINE>line = lines.get(i);<NEW_LINE>if (line.contains("/data/user/0/pan.alexander.tordnscrypt")) {<NEW_LINE>line = line.replaceAll("/data/user/0/pan...
lines.set(i, line);
284,395
public static DescribeScdnDomainBpsDataResponse unmarshall(DescribeScdnDomainBpsDataResponse describeScdnDomainBpsDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeScdnDomainBpsDataResponse.setRequestId(_ctx.stringValue("DescribeScdnDomainBpsDataResponse.RequestId"));<NEW_LINE>describeScdnDomainBpsDataResponse...
("DescribeScdnDomainBpsDataResponse.BpsDataPerInterval[" + i + "].BpsValue"));
397,245
public void Busy() {<NEW_LINE>Busy.setText("BUSY");<NEW_LINE>// RED<NEW_LINE>Busy.setBackground(new java.awt.Color<MASK><NEW_LINE>SnippetsBusy.setText("BUSY");<NEW_LINE>// RED<NEW_LINE>SnippetsBusy.setBackground(new java.awt.Color(153, 0, 0));<NEW_LINE>ProgressBar.setValue(0);<NEW_LINE>ProgressBar.setVisible(true);<NEW...
(153, 0, 0));
1,785,460
private boolean isFirstNode() {<NEW_LINE>// if no node selected, return...<NEW_LINE>if (!isNodeSelected()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// get the selected node, so we know where to insert the new bullet<NEW_LINE>DefaultMutableTreeNode selection = <MASK><NEW_LINE>// if the selection is a node-entry...<N...
(DefaultMutableTreeNode) jTreeDesktop.getLastSelectedPathComponent();
420,050
final DisassociateConnectPeerResult executeDisassociateConnectPeer(DisassociateConnectPeerRequest disassociateConnectPeerRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(disassociateConnectPeerRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
false), new DisassociateConnectPeerResultJsonUnmarshaller());
992,595
public Request<AdminDisableProviderForUserRequest> marshall(AdminDisableProviderForUserRequest adminDisableProviderForUserRequest) {<NEW_LINE>if (adminDisableProviderForUserRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(AdminDisableProviderForUserRequest)");<NEW_LINE>}<...
request.addHeader("Content-Type", "application/x-amz-json-1.1");
368,047
public void insertFrom(int insertIndex, WasmArray.OfObject values) {<NEW_LINE>Object[] original = elements;<NEW_LINE>int newLength = length + values.length;<NEW_LINE>// Ensure enough capacity.<NEW_LINE>if (newLength > elements.length) {<NEW_LINE>elements = new Object[getNewCapacity(elements.length, newLength)];<NEW_LIN...
int insertEndIndex = insertIndex + values.length;
898,077
private static boolean tryNamespaceFromPath(Config config) {<NEW_LINE>LOGGER.debug("Trying to configure client namespace from Kubernetes service account namespace path...");<NEW_LINE>if (Utils.getSystemPropertyOrEnvVar(KUBERNETES_TRYNAMESPACE_PATH_SYSTEM_PROPERTY, true)) {<NEW_LINE>String serviceAccountNamespace = <MAS...
Utils.getSystemPropertyOrEnvVar(KUBERNETES_NAMESPACE_FILE, KUBERNETES_NAMESPACE_PATH);
689,075
public static GetPatentPlanListResponse unmarshall(GetPatentPlanListResponse getPatentPlanListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPatentPlanListResponse.setRequestId<MASK><NEW_LINE>getPatentPlanListResponse.setPageNum(_ctx.integerValue("GetPatentPlanListResponse.PageNum"));<NEW_LINE>getPatentPlanListRespo...
(_ctx.stringValue("GetPatentPlanListResponse.RequestId"));
918,543
protected static ResponseMessage buildResponse(ServiceClient.Request request, CloseableHttpResponse httpResponse) throws IOException {<NEW_LINE>assert (httpResponse != null);<NEW_LINE>ResponseMessage response = new ResponseMessage(request);<NEW_LINE>response.setUrl(request.getUri());<NEW_LINE>response.setHttpResponse(h...
(header.getValue()));
852,320
public Tensor<?> parseBatchTensors(List<String> values, TensorInfo tensorInfo) {<NEW_LINE>int batchSize = values.size();<NEW_LINE>int dtype = tensorInfo.getDtypeValue();<NEW_LINE>long[] shape = TF2TensorUtils.getTensorShape(tensorInfo);<NEW_LINE>adjustShapeFromValues(shape, values, true);<NEW_LINE>String[] allValueStri...
+ DataType.forNumber(dtype));
517,268
private void handleDictionaryBasedColumn(SegmentDirectory.Writer segmentWriter, ColumnMetadata columnMetadata, JsonIndexCreatorProvider indexCreatorProvider) throws IOException {<NEW_LINE>File indexDir = _segmentMetadata.getIndexDir();<NEW_LINE>try (ForwardIndexReader forwardIndexReader = LoaderUtils.getForwardIndexRea...
forwardIndexReader.getDictId(i, readerContext);
838,119
private Token identifier() {<NEW_LINE>int startPosition = getCurrentPositionInInput();<NEW_LINE>StringBuffer sbuf = new StringBuffer();<NEW_LINE>while ((Character.isJavaIdentifierPart(lookAhead(1))) || partOfConnector()) {<NEW_LINE>sbuf.append(lookAhead(1));<NEW_LINE>consume();<NEW_LINE>}<NEW_LINE>String readString = n...
LogicTokenTypes.VARIABLE, readString, startPosition);
1,790,002
void updateDetails(NodeView nodeView, int minNodeWidth, int maxNodeWidth) {<NEW_LINE>NodeModel node = nodeView.getModel();<NEW_LINE>String detailTextText = DetailModel.getDetailText(node);<NEW_LINE>if (detailTextText == null) {<NEW_LINE>nodeView.removeContent(NodeView.DETAIL_VIEWER_POSITION);<NEW_LINE>return;<NEW_LINE>...
setBackground(map.getDetailBackground());
1,313,613
// Inspired by {@code GrizzlyHttpContainer.GrizzlyBinder} from Jersey to Grizzly integration.<NEW_LINE>@Override<NEW_LINE>protected void configure() {<NEW_LINE>bindFactory(WebServerRequestReferencingFactory.class).to(ServerRequest.class).proxy(true).proxyForSameScope(false).in(RequestScoped.class);<NEW_LINE>bindFactory...
).in(RequestScoped.class);
444,537
public int update(UpdateBuilder ub, final SearchCriteria<?> sc, Integer rows) {<NEW_LINE>StringBuilder sql = null;<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>final TransactionLegacy txn = TransactionLegacy.currentTxn();<NEW_LINE>try {<NEW_LINE>final String searchClause = sc.getWhereClause();<NEW_LINE>sql = ub.to...
> changes = ub.getChanges();
595,775
private void generateCheckCastBToJShort(MethodVisitor mv, BType sourceType) {<NEW_LINE>if (TypeTags.isIntegerTypeTag(sourceType.tag)) {<NEW_LINE>mv.visitInsn(L2I);<NEW_LINE>mv.visitInsn(I2S);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>switch(sourceType.tag) {<NEW_LINE>case TypeTags.BYTE:<NEW_LINE>mv.visitInsn(I2S);<NEW_LINE>...
HANDLE_VALUE, GET_VALUE_METHOD, RETURN_OBJECT, false);
1,328,158
private static ProcessStatus processLoginSuccess(final PwmRequest pwmRequest, final boolean persistentLoginEnabled) throws PwmUnrecoverableException, IOException {<NEW_LINE>final ConfigManagerBean configManagerBean = pwmRequest.getPwmDomain().getSessionStateService().getBean(pwmRequest, ConfigManagerBean.class);<NEW_LI...
IntruderRecordType.USERNAME, PwmConstants.CONFIGMANAGER_INTRUDER_USERNAME);
787,663
private void initListeners() {<NEW_LINE>ddListener = new PropertyChangeListener() {<NEW_LINE><NEW_LINE>public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>String propertyName = evt.getPropertyName();<NEW_LINE><MASK><NEW_LINE>Object oldValue = evt.getOldValue();<NEW_LINE>if (DDDataObject.PROP_DOCUMENT_DTD.equ...
Object newValue = evt.getNewValue();
151,110
public static void main(String[] args) {<NEW_LINE>// Object based empty ArrayList<NEW_LINE>ArrayList<Object> jlist = new ArrayList<Object>();<NEW_LINE>System.out.println(jlist);<NEW_LINE>System.out.<MASK><NEW_LINE>// String array<NEW_LINE>String[] str_array = { "a", "b", "c" };<NEW_LINE>System.out.println(str_array.toS...
println(jlist.size());
1,781,957
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "key", "value" };<NEW_LINE>String epl = "@name('create') create window MyWindowUN#unique(key) as MySimpleKeyValueMap;\n" + "insert into MyWindowUN select theString as key, longBoxed as value from SupportBean;\n" + "@name('s0') select...
{ { "G2", 22L } });
787,300
public static ContentValues contentValuesFromSerializedString(String string) {<NEW_LINE>if (string == null)<NEW_LINE>return new ContentValues();<NEW_LINE>ContentValues result = new ContentValues();<NEW_LINE>fromSerialized(string, result, new SerializedPut<ContentValues>() {<NEW_LINE><NEW_LINE>public void put(ContentVal...
.replace(SEPARATOR_ESCAPE, SERIALIZATION_SEPARATOR));
1,201,752
protected double invCdfRootFinding(double p, double tol) {<NEW_LINE>if (p < 0 || p > 1)<NEW_LINE>throw new ArithmeticException("Value of p must be in the range [0,1], not " + p);<NEW_LINE>// two special case checks, as they can cause a failure to get a positive and negative value on the ends, which means we can't do a ...
* (1 - diff) - p;
1,038,832
private static void formatSchemaGrants(final SourceFile src, final AbstractSchemaNode schemaNode) {<NEW_LINE>final Iterable<SchemaGrant> schemaGrants = schemaNode.getSchemaGrants();<NEW_LINE>if (schemaGrants != null) {<NEW_LINE>final List<SchemaGrant> list = Iterables.toList(schemaGrants);<NEW_LINE>if (!list.isEmpty())...
src.begin(schemaNode, "protected boolean allowedBySchema(final org.structr.core.entity.Principal principal, final org.structr.common.Permission permission) {");
226,856
public void createAnUser(View view) {<NEW_LINE>AndroidNetworking.post(ApiEndPoint.BASE_URL + ApiEndPoint.POST_CREATE_AN_USER).addBodyParameter("firstname", "Suman").addBodyParameter("lastname", "Shekhar").setTag(this).setPriority(Priority.LOW).build().setAnalyticsListener(new AnalyticsListener() {<NEW_LINE><NEW_LINE>@O...
d(TAG, " bytesReceived : " + bytesReceived);
93,114
protected ResourceHandle createSingleResource(ResourceAllocator resourceAllocator) throws PoolingException {<NEW_LINE>ResourceHandle resourceHandle;<NEW_LINE>int count = 0;<NEW_LINE>long startTime;<NEW_LINE>while (true) {<NEW_LINE>try {<NEW_LINE>count++;<NEW_LINE>startTime = System.currentTimeMillis();<NEW_LINE>resourc...
.currentTimeMillis() - startTime });
43,579
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) throws Exception {<NEW_LINE>// Since we use length based framing, any exception reading in TCP<NEW_LINE>// stream has the high likelihood of us getting out of sync on the<NEW_LINE>// stream, and not being able to recover. So close the connection an...
LOGGER_BAN.info("TLS Ban: {}", remote);
716,426
public boolean validate() throws ContractValidateException {<NEW_LINE>if (this.any == null) {<NEW_LINE>throw new ContractValidateException(ActuatorConstant.CONTRACT_NOT_EXIST);<NEW_LINE>}<NEW_LINE>if (chainBaseManager == null) {<NEW_LINE>throw new ContractValidateException("No account store or witness store!");<NEW_LIN...
any.getClass() + "]");
1,068,350
final CreateRuleResult executeCreateRule(CreateRuleRequest createRuleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRuleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
false), new CreateRuleResultJsonUnmarshaller());
1,248,244
private void updateButtons(final boolean playing) {<NEW_LINE>Timber.d("Updating buttons");<NEW_LINE>runOnUiThread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>mPoster.setKeepScreenOn(playing);<NEW_LINE>if (!playing) {<NEW_LINE>mPlayPauseButton.setImageResource(R.drawable.ic_play);...
).getCurrentAudioQueueSize() > 1);
161,371
public void FNTBuilder(InputStream fontStream) throws FontFormatException, IOException {<NEW_LINE>this.inputFormat = InputFontFormat.FORMAT_BMFONT;<NEW_LINE>bmfont = new BMFont();<NEW_LINE>// parse BMFont file<NEW_LINE>try {<NEW_LINE>bmfont.parse(fontStream);<NEW_LINE>} catch (BMFontFormatException e) {<NEW_LINE>throw ...
Math.max(descent, maxDescent);
1,721,534
public Long generateNewDPAE(Employee employee) throws AxelorException {<NEW_LINE>EmploymentContract mainEmploymentContract = employee.getMainEmploymentContract();<NEW_LINE>if (mainEmploymentContract == null) {<NEW_LINE>throw new AxelorException(TraceBackRepository.CATEGORY_MISSING_FIELD, I18n.get(IExceptionMessage.EMPL...
getHrConfig().getHealthServiceAddress());
261,451
ActionResult<Object> execute(HttpServletRequest request, EffectivePerson effectivePerson, String flag, String client, String token, JsonElement jsonElement) throws Exception {<NEW_LINE>LOGGER.debug("{} invoke :{}.", effectivePerson.getDistinguishedName(), flag);<NEW_LINE>CacheCategory cacheCategory = new CacheCategory(...
.substringAfter(content, SPLIT));
1,313,212
public void waitForCompletion(HeadMountable hm, CompletionType completionType) throws Exception {<NEW_LINE>if (!(completionType.isUnconditionalCoordination() || isMotionPending())) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String command = <MASK><NEW_LINE>if (command != null) {<NEW_LINE>sendGcode(command, completionType =...
getCommand(hm, CommandType.MOVE_TO_COMPLETE_COMMAND);
85,691
protected // Returns an error string on failure, or returns null if successful.<NEW_LINE>String sendListing(String listing) {<NEW_LINE>if (sessionThread.openDataSocket()) {<NEW_LINE>Log.d(TAG, "LIST/NLST done making socket");<NEW_LINE>} else {<NEW_LINE>sessionThread.closeDataSocket();<NEW_LINE>return "425 Error opening...
Log.d(TAG, "sendViaDataSocket failure");
1,742,047
private void scrollAccordingToScrollTarget(com.google.gwt.dom.client.Element scrollTarget) {<NEW_LINE>if (scrollTarget == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int newFirstIndex = -1;<NEW_LINE>// Scroll left.<NEW_LINE>if (hasScrolledTabs() && scrollTarget == scrollerPrev) {<NEW_LINE>newFirstIndex = tb.scrollLeft...
currentFirst = tb.getTab(newFirstIndex);
1,010,051
public UpdateVoiceChannelResult updateVoiceChannel(UpdateVoiceChannelRequest updateVoiceChannelRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateVoiceChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.g...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
1,333,504
public ViewGroup onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>LinearLayout view = new LinearLayout(getContext());<NEW_LINE><MASK><NEW_LINE>LinearLayout auto_layout = new LinearLayout(getContext());<NEW_LINE>auto_layout.setOrientation(Linea...
view.setOrientation(LinearLayout.VERTICAL);
1,068,869
public void performCardAction(View view) {<NEW_LINE>if (this.mSmartSpaceCard.getTapAction() == null) {<NEW_LINE>Log.<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Intent intent = new Intent(this.getIntent());<NEW_LINE>Launcher launcher = Launcher.getLauncher(view.getContext());<NEW_LINE>switch(this.mSmartSpaceCard.getTapA...
e("SmartspaceCardView", "no tap action available: " + this);
1,824,242
private static boolean needsFontBaseSize(String text) {<NEW_LINE>if (tagsUseFontSizeSet == null) {<NEW_LINE>// tags that use font-size in javax/swing/text/html/default.css<NEW_LINE>tagsUseFontSizeSet = new HashSet<>(Arrays.asList("h1", "h2", "h3", "h4", "h5", "h6", "code", "kbd", "big", "small", "samp"));<NEW_LINE>}<NE...
tagBegin, i).toLowerCase();
551,045
protected ResolvedType convertToUsage(Type type, Context context) {<NEW_LINE>if (context == null) {<NEW_LINE>throw new NullPointerException("Context should not be null");<NEW_LINE>}<NEW_LINE>if (type.isUnknownType()) {<NEW_LINE>throw new IllegalArgumentException("Inferred lambda parameter type");<NEW_LINE>} else if (ty...
getClass().getCanonicalName());
240,968
public void draw(CommandProcess process, StackModel result) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(ThreadUtil.getThreadTitle(result)).append("\n");<NEW_LINE>StackTraceElement[] stackTraceElements = result.getStackTrace();<NEW_LINE>StackTraceElement locationStackTraceElement = stackTraceEl...
), locationStackTraceElement.getMethodName());
1,552,852
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>int amount = controller.rollDice(outcome, source, game, 6);<NEW_LINE>Effect effect = null;<NEW_LINE>// 2 - A card named Goblin Tutor<NEW_LINE>// 3 - An enc...
, StaticFilters.FILTER_CARD_ARTIFACT), true);
1,605,393
public void destroy() {<NEW_LINE>if (logger.isInfoEnabled()) {<NEW_LINE>logger.info("Destroying protocol [" + this.getClass(<MASK><NEW_LINE>}<NEW_LINE>super.destroy();<NEW_LINE>if (connectionMonitor != null) {<NEW_LINE>connectionMonitor.shutdown();<NEW_LINE>}<NEW_LINE>for (Map.Entry<String, ProtocolServer> entry : serv...
).getSimpleName() + "] ...");
1,060,017
public static DescribeDBClustersWithBackupsResponse unmarshall(DescribeDBClustersWithBackupsResponse describeDBClustersWithBackupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDBClustersWithBackupsResponse.setRequestId(_ctx.stringValue("DescribeDBClustersWithBackupsResponse.RequestId"));<NEW_LINE>describeDBClu...
("DescribeDBClustersWithBackupsResponse.Items[" + i + "].DeletedTime"));
1,463,399
public void activateDeferred() {<NEW_LINE>if (cannotLaunch())<NEW_LINE>return;<NEW_LINE>Direction facing = getFacing();<NEW_LINE>List<Entity> entities = level.getEntitiesOfClass(Entity.class, new AABB(worldPosition).inflate(-1 / 16f, <MASK><NEW_LINE>// Launch Items<NEW_LINE>boolean doLogic = !level.isClientSide || isVi...
0, -1 / 16f));
934,446
public static ModuleList findOrCreateModuleListFromSuite(File root, File customNbDestDir) throws IOException {<NEW_LINE>PropertyEvaluator eval = parseSuiteProperties(root);<NEW_LINE>File nbdestdir = resolveNbDestDir(root, customNbDestDir, eval);<NEW_LINE>Set<ClusterInfo> clup = ClusterUtils.evaluateClusterPath(root, ev...
size()]), root);
260,435
final UpdateThingRuntimeConfigurationResult executeUpdateThingRuntimeConfiguration(UpdateThingRuntimeConfigurationRequest updateThingRuntimeConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateThingRuntimeConfigurationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,153,353
public Mono<Void> then() {<NEW_LINE>if (!channel().isActive()) {<NEW_LINE>return Mono.error(AbortedException.beforeSend());<NEW_LINE>}<NEW_LINE>if (hasSentHeaders()) {<NEW_LINE>return Mono.empty();<NEW_LINE>}<NEW_LINE>return FutureMono.deferFuture(() -> {<NEW_LINE>if (markSentHeaders(outboundHttpMessage())) {<NEW_LINE>...
msg = newFullBodyMessage(Unpooled.EMPTY_BUFFER);
268,430
private IModelTranslation retrieveTrl(final ResultSet rs, final POTrlInfo trlInfo) throws SQLException {<NEW_LINE>final ImmutableMap.Builder<String, String> trlMapBuilder = ImmutableMap.builder();<NEW_LINE>for (final String columnName : trlInfo.getTranslatedColumnNames()) {<NEW_LINE>final String value = rs.getString(co...
trlMapBuilder.put(columnName, value);
639,580
protected List<Pair<Integer, Integer>> doGenerateEdges() {<NEW_LINE>final int edgesPerNewNode = getConfiguration().getEdgesPerNewNode();<NEW_LINE>final long numberOfNodes = getConfiguration().getNumberOfNodes();<NEW_LINE>// Create a completely connected network<NEW_LINE>final List<Pair<Integer, Integer>> edges = new Co...
.of(target, source));
1,640,293
public static void dicomWebRetrieveRendered(String dicomStoreName, String dicomWebPath) throws IOException {<NEW_LINE>// String dicomStoreName =<NEW_LINE>// String.format(<NEW_LINE>// DICOM_NAME, "your-project-id", "your-region-id", "your-dataset-id", "your-dicom-id");<NEW_LINE>// String dicomWebPath = String.format(DI...
out.println("DICOM rendered PNG image written to file " + outputPath);
1,355,642
public void run() {<NEW_LINE>JFXPanel panel = new JFXPanel();<NEW_LINE>// Create a WebView and WebEngine to display the captcha from challengeURL.<NEW_LINE>WebView view = new WebView();<NEW_LINE>WebEngine engine = view.getEngine();<NEW_LINE>// Set UserAgent so the captcha shows correctly in the WebView.<NEW_LINE>engine...
e("Main", "Error while solving captcha!", e);
1,189,996
public Result call() throws Exception {<NEW_LINE>if (className == null || className.isEmpty())<NEW_LINE>throw new IllegalStateException("No class specified");<NEW_LINE>if (!getWorkspace().getPrimary().getClasses().containsKey(className))<NEW_LINE>throw new IllegalStateException("No class by the name '" + className + "'...
MethodAssembler(className, getController());
1,362,815
final DescribeComponentConfigurationResult executeDescribeComponentConfiguration(DescribeComponentConfigurationRequest describeComponentConfigurationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeComponentConfigurationRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEven...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
243,348
private Method findViaSetAccessible(CacheKey cacheKey, Class<?> aClass, String methodName, boolean dfeInUse) throws NoSuchMethodException {<NEW_LINE>if (!USE_SET_ACCESSIBLE.get()) {<NEW_LINE>throw new FastNoSuchMethodException(methodName);<NEW_LINE>}<NEW_LINE>Class<?> currentClass = aClass;<NEW_LINE>while (currentClass...
).min(mostMethodArgsFirst());
1,025,090
private void save(ServerIntIntRow row, PSMatrixSaveContext saveContext, MatrixPartitionMeta meta, DataOutputStream out) throws IOException {<NEW_LINE>int startCol = <MASK><NEW_LINE>IntIntVector vector = ServerRowUtils.getVector(row);<NEW_LINE>IntIntElement element = new IntIntElement();<NEW_LINE>if (vector.isDense()) {...
(int) meta.getStartCol();
1,669,276
public boolean publish(Amenity object) {<NEW_LINE>if (phrase.getSettings().isExportObjects()) {<NEW_LINE>resultMatcher.exportObject(phrase, object);<NEW_LINE>}<NEW_LINE>SearchResult res = new SearchResult(phrase);<NEW_LINE>String poiID = object.getType().getKeyName() + "_" + object.getId();<NEW_LINE>if (!searchedPois.a...
res, "", null, countExtraWords);
652,610
public void shutdown(final String jobName, final String serverIp) {<NEW_LINE>Preconditions.checkArgument(null != jobName || null != serverIp, "At least indicate jobName or serverIp.");<NEW_LINE>if (null != jobName && null != serverIp) {<NEW_LINE>JobNodePath jobNodePath = new JobNodePath(jobName);<NEW_LINE>for (String e...
(jobNodePath.getInstanceNodePath(each));
1,781,831
private void captureTablesPK(Database db, HashMap<String, Table> tables) throws SQLException {<NEW_LINE>pkPreparedStatement.setString(1, db.getName());<NEW_LINE>HashMap<String, ArrayList<String>> tablePKMap = new HashMap<>();<NEW_LINE>try (ResultSet rs = pkPreparedStatement.executeQuery()) {<NEW_LINE>for (String tableN...
pkList = tablePKMap.get(tableName);
1,513,659
public static SparseMatrix text(Path path) throws IOException {<NEW_LINE>try (InputStream stream = Files.newInputStream(path);<NEW_LINE>Scanner scanner = new Scanner(stream)) {<NEW_LINE>int nrow = scanner.nextInt();<NEW_LINE>int ncol = scanner.nextInt();<NEW_LINE>int nz = scanner.nextInt();<NEW_LINE>int[] colIndex = ne...
] rowIndex = new int[nz];
695,003
public static long[] copy(long[] v, int mincap, int shift) {<NEW_LINE>int words = ((mincap - 1) >>> LONG_LOG2_SIZE) + 1;<NEW_LINE>if (v.length == words && shift == 0) {<NEW_LINE>return Arrays.copyOf(v, v.length);<NEW_LINE>}<NEW_LINE>long[<MASK><NEW_LINE>final int shiftWords = shift >>> LONG_LOG2_SIZE;<NEW_LINE>final in...
] ret = new long[words];
1,119,246
private void indexFile(boolean registerInGPX, File f) {<NEW_LINE>if (f.getName().endsWith(THREEGP_EXTENSION) || f.getName().endsWith(MPEG4_EXTENSION) || f.getName().endsWith(IMG_EXTENSION)) {<NEW_LINE>boolean newFileIndexed = indexSingleFile(f);<NEW_LINE>if (newFileIndexed && registerInGPX) {<NEW_LINE>Recording rec = r...
SavingTrackHelper savingTrackHelper = app.getSavingTrackHelper();
277,815
static List<MergeRange> doCompare(@Nonnull List<Line> lines1, @Nonnull List<Line> lines2, @Nonnull List<Line> lines3, @Nonnull ComparisonPolicy policy, @Nonnull ProgressIndicator indicator) {<NEW_LINE>indicator.checkCanceled();<NEW_LINE>List<Line> <MASK><NEW_LINE>List<Line> iwLines2 = convertMode(lines2, IGNORE_WHITESP...
iwLines1 = convertMode(lines1, IGNORE_WHITESPACES);
1,683,353
private AndroidCompletedTransfer extractAndroidCompletedTransfer(Cursor cursor) {<NEW_LINE>long id = Integer.parseInt(cursor.getString(0));<NEW_LINE>String filename = decrypt(cursor.getString(1));<NEW_LINE>String type = decrypt(cursor.getString(2));<NEW_LINE>int typeInt = Integer.parseInt(type);<NEW_LINE>String state =...
timeStamp, error, originalPath, parentHandle);
1,774,933
private void updateTabBorder() {<NEW_LINE>if (!myProject.isOpen())<NEW_LINE>return;<NEW_LINE>ToolWindowManagerEx mgr = (ToolWindowManagerEx) ToolWindowManager.getInstance(myProject);<NEW_LINE>String[] ids = mgr.getToolWindowIds();<NEW_LINE>Insets border = JBUI.emptyInsets();<NEW_LINE>UISettings uiSettings = UISettings....
mgr.getIdsOn(ToolWindowAnchor.TOP);
313,589
private static GlyphSequence elideControls(GlyphSequence gs) {<NEW_LINE>if (hasElidableControl(gs)) {<NEW_LINE>int[] ca = gs.getCharacterArray(false);<NEW_LINE>IntBuffer ngb = IntBuffer.allocate(gs.getGlyphCount());<NEW_LINE>List nal = new java.util.ArrayList(gs.getGlyphCount());<NEW_LINE>for (int i = 0, n = gs.getGlyp...
(gs.getGlyph(i));
680,970
public List<CityItem> searchCities(final OsmandApplication app, final String text) throws IOException {<NEW_LINE>IndexItem worldBaseMapItem = app.getDownloadThread().getIndexes().getWorldBaseMapItem();<NEW_LINE>if (worldBaseMapItem == null || !worldBaseMapItem.isDownloaded()) {<NEW_LINE>return new ArrayList<>();<NEW_LI...
String subType = amenity.getSubType();
684,051
public boolean checkAtInjectValidatorFactory() {<NEW_LINE>Validator validator = injectedValidatorFactory.getValidator();<NEW_LINE>Set<ConstraintViolation<AValidationXMLTestBean1>> cvSet = validator.validate(this);<NEW_LINE>if (cvSet != null && !cvSet.isEmpty()) {<NEW_LINE>svLogger.log(Level.INFO, CLASS_NAME, "found " +...
+ "when there should have been 2: " + formatConstraintViolations(cvSet));
978,167
public void underlineText(int color, float width, AnnotationType type) {<NEW_LINE>if (ctr == null || ctr.getDocumentController() == null || ctr.getDocumentModel() == null) {<NEW_LINE>LOG.d("Can't underlineText");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int first = ctr<MASK><NEW_LINE>final int last = ctr.getDocumentC...
.getDocumentController().getFirstVisiblePage();
1,486,141
Description check(Type targetType, ExpressionTree init) {<NEW_LINE>if (init == null || targetType == null) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>if (ASTHelpers.constValue(init) != null) {<NEW_LINE>return NO_MATCH;<NEW_LINE>}<NEW_LINE>if (targetType.getKind() != TypeKind.LONG) {<NEW_LINE>return NO_MATCH;<NEW_L...
.getRightOperand(), "L"));
1,309,324
public Object execute(Object[] parameters) {<NEW_LINE>StructuredQuery.Builder builder = createBuilderWithFilter(parameters);<NEW_LINE>// Handle Pageable parameters.<NEW_LINE>if (!getQueryMethod().getParameters().isEmpty()) {<NEW_LINE>ParameterAccessor paramAccessor = new ParametersParameterAccessor(getQueryMethod().get...
.addAllOrderBy(createFirestoreSortOrders(sort));