idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,367,003
final BatchCreateAttendeeResult executeBatchCreateAttendee(BatchCreateAttendeeRequest batchCreateAttendeeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchCreateAttendeeRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<BatchCreat...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
196,329
public void onSuccess(String result) {<NEW_LINE>int comma = result.indexOf(",");<NEW_LINE>if (comma < 0) {<NEW_LINE>OdeLog.log("screenshot invalid");<NEW_LINE>next.run();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Strip off url header<NEW_LINE>result = result.substring(comma + 1);<NEW_LINE>String screenShotName = fileNode...
OdeLog.log("ScreenShotName = " + screenShotName);
373,527
// -------------------------------------------- Methods from ConfigProcessor<NEW_LINE>@Override<NEW_LINE>public void process(ServletContext sc, DocumentInfo[] documentInfos) {<NEW_LINE>for (int i = 0, length = documentInfos.length; i < length; i++) {<NEW_LINE>if (LOGGER.isLoggable(Level.FINE)) {<NEW_LINE>LOGGER.log(Lev...
], documentElement, namespace, compiler);
1,263,172
public boolean copySlides(Long originDisplayId, Long displayId, User user) {<NEW_LINE>// copy slide entity<NEW_LINE>List<DisplaySlide> originSlides = displaySlideMapper.selectByDisplayId(originDisplayId);<NEW_LINE>if (CollectionUtils.isEmpty(originSlides)) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>List<RelModelCopy> ...
, mem.getId()));
525,854
public void showAddRemoteDialog() {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(mActivity);<NEW_LINE>LayoutInflater inflater = mActivity.getLayoutInflater();<NEW_LINE>View layout = inflater.inflate(R.layout.dialog_add_remote, null);<NEW_LINE>final EditText remoteName = (EditText) layout.findViewById(...
.getText().toString();
268,894
private void checkOwnClaim() {<NEW_LINE>if (claim != null) {<NEW_LINE>boolean isOwnClaim = Lbry.ownClaims.contains(claim);<NEW_LINE>View root = getView();<NEW_LINE>if (root != null) {<NEW_LINE>Helper.setViewVisibility(root.findViewById(R.id.file_view_action_report), isOwnClaim ? View.GONE : View.VISIBLE);<NEW_LINE>Help...
findViewById(R.id.file_view_actions_area);
1,216,685
private MSPData parse(String source) {<NEW_LINE>Scanner sc = new Scanner(source);<NEW_LINE>mspdata = new MSPData();<NEW_LINE>mspdata.numberOfMeetings = sc.nextInt();<NEW_LINE>sc.nextLine();<NEW_LINE>mspdata.numberOfAgents = sc.nextInt();<NEW_LINE>sc.nextLine();<NEW_LINE>mspdata.numberOfMeetingPerAgent = sc.nextInt();<N...
j] = sc.nextInt();
1,193,715
final void executeRespondDecisionTaskCompleted(RespondDecisionTaskCompletedRequest respondDecisionTaskCompletedRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(respondDecisionTaskCompletedRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
endClientExecution(awsRequestMetrics, request, response);
867,392
protected void performWorkload(BaseSubscriber<CosmosItemResponse> baseSubscriber, long i) throws InterruptedException {<NEW_LINE>String id = uuid + i;<NEW_LINE><MASK><NEW_LINE>PojoizedJson newDoc = BenchmarkHelper.generateDocument(id, dataFieldValue, partitionKey, configuration.getDocumentDataFieldCount());<NEW_LINE>fo...
Mono<CosmosItemResponse<PojoizedJson>> obs;
370,284
private CaptureDescription cloneCurrentSettings() {<NEW_LINE>Objects.requireNonNull(this.currentSettings);<NEW_LINE>CaptureDescription clone = new CaptureDescription();<NEW_LINE>clone.withSizeLimitInBytes(this.currentSettings.sizeLimitInBytes());<NEW_LINE>clone.withSkipEmptyArchives(this.currentSettings.skipEmptyArchiv...
this.currentSettings.encoding());
99,283
public void init(ICommonActionExtensionSite aSite) {<NEW_LINE>site = aSite;<NEW_LINE>super.init(aSite);<NEW_LINE>final StructuredViewer viewer = aSite.getStructuredViewer();<NEW_LINE>final BugContentProvider provider = BugContentProvider.getProvider(site.getContentService());<NEW_LINE>filterChangeListener = new IProper...
getWorkspace().getRoot());
753,024
protected void writeResponse(BaseRequest request, BaseResponse response, HttpResponseStatus status) {<NEW_LINE>// if (HttpHeaders.is100ContinueExpected(request.getRequest())) {<NEW_LINE>// ctx.write(new DefaultFullHttpResponse(HttpVersion.HTTP_1_1,<NEW_LINE>// HttpResponseStatus.CONTINUE));<NEW_LINE>// }<NEW_LINE>FullH...
LOG.warn("get exception.", e);
767,614
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@audit @name('ctx') @public create context MyTermByUnrelated partition by theString from SupportBean(intPrimitive=0) terminated by SupportBean", path);<NEW_LINE>env.compileDeploy("@name('s0') co...
assertFilterSvcCount(env, 0, "ctx");
1,669,825
public void actionPerformed(AnActionEvent e) {<NEW_LINE>final VirtualFile projectFile = findProjectFile(e);<NEW_LINE>if (projectFile == null) {<NEW_LINE>FlutterMessages.showError("Error Opening Android Studio", "Project not found.", e.getProject());<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int modifiers = e.getModifi...
getProject(), sourceFile, forceOpenInNewFrame);
1,183,356
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>// Use id to get the correct spell in case of copied spells<NEW_LINE>Spell sourceSpell = game.getStack().<MASK><NEW_LINE>if (player == null || sourceSpell == null) {<NEW_LINE>return false;<NEW_L...
getSpell(source.getId());
998,470
private List<ContainerElementChange> parseChanges(JsonObject jsonObject, JsonDeserializationContext context, ContainerType containerType) {<NEW_LINE>List<ContainerElementChange> result = new ArrayList<>();<NEW_LINE>JsonArray array = jsonObject.getAsJsonArray(CHANGES_FIELD);<NEW_LINE>for (JsonElement e : array) {<NEW_LI...
get(ELEMENT_CHANGE_TYPE_FIELD).getAsString();
1,019,627
public void run() {<NEW_LINE>final Optional<String> sheetId = Optional.ofNullable(idParam.orElse(idConfig.orElse(null)));<NEW_LINE>if (!sheetId.isPresent()) {<NEW_LINE>Result.MISSINGNO.send(response, null);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (!idParam.isPresent()) {<NEW_LINE>if (!syncRegistrarsSheet.wereRegistrars...
FAILED.send(response, e);
622,171
private static Hashtable<String, String> createEnvironmentFromProperties() {<NEW_LINE>String factory = System.getProperty("factory", "com.sun.jndi.ldap.LdapCtxFactory");<NEW_LINE>String authType = System.getProperty("authType", "none");<NEW_LINE>String url = System.getProperty("url");<NEW_LINE>String user = System.getP...
System.getProperty(QUERY, user);
1,689,001
private static Trackable createTrackableFromDatabaseContent(final Cursor cursor) {<NEW_LINE>final Trackable trackable = new Trackable();<NEW_LINE>try {<NEW_LINE>trackable.setGeocode(cursor.getString(<MASK><NEW_LINE>trackable.setGuid(cursor.getString(cursor.getColumnIndexOrThrow("guid")));<NEW_LINE>trackable.setName(cur...
cursor.getColumnIndexOrThrow("tbcode")));
1,400,204
public static final void forwardJSMessage(JsMessage jsMsg, SIBUuid8 targetMEUuid, String destName, boolean temporary) {<NEW_LINE>if (jsMsg.isApiMessage()) {<NEW_LINE>String apiMsgId = null;<NEW_LINE>String correlationId = null;<NEW_LINE>String msg = "MESSAGE_FORWARDED_CWSJU0022";<NEW_LINE>if (temporary)<NEW_LINE>msg = ...
JsApiMessage) jsMsg).getApiMessageId();
459,723
public ParseException generateParseException() {<NEW_LINE>jj_expentries.clear();<NEW_LINE>boolean[] la1tokens = new boolean[19];<NEW_LINE>if (jj_kind >= 0) {<NEW_LINE>la1tokens[jj_kind] = true;<NEW_LINE>jj_kind = -1;<NEW_LINE>}<NEW_LINE>for (int i = 0; i < 6; i++) {<NEW_LINE>if (jj_la1[i] == jj_gen) {<NEW_LINE>for (int...
jj_expentries.size()][];
836,869
public ASTNode visitCreateTableAsSelectClause(final CreateTableAsSelectClauseContext ctx) {<NEW_LINE>SQLServerCreateTableStatement result = new SQLServerCreateTableStatement();<NEW_LINE>if (null != ctx.createTableAsSelect()) {<NEW_LINE>result.setTable((SimpleTableSegment) visit(ctx.createTableAsSelect<MASK><NEW_LINE>re...
().tableName()));
1,175,970
public void execute(RequestContext requestContext) {<NEW_LINE>StringBuilder sBuilder = new StringBuilder(512);<NEW_LINE>try {<NEW_LINE>HttpServletRequest req = requestContext.getReq();<NEW_LINE>if (this.master.isStopped()) {<NEW_LINE>throw new Exception("Sever is stopping...");<NEW_LINE>}<NEW_LINE>MetaDataService defMe...
"sb", sBuilder.toString());
1,825,641
public RelWriter explainTermsForDisplay(RelWriter pw) {<NEW_LINE>pw.item(RelDrdsWriter.REL_NAME, "MysqlLimit");<NEW_LINE>assert fieldExps.size() == collation.getFieldCollations().size();<NEW_LINE>if (pw.nest()) {<NEW_LINE>pw.item("collation", collation);<NEW_LINE>} else {<NEW_LINE>List<String> sortList = new ArrayList<...
RexExplainVisitor visitor = new RexExplainVisitor(this);
425,266
public static void uncompressDirectory(final InputStream in, final String out, final OCommandOutputListener iListener) throws IOException {<NEW_LINE>final File outdir = new File(out);<NEW_LINE>final String targetDirPath = outdir.getCanonicalPath() + File.separator;<NEW_LINE>try (ZipInputStream zin = new ZipInputStream(...
) + "' would create file outside of directory '" + outdir + "'");
1,106,093
final DeleteBlueprintResult executeDeleteBlueprint(DeleteBlueprintRequest deleteBlueprintRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteBlueprintRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
(super.beforeMarshalling(deleteBlueprintRequest));
477,773
static // / @brief Print the solution.<NEW_LINE>void printSolution(DataModel data, RoutingModel routing, RoutingIndexManager manager, Assignment solution) {<NEW_LINE>// Solution cost.<NEW_LINE>logger.info("Objective: " + solution.objectiveValue());<NEW_LINE>// Inspect solution.<NEW_LINE>long totalDistance = 0;<NEW_LINE...
info("Total distance of all routes: " + totalDistance + "m");
769,747
private static void applyLanguage(final Activity activity) {<NEW_LINE>synchronized (mDefaultLocale) {<NEW_LINE>if (mDefaultLocale.get() == null) {<NEW_LINE>mDefaultLocale.set(Locale.getDefault());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>final String lang = getString(R.string.pref_appearance_langforce_key, "auto");<NEW_LINE>for ...
conf, mDefaultLocale.get());
1,154,164
final DescribePendingMaintenanceActionsResult executeDescribePendingMaintenanceActions(DescribePendingMaintenanceActionsRequest describePendingMaintenanceActionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePendingMaintenanceActionsRequest);<NEW_LINE>AWSRequestMetrics awsRequest...
invoke(request, responseHandler, executionContext);
1,416,634
public void deleteNode(String userName, AbstractAppConnNode node) throws ExternalOperationFailedException {<NEW_LINE>NodeInfo nodeInfo = nodeInfoMapper.getWorkflowNodeByType(node.getNodeType());<NEW_LINE>AppConn appConn = AppConnManager.getAppConnManager().getAppConn(nodeInfo.getAppConnName());<NEW_LINE>DevelopmentInte...
appInstance = getAppInstance(appConn, label);
1,652,633
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>log.info("Post from " + request.getRemoteHost() + " - " + request.getRemoteAddr());<NEW_LINE>// Get Session attributes<NEW_LINE>HttpSession <MASK><NEW_LINE>session.removeAttribute(WebSessionCtx.H...
session = request.getSession(true);
1,573,462
protected ECPoint.Fp twiceJacobianModified(boolean calculateW) {<NEW_LINE>ECFieldElement X1 = this.x, Y1 = this.y, Z1 = this.zs[0], W1 = getJacobianModifiedW();<NEW_LINE>ECFieldElement X1Squared = X1.square();<NEW_LINE>ECFieldElement M = three(X1Squared).add(W1);<NEW_LINE>ECFieldElement _2Y1 = two(Y1);<NEW_LINE>ECField...
.subtract(two(S));
845,321
public void addShortcut(LayoutElementParcelable path) {<NEW_LINE>// Adding shortcut for MainActivity<NEW_LINE>// on Home screen<NEW_LINE>final Context ctx = getContext();<NEW_LINE>if (!ShortcutManagerCompat.isRequestPinShortcutSupported(ctx)) {<NEW_LINE>Toast.makeText(getActivity(), getString(R.string.add_shortcut_not_...
requestPinShortcut(ctx, info, null);
146,689
protected void interceptInputHeader() {<NEW_LINE>if (!interceptDebugEnabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Enumeration<String> headerNames = strategyContextHolder.getHeaderNames();<NEW_LINE>if (headerNames != null) {<NEW_LINE>InterceptorType interceptorType = getInterceptorType();<NEW_LINE>switch(interceptorTy...
System.out.println("----- RestTemplate Intercept Input Header Information ------");
63,251
public InsertsStreamSubscriber createInsertsSubscriber(final String caseInsensitiveTarget, final JsonObject properties, final Subscriber<InsertResult> acksSubscriber, final Context context, final WorkerExecutor workerExecutor, final ServiceContext serviceContext) {<NEW_LINE>VertxUtils.checkIsWorker();<NEW_LINE>if (!ksq...
"The server has disabled INSERT INTO ... VALUES functionality. " + "To enable it, restart your ksqlDB server " + "with 'ksql.insert.into.values.enabled'=true", ERROR_CODE_BAD_REQUEST);
1,397,944
public static QuerySingleActivityInfoResponse unmarshall(QuerySingleActivityInfoResponse querySingleActivityInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>querySingleActivityInfoResponse.setRequestId(_ctx.stringValue("QuerySingleActivityInfoResponse.RequestId"));<NEW_LINE>querySingleActivityInfoResponse.setCode(_ct...
= new ArrayList<DataItem>();
51,166
public Datasource createDatasource(final String jndiName, final String url, final String username, final String password, final String driver) throws UnsupportedOperationException, ConfigurationException, DatasourceAlreadyExistsException {<NEW_LINE>Datasource ds = null;<NEW_LINE>File resourceDir = module.getResourceDir...
password, driver, resourceDir, "sun-resources");
728,464
public void onClick(View view) {<NEW_LINE>if (holder.isFavorited || !settings.crossAccActions) {<NEW_LINE>new FavoriteStatus(holder, holder.tweetId, !secondAcc ? FavoriteStatus.TYPE_ACC_ONE : FavoriteStatus.TYPE_ACC_TWO).execute();<NEW_LINE>} else {<NEW_LINE>// dialog for favoriting<NEW_LINE>String[<MASK><NEW_LINE>opti...
] options = new String[3];
241,945
public static boolean enablePlugin(@Nullable Activity activity, @NonNull OsmandApplication app, @NonNull OsmandPlugin plugin, boolean enable) {<NEW_LINE>if (enable) {<NEW_LINE>if (!plugin.init(app, activity)) {<NEW_LINE>plugin.setEnabled(false);<NEW_LINE>return false;<NEW_LINE>} else {<NEW_LINE>plugin.setEnabled(true);...
final MapActivity mapActivity = (MapActivity) activity;
929,263
protected void printUniqueKey(JavaWriter out, int uniqueKeyCounter, UniqueKeyDefinition uniqueKey, boolean distributeUniqueKeys) {<NEW_LINE>final int block = uniqueKeyCounter / maxMembersPerInitialiser();<NEW_LINE>// Print new nested class<NEW_LINE>if (distributeUniqueKeys && uniqueKeyCounter % maxMembersPerInitialiser...
out.println("private static class UniqueKeys%s {", block);
1,170,697
public Flux<NumericResponse<ZInterStoreCommand, Long>> zInterStore(Publisher<ZInterStoreCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Destination key must not be null!");<NEW_LINE>Assert.notEmpty(command.getSourceKeys(), "Source keys must not be null or e...
<>(command, v));
544,628
private static void generateSearchMsg(StringBuilder pysb, Class<?> clazz) {<NEW_LINE>String actionName = populateActionName(clazz);<NEW_LINE>pysb.append(String.format("\n\nclass %s(inventory.%s):", actionName, clazz.getSimpleName()));<NEW_LINE>pysb.append(String.format("\n%sdef __init__(self):", whiteSpace(4)));<NEW_LI...
whiteSpace(8), actionName));
69,987
private JavaType createJavaType(Type type) {<NEW_LINE>if (type == null) {<NEW_LINE>return null;<NEW_LINE>} else if (type instanceof JavaType) {<NEW_LINE>return (JavaType) type;<NEW_LINE>} else if (type instanceof ParameterizedType) {<NEW_LINE>final ParameterizedType parameterizedType = (ParameterizedType) type;<NEW_LIN...
= createJavaType(actualTypeArguments[i]);
254,247
public void stop() {<NEW_LINE>int read_wait;<NEW_LINE>List<Object[]> suspended = null;<NEW_LINE>try {<NEW_LINE>this_mon.enter();<NEW_LINE>if (stopped || !started) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>stopped = true;<NEW_LINE>read_wait = async_reads;<NEW_LINE>if (!suspended_requests.isEmpty()) {<NEW_LINE>suspended = n...
long log_time = SystemTime.getCurrentTime();
114,511
public static void main(String[] argv) throws Exception {<NEW_LINE>NoekeonVects bot = new NoekeonVects(0xdefacedbadfacadeL, true, true);<NEW_LINE>NoekeonVects tom = new NoekeonVects(0xdefacedbadfacadeL, false, false);<NEW_LINE>System.out.println("# ECB vectors for indirect Noekeon, in Botan's");<NEW_LINE>System.out.pri...
System.out.println("# Block cipher format is plaintext:ciphertext:key");
1,848,679
public void sendAckMessage(SIBUuid8 sourceMEUuid, SIBUuid12 destUuid, SIBUuid8 busUuid, long ackPrefix, int priority, Reliability reliability, SIBUuid12 stream, boolean consolidate) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "sendAckMe...
ProtocolType.UNICASTOUTPUT, GDConfig.PROTOCOL_VERSION);
42,478
// return -1 for the left side from the infinite line passing through thais<NEW_LINE>// Line, 1 for the right side of the line, 0 if on the line (in the bounds<NEW_LINE>// of the roundoff error)<NEW_LINE>int _side(double ptX, double ptY) {<NEW_LINE>Point2D v1 = new Point2D(ptX, ptY);<NEW_LINE>v1.sub(getStartXY());<NEW_...
getEndXY(), getStartXY());
636,863
public NetworkACLItemResponse createNetworkACLItemResponse(NetworkACLItem aclItem) {<NEW_LINE>NetworkACLItemResponse response = new NetworkACLItemResponse();<NEW_LINE>response.setId(aclItem.getUuid());<NEW_LINE>response.setProtocol(aclItem.getProtocol());<NEW_LINE>if (aclItem.getSourcePortStart() != null) {<NEW_LINE>re...
.getSourceCidrList(), ","));
1,091,601
static File findDeveloperImage(File dsDir, String productVersion, String buildVersion) throws FileNotFoundException {<NEW_LINE>String[] versionParts = getProductVersionParts(productVersion);<NEW_LINE>String[] patterns = new String[] { // 7.0.3 (11B508)<NEW_LINE>// 7.0.3 (*)<NEW_LINE>String.format("%s\\.%s\\.%s \\(%s\\)...
dmg.getName() + ".signature");
1,471,425
public void bind(OCShare publicShare, ShareeListAdapterListener listener) {<NEW_LINE>if (ShareType.EMAIL == publicShare.getShareType()) {<NEW_LINE>binding.name.setText(publicShare.getSharedWithDisplayName());<NEW_LINE>binding.icon.setImageDrawable(ResourcesCompat.getDrawable(context.getResources(), R.drawable.ic_email,...
-> listener.showSharingMenuActionSheet(publicShare));
1,459,688
public void printConfigSettings() {<NEW_LINE>String thisMethod = "printConfigSettings";<NEW_LINE>String indent = " ";<NEW_LINE>Log.info(thisClass, thisMethod, "SSL config settings:");<NEW_LINE>Log.info(thisClass, thisMethod, indent + ATTR_SSL_ID + ": " + id);<NEW_LINE>Log.info(thisClass, thisMethod, indent + ATTR_SSL_...
indent + ATTR_SSL_SSL_PROTOCOL + ": " + sslProtocol);
942,538
public ProcessContinuation processElement(RestrictionTracker<UnboundedSourceRestriction<OutputT, CheckpointT>, UnboundedSourceValue[]> tracker, ManualWatermarkEstimator<Instant> watermarkEstimator, OutputReceiver<ValueWithRecordId<OutputT>> receiver, BundleFinalizer bundleFinalizer) throws IOException {<NEW_LINE>Unboun...
[0].getTimestamp());
1,680,531
static boolean verify(final byte[] message, final byte[] signature, final byte[] publicKey) throws GeneralSecurityException {<NEW_LINE>if (signature.length != SIGNATURE_LEN) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>byte[] s = Arrays.copyOfRange(signature, FIELD_LEN, SIGNATURE_LEN);<NEW_LINE>if (!isSmallerThanGroupO...
EngineFactory.MESSAGE_DIGEST.getInstance("SHA-512");
691,633
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null || controller.getHand().isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>TargetCardInHand targetCard = new TargetCardInHand();<NEW_LINE>if (!controller.chooseTa...
.FaceDownType.MANIFESTED), newSource);
1,546,202
private void init(ResourceGroupInfo resourceGroupInfo) {<NEW_LINE>this.id = requireNonNull(resourceGroupInfo.getId(), "id is null");<NEW_LINE>this.state = requireNonNull(<MASK><NEW_LINE>this.schedulingPolicy = resourceGroupInfo.getSchedulingPolicy();<NEW_LINE>this.schedulingWeight = resourceGroupInfo.getSchedulingWeigh...
resourceGroupInfo.getState(), "state is null");
1,111,571
public void showPopUpNotification(String title, String body, String popUpEvent) {<NEW_LINE>// Shows the pop-up notification.<NEW_LINE>if (title != null && body != null && popUpEvent != null) {<NEW_LINE>NotificationService notificationService = NeomediaActivator.getNotificationService();<NEW_LINE>if (notificationService...
put(NotificationData.POPUP_MESSAGE_HANDLER_TAG_EXTRA, this);
203,798
// POST /api/admin/searchlist/doc<NEW_LINE>@Execute<NEW_LINE>public JsonResponse<ApiResult> post$doc(final EditBody body) {<NEW_LINE>validateApi(body, messages -> {<NEW_LINE>});<NEW_LINE>if (body.doc == null) {<NEW_LINE>throwValidationErrorApi(messages -> messages.addErrorsCrudFailedToCreateCrudTable(GLOBAL, "doc is re...
searchEngineClient.store(index, entity);
1,070,896
public void testBasicPassivation() throws Exception {<NEW_LINE>SessionIdCache.clearAll();<NEW_LINE>final InitialContext ic = new InitialContext();<NEW_LINE>StatefulSessionBeanLocal sBean = (StatefulSessionBeanLocal) ic.lookup(BeanName);<NEW_LINE>assertNotNull(sBean);<NEW_LINE>final String beanId = sBean.getSessionId();...
.activateList.contains(beanId));
209,560
public synchronized void close() {<NEW_LINE>if (_mmapDirectory != null) {<NEW_LINE>// Move all meta files. We will create new ones when each buffer gets closed.<NEW_LINE>File bakDir = new File(_mmapDirectory.getAbsolutePath() + BAK_DIRNAME_SUFFIX);<NEW_LINE>FilePrefixFilter filter = new <MASK><NEW_LINE>File[] metaFiles...
FilePrefixFilter(DbusEventBuffer.getMmapMetaInfoFileNamePrefix());
1,330,481
public void compute(double[][] seasonMatrix, int sP, int sQ, int season) {<NEW_LINE>int dataLength = TsMethod.seasonMatrix2Array(seasonMatrix).length;<NEW_LINE>// step 1: set residual[i]=0, if i<initPoint; set data[i]=0, if i<initPoint<NEW_LINE>double[] cResidual = new double[seasonMatrix[0].length];<NEW_LINE>// step 2...
.css = problem.getMinValue();
1,684,941
protected void rebalanceClusterOwnership(final String iNode, String databaseName, final OModifiableDistributedConfiguration cfg, final boolean canCreateNewClusters) {<NEW_LINE>final ODistributedConfiguration.ROLES role = cfg.getServerRole(iNode);<NEW_LINE>if (role != ODistributedConfiguration.ROLES.MASTER)<NEW_LINE>// ...
cfg, clazz, availableNodes, canCreateNewClusters);
1,736,630
public static void migrate() {<NEW_LINE>String configVersionRaw = DiscordSRV.<MASK><NEW_LINE>if (configVersionRaw.contains("/"))<NEW_LINE>configVersionRaw = configVersionRaw.substring(0, configVersionRaw.indexOf("/"));<NEW_LINE>String pluginVersionRaw = DiscordSRV.getPlugin().getDescription().getVersion();<NEW_LINE>if ...
config().getString("ConfigVersion");
1,662,831
private void execute(JSDynamicObject obj, Object getterV, Object setterV) {<NEW_LINE>DynamicObjectLibrary dynamicObjectLib = dynamicObjectLibrary();<NEW_LINE>JSDynamicObject getter = (JSDynamicObject) getterV;<NEW_LINE>JSDynamicObject setter = (JSDynamicObject) setterV;<NEW_LINE>if ((getterNode == null || setterNode ==...
? existing.getSetter() : setter;
133,720
protected ServerOperation<HttpClientResponse<O>> requestToOperation(final HttpClientRequest<I> request, final ClientConfig rxClientConfig) {<NEW_LINE>Preconditions.checkNotNull(request);<NEW_LINE>return new ServerOperation<HttpClientResponse<O>>() {<NEW_LINE><NEW_LINE>final AtomicInteger count = new AtomicInteger(0);<N...
Observable<HttpClientResponse<O>> o;
378,318
public void draw(Canvas canvas, CharSequence text, int start, int end, float x, int top, int y, int bottom, Paint paint) {<NEW_LINE>Drawable b = getCachedDrawable();<NEW_LINE>if (b != null) {<NEW_LINE>canvas.save();<NEW_LINE>int transY = bottom <MASK><NEW_LINE>if (mVerticalAlignment == ALIGN_BASELINE) {<NEW_LINE>transY...
- b.getBounds().bottom;
1,823,415
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@public @buseventtype create objectarray schema MyEventOne (d1 String, d2 String, val int);\n" + "@name('s0') select sum(val, group_by: d1) as c0, sum(val, group_by: d2) as c1 from MyEventOne";<NEW_LINE>env.compileDeploy(epl, new RegressionPath()).addL...
cols = "c0,c1".split(",");
855,162
public static void main(String[] args) throws IOException, ApiException {<NEW_LINE>ApiClient client = Config.defaultClient();<NEW_LINE>Configuration.setDefaultApiClient(client);<NEW_LINE>Metrics metrics = new Metrics(client);<NEW_LINE>NodeMetricsList list = metrics.getNodeMetrics();<NEW_LINE>for (NodeMetrics item : lis...
out.println("\t" + key);
743,612
public void onMessageClicked(SpannableStringBuilder formattedMessage, final String userName, final String message) {<NEW_LINE>View v = LayoutInflater.from(getContext()).inflate(R.layout.chat_message_options, null);<NEW_LINE>bottomSheetDialog <MASK><NEW_LINE>bottomSheetDialog.setContentView(v);<NEW_LINE>final BottomShee...
= new BottomSheetDialog(requireContext());
596,432
private void updatePoster() {<NEW_LINE>if (isFinishing())<NEW_LINE>return;<NEW_LINE>// Figure image size<NEW_LINE>Double aspect = ImageUtils.getImageAspectRatio(mBaseItem, false);<NEW_LINE>int posterHeight = aspect > 1 ? Utils.convertDpToPixel(mActivity, 150) : Utils.convertDpToPixel(mActivity, 250);<NEW_LINE>int poste...
this, mBaseItem, false, posterHeight);
1,852,844
public FieldElement multInv() {<NEW_LINE>if (this.getData().equals(BigInteger.ZERO)) {<NEW_LINE>throw new ArithmeticException();<NEW_LINE>}<NEW_LINE>if (this.getData().equals(BigInteger.ONE)) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>// Polynomial EEA:<NEW_LINE>BigInteger r2 = this.getModulus();<NEW_LINE><MASK><NEW_L...
BigInteger r1 = this.getData();
264,088
void init(boolean decrypting, String algorithm, byte[] key) throws InvalidKeyException {<NEW_LINE>int keyLength = key.length;<NEW_LINE>if (effectiveKeyBits == 0) {<NEW_LINE>effectiveKeyBits = keyLength << 3;<NEW_LINE>}<NEW_LINE>checkKey(algorithm, keyLength);<NEW_LINE>// key buffer, the L[] byte array from the spec<NEW...
- t8] = (byte) t;
1,717,672
private boolean tryUpgradeSharedToExclusive(LockTracer tracer, LockWaitEvent waitEvent, ResourceType resourceType, ConcurrentMap<Long, ForsetiLockManager.Lock> lockMap, long resourceId, SharedLock sharedLock, long waitStartNano) throws AcquireLockTimeoutException {<NEW_LINE>int tries = 0;<NEW_LINE>boolean holdsSharedLo...
resourceId, sharedLock, tries, waitStartNano);
69,049
final ListContainerRecipesResult executeListContainerRecipes(ListContainerRecipesRequest listContainerRecipesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listContainerRecipesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
(super.beforeMarshalling(listContainerRecipesRequest));
1,369,863
public void accept(final String bucketId, final RateBucketPeriod period, final long limit, final long increment, final IAsyncResultHandler<RateLimitResponse> handler) {<NEW_LINE>final String id = id(bucketId);<NEW_LINE>try {<NEW_LINE>GetResponse response = getClient().get(new GetRequest(getFullIndexName()).id(id), Requ...
limit - bucket.getCount());
464,220
private void debugDrawPoints(final Canvas canvas, final int startIndex, final int endIndex, final Paint paint) {<NEW_LINE>final int[] xCoords = mXCoordinates.getPrimitiveArray();<NEW_LINE>final int[<MASK><NEW_LINE>final int[] pointTypes = mPointTypes.getPrimitiveArray();<NEW_LINE>// {@link Paint} that is zero width str...
] yCoords = mYCoordinates.getPrimitiveArray();
1,728,012
private boolean createAlignedTimeseries(List<String> seriesList, InsertPlan insertPlan) throws IllegalPathException {<NEW_LINE>List<String> measurements = new ArrayList<>();<NEW_LINE>for (String series : seriesList) {<NEW_LINE>measurements.add((new PartialPath(series)).getMeasurement());<NEW_LINE>}<NEW_LINE>List<TSData...
getConfig().getCompressor());
643,434
static JSONObject createJsonObject(Media media) {<NEW_LINE>JSONObject jsonObject = new JSONObject();<NEW_LINE>if (media.hasBitrate) {<NEW_LINE>jsonObject.put("bitrate", media.bitrate);<NEW_LINE>}<NEW_LINE>jsonObject.put("copyright", media.copyright);<NEW_LINE>jsonObject.put("duration", media.duration);<NEW_LINE>jsonObj...
put("uri", media.uri);
1,491,506
private static boolean checkIfConflictingPaths(@Nonnull VFileEvent event, @Nonnull String path, @Nonnull MostlySingularMultiMap<String, VFileEvent> files, @Nonnull Set<? super String> middleDirs) {<NEW_LINE>Iterable<VFileEvent> stored = files.get(path);<NEW_LINE>if (!canReconcileEvents(event, stored)) {<NEW_LINE>// con...
lastIndexOf('/', li - 1);
1,759,217
public static ListMediasWithPublicResponse unmarshall(ListMediasWithPublicResponse listMediasWithPublicResponse, UnmarshallerContext context) {<NEW_LINE>listMediasWithPublicResponse.setRequestId(context.stringValue("ListMediasWithPublicResponse.RequestId"));<NEW_LINE>listMediasWithPublicResponse.setSuccess(context.bool...
= new ArrayList<Media>();
1,623,816
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
241,337
// DO NOT MODIFY THIS CODE, GENERATED AUTOMATICALLY<NEW_LINE>public static void addClassFilter(com.sun.jdi.request.MonitorWaitRequest a, com.sun.jdi.ReferenceType b) throws org.netbeans.modules.debugger.jpda.jdi.InternalExceptionWrapper, org.netbeans.modules.debugger.jpda.jdi.VMDisconnectedExceptionWrapper {<NEW_LINE>i...
jpda.jdi.InternalExceptionWrapper(ex);
724,840
private void initAccessibility() {<NEW_LINE>this.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(TransformPanel.class, "ACSD_TransformPanel"));<NEW_LINE>overwriteCheckBox.getAccessibleContext().setAccessibleDescription(NbBundle.getMessage(TransformPanel.class, "ACSD_overwriteCheckBox"));<NEW_LINE>ou...
(TransformPanel.class, "ACSD_browseInputButton"));
497,796
public boolean onCreateOptionsMenu(Menu menu) {<NEW_LINE>getMenuInflater().inflate(R.menu.crop_image_menu, menu);<NEW_LINE>if (!mOptions.allowRotation) {<NEW_LINE>menu.removeItem(R.id.crop_image_menu_rotate_left);<NEW_LINE>menu.removeItem(R.id.crop_image_menu_rotate_right);<NEW_LINE>} else if (mOptions.allowCounterRota...
.crop_image_menu_rotate_left).setVisible(true);
1,771,998
public void rip() throws IOException {<NEW_LINE>int page = 0;<NEW_LINE>String baseURL = "https://vine.co/api/timelines/users/" + getGID(this.url);<NEW_LINE>JSONObject json = null;<NEW_LINE>while (true) {<NEW_LINE>page++;<NEW_LINE>String theURL = baseURL;<NEW_LINE>if (page > 1) {<NEW_LINE>theURL += "?page=" + page;<NEW_...
logger.info(" Retrieving " + theURL);
1,644,073
private void drawBackground(Canvas canvas) {<NEW_LINE>RectF rect = mCropWindowHandler.getRect();<NEW_LINE>float left = Math.max(BitmapUtils.getRectLeft(mBoundsPoints), 0);<NEW_LINE>float top = Math.max(BitmapUtils.getRectTop(mBoundsPoints), 0);<NEW_LINE>float right = Math.min(BitmapUtils.getRectRight(mBoundsPoints), ge...
6], mBoundsPoints[7]);
1,839,843
public void saveAs(FileObject folder, String fileName) throws IOException {<NEW_LINE>String fn = FileUtil.getFileDisplayName(folder) + File.separator + fileName;<NEW_LINE>File existingFile = FileUtil.normalizeFile(new File(fn));<NEW_LINE>if (existingFile.exists()) {<NEW_LINE>NotifyDescriptor confirm = new NotifyDescrip...
super.saveAs(folder, fileName);
506,269
private boolean initBulkprocessIfNeed() {<NEW_LINE>try {<NEW_LINE>if (bulkProcessor == null) {<NEW_LINE>EsCallbackListener esListener = new EsCallbackListener(context);<NEW_LINE>BiConsumer<BulkRequest, ActionListener<BulkResponse>> consumer = (request, bulkListener) -> esClient.bulkAsync(request, RequestOptions.DEFAULT...
LOG.error("init esclient failed", e);
446,629
public SuppressedDestination unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SuppressedDestination suppressedDestination = new SuppressedDestination();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
().unmarshall(context));
559,395
public String toGss() throws UnableToCompleteException {<NEW_LINE>try {<NEW_LINE>CssStylesheet sheet = <MASK><NEW_LINE>DefCollectorVisitor defCollectorVisitor = new DefCollectorVisitor(lenient, treeLogger);<NEW_LINE>defCollectorVisitor.accept(sheet);<NEW_LINE>defNameMapping = defCollectorVisitor.getDefMapping();<NEW_LI...
GenerateCssAst.exec(treeLogger, cssFile);
432,166
public Request<GetEffectivePoliciesRequest> marshall(GetEffectivePoliciesRequest getEffectivePoliciesRequest) {<NEW_LINE>if (getEffectivePoliciesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(GetEffectivePoliciesRequest)");<NEW_LINE>}<NEW_LINE>Request<GetEffectivePolici...
String cognitoIdentityPoolId = getEffectivePoliciesRequest.getCognitoIdentityPoolId();
1,057,161
private void readBadges(String url, Map<String, Map<String, Badge>> badgeMap) {<NEW_LINE>try {<NEW_LINE>JSONObject globalBadgeSets = new JSONObject(Service.urlToJSONString(url)).getJSONObject("badge_sets");<NEW_LINE>for (Iterator<String> it = globalBadgeSets.keys(); it.hasNext(); ) {<NEW_LINE>String badgeSet = it.next(...
versionMap = new HashMap<>();
1,240,694
public boolean saveOrUpdateBatch(Collection<T> entityList, int batchSize) {<NEW_LINE>TableInfo tableInfo = TableInfoHelper.getTableInfo(entityClass);<NEW_LINE>Assert.notNull(tableInfo, "error: can not execute. because can not find cache of TableInfo for entity!");<NEW_LINE>String keyProperty = tableInfo.getKeyProperty(...
(SqlMethod.UPDATE_BY_ID), param);
1,378,287
public boolean updateLibrary(final LibraryImplementation oldLibrary, final LibraryImplementation newLibrary) throws IOException {<NEW_LINE>final Libs data = this.initStorage(false);<NEW_LINE>assert this.storage != null : "Storage is not initialized";<NEW_LINE>final String path = data.findPath(oldLibrary);<NEW_LINE>if (...
libraryTypeProvider = ltRegistry.getLibraryTypeProvider(libraryType);
1,379,738
public String loginUser(String username, String password) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");<...
= new ArrayList<Pair>();
682,152
public void run(RegressionEnvironment env) {<NEW_LINE>env.advanceTime(0);<NEW_LINE>String[] fields = "theString,longPrimitive,intPrimitive,thesum".split(",");<NEW_LINE>String epl = "@name('s0') select theString, longPrimitive, intPrimitive, sum(intPrimitive) as thesum from SupportBean#keepall " + "group by theString, l...
env, "C", 0, 13);
303,981
public static void main(String[] args) {<NEW_LINE>String imagePath;<NEW_LINE>imagePath = "eye01.jpg";<NEW_LINE>// imagePath = "small_sunflower.jpg";<NEW_LINE>BufferedImage buffered = UtilImageIO.loadImageNotNull(UtilIO.pathExample(imagePath));<NEW_LINE>var gui = new ListDisplayPanel();<NEW_LINE>gui.addImage(buffered, "...
width / (float) scaled.width;
1,133,377
public void insert(Object key, CacheObject value) {<NEW_LINE>boolean forceInMemory = false;<NEW_LINE>// for (Object cred : value.getSubject().getPrivateCredentials()) {<NEW_LINE>// if ("ClassNameHere".equals(cred.getClass().getSimpleName())) {<NEW_LINE>// forceInMemory = true;<NEW_LINE>// break;<NEW_LINE>// }<NEW_LINE>...
inMemoryCache.insert(key, value);
257,725
private void checkRange(Address start, long size) throws MemoryConflictException, AddressOverflowException {<NEW_LINE>AddressSpace space = start.getAddressSpace();<NEW_LINE>if (!space.isMemorySpace()) {<NEW_LINE>throw new IllegalArgumentException("Invalid memory address for block: " + start.toString(true));<NEW_LINE>}<...
Address imageBase = addrMap.getImageBase();
853,079
private CodegenExpression makeInstrumentationProvider(CodegenMethod method, CodegenClassScope classScope) {<NEW_LINE>if (!instrumented) {<NEW_LINE>return constantNull();<NEW_LINE>}<NEW_LINE>CodegenExpressionNewAnonymousClass anonymousClass = newAnonymousClass(method.getBlock(), InstrumentationCommon.EPTYPE);<NEW_LINE>C...
, classScope).addParam(params);
113,281
private boolean validateNameAndPath(@Nonnull NewModuleWizardContext context) throws WizardStepValidationException {<NEW_LINE>final String name = myNamePathComponent.getNameValue();<NEW_LINE>if (name.length() == 0) {<NEW_LINE>final ApplicationInfo info = ApplicationInfo.getInstance();<NEW_LINE>throw new WizardStepValida...
= (answer == Messages.YES);