idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
979,532
public Rectangle call() throws Exception {<NEW_LINE>AccessibleComponent acmp = ac.getAccessibleComponent();<NEW_LINE>if (acmp != null) {<NEW_LINE>Rectangle r = acmp.getBounds();<NEW_LINE>if (r != null) {<NEW_LINE>try {<NEW_LINE>Point p = acmp.getLocationOnScreen();<NEW_LINE>if (p != null) {<NEW_LINE>r.x = p.x;<NEW_LINE...
x * at.getScaleX());
186,560
protected SessionData load(InputStream is, String expectedId) throws Exception {<NEW_LINE>// the actual id from inside the file<NEW_LINE>String id;<NEW_LINE>try {<NEW_LINE>SessionData data;<NEW_LINE>DataInputStream di = new DataInputStream(is);<NEW_LINE>id = di.readUTF();<NEW_LINE>final String contextPath = di.readUTF(...
SessionData.deserializeAttributes(data, ois);
1,745,073
public ScoredDocuments rerank(ScoredDocuments docs, RerankerContext context) {<NEW_LINE>// set similarity to BM25PRF<NEW_LINE>IndexSearcher searcher = context.getIndexSearcher();<NEW_LINE>BM25Similarity originalSimilarity = (BM25Similarity) searcher.getSimilarity();<NEW_LINE>searcher.setSimilarity(new BM25PrfSimilarity...
.toString(this.field));
354,184
private TermValueSetConcept saveConcept(String theSystem, String theCode, String theDisplay, Long theSourceConceptPid, String theSourceConceptDirectParentPids, String theSystemVersion) {<NEW_LINE>ValidateUtil.isNotBlankOrThrowInvalidRequest(theSystem, "ValueSet contains a concept with no system value");<NEW_LINE>Valida...
.substring(versionIndex + 1));
96,913
public static void onKeyInput(int key, boolean pressed) {<NEW_LINE>if (key != AllKeys.TOOLBELT.getBoundCode())<NEW_LINE>return;<NEW_LINE>if (COOLDOWN > 0)<NEW_LINE>return;<NEW_LINE>LocalPlayer player = Minecraft.getInstance().player;<NEW_LINE>if (player == null)<NEW_LINE>return;<NEW_LINE>Level level = player.level;<NEW...
blockEntity = level.getBlockEntity(pos);
988,378
public Object execute(Value... arguments) {<NEW_LINE>Object[] parameters = Arrays.stream(arguments).map(a -> PolyglotWrapper.unwrap(actionContext, a)).toArray();<NEW_LINE>if (parameters.length == 2) {<NEW_LINE>final SecurityContext initialSecurityContext = actionContext.getSecurityContext();<NEW_LINE>try {<NEW_LINE>fin...
= (Principal) parameters[0];
1,022,219
public static DescribeMigrateTasksForSQLServerResponse unmarshall(DescribeMigrateTasksForSQLServerResponse describeMigrateTasksForSQLServerResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeMigrateTasksForSQLServerResponse.setRequestId(_ctx.stringValue("DescribeMigrateTasksForSQLServerResponse.RequestId"));<NEW_LIN...
(_ctx.integerValue("DescribeMigrateTasksForSQLServerResponse.PageNumber"));
375,150
private void probe() {<NEW_LINE>// First get a sorted list of discovery service nodes that are not present in the SWIM members.<NEW_LINE>// This is necessary to ensure we attempt to probe all nodes that are provided by the discovery<NEW_LINE>// provider.<NEW_LINE>final List<SwimMember> probeMembers = discoveryService.g...
LOGGER.trace("Possible members to probe '{}'", probeMembers);
1,754,505
public static void verifyAuthInfo(AuthInfo authInfo, DomainBase domain) throws EppException {<NEW_LINE>final String authRepoId = authInfo.getPw().getRepoId();<NEW_LINE>String authPassword = authInfo.getPw().getValue();<NEW_LINE>if (authRepoId == null) {<NEW_LINE>// If no roid is specified, check the password against th...
.getPw().getValue();
1,774,757
private DefaultActionGroup createPopupActionGroup() {<NEW_LINE>final LayoutTree tree = myLayoutTreeComponent.getLayoutTree();<NEW_LINE>DefaultActionGroup popupActionGroup = new DefaultActionGroup();<NEW_LINE><MASK><NEW_LINE>final RemovePackagingElementAction removeAction = new RemovePackagingElementAction(this);<NEW_LI...
popupActionGroup.add(createAddGroup());
468,041
public EVD eigen(boolean vl, boolean vr, boolean overwrite) {<NEW_LINE>if (m != n) {<NEW_LINE>throw new IllegalArgumentException(String.format("The matrix is not square: %d x %d", m, n));<NEW_LINE>}<NEW_LINE>BigMatrix eig = overwrite ? this : clone();<NEW_LINE>if (isSymmetric()) {<NEW_LINE>DoublePointer w = new DoubleP...
DoublePointer wr = new DoublePointer(n);
259,761
public void fillCustomActions(IContributionManager contributionManager) {<NEW_LINE>super.fillCustomActions(contributionManager);<NEW_LINE>addAction = new Action("Add variable", DBeaverIcons.getImageDescriptor(UIIcon.ADD)) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>AssignVariableAction action =...
mainEditor, varsList).run();
161,235
final PutInsightSelectorsResult executePutInsightSelectors(PutInsightSelectorsRequest putInsightSelectorsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putInsightSelectorsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
(super.beforeMarshalling(putInsightSelectorsRequest));
624,432
public void readFLongArr(int len, long[] arr) throws IOException {<NEW_LINE>int bytelen = arr.length * 8;<NEW_LINE>ensureReadAhead(bytelen);<NEW_LINE>int count = input.pos;<NEW_LINE>final byte[] buf = input.buf;<NEW_LINE>for (int j = 0; j < len; j++) {<NEW_LINE>long ch8 = (buf[count++] + 256) & 0xff;<NEW_LINE>long ch7 ...
count++] + 256) & 0xff;
836,800
private static void testHttpClientsIsOk() {<NEW_LINE>TestMgr.check(HttpClients.getClient("registry") != null, true);<NEW_LINE>TestMgr.check(HttpClients.getClient("registry-watch") != null, false);<NEW_LINE>TestMgr.check(HttpClients.getClient<MASK><NEW_LINE>TestMgr.check(HttpClients.getClient("http-transport-client") !=...
("config-center") != null, false);
1,531,420
BoundedState pick() {<NEW_LINE>for (; ; ) {<NEW_LINE>int a = get();<NEW_LINE>if (a == DISPOSED || busyArray == ALL_SHUTDOWN) {<NEW_LINE>// synonym for shutdown, since the underlying executor is shut down<NEW_LINE>return CREATING;<NEW_LINE>}<NEW_LINE>if (!idleQueue.isEmpty()) {<NEW_LINE>// try to find an idle resource<N...
BoundedState bs = idleQueue.pollLast();
1,209,656
public void onProjectsLinked(@Nonnull final Collection linked) {<NEW_LINE>List<VcsDirectoryMapping> newMappings = ContainerUtilRt.newArrayList();<NEW_LINE>final LocalFileSystem fileSystem = LocalFileSystem.getInstance();<NEW_LINE>ProjectLevelVcsManager vcsManager = ProjectLevelVcsManager.getInstance(project);<NEW_LINE>...
> oldMappings = vcsManager.getDirectoryMappings();
448,265
private boolean updateJobExecutionEventFailure(final JobExecutionEvent jobExecutionEvent) {<NEW_LINE>boolean result = false;<NEW_LINE>try (Connection connection = dataSource.getConnection();<NEW_LINE>PreparedStatement preparedStatement = connection.prepareStatement(sqlMapper.getUpdateForJobExecutionLogForFailure())) {<...
1, jobExecutionEvent.isSuccess());
510,406
public static void loadConfig() {<NEW_LINE>File coreFile = new File(EnderIO.getConfigHandler().getConfigDirectory(), CORE_FILE_NAME);<NEW_LINE>String defaultVals = null;<NEW_LINE>try {<NEW_LINE>defaultVals = RecipeConfig.readRecipes(coreFile, CORE_FILE_NAME, true);<NEW_LINE>} catch (IOException e) {<NEW_LINE>Log.error(...
error("Could not load default lists from " + coreFile + " as the file does not exist.");
1,624,420
private void add(Point point) throws IllegalStateException {<NEW_LINE>checkState(!_done, "Computation of spherical excess is complete");<NEW_LINE>double phi = toRadians(point.getY());<NEW_LINE>double tan = Math.tan(phi / 2);<NEW_LINE>double longitude = toRadians(point.getX());<NEW_LINE>// We need to check for that spec...
* cos - _previousCos * sin * cosOfDeltaLongitude;
800,500
public void visit(ClassInstanceCreation node) {<NEW_LINE>if (CancelSupport.getDefault().isCancelled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ASTNodeInfo<ClassInstanceCreation> <MASK><NEW_LINE>int startOffset = node.getStartOffset();<NEW_LINE>VariableScope variableScope = model.getVariableScope(startOffset);<NEW_LINE>Q...
info = ASTNodeInfo.create(node);
1,598,370
// -------------------------------------------------------------------------<NEW_LINE>@Override<NEW_LINE>public FunctionRequirements requirements(T target, Set<Measure> measures, CalculationParameters parameters, ReferenceData refData) {<NEW_LINE>// extract data from product<NEW_LINE><MASK><NEW_LINE>BondFuture future =...
BondFutureOption option = target.getProduct();
1,372,582
protected ECCurve createCurve() {<NEW_LINE>BigInteger mod_p = fromHex("8000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000006F");<NEW_LINE>BigInteger mod_q = fromHex("800000000000000000000000000000000000000000000000000000000000000149A1EC142565A545...
, ECConstants.ONE, true));
1,258,791
public void write(org.apache.thrift.protocol.TProtocol prot, TRange struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet optionals = new java.util.BitSet();<NEW_LINE>if (struct.isSetStart()) {...
struct.stop.write(oprot);
231,679
static List<Element> findSubElements(Element parent) throws IllegalArgumentException {<NEW_LINE>NodeList l = parent.getChildNodes();<NEW_LINE>List<Element> elements = new ArrayList<>(l.getLength());<NEW_LINE>for (int i = 0; i < l.getLength(); i++) {<NEW_LINE>Node n = l.item(i);<NEW_LINE>if (n.getNodeType() == Node.ELEM...
Text) n).getNodeValue();
297,659
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.impetus.kundera.query.QueryImpl#populateEntities(com.impetus.kundera<NEW_LINE>* .metadata.model.EntityMetadata, com.impetus.kundera.client.Client)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected List<Object> populateEntities(EntityMetadata m, Clien...
getMetamodel(m.getPersistenceUnit());
1,023,573
public static Object toJavaType(BsonValue value) {<NEW_LINE>switch(value.getBsonType()) {<NEW_LINE>case INT32:<NEW_LINE>return value.asInt32().getValue();<NEW_LINE>case INT64:<NEW_LINE>return value.asInt64().getValue();<NEW_LINE>case STRING:<NEW_LINE>return value.asString().getValue();<NEW_LINE>case DECIMAL128:<NEW_LIN...
asDBPointer().getId());
1,016,428
public boolean onTouchEvent(TextView widget, Spannable spannable, MotionEvent event) {<NEW_LINE>int action = event.getAction();<NEW_LINE>if (action == MotionEvent.ACTION_UP || action == MotionEvent.ACTION_DOWN) {<NEW_LINE>int x = (int) event.getX();<NEW_LINE>int y = (int) event.getY();<NEW_LINE>x -= widget.getTotalPadd...
layout.getOffsetForHorizontal(line, x);
558,091
public void execute(EditorAdaptor editorAdaptor) throws CommandExecutionException {<NEW_LINE>UserInterfaceService interfaceService = editorAdaptor.getUserInterfaceService();<NEW_LINE>IWorkbenchPartSite site = getEditorSite();<NEW_LINE>EPartService psvc = (EPartService) site.getService(EPartService.class);<NEW_LINE>MPar...
psvc.activate(p, true);
838,210
public void reload() {<NEW_LINE>// remove deleting clients.<NEW_LINE>deletingClients.forEach(client -> {<NEW_LINE>try {<NEW_LINE>client.close();<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>LOG.error("close client failed, got InterruptedException" + e.getMessage(), e);<NEW_LINE>} catch (ProducerException e) {<N...
this.sortTaskConfig.getSinkParams());
472,440
private static List<Gauge> addCounterSuffixesIfAndWhereNeeded(List<Gauge> gauges) {<NEW_LINE>Set<String> nonCounterGaugeNames = Sets.newHashSet();<NEW_LINE>for (Gauge gauge : gauges) {<NEW_LINE>if (!gauge.counter()) {<NEW_LINE>nonCounterGaugeNames.add(gauge.name());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>List<Gauge> updatedGau...
(displayParts).build());
238,417
protected void checkType(_Fields setField, Object value) throws ClassCastException {<NEW_LINE>switch(setField) {<NEW_LINE>case FIELDS:<NEW_LINE>if (value instanceof List) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>throw new ClassCastException("Was expecting value of type List<String> for field 'fields', but got " + value.ge...
getClass().getSimpleName());
492,172
final SearchSkillGroupsResult executeSearchSkillGroups(SearchSkillGroupsRequest searchSkillGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(searchSkillGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
(super.beforeMarshalling(searchSkillGroupsRequest));
1,215,284
protected ProcessInstanceBatchMigrationPartResult convertFromBatchPart(BatchPart batchPart, ObjectMapper objectMapper) {<NEW_LINE>ProcessInstanceBatchMigrationPartResult partResult = new ProcessInstanceBatchMigrationPartResult();<NEW_LINE>partResult.setBatchId(batchPart.getId());<NEW_LINE>partResult.setProcessInstanceI...
partResult.setStatus(ProcessInstanceBatchMigrationResult.STATUS_COMPLETED);
360,461
public static BufferedImage renderLimit(GrayF32 intensity, SelectLimitTypes type) {<NEW_LINE>// Configure how it will select features inside the intensity image<NEW_LINE>var limit = new ConfigSelectLimit(type, 0xBEEF);<NEW_LINE>NonMaxLimiter nonmax = FactoryFeatureExtractor.nonmaxLimiter(new ConfigExtract(NON_MAX_RADIU...
c = features.get(i);
680,821
private // <String, Sequence<String>><NEW_LINE>void // <String, Sequence<String>><NEW_LINE>parseManagedDirectories(Map<String, ?> managedDirectories) throws EvalException {<NEW_LINE>Map<PathFragment, String> nonNormalizedPathsMap = Maps.newHashMap();<NEW_LINE>for (Map.Entry<String, ?> entry : managedDirectories.entrySe...
ceilingKey = managedDirectoriesMap.ceilingKey(dir);
1,064,696
public <B extends Buffer> B createBuffer(long index) {<NEW_LINE>BytePointer ptr = tensor_data();<NEW_LINE>long size = TotalBytes();<NEW_LINE>switch(dtype()) {<NEW_LINE>case DT_COMPLEX64:<NEW_LINE>case DT_FLOAT:<NEW_LINE>return (B) new FloatPointer(ptr).position(index).capacity(size / 4).asBuffer();<NEW_LINE>case DT_DOU...
size / 2).asBuffer();
612,650
private int writeIndirectArrayLayout(DebugContext context, ArrayTypeEntry arrayTypeEntry, int size, int layoutOffset, byte[] buffer, int p) {<NEW_LINE>int pos = p;<NEW_LINE>log(context, " [0x%08x] indirect class layout", pos);<NEW_LINE>int abbrevCode = DwarfDebugInfo.DW_ABBREV_CODE_indirect_layout;<NEW_LINE>log(contex...
layoutOffset, name, buffer, pos);
1,284,344
public BinaryColumnStatisticsData unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>BinaryColumnStatisticsData binaryColumnStatisticsData = new BinaryColumnStatisticsData();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentEleme...
class).unmarshall(context));
1,396,396
public Collection<PluginGroupsFilter> processResults(ResultSet set) throws SQLException {<NEW_LINE>Map<ProviderIdentifier, List<String>> byProvider = new HashMap<>();<NEW_LINE>while (set.next()) {<NEW_LINE>String plugin = set.getString("plugin_name");<NEW_LINE>String provider = set.getString("provider_name");<NEW_LINE>...
(set.getString("server_uuid"));
1,067,361
private void correctAfterRotation() throws Exception {<NEW_LINE>Log.d(TAG, "correctAfterRotation");<NEW_LINE>canvas.waitUntilInflated();<NEW_LINE>// Its quite common to see NullPointerExceptions here when this function is called<NEW_LINE>// at the point of disconnection. Hence, we catch and ignore the error.<NEW_LINE>f...
canvasZoomer.setScaleTypeForActivity(RemoteCanvasActivity.this);
896,153
private void upgrade(Channel channel, NettyResponseFuture<?> future, WebSocketUpgradeHandler handler, HttpResponse response, HttpHeaders responseHeaders) throws Exception {<NEW_LINE>boolean validStatus = response.status().equals(SWITCHING_PROTOCOLS);<NEW_LINE>boolean validUpgrade = response.headers(<MASK><NEW_LINE>Stri...
).get(UPGRADE) != null;
70,286
public void run() {<NEW_LINE>if (isCancelled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>progressMonitor.setIndeterminate(true);<NEW_LINE>progressMonitor.setProgress(0);<NEW_LINE>List<Content> dataSources = new ArrayList<>();<NEW_LINE>List<String> errorMessages = new ArrayList<>();<NEW_LINE>boolean criticalErrorOccurred = ...
done(result, errorMessages, dataSources);
1,673,519
private void deleteParagraphCheck() {<NEW_LINE><MASK><NEW_LINE>// Was the deleted paragraph in the viewport ?<NEW_LINE>if (p >= area.firstVisibleParToAllParIndex() && p <= area.lastVisibleParToAllParIndex()) {<NEW_LINE>int col = area.getCaretColumn();<NEW_LINE>// Delete was pressed on an empty paragraph, and so the cur...
int p = area.getCurrentParagraph();
813,054
public static FileCollection generatePathingJar(final Project project, final String taskName, final FileCollection classpath, boolean alwaysUsePathingJar) throws IOException {<NEW_LINE>// There is a bug in the Scala nsc compiler that does not parse the dependencies of JARs in the JAR manifest<NEW_LINE>// As such, we di...
destinationDir, filteredClasspath.getFiles());
1,625,175
final CreateLicenseVersionResult executeCreateLicenseVersion(CreateLicenseVersionRequest createLicenseVersionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createLicenseVersionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,183,866
private void parseSerializationDescriptorObject(Map<String, Object> data, boolean lambdaCapturingType) {<NEW_LINE>if (lambdaCapturingType) {<NEW_LINE>checkAttributes(data, "serialization descriptor object", Collections.singleton(NAME_KEY), Collections.singleton(CONDITIONAL_KEY));<NEW_LINE>} else {<NEW_LINE>checkAttribu...
null ? asString(optionalCustomCtorValue) : null;
1,508,323
public static void main(String[] args) throws Exception {<NEW_LINE>GImageFormat format = GImageFormat.GRAY_ALPHA_2BYTE;<NEW_LINE>String img = "~/Mobile_Devices/images/apple_logo_line_1.PNG";<NEW_LINE>String raw = "~/Mobile_Devices/images/apple_logo_line_1.RAW";<NEW_LINE>File imageFile = new File(img);<NEW_LINE>GImageCo...
OutputStream rawOUT = new FileOutputStream(raw);
1,391,924
protected void configure() {<NEW_LINE>bind(ManufOrderRepository.class).to(ManufOrderManagementRepository.class);<NEW_LINE>bind(OperationOrderRepository.class).to(OperationOrderManagementRepository.class);<NEW_LINE>bind(ProductionOrderService.class).to(ProductionOrderServiceImpl.class);<NEW_LINE>bind(BillOfMaterialServi...
).to(ProductionOrderServiceImpl.class);
963,824
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') select window(id) as ids from SupportEventWithLongArray#groupwin(coll)#lastevent";<NEW_LINE>env.compileDeploy(epl).addListener("s0");<NEW_LINE>sendAssertLongArrayIdWindow(env, "E1", new long[] { 1, 2 }, "E1");<NEW_LINE>sendAssertLongArrayId...
[] { 1 }, "E1,E2");
1,262,735
public void save(@NonNull final SecurPharmProduct product) {<NEW_LINE>I_M_Securpharm_Productdata_Result record = null;<NEW_LINE>if (product.getId() != null) {<NEW_LINE>record = load(product.getId(), I_M_Securpharm_Productdata_Result.class);<NEW_LINE>}<NEW_LINE>if (record == null) {<NEW_LINE>record = newInstance(I_M_Sec...
productDetails.getSerialNumber() : null);
586,969
static org.batfish.datamodel.eigrp.EigrpProcess toEigrpProcess(EigrpProcess proc, String vrfName, Configuration c, CiscoConfiguration oldConfig) {<NEW_LINE>org.batfish.datamodel.eigrp.EigrpProcess.Builder newProcess = org.batfish.datamodel.eigrp.EigrpProcess.builder();<NEW_LINE>if (proc.getAsn() == null) {<NEW_LINE>old...
+ proc.getAsn() + "~";
654,372
private void heartBeat() {<NEW_LINE>RequestHeader header = EventMeshClientUtil.buildHeader(clientConfig, EventMeshCommon.EM_MESSAGE_PROTOCOL_NAME);<NEW_LINE>scheduler.scheduleAtFixedRate(() -> {<NEW_LINE>if (subscriptionMap.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Heartbeat.Builder heartbeatBuilder = Heartbeat...
"Error in sending out heartbeat. error {}", e.getMessage());
354,857
public void removeNodes(DeleteNodesRequest body, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling removeNodes"...
localVarAccept, localVarContentType, localVarAuthNames, null);
970,396
public final Condition equal(T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9, T10 t10, T11 t11, T12 t12, T13 t13, T14 t14, T15 t15, T16 t16, T17 t17, T18 t18, T19 t19, T20 t20, T21 t21, T22 t22) {<NEW_LINE>return compare(Comparator.EQUALS, t1, t2, t3, t4, t5, t6, t7, t8, t9, t10, t11, t12, t13, t14, t15, ...
t19, t20, t21, t22);
810,353
public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {<NEW_LINE>// Do not continue if proxy was released.<NEW_LINE>if (this.proxy == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Create date object from selected hour and minute values.<NEW_LINE><MASK><NEW_LINE>calendar.set(Calendar.HOUR_OF_DAY, hourO...
Calendar calendar = Calendar.getInstance();
924,929
private void populateFromSketch(final float[] srcItems, final int[] srcLevels, final int numLevels, final int numItems) {<NEW_LINE>final int offset = srcLevels[0];<NEW_LINE>System.arraycopy(srcItems, offset, items_, 0, numItems);<NEW_LINE>int srcLevel = 0;<NEW_LINE>int dstLevel = 0;<NEW_LINE>long weight = 1;<NEW_LINE>w...
weights_, fromIndex, toIndex, weight);
27,326
protected void mergeChilds(ConfigurationChanges diffs, Device prev, Device device, String deviceDN) throws NamingException {<NEW_LINE>AuditLoggerDeviceExtension prevAuditLoggerExt = <MASK><NEW_LINE>AuditLoggerDeviceExtension auditLoggerExt = device.getDeviceExtension(AuditLoggerDeviceExtension.class);<NEW_LINE>if (prev...
prev.getDeviceExtension(AuditLoggerDeviceExtension.class);
546,598
private // Note that the keys stored in the BatchHolders are not moved around.<NEW_LINE>void resizeAndRehashIfNeeded() {<NEW_LINE>if (numEntries < threshold) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (EXTRA_DEBUG) {<NEW_LINE>logger.debug("Hash table numEntries = {}, threshold = {}; resizing the table...", numEntries, t...
+= System.currentTimeMillis() - t0;
777,319
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {<NEW_LINE>final boolean portrait = AndroidUiHelper.isOrientationPortrait(getActivity());<NEW_LINE>View mainView = inflate(R.layout.fragment_wikivoyage_welcome_dialog, container);<NEW_LINE>Draw...
findViewById(R.id.main_image);
1,082,691
public static Query<Long> averagePlaytimePerPlayer(long after, long before) {<NEW_LINE>return database -> {<NEW_LINE>String selectPlaytimePerPlayer = SELECT + SessionsTable.USER_UUID + "," + "SUM(" + SessionsTable.SESSION_END + '-' + SessionsTable.SESSION_START + ") as playtime" + FROM + SessionsTable.TABLE_NAME + WHER...
+ ">=?" + GROUP_BY + SessionsTable.USER_UUID;
867,312
private static int iterateToFixedPoint(List<InstructionBlock> blocks, int frameSize, BlockInfo[] blockInfos, ArrayList<InstructionBlock>[] predecessors) {<NEW_LINE>// by processing the graph bottom-up, we may reach a fixed point more quickly<NEW_LINE>ArrayDeque<InstructionBlock> workList = new ArrayDeque<>(blocks);<NEW...
newPredecessorOut.or(predecessorBlockInfo.phiUses);
1,384,802
// Since our TileEntity implements ITickableTileEntity, we get an update method which is called once per tick (20 times / second)<NEW_LINE>// When the timer elapses, replace our block with a random one.<NEW_LINE>@Override<NEW_LINE>public void tick() {<NEW_LINE>// prevent crash<NEW_LINE>if (!this.hasWorld())<NEW_LINE>re...
blockSapling.getDefaultState(), random);
1,742,682
public void afterOpcode(int seen) {<NEW_LINE>super.afterOpcode(seen);<NEW_LINE>if (seen == Const.INVOKEINTERFACE || seen == Const.INVOKEVIRTUAL) {<NEW_LINE>if (fieldUnderClone != null) {<NEW_LINE>arrayFieldClones.put(stack.getStackItem(0), fieldUnderClone);<NEW_LINE>}<NEW_LINE>if (paramUnderClone != null) {<NEW_LINE>ar...
arrayParamClones.put(item, paramCloneUnderCast);
1,615,459
public Result visit(Sort e) {<NEW_LINE>if (e.getInput() instanceof Aggregate) {<NEW_LINE>final Aggregate aggregate = (Aggregate) e.getInput();<NEW_LINE>if (hasTrickyRollup(e, aggregate)) {<NEW_LINE>// MySQL 5 does not support standard "GROUP BY ROLLUP(x, y)", only<NEW_LINE>// the non-standard "GROUP BY x, y WITH ROLLUP...
> orderByList = Expressions.list();
982,286
final DescribeTrafficMirrorTargetsResult executeDescribeTrafficMirrorTargets(DescribeTrafficMirrorTargetsRequest describeTrafficMirrorTargetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTrafficMirrorTargetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
(super.beforeMarshalling(describeTrafficMirrorTargetsRequest));
393,652
public MessageHandler messageReceiver() {<NEW_LINE>return message -> {<NEW_LINE>LOGGER.info("Message arrived! Payload: " + message.getPayload());<NEW_LINE>DfdlDef dfdlDef;<NEW_LINE>try {<NEW_LINE>// Get DFDL Definition Getting from Firestore.<NEW_LINE>dfdlDef = firestoreService.getDfdlDef(dfdlDefName);<NEW_LINE>System....
message.getPayload(), dfdlDef);
699,256
final DescribeContinuousExportsResult executeDescribeContinuousExports(DescribeContinuousExportsRequest describeContinuousExportsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeContinuousExportsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,855,085
public static void rotateCCW(GrayF64 image) {<NEW_LINE>if (image.width != image.height)<NEW_LINE>throw new IllegalArgumentException("Image must be square");<NEW_LINE>int w = image.height / 2 + image.height % 2;<NEW_LINE>int h = image.height / 2;<NEW_LINE>// CONCURRENT_BELOW BoofConcurrency.loopFor(0, h, y0->{<NEW_LINE>...
] = image.data[index1];
1,729,805
public static void callRunnableInitInvoked(Object callRunnableObj, boolean addStepToCtx, boolean isIgnoreIfNoThreaded) {<NEW_LINE>try {<NEW_LINE>TraceContext ctx = TraceContextManager.getContext(true);<NEW_LINE>if (ctx == null)<NEW_LINE>return;<NEW_LINE>if (TransferMap.get(System.identityHashCode(callRunnableObj)) != n...
ctx.profile.add(threadCallPossibleStep);
1,032,895
private List<OperationExt> kotlinRunApp(ParserContext ctx, String prefix, MethodInsnNode node) {<NEW_LINE>List<OperationExt> <MASK><NEW_LINE>Type type = null;<NEW_LINE>for (AbstractInsnNode it : InsnSupport.prev(node).collect(Collectors.toList())) {<NEW_LINE>if (it instanceof FieldInsnNode) {<NEW_LINE>FieldInsnNode get...
handlerList = new ArrayList<>();
1,567,525
final AssociateCustomerGatewayResult executeAssociateCustomerGateway(AssociateCustomerGatewayRequest associateCustomerGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateCustomerGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,743,443
private byte[] generateKey(KeyDerivationFunc pbkdAlgorithm, String purpose, char[] password) throws IOException {<NEW_LINE>byte[] encPassword = PBEParametersGenerator.PKCS12PasswordToBytes(password);<NEW_LINE>byte[] differentiator = PBEParametersGenerator.PKCS12PasswordToBytes(purpose.toCharArray());<NEW_LINE>int keySi...
.getKeyLength().intValue();
548,197
public void initialize() {<NEW_LINE>createListener();<NEW_LINE>final Tuple3<VBox, Label, AutocompleteComboBox<CurrencyListItem>> currencyComboBoxTuple = addTopLabelAutocompleteComboBox(Res.get("shared.currency"), 0);<NEW_LINE>this.currencyComboBox = currencyComboBoxTuple.third;<NEW_LINE>this.currencyComboBox.setCellFac...
, 0, 5, 0));
1,371,876
private Map.Entry<Map<Method, String>, Map<WrappedMethod, Method>> tryGetMethods(Class<?> cl) {<NEW_LINE>try {<NEW_LINE>Map<Method, String> names = new HashMap<>();<NEW_LINE>Map<WrappedMethod, Method> types = new HashMap<>();<NEW_LINE>for (Method method : cl.getMethods()) {<NEW_LINE>checkMethodTypes(method);<NEW_LINE>S...
types.put(wrapped, method);
1,547,153
final DBInstance executeStopDBInstance(StopDBInstanceRequest stopDBInstanceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopDBInstanceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,387,823
public String generateTable(Map<String, DataType> schema) {<NEW_LINE>// Generate table name<NEW_LINE>String generateUniqueId = new ObjectId().toString().toUpperCase();<NEW_LINE>// Appending tbl_ before the generated unique id since using the string directly was throwing a SQL error<NEW_LINE>// which I couldnt solve. Ju...
sqlDataType = SQL_DATATYPE_MAP.get(dataType);
1,430,624
private static void dumpRow(PrintData pd, int row) {<NEW_LINE>log.info("Row #" + row);<NEW_LINE>if (row < 0 || row >= pd.getRowCount()) {<NEW_LINE>log.warn("- invalid -");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>pd.setRowIndex(row);<NEW_LINE>if (pd.getNodeCount() == 0) {<NEW_LINE>log.info("- n/a -");<NEW_LINE>return;<NEW_...
obj = pd.getNode(i);
1,227,449
/*<NEW_LINE>* the methods documentIndexRequest, bulkIndexOperation and bulkCreateOperation have nearly<NEW_LINE>* identical code, but the client builders do not have a common accessible base or some reusable parts<NEW_LINE>* so the code needs to be duplicated.<NEW_LINE>*/<NEW_LINE>@SuppressWarnings("DuplicatedCode")<NE...
query.getId() + ']');
1,008,548
final ListIdentityPoolUsageResult executeListIdentityPoolUsage(ListIdentityPoolUsageRequest listIdentityPoolUsageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listIdentityPoolUsageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,332,409
private void addPdfToZip(Event event, ZipOutputStream zipOS, TicketReservation reservation, BillingDocument document) {<NEW_LINE>Map<String, Object> reservationModel = document.getModel();<NEW_LINE>Optional<byte[]> pdf;<NEW_LINE>var language = LocaleUtil.forLanguageTag(reservation.getUserLanguage());<NEW_LINE>switch(do...
language, templateManager, reservationModel, extensionManager);
394,307
private static void comparePlan(String[] expectedCSV) {<NEW_LINE>GroupByRollupPlanDesc plan = SupportGroupRollupPlanHook.getPlan();<NEW_LINE>AggregationGroupByRollupLevelForge[] levels = plan.getRollupDesc().getLevels();<NEW_LINE>String[][] received = new String[levels.length][];<NEW_LINE>for (int i = 0; i < levels.len...
, expectedCSV[i], receivedCSV);
1,591,283
public static CompletionCandidate[] checkForTypes(ASTNode node) {<NEW_LINE>List<VariableDeclarationFragment> vdfs = null;<NEW_LINE>switch(node.getNodeType()) {<NEW_LINE>case ASTNode.TYPE_DECLARATION:<NEW_LINE>return new CompletionCandidate[] { new CompletionCandidate((TypeDeclaration) node) };<NEW_LINE>case ASTNode.MET...
CompletionCandidate[vdfs.size()];
1,602,006
private <T> Future<T> doExecuteAsync(String userAgent, Map<String, String> headers, Verb httpVerb, String completeUrl, BodySetter bodySetter, Object bodyContents, OAuthAsyncRequestCallback<T> callback, OAuthRequest.ResponseConverter<T> converter) {<NEW_LINE>final AsyncHttpClient.BoundRequestBuilder boundRequestBuilder;...
boundRequestBuilder = client.prepareGet(completeUrl);
1,534,468
public void progressEvent(String taskId, String statusMsg) {<NEW_LINE>STS4LanguageClient client = SimpleLanguageServer.this.client;<NEW_LINE>if (client != null) {<NEW_LINE>if (statusMsg == null) {<NEW_LINE>progressDone(taskId);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>boolean isNew = activeTaskIDs.put(taskId, true) == null...
(Either.forLeft(report));
75,886
private void registerClassedJob(final String jobName, final String jobBootstrapBeanName, final SingletonBeanRegistry singletonBeanRegistry, final CoordinatorRegistryCenter registryCenter, final TracingConfiguration<?> tracingConfig, final ElasticJobConfigurationProperties jobConfigurationProperties) {<NEW_LINE>JobConfi...
getBean(jobConfigurationProperties.getElasticJobClass());
1,076,627
public void start() throws Exception {<NEW_LINE>LOG.info("Process starting.");<NEW_LINE>mRunning = true;<NEW_LINE>startCommonServices();<NEW_LINE>mJournalSystem.start();<NEW_LINE>startMasters(false);<NEW_LINE>startJvmMonitorProcess();<NEW_LINE>// Perform the initial catchup before joining leader election,<NEW_LINE>// t...
mLeaderSelector.waitForState(State.PRIMARY);
1,632,718
public Pair<Long, Object> peekNextNotNullValue(long nextStartTime, long nextEndTime) throws IOException {<NEW_LINE>ByteBuffer aggrBuffer;<NEW_LINE>try {<NEW_LINE>if (ClusterDescriptor.getInstance().getConfig().isUseAsyncServer()) {<NEW_LINE>AsyncDataClient client = ClusterIoTDB.getInstance().getAsyncDataClient(source, ...
.currentThread().interrupt();
388,553
public void execute(ProcessEngine engine, String scenarioName) {<NEW_LINE>String sourceProcessDefinitionId = engine.getRepositoryService().createDeployment().addClasspathResource("org/camunda/bpm/qa/upgrade/gson/oneTaskProcessMigrationV1.bpmn20.xml").deployWithResult().getDeployedProcessDefinitions().get(0).getId();<NE...
"MigrationBatchScenario.batchId", batch.getId());
880,061
public static <Strategy extends ColumnSelectorStrategy> ColumnSelectorPlus<Strategy>[] createColumnSelectorPluses(ColumnSelectorStrategyFactory<Strategy> strategyFactory, List<DimensionSpec> dimensionSpecs, ColumnSelectorFactory columnSelectorFactory) {<NEW_LINE>int dimCount = dimensionSpecs.size();<NEW_LINE>@SuppressW...
getOutputName(), strategy, selector);
37,275
final AssociateAssessmentReportEvidenceFolderResult executeAssociateAssessmentReportEvidenceFolder(AssociateAssessmentReportEvidenceFolderRequest associateAssessmentReportEvidenceFolderRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(associateAssessmentReportEvidenceFolderRequest);<NEW_LIN...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
210,439
public void sendRequestToServiceUsingEureka(EurekaClient eurekaClient) {<NEW_LINE>// initialize the client<NEW_LINE>// this is the vip address for the example service to talk to as defined in conf/sample-eureka-service.properties<NEW_LINE>String vipAddress = "sampleservice.mydomain.net";<NEW_LINE>InstanceInfo nextServe...
System.out.println("Waiting for server response..");
699,306
public PCollection<Row> expand(PCollection<Row> input) {<NEW_LINE>return input.apply("join_as_lookup", ParDo.of(new DoFn<Row, Row>() {<NEW_LINE><NEW_LINE>@Setup<NEW_LINE>public void setup() {<NEW_LINE>seekableTable.setUp();<NEW_LINE>}<NEW_LINE><NEW_LINE>@ProcessElement<NEW_LINE>public void processElement(ProcessContext...
, factColOffset != 0, outputSchema));
97,742
private void flushConfig() {<NEW_LINE>File configFile = DBWorkbench.getPlatform().getConfigurationFile(COLUMNS_CONFIG_FILE);<NEW_LINE>try (OutputStream out = new FileOutputStream(configFile)) {<NEW_LINE>XMLBuilder xml = new XMLBuilder(out, GeneralUtils.UTF8_ENCODING);<NEW_LINE>xml.setButify(true);<NEW_LINE>try (final X...
"id", tab.getKey());
320,571
public NinjaRule parseNinjaRule() throws GenericParsingException {<NEW_LINE>parseExpected(NinjaToken.RULE);<NEW_LINE>String name = asString(parseExpected(NinjaToken.IDENTIFIER));<NEW_LINE>parseAndIgnoreWhitespace();<NEW_LINE>ImmutableSortedMap.Builder<NinjaRuleVariable, NinjaVariableValue> variablesBuilder = ImmutableS...
ninjaRuleVariable = NinjaRuleVariable.nullOrValue(variableName);
748,418
default void validateTypeAndInterfaces(Object value, List<String> parentPath, String key, boolean strict) {<NEW_LINE>Class<?> cls = value.getClass();<NEW_LINE>if (!getType().isAssignableFrom(cls)) {<NEW_LINE>String path = key == null ? null : PathUtils.toString(PathUtils.extend(parentPath, key));<NEW_LINE>String msg = ...
+ getType() + " of schema " + this;
1,497,249
/*<NEW_LINE>* Enum type extensions have the potential to be invalid if incorrectly defined.<NEW_LINE>*<NEW_LINE>* The named type must already be defined and must be an Enum type.<NEW_LINE>* All values of an Enum type extension must be unique.<NEW_LINE>* All values of an Enum type extension must not already be a value o...
getName(), EnumTypeDefinition.class);
487,515
public DataPoint transform(DataPoint dp) {<NEW_LINE>Vec orig = dp.getNumericalValues();<NEW_LINE>final int nnz = orig.nnz();<NEW_LINE>if (// /make sparse<NEW_LINE>nnz / (double) orig.length() < factor) {<NEW_LINE>if (// already sparse, just return<NEW_LINE>orig.isSparse())<NEW_LINE>return dp;<NEW_LINE>// else, make spa...
, orig.get(i));
1,094,183
public SidewalkDevice unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SidewalkDevice sidewalkDevice = new SidewalkDevice();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
JsonToken token = context.getCurrentToken();
154,917
final GetDistributionMetricDataResult executeGetDistributionMetricData(GetDistributionMetricDataRequest getDistributionMetricDataRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDistributionMetricDataRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetDistributionMetricData");