idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,200,206
boolean finishCommit(@Nonnull final Document document, @Nonnull List<? extends BooleanRunnable> finishProcessors, @Nonnull List<? extends BooleanRunnable> reparseInjectedProcessors, final boolean synchronously, @Nonnull final Object reason) {<NEW_LINE>assert <MASK><NEW_LINE>ApplicationManager.getApplication().assertIsD...
!myProject.isDisposed() : "Already disposed";
376,632
public void benchmarkByteBuddyWithPrefix(Blackhole blackHole) {<NEW_LINE>blackHole.consume(byteBuddyWithPrefixInstance.method(booleanValue));<NEW_LINE>blackHole.consume(byteBuddyWithPrefixInstance.method(byteValue));<NEW_LINE>blackHole.consume(byteBuddyWithPrefixInstance.method(shortValue));<NEW_LINE>blackHole.consume(...
(byteBuddyWithPrefixInstance.method(floatValue));
289,137
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
1,257,813
public void releasePodIp(Long id) throws CloudRuntimeException {<NEW_LINE>// Verify input parameters<NEW_LINE>DataCenterIpAddressVO ipVO = _privateIPAddressDao.findById(id);<NEW_LINE>if (ipVO == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (ipVO.getTakenAt() == null) {<NEW_LINE>s_logger.debug("Ip Address with id= " +...
throw new CloudRuntimeException("Unable to find ip address by id:" + id);
978,985
private void test(String path) throws Exception {<NEW_LINE>Response response = client.target(URI_CONTEXT_ROOT).path(path).request(MediaType.APPLICATION_JSON_TYPE).get();<NEW_LINE>assertEquals(200, response.getStatus());<NEW_LINE>System.out.println("Headers:");<NEW_LINE>System.out.println(response.getHeaders());<NEW_LIN...
System.out.println("Links:");
1,290,508
public FieldInitializers filter(FieldInitializers fieldsToWrite) {<NEW_LINE>// Create a map to filter with.<NEW_LINE>final SortedSetMultimap<ResourceType, String> symbolsToWrite = MultimapBuilder.enumKeys(ResourceType.class)<MASK><NEW_LINE>for (Map.Entry<ResourceType, Collection<FieldInitializer>> entry : fieldsToWrite...
.treeSetValues().build();
1,192,605
public static FObject fromJSON(X x, JSONObject json) throws JSONException {<NEW_LINE>String modelName = json.optString("model_", null);<NEW_LINE>if (modelName == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>FObject o;<NEW_LINE>try {<NEW_LINE>o = (FObject) x.newInstance(modelName);<NEW_LINE>} catch (ClassNotFoundEx...
"Could not find accessible constructor for \"" + modelName + "\"", e);
490,379
protected void calculateOffsets() {<NEW_LINE>super.calculateOffsets();<NEW_LINE>if (!this.text.equals(lastText)) {<NEW_LINE>this.lastText = text;<NEW_LINE>BitmapFont font = style.font;<NEW_LINE>float maxWidthLine = this.getWidth() - (style.background != null ? style.background.getLeftWidth() + style.background.getRight...
GlyphLayout layout = layoutPool.obtain();
641,049
private void copyMappingXML() {<NEW_LINE>boolean writeableStorage = true;<NEW_LINE>String rawResourceName = null;<NEW_LINE>try {<NEW_LINE>rawResourceName = Environment.getExternalStorageDirectory() + "/Android/data/" + RhodesActivity.safeGetInstance<MASK><NEW_LINE>} catch (Exception e) {<NEW_LINE>Logger.E(TAG, e);<NEW_...
().getPackageName() + "/keycodemapping.xml";
1,241,785
protected Control createDialogArea(Composite parent) {<NEW_LINE>Composite container = (Composite) super.createDialogArea(parent);<NEW_LINE>Composite tableArea = new Composite(container, SWT.NONE);<NEW_LINE>GridDataFactory.fillDefaults().grab(true, true).hint(SWT.DEFAULT, 300).applyTo(tableArea);<NEW_LINE>TableColumnLay...
Label(container, SWT.NONE);
1,478,491
public void marshal(Path samplesRoot, Path imagesRoot) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>{<NEW_LINE>// Samples<NEW_LINE>final Path folderPath = samplesRoot.resolve(descriptor.getName());<NEW_LINE>Files.createDirectories(folderPath);<NEW_LINE>final Path samplesPath = folderPath.resolve(SAMPLES_FILE_NAME);<NEW_LI...
logger.debug("Marshalling {}", this);
451,404
public OceanBaseExpression generateConstant() {<NEW_LINE>ConstantType[] values;<NEW_LINE>if (state.usesPQS()) {<NEW_LINE>values = ConstantType.valuesPQS();<NEW_LINE>} else {<NEW_LINE>values = ConstantType.values();<NEW_LINE>}<NEW_LINE>OceanBaseConstant constant;<NEW_LINE>switch(Randomly.fromOptions(values)) {<NEW_LINE>...
getRandomly().getInteger());
655,885
public static void convert(InterleavedS64 input, InterleavedI16 output) {<NEW_LINE>if (input.isSubimage() || output.isSubimage()) {<NEW_LINE>final int N = input.width * input.getNumBands();<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, input.height, y -> {<NEW_LINE>for (int y = 0; y < input.height; y++) {<NEW...
output.getIndex(0, y);
1,383,668
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplStatement = "@public create context StartThenTwoSeconds start StartContextEvent end after 2 seconds";<NEW_LINE>env.compileDeploy(eplStatement, path);<NEW_LINE>String aggStatement = "@name('select') conte...
= new ArrayList<MyRunnable>();
348,724
public static boolean swapCaseMultiByteComplex(Encoding enc, CodeRange originalCodeRange, RopeBuilder builder, int caseMappingOptions, Node node) {<NEW_LINE>byte[] buf = new byte[CASE_MAP_BUFFER_SIZE];<NEW_LINE>final IntHolder flagP = new IntHolder();<NEW_LINE>flagP.value = caseMappingOptions | Config.CASE_UPCASE | Con...
s, bytes.length, node);
825,837
public static GetInstanceListResponse unmarshall(GetInstanceListResponse getInstanceListResponse, UnmarshallerContext _ctx) {<NEW_LINE>getInstanceListResponse.setRequestId(_ctx.stringValue("GetInstanceListResponse.RequestId"));<NEW_LINE>getInstanceListResponse.setTotalCount(_ctx.integerValue("GetInstanceListResponse.To...
("GetInstanceListResponse.CommodityInstances[" + i + "].Name"));
707,186
protected boolean registerProvider(DataStoreProvider provider) {<NEW_LINE>Map<String, Object> copyParams = new HashMap<String, Object>();<NEW_LINE>String providerName = provider.getName();<NEW_LINE>if (providerMap.get(providerName) != null) {<NEW_LINE>s_logger.debug("Did not register data store provider, provider name:...
providerMap.put(providerName, provider);
1,723,539
public boolean configure(String name, Map<String, Object> params) throws ConfigurationException {<NEW_LINE>super.configure(name, params);<NEW_LINE>Map<String, String> configs = _configDao.getConfiguration(params);<NEW_LINE>if (params != null) {<NEW_LINE>mergeConfigs(configs, params);<NEW_LINE>}<NEW_LINE>senderAddress =...
QuotaConfig.QuotaSmtpSender.key());
1,811,199
public View createView() {<NEW_LINE>final View view = inflateLayout(R.layout.cache_filter_generic_string);<NEW_LINE>this.binding = CacheFilterGenericStringBinding.bind(view);<NEW_LINE>selectSpinner.<MASK><NEW_LINE>selectSpinner.setValues(Arrays.asList(StringFilter.StringFilterType.values())).setDisplayMapper(StringFilt...
setTextView(this.binding.select);
1,705,275
private ScopeStore createScopeWrapper(StoreFactory storeFactory) {<NEW_LINE>return new ScopeStore() {<NEW_LINE><NEW_LINE>ScopeStore delegate = storeFactory.getScopeStore();<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Scope create(ResourceServer resourceServer, String name) {<NEW_LINE>return delegate.create(resourceSer...
.getStoreFactory().getPermissionTicketStore();
766,073
private TreeMap<String, TreeSet<Model>> buildMap() {<NEW_LINE>final Spec currentSpec = ToolboxHandle.getCurrentSpec();<NEW_LINE>if (currentSpec == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final <MASK><NEW_LINE>final TreeMap<String, TreeSet<Model>> projectModelMap = new TreeMap<>();<NEW_LINE>try {<NEW_LINE>fina...
IProject specProject = currentSpec.getProject();
232,373
public void copy(SaveTestPlanRequest request) {<NEW_LINE>checkQuota(request, true);<NEW_LINE>// copy test<NEW_LINE>LoadTestWithBLOBs copy = loadTestMapper.selectByPrimaryKey(request.getId());<NEW_LINE>String copyName = copy.getName() + " Copy";<NEW_LINE>if (StringUtils.length(copyName) > 30) {<NEW_LINE>MSException.thro...
APITestStatus.Saved.name());
976,603
private ClientBroker.RegisterRequestC2B createBrokerRegisterRequest(Partition partition) {<NEW_LINE>ClientBroker.RegisterRequestC2B.Builder builder = ClientBroker.RegisterRequestC2B.newBuilder();<NEW_LINE>builder.setClientId(consumerId);<NEW_LINE>builder.setGroupName(this.consumerConfig.getConsumerGroup());<NEW_LINE>bu...
setPartitionId(partition.getPartitionId());
941,150
final ListBotRecommendationsResult executeListBotRecommendations(ListBotRecommendationsRequest listBotRecommendationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBotRecommendationsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
false), new ListBotRecommendationsResultJsonUnmarshaller());
671,076
private void mountLogin() {<NEW_LINE>// force a post if otherwise<NEW_LINE>login.method(HttpMethod.POST).order(order - 1).handler(ctx -> {<NEW_LINE>try {<NEW_LINE>// might throw runtime exception if there's no json or is bad formed<NEW_LINE>final JsonObject webauthnLogin = ctx.body().asJsonObject();<NEW_LINE>final Sess...
ctx.fail(400, e);
1,053,222
private void createFilterToolBarUI(JToolBar toolbar, FiltersDescriptor filtersDesc) {<NEW_LINE>toolbar.removeAll();<NEW_LINE>// create toggle buttons<NEW_LINE>int filterCount = filtersDesc.getFilterCount();<NEW_LINE>ArrayList<JToggleButton> toggles = new ArrayList<JToggleButton>(filterCount);<NEW_LINE>JToggleButton tog...
new Dimension(3, 0));
1,727,102
private static void selectMediaType(Fragment fragment, @NonNull String type, @Nullable String[] extraMimeType, int requestCode) {<NEW_LINE>final Intent intent = new Intent();<NEW_LINE>intent.setType(type);<NEW_LINE>if (extraMimeType != null) {<NEW_LINE>intent.putExtra(Intent.EXTRA_MIME_TYPES, extraMimeType);<NEW_LINE>}...
Toast.LENGTH_LONG).show();
175,410
private void trimRead(final ReadData read, final int templateIndex) {<NEW_LINE>byte[] bases = read.getBases();<NEW_LINE>byte[<MASK><NEW_LINE>if (trimmingQuality != null) {<NEW_LINE>int index = TrimmingUtil.findQualityTrimPoint(quals, trimmingQuality);<NEW_LINE>// Trim to a minimum of MIN_TRIMMED_LENGTH<NEW_LINE>if (ind...
] quals = read.getQualities();
670,863
public static DeleteModelResponse unmarshall(DeleteModelResponse deleteModelResponse, UnmarshallerContext _ctx) {<NEW_LINE>deleteModelResponse.setRequestId(_ctx.stringValue("DeleteModelResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setAppId(_ctx.stringValue("DeleteModelResponse.Data.AppId"));<NEW...
(_ctx.mapValue("DeleteModelResponse.Data.Props"));
559,583
public void validate(final Processor<FullData, FullData> processor, final ProcessingReport report, final MessageBundle bundle, final FullData data) throws ProcessingException {<NEW_LINE>final JsonNode instance = data.getInstance().getNode();<NEW_LINE>final NodeType type = NodeType.getNodeType(instance);<NEW_LINE>final ...
.put("reports", fullReport));
667,668
public Builder mergeFrom(emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify other) {<NEW_LINE>if (other == emu.grasscutter.net.proto.EntityAiSyncNotifyOuterClass.EntityAiSyncNotify.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (infoListBuilder_ == null) {<NEW_LINE>if (!other.infoList_.i...
this.mergeUnknownFields(other.unknownFields);
3,266
public ChangeInfo unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>ChangeInfo changeInfo = new ChangeInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>while (t...
"iso8601").unmarshall(context));
1,619,514
private void updateWhenTextView(View view) {<NEW_LINE><MASK><NEW_LINE>// Set the date and repeats (if any)<NEW_LINE>String localTimezone = Utils.getTimeZone(mActivity, mTZUpdater);<NEW_LINE>String displayedDatetime = Utils.getDisplayedDatetime(mStartMillis, mEndMillis, System.currentTimeMillis(), localTimezone, mAllDay...
Context context = view.getContext();
710,533
public void contentsChanged(@Nonnull VirtualFileEvent event) {<NEW_LINE>if (event.getRequestor() != null || !isMy(event)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>E scheme = findSchemeFor(event.<MASK><NEW_LINE>T oldCurrentScheme = null;<NEW_LINE>if (scheme != null) {<NEW_LINE>oldCurrentScheme = getCurrentScheme();<NEW_LI...
getFile().getName());
1,428,677
private MergingReceiverGeneratorBase createMerger() {<NEW_LINE>stats.startSetup();<NEW_LINE>final CodeGenerator<MergingReceiverGeneratorBase> cg = CodeGenerator.get(MergingReceiverGeneratorBase.TEMPLATE_DEFINITION, context.getOptions());<NEW_LINE>cg.plainJavaCapable(true);<NEW_LINE>// Uncomment out this line to debug t...
generateCopies(g, batch, true);
672,290
private static Cipher createCipher(int opmode, char[] password, byte[] salt, byte[] iv) throws GeneralSecurityException {<NEW_LINE>PBEKeySpec keySpec = new PBEKeySpec(<MASK><NEW_LINE>SecretKeyFactory keyFactory = SecretKeyFactory.getInstance(KDF_ALGO);<NEW_LINE>SecretKey secretKey;<NEW_LINE>try {<NEW_LINE>secretKey = k...
password, salt, KDF_ITERS, CIPHER_KEY_BITS);
837,056
private void bind(SpanEventBo spanEvent, TSpanEvent tSpanEvent) {<NEW_LINE>spanEvent.setSequence(tSpanEvent.getSequence());<NEW_LINE>spanEvent.setStartElapsed(tSpanEvent.getStartElapsed());<NEW_LINE>spanEvent.setEndElapsed(tSpanEvent.getEndElapsed());<NEW_LINE>spanEvent.setRpc(tSpanEvent.getRpc());<NEW_LINE>spanEvent.s...
setDestinationId(tSpanEvent.getDestinationId());
490,521
public static ArrayList<ReminderEntry> readRemindersFromBundle(Bundle bundle) {<NEW_LINE>ArrayList<ReminderEntry> reminders = null;<NEW_LINE>ArrayList<Integer> reminderMinutes = bundle.getIntegerArrayList(EventInfoFragment.BUNDLE_KEY_REMINDER_MINUTES);<NEW_LINE>ArrayList<Integer> reminderMethods = bundle.getIntegerArra...
, reminderMethods.size()));
1,733,912
private static int treeSync(final TSDB tsdb) throws Exception {<NEW_LINE>final long start_time = System.currentTimeMillis() / 1000;<NEW_LINE>final long <MASK><NEW_LINE>// now figure out how many IDs to divy up between the workers<NEW_LINE>final int workers = Runtime.getRuntime().availableProcessors() * 2;<NEW_LINE>fina...
max_id = CliUtils.getMaxMetricID(tsdb);
714,353
public void marshall(LaunchProfileInitializationActiveDirectory launchProfileInitializationActiveDirectory, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (launchProfileInitializationActiveDirectory == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>t...
launchProfileInitializationActiveDirectory.getDirectoryName(), DIRECTORYNAME_BINDING);
623,417
public MutableBooleanCollection select(BooleanPredicate predicate) {<NEW_LINE>MutableBooleanList result = BooleanLists.mutable.empty();<NEW_LINE>if (this.getSentinelValues() != null) {<NEW_LINE>if (this.getSentinelValues().containsZeroKey && predicate.accept(this.getSentinelValues().zeroValue)) {<NEW_LINE>result.add(th...
(this.getValueAtIndex(i));
436,943
public void deleteAcl(ObjectIdentity objectIdentity, boolean deleteChildren) throws ChildrenExistException {<NEW_LINE>Assert.notNull(objectIdentity, "Object Identity required");<NEW_LINE>Assert.notNull(objectIdentity.getIdentifier(), "Object Identity doesn't provide an identifier");<NEW_LINE>if (deleteChildren) {<NEW_L...
children.size() + " children)");
311,845
final ListPlacementsResult executeListPlacements(ListPlacementsRequest listPlacementsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPlacementsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,457,899
static TableMetadata createTableMetadata() {<NEW_LINE>ImmutableList.Builder<ColumnMetadata> columnBuilder = ImmutableList.builder();<NEW_LINE>columnBuilder.add(new ColumnMetadata(COL_INTERFACE, Schema.INTERFACE, "Interface", true, false));<NEW_LINE>columnBuilder.add(new ColumnMetadata(COL_VRF, Schema.STRING, "VRF", tru...
, "Remote IP", false, true));
1,740,908
public void run(RegressionEnvironment env) {<NEW_LINE>String text = "@name('s0') select irstream symbol, price from SupportMarketDataBean#firstunique(symbol) order by symbol";<NEW_LINE>if (optionalAnnotation != null) {<NEW_LINE>text = optionalAnnotation + text;<NEW_LINE>}<NEW_LINE>env.compileDeployAddListenerMileZero(t...
(makeMarketDataEvent("S3", 6));
1,438,109
private YamlConfiguration initConfig() {<NEW_LINE>if (!configFile.exists()) {<NEW_LINE>mcMMO.p.getLogger().info("[config] User config file not found, copying a default config to disk: " + fileName);<NEW_LINE>mcMMO.p.saveResource(fileName, false);<NEW_LINE>}<NEW_LINE>mcMMO.p.getLogger().info("[config] Loading config fro...
options().copyDefaults(true);
1,759,609
public static List<INaviView> loadMixedgraphs(final AbstractSQLProvider provider, final CProject project, final CTagManager viewTagManager, final CTagManager nodeTagManager) throws CouldntLoadDataException {<NEW_LINE><MASK><NEW_LINE>final String query = "SELECT * FROM load_module_mixed_graph(?)";<NEW_LINE>try {<NEW_LIN...
checkArguments(provider, project, viewTagManager);
760,512
public static CheckSpendParams decode(long ctx, byte[] data, byte[] sigHashValue) throws ZksnarkException {<NEW_LINE>byte[] cv = new byte[32];<NEW_LINE>byte[<MASK><NEW_LINE>byte[] nullifier = new byte[32];<NEW_LINE>byte[] rk = new byte[32];<NEW_LINE>byte[] zkproof = new byte[192];<NEW_LINE>byte[] spendAuthSig = new byt...
] anchor = new byte[32];
1,362,468
private void analyzePartsRecursively(TypeMirror target, Map<String, PartKind> parts, Set<TypeMirror> usedTypes) {<NEW_LINE>String typeName = typeWithoutAnnotations(target.toString());<NEW_LINE>if (typeSupport.isSupported(typeName)) {<NEW_LINE>usedTypes.add(target);<NEW_LINE>if (isRawType(target)) {<NEW_LINE>parts.<MASK...
put(typeName, PartKind.RAW_TYPE);
1,300,506
public static ListNVRDeviceResponse unmarshall(ListNVRDeviceResponse listNVRDeviceResponse, UnmarshallerContext _ctx) {<NEW_LINE>listNVRDeviceResponse.setRequestId(_ctx.stringValue("ListNVRDeviceResponse.RequestId"));<NEW_LINE>listNVRDeviceResponse.setSuccess(_ctx.booleanValue("ListNVRDeviceResponse.Success"));<NEW_LIN...
(_ctx.stringValue("ListNVRDeviceResponse.Total"));
846,798
private Long countExpiredTaskTaskCompleted(Business business, DateRange dateRange, String applicationId, String processId, String activityId, List<String> units, String person) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer(<MASK><NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NE...
).get(TaskCompleted.class);
1,447,222
private void renderAuras(Graphics2D g, PlayerView view) {<NEW_LINE>// Setup<NEW_LINE>timer.start("auras-1");<NEW_LINE>Graphics2D newG = (Graphics2D) g.create();<NEW_LINE>if (!view.isGMView() && visibleScreenArea != null) {<NEW_LINE>Area clip = new Area(g.getClip());<NEW_LINE>clip.intersect(visibleScreenArea);<NEW_LINE>...
, List<Area>>();
675,751
public void run(RegressionEnvironment env) {<NEW_LINE>AtomicInteger milestone = new AtomicInteger();<NEW_LINE>String[] fields = new String[] { "symbol", "sumPrice" };<NEW_LINE>String epl = "@name('s0') select symbol, sum(price) as sumPrice from " + "SupportMarketDataBean#length(10) as one, " + "SupportBeanString#length...
sendEvent(env, "KGB", 75);
1,373,082
private JComponent createComponent(String filterName) {<NEW_LINE>final JPanel panel = <MASK><NEW_LINE>Border paddingBorder = BorderFactory.createEmptyBorder(1, 5, 1, 5);<NEW_LINE>Border outsideBorder = BorderFactory.createBevelBorder(BevelBorder.LOWERED);<NEW_LINE>panel.setBorder(BorderFactory.createCompoundBorder(outs...
new JPanel(new BorderLayout());
690,524
private Expr parseExpr(String s) throws QueryParseException {<NEW_LINE>try {<NEW_LINE>ARQParser parser = new ARQParser(new StringReader("SELECT " + s));<NEW_LINE>parser.setQuery(new Query());<NEW_LINE>parser.getQuery().setPrefixMapping(query.getPrefixMapping());<NEW_LINE>parser.SelectClause();<NEW_LINE>Query q = parser...
beginLine, ex.currentToken.beginLine);
364,976
public ListDatasetLabelsResult listDatasetLabels(ListDatasetLabelsRequest listDatasetLabelsRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDatasetLabelsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAws...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
971,628
public static void render(List<List<Point2D_I32>> contours, boolean loops, Color color, double stroke, double scale, Graphics2D g2) {<NEW_LINE>BoofSwingUtil.antialiasing(g2);<NEW_LINE>Line2D.Double <MASK><NEW_LINE>g2.setStroke(new BasicStroke(Math.max(1, (float) (stroke * scale))));<NEW_LINE>g2.setColor(color);<NEW_LIN...
l = new Line2D.Double();
1,590,787
public List<SuppressionRule> parseSuppressionRules(InputStream inputStream, SuppressionRuleFilter filter) throws SuppressionParseException, SAXException {<NEW_LINE>try (InputStream schemaStream13 = FileUtils.getResourceAsStream(SUPPRESSION_SCHEMA_1_3);<NEW_LINE>InputStream schemaStream12 = FileUtils.getResourceAsStream...
.setEntityResolver(new ClassloaderResolver());
161,583
public BackgroundException map(final IOException e, final StringBuilder buffer, final DisconnectReason reason) {<NEW_LINE>final String failure = buffer.toString();<NEW_LINE>if (DisconnectReason.HOST_KEY_NOT_VERIFIABLE.equals(reason)) {<NEW_LINE>log.warn(String.format("Failure verifying host key. %s", failure));<NEW_LIN...
buffer.toString(), e);
689,569
private void updateMessageStateInfo() {<NEW_LINE>MessageState messageState = model.getMessageStateProperty().get();<NEW_LINE>textFieldWithIcon.setText(Res.get("message.state." + messageState.name()));<NEW_LINE>Label iconLabel = textFieldWithIcon.getIconLabel();<NEW_LINE>switch(messageState) {<NEW_LINE>case UNDEFINED:<N...
getStyleClass().add("trade-msg-state-stored");
842,548
public static ExecuteScriptResponse unmarshall(ExecuteScriptResponse executeScriptResponse, UnmarshallerContext _ctx) {<NEW_LINE>executeScriptResponse.setRequestId(_ctx.stringValue("ExecuteScriptResponse.RequestId"));<NEW_LINE>executeScriptResponse.setErrorCode(_ctx.stringValue("ExecuteScriptResponse.ErrorCode"));<NEW_...
("ExecuteScriptResponse.Results[" + i + "].Message"));
692,622
final GetHostedConfigurationVersionResult executeGetHostedConfigurationVersion(GetHostedConfigurationVersionRequest getHostedConfigurationVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getHostedConfigurationVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
(super.beforeMarshalling(getHostedConfigurationVersionRequest));
1,350,887
public void initFactories() {<NEW_LINE>factories.put(JetSubmitJobCodec.REQUEST_MESSAGE_TYPE, toFactory(JetSubmitJobMessageTask::new));<NEW_LINE>factories.put(JetTerminateJobCodec.REQUEST_MESSAGE_TYPE, toFactory(JetTerminateJobMessageTask::new));<NEW_LINE>factories.put(JetGetJobStatusCodec.REQUEST_MESSAGE_TYPE, toFactor...
, toFactory(JetGetJobSuspensionCauseMessageTask::new));
1,247,533
void solveColorMixing(final TimeStep step) {<NEW_LINE>// mixes color between contacting particles<NEW_LINE>m_colorBuffer.data = requestParticleBuffer(ParticleColor.class, m_colorBuffer.data);<NEW_LINE>int colorMixing256 = <MASK><NEW_LINE>for (int k = 0; k < m_contactCount; k++) {<NEW_LINE>final ParticleContact contact ...
(int) (256 * m_colorMixingStrength);
1,331,191
static StateListDrawable bootstrapDropDownArrow(Context context, int width, int height, ExpandDirection expandDirection, boolean outline, BootstrapBrand brand) {<NEW_LINE>StateListDrawable stateListDrawable = new StateListDrawable();<NEW_LINE>int defaultColor = outline ? brand.defaultFill(context) : brand.defaultTextCo...
, height, activeColor, expandDirection));
503,484
public static ClientMessage encodeRequest(java.lang.String name, com.hazelcast.internal.serialization.Data key, com.hazelcast.internal.serialization.Data value, @Nullable com.hazelcast.internal.serialization.Data expiryPolicy, int completionId) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<N...
DataCodec.encode(clientMessage, value);
1,684,975
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {<NEW_LINE>if (compat) {<NEW_LINE>// Read an object serialized in the old serial form<NEW_LINE>//<NEW_LINE>ObjectInputStream.GetField fields = in.readFields();<NEW_LINE>typeName = (String) fields.get("myTypeName", null);<NEW_LINE>i...
fields.get("myIsInRelServFlg", false);
709,195
public void addShardingExpr(Pair<String, String> table, String columnName, Object value) {<NEW_LINE>if (alwaysFalse) {<NEW_LINE>if (DTRACE_LOGGER.isTraceEnabled()) {<NEW_LINE>DTRACE_LOGGER.trace("this RouteCalculateUnit is always false, ignore " + changeValueToColumnRoute(value));<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}...
String upperColName = columnName.toUpperCase();
1,755,352
final UpdateGroupResult executeUpdateGroup(UpdateGroupRequest updateGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
false), new UpdateGroupResultJsonUnmarshaller());
290,179
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.grpc.service.DeviceManagementGrpc.DeviceManagementImplBase#<NEW_LINE>* listDeviceGroupElements(com.sitewhere.grpc.service.<NEW_LINE>* GListDeviceGroupElementsRequest, io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>publ...
(DeviceModelConverter.asGrpcDeviceGroupElement(apiElement));
954,691
public static <TSource, TResult> Enumerable<TResult> selectMany(final Enumerable<TSource> source, final Function2<TSource, Integer, Enumerable<TResult>> selector) {<NEW_LINE>return new AbstractEnumerable<TResult>() {<NEW_LINE><NEW_LINE>public Enumerator<TResult> enumerator() {<NEW_LINE>return new Enumerator<TResult>() ...
> sourceEnumerator = source.enumerator();
401,429
private synchronized IMqttAsyncClient checkConnection() throws MqttException {<NEW_LINE>if (this.client != null && !this.client.isConnected()) {<NEW_LINE>this.client.setCallback(null);<NEW_LINE>this.client.close();<NEW_LINE>this.client = null;<NEW_LINE>}<NEW_LINE>if (this.client == null) {<NEW_LINE>try {<NEW_LINE>MqttC...
throw new MessagingException("Failed to connect", e);
1,705,963
private void updatePhones(String contactId, Contact contact) throws Exception {<NEW_LINE>String[] phones = { Phonebook.PB_MOBILE_NUMBER, Phonebook.PB_HOME_NUMBER, Phonebook.PB_BUSINESS_NUMBER };<NEW_LINE>int[] types = { Phone.TYPE_MOBILE, Phone.TYPE_HOME, Phone.TYPE_WORK };<NEW_LINE>for (int i = 0; i < phones.length; +...
.TYPE, types[i]);
331,957
public ValueHandler createKeyValueHandler(Object keys) {<NEW_LINE>if (keys == null) {<NEW_LINE>throw new ClusterJUserException(local.message("ERR_Key_Must_Not_Be_Null"<MASK><NEW_LINE>}<NEW_LINE>Object[] keyValues = new Object[numberOfFields];<NEW_LINE>// check the cardinality of the keys with the number of key fields<N...
, getName(), "unknown"));
1,083,852
private void updateCompatibleScreens(Document doc, Element manifestElement) {<NEW_LINE>Element compatibleScreensElem = XmlHelper.getOrCreateElement(doc, manifestElement, ELEM_COMPATIBLE_SCREENS);<NEW_LINE>// read those screen elements that were already defined in the Manifest<NEW_LINE>NodeList manifestScreenElems = com...
).debug("Found Manifest compatible-screen: " + screen);
1,374,608
public int display(Collection<ConfigurationKey<?>> keys, boolean verbose, Collection<String> argsPaths, boolean explicitKeys, boolean notMentioned) throws Exception {<NEW_LINE>TreeMap<URI, Set<String>> sharedDirectories = findSharedDirectories(argsPaths);<NEW_LINE>if (sharedDirectories == null)<NEW_LINE>return 1;<NEW_L...
, line, sourceDescription, lineNumber));
711,056
public static void main(String[] args) {<NEW_LINE>final String USAGE = "\n" + "Usage: " + " <pathSource> <pathTarget>\n\n" + "Where:\n" + " pathSource - the path to the source image (for example, C:\\AWS\\pic1.png). \n " + " pathTarget - the path to the target image (for example, C:\\AWS\\pic2.png). \n\n";<NEW_LI...
System.out.println(USAGE);
1,391,235
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// WUtil.debug(new String("In do Post"),"");<NEW_LINE>HttpSession sess = request.getSession();<NEW_LINE>WebSessionCtx wsc = WebSessionCtx.get(request);<NEW_LINE>Properties ctx = wsc.ctx;<NEW_LINE...
request, response, this, null);
948,072
public QueryRunner<SegmentAnalysis> mergeResults(final QueryRunner<SegmentAnalysis> runner) {<NEW_LINE>return new BySegmentSkippingQueryRunner<SegmentAnalysis>(runner) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Sequence<SegmentAnalysis> doRun(QueryRunner<SegmentAnalysis> baseRunner, QueryPlus<SegmentAnalysis> query...
updatedQuery)), MERGE_TRANSFORM_FN::apply);
71,119
private JPanel initializeInnerFrame(Genre genreToEdit) {<NEW_LINE>JPanel innerPanel = new JPanel();<NEW_LINE>GridBagLayout gridBagLayout = new GridBagLayout();<NEW_LINE>gridBagLayout.columnWeights = new double[] { 0.0, 1.0 };<NEW_LINE>innerPanel.setLayout(gridBagLayout);<NEW_LINE>JLabel lblGenre = new JLabel("Genre :")...
innerPanel.add(lblGenre, gbc_lblGenre);
282,939
Path apply(Upgrade upgrade) throws IOException {<NEW_LINE>String buildFileContents = new String(Files.readAllBytes(this.buildFile), StandardCharsets.UTF_8);<NEW_LINE>Matcher matcher = Pattern.compile("library\\(\"" + upgrade.getLibrary().getName() + "\", \"(.+)\"\\)").matcher(buildFileContents);<NEW_LINE>if (!matcher.f...
, matcher.end(1));
1,012,370
private RexNode convertIdentifier(Blackboard bb, SqlIdentifier identifier) {<NEW_LINE>// first check for reserved identifiers like CURRENT_USER<NEW_LINE>final SqlCall call = bb.getValidator().makeNullaryCall(identifier);<NEW_LINE>if (call != null) {<NEW_LINE>return bb.convertExpression(call);<NEW_LINE>}<NEW_LINE>String...
null, 1, null, identifier);
1,177,844
protected Value[] createNativeABICallerSaveRegisters(@SuppressWarnings("unused") GraalHotSpotVMConfig config, RegisterConfig regConfig) {<NEW_LINE>List<Register> callerSave = new ArrayList<>(regConfig.getAllocatableRegisters().asList());<NEW_LINE>// Removing callee-saved registers.<NEW_LINE>callerSave.remove(AArch64.v8...
callerSave.remove(AArch64.v11);
587,786
final UpdateEndpointResult executeUpdateEndpoint(UpdateEndpointRequest updateEndpointRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateEndpointRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field....
endClientExecution(awsRequestMetrics, request, response);
586,993
/*<NEW_LINE>Calculates the distance between two coordinates in meters<NEW_LINE>*/<NEW_LINE>public static double distance(double lat1, double lat2, double lon1, double lon2) {<NEW_LINE>// Radius of the earth<NEW_LINE>final int R = 6371;<NEW_LINE>double latDistance = <MASK><NEW_LINE>double lonDistance = Math.toRadians(lo...
Math.toRadians(lat2 - lat1);
160,794
public void updateDeptConfigs(Integer deptId, String[] configs) {<NEW_LINE>if (CommonUtils.notEmpty(deptId)) {<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>List<SysDeptConfig> list = (List<SysDeptConfig>) getPage(deptId, null, null, null).getList();<NEW_LINE>for (SysDeptConfig deptConfig : list) {<NEW_LINE>if (Arra...
getId().getConfig());
1,289,494
public ScheduledAutoTuneDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ScheduledAutoTuneDetails scheduledAutoTuneDetails = new ScheduledAutoTuneDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE...
"unixTimestamp").unmarshall(context));
1,686,397
private void mapResourceFileToTargetClassFiles(JCTree.JCClassDecl tree) {<NEW_LINE>if (tree.sym == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Name qualifiedName = tree.sym.getQualifiedName();<NEW_LINE>if (qualifiedName == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JavaFileObject sourcefile = tree.sym.sourcefile;<NE...
types = typesCompiledByFile.get(file);
1,152,920
final PutDomainPermissionsPolicyResult executePutDomainPermissionsPolicy(PutDomainPermissionsPolicyRequest putDomainPermissionsPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putDomainPermissionsPolicyRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "PutDomainPermissionsPolicy");
507,777
public Future<Object> scheduleFixedBroadcast(final Object o, long waitFor, long period, TimeUnit t) {<NEW_LINE>if (destroyed.get()) {<NEW_LINE>logger.debug(<MASK><NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>start();<NEW_LINE>if (period == 0 || t == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>final Object msg = filt...
DESTROYED, getID(), "scheduleFixedBroadcast(final Object o, long waitFor, long period, TimeUnit t)");
880,347
public static boolean onScroll(double delta) {<NEW_LINE>Minecraft mc = Minecraft.getInstance();<NEW_LINE>HitResult objectMouseOver = mc.hitResult;<NEW_LINE>if (!(objectMouseOver instanceof BlockHitResult))<NEW_LINE>return false;<NEW_LINE>BlockHitResult result = (BlockHitResult) objectMouseOver;<NEW_LINE>ClientLevel wor...
lerp(pitch, 1.5f, 2f);
1,646,349
public void run() {<NEW_LINE>// Sleep until we have reached the timeout<NEW_LINE>boolean allTerminated = isTerminated();<NEW_LINE>long timeoutNano = TimeUnit.SECONDS.toNanos(timeout);<NEW_LINE>while (!stopped && ((System.nanoTime() - startTime) < timeoutNano)) {<NEW_LINE>allTerminated = isTerminated();<NEW_LINE>if (all...
= new TimeoutReason(timeElapsed, timeout);
1,443,988
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>log("onCreate.");<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// Create the client used to sign in.<NEW_LINE>mGoogleSignInClient = GoogleSignIn.getClient(this, // Since we are using SavedGames, we ne...
.SCOPE_APPFOLDER).build());
1,800,837
public static String xpathInjectImageRelId(WordprocessingMLPackage wmlPackage, JaxbXmlPart sourcePart, Map<String, CustomXmlDataStoragePart> customXmlDataStorageParts, String storeItemId, String xpath, String prefixMappings) {<NEW_LINE>// TODO: remove any images in package which are no longer used.<NEW_LINE>// Needs to...
" yielded result length" + xpResult.length());
691,766
private JPanel createButtonsPanel() {<NEW_LINE>final JButton openFileButton = new JButton(new FileSelectionAction());<NEW_LINE>openFileButton.setName("openFileButton");<NEW_LINE>openFileButton.setMnemonic(KeyEvent.VK_O);<NEW_LINE>openFileButton.setText("Open File");<NEW_LINE>reloadAction.setEnabled(false);<NEW_LINE>fin...
final JPanel buttonPanel = new JPanel();
1,354,380
public void fetchNativeAppStart(Promise promise) {<NEW_LINE>final AppStartState appStartInstance = AppStartState.getInstance();<NEW_LINE>final Date appStartTime = appStartInstance.getAppStartTime();<NEW_LINE>final Boolean isColdStart = appStartInstance.isColdStart();<NEW_LINE>if (appStartTime == null) {<NEW_LINE>logger...
appStart.putBoolean("isColdStart", isColdStart);
1,445,669
public static void vertical(Kernel1D_S32 kernel, GrayU16 src, GrayI16 dst, int divisor, @Nullable GrowArray<DogArray_I32> workspaces) {<NEW_LINE>workspaces = BoofMiscOps.checkDeclare(workspaces, DogArray_I32::new);<NEW_LINE>// CONCURRENT_REMOVE_LINE<NEW_LINE>final DogArray_I32 work = workspaces.grow();<NEW_LINE>final s...
totalRow, 0, imgWidth, 0);
1,649,043
public void marshall(RuleGroupsNamespaceDescription ruleGroupsNamespaceDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (ruleGroupsNamespaceDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.mar...
ruleGroupsNamespaceDescription.getCreatedAt(), CREATEDAT_BINDING);
660,098
public boolean isMatch(String s, String p) {<NEW_LINE>boolean[][] match = new boolean[s.length() + 1][p.length() + 1];<NEW_LINE>match[s.length()][p.length()] = true;<NEW_LINE>for (int i = p.length() - 1; i >= 0; i--) {<NEW_LINE>if (p.charAt(i) != '*') {<NEW_LINE>break;<NEW_LINE>} else {<NEW_LINE>match[s.length<MASK><NE...
()][i] = true;
723,310
public GetFindingsPublicationConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetFindingsPublicationConfigurationResult getFindingsPublicationConfigurationResult = new GetFindingsPublicationConfigurationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE...
().unmarshall(context));