idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
87,558
final CreateRepositoryResult executeCreateRepository(CreateRepositoryRequest createRepositoryRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createRepositoryRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateRepository");
1,173,072
public void onEntityCollidedWithBlock(@Nonnull World worldIn, @Nonnull BlockPos pos, @Nonnull IBlockState state, @Nonnull Entity entityIn) {<NEW_LINE>entityIn.attackEntityFrom(DamageSource.OUT_OF_WORLD, 1.0F);<NEW_LINE>if (!worldIn.isRemote) {<NEW_LINE>if (rand.nextFloat() < .50f) {<NEW_LINE>entityIn.setRotationYawHead...
, 0, true, true));
1,652,139
public DeleteBuildBatchResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DeleteBuildBatchResult deleteBuildBatchResult = new DeleteBuildBatchResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
)).unmarshall(context));
901,342
public void onChannelInit(ConnectionObserver observer, Channel channel, @Nullable SocketAddress remoteAddress) {<NEW_LINE>if (sslProvider != null) {<NEW_LINE>sslProvider.addSslHandler(channel, remoteAddress, SSL_DEBUG);<NEW_LINE>if ((protocols & h11orH2) == h11orH2) {<NEW_LINE>channel.pipeline().addBefore(NettyPipeline...
acceptGzip, decoder, metricsRecorder, uriTagValue);
1,153,087
public void handle(String currentId, String value, String qualifierBlock, String comment) {<NEW_LINE>Matcher matcher = PATTERN.matcher(value);<NEW_LINE>OWLDataFactory df = getDataFactory();<NEW_LINE>String annotationValue;<NEW_LINE>Set<OWLAnnotation> xrefAnnotations = Collections.emptySet();<NEW_LINE>if (matcher.matche...
property = df.getOWLAnnotationProperty(propertyIRI);
1,165,725
private void proxy(HttpServletRequest req, HttpServletResponse resp, String path) throws IOException {<NEW_LINE>AsyncContext async = req.startAsync();<NEW_LINE>String relPath = path.substring(proxyPath.length());<NEW_LINE><MASK><NEW_LINE>if (!relPath.isEmpty() && !proxyUrl.endsWith("/")) {<NEW_LINE>sb.append("/");<NEW_...
StringBuilder sb = new StringBuilder(proxyUrl);
971,356
private void exposeJsInterface() {<NEW_LINE>int SDK_INT = Build.VERSION.SDK_INT;<NEW_LINE>boolean isHoneycomb = (SDK_INT >= Build.VERSION_CODES.HONEYCOMB && SDK_INT <= Build.VERSION_CODES.HONEYCOMB_MR2);<NEW_LINE>if (isHoneycomb || (SDK_INT < Build.VERSION_CODES.GINGERBREAD)) {<NEW_LINE>Log.i(TAG, "Disabled addJavascri...
this.addJavascriptInterface(exposedJsApi, "_cordovaNative");
976,297
synchronized boolean doComplete(HashResponseHeaders headers) {<NEW_LINE>if (state != State.OPEN) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>state = State.COMPLETING;<NEW_LINE>try {<NEW_LINE>// Finish all registered before complete consumers<NEW_LINE>for (Consumer<ResponseHeaders> consumer : beforeCompleteConsumers) {...
.Status.OK_200 : headers.httpStatus;
932,142
public boolean loadBPartner(int C_BPartner_ID) {<NEW_LINE>log.config("C_BPartner_ID=" + C_BPartner_ID);<NEW_LINE>// New bpartner<NEW_LINE>if (C_BPartner_ID == 0) {<NEW_LINE>m_partner = null;<NEW_LINE>m_pLocation = null;<NEW_LINE>m_user = null;<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>m_partner = new MBPartner(Env.getC...
setText(m_user.getPhone());
1,141,050
private void addTab(String url, String content) throws Exception {<NEW_LINE>int ix = url.startsWith("file:") ? url.lastIndexOf(File.separatorChar) : url.lastIndexOf('/');<NEW_LINE>if (ix == -1) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>String title = url.substring(ix + 1);<NEW_LINE>metrics.getSection(DEFINITION_PARTS_SECTI...
ix = url.lastIndexOf('/');
1,377,464
final ListBuiltInIntentsResult executeListBuiltInIntents(ListBuiltInIntentsRequest listBuiltInIntentsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBuiltInIntentsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
endClientExecution(awsRequestMetrics, request, response);
942,228
protected Token<HtmlTokenType> produce() {<NEW_LINE>Token<MASK><NEW_LINE>if (null == token) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Handle escape-exempt blocks.<NEW_LINE>// The parse() method is only dimly aware of escape-excempt blocks, so<NEW_LINE>// here we detect the beginning and ends of escape exempt block...
<HtmlTokenType> token = parseToken();
1,005,631
public void add(List<URL> fontURLList, List<EmbedFontInfo> fontInfoList) throws URISyntaxException {<NEW_LINE>FontCache cache = manager.getFontCache();<NEW_LINE>FontInfoFinder finder = new FontInfoFinder();<NEW_LINE>finder.setEventListener(listener);<NEW_LINE>for (URL fontURL : fontURLList) {<NEW_LINE>EmbedFontInfo[] e...
toURI(), resourceResolver, cache);
962,804
public void render(AbstractJsonTypeManifold tm, StringBuilder sb, int indent, boolean mutable) {<NEW_LINE>setTm(tm);<NEW_LINE>if (getParent() != null) {<NEW_LINE>sb.append('\n');<NEW_LINE>}<NEW_LINE>String name = getName();<NEW_LINE>String identifier = addActualNameAnnotation(sb, indent, name, false);<NEW_LINE>if (!(ge...
objValue)).append(")");
878,082
public boolean action(Request request, Response response) {<NEW_LINE>if (request.getNettyRequest() instanceof FullHttpRequest) {<NEW_LINE>InputGetGroup inputGetGroup = getRequestBody(request.getNettyRequest(), InputGetGroup.class);<NEW_LINE>if (inputGetGroup != null && (!StringUtil.isNullOrEmpty(inputGetGroup.getGroupI...
result = RestResult.ok(pojoGroupInfo);
987,286
public com.amazonaws.services.networkfirewall.model.InvalidTokenException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.networkfirewall.model.InvalidTokenException invalidTokenException = new com.amazonaws.services.networkfirewall.model.InvalidTokenException(n...
int originalDepth = context.getCurrentDepth();
113,941
private static Set<String> inferPackages(Path inJar) {<NEW_LINE>Set<String> packageNames = new TreeSet<>();<NEW_LINE>try (InputStream is = Files.newInputStream(inJar);<NEW_LINE>JarInputStream jis = new JarInputStream(is)) {<NEW_LINE>for (JarEntry entry = jis.getNextJarEntry(); entry != null; entry = jis.getNextJarEntry...
name.substring(0, index);
314,154
boolean refresh(TypeElement typeElement) {<NEW_LINE>Map<String, ? extends AnnotationMirror> annByType = getHelper().getAnnotationsByType(typeElement.getAnnotationMirrors());<NEW_LINE>AnnotationMirror annotationMirror = null;<NEW_LINE>switch(kind) {<NEW_LINE>case STATELESS:<NEW_LINE>// NOI18N<NEW_LINE>annotationMirror =...
annotationMirror = annByType.get("javax.ejb.Singleton");
1,045,373
public static void assertOutput(Context context, String actual, String assetDirectory, String dumpFile) throws IOException {<NEW_LINE>if (DUMP_FILE_ACTION == COMPARE_WITH_EXISTING) {<NEW_LINE>String expected;<NEW_LINE>try {<NEW_LINE>expected = TestUtil.getString(context, dumpFile);<NEW_LINE>} catch (FileNotFoundExcepti...
IOException("Dump file not found. " + DUMP_UPDATE_INSTRUCTIONS, e);
1,609,169
protected boolean dealWithIt(String storeName, long pushVersion, Map<Node, AdminStoreSwapper.Response> fetchResponseMap) {<NEW_LINE>// We attempt to delete data from all nodes, even the ones that failed their fetch.<NEW_LINE>for (Node node : fetchResponseMap.keySet()) {<NEW_LINE>AdminStoreSwapper.Response response = fe...
storeName, response.getResponse());
135,621
public boolean process(DMatrixRMaj R, List<Point3D_F64> worldPts, List<Point2D_F64> observed) {<NEW_LINE>if (worldPts.size() != observed.size())<NEW_LINE>throw new IllegalArgumentException("Number of worldPts and observed must be the same");<NEW_LINE>if (worldPts.size() < 2)<NEW_LINE>throw new IllegalArgumentException(...
- o.x * RX.y;
796,815
public GetBackendAPIModelsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetBackendAPIModelsResult getBackendAPIModelsResult = new GetBackendAPIModelsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
1,468,372
public static DateTimeFieldSpec convertToDateTimeFieldSpec(TimeFieldSpec timeFieldSpec) {<NEW_LINE>DateTimeFieldSpec dateTimeFieldSpec = new DateTimeFieldSpec();<NEW_LINE>TimeGranularitySpec incomingGranularitySpec = timeFieldSpec.getIncomingGranularitySpec();<NEW_LINE>TimeGranularitySpec outgoingGranularitySpec = time...
TimeUnit outgoingTimeUnit = outgoingGranularitySpec.getTimeType();
218,659
public void downloadForm(ServerFormDetails form, @Nullable ProgressReporter progressReporter, @Nullable Supplier<Boolean> isCancelled) throws FormDownloadException {<NEW_LINE>Form formOnDevice;<NEW_LINE>List<Form> preExistingFormsWithSameIdAndVersion = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>formOnDevice = formsRepo...
throw new FormDownloadException.FormSourceError(e);
586,523
public void fileSelected(File newbie) {<NEW_LINE>if (newbie != null) {<NEW_LINE>try {<NEW_LINE>// Force a .zip extension<NEW_LINE>// https://github.com/processing/processing/issues/2526<NEW_LINE>if (!newbie.getName().toLowerCase().endsWith(".zip")) {<NEW_LINE>newbie = new File(newbie.getAbsolutePath() + ".zip");<NEW_LI...
sketchFolder.getName(), zos);
893,968
public Iterable<List<Morpheme>> tokenizeSentences(SplitMode mode, Reader reader) throws IOException {<NEW_LINE>ArrayList<List<Morpheme>> sentences = new ArrayList<>();<NEW_LINE>CharBuffer buffer = CharBuffer.allocate(SentenceDetector.DEFAULT_LIMIT);<NEW_LINE>SentenceDetector detector = new SentenceDetector();<NEW_LINE>...
NonBreakChecker checker = new NonBreakChecker(input);
34,544
public Map<String, Object> createPost(HttpServletRequest req, HttpServletResponse res) {<NEW_LINE>Map<String, Object> entity = readEntity(req);<NEW_LINE>if (!entity.containsKey(Config._TYPE)) {<NEW_LINE>entity.put(Config._TYPE, POST_TYPES[0]);<NEW_LINE>} else if (!StringUtils.equalsAnyIgnoreCase((CharSequence) entity.g...
HttpStatus.CREATED.value());
241,548
private void handleLaunchingIntent(final Intent intent) {<NEW_LINE>if (intent == null)<NEW_LINE>return;<NEW_LINE>String intentAction = intent.getAction();<NEW_LINE>Uri intentData = intent.getData();<NEW_LINE>File file = (File) intent.getSerializableExtra(Document.EXTRA_PATH);<NEW_LINE>boolean intentIsView = Intent.ACTI...
getQueryParameter("line"), -1);
137,433
final RunStatementResult executeRunStatement(RunStatementRequest runStatementRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(runStatementRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
356,759
protected Map<K, V> doProvision(InternalContext context, Dependency<?> dependency) throws InternalProvisionException {<NEW_LINE>SingleParameterInjector<V>[] localInjectors = injectors;<NEW_LINE>if (localInjectors == null) {<NEW_LINE>// if injectors == null, then we have no bindings so return the empty map.<NEW_LINE>ret...
().get(key));
542,985
final GetTagsResult executeGetTags(GetTagsRequest getTagsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTagsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Reques...
invoke(request, responseHandler, executionContext);
1,732,443
public Map<String, String> toMap() {<NEW_LINE>HashMap<String, String> map = new HashMap<String, String>();<NEW_LINE>if (!isBlank(hostname)) {<NEW_LINE>map.<MASK><NEW_LINE>}<NEW_LINE>if (!isBlank(osfamily)) {<NEW_LINE>map.put("osfamily", getOsfamily());<NEW_LINE>}<NEW_LINE>if (!isBlank(osarch)) {<NEW_LINE>map.put("osarc...
put("hostname", getHostname());
522,454
public int dsyev(char jobz, char uplo, int N, INDArray A, INDArray R) {<NEW_LINE>DoublePointer dp = new DoublePointer(1);<NEW_LINE>int status = nativeOps.callInt("LAPACKE_dsyev_work", getColumnOrder(A), (byte) jobz, (byte) uplo, N, (DoublePointer) A.data().addressPointer(), getLda(A), (DoublePointer) R.data().addressPo...
()).getFirst());
954,367
public boolean isPackage(char[][] parentPackageName, char[] packageName) {<NEW_LINE>char[] binaryPackageName = CharOperation.concatWith(parentPackageName, '/');<NEW_LINE>final char[] fieldDescriptorPrefix;<NEW_LINE>if (parentPackageName == null || parentPackageName.length == 0) {<NEW_LINE>fieldDescriptorPrefix = CharAr...
Nd nd = index.getNd();
432,840
public static ExtensionRequestData parseExtensionRequest(String extensionRequest) {<NEW_LINE>ExtensionRequestData extensionData = new ExtensionRequestData();<NEW_LINE>String[] <MASK><NEW_LINE>extensionData.extensionName = parts[0].trim();<NEW_LINE>for (int i = 1; i < parts.length; i++) {<NEW_LINE>String[] keyValue = pa...
parts = extensionRequest.split(";");
1,528,026
public com.amazonaws.services.fms.model.InvalidOperationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.fms.model.InvalidOperationException invalidOperationException = new com.amazonaws.services.fms.model.InvalidOperationException(null);<NEW_LINE>int o...
JsonToken token = context.getCurrentToken();
708,865
private void showMessage(@NonNull String text, @DrawableRes int iconResId, boolean showProgressBar, String btnTitle, View.OnClickListener btnListener) {<NEW_LINE>messageContainer.setVisibility(View.VISIBLE);<NEW_LINE>TextView tvMessage = messageContainer.<MASK><NEW_LINE>tvMessage.setText(text);<NEW_LINE>ImageView icon ...
findViewById(R.id.message_text);
1,201,896
public OperationResult execute(final MessageFrame frame, final EVM evm) {<NEW_LINE>final Address recipientAddress = Words.toAddress(frame.popStackItem());<NEW_LINE>// because of weird EIP150/158 reasons we care about a null account so we can't merge this.<NEW_LINE>final Account recipientNullable = frame.getWorldUpdater...
.of(ExceptionalHaltReason.INSUFFICIENT_GAS));
933,430
public FileVisitResult visitFile(java.nio.file.Path path, java.nio.file.Path mod, BasicFileAttributes attrs) throws IOException {<NEW_LINE>String name = path<MASK><NEW_LINE>if (Util.isClassFileName(name) && isValidPackageNameForClassOrisModule(name)) {<NEW_LINE>try {<NEW_LINE>String fullPath = path.toString();<NEW_LINE...
.getFileName().toString();
702,103
public void copyAsync(DataObject srcData, DataObject destData, AsyncCompletionCallback<CreateCmdResult> callback) {<NEW_LINE>try {<NEW_LINE>objectInDataStoreMgr.update(destData, ObjectInDataStoreStateMachine.Event.CopyingRequested);<NEW_LINE>} catch (NoTransitionException e) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>ob...
s_logger.debug("failed to change state", e);
12,364
protected void attemptStageAction(final ExecutionContext executionContext) throws RetryableJobExecutionException, FatalJobExecutionException {<NEW_LINE>final String requestedJobId = executionContext.getRequestedJobId();<NEW_LINE>final String reservedJobId;<NEW_LINE>if (executionContext.isPreResolved()) {<NEW_LINE>asser...
AgentClientMetadata agentClientMetadata = executionContext.getAgentClientMetadata();
1,203,209
public static Query optimizeQueryUsingMaterializedView(Metadata metadata, Session session, SqlParser sqlParser, AccessControl accessControl, Query node) {<NEW_LINE>MaterializedViewCandidateExtractor materializedViewCandidateExtractor = new MaterializedViewCandidateExtractor(session, metadata);<NEW_LINE>materializedView...
).addMetricValue(MANY_PARTITIONS_MISSING_IN_MATERIALIZED_VIEW_COUNT, 1);
908,120
public void run(final FlowTrigger trigger, Map data) {<NEW_LINE>MergeVolumeSnapshotOnPrimaryStorageMsg mmsg = new MergeVolumeSnapshotOnPrimaryStorageMsg();<NEW_LINE>VolumeSnapshotInventory from = currentLeaf.getParent() == null ? currentLeaf.getInventory() : currentLeaf.getParent().getInventory();<NEW_LINE>mmsg.setFrom...
currentLeaf.getParent() == null);
837,680
public JobExecution updateJobExecutionAndInstanceOnStarted(final long jobExecutionId, final Date startedTime) throws NoSuchJobExecutionException {<NEW_LINE>EntityManager em <MASK><NEW_LINE>try {<NEW_LINE>JobExecution exec = new TranRequest<JobExecution>(em) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public JobExecution ca...
= getPsu().createEntityManager();
1,083,869
public static void main(String[] pArgs) throws IOException {<NEW_LINE>BufferedImage image = ImageIO.read(new File("2006-Lamborghini-Gallardo-Spyder-Y-T-1600x1200.png"));<NEW_LINE>// BufferedImage image = ImageIO.read(new File("focus-rs.jpg"));<NEW_LINE>// BufferedImage image = ImageIO.read(new File("blauesglas_16_bitma...
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
52,765
final GetFunctionResult executeGetFunction(GetFunctionRequest getFunctionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFunctionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.SERVICE_ID, "CloudFront");
1,057,126
private void buildUI() {<NEW_LINE>JPanel panel = new JPanel(new BorderLayout());<NEW_LINE>panel.add(buildToolbar(), BorderLayout.PAGE_START);<NEW_LINE>panel.add(<MASK><NEW_LINE>add(panel, BorderLayout.NORTH);<NEW_LINE>JComponent securityLog = buildSecurityLog();<NEW_LINE>inspectorPanel = JInspectorPanelFactory.build(bu...
buildRunnerBar(), BorderLayout.CENTER);
674,450
public static void approach2(OpcPackage pkg, StringBuilder sb) {<NEW_LINE>sb.append("\n\n Approach 2:");<NEW_LINE>HashMap<PartName, Part> parts = pkg.getParts().getParts();<NEW_LINE>HashMap<String, Object> tmp = new HashMap<String, Object>();<NEW_LINE>Collection col = parts.values();<NEW_LINE>Iterator iterator = col.it...
append("\nDuplicate CustomXML itemId " + itemId + "; check your source docx!");
588,251
public void selectObject(final Object obj, final PointInfo pt) {<NEW_LINE>// if obj is null it means we released the pointers<NEW_LINE>// if scale is not 1 it means we pinched<NEW_LINE>if (obj == null && mMultiTouchScale != 1.0f) {<NEW_LINE>final float scaleDiffFloat = (float) (Math.log(mMultiTouchScale) * ZOOM_LOG_BAS...
y - getHeight() / 2);
602,766
private void handle(final GetVmConsoleAddressFromHostMsg msg) {<NEW_LINE>final GetVmConsoleAddressFromHostReply reply = new GetVmConsoleAddressFromHostReply();<NEW_LINE>GetVncPortCmd cmd = new GetVncPortCmd();<NEW_LINE>cmd.setVmUuid(msg.getVmInstanceUuid());<NEW_LINE>new Http<>(getConsolePortPath, cmd, GetVncPortRespon...
setSpiceTlsPort(ret.getSpiceTlsPort());
1,214,824
public void updateTime() {<NEW_LINE>byte[] payload = new byte[TIME_INFO_PAYLOAD_LEN];<NEW_LINE>byte tmp;<NEW_LINE>Calendar now = new GregorianCalendar(tz);<NEW_LINE>payload[0] = (byte) (now.get(Calendar.YEAR) - 2000);<NEW_LINE>payload[1] = (byte) now.get(Calendar.DAY_OF_MONTH);<NEW_LINE>// TODO ?? can set<NEW_LINE>payl...
(Calendar.SECOND) & 0x3f);
1,289,952
public static <T> void walkTypeHierarchy(Class<T> clazz, Collection<Class<?>> excludedTypes, TypeVisitor<? extends T> visitor) {<NEW_LINE>Set<Class<?>> seenInterfaces = Sets.newHashSet();<NEW_LINE>Queue<Class<? super T>> queue = new ArrayDeque<Class<? super T>>();<NEW_LINE>queue.add(clazz);<NEW_LINE>Class<? super T> ty...
T>>uncheckedCast(iface));
208,287
private Mono<Response<Void>> stopWebSiteNetworkTraceSlotWithResponseAsync(String resourceGroupName, String name, String slot, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
804,495
public void updateSQLXML(String columnLabel, SQLXML xmlObject) throws SQLException {<NEW_LINE>try {<NEW_LINE>rsetImpl.updateSQLXML(columnLabel, xmlObject);<NEW_LINE>} catch (SQLException sqlX) {<NEW_LINE>FFDCFilter.processException(sqlX, getClass().getName() + ".updateSQLXML", "5280", this);<NEW_LINE>throw WSJdbcUtil.m...
AdapterUtil.notSupportedX("ResultSet.updateSQLXML", methError);
107,816
public void initSubDevices() {<NEW_LINE>ModelFactory factory = ModelFactory.eINSTANCE;<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>DigitalSensorIO4 sensor = factory.createDigitalSensorIO4();<NEW_LINE>sensor.setUid(getUid());<NEW_LINE>String genericDeviceId = String.valueOf(i);<NEW_LINE>String subId = "in" + generic...
actor.setUid(getUid());
1,025,409
public int onStartCommand(Intent intent, int flags, int startId) {<NEW_LINE>int result = super.onStartCommand(intent, flags, startId);<NEW_LINE>NotificationManager notificationManager = (NotificationManager) getBaseContext().getSystemService(Context.NOTIFICATION_SERVICE);<NEW_LINE>if (intent != null && intent.getAction...
1, notificationBuilder.build());
196,882
private static void putPositiveIntAscii(final byte[] dest, final int offset, final int value, final int digitCount) {<NEW_LINE>int quotient = value;<NEW_LINE>int i = digitCount;<NEW_LINE>while (quotient >= 10_000) {<NEW_LINE>final int lastFourDigits = quotient % 10_000;<NEW_LINE>quotient /= 10_000;<NEW_LINE>final int p...
+ i] = ASCII_DIGITS[p1];
701,114
TServerInstance find(Map<String, TServerInfo> servers, String tabletServer) {<NEW_LINE>HostAndPort addr;<NEW_LINE>String sessionId = null;<NEW_LINE>if (tabletServer.charAt(tabletServer.length() - 1) == ']') {<NEW_LINE>int index = tabletServer.indexOf('[');<NEW_LINE>if (index == -1) {<NEW_LINE>throw new <MASK><NEW_LINE>...
IllegalArgumentException("Could not parse tabletserver '" + tabletServer + "'");
346,787
private void customizeComponents() {<NEW_LINE>newKeywordsButton.setToolTipText((NbBundle.getMessage(this.getClass(), "KeywordSearchEditListPanel.customizeComponents.addWordToolTip")));<NEW_LINE>deleteWordButton.setToolTipText(NbBundle.getMessage(this.getClass(), "KeywordSearchEditListPanel.customizeComponents.removeSel...
= jScrollPane1.getPreferredSize().width;
1,815,650
public SchemaBoundStatement toBoundStatement() {<NEW_LINE>if (columns.isEmpty()) {<NEW_LINE>throw new IllegalStateException("No columns selected");<NEW_LINE>}<NEW_LINE>if (!from.isPresent()) {<NEW_LINE>throw new IllegalStateException("No table selected");<NEW_LINE>}<NEW_LINE>final StringBuilder builder = new StringBuil...
"FROM " + from.get());
497,408
public Void visit(SqlCall call) {<NEW_LINE>final SqlOperator operator = call.getOperator();<NEW_LINE>// If nested aggregates disallowed or found an aggregate at invalid level<NEW_LINE>if (operator.isAggregator() && !(operator instanceof SqlAbstractGroupFunction) && !operator.requiresOver()) {<NEW_LINE>if (delegate != n...
throw new Util.FoundOne(call);
1,564,566
public Stream<NodeTypePropertiesEntry> asNodeStream() {<NEW_LINE>Set<OrderedLabels> labels = labelMap.keySet();<NEW_LINE>List<NodeTypePropertiesEntry> results = new ArrayList<>(100);<NEW_LINE>for (OrderedLabels ol : labels) {<NEW_LINE>PropertyContainerProfile prof = labelMap.get(ol);<NEW_LINE>Long totalObservations = o...
mandatory, tracker.observations, totalObservations);
47,026
private void populateExtensions() {<NEW_LINE>for (QueryBuilderFactory extp : pluginRgty.getExtensionList(QueryBuilderFactory.class)) {<NEW_LINE>QueryBuilderFactory old = builerFactories.get(extp.getQueryBuilderType().toString());<NEW_LINE>if (old != null) {<NEW_LINE>throw new CloudRuntimeException(String.format("duplic...
get(extp.filterName());
1,504,884
public final void paintIcon(InstancePainter painter) {<NEW_LINE>final var g = (Graphics2D) painter.getGraphics().create();<NEW_LINE>g.setColor(Color.DARK_GRAY.brighter());<NEW_LINE>GraphicsUtil.switchToWidth(g, AppPreferences.getScaled(1));<NEW_LINE>g.fillRoundRect(AppPreferences.getScaled(4), 0, AppPreferences.getScal...
+ 1), wh1, wh1);
1,435,015
private boolean loadExtensionList(@NotNull List<DiscoveredExtension> extensionsToLoad) {<NEW_LINE>// ensure correct order of dependencies<NEW_LINE>LOGGER.debug("Reorder extensions to ensure proper load order");<NEW_LINE>extensionsToLoad = generateLoadOrder(extensionsToLoad);<NEW_LINE>loadDependencies(extensionsToLoad);...
"Actually load extension {}", toReload.getName());
1,621,256
public void execute() throws ResourceUnavailableException {<NEW_LINE>boolean success = false;<NEW_LINE>StaticRoute route = null;<NEW_LINE>try {<NEW_LINE>CallContext.current().setEventDetails("Static route Id: " + getEntityId());<NEW_LINE>success = _vpcService.applyStaticRoute(getEntityId());<NEW_LINE>// State is differ...
StaticRoute.class, getEntityId());
1,701,989
public void update() {<NEW_LINE>MinecraftServer server = mod.getServer();<NEW_LINE>if (server == null) {<NEW_LINE>this.online = false;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ServerPlayer player = server.<MASK><NEW_LINE>if (player == null) {<NEW_LINE>this.online = false;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>this.gamemode ...
getPlayerList().getPlayer(uuid);
1,476,224
private void decode() throws IOException {<NEW_LINE>if (myIsDecoded) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>myIsDecoded = true;<NEW_LINE>final File outputFile = new File(decodedFileName());<NEW_LINE>if (isCacheValid(outputFile)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FileOutputStream outputStream = new FileOutputStream...
decodeByte(encodedData[pos++]);
424,325
private Instant prefetchTime(Instant expiration) {<NEW_LINE><MASK><NEW_LINE>// If expiration time doesn't exist, refresh in 60 minutes<NEW_LINE>if (expiration == null) {<NEW_LINE>return now.plus(60, MINUTES);<NEW_LINE>}<NEW_LINE>// If expiration time is 60+ minutes from now, refresh in 30 minutes.<NEW_LINE>Instant sixt...
Instant now = clock.instant();
1,660,043
public void marshall(CreateAccountAssignmentRequest createAccountAssignmentRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createAccountAssignmentRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.mar...
createAccountAssignmentRequest.getInstanceArn(), INSTANCEARN_BINDING);
146,898
public Table metacatToHiveTable(final TableDto dto) {<NEW_LINE>final Table table = new Table();<NEW_LINE>final QualifiedName name = dto.getName();<NEW_LINE>if (name != null) {<NEW_LINE>table.setTableName(name.getTableName());<NEW_LINE>table.setDbName(name.getDatabaseName());<NEW_LINE>}<NEW_LINE>final StorageDto storage...
setPartitionKeys(Collections.emptyList());
683,924
private static void updateStubIndices(@Nonnull final Collection<StubIndexKey> indexKeys, final int inputId, @Nonnull final Map<StubIndexKey, Map<Object, StubIdList>> oldStubTree, @Nonnull final Map<StubIndexKey, Map<Object, StubIdList>> newStubTree) {<NEW_LINE>final StubIndexImpl stubIndex = (StubIndexImpl) StubIndex.g...
? newMap : Collections.emptyMap();
1,235,338
public AirbyteConnectionStatus check(JsonNode config) {<NEW_LINE>var scyllaConfig = new ScyllaConfig(config);<NEW_LINE>// add random uuid to avoid conflicts with existing tables.<NEW_LINE>String tableName = "table_" + UUID.randomUUID().toString().replace("-", "");<NEW_LINE>ScyllaCqlProvider scyllaCqlProvider = null;<NE...
getKeyspace(), tableName, "{}");
882,188
public void change(Event e, @Nullable Object[] delta, ChangeMode mode) {<NEW_LINE>for (Object object : this.objects.getArray(e)) {<NEW_LINE>switch(mode) {<NEW_LINE>case DELETE:<NEW_LINE>if (object instanceof LivingEntity)<NEW_LINE>PotionEffectUtils.clearAllEffects((LivingEntity) object);<NEW_LINE>else if (object instan...
(LivingEntity) object), delta);
653,502
private RemittanceAdviceLineInvoiceDetails buildInvoiceDetailsForRemittanceLine(@NonNull final I_C_Invoice invoice, @NonNull final RemittanceAdvice remittanceAdvice, @NonNull final RemittanceAdviceLine remittanceAdviceLine) {<NEW_LINE>final CurrencyCode remittanceAdviceCurrencyCode = remittanceAdviceLine.getRemittedAmo...
())).build();
916,907
void eventsExample() {<NEW_LINE>TimeLimiterConfig config = TimeLimiterConfig.custom().cancelRunningFuture(false).timeoutDuration(Duration.ofSeconds<MASK><NEW_LINE>TimeLimiterRegistry registry = TimeLimiterRegistry.of(config);<NEW_LINE>TimeLimiter limiter = registry.timeLimiter("flightSearch");<NEW_LINE>limiter.getEvent...
(2)).build();
766,699
void destroyBlockingChannel(BlockingChannel blockingChannel) {<NEW_LINE>rwlock.readLock().lock();<NEW_LINE>try {<NEW_LINE>boolean changed = blockingChannelActiveConnections.remove(blockingChannel);<NEW_LINE>if (!changed) {<NEW_LINE>logger.error("Invalid connection being destroyed. " + "Channel does not belong to this q...
), blockingChannel.getRemotePort());
1,356,182
public static void print(CosmosDBAccount cosmosDBAccount) {<NEW_LINE>StringBuilder builder = new StringBuilder().append("CosmosDB: ").append(cosmosDBAccount.id()).append("\n\tName: ").append(cosmosDBAccount.name()).append("\n\tResourceGroupName: ").append(cosmosDBAccount.resourceGroupName()).append("\n\tKind: ").append...
DatabaseAccountListReadOnlyKeysResult readOnlyKeys = cosmosDBAccount.listReadOnlyKeys();
376,852
private static MethodCall createRuntimeMethodCall(DeclaredTypeDescriptor vmTypeDescriptor, String methodName, List<Expression> arguments) {<NEW_LINE>MethodInfo methodInfo = runtimeMethodInfoByMethodNameByType.get().get(vmTypeDescriptor).get(methodName);<NEW_LINE>checkNotNull(methodInfo, "%s#%s(%s)", vmTypeDescriptor, m...
TypeDescriptor returnTypeDescriptor = methodInfo.getReturnType();
157,724
private List<InventoryLineCandidate> prepareCandidates(final HuId topLevelHuId, final IAllocationRequest request) {<NEW_LINE>final List<InventoryLineCandidate> candidates = new ArrayList<>();<NEW_LINE>for (final I_M_InOutLine receiptLine : getReceiptLinesOrEmpty(topLevelHuId, request.getProductId())) {<NEW_LINE>final i...
receiptLine(null).build();
1,843,482
public Map<String, List<ImageOwnership>> handle(final ResultSet rs) throws SQLException {<NEW_LINE>if (!rs.next()) {<NEW_LINE>return Collections.emptyMap();<NEW_LINE>}<NEW_LINE>final Map<String, List<ImageOwnership>> imageTypeOwnershipMap = new HashMap<>();<NEW_LINE>do {<NEW_LINE>final String imageTypeName = rs.getStri...
modifiedOn = rs.getString("modified_on");
785,994
public static TemperatureConditionType initialize() {<NEW_LINE>final ConfigDescriptionParameter temperature = ConfigDescriptionParameterBuilder.create(CONFIG_TEMPERATURE, Type.INTEGER).withRequired(true).withReadOnly(true).withMultiple(false).withLabel("Temperature").withDescription("Targeted room temperature").build()...
= new ArrayList<ConfigDescriptionParameter>();
780,233
public AssociationExecutionFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociationExecutionFilter associationExecutionFilter = new AssociationExecutionFilter();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
int originalDepth = context.getCurrentDepth();
981,546
public void run() throws Exception {<NEW_LINE>if (currentProgram == null) {<NEW_LINE>println("There is no open program");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>RecoveredClassHelper classHelper = new RecoveredClassHelper(currentProgram, currentLocation, state.getTool(), this, false, false, false, false, monitor);<NEW_LIN...
println(structure.getPathName());
1,503,419
public IRubyObject ruby2_keywords(ThreadContext context, IRubyObject[] args) {<NEW_LINE>Ruby runtime = context.runtime;<NEW_LINE>checkFrozen();<NEW_LINE>for (IRubyObject name : args) {<NEW_LINE>String <MASK><NEW_LINE>// FIXME: id == null or bad symbol error missing<NEW_LINE>DynamicMethod method = searchMethod(id);<NEW_...
id = RubySymbol.checkID(name);
700,525
public void editApiBathByParam(ApiTestBatchRequest request) {<NEW_LINE>List<String> ids = request.getIds();<NEW_LINE>if (request.isSelectAll()) {<NEW_LINE>ids = this.getAllApiCaseIdsByFontedSelect(request.getFilters(), request.getModuleIds(), request.getName(), request.getProjectId(), request.getProtocol(), request.get...
apiTestCaseMapper.updateByExampleSelective(apiDefinitionWithBLOBs, apiDefinitionExample);
37,014
public void onStart() {<NEW_LINE>super.onStart();<NEW_LINE>binding.setEvent(createEventViewModel.getEvent());<NEW_LINE>createEventViewModel.getCloseState().observe(this, isClosed -> close());<NEW_LINE>createEventViewModel.getProgress().observe(this, this::showProgress);<NEW_LINE>createEventViewModel.getEvent().isTaxEna...
(R.string.url_validation_error));
1,742,781
public static double squaredDistance(SparseArray x, SparseArray y) {<NEW_LINE>Iterator<SparseArray.Entry> it1 = x.iterator();<NEW_LINE>Iterator<SparseArray.Entry> it2 = y.iterator();<NEW_LINE>SparseArray.Entry e1 = it1.hasNext() ? it1.next() : null;<NEW_LINE>SparseArray.Entry e2 = it2.hasNext() ? it2.next() : null;<NEW...
sum += pow2(e1.x);
1,189,115
private boolean checkAuthorization(final String authorization) {<NEW_LINE>if (authorization == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>final String userInfo = authorization.substring(6).trim();<NEW_LINE>final String nameAndPassword = new String(DatatypeConverter.parseBase64Binary(userInfo));<N...
log.warn("User not found: {}", name);
513,114
public // not thread safe! (duh!)<NEW_LINE>MappeableContainer inot(final int firstOfRange, final int lastOfRange) {<NEW_LINE>// TODO: may need to convert to a RunContainer<NEW_LINE>// TODO: this can be optimized for performance<NEW_LINE>// determine the span of array indices to be affected<NEW_LINE>int startIndex = Buf...
, content.get(pos));
89,970
protected String doIt() {<NEW_LINE>final AdSchedulerId adSchedulerId = AdSchedulerId.ofRepoId(getRecord_ID());<NEW_LINE>switch(SchedulerAction.ofCode(p_Action)) {<NEW_LINE>case ENABLE:<NEW_LINE>sendManageSchedulerRequest(adSchedulerId, SchedulerAction.ENABLE, ManageSchedulerRequest.SupervisorAction.ENABLE);<NEW_LINE>br...
).setParameter("action", p_Action);
167,648
public void addElementEvaluations(JRPrintPage page, int pageIndex, ElementEvaluationsSource source) {<NEW_LINE>FillPageKey pageKey = new FillPageKey(page, pageIndex);<NEW_LINE>for (Map.Entry<JREvaluationTime, LinkedHashMap<FillPageKey, LinkedMap<Object, EvaluationBoundAction>>> boundMapEntry : actionsMap.entrySet()) {<...
elementEvaluations = source.getEvaluations(evaluationTime);
321,237
// auto-generated, see spoon.generating.CloneVisitorGenerator<NEW_LINE>public <T> void visitCtUnaryOperator(final spoon.reflect.code.CtUnaryOperator<T> operator) {<NEW_LINE>spoon.reflect.code.CtUnaryOperator<T> aCtUnaryOperator = operator.getFactory().Core().createUnaryOperator();<NEW_LINE>this.builder.copy(operator, a...
(operator.getTypeCasts()));
1,438,153
public Map<Integer, ParameterContext> params() {<NEW_LINE>final Map<Integer, ParameterContext> <MASK><NEW_LINE>params.put(1, new ParameterContext(ParameterMethod.setLong, new Object[] { 1, this.jobId }));<NEW_LINE>params.put(2, new ParameterContext(ParameterMethod.setString, new Object[] { 2, this.tableSchema }));<NEW_...
params = new HashMap<>();
1,160,103
public Operation.OperationResult executeFixedCostOperation(final MessageFrame frame, final EVM evm) {<NEW_LINE>Bytes shiftAmount = frame.popStackItem();<NEW_LINE>final Bytes value = leftPad(frame.popStackItem());<NEW_LINE>final boolean negativeNumber = value.get(0) < 0;<NEW_LINE>if (shiftAmount.size() > 4 && (shiftAmou...
result = value.shiftRight(shiftAmountInt);
1,509,097
private Future<OraclePreparedStatement> prepare(Connection conn, OraclePrepareOptions options, boolean returnAutoGeneratedKeys, Context context) {<NEW_LINE>return context.executeBlocking(prom -> {<NEW_LINE>String query = query();<NEW_LINE>PreparedStatement ps = null;<NEW_LINE>try {<NEW_LINE>boolean autoGeneratedIndexes...
conn.prepareStatement(query, keys);
769,242
public List<Fix> run(CompilationInfo info, String diagnosticKey, int offset, TreePath treePath, Data<Void> data) {<NEW_LINE>List<Fix> result = new ArrayList<Fix>();<NEW_LINE>List<TypeMirror> targetType = new ArrayList<TypeMirror>();<NEW_LINE>TreePath[] tmTree = new TreePath[1];<NEW_LINE>ExpressionTree[<MASK><NEW_LINE>T...
] expression = new ExpressionTree[1];
815,524
protected void onBindView(BaseViewHolder holder, int position) {<NEW_LINE>TimelineModel model = getItem(position);<NEW_LINE>if (model.getType() == TimelineModel.HEADER) {<NEW_LINE>((IssueDetailsViewHolder) holder).bind(model);<NEW_LINE>} else if (model.getType() == TimelineModel.EVENT) {<NEW_LINE>((IssueTimelineViewHol...
) holder).bind(model);
137,054
public BpmnModel convertToBpmnModel(InputStreamProvider inputStreamProvider, boolean validateSchema, boolean enableSafeBpmnXml, String encoding) {<NEW_LINE>XMLInputFactory xif = XMLInputFactory.newInstance();<NEW_LINE>if (xif.isPropertySupported(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES)) {<NEW_LINE>xif.setPropert...
setProperty(XMLInputFactory.SUPPORT_DTD, false);
463,139
public void createView(CreateViewStmt stmt) throws DdlException {<NEW_LINE>String dbName = stmt.getDbName();<NEW_LINE>String tableName = stmt.getTable();<NEW_LINE>// check if db exists<NEW_LINE>Database db = getInternalCatalog().getDbOrDdlException(dbName);<NEW_LINE>// check if table exists in db<NEW_LINE>if (db.getTab...
getSessionVariable().getSqlMode());