idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
307,845
private static void createEventPoolAndEvents(LevelZeroContext context, LevelZeroDevice device, ZeEventPoolHandle eventPoolHandle, int poolEventFlags, int poolSize, ZeEventHandle kernelEvent) {<NEW_LINE>ZeEventPoolDescription eventPoolDescription = new ZeEventPoolDescription();<NEW_LINE>eventPoolDescription.setCount(poo...
LevelZeroUtils.errorLog("zeEventCreate", result);
1,735,327
public void onClick(View view) {<NEW_LINE>if (view.getId() == R.id.btn_done) {<NEW_LINE>AppWidgetManager appWidgetManager = AppWidgetManager.getInstance(this);<NEW_LINE>RemoteViews remoteViews = new RemoteViews(this.getPackageName(), layoutId);<NEW_LINE>BaseWidgetProvider.setupButtons(this, remoteViews, appWidgetId, ge...
putExtra(AppWidgetManager.EXTRA_APPWIDGET_ID, appWidgetId);
1,644,735
public XssMatchSetSummary unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>XssMatchSetSummary xssMatchSetSummary = new XssMatchSetSummary();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
class).unmarshall(context));
594,880
final CreateClusterResult executeCreateCluster(CreateClusterRequest createClusterRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createClusterRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
false), new CreateClusterResultJsonUnmarshaller());
1,309,136
public void initView() {<NEW_LINE>MaterialToolbar toolbar = findViewById(R.id.activity_live_wallpaper_config_toolbar);<NEW_LINE>toolbar.setNavigationOnClickListener(view -> finish());<NEW_LINE>AppCompatSpinner weatherKindSpinner = findViewById(R.id.activity_live_wallpaper_config_weatherKindSpinner);<NEW_LINE>weatherKin...
update(this, mWeatherKindValueNow, mDayNightTypeValueNow);
1,628,917
public boolean visit(SQLUnionQuery sqlSelectQuery) {<NEW_LINE>MergeNode mergeNode = new MergeNode();<NEW_LINE>SQLSelectQuery left = sqlSelectQuery.getLeft();<NEW_LINE>MySQLPlanNodeVisitor mtvLeft = new MySQLPlanNodeVisitor(this.currentDb, this.charsetIndex, this.metaManager, this.isSubQuery, <MASK><NEW_LINE>mtvLeft.vis...
this.usrVariables, this.hintPlanInfo);
1,555,428
protected void reportComplete(final NetworkAdminSpeedTesterResult result) {<NEW_LINE>if (!textMessages.isDisposed()) {<NEW_LINE>display.asyncExec(new AERunnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void runSupport() {<NEW_LINE>if (!textMessages.isDisposed()) {<NEW_LINE>if (result.hadError()) {<NEW_LINE>// T...
()) + Text.DELIMITER);
35,821
final SearchResourcesResult executeSearchResources(SearchResourcesRequest searchResourcesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchResourcesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
endClientExecution(awsRequestMetrics, request, response);
1,551,354
public void modifyTestElement(TestElement element) {<NEW_LINE>super.modifyTestElement(element);<NEW_LINE>final String method = element.getPropertyAsString(HTTPSamplerBase.METHOD);<NEW_LINE>final GraphQLRequestParams params = new GraphQLRequestParams(operationNameText.getText(), queryContent.getText(), variablesContent....
QUERY, params.getQuery());
9,360
private void moveNewBundlesToFelixLoadFolder(final File uploadFolderFile, final String[] pathnames) {<NEW_LINE>final File deployDirectory = new File(this.getFelixDeployPath());<NEW_LINE>try {<NEW_LINE>if (deployDirectory.exists() && deployDirectory.canWrite()) {<NEW_LINE>for (final String pathname : pathnames) {<NEW_LI...
deployDirectory, bundle.getName());
186,668
public void onLayout(boolean changed, int l, int t, int r, int b) {<NEW_LINE>boolean rtl = mHelper.useRtl();<NEW_LINE>int viewWidth = getMeasuredWidth();<NEW_LINE>// Initialize horizontal layout cursor. The cursor value increases as layout proceeds, but<NEW_LINE>// actual layout locations in RTL mode are (viewWidth - c...
View) mFieldViews.get(i);
1,812,268
public static AsyncResource<Map<String, Object>> fetchJSONAsync(String url) {<NEW_LINE>final AsyncResource<Map<String, Object>> out = new AsyncResource<Map<MASK><NEW_LINE>final ConnectionRequest cr = new ConnectionRequest();<NEW_LINE>cr.setFailSilently(true);<NEW_LINE>cr.setPost(false);<NEW_LINE>cr.setUrl(url);<NEW_LIN...
<String, Object>>();
268,460
static IdToken fromTokenString(String tokenString) {<NEW_LINE>List<String> colonSplit = Splitter.on(':').splitToList(tokenString);<NEW_LINE>String pathpart = colonSplit.get(0);<NEW_LINE>boolean isChoiceType = pathpart.endsWith("[x]");<NEW_LINE>if (isChoiceType) {<NEW_LINE>pathpart = pathpart.substring(0, pathpart.lengt...
(colonSplit.get(1));
210,285
public void receiveFileInfo(List<String> phase1FileNames, List<Long> phase1FileSizes, List<String> phase1ExistingFileNames, List<Long> phase1ExistingFileSizes, int totalTranslogOps, ActionListener<Void> listener) {<NEW_LINE>final String action = PeerRecoveryTargetService.Actions.FILES_INFO;<NEW_LINE>final long requestS...
request, options, responseListener, reader);
373,271
// isComplete<NEW_LINE>private boolean isSameCostDimension(MAcctSchema as, MTransaction trxFrom, MTransaction trxTo) {<NEW_LINE>if (trxFrom.getM_Product_ID() != trxTo.getM_Product_ID()) {<NEW_LINE>throw new AdempiereException("Same product is needed - " + trxFrom + ", " + trxTo);<NEW_LINE>}<NEW_LINE>MProduct product = ...
int attributeSetInstanceId = trxFrom.getM_AttributeSetInstance_ID();
1,770,612
public void paint(Graphics g) {<NEW_LINE>int height = getHeight();<NEW_LINE>int width = getWidth();<NEW_LINE>int borderX = myLabelInsets.left - 1;<NEW_LINE>int borderY = myLabelInsets.top - 1;<NEW_LINE>int borderW = width - borderX - myLabelInsets.right + 2;<NEW_LINE>int borderH = height - borderY - myLabelInsets.botto...
borderX, borderY, borderW, borderH);
1,332,145
private OffsetDateTime parse(String o1, List<String> formats) throws DateFormatException {<NEW_LINE>Locale locale = getLocale(formats);<NEW_LINE>DateFormat formatter;<NEW_LINE>OffsetDateTime date;<NEW_LINE>// need to try using each format in the formats list!<NEW_LINE>if (formats.size() > 0) {<NEW_LINE>for (int i = 0; ...
getOffset(parsedDate.getTimeInMillis());
1,156,719
private void createYarnClient() {<NEW_LINE>if (System.getenv(Constants.HADOOP_CONF_DIR) != null) {<NEW_LINE>yarnConf.addResource(new Path(System.getenv(Constants.HADOOP_CONF_DIR) + File.separatorChar + Constants.CORE_SITE_CONF));<NEW_LINE>yarnConf.addResource(new Path(System.getenv(Constants.HADOOP_CONF_DIR) + File.sep...
RESOURCEMANAGER_CONNECT_RETRY_INTERVAL_MS, YarnConfiguration.DEFAULT_RESOURCEMANAGER_CONNECT_RETRY_INTERVAL_MS) * numRMConnectRetries;
932,418
public void finalizeEvaluation() {<NEW_LINE>nProcessedLoci = getEngine().getnProcessedLoci();<NEW_LINE>processedMultiSnpRatio = (<MASK><NEW_LINE>variantMultiSnpRatio = (double) nMultiSNPs / (double) nSNPs;<NEW_LINE>processedMultiIndelRatio = (double) nMultiIndels / (double) nProcessedLoci;<NEW_LINE>variantMultiIndelRat...
double) nMultiSNPs / (double) nProcessedLoci;
1,602,717
private static void copyEngineBinary(Project project, Platform architecture, File dest) throws IOException {<NEW_LINE>// vanilla or extender exe?<NEW_LINE>final String extenderExeDir = getExtenderExeDir(project);<NEW_LINE>List<File> bundleExe = Bob.getNativeExtensionEngineBinaries(architecture, extenderExeDir);<NEW_LIN...
Bob.getDefaultDmengineFiles(architecture, variant);
322,220
public static HttpPipeline buildHttpPipeline(TokenCredential credential, AzureProfile profile, String[] scopes, HttpLogOptions httpLogOptions, Configuration configuration, RetryPolicy retryPolicy, List<HttpPipelinePolicy> additionalPolicies, HttpClient httpClient) {<NEW_LINE>List<HttpPipelinePolicy> policies = new Arra...
.add(new RequestIdPolicy());
73,582
public String toSqlExpression() {<NEW_LINE>Map<?, ?> value = getValue();<NEW_LINE>if (value == null || value.isEmpty()) {<NEW_LINE>return "{}";<NEW_LINE>}<NEW_LINE>StringBuilder builder = new <MASK><NEW_LINE>// non-null number, string or uuid<NEW_LINE>Function<Object, String> keySerializer = String.class == keyType || ...
StringBuilder().append('{');
489,820
public void deletePet(Long petId, String apiKey) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'petId' when calling deletePet");<NEW_LINE>}<NEW_LIN...
(petId.toString()));
1,286,717
protected void addDatabaseSet(CodeGenContext codeGenCtx, String databaseSetName) throws SQLException {<NEW_LINE>DaoOfDatabaseSet daoOfDatabaseSet = BeanGetter.getDaoOfDatabaseSet();<NEW_LINE>List<DatabaseSet> sets = daoOfDatabaseSet.getAllDatabaseSetByName(databaseSetName);<NEW_LINE>if (null == sets || sets.isEmpty()) ...
> map = dalConfigHost.getDatabaseSetEntryMap();
706,722
protected void findAndProcessActions() {<NEW_LINE>BFRuleContext context = new BFRuleContext(infGraph);<NEW_LINE>for (Rule r : rules) {<NEW_LINE>if (r.bodyLength() == 0) {<NEW_LINE>// An axiom<NEW_LINE>for (int j = 0; j < r.headLength(); j++) {<NEW_LINE>Object head = r.getHeadElement(j);<NEW_LINE>if (head instanceof Fun...
f.getArgLength(), context);
1,297,543
public void run() {<NEW_LINE>XabberAccount xabberAccount = XabberAccountManager.getInstance().getAccount();<NEW_LINE><MASK><NEW_LINE>if (xabberAccount == null) {<NEW_LINE>AccountItem accountItem = AccountManager.getInstance().getAccount(accountJid);<NEW_LINE>if (accountItem != null && accountItem.isXabberAutoLoginEnabl...
AccountJid accountJid = connection.getAccount();
1,786,724
protected Path calculateArrow(PointF tail, PointF point) {<NEW_LINE>Path arrow = null;<NEW_LINE>if (!point.equals(tail.x, tail.y)) {<NEW_LINE>arrow = new Path();<NEW_LINE>double theta = Math.atan2(point.y - tail.y, point.x - tail.x);<NEW_LINE>// find the offsets to the centre point for the arrowhead<NEW_LINE>float dx =...
.y -= (2 * dy);
200,559
private void createClassBody(polyglot.ast.ClassBody classBody) {<NEW_LINE>// reinit static lists<NEW_LINE>staticFieldInits = null;<NEW_LINE>fieldInits = null;<NEW_LINE>initializerBlocks = null;<NEW_LINE>staticInitializerBlocks = null;<NEW_LINE>// handle members<NEW_LINE>for (Iterator it = classBody.members().iterator()...
polyglot.ast.FieldDecl) next);
1,694,728
final void update() {<NEW_LINE>synchronized (hashSetHitsMap) {<NEW_LINE>hashSetHitsMap.clear();<NEW_LINE>}<NEW_LINE>if (skCase == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int setNameId = ATTRIBUTE_TYPE.TSK_SET_NAME.getTypeID();<NEW_LINE><MASK><NEW_LINE>// NON-NLS<NEW_LINE>String // NON-NLS<NEW_LINE>query = // NON-N...
int artId = TSK_HASHSET_HIT.getTypeID();
481,074
protected static void load(String path, String name) {<NEW_LINE>String libroot = "/META-INF/lib";<NEW_LINE>String libpath = null;<NEW_LINE>String libfile = null;<NEW_LINE>boolean arch64 = System.getProperty("os.arch").indexOf("64") != -1;<NEW_LINE>boolean linux = System.getProperty("os.name").toLowerCase().indexOf("lin...
+ (arch64 ? "/linux64/" : "/linux32/");
946,512
public SortedMap<K, V> create(Object... entries) {<NEW_LINE>List<Entry<K, V>> extremeValues = new ArrayList<>();<NEW_LINE>// prepare extreme values to be filtered out of view<NEW_LINE>K firstExclusive = getInnerGenerator().belowSamplesGreater().getKey();<NEW_LINE>K lastExclusive = getInnerGenerator().aboveSamplesLesser...
getInnerGenerator().aboveSamplesGreater());
1,619,519
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "ListTagsForResource");
898,392
protected void sendMetrics() {<NEW_LINE>// Need to convert millis to seconds for Graphite<NEW_LINE>long timestampInSeconds = TimeUnit.SECONDS.convert(System.currentTimeMillis(), TimeUnit.MILLISECONDS);<NEW_LINE>synchronized (LOCK) {<NEW_LINE>for (Map.Entry<String, SamplerMetric> entry : getMetricsPerSampler().entrySet(...
(userMetric.getMeanActiveThreads()));
981,856
public static double computePi(DBIDRef ignore, DoubleDBIDListIter it, double[] p, double perplexity, double logPerp) {<NEW_LINE>// Relation to paper: beta == 1. / (2*sigma*sigma)<NEW_LINE>double beta = estimateInitialBeta(ignore, it, perplexity);<NEW_LINE>double diff = computeH(ignore, it, p, -beta) - logPerp;<NEW_LINE...
, p, -beta) - logPerp;
598,802
public void marshall(ApplicationComponentDetail applicationComponentDetail, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (applicationComponentDetail == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(applic...
applicationComponentDetail.getStatusMessage(), STATUSMESSAGE_BINDING);
1,477,670
public Composite createControl(Composite parent, DashboardResources resources) {<NEW_LINE>Composite container = new Composite(parent, SWT.NONE);<NEW_LINE>GridLayoutFactory.fillDefaults().numColumns(1).margins(5, 5).applyTo(container);<NEW_LINE>container.setBackground(parent.getBackground());<NEW_LINE>title = new Label(...
getTitle().setVisible(false);
1,532,432
private void publishBlob(HollowProducer.Blob blob) {<NEW_LINE>Path destination = null;<NEW_LINE>switch(blob.getType()) {<NEW_LINE>case SNAPSHOT:<NEW_LINE>destination = blobStorePath.resolve(String.format("%s-%d", blob.getType().prefix, blob.getToVersion()));<NEW_LINE>break;<NEW_LINE>case DELTA:<NEW_LINE>case REVERSE_DE...
write(buf, 0, n);
1,086,838
private void addPlayerData(Map<String, Object> dataJson, TablePlayer player) {<NEW_LINE>String name = player.getName().orElse(player.getPlayerUUID().toString());<NEW_LINE>String url = (playersPage ? "./player/" : "../player/") + Html.encodeToURL(player.getPlayerUUID().toString());<NEW_LINE>int loginTimes = player.getSe...
putDataEntry(dataJson, loginTimes, "sessions");
1,069,766
// This function assumes Python script is located in the "src/main/resources".<NEW_LINE>public List<String> runPython(String pyName) throws Exception {<NEW_LINE>String pyFullName = getFullResourcePath(pyName);<NEW_LINE>LOG.info(String.format("Run python script `%s`", pyFullName));<NEW_LINE>ProcessBuilder pBuilder = new...
int exitCode = p.waitFor();
1,192,896
protected int lockByFilters(final ILockCommand lockCommand) {<NEW_LINE>final IQueryFilter<?> selectionToLockFilters = lockCommand.getSelectionToLock_Filters();<NEW_LINE>final LockOwner lockOwner = lockCommand.getOwner();<NEW_LINE>assertValidLockOwner(lockOwner);<NEW_LINE>if (selectionToLockFilters instanceof ISqlQueryF...
(sqlFilter.getSqlParams(null));
1,756,414
protected Object readResolve() throws ObjectStreamException {<NEW_LINE>try {<NEW_LINE>if (type == Type.SECRET && RAW.equals(format)) {<NEW_LINE>return new SecretKeySpec(encoded, algorithm);<NEW_LINE>} else if (type == Type.PUBLIC && X509.equals(format)) {<NEW_LINE>KeyFactory f = KeyFactory.getInstance(algorithm);<NEW_L...
f = KeyFactory.getInstance(algorithm);
1,377,199
public void registerHandlers() {<NEW_LINE>// register hb handler<NEW_LINE>TMHandler hbHandler = new TaskHeartbeatUpdater();<NEW_LINE>hbHandler.init(tmContext);<NEW_LINE>handlers.put(Common.TOPOLOGY_MASTER_HB_STREAM_ID, hbHandler);<NEW_LINE>// update metric data<NEW_LINE>TMHandler metricUpdater = new MetricsUpdater();<N...
TMHandler) Utils.newInstance(udfStreamClass);
1,673,259
public static void main(String[] args) throws Exception {<NEW_LINE>// Where will we save our new .ppxt?<NEW_LINE>String outputfilepath = System.getProperty("user.dir") + "/OUT_SlidePlaceholder.pptx";<NEW_LINE>// Create skeletal package, including a MainPresentationPart and a SlideLayoutPart<NEW_LINE>PresentationMLPacka...
.io.File(outputfilepath));
1,270,161
public void marshall(NewPublicVirtualInterfaceAllocation newPublicVirtualInterfaceAllocation, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (newPublicVirtualInterfaceAllocation == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protoco...
newPublicVirtualInterfaceAllocation.getAmazonAddress(), AMAZONADDRESS_BINDING);
1,685,987
public void apply(ParameterContext context) {<NEW_LINE>Optional<Parameter> parameterAnnotation = context.resolvedMethodParameter().findAnnotation(Parameter.class);<NEW_LINE>AllowableValues allowedValues = new AllowableListValues(parameterAnnotation.map(p -> Arrays.asList(p.schema().allowableValues())).orElse(new ArrayL...
schema().format());
55,219
public static void main(String... args) {<NEW_LINE>Gson parser = gsonb.create();<NEW_LINE>IntegrationInput input = parser.fromJson(new InputStreamReader(System.in), IntegrationInput.class);<NEW_LINE>ClassLoader old = Thread.currentThread().getContextClassLoader();<NEW_LINE>PrintStream oldout = System.out;<NEW_LINE>Stri...
currentThread().setContextClassLoader(integrationCl);
1,452,275
public static void main(String[] args) throws Exception {<NEW_LINE>String BASE_DIR = System.getProperty("user.dir");<NEW_LINE>String inputfilepath = BASE_DIR + "/sample-docs/sample-docx.docx";<NEW_LINE>boolean saveImages = true;<NEW_LINE>boolean saveResultingDoc = true;<NEW_LINE>String outputfilepath = BASE_DIR + "/OUT...
SaveToZipFile saver = new SaveToZipFile(wordMLPackage);
1,529,002
static Bag[] of(int n, int k) {<NEW_LINE>if (n < 0) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (k < 0) {<NEW_LINE>throw new IllegalArgumentException("Invalid number of bootstrap: " + k);<NEW_LINE>}<NEW_LINE>Bag[] bags = new Bag[k];<NEW_LINE>for (int j = 0; j < k; j++) {<NEW_LINE>boolean[] hit = new boolean[n];<NEW_LINE>i...
throw new IllegalArgumentException("Invalid sample size: " + n);
948,792
private void analyzeBeanInfoSource() throws GenerateBeanException {<NEW_LINE>if (!bis.isNbBeanInfo())<NEW_LINE>return;<NEW_LINE>String section = bis.getIconsSection();<NEW_LINE>List<String> code = normalizeText(section);<NEW_LINE>setIconsFromBeanInfo(code);<NEW_LINE>section = bis.getDefaultIdxSection();<NEW_LINE>code =...
(isLazy(code, "MethodDescriptor"));
1,398,209
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>ActivityMainBinding binding = DataBindingUtil.setContentView(this, R.layout.activity_main);<NEW_LINE>City[] cities = { new City("Istanbul"), new City("Barcelona"), new City("London"), new City("San Francisco") };<...
new State("United States", 323));
138,497
public static ByteBuffer fromByteArray(byte[] array, int offset, int length) {<NEW_LINE>ByteBuffer byteBuffer = new ByteBuffer();<NEW_LINE>if (isAllZeroes(array, offset, length)) {<NEW_LINE>// Special case: for all zeroes, it's definitely not an ObjectInputStream, because it has a<NEW_LINE>// non-zero mandatory magic. ...
, new byte[length]));
201,009
public CompletionStage<Void> refreshPartitionsAsync() {<NEW_LINE>List<RedisURI> sources = new ArrayList<>();<NEW_LINE>Iterable<RedisURI> topologyRefreshSource = getTopologyRefreshSource();<NEW_LINE>for (RedisURI redisURI : topologyRefreshSource) {<NEW_LINE>sources.add(redisURI);<NEW_LINE>}<NEW_LINE>EventRecorder.Record...
ArrayList<>(getPartitions());
237,842
private Map<String, List<GpxDisplayItem>> collectItemsByCategory(GpxDisplayGroup group, int index) {<NEW_LINE>Map<String, List<GpxDisplayItem>> itemsMap = new HashMap<>();<NEW_LINE>for (GpxDisplayItem item : group.getModifiableList()) {<NEW_LINE>String category;<NEW_LINE>if (item.locationStart != null) {<NEW_LINE>if (g...
+ " " + (index + 1);
869,969
private Set<ClassInfoType> processUnexplodedFile(Path path) throws ClassScannerException {<NEW_LINE>final HashSet<ClassInfoType> citSet = new HashSet<ClassInfoType>();<NEW_LINE>if (path == null) {<NEW_LINE>throw new ClassScannerException("Null argument is invalid for method processUnexplodedFile().");<NEW_LINE>}<NEW_LI...
> entryEnum = zf.entries();
1,644,850
private void sendDocConversionRequestReceived(UploadedPresentation pres) {<NEW_LINE>if (!pres.isConversionStarted()) {<NEW_LINE>Map<String, Object> logData = new HashMap<String, Object>();<NEW_LINE>logData.put("podId", pres.getPodId());<NEW_LINE>logData.put("meetingId", pres.getMeetingId());<NEW_LINE>logData.put("presI...
"isRemovable", pres.isRemovable());
1,810,581
public void addLine(double pXFrom, double pYFrom, double pXTo, double pYTo) {<NEW_LINE>int lYFrom;<NEW_LINE>int lYTo;<NEW_LINE>// Do some rounding (but not in the way we expect it), limit values<NEW_LINE>if (pYFrom < pYTo) {<NEW_LINE>// Round lYFrom (but .5 is handled oddly)<NEW_LINE>// 1.5001 - 2.5 -> 1.0001 - 2.0 -> ...
(Double.valueOf(lX));
251,816
private double[] convertMaxRadii(Double[] radiiIn, int coordinatesLength, int profileType) throws ParameterValueException {<NEW_LINE>if (radiiIn != null) {<NEW_LINE>if (radiiIn.length == 1) {<NEW_LINE>double[] maxRadii = new double[coordinatesLength];<NEW_LINE>Arrays.fill(maxRadii, radiiIn[0]);<NEW_LINE>return maxRadii...
Arrays.fill(maxRadii, 50);
845,871
public OsInfo buildOs(Attributes attributes) {<NEW_LINE>String name = attributes.getValue(Constants.ATTR_NAME);<NEW_LINE>String arch = attributes.getValue(Constants.ATTR_ARCH);<NEW_LINE>String version = attributes.getValue(Constants.ATTR_VERSION);<NEW_LINE>String availableProcessors = attributes.getValue(Constants.ATTR...
.class, totalSwapSpace, 0L));
484,674
void recordAttributeDo(U32Pointer attribute) throws CorruptDataException {<NEW_LINE>if (attribute.isNull()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>U32Pointer attributeStart = attribute;<NEW_LINE>int numRecordComponents = attribute.at(0).intValue();<NEW_LINE>classWalkerCallback.addSlot(clazz, SlotType.J9_U32, attribute,...
attributeU8 = attributeU8.add(1);
1,009,333
private void hideMacHorizontalScrollbars() {<NEW_LINE>Element element = getElement();<NEW_LINE>Element elementParent = element.getParentElement();<NEW_LINE>if (elementParent == null)<NEW_LINE>return;<NEW_LINE>Element parent = elementParent.getParentElement();<NEW_LINE>if (parent == null)<NEW_LINE>return;<NEW_LINE>// GW...
style.setOverflowX(Overflow.HIDDEN);
976,472
private String formatMatParam(MatParam param) {<NEW_LINE>VarType type = param.getVarType();<NEW_LINE><MASK><NEW_LINE>switch(type) {<NEW_LINE>case Boolean:<NEW_LINE>case Float:<NEW_LINE>case Int:<NEW_LINE>return val.toString();<NEW_LINE>case Vector2:<NEW_LINE>Vector2f v2 = (Vector2f) val;<NEW_LINE>return v2.getX() + " "...
Object val = param.getValue();
815,614
public final // JPA2.g:518:1: parameter_name : WORD ( '.' WORD )* ;<NEW_LINE>JPA2Parser.parameter_name_return parameter_name() throws RecognitionException {<NEW_LINE>JPA2Parser.parameter_name_return retval = new JPA2Parser.parameter_name_return();<NEW_LINE>retval.<MASK><NEW_LINE>Object root_0 = null;<NEW_LINE>Token WOR...
start = input.LT(1);
824,546
void connectTypeHierarchy() {<NEW_LINE>SourceTypeBinding sourceType = this.referenceContext.binding;<NEW_LINE>CompilationUnitScope compilationUnitScope = compilationUnitScope();<NEW_LINE>boolean wasAlreadyConnecting = compilationUnitScope.connectingHierarchy;<NEW_LINE>compilationUnitScope.connectingHierarchy = true;<NE...
).typesBeingConnected.remove(sourceType);
395,632
protected void calculatePageInfo(final int start, final int size) {<NEW_LINE>pageSize = size;<NEW_LINE>allPageCount = (int) ((allRecordCount - 1) / pageSize) + 1;<NEW_LINE>existPrevPage = start > 0;<NEW_LINE>existNextPage = start < (long) (allPageCount - 1) * (long) pageSize;<NEW_LINE>currentPageNumber = start / pageSi...
(String.valueOf(i));
542,455
public Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {<NEW_LINE>com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(this.getUnknownFields());<NEW_LINE>while (tru...
int tag = input.readTag();
156,056
public void marshall(DataReplicationInfoReplicatedDisk dataReplicationInfoReplicatedDisk, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (dataReplicationInfoReplicatedDisk == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarsh...
dataReplicationInfoReplicatedDisk.getTotalStorageBytes(), TOTALSTORAGEBYTES_BINDING);
1,226,641
public Builder mergeFrom(net.osmand.binary.OsmandOdb.OsmAndAddressIndex other) {<NEW_LINE>if (other == net.osmand.binary.OsmandOdb.OsmAndAddressIndex.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasName()) {<NEW_LINE>bitField0_ |= 0x00000001;<NEW_LINE>name_ = other.name_;<NEW_LINE>onChanged();<NEW_LIN...
bitField0_ = (bitField0_ & ~0x00000010);
821,653
private void switchEditorColorsProfile() {<NEW_LINE>if (!isChangeEditorColorsPossible())<NEW_LINE>return;<NEW_LINE>String preferredProfile = getPreferredColorProfile();<NEW_LINE>ClassLoader cl = Lookup.getDefault().lookup(ClassLoader.class);<NEW_LINE>if (null == cl)<NEW_LINE>cl = LafPanel.class.getClassLoader();<NEW_LI...
m.invoke(colorModel, preferredProfile);
278,227
private void performIntersect(final Sketch sketchIn) {<NEW_LINE>// curCount and input data are nonzero, match against HT<NEW_LINE>assert curCount_ > 0 && !empty_;<NEW_LINE>final long[] cacheIn = sketchIn.getCache();<NEW_LINE>final int arrLongsIn = cacheIn.length;<NEW_LINE>final long[] hashTable;<NEW_LINE>if (wmem_ != n...
lgArrLongs_ = minLgHashTableSize(matchSetCount, REBUILD_THRESHOLD);
941,173
private void logGauges(Map<MetricName, Gauge> gauges, StringBuilder sb) {<NEW_LINE>if (!gauges.isEmpty()) {<NEW_LINE>printWithBanner("-- Gauges", '-', sb);<NEW_LINE>int maxLength = getMaxLengthOfKeys(gauges);<NEW_LINE>sb.append(String.format("%-" + maxLength + "s | value\n", "name"));<NEW_LINE>final Map<MetricName, Gau...
compareTo(value1.toString());
100,930
public <U1, U2, U3, U4, U5, U6, U7> Tuple7<U1, U2, U3, U4, U5, U6, U7> map(Function<? super T1, ? extends U1> f1, Function<? super T2, ? extends U2> f2, Function<? super T3, ? extends U3> f3, Function<? super T4, ? extends U4> f4, Function<? super T5, ? extends U5> f5, Function<? super T6, ? extends U6> f6, Function<? ...
Objects.requireNonNull(f4, "f4 is null");
936,208
public static void convolve3(Kernel2D_S32 kernel, GrayS32 src, GrayS32 dest, 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...
int width = src.getWidth();
906,830
public void implement() throws Exception {<NEW_LINE>Configuration conf = Configuration.get(snapshot.getSource().getFileObject());<NEW_LINE>if (elementContextName != null) {<NEW_LINE>// attr in context<NEW_LINE>Tag tag = conf.getTag(elementContextName);<NEW_LINE>if (tag == null) {<NEW_LINE>// no custom element found => ...
add(new Attribute(aName));
1,537,257
public static void main(String[] args) throws Exception {<NEW_LINE>if (args.length > 3 || args.length < 2 || (args.length == 3 && !args[0].equals("--train"))) {<NEW_LINE>System.err.println("Usage:");<NEW_LINE>System.err.println("java HierarchicalClassifierTrainer [--train] <questionLang> <corpusLang>\n");<NEW_LINE>Syst...
System.out.println("Training classifier...");
369,891
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "c0,c1,c2,c3,c4,c5".split(",");<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportBean_ST0_Container");<NEW_LINE>builder.expression(fields[0], "contained.allof(v => p00 = 7)");<NEW_LINE>builder.expression(fields[1], "contained.an...
false, false, false, true);
608,165
public app.freerouting.geometry.planar.Shape transform_to_board_rel(CoordinateTransform p_coordinate_transform) {<NEW_LINE>FloatPoint[] corner_arr = new FloatPoint[this.coordinate_arr.length / 2];<NEW_LINE>double[] curr_point = new double[2];<NEW_LINE>for (int i = 0; i < corner_arr.length; ++i) {<NEW_LINE>curr_point[0]...
] = p_coordinate_transform.dsn_to_board_rel(curr_point);
1,101,964
private void configureServiceRefs(List<ServiceRef> serviceRefs) {<NEW_LINE>Map<String, ConfigItem<ServiceRef>> serviceRefConfigItemMap = configurator.getConfigItemMap("service-ref");<NEW_LINE>Set<String> additiveServiceRefNames = configurator.getContextSet("service-ref-name");<NEW_LINE>for (ServiceRef serviceRef : serv...
, createConfigItem(serviceRefImpl, SERVICE_REF_COMPARATOR));
1,320,887
public ProxyClusterResult loadByStream(String inlongGroupId, String inlongStreamId) {<NEW_LINE>HttpGet httpGet = null;<NEW_LINE>try {<NEW_LINE>String url = this.context.getString(KEY_LOADER_TYPE_MANAGER_STREAMURL) + "?inlongGroupId=" + inlongGroupId + "&inlongStreamId=" + inlongStreamId;<NEW_LINE>LOG.info("start to Pro...
setMd5(configResponse.getMd5());
418,925
public ClusterMergeHistory autorun(Database database) {<NEW_LINE>ClusterOrder in = inner.autorun(database);<NEW_LINE><MASK><NEW_LINE>int[] ord = MathUtil.sequence(1, ids.size());<NEW_LINE>double[] d = new double[ord.length];<NEW_LINE>for (DBIDArrayIter it = ids.iter().seek(1); it.valid(); it.advance()) {<NEW_LINE>d[it....
ArrayDBIDs ids = in.getDBIDs();
1,360,972
private static void toServiceRelation(ServiceMeshMetric.Builder metrics, long minuteTimeBucket) {<NEW_LINE>ServiceRelation serviceRelation = new ServiceRelation();<NEW_LINE>serviceRelation.setTimeBucket(minuteTimeBucket);<NEW_LINE>serviceRelation.setSourceServiceName(metrics.getSourceServiceName());<NEW_LINE>serviceRel...
setLatency(metrics.getLatency());
1,699,406
void update_agent(Business business, List<WrapAgent> wraps, Process process) throws Exception {<NEW_LINE>List<String> ids = business.agent().<MASK><NEW_LINE>List<Agent> os = business.entityManagerContainer().list(Agent.class, ids);<NEW_LINE>for (Agent o : os) {<NEW_LINE>if (null == jpaInWrapList(o, wraps)) {<NEW_LINE>b...
listWithProcess(process.getId());
30,581
public void createAndFireStockCountEvents(@NonNull final I_Fresh_QtyOnHand qtyOnHand, @NonNull final ModelChangeType timing) {<NEW_LINE>final boolean createDeletedEvent = timing.isDelete() || ModelChangeUtil.isJustDeactivatedOrUnProcessed(qtyOnHand);<NEW_LINE>final List<AbstractStockEstimateEvent> events = new ArrayLis...
events.forEach(materialEventService::postEventAfterNextCommit);
1,767,374
public static Uri compatUriFromFile(@NonNull final ReactContext context, @NonNull final File file) {<NEW_LINE>compileAuthorities(context);<NEW_LINE>String existingAuthority = Uri.fromFile(file).getAuthority();<NEW_LINE>// Authority is already set on this uri, no need to set it again<NEW_LINE>if (!TextUtils.isEmpty(exis...
getUriForFile(context, authority, file);
246,407
private void collectSystemInfo(ConfigurationNode node) throws SerializationException {<NEW_LINE>node.node("bluemap-version").set(BlueMap.VERSION);<NEW_LINE>node.node("git-hash").set(BlueMap.GIT_HASH);<NEW_LINE>node.node("git-clean").set(BlueMap.GIT_CLEAN);<NEW_LINE>String[] properties = new String[] { "java.runtime.nam...
"java.home", "file.separator", "sun.io.unicode.encoding", "java.class.version" };
1,334,777
public void train(TimeSeries.DataSequence data) {<NEW_LINE>this.data = data;<NEW_LINE>int n = data.size();<NEW_LINE>DataPoint dp = null;<NEW_LINE>DataSet observedData = new DataSet();<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>dp = new Observation(data<MASK><NEW_LINE>dp.setIndependentValue("x", i);<NEW_LINE>observ...
.get(i).value);
1,630,214
public static byte[] privKeyTweakMul(byte[] privkey, byte[] tweak) throws AssertFailException {<NEW_LINE>checkArgument(privkey.length == 32);<NEW_LINE>ByteBuffer byteBuff = nativeByteBuffer.get();<NEW_LINE>if (byteBuff == null || byteBuff.capacity() < privkey.length + tweak.length) {<NEW_LINE>byteBuff = ByteBuffer.allo...
byteBuff, Secp256k1Context.getContext());
1,316,681
public MultiCurrencyAmountArray minus(MultiCurrencyAmountArray other) {<NEW_LINE>if (other.size() != size) {<NEW_LINE>throw new IllegalArgumentException(Messages.format("Sizes must be equal, this size is {}, other size is {}", size, other.size()));<NEW_LINE>}<NEW_LINE>ImmutableMap.Builder<Currency, DoubleArray> builder...
array = values.get(currency);
1,186,391
public void trashNotes(boolean trash) {<NEW_LINE>int selectedNotesSize = getSelectedNotes().size();<NEW_LINE>// Restore is performed immediately, otherwise undo bar is shown<NEW_LINE>if (trash) {<NEW_LINE>trackModifiedNotes(getSelectedNotes());<NEW_LINE>for (Note note : getSelectedNotes()) {<NEW_LINE>listAdapter.remove...
.string.trashed), null);
120,664
public void change(final Event e, @Nullable final Object[] delta, final ChangeMode mode) {<NEW_LINE>int d = delta == null ? 0 : ((Number) delta[0]).intValue();<NEW_LINE>for (LivingEntity le : getExpr().getArray(e)) {<NEW_LINE>if (le instanceof Creeper) {<NEW_LINE>Creeper c = (Creeper) le;<NEW_LINE>switch(mode) {<NEW_LI...
= c.getMaxFuseTicks() + d;
629,748
public void paintComponent(Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>Graphics2D g2d = (Graphics2D) g;<NEW_LINE>if (opacity == 0)<NEW_LINE>return;<NEW_LINE>Rectangle r = getBounds();<NEW_LINE>g2d.setComposite(AlphaComposite.getInstance(AlphaComposite.CLEAR, 1.0f));<NEW_LINE>g2d.setRenderingHint(RenderingH...
(AlphaComposite.SRC_OVER, opacity));
1,588,069
public synchronized void addTimer(TimerPrimaryKey timerId, RuntimeTimerState timerState) {<NEW_LINE>if (logger.isLoggable(Level.FINE)) {<NEW_LINE>logger.log(Level.FINE, "Adding timer {0}", timerState);<NEW_LINE>}<NEW_LINE>timers_.put(timerId, timerState);<NEW_LINE>if (!timerState.isPersistent()) {<NEW_LINE>nonpersisten...
((Long) containerInfo) + 1;
987,529
public String load(String fpJarOrFolder, boolean scriptOnly) {<NEW_LINE>// ##<NEW_LINE>// # loads a Sikuli extension (.jar) from<NEW_LINE>// # 1. user's sikuli data path<NEW_LINE>// # 2. bundle path<NEW_LINE>// #<NEW_LINE>// def load(jar):<NEW_LINE>// def _load(abspath):<NEW_LINE>// if os.path.exists(abspath):<NEW_LI...
.normalizeAbsolute(fpJarOrFolder, false));
282,174
private RefactoringStatus analyseEnclosedTypes() throws CoreException {<NEW_LINE>final ISourceRange typeRange = fType.getSourceRange();<NEW_LINE>final RefactoringStatus result = new RefactoringStatus();<NEW_LINE>CompilationUnit cuNode = new RefactoringASTParser(IASTSharedValues.SHARED_AST_LEVEL).parse(fType.getCompilat...
().getIdentifier()));
529,848
public ClassTree generate() {<NEW_LINE>ClassTree modifiedClazz = getClassTree();<NEW_LINE>FileObject fo = FileUtil.toFileObject(new File(getWorkingCopy().getCompilationUnit().getSourceFile().toUri().getPath()));<NEW_LINE>Project project = FileOwnerQuery.getOwner(fo);<NEW_LINE>JPATargetInfo ti = project != null ? projec...
= new ArrayList<ExpressionTree>();
1,000,945
public void initialize() {<NEW_LINE>listener = (viewPath, data) -> {<NEW_LINE>if (viewPath.size() != 4 || viewPath.indexOf(bisq.desktop.main.dao.bonding.BondingView.class) != 2)<NEW_LINE>return;<NEW_LINE>selectedViewClass = viewPath.tip();<NEW_LINE>loadView(selectedViewClass, data);<NEW_LINE>};<NEW_LINE>toggleGroup = n...
), RolesView.class, baseNavPath);
1,565,715
/* (non-Javadoc)<NEW_LINE>* @see tlc2.tool.fp.DiskFPSet.Flusher#mergeNewEntries(java.io.RandomAccessFile, java.io.RandomAccessFile)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void mergeNewEntries(BufferedRandomAccessFile[] inRAFs, RandomAccessFile outRAF) throws IOException {<NEW_LINE>final int buffLen = buff.le...
indexLen - 1, EC.SYSTEM_INDEX_ERROR);
1,140,849
public static DescribeAlarmEventDetailResponse unmarshall(DescribeAlarmEventDetailResponse describeAlarmEventDetailResponse, UnmarshallerContext context) {<NEW_LINE>describeAlarmEventDetailResponse.setRequestId(context.stringValue("DescribeAlarmEventDetailResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE...
(context.stringValue("DescribeAlarmEventDetailResponse.Data.InternetIp"));
1,639,275
public static SchemaMapping create(String schemaName, ResultSetMetaData metadata, DatabaseDialect dialect) throws SQLException {<NEW_LINE>Map<ColumnId, ColumnDefinition> colDefns = dialect.describeColumns(metadata);<NEW_LINE>Map<String, ColumnConverter> colConvertersByFieldName = new LinkedHashMap<>();<NEW_LINE>SchemaB...
ColumnMapping(colDefn, columnNumber, field);
1,574,149
public boolean contains(float x, float y) {<NEW_LINE>if (isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>float rrx0 = this.x;<NEW_LINE>float rry0 = this.y;<NEW_LINE>float rrx1 = rrx0 + this.width;<NEW_LINE>float rry1 = rry0 + this.height;<NEW_LINE>// Check for trivial rejection - point is outside bounding recta...
= (x - rrx0) / aw;
1,272,441
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<TagResourceRequest> request = null;<NEW_LINE>Respo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();