idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
642,088
final StartIncidentResult executeStartIncident(StartIncidentRequest startIncidentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startIncidentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
(super.beforeMarshalling(startIncidentRequest));
67,289
public static boolean parseMongoClientSettings(Element element, BeanDefinitionBuilder mongoClientBuilder) {<NEW_LINE>Element settingsElement = <MASK><NEW_LINE>if (settingsElement == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>BeanDefinitionBuilder clientOptionsDefBuilder = BeanDefinitionBuilder.genericBeanDefini...
DomUtils.getChildElementByTagName(element, "client-settings");
1,060,822
public void onRun() throws Exception {<NEW_LINE>if (!SignalStore.account().isFcmEnabled())<NEW_LINE>return;<NEW_LINE>Log.i(TAG, "Reregistering FCM...");<NEW_LINE>int result = GoogleApiAvailability.<MASK><NEW_LINE>if (result != ConnectionResult.SUCCESS) {<NEW_LINE>notifyFcmFailure();<NEW_LINE>} else {<NEW_LINE>Optional<...
getInstance().isGooglePlayServicesAvailable(context);
1,441,509
public static void main(String[] args) throws Exception {<NEW_LINE>CommandLine commandLine = parseCommandLine(args);<NEW_LINE>String zkUrl = commandLine.getOptionValue(ZOOKEEPER);<NEW_LINE>String topic = commandLine.getOptionValue(TOPIC);<NEW_LINE>int numMessages = Integer.parseInt(commandLine.getOptionValue(NUM_MESSAG...
] key = new byte[16];
290,935
public Document apply(Document document, Parameters parameters) {<NEW_LINE>Info apiInfo = parameters.openAPI.getInfo();<NEW_LINE>document.setAttribute("openapi", parameters.<MASK><NEW_LINE>addDocumentTitle(document, apiInfo);<NEW_LINE>addAuthorInfo(document, apiInfo);<NEW_LINE>addVersionInfo(document, apiInfo);<NEW_LIN...
openAPI.getOpenapi(), true);
1,343,893
public List<List<Integer>> Hashmap(int[] nums, int target) {<NEW_LINE>Arrays.sort(nums);<NEW_LINE>Set<List<Integer>> ts = new HashSet();<NEW_LINE>HashMap<Integer, Integer> hm = new HashMap<>();<NEW_LINE>for (int i = 0; i < nums.length; i++) {<NEW_LINE>hm.put(nums[i], i);<NEW_LINE>}<NEW_LINE>for (int i = 0; i < nums.len...
.add(nums[j]);
510,107
public static JsonNode convertJsonFormat(JSONObject json) {<NEW_LINE>ObjectNode ret = JsonNodeFactory.instance.objectNode();<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Iterator<String> iterator = json.keys();<NEW_LINE>while (iterator.hasNext()) {<NEW_LINE>String key = iterator.next();<NEW_LINE>Object value;<NEW_L...
convertJsonFormat((JSONObject) value));
1,614,957
private void initializeResources() {<NEW_LINE>chatId = getIntent().getIntExtra(CHAT_ID_EXTRA, 0);<NEW_LINE>contactId = getIntent(<MASK><NEW_LINE>chatIsMultiUser = false;<NEW_LINE>chatIsDeviceTalk = false;<NEW_LINE>chatIsMailingList = false;<NEW_LINE>chatIsBroadcast = false;<NEW_LINE>fromChat = getIntent().getBooleanExt...
).getIntExtra(CONTACT_ID_EXTRA, 0);
1,081,369
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>Card aura = game.getCard(source.getFirstTarget());<NEW_LINE>if (controller == null || aura == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FilterControlledCreaturePermanent FILTER = new FilterControlledCreaturePerm...
getPlayer(source.getControllerId());
1,570,109
private void callGraphDFS(int s) {<NEW_LINE>int t;<NEW_LINE>CgEdge p;<NEW_LINE>vis_cg[s] = low_cg[s] = pre_cnt++;<NEW_LINE>queue_cg.addLast(s);<NEW_LINE>p = call_graph[s];<NEW_LINE>while (p != null) {<NEW_LINE>t = p.t;<NEW_LINE>if (vis_cg[t] == 0) {<NEW_LINE>callGraphDFS(t);<NEW_LINE>low_cg[s] = Math.min(low_cg[s], low...
s] -= queue_cg.size();
1,467,549
public void onMatch(RelOptRuleCall call) {<NEW_LINE>LogicalTableFunctionScan <MASK><NEW_LINE>int wmIndex = orderingColumnFieldIndex(scan);<NEW_LINE>WatermarkLogicalRel wmRel = new WatermarkLogicalRel(scan.getCluster(), OptUtils.toLogicalConvention(scan.getTraitSet()), Iterables.getOnlyElement(Util.toList(scan.getInputs...
scan = call.rel(0);
945,552
protected void parseLightArray(BitSet mask, BitSet emptyMask, DataTypeProvider provider, BiConsumer<ChunkSection, byte[]> c, Function<ChunkSection, byte[]> get) {<NEW_LINE>for (int sectionY = getMinSection(); sectionY <= (getMaxSection() + 1) && (!mask.isEmpty() || !emptyMask.isEmpty()); sectionY++) {<NEW_LINE>ChunkSec...
sectionY - getMinSection(), false);
1,639,693
public void connecting05(Vertx vertx) {<NEW_LINE>// Pool options<NEW_LINE>PgConnectOptions options = new PgConnectOptions().setPort(5432).setHost("the-host").setDatabase("the-db").setUser("user").setPassword("secret");<NEW_LINE>// Connect to Postgres<NEW_LINE>PgConnection.connect(vertx, options).compose(conn -> {<NEW_L...
System.out.println("Done");
259,146
private void loadNode186() {<NEW_LINE>TransitionTypeNode node = new TransitionTypeNode(this.context, Identifiers.ProgramStateMachineType_ReadyToRunning, new QualifiedName(0, "ReadyToRunning"), new LocalizedText("en", "ReadyToRunning"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), UInteger.valueOf(0), UByte.valueOf(0)...
.expanded(), true));
1,638,462
public String findOrphanDescriptors() {<NEW_LINE>com.haulmont.cuba.core.app.filestorage.FileStorage fileStorage;<NEW_LINE>FileStorageAPI fileStorageAPI = AppBeans.get(FileStorageAPI.class);<NEW_LINE>if (fileStorageAPI instanceof com.haulmont.cuba.core.app.filestorage.FileStorage) {<NEW_LINE>fileStorage = (com.haulmont....
File[] roots = getStorageRoots();
1,347,391
private void tryAddRendererToVideoTrack() {<NEW_LINE>if (!rendererAttached && videoTrack != null && ViewCompat.isAttachedToWindow(this)) {<NEW_LINE>EglBase.Context sharedContext = EglUtils.getRootEglBaseContext();<NEW_LINE>if (sharedContext == null) {<NEW_LINE>// If SurfaceViewRenderer#init() is invoked, it will throw ...
surfaceViewRenderer.init(sharedContext, rendererEvents);
668,399
public void backToLocationImpl(int zoom, boolean forceZoom) {<NEW_LINE>if (mapView != null) {<NEW_LINE><MASK><NEW_LINE>Location lastKnownLocation = locationProvider.getLastKnownLocation();<NEW_LINE>Location lastStaleKnownLocation = locationProvider.getLastStaleKnownLocation();<NEW_LINE>Location location = lastKnownLoca...
OsmAndLocationProvider locationProvider = app.getLocationProvider();
1,617,049
protected void addGuiElements() {<NEW_LINE>super.addGuiElements();<NEW_LINE>addRenderableWidget(new GuiHorizontalPowerBar(this, tile.getEnergyContainer(), 115, 75)).warning(WarningType.NOT_ENOUGH_ENERGY, tile.getWarningCheck(RecipeError.NOT_ENOUGH_ENERGY));<NEW_LINE>addRenderableWidget(new GuiEnergyTab(this, tile.getEn...
.getWarningCheck(RecipeError.NOT_ENOUGH_OUTPUT_SPACE));
303,679
public void addContextSnapshot(ContextOp op, ArrayList<com.ibm.wsspi.threadcontext.ThreadContext> contextSnapshots) {<NEW_LINE>com.ibm.wsspi.threadcontext.ThreadContext snapshot;<NEW_LINE>com.ibm.wsspi.threadcontext.ThreadContextProvider classloaderProvider = classloaderContextProviderRef.getServiceWithException();<NEW...
snapshot = classloaderProvider.createDefaultThreadContext(EMPTY_MAP);
1,320,984
public void compute(double x, double y, Point3D_F64 out) {<NEW_LINE>// Undo projection on to pixels and into normalized image coordinates<NEW_LINE>pinholePtoN.compute(x, y, norm);<NEW_LINE>// norm now is the observed distorted coordinates<NEW_LINE>// Compute initial estimate of r, phi, and theta, norm=X_d (in paper)<NE...
z = Math.cos(theta);
181,479
public boolean add(int bitIndex) {<NEW_LINE>boolean set = contains(bitIndex);<NEW_LINE>if (!set) {<NEW_LINE>if (myBase < 0) {<NEW_LINE>myBase = roundToNearest(bitIndex);<NEW_LINE>} else if (bitIndex < myBase) {<NEW_LINE>int newBase = roundToNearest(bitIndex);<NEW_LINE>int wordDiff = (myBase - newBase) >> SHIFT;<NEW_LIN...
n, 0, myBitMask.length);
1,131,939
protected PdfPTable exportTable(FacesContext context, DataTable table, ExportConfiguration config) {<NEW_LINE>int columnsCount = getColumnsCount(table);<NEW_LINE>PdfPTable pdfTable = new PdfPTable(columnsCount);<NEW_LINE>ExporterOptions options = config.getOptions();<NEW_LINE>if (options != null) {<NEW_LINE>applyFont(o...
), config.getEncodingType());
902,949
final DeleteProtectionGroupResult executeDeleteProtectionGroup(DeleteProtectionGroupRequest deleteProtectionGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteProtectionGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
(super.beforeMarshalling(deleteProtectionGroupRequest));
1,714,902
public void Start() {<NEW_LINE>// Need to check if we have RECORD_AUDIO and WRITE_EXTERNAL permissions<NEW_LINE>String uri = FileUtil.resolveFileName(form, savedRecording, form.DefaultFileScope());<NEW_LINE>if (!havePermission) {<NEW_LINE>final SoundRecorder me = this;<NEW_LINE>final String[] neededPermissions;<NEW_LIN...
String[] { RECORD_AUDIO, WRITE_EXTERNAL_STORAGE };
1,671,835
private void superPostConstruct(InvocationContext inv) {<NEW_LINE>try {<NEW_LINE>Object resultsObject = getResultsObject(inv);<NEW_LINE>addPostConstruct(resultsObject, CLASS_NAME, "superPostConstruct");<NEW_LINE>// Validate and update context data.<NEW_LINE>Map<String, Object> map = inv.getContextData();<NEW_LINE>Strin...
map.put("InvocationContext", inv);
849,325
public void testRxObservableInvoker_get3WithGenericType(Map<String, String> param, StringBuilder ret) {<NEW_LINE>String serverIP = param.get("serverIP");<NEW_LINE>String serverPort = param.get("serverPort");<NEW_LINE>final String threadName = "jaxrs21Thread";<NEW_LINE>ThreadFactory jaxrs21ThreadFactory = Executors.defa...
throw new RuntimeException("testRxObservableInvoker_get3WithGenericType: Response took too long. Waited " + complexTimeout);
217,581
public Response<Void> deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'."...
Utils.getValueFromIdByName(id, "resourceGroups");
1,179,215
private CustomerReturnLineCandidate buildCustomerReturnLineCandidate(@NonNull final JsonCreateCustomerReturnInfo customerReturnInfo, @NonNull final CustomerReturnRestService.ReturnProductInfoProvider returnProductInfoProvider) {<NEW_LINE>final OrgId orgId = returnProductInfoProvider.getOrgId(customerReturnInfo.getOrgCo...
originShipmentLine.getM_InOutLine_ID()) : null;
467,811
private int displayOptions(String name, String mainClass) {<NEW_LINE>PhaseOptionsDialog dialog <MASK><NEW_LINE>addEclipseDefsToDialog(dialog);<NEW_LINE>setMainClassInDialog(dialog, mainClass);<NEW_LINE>if (getEditDefs() != null) {<NEW_LINE>Iterator it = getEditDefs().keySet().iterator();<NEW_LINE>while (it.hasNext()) {...
= new PhaseOptionsDialog(getShell());
1,568,903
protected void encodeHeaderRowWithoutColumn(FacesContext context, HeaderRow row, DataTable table, boolean expandable, boolean expanded) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>String style = row.getStyle();<NEW_LINE>String styleClass = row.getStyleClass();<NEW_LINE>In...
)) : row.getGroupBy();
1,670,139
public void apply(Node n, Region r) {<NEW_LINE>ForceAtlas2LayoutData nLayout = n.getLayoutData();<NEW_LINE>// Get the distance<NEW_LINE>double xDist = n.x() - r.getMassCenterX();<NEW_LINE>double yDist = n.y() - r.getMassCenterY();<NEW_LINE>double distance = (float) Math.sqrt(xDist * xDist + yDist * yDist);<NEW_LINE>if ...
* r.getMass() / distance;
1,046,826
final DeleteModelResult executeDeleteModel(DeleteModelRequest deleteModelRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteModelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
invoke(request, responseHandler, executionContext);
387,531
private void writeDataFlowConfig(Document document, Element parentElement) {<NEW_LINE>Element dataFlowConfigTag = document.createElement(XMLConstants.TAG_DATA_FLOW_CONFIGURATION);<NEW_LINE>parentElement.appendChild(dataFlowConfigTag);<NEW_LINE>PathConfiguration pathConfig = config.getPathConfiguration();<NEW_LINE>Solve...
(config.getFlowSensitiveAliasing()));
563,356
private List<ValidationEvent> validateBlobTargetsArePayloads(Model model) {<NEW_LINE>List<ValidationEvent> <MASK><NEW_LINE>ServiceIndex serviceIndex = ServiceIndex.of(model);<NEW_LINE>Walker walker = new Walker(model);<NEW_LINE>final Set<ServiceShape> servicesWithPayloadSupportingProtocols = model.getServiceShapes().st...
events = new ArrayList<>();
275,633
public byte[] decode(String attr, Hashtable<String, Integer> labelToPc) {<NEW_LINE>if (Options.v().verbose()) {<NEW_LINE>logger.debug("[] JasminAttribute decode...");<NEW_LINE>}<NEW_LINE>List<byte[]> attributeHunks = new LinkedList<byte[]>();<NEW_LINE><MASK><NEW_LINE>boolean isLabel = attr.startsWith("%");<NEW_LINE>Str...
int attributeSize = 0, tablesize = 0;
364,168
final CreateDataflowEndpointGroupResult executeCreateDataflowEndpointGroup(CreateDataflowEndpointGroupRequest createDataflowEndpointGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDataflowEndpointGroupRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientE...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
460,962
public void visit(BLangBinaryExpr binaryExpr) {<NEW_LINE>BLangExpression lhsExpr = binaryExpr.lhsExpr;<NEW_LINE>BLangExpression rhsExpr = binaryExpr.rhsExpr;<NEW_LINE>OperatorKind opKind = binaryExpr.opKind;<NEW_LINE>if (opKind == OperatorKind.EQUAL || opKind == OperatorKind.NOT_EQUAL) {<NEW_LINE>// eg a == 5, a == (),...
addAll(t2.keySet());
251,422
protected String doIt() throws Exception {<NEW_LINE><MASK><NEW_LINE>getSelectionKeys().forEach(customBrowseId -> {<NEW_LINE>MBrowseCustom fromCustomBrowse = new MBrowseCustom(getCtx(), customBrowseId, get_TrxName());<NEW_LINE>MBrowseCustom toCustomBrowse = new MBrowseCustom(getCtx(), 0, get_TrxName());<NEW_LINE>// Copy...
AtomicInteger counter = new AtomicInteger(0);
517,027
public static Story fromBookmark(Cursor cursor) {<NEW_LINE>Long internalId = cursor.getLong(HNewsContract.BookmarkEntry.COLUMN_ID);<NEW_LINE>Long id = cursor.getLong(HNewsContract.BookmarkEntry.COLUMN_ITEM_ID);<NEW_LINE>String type = cursor.getString(HNewsContract.BookmarkEntry.COLUMN_TYPE);<NEW_LINE>String by = cursor...
getString(HNewsContract.BookmarkEntry.COLUMN_TITLE);
1,695,253
private void blacklistWorkerIfNeeded(TaskStatus taskStatus, WorkerHolder workerHolder) {<NEW_LINE>synchronized (blackListedWorkers) {<NEW_LINE>if (taskStatus.isSuccess()) {<NEW_LINE>workerHolder.resetContinuouslyFailedTasksCount();<NEW_LINE>if (blackListedWorkers.remove(workerHolder.getWorker().getHost()) != null) {<NE...
(config.getWorkerBlackListBackoffTime()));
601,203
public Set<String> list(boolean global) throws CoreException {<NEW_LINE>IStatus status;<NEW_LINE>if (global) {<NEW_LINE>status = runInBackground(GLOBAL_ARG, PARSEABLE_ARG, LIST);<NEW_LINE>} else {<NEW_LINE>status = runInBackground(PARSEABLE_ARG, LIST);<NEW_LINE>}<NEW_LINE>String output;<NEW_LINE>if (!status.isOK()) {<N...
int count = path.segmentCount();
1,632,349
public static <In extends ImageBase<In>, Out extends ImageBase<Out>, K extends Kernel1D> void vertical(K kernel, In input, Out output) {<NEW_LINE>switch(input.getImageType().getFamily()) {<NEW_LINE>case GRAY -><NEW_LINE>{<NEW_LINE>if (input instanceof GrayF32) {<NEW_LINE>ConvolveImageNoBorder.vertical((Kernel1D_F32) ke...
) input, (InterleavedI16) output);
849,141
final ListUserHierarchyGroupsResult executeListUserHierarchyGroups(ListUserHierarchyGroupsRequest listUserHierarchyGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUserHierarchyGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
3,644
public void actionPerformed(@Nonnull AnActionEvent e) {<NEW_LINE>List<ComponentManagerImpl> areas = new ArrayList<>();<NEW_LINE>areas.add((ComponentManagerImpl) Application.get());<NEW_LINE>final Project project = e.getData(CommonDataKeys.PROJECT);<NEW_LINE>if (project != null) {<NEW_LINE>areas.add((ComponentManagerImp...
extensions.size() + " extensions:");
1,340,915
private boolean tryPropertyOfSuperClass(final PropertyExpression pexp, final String propertyName) {<NEW_LINE>ClassNode classNode = controller.getClassNode();<NEW_LINE>if (!controller.getCompileStack().isLHS()) {<NEW_LINE>// TODO: "is"<NEW_LINE>String <MASK><NEW_LINE>callX(pexp.getObjectExpression(), methodName).visit(t...
methodName = "get" + capitalize(propertyName);
1,728,227
private void doCopy(URL sourceUrl, InputStream is, File temp, int contentLength) throws IOException {<NEW_LINE>OutputStream os = null;<NEW_LINE>int read = 0;<NEW_LINE>int totalRead = 0;<NEW_LINE>try {<NEW_LINE>os = new BufferedOutputStream(new FileOutputStream(temp));<NEW_LINE>byte[] bytes = new byte[1024];<NEW_LINE>wh...
write(bytes, 0, read);
1,504,869
public void run(RegressionEnvironment env) {<NEW_LINE>String text = "@name('s0') select * from SupportRecogBean#keepall " + "match_recognize (" + " partition by value" + " measures A.theString as a_string " + " pattern (A B) " + " define " + " A as (A.theString = 'A')," + " B as (B.theString = 'B')" + ")";<NE...
("B", i + 100000));
959,438
private static void uploadFile(UnitClient uc, File file, String dstPathName, boolean isMove, boolean isY) throws Exception {<NEW_LINE>// if (file.isDirectory()) {<NEW_LINE>// File[] subFiles = file.listFiles();<NEW_LINE>// for (int i = 0; i < subFiles.length; i++) {<NEW_LINE>// File subFile = subFiles[i];<NEW_LINE>// u...
setAttr(Request.UPLOAD_DstPath, dstPathName);
686,983
private static SSLContext createSSLContext() throws RuntimeException {<NEW_LINE>try {<NEW_LINE>String keyPass = getServerConfig().getKeyPass();<NEW_LINE>if (keyPass == null) {<NEW_LINE>Map<String, Object> secretConfig = Config.getInstance().getJsonMapConfig(SECRET_CONFIG_NAME);<NEW_LINE>keyPass = (String) secretConfig....
logger.error("Unable to create SSLContext", e);
1,079,371
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') expression myindex {pointregionquadtree(0, 0, 100, 100)}" + "select p.id as c0 from pattern [every p=SupportSpatialPoint -> every SupportSpatialAABB(point(p.px, p.py, filterindex:myindex).inside(rectangle(x, y, width, height)))]";<NEW_LINE>...
env, "P4", 10, 10);
1,821,996
public void updateAmountCost() {<NEW_LINE>if (movementQuantity.signum() > 0) {<NEW_LINE>costDetail.setCostAmt(costDetail.getAmt().subtract(costDetail.getCostAdjustment()));<NEW_LINE>costDetail.setCostAmtLL(costDetail.getAmtLL().subtract(costDetail.getCostAdjustmentLL()));<NEW_LINE>} else if (movementQuantity.signum() <...
setM_InOutLine_ID(allocation.getM_InOutLine_ID());
1,691,573
static void write(Manifest manifest, OutputStream out) throws IOException {<NEW_LINE>CharsetEncoder encoder = Charsets.UTF_8.newEncoder();<NEW_LINE>ByteBuffer buffer = ByteBuffer.allocate(LINE_LENGTH_LIMIT);<NEW_LINE>String version = manifest.mainAttributes.getValue(Attributes.Name.MANIFEST_VERSION);<NEW_LINE>if (versi...
(name), encoder, buffer);
1,750,935
public int insertRule(final String rule, final Object position) {<NEW_LINE>final int positionInt;<NEW_LINE>if (position == null) {<NEW_LINE>positionInt = 0;<NEW_LINE>} else if (Undefined.isUndefined(position)) {<NEW_LINE>if (getBrowserVersion().hasFeature(JS_GROUPINGRULE_INSERTRULE_INDEX_OPTIONAL)) {<NEW_LINE>positionI...
ScriptRuntime.typeError("Failed to execute 'insertRule' on 'CSSGroupingRule':" + " 2 arguments required, but only 1 present.");
596,630
private Map<ParameterServerId, PSMatricesSaveContext> split(int requestId, ModelSaveContext saveContext) {<NEW_LINE>List<MatrixSaveContext> matricesContext = saveContext.getMatricesContext();<NEW_LINE>Map<ParameterServerId, List<PSMatrixSaveContext>> psIdToContextsMap = new HashMap<>();<NEW_LINE>int size = matricesCont...
()).toString());
1,160,262
long findCib(long in_dsa) {<NEW_LINE>try {<NEW_LINE>long cibh_ptr_cib = 0;<NEW_LINE>long ceecaaerrcm = caa.ceecaaerrcm();<NEW_LINE>long cibhptr = ceexhcomTemplate.getHcom_cibh(inputStream, ceecaaerrcm);<NEW_LINE>while (cibhptr != 0) {<NEW_LINE>boolean cibh_in_use = CeexcibhTemplate.getCibh_in_use(inputStream, cibhptr) ...
throw new Error("oops: " + e);
1,200,539
public void coGroup(Iterable<Tuple4<Integer, Long, T1, PriorityQueue<Tuple2<Long, Float>>>> records, Iterable<Tuple3<Integer, Long, T2>> targets, Collector<Tuple4<Integer, Long, T1, PriorityQueue<Tuple2<Long, Float>>>> out) throws Exception {<NEW_LINE>if (records == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (targ...
info("Wall time: score {}s, enqueue {}s", tScore, tEnqueue);
664,996
Mono<Response<BlockBlobItem>> uploadFromUrlWithResponse(BlobUploadFromUrlOptions options, Context context) {<NEW_LINE><MASK><NEW_LINE>BlobRequestConditions destinationRequestConditions = options.getDestinationRequestConditions() == null ? new BlobRequestConditions() : options.getDestinationRequestConditions();<NEW_LINE...
StorageImplUtils.assertNotNull("options", options);
1,633,669
Mono<DecryptResult> decryptInternal(EncryptionAlgorithm algorithm, byte[] ciphertext, Context context, JsonWebKey jsonWebKey) {<NEW_LINE>keyPair = getKeyPair(jsonWebKey);<NEW_LINE>// Interpret the requested algorithm<NEW_LINE>Algorithm baseAlgorithm = AlgorithmResolver.DEFAULT.get(algorithm.toString());<NEW_LINE>if (ba...
(algorithm.toString()));
51,618
public void processView(EventBean[] newData, EventBean[] oldData, boolean isGenerateSynthetic) {<NEW_LINE>// apply to aggregates<NEW_LINE>Object[] groupKeysPerLevel = new Object[processor.getGroupByRollupDesc().getLevels().length];<NEW_LINE>EventBean[] eventsPerStream;<NEW_LINE>if (newData != null) {<NEW_LINE>for (Even...
[level.getLevelNumber()]);
1,254,211
public boolean isEntailed(KnowledgeBase kb, Sentence alpha) {<NEW_LINE>// clauses <- the set of clauses in the CNF representation<NEW_LINE>// of KB & ~alpha<NEW_LINE>Set<Clause> clauses = convertKBAndNotAlphaIntoCNF(kb, alpha);<NEW_LINE>// new <- {}<NEW_LINE>Set<Clause> newClauses = new LinkedHashSet<>();<NEW_LINE>// l...
= new ArrayList<>(clauses);
1,137,260
final UpdateSubscriptionDefinitionResult executeUpdateSubscriptionDefinition(UpdateSubscriptionDefinitionRequest updateSubscriptionDefinitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSubscriptionDefinitionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
911,938
public boolean apply(Game game, Ability source) {<NEW_LINE>MageObject sourceObject = source.getSourceObject(game);<NEW_LINE>if (sourceObject != null) {<NEW_LINE>DiscardTargetCost cost = new DiscardTargetCost(new TargetCardInHand(3, 3, new FilterCard()));<NEW_LINE>for (UUID playerId : game.getState().getPlayerList(sourc...
player = game.getPlayer(playerId);
740,831
private static WebApplicationModel generate90() {<NEW_LINE>org.netbeans.modules.j2ee.weblogic9.dd.web90.WeblogicWebApp webLogicWebApp = new org.netbeans.modules.j2ee.weblogic9.dd.web90.WeblogicWebApp();<NEW_LINE>// NOI18N<NEW_LINE>webLogicWebApp.createAttribute("xmlns:j2ee", "xmlns:j2ee", AttrProp.CDATA | <MASK><NEW_LI...
AttrProp.IMPLIED, null, null);
977,364
private boolean sameScalar(ScalarValue want, JsonArray parent, int index) throws Exception {<NEW_LINE>trace("comparing array scalar element " + index);<NEW_LINE>String regexp = want.getRegexp();<NEW_LINE>if (want instanceof StringValue) {<NEW_LINE>return sameString(((StringValue) want).getValue(), regexp, parent.getStr...
index).doubleValue()));
1,790,786
protected static Bitmap createScaledBitmap(Bitmap src, int dstWidth, int dstHeight, boolean filter) {<NEW_LINE>if (dstWidth == src.getWidth() && dstHeight == src.getHeight() && !filter) {<NEW_LINE>// Return the original.<NEW_LINE>return src;<NEW_LINE>}<NEW_LINE>if (dstWidth <= 0 || dstHeight <= 0) {<NEW_LINE>throw new ...
shadowSrcBitmap = Shadow.extract(src);
1,224,606
public void open() {<NEW_LINE>box = new VuzeMessageBox("", "", null, 0);<NEW_LINE>box.setSubTitle(MessageText.getString("dlg.player.install.subtitle"));<NEW_LINE>box.addResourceBundle(PlayerInstallWindow.class, SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_register");<NEW_LINE>box.setIconResource("image.player.dlg.head...
SWTSkinObjectText) skin.getSkinObject("install-pct");
1,163,734
public static HikariDataSource createPooledDataSource(MySqlSourceConfig sourceConfig) {<NEW_LINE>final HikariConfig config = new HikariConfig();<NEW_LINE>String hostName = sourceConfig.getHostname();<NEW_LINE>int port = sourceConfig.getPort();<NEW_LINE>Properties jdbcProperties = sourceConfig.getJdbcProperties();<NEW_L...
setPassword(sourceConfig.getPassword());
1,188,409
public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization rights, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>JSONObject commit;<NEW_LINE>JSONObject json = new JSONObject(true);<NEW_LINE>json.put("accepted", false);<NEW_LINE>JSONArray commitsArray;<NEW_LINE>c...
json.put("accepted", true);
507,574
public void init() {<NEW_LINE>try {<NEW_LINE>SipAccountIDImpl accountID = (SipAccountIDImpl) sipProvider.getAccountID();<NEW_LINE>if (!accountID.isXiVOEnable())<NEW_LINE>return;<NEW_LINE>boolean useSipCredentials = accountID.isClistOptionUseSipCredentials();<NEW_LINE>String serverAddress = accountID.getClistOptionServe...
accountID.getAccountPropertyString(ProtocolProviderFactory.USER_ID);
786,314
private void saveState() {<NEW_LINE>if (chunks.size() < 1)<NEW_LINE>return;<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>sb.append(this.length + "\n");<NEW_LINE>sb.append(downloaded + "\n");<NEW_LINE>sb.append(((long) this.totalDuration) + "\n");<NEW_LINE>sb.append(items.size() + "\n");<NEW_LINE>System.out.p...
seg.getStartOffset() + "\n");
955,447
public Project createProject(AntProjectHelper helper) throws IOException {<NEW_LINE>ClassLoader l = Lookup.getDefault().lookup(ClassLoader.class);<NEW_LINE>if (l == null) {<NEW_LINE>l = Thread.currentThread().getContextClassLoader();<NEW_LINE>}<NEW_LINE>if (l == null) {<NEW_LINE>l = AntBasedGenericType.class.getClassLo...
m.invoke(null, helper);
590,108
private List<String> generateDropStatementsForRoutines() throws SQLException {<NEW_LINE>// #2193: PostgreSQL 11 removed the 'proisagg' column and replaced it with 'prokind'.<NEW_LINE>String isAggregate = database.getVersion().isAtLeast("11") ? "pg_proc.prokind = 'a'" : "pg_proc.proisagg";<NEW_LINE>// PROCEDURE is only ...
.get("args") + ") CASCADE");
911,567
public void reset() {<NEW_LINE>emissionEstimator = new <MASK><NEW_LINE>transitionEstimator = new Multinomial.LaplaceEstimator[numStates()];<NEW_LINE>emissionMultinomial = new Multinomial[numStates()];<NEW_LINE>transitionMultinomial = new Multinomial[numStates()];<NEW_LINE>Alphabet transitionAlphabet = getTransitionAlph...
Multinomial.LaplaceEstimator[numStates()];
562,307
private Forwarding parseForwarding(String conf) throws JSchException {<NEW_LINE>String[] tmp = conf.split(" ");<NEW_LINE>if (tmp.length > 1) {<NEW_LINE>// "[bind_address:]port host:hostport"<NEW_LINE>Vector foo = new Vector();<NEW_LINE>for (int i = 0; i < tmp.length; i++) {<NEW_LINE>if (tmp[i].length() == 0)<NEW_LINE>c...
.lastIndexOf(":") + 1);
1,072,818
private void processCvsProject(Project p) {<NEW_LINE>JButton installButton = new JButton();<NEW_LINE>// NOI18N<NEW_LINE>Mnemonics.setLocalizedText(installButton, NbBundle.getMessage(CvsInstallDialog.class, "CvsInstallDialog.downloadButton.text"));<NEW_LINE>CvsInstallDialog panel = new CvsInstallDialog();<NEW_LINE>Dialo...
"CvsInstaller.installFailed"), NotifyDescriptor.ERROR_MESSAGE));
1,806,806
public void renderItemOverlay(Graphics2D graphics, int itemId, WidgetItem widgetItem) {<NEW_LINE>final String group = plugin.getTag(itemId);<NEW_LINE>if (group != null) {<NEW_LINE>final Color color = plugin.getGroupNameColor(group);<NEW_LINE>if (color != null) {<NEW_LINE><MASK><NEW_LINE>if (config.showTagOutline()) {<N...
Rectangle bounds = widgetItem.getCanvasBounds();
2,382
public int testClockwise() {<NEW_LINE>if (points.size() < 3) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>final int size = points.size();<NEW_LINE>// Count the number of positive and negative oriented angles<NEW_LINE>int c = 0;<NEW_LINE>// TODO: faster when using an iterator?<NEW_LINE>for (int i = 0; i < size; i++) {<NEW_L...
.get(i)[0];
1,734,013
public boolean attachCluster(DataStore datastore, ClusterScope scope) {<NEW_LINE>PrimaryDataStoreInfo primaryDataStoreInfo = (PrimaryDataStoreInfo) datastore;<NEW_LINE>// check if there is at least one host up in this cluster<NEW_LINE>List<HostVO> allHosts = _resourceMgr.listAllUpAndEnabledHosts(Host.Type.Routing, prim...
"No host up to associate a storage pool with in cluster " + primaryDataStoreInfo.getClusterId());
1,299,913
public static QueryEdgeInstanceDeviceByDriverResponse unmarshall(QueryEdgeInstanceDeviceByDriverResponse queryEdgeInstanceDeviceByDriverResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryEdgeInstanceDeviceByDriverResponse.setRequestId(_ctx.stringValue("QueryEdgeInstanceDeviceByDriverResponse.RequestId"));<NEW_LINE>que...
(_ctx.stringValue("QueryEdgeInstanceDeviceByDriverResponse.ErrorMessage"));
702,957
// helper routine to print out usage<NEW_LINE>public void usage() {<NEW_LINE>System.out.println("Usage: " + myName() + " [option]*");<NEW_LINE>System.out.println(" where [option] can be:");<NEW_LINE>System.out.println(" -help | -? Action: show this help");<NEW_LINE>System.out.println(" -Xrealtim...
System.out.println(" -aotFilterFile <file> only methods matching those in file will be AOT compiled and stored into cache");
346,339
public BDD bddAclLines(List<BDD> lineBdds, List<LineAction> actions) {<NEW_LINE>checkArgument(lineBdds.size() == actions.size(), "Line BDDs and line actions must be 1:1.");<NEW_LINE>BDD result = _factory.zero();<NEW_LINE>LineAction currentAction = LineAction.PERMIT;<NEW_LINE>List<BDD> lineBddsWithCurrentAction = new Li...
BDD lineBdd = bddIter.next();
1,181,114
private JComponent buildWadlContentTab() {<NEW_LINE>partTabs = new JTabbedPane();<NEW_LINE>partTabs.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);<NEW_LINE>rootNode = new DefaultMutableTreeNode(restService.getName());<NEW_LINE>treeModel = new DefaultTreeModel(rootNode);<NEW_LINE>tree = new JTree(treeModel);<NEW_LIN...
new JPanel(new BorderLayout());
1,018,089
public Credentials fetch() {<NEW_LINE>String filename = this.filename;<NEW_LINE>if (filename == null) {<NEW_LINE>filename = getProperty("AWS_SHARED_CREDENTIALS_FILE");<NEW_LINE>}<NEW_LINE>if (filename == null) {<NEW_LINE>filename = Paths.get(System.getProperty("user.home"), ".aws", "credentials").toString();<NEW_LINE>}...
throw new ProviderException("Unable to read AWS credential file", e);
56,210
private static <T extends IPart> ColoredItemDefinition<ColoredPartItem<T>> constructColoredDefinition(String nameSuffix, String idSuffix, Class<T> partClass, Function<ColoredPartItem<T>, T> factory) {<NEW_LINE>PartModels.registerModels<MASK><NEW_LINE>var definition = new ColoredItemDefinition<ColoredPartItem<T>>();<NEW...
(PartModelsHelper.createModels(partClass));
1,194,277
public void marshall(Stage stage, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (stage == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(stage.getDeploymentId(), DEPLOYMENTID_BINDING);<NEW_LINE>protocolMars...
stage.getDescription(), DESCRIPTION_BINDING);
1,023,994
public static void attach(final Registry registry, final ThreadPoolExecutor threadPool, final String threadPoolName) {<NEW_LINE>Preconditions.checkNotNull(registry, "registry");<NEW_LINE>Preconditions.checkNotNull(threadPool, "threadPool");<NEW_LINE>final String idValue;<NEW_LINE>if (threadPoolName == null || threadPoo...
monitorValue(threadPool, ThreadPoolExecutor::getPoolSize);
678,686
protected void internalWrite(Server server, Query query, ImmutableList<Result> results) throws Exception {<NEW_LINE>for (Result result : results) {<NEW_LINE>log.debug("Query result: [{}]", result);<NEW_LINE>if (isNumeric(result.getValue())) {<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>map.put("serverA...
"timestamp", result.getEpoch());
1,195,840
public static void restartWithTheme(Activity activity, int theme, boolean force) {<NEW_LINE>if (theme < _START_RESOURCES_ID && theme > 0) {<NEW_LINE>if (ThemeManager._THEME_MODIFIER > 0) {<NEW_LINE>theme |= ThemeManager._THEME_MODIFIER;<NEW_LINE>}<NEW_LINE>theme &= ThemeManager._THEME_MASK;<NEW_LINE>}<NEW_LINE>if (forc...
KEY_INSTANCE_STATE, activity.saveInstanceState());
1,576,810
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>String url = getIntent().getStringExtra(EXTRA_URL);<NEW_LINE>if (TextUtils.isEmpty(url)) {<NEW_LINE>finish();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>setTitle(url);<NEW_LINE><MASK><NEW_LINE>final NestedScrollView scr...
setContentView(R.layout.activity_offline_web);
1,298,722
protected void updateUUIDOfContainers() {<NEW_LINE>final Map<String, Integer> UUIDByContainermap = new HashMap<>();<NEW_LINE>this.getBody().getRows().forEach(row -> row.getColumns().stream().forEach(column -> column.getContainers().stream().forEach(containerUUID -> {<NEW_LINE>final String containerID = containerUUID.ge...
UUIDByContainermap.getOrDefault(containerID, 0);
240,182
private void decodeEscapes(BitReader _in, ICStream ics, int[][] scaleFactors) throws AACException {<NEW_LINE>final ICSInfo info = ics.getInfo();<NEW_LINE>final int windowGroupCount = info.getWindowGroupCount();<NEW_LINE>final int maxSFB = info.getMaxSFB();<NEW_LINE>// ics.getSectionData().getSfbCB();<NEW_LINE>final int...
[g][sfb] -= val;
1,629,869
public Map<String, ?> call(String callString, StatementParameters parameters, final DalHints hints, final DalTaskContext dalTaskContext) throws SQLException {<NEW_LINE>ConnectionAction<Map<String, ?>> action = new ConnectionAction<Map<String, ?>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Map<String, ?> execute()...
int updateCount = callableStatement.getUpdateCount();
1,649,483
public List<List<SegmentHeader>> findRollupCandidates(String schemaName, ByteString schemaChecksum, String cubeName, String measureName, String rolapStarFactTableName, BitKey constrainedColsBitKey, Map<String, Comparable> coordinates, List<String> compoundPredicates) {<NEW_LINE>final List factKey = makeFactKey(schemaNa...
cubeName, rolapStarFactTableName, measureName, compoundPredicates);
1,593,271
public boolean applies(Ability abilityToModify, Ability source, Game game) {<NEW_LINE>if (!(abilityToModify instanceof SpellAbility)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!game.getOpponents(source.getControllerId()).contains(abilityToModify.getControllerId())) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Se...
CardUtil.getAllPossibleTargets(abilityToModify, game);
444,304
public static DescribeAffectedMaliciousFileImagesResponse unmarshall(DescribeAffectedMaliciousFileImagesResponse describeAffectedMaliciousFileImagesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeAffectedMaliciousFileImagesResponse.setRequestId(_ctx.stringValue("DescribeAffectedMaliciousFileImagesResponse.Reques...
("DescribeAffectedMaliciousFileImagesResponse.AffectedMaliciousFileImagesResponse[" + i + "].LatestScanTimestamp"));
613,094
private Optional<ShardingConditionValue> generate(final Comparable<?> comparable, final Column column, final String operator) {<NEW_LINE>String columnName = column.getName();<NEW_LINE><MASK><NEW_LINE>switch(operator) {<NEW_LINE>case EQUAL:<NEW_LINE>return Optional.of(new ListShardingConditionValue<>(columnName, tableNa...
String tableName = column.getTableName();
1,122,905
private List<ShipmentSchedule> loadShipmentSchedulesToExport(@NonNull final QueryLimit limit) {<NEW_LINE>final ShipmentScheduleQuery shipmentScheduleQuery = ShipmentScheduleQuery.builder().canBeExportedFrom(SystemTime.asInstant()).onlyIfAllFromOrderExportable(true).exportStatus(APIExportStatus.Pending).includeWithQtyTo...
shipmentSchedules = schedulesForOrderIds.get(currentOrderId);
1,354,907
public void addTables(Set<Table> tables) {<NEW_LINE>if (!canAddAllTables(tables)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (closureEnabled) {<NEW_LINE>if (wantedTables.addAll(tables)) {<NEW_LINE>Set<Table> refTables <MASK><NEW_LINE>Set<Table> addedTables = new HashSet<Table>(tables);<NEW_LINE>addedTables.addAll(refTab...
= removeDisabledTables(getReferencedTablesTransitively(tables));
1,645,475
public Query parseJson(String queryName, ObjectNode fullQuery) throws QueryException {<NEW_LINE>Query query = new Query(queryName, packageMetaData);<NEW_LINE>query.setOriginalJson(fullQuery);<NEW_LINE>int version = LATEST_VERSION;<NEW_LINE>if (fullQuery.has("version")) {<NEW_LINE>version = fullQuery.get("version").asIn...
"specialQueryType").asText()));
1,425,415
// "In 3 days/weeks/months/years" = "3 days/weeks/months/years from now"<NEW_LINE>public List<Token> extractRelativeDurationDateWithInPrefix(String text, List<ExtractResult> durationEr, LocalDateTime reference) {<NEW_LINE>List<Token> <MASK><NEW_LINE>List<Token> durations = new ArrayList<>();<NEW_LINE>for (ExtractResult...
tokens = new ArrayList<>();