idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
428,971
public void contextInitialized(ServletContextEvent event) {<NEW_LINE>ServletContext servletContext = event.getServletContext();<NEW_LINE>ServerContainer websocketServerContainer = (ServerContainer) servletContext.getAttribute("javax.websocket.server.ServerContainer");<NEW_LINE>try {<NEW_LINE>websocketServerContainer.ad...
(new ConfiguratorEndpointConfig.CodedModifyHandshakeEndpointConfig());
790,927
private void createFileEntries(User user, String path, String name, String url, String scriptContent) {<NEW_LINE>String[] scriptTemplatePaths = { getBuildScriptName(), "src/main/resources/resource1.txt", "src/main/java/TestRunner.groovy" };<NEW_LINE>String homeScriptTemplateDirectoryPath = getConfig().getHomeScriptTemp...
fileContent.replace("${url}", url);
488,328
public void denoise(GrayF32 transform, int numLevels) {<NEW_LINE>int <MASK><NEW_LINE>final int h = transform.height;<NEW_LINE>final int w = transform.width;<NEW_LINE>// width and height of scaling image<NEW_LINE>final int innerWidth = w / scale;<NEW_LINE>final int innerHeight = h / scale;<NEW_LINE>GrayF32 subbandHH = t...
scale = UtilWavelet.computeScale(numLevels);
532,072
public void update() {<NEW_LINE>int w = image.getWidth();<NEW_LINE>int h = image.getHeight();<NEW_LINE>float wr = (float) cam.getWidth() / image.getWidth();<NEW_LINE>float hr = (float) cam.getHeight() / image.getHeight();<NEW_LINE>scene.updateGeometricState();<NEW_LINE>for (int y = 0; y < h; y++) {<NEW_LINE>for (int x ...
h - y - 1, 0xFFFFFFFF);
1,515,664
private boolean isValidLiteralValue(Value<?> value, GraphQLInputObjectType type, GraphQLSchema schema) {<NEW_LINE>if (!(value instanceof ObjectValue)) {<NEW_LINE>handleNotObjectError(value, type);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>GraphqlFieldVisibility fieldVisibility = schema.getCodeRegistry().getFieldVisibi...
handleExtraFieldError(value, type, objectField);
457,301
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>// create border paint<NEW_LINE>paintBorder.setColor(Color.BLACK);<NEW_LINE>paintBorder.setAntiAlias(true);<NEW_LINE>paintBorder.setStrokeWidth(25);<NEW_LINE>paintBorder.setStyle(...
setStrokeCap(Paint.Cap.ROUND);
1,174,400
private static void addBundle(final Object bundleWiring, final ClassLoader classLoader, final ClasspathOrder classpathOrderOut, final Set<Object> bundles, final ScanSpec scanSpec, final LogNode log) {<NEW_LINE>// Track the bundles we've processed to prevent loops<NEW_LINE>bundles.add(bundleWiring);<NEW_LINE>// Get the ...
embeddedLocation, classLoader, scanSpec, log);
1,759,180
public static void render(RenderLevelLastEvent event) {<NEW_LINE>Minecraft mc = Minecraft.getInstance();<NEW_LINE>LocalPlayer player = mc.player;<NEW_LINE>Random random = new Random();<NEW_LINE>for (int i = 0; i < Inventory.getSelectionSize(); i++) {<NEW_LINE>ItemStack stackInSlot = player.getInventory().getItem(i);<NE...
, -view.z());
267,414
private static void populateStandardProperties(DbInfo.Builder builder, Map<?, ?> props) {<NEW_LINE>if (props != null && !props.isEmpty()) {<NEW_LINE>if (props.containsKey("user")) {<NEW_LINE>builder.user((String) props.get("user"));<NEW_LINE>}<NEW_LINE>if (props.containsKey("databasename")) {<NEW_LINE>builder.db((Strin...
String) props.get("portNumber");
1,296,707
public SpringLiquibase liquibase(ObjectProvider<DataSource> dataSource, @LiquibaseDataSource ObjectProvider<DataSource> liquibaseDataSource) {<NEW_LINE>SpringLiquibase liquibase = createSpringLiquibase(liquibaseDataSource.getIfAvailable(), dataSource.getIfUnique());<NEW_LINE>liquibase.setChangeLog(this.properties.getCh...
this.properties.isEnabled());
1,499,497
public static BidirectionalIndexLookup<String> fromTextFileWithIndex(Path path, char delimiter) throws IOException {<NEW_LINE>if (!path.toFile().exists()) {<NEW_LINE>throw new IllegalArgumentException("File " + path + " does not exist.");<NEW_LINE>}<NEW_LINE>List<String> lines = TextIO.loadLines(path);<NEW_LINE>UIntVal...
wordLookup.put(index, word);
989,972
public DataType doGetDataType(DIEAggregate diea) throws IOException, DWARFExpressionException {<NEW_LINE>// Wait for the swing thread to clear its event queue because we are running into<NEW_LINE>// issues with the number of events overwhelming the swing thread.<NEW_LINE>// This does slow us down a little bit but this ...
ddtImporter.getDataType(diea, null);
251,400
public Sequence execute(StaticContext sctx, QueryContext ctx, Sequence[] args) {<NEW_LINE>final XmlDBNode doc = (XmlDBNode) args[0];<NEW_LINE>final XmlNodeReadOnlyTrx rtx = doc.getTrx();<NEW_LINE>final XmlIndexController controller = rtx.getResourceManager().getRtxIndexController(rtx.getRevisionNumber());<NEW_LINE>if (...
]).stringValue()));
1,304,271
// GEN-LAST:event_selectClassButtonActionPerformed<NEW_LINE>private void mouseClickHandler(java.awt.event.MouseEvent evt) {<NEW_LINE>// GEN-FIRST:event_mouseClickHandler<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>final ElementHandle<TypeElement> handle = TypeEle...
getDeclaredTypes(textForQuery, nameKind, searchScopes);
1,603,479
public static int computeDistance(String s1, String s2) {<NEW_LINE>s1 = s1.toLowerCase();<NEW_LINE>s2 = s2.toLowerCase();<NEW_LINE>final int[] costs = new int[s2.length() + 1];<NEW_LINE>for (int i = 0; i <= s1.length(); i++) {<NEW_LINE>int lastValue = i;<NEW_LINE>for (int j = 0; j <= s2.length(); j++) {<NEW_LINE>if (i ...
costs[j - 1] = lastValue;
297,580
public static SetArgs toSetArgs(@Nullable Expiration expiration, @Nullable SetOption option) {<NEW_LINE>SetArgs args = new SetArgs();<NEW_LINE>if (expiration != null) {<NEW_LINE>if (expiration.isKeepTtl()) {<NEW_LINE>args.keepttl();<NEW_LINE>} else if (!expiration.isPersistent()) {<NEW_LINE>switch(expiration.getTimeUni...
.getConverted(TimeUnit.MILLISECONDS));
1,664,670
static public void classDictInit(PyObject dict) {<NEW_LINE>PyCursor.classDictInit(dict);<NEW_LINE>dict.__setitem__("tables", new ExtendedCursorFunc("tables", 100, 4, 4, "query for table information"));<NEW_LINE>dict.__setitem__("columns", new ExtendedCursorFunc("columns", 101, 4, 4, "query for column information"));<NE...
dict.__setitem__("toString", null);
1,057,399
public SwaptionSensitivity presentValueSensitivityModelParamsVolatility(ResolvedSwaption swaption, RatesProvider ratesProvider, SwaptionVolatilities swaptionVolatilities) {<NEW_LINE>validate(swaption, ratesProvider, swaptionVolatilities);<NEW_LINE>double expiry = swaptionVolatilities.<MASK><NEW_LINE>ResolvedSwap underl...
relativeTime(swaption.getExpiry());
75,235
public StoredWorkflowDefinition insertWorkflowDefinition(int projId, int revId, WorkflowDefinition def, ZoneId workflowTimeZone) throws ResourceConflictException {<NEW_LINE>String configText = configMapper.toText(def.getConfig());<NEW_LINE>String zoneId = workflowTimeZone.getId();<NEW_LINE>long configDigest = WorkflowC...
projId, configText, zoneId, configDigest);
437,344
public ListV2LoggingLevelsResult listV2LoggingLevels(ListV2LoggingLevelsRequest listV2LoggingLevelsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listV2LoggingLevelsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionCont...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,817,936
static void patchAttributes() {<NEW_LINE>try {<NEW_LINE>StaticPatcher.setFinalStatic(JBColor.class, "GRAY", MTUI.Label.getLabelInfoForeground());<NEW_LINE>StaticPatcher.setFinalStatic(JBColor.class, "LIGHT_GRAY", MTUI.Label.getSelectedForeground());<NEW_LINE>StaticPatcher.setFinalStatic(JBColor.class, "DARK_GRAY", MTUI...
.Label.getLabelInfoForeground()));
1,321,939
public static String execute(String uri) throws SQLException {<NEW_LINE>HttpEntity httpEntity = null;<NEW_LINE>String responseBody = "";<NEW_LINE>HttpRequestBase method = <MASK><NEW_LINE>HttpContext context = HttpClientContext.create();<NEW_LINE>try (CloseableHttpResponse httpResponse = httpClient.execute(method, conte...
getRequest(uri, HttpGet.METHOD_NAME);
1,321,256
public int doStartTag() throws JspException {<NEW_LINE>// Create Price List<NEW_LINE>Properties ctx = JSPEnv.getCtx((HttpServletRequest) pageContext.getRequest());<NEW_LINE>int AD_Client_ID = Env.getContextAsInt(ctx, "AD_Client_ID");<NEW_LINE>int M_PriceList_ID = m_priceList_ID;<NEW_LINE>if (M_PriceList_ID == 0)<NEW_LI...
session, Config.FMT_FALLBACK_LOCALE, "en_US");
376,083
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0, String path1, String path2, String path3, String path4, String path5, String path6, JsonElement jsonElement) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorS...
get(300, TimeUnit.SECONDS);
305,027
private synchronized boolean calculateNewWeight() {<NEW_LINE>int index = 0;<NEW_LINE>int weight = _loadCounters[index].getWeight();<NEW_LINE>boolean weightChanged = false;<NEW_LINE>// look for new worst weight (lower one)<NEW_LINE>// and index of the counter that changed it.<NEW_LINE>for (int i = 1; i < _loadCounters.l...
"calculateNewWeight", buff.toString());
1,586,615
public Stream<ORawPair<Object, ORID>> streamEntries(Collection<?> keys, boolean ascSortOrder) {<NEW_LINE>final OTransactionIndexChanges indexChanges = database.getTransaction().getIndexChangesInternal(delegate.getName());<NEW_LINE>if (indexChanges == null) {<NEW_LINE>return super.streamEntries(keys, ascSortOrder);<NEW_...
, txStream, backedCursor, ascSortOrder));
107,759
public static void main(String[] args) throws Exception {<NEW_LINE>ReferenceConfig<GenericService> reference = new ReferenceConfig<>();<NEW_LINE>ApplicationConfig applicationConfig = new ApplicationConfig("protobuf-demo-consumer");<NEW_LINE>applicationConfig.setQosEnable(false);<NEW_LINE>reference.setApplication(applic...
reference.setGeneric(CommonConstants.GENERIC_SERIALIZATION_PROTOBUF);
1,113,343
boolean materialize(final NamedExpression ne, final VectorContainer batch, final FunctionLookupContext registry) throws SchemaChangeException {<NEW_LINE>final FunctionCall call = (FunctionCall) ne.getExpr();<NEW_LINE>final LogicalExpression input = ExpressionTreeMaterializer.materializeAndCheckErrors(call.arg(0), batch...
getValueVectorId(ne.getRef());
130,598
public static CFDictionary create(NativeObject[] k, NativeObject[] v) {<NEW_LINE>if (k == null) {<NEW_LINE>throw new NullPointerException("k");<NEW_LINE>}<NEW_LINE>if (v == null) {<NEW_LINE>throw new NullPointerException("v");<NEW_LINE>}<NEW_LINE>if (k.length == 0) {<NEW_LINE>return create(null, null, null, 0, <MASK><N...
getTypeKeyCallBacks(), getTypeValueCallBacks());
1,438,344
public static Collection<RegressionExecution> executions() {<NEW_LINE>ArrayList<RegressionExecution> execs = new ArrayList<>();<NEW_LINE>execs.add(new ContextKeySegmentedPatternFilter());<NEW_LINE>execs.add(new ContextKeySegmentedJoinRemoveStream());<NEW_LINE>execs.add(new ContextKeySegmentedSelector());<NEW_LINE>execs...
.add(new ContextKeySegmentedNullKeyMultiKey());
1,433,675
private MInvoiceLine[] createInvoiceLines(MRMA rma, MInvoice invoice) {<NEW_LINE>ArrayList<MInvoiceLine> invLineList = new ArrayList<>();<NEW_LINE>MRMALine[] <MASK><NEW_LINE>for (MRMALine rmaLine : rmaLines) {<NEW_LINE>if (rmaLine.getM_InOutLine_ID() == 0) {<NEW_LINE>throw new IllegalStateException("No customer return ...
rmaLines = rma.getLines(true);
1,665,917
protected INDArray createPointWiseWeightMatrix(NeuralNetConfiguration conf, INDArray weightView, boolean initializeParams) {<NEW_LINE>SeparableConvolution2D layerConf = <MASK><NEW_LINE>int depthMultiplier = layerConf.getDepthMultiplier();<NEW_LINE>if (initializeParams) {<NEW_LINE>val inputDepth = layerConf.getNIn();<NE...
(SeparableConvolution2D) conf.getLayer();
1,553,413
private boolean _publishAsset(String inode) throws Exception {<NEW_LINE>HttpServletRequest req = WebContextFactory<MASK><NEW_LINE>User user = getUser(req);<NEW_LINE>Identifier id = APILocator.getIdentifierAPI().findFromInode(inode);<NEW_LINE>if (!permissionAPI.doesUserHavePermission(id, PERMISSION_PUBLISH, user)) {<NEW...
.get().getHttpServletRequest();
1,722,883
public int execute(final String fullCommand, final CommandLine cl, final Shell shellState) throws Exception {<NEW_LINE>user = cl.hasOption(userOpt.getOpt()) ? cl.getOptionValue(userOpt.getOpt()) : shellState.getAccumuloClient().whoami();<NEW_LINE>permission = cl.getArgs()[0].split("\\.", 2);<NEW_LINE>if (permission[0]....
valueOf(permission[1]));
1,500,011
public void marshall(ResolverRule resolverRule, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (resolverRule == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(resolverRule.getId(), ID_BINDING);<NEW_LINE>prot...
resolverRule.getResolverEndpointId(), RESOLVERENDPOINTID_BINDING);
1,263,221
void handleResponse(ResponseInfo responseInfo) {<NEW_LINE>long startTime = time.milliseconds();<NEW_LINE>UndeleteResponse undeleteResponse = RouterUtils.extractResponseAndNotifyResponseHandler(responseHandler, routerMetrics, responseInfo, <MASK><NEW_LINE>RequestInfo routerRequestInfo = responseInfo.getRequestInfo();<NE...
UndeleteResponse::readFrom, UndeleteResponse::getError);
1,157,070
public static void main(String[] args) throws MQClientException, InterruptedException {<NEW_LINE>Tracer tracer = initTracer();<NEW_LINE>TransactionMQProducer producer = new TransactionMQProducer("please_rename_unique_group_name");<NEW_LINE>producer.getDefaultMQProducerImpl().registerSendMessageHook(new SendMessageOpenT...
out.printf("%s%n", sendResult);
1,611,643
public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String expressRoutePortName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (this.client.getSubscriptionId() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentExceptio...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
1,465,198
private YoutubeSignatureCipher extractTokensFromScript(String script, String sourceUrl) {<NEW_LINE>Matcher actions = actionsPattern.matcher(script);<NEW_LINE>if (!actions.find()) {<NEW_LINE>dumpProblematicScript(script, sourceUrl, "no actions match");<NEW_LINE>throw new IllegalStateException("Must find action functions...
dumpProblematicScript(script, sourceUrl, "no cipher operations");
319,105
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "p0,p1".split(",");<NEW_LINE>env.compileDeploy("@name('flow') create dataflow MyDataFlow " + "Emitter -> outstream<MyOAEventType> {name:'src1'}" + "DefaultSupportCaptureOp(outstream) {}");<NEW_LINE>DefaultSupportCaptureOp<Object> captureOp = new De...
RUNNING, instance.getState());
326,261
static public Font findFont(String name) {<NEW_LINE>if (PApplet.platform == PConstants.MACOSX) {<NEW_LINE>loadFonts();<NEW_LINE>Font maybe = fontDifferent.get(name);<NEW_LINE>if (maybe != null) {<NEW_LINE>return maybe;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Font font = new Font(name, Font.PLAIN, 1);<NEW_LINE>// make sure we ha...
PLAIN, 1).getFontName();
1,266,406
public void process(Heartbeat heartbeat, EventEmitter<Response> emitter) throws Exception {<NEW_LINE>RequestHeader header = heartbeat.getHeader();<NEW_LINE>if (!ServiceUtils.validateHeader(header)) {<NEW_LINE>ServiceUtils.sendRespAndDone(StatusCode.EVENTMESH_PROTOCOL_HEADER_ERR, emitter);<NEW_LINE>return;<NEW_LINE>}<NE...
aclLogger.warn("CLIENT HAS NO PERMISSION, HeartbeatProcessor failed", e);
1,357,811
private static void addDeploymentRelatedProcessorAndServices(final CatchEventBehavior catchEventBehavior, final int partitionId, final ZeebeState zeebeState, final TypedRecordProcessors typedRecordProcessors, final DeploymentResponder deploymentResponder, final ExpressionProcessor expressionProcessor, final Writers wri...
ValueType.DEPLOYMENT, CREATE, processor);
1,773,731
private void checkParamsForPkceNotEnforcedClient(String codeChallengeMethod, String pkceCodeChallengeMethod, String codeChallenge) throws AuthorizationCheckException {<NEW_LINE>if (codeChallenge == null && codeChallengeMethod != null) {<NEW_LINE>logger.info("PKCE supporting Client without code challenge");<NEW_LINE>eve...
event.error(Errors.INVALID_REQUEST);
1,761,537
private void removeVmfsDatastore(Command cmd, VmwareHypervisorHost hyperHost, String datastoreName, String storageIpAddress, int storagePortNumber, String iqn, List<Pair<ManagedObjectReference, String>> lstHosts) throws Exception {<NEW_LINE>VmwareContext context = hostService.getServiceContext(cmd);<NEW_LINE>unmountVmf...
rescanAllHosts(hostsUsingStaticDiscovery, true, false);
249,954
private MarketDataNode buildNode(MarketDataId<?> id, MarketDataNode.DataType dataType) {<NEW_LINE>// Observable data has special handling and is guaranteed to have a function.<NEW_LINE>// Supplied data definitely has no dependencies because it already exists and doesn't need to be built.<NEW_LINE>if (id instanceof Obse...
dataType, ImmutableList.of());
306,239
void writeChunk(FileChunk newChunk) throws IOException {<NEW_LINE>synchronized (this) {<NEW_LINE>pendingChunks.add(newChunk);<NEW_LINE>}<NEW_LINE>while (true) {<NEW_LINE>final FileChunk chunk;<NEW_LINE>synchronized (this) {<NEW_LINE>chunk = pendingChunks.peek();<NEW_LINE>if (chunk == null || chunk.position != lastPosit...
chunk.md.name());
1,084,272
private Dll closestDll(Edb edb, long address) throws IOException {<NEW_LINE>Dll closestDll = null;<NEW_LINE>long closestDist = Long.MAX_VALUE;<NEW_LINE>for (Dll dll = edb.getFirstDll(); dll != null; dll = dll.getNext()) {<NEW_LINE>final DllFunction[] f = dll.getFunctions();<NEW_LINE>for (int i = 0; i < f.length; ++i) {...
[i].address - address);
399,231
public Map<String, Object> serialiseConfig() {<NEW_LINE>Map<String, Object> configAsMap = new HashMap<>();<NEW_LINE>// ONLY ADD IF NOT DEFAULT<NEW_LINE>// if (this.handleVocabUris != 0) {<NEW_LINE>configAsMap.put("_handleVocabUris", this.handleVocabUris);<NEW_LINE>configAsMap.put("_handleMultival", this.handleMultival)...
put("_classLabel", this.classLabelName);
1,258,346
public Map<Integer, SortedSet<ExecutionTask>> applyStrategy(Set<ExecutionTask> replicaMovementTasks, StrategyOptions strategyOptions) {<NEW_LINE>Map<Integer, SortedSet<ExecutionTask>> tasksByBrokerId = new HashMap<>();<NEW_LINE>for (ExecutionTask task : replicaMovementTasks) {<NEW_LINE><MASK><NEW_LINE>// Add the task t...
ExecutionProposal proposal = task.proposal();
224,882
public void generalizedIf(Tree condition, Tree thenSection, Iterable<? extends Tree> elseSection, boolean realElse) {<NEW_LINE>Boolean result = scan(condition, null);<NEW_LINE>if (result != null) {<NEW_LINE>if (result) {<NEW_LINE>scan(thenSection, null);<NEW_LINE>if (realElse && elseSection.iterator().hasNext())<NEW_LI...
, Flow.State>(oldVariable2State);
1,764,689
public long writeEvent(byte[] eventArray) throws IOException {<NEW_LINE>lastWrite = Instant.now();<NEW_LINE>ByteBuffer eventBuffer = ByteBuffer.wrap(eventArray);<NEW_LINE>RecordType nextType = null;<NEW_LINE>ByteBuffer slice = eventBuffer.slice();<NEW_LINE>long startPosition = channel.position();<NEW_LINE>while (slice....
return channel.position() - startPosition;
832,269
public void purgeCustomers(final Map<String, String> config) {<NEW_LINE>if (LOG.isDebugEnabled()) {<NEW_LINE>LOG.debug("Purging customers");<NEW_LINE>}<NEW_LINE>if (MapUtils.isEmpty(config)) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>CustomerPurgeParams purgeParams = new CustomerPurgeParams(config).invoke();<NEW_LINE>int pr...
throw new IllegalArgumentException("Cannot purge customers since there was no configuration provided. " + "In the absence of config params, all customers would be candidates for deletion.");
1,597,707
private void readJSONEncodedItem(String key, SharedPreferences prefs, ReadableArguments options, Promise promise) {<NEW_LINE>String encryptedItemString = prefs.getString(key, null);<NEW_LINE>JSONObject encryptedItem;<NEW_LINE>try {<NEW_LINE>encryptedItem = new JSONObject(encryptedItemString);<NEW_LINE>} catch (JSONExce...
Log.e(TAG, message);
910,145
public static void onEnter(@Advice.Origin Method originMethod, @Advice.Local("otelMethod") Method method, @Advice.Local("otelOperationEndSupport") AsyncOperationEndSupport<Method, Object> operationEndSupport, @Advice.Local("otelContext") Context context, @Advice.Local("otelScope") Scope scope) {<NEW_LINE>// Every usage...
class, method.getReturnType());
1,102,569
private void actionRefresh() {<NEW_LINE>if (m_lookup == null)<NEW_LINE>return;<NEW_LINE>//<NEW_LINE>setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));<NEW_LINE>//<NEW_LINE>Object obj = m_combo.getSelectedItem();<NEW_LINE>log.info(m_columnName + " #" + m_lookup.getSize() + ", Selected=" + obj);<NEW_LINE>// no ne...
", Selected=" + m_combo.getSelectedItem());
114,085
public DataTypeComponent insertAtOffset(int offset, DataType dataType, int length, String name, String comment) throws IllegalArgumentException {<NEW_LINE>if (offset < 0) {<NEW_LINE>throw new IllegalArgumentException("Offset cannot be negative.");<NEW_LINE>}<NEW_LINE>if (dataType instanceof BitFieldDataType) {<NEW_LINE...
components.add(index, dtc);
994,774
public GraphQLObjectType toGraphQLType(String typeName, AnnotatedType javaType, TypeMappingEnvironment env) {<NEW_LINE>BuildContext buildContext = env.buildContext;<NEW_LINE>GraphQLObjectType.Builder typeBuilder = newObject().name(typeName).description(buildContext.typeInfoGenerator.generateTypeDescription(javaType, bu...
.withInterface((GraphQLTypeReference) inter);
1,155,090
private void parseAlertTargets() {<NEW_LINE>if (alertTargets == null || alertTargets.isEmpty()) {<NEW_LINE>setDefaultHostPort();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int startIdx = 0;<NEW_LINE>int endIdx = alertTargets.length();<NEW_LINE>if (Chars.isQuoted(alertTargets)) {<NEW_LINE>startIdx++;<NEW_LINE>endIdx--;<NEW_LI...
setHostPort(hostIdx, portIdx, len);
747,469
final GetDiskSnapshotResult executeGetDiskSnapshot(GetDiskSnapshotRequest getDiskSnapshotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDiskSnapshotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
161,136
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent enchantment = game.getPermanent(source.getSourceId());<NEW_LINE>if (controller == null || enchantment == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Permanent creature = gam...
, Duration.EndOfTurn), source);
1,522,314
private void emptyCourtesyMeasure() {<NEW_LINE><MASK><NEW_LINE>Measure topMeasure = lastStack.getFirstMeasure();<NEW_LINE>// Check it is a short measure with no ending barline<NEW_LINE>if (topMeasure.getRightPartBarline() != null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int minStandardWidth = system.getSheet().getScale(...
MeasureStack lastStack = system.getLastStack();
108,817
private NotebookEntity buildEntityFromNotebook(Notebook notebook) {<NEW_LINE>NotebookEntity entity = new NotebookEntity();<NEW_LINE>try {<NEW_LINE>entity.setId(notebook.<MASK><NEW_LINE>entity.setNotebookSpec(new GsonBuilder().disableHtmlEscaping().create().toJson(notebook.getSpec()));<NEW_LINE>entity.setNotebookStatus(...
getNotebookId().toString());
939,786
public static ListTransitRouterPeerAttachmentsResponse unmarshall(ListTransitRouterPeerAttachmentsResponse listTransitRouterPeerAttachmentsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listTransitRouterPeerAttachmentsResponse.setRequestId(_ctx.stringValue("ListTransitRouterPeerAttachmentsResponse.RequestId"));<NEW_LIN...
("ListTransitRouterPeerAttachmentsResponse.TransitRouterAttachments[" + i + "].ResourceType"));
1,595,778
public Table build() {<NEW_LINE>switch(tableType) {<NEW_LINE>case ADDRESS_BALANCE_TBL:<NEW_LINE>return new AddressBalanceTableBuilder(protos).build();<NEW_LINE>case BSQ_BALANCE_TBL:<NEW_LINE>return new BsqBalanceTableBuilder(protos).build();<NEW_LINE>case BTC_BALANCE_TBL:<NEW_LINE>return new BtcBalanceTableBuilder(prot...
TradeDetailTableBuilder(protos).build();
1,595,769
private void editFontSize() {<NEW_LINE>MaterialDialog.Builder builder = DialogUtils.getInstance().createCustomDialogWithoutContent(mActivity, R.string.font_size_edit);<NEW_LINE>MaterialDialog dialog = builder.customView(R.layout.dialog_font_size, true).onPositive((dialog1, which) -> {<NEW_LINE>final EditText fontInput ...
(fontInput.getText()));
1,796,330
private void createPanelsForEnable() {<NEW_LINE>if (getPanels() == null) {<NEW_LINE>panels = new ArrayList<WizardDescriptor<MASK><NEW_LINE>getPanels().add(new DescriptionStep());<NEW_LINE>getPanels().add(new EnableStep());<NEW_LINE>names = new String[] { NbBundle.getMessage(FeatureOnDemandWizardIterator.class, "Descrip...
.Panel<WizardDescriptor>>();
703,215
public boolean play(Game game, Player activePlayer) {<NEW_LINE>// uncomment this to trace triggered abilities and/or continous effects<NEW_LINE>// TraceUtil.traceTriggeredAbilities(game);<NEW_LINE>// game.getState().getContinuousEffects().traceContinuousEffects(game);<NEW_LINE>activePlayer.becomesActivePlayer();<NEW_LI...
activePlayer.getLogName() + " skips their turn.");
1,825,798
private void updateAllocationMetrics(NodeList nodes) {<NEW_LINE>Map<ClusterId, List<Node>> byCluster = nodes.stream().filter(node -> node.allocation().isPresent()).filter(node -> !node.allocation().get().owner().instance().isTester()).collect(Collectors.groupingBy(node -> new ClusterId(node.allocation().get().owner(), ...
) activeNodes + (double) nonActiveNodes);
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...
, addToIndex.getErrorMessage()));
846,678
void sendTokenRegisterdProperties(MTWebSocket mtws, String inResponseTo, JsonObject data) {<NEW_LINE>String tokenId = data.get("tokenId").getAsString();<NEW_LINE>Token token = findTokenFromId(tokenId);<NEW_LINE>if (token == null) {<NEW_LINE>System.out.println("DEBUG: sendTokenInfo(): Unable to find token " + tokenId);<...
"fontColor", macro.getFontColorAsHtml());
403,696
public Size apply(MethodVisitor methodVisitor, Context implementationContext, MethodDescription instrumentedMethod) {<NEW_LINE>if (instrumentedMethod.isStatic()) {<NEW_LINE>throw new IllegalStateException("Hash code method must not be static: " + instrumentedMethod);<NEW_LINE>} else if (instrumentedMethod.getParameters...
add(MethodVariableAccess.loadThis());
616,223
public static String readExternalRef(String file, RefFormat refFormat, List<AuthorizationValue> auths, Path parentDirectory) {<NEW_LINE>if (!RefUtils.isAnExternalRefFormat(refFormat)) {<NEW_LINE>throw new RuntimeException("Ref is not external");<NEW_LINE>}<NEW_LINE>String result;<NEW_LINE>try {<NEW_LINE>if (refFormat =...
result = ClasspathHelper.loadFileFromClasspath(file);
1,835,674
private Match doExists(RepeatableFind rf, double timeout) {<NEW_LINE>Image img = rf._image;<NEW_LINE>String targetStr = img.getName();<NEW_LINE>if (!(timeout > 0)) {<NEW_LINE>log(logLevel, "exists: waiting %.1f secs for %s to appear in %s", timeout, targetStr, this.toStringShort());<NEW_LINE>}<NEW_LINE>if (rf.repeat(ti...
logLevel, "exists: %s has appeared (%s)", targetStr, lastMatch);
1,616,853
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@Name('s0') select (select p00 from SupportBean_S0#keepall() as s0 where s0.p01 in (s1.p10, s1.p11)) as c0 from SupportBean_S1 as s1";<NEW_LINE>env.compileDeploy<MASK><NEW_LINE>for (int i = 0; i < 10; i++) {<NEW_LINE>env.sendEventBean(new SupportBean_S...
(epl).addListener("s0");
1,714,342
private void initialize() {<NEW_LINE>setModal(true);<NEW_LINE>getTitleLabel().setAlignment(VisUI.getDefaultTitleAlign());<NEW_LINE>defaults().space(6);<NEW_LINE>add(contentTable = new Table(skin)).expand().fill();<NEW_LINE>row();<NEW_LINE>add(buttonTable = new Table(skin));<NEW_LINE>contentTable.defaults().space(2).pad...
Actor newFocusedActor = event.getRelatedActor();
1,643,554
public static Order adaptOrder(OrderResponse order) {<NEW_LINE>OrderType orderType = adaptSide(order.getSide());<NEW_LINE>CurrencyPair currencyPair = adaptCurrencyPair(order.getSymbol());<NEW_LINE>OrderStatus status;<NEW_LINE>if (order.isCancelExist()) {<NEW_LINE>status = CANCELED;<NEW_LINE>} else if (order.isActive())...
stopPrice(order.getStopPrice());
704,789
public List<Map<String, Object>> duplicatesWithCount(@Name("coll") List<Object> coll) {<NEW_LINE>if (coll == null || coll.size() <= 1) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>// mimicking a counted bag<NEW_LINE>Map<Object, MutableInt> duplicates = new LinkedHashMap<>(coll.size());<NEW_LINE>List<M...
entry.put("item", o);
339,516
private void createColorControl(Composite parent) {<NEW_LINE>createLabel(parent, Messages.BorderColorSection_0, <MASK><NEW_LINE>fColorChooser = new ColorChooser(parent, getWidgetFactory());<NEW_LINE>fColorChooser.setDoShowDefaultMenuItem(false);<NEW_LINE>fColorChooser.setDoShowPreferencesMenuItem(false);<NEW_LINE>// No...
ITabbedLayoutConstants.STANDARD_LABEL_WIDTH, SWT.CENTER);
436,222
final GetSessionResult executeGetSession(GetSessionRequest getSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSessionRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<GetSessionRequest> request = null;<NEW_LINE>Response<Ge...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,478,296
public static void showCheckboxDialog(Context context, @StringRes int titleId, @StringRes int messageId, @StringRes int checkboxMessageId, CheckboxInputListener listener) {<NEW_LINE>View view = LayoutInflater.from(context).inflate(R.layout.dialog_checkbox, null);<NEW_LINE>CheckBox checkBox = view.findViewById(R.id.chec...
dialog.getButton(AlertDialog.BUTTON_POSITIVE);
1,320,814
public static GetPatentPlanDetailListResponse unmarshall(GetPatentPlanDetailListResponse getPatentPlanDetailListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getPatentPlanDetailListResponse.setRequestId(_ctx.stringValue("GetPatentPlanDetailListResponse.RequestId"));<NEW_LINE>getPatentPlanDetailListResponse.setPageNum(...
("GetPatentPlanDetailListResponse.Data[" + i + "].Discount"));
899,120
public synchronized Object[] nextNElements(int n) throws RemoteException, EnumeratorException {<NEW_LINE>if (!hasMoreElementsR()) {<NEW_LINE>throw new NoMoreElementsException();<NEW_LINE>}<NEW_LINE>EJBObject[] remainder = null;<NEW_LINE>final int numCached = elements.length - index;<NEW_LINE>if (!exhausted && numCached...
0, result, numFromCache, numRemaining);
811,109
public void encodeEnd(FacesContext context, UIComponent component) throws IOException {<NEW_LINE>Droppable droppable = (Droppable) component;<NEW_LINE>String <MASK><NEW_LINE>renderDummyMarkup(context, component, clientId);<NEW_LINE>UIComponent target = SearchExpressionFacade.resolveComponent(context, droppable, droppab...
clientId = droppable.getClientId(context);
24,353
private Void saveOntologyInternal() throws OWLOntologyStorageException {<NEW_LINE>for (OntologySaveDescriptor descriptor : saveDescriptors) {<NEW_LINE>try {<NEW_LINE>OWLOntology ontology = descriptor.getOntology();<NEW_LINE>OntologyIRIShortFormProvider sfp = new OntologyIRIShortFormProvider();<NEW_LINE>String <MASK><NE...
ontologyShortForm = sfp.getShortForm(ontology);
1,537,809
public <T> void configure(ServerConfiguration config, T helperParam, Class<T> type, SpringConfiguration additionalConfig) {<NEW_LINE>if (tc.isDebugEnabled()) {<NEW_LINE>Tr.debug(tc, "SpringConfiguration Info = " + additionalConfig);<NEW_LINE>}<NEW_LINE>if (tc.isWarningEnabled()) {<NEW_LINE>// WRN about some configurati...
.next().getId();
456,750
public String cleanup(@ShellOption(value = { "", "--id" }, help = "the task execution id", defaultValue = ShellOption.NULL) Long id, @ShellOption(help = "all task execution IDs", defaultValue = "false") boolean all, @ShellOption(help = "include non-completed task executions", defaultValue = "false") boolean includeNonC...
hasText(taskName)), "`taskName`, `id` and `all` options are mutually exclusive.");
316,856
private void recordMovieData(int indexX, int indexY) {<NEW_LINE>Paint paint;<NEW_LINE>int posX = indexY * gridWidth + indexY * gridWidthMargin;<NEW_LINE>int posY = rectBoundsHorizontalOffset + indexX * (gridHeight + gridHeightMargin + titleHeight + titleMargin);<NEW_LINE>// Draw title<NEW_LINE>if (indexY == 0) {<NEW_LI...
category.length(), textRect);
1,652,178
public void fillExecutableFromMapObject(final TypedMapWrapper<String, Object> flowObjMap) {<NEW_LINE>super.fillExecutableFromMapObject(flowObjMap);<NEW_LINE>this.flowId = flowObjMap.getString(FLOW_ID_PARAM);<NEW_LINE>final List<Object> nodes = flowObjMap.<Object>getList(NODES_PARAM);<NEW_LINE>if (nodes != null) {<NEW_L...
final ExecutableNode exJob = new ExecutableNode();
1,401,947
public ListMetricStreamsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ListMetricStreamsResult listMetricStreamsResult = new ListMetricStreamsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocu...
new ArrayList<MetricStreamEntry>());
1,082,096
public void endVisit(MethodDeclaration node) {<NEW_LINE>ExecutableElement element = node.getExecutableElement();<NEW_LINE>if (!ElementUtil.getName(element).equals("compareTo") || node.getBody() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DeclaredType comparableType = typeUtil.findSupertype(ElementUtil.getDeclaringC...
> typeArguments = comparableType.getTypeArguments();
936,892
public javax.ws.rs.core.Response.ResponseBuilder variants(List<Variant> variants) {<NEW_LINE>if (variants == null) {<NEW_LINE>header(HttpHeaders.VARY, null);<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>if (variants.isEmpty()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>MediaType accept = variants.get(0).getMediaType();<N...
v.getEncoding(), acceptEncoding);
456,621
private void _select(final Object element, final VirtualFile file, final boolean requestFocus, final Condition<? super AbstractTreeNode> nonStopCondition, final AsyncPromise<Object> result, @Nonnull final ProgressIndicator indicator, @Nullable final Ref<Object> virtualSelectTarget, final FocusRequestor focusRequestor, ...
final AbstractTreeNode alreadySelected = alreadySelectedNode(element);
1,359,855
public void translate(float velocityX, float velocityY) {<NEW_LINE>if ((velocityX * velocityX + velocityY * velocityY) < EPSILON)<NEW_LINE>return;<NEW_LINE>final float x = getX() + getWidth() / 2f;<NEW_LINE>final float y = getY() + getHeight() / 2f;<NEW_LINE>particleCollided = false;<NEW_LINE>startPoint.set(x, y);<NEW_...
x + velocityX, y + velocityY);
1,443,781
private int computeScrollOffset(RecyclerView.State state) {<NEW_LINE>if (getChildCount() == 0) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>int allChildrenCount = state.getItemCount();<NEW_LINE>View firstReferenceView = findFirstReferenceChild(allChildrenCount);<NEW_LINE>View lastReferenceView = findLastReferenceChild(allC...
- mOrientationHelper.getDecoratedStart(firstReferenceView));
836,480
public static int encodedLength(CharSequence sequence, boolean tolerateInvalidSurrogatePairs) {<NEW_LINE>// Warning to maintainers: this implementation is highly optimized.<NEW_LINE>int utf16Length = sequence.length();<NEW_LINE>int utf8Length = utf16Length;<NEW_LINE>int i = 0;<NEW_LINE>// This loop optimizes for pure A...
encodedLengthGeneral(sequence, i, tolerateInvalidSurrogatePairs);
543,946
public void processStartTag(final QNm elementName) throws SirixException {<NEW_LINE>final QNm name = checkNotNull(elementName);<NEW_LINE>long key = -1;<NEW_LINE>switch(insertLocation) {<NEW_LINE>case AS_FIRST_CHILD:<NEW_LINE>if (parents.peek() == Fixed.NULL_NODE_KEY.getStandardProperty()) {<NEW_LINE>key = wtx.insertEle...
insertElementAsRightSibling(name).getNodeKey();
1,258,140
private void refreshUI(final GitRepository repository) {<NEW_LINE>// If we get multiple requests queuing up, just cancel current and reschedule<NEW_LINE>if (refreshUIJob != null)<NEW_LINE>refreshUIJob.cancel();<NEW_LINE>refreshUIJob = new // $NON-NLS-1$<NEW_LINE>// $NON-NLS-1$<NEW_LINE>UIJob("update UI for index change...
getParent().setLayoutData(rd);
768,976
public int extractItems(IServerItemEntry entry, int count, @Nonnull IInventoryPanel te) {<NEW_LINE>float availablePower = te.getPowerLevel() + te.getAvailablePower();<NEW_LINE>availablePower -= InvpanelConfig.inventoryPanelExtractCostPerOperation.get();<NEW_LINE>if (availablePower <= 0) {<NEW_LINE>return 0;<NEW_LINE>}<...
InvpanelConfig.inventoryPanelExtractCostPerOperation.get());
48,856
public static void main(String[] args) {<NEW_LINE>var cars = CarFactory.createCars();<NEW_LINE>var <MASK><NEW_LINE>LOGGER.info(modelsImperative.toString());<NEW_LINE>var modelsFunctional = FunctionalProgramming.getModelsAfter2000(cars);<NEW_LINE>LOGGER.info(modelsFunctional.toString());<NEW_LINE>var groupingByCategoryI...
modelsImperative = ImperativeProgramming.getModelsAfter2000(cars);