idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
583,390
public void onRequestFinish(MegaApiJava api, MegaRequest request, MegaError error) {<NEW_LINE>logDebug("onRequestFinish");<NEW_LINE>if (request.getType() == MegaRequest.TYPE_LOGIN) {<NEW_LINE>if (error.getErrorCode() != MegaError.API_OK) {<NEW_LINE>logWarning("Login failed with error code: " + error.getErrorCode());<NE...
gSession, "", "", myUserHandle);
1,543,020
protected List<Element> expandDurationHM(Document doc, String s) {<NEW_LINE>ArrayList<Element> exp = new ArrayList<Element>();<NEW_LINE>Matcher reMatcher = reHourMinute.matcher(s);<NEW_LINE>reMatcher.find();<NEW_LINE>String hour = reMatcher.group(1);<NEW_LINE>String minute = reMatcher.group(2);<NEW_LINE>if (hour.equals...
(doc, minute, false));
606,451
public static ListRepositoryBranchesResponse unmarshall(ListRepositoryBranchesResponse listRepositoryBranchesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRepositoryBranchesResponse.setRequestId(_ctx.stringValue("ListRepositoryBranchesResponse.RequestId"));<NEW_LINE>listRepositoryBranchesResponse.setErrorCode(_ctx...
("ListRepositoryBranchesResponse.Result[" + i + "].ProtectedBranch"));
701,740
public void visitBinary(JCBinary tree) {<NEW_LINE>int ownprec = TreeInfo.opPrec(tree.getTag());<NEW_LINE>Name opname = operators.<MASK><NEW_LINE>int col = out.col;<NEW_LINE>printExpr(tree.lhs, ownprec);<NEW_LINE>if (cs.spaceAroundBinaryOps())<NEW_LINE>print(' ');<NEW_LINE>print(opname);<NEW_LINE>boolean needsSpace = cs...
operatorName(tree.getTag());
1,488,972
private void addDestroyChildNodesCommand(ICompositeCommand cmd) {<NEW_LINE>View view = (View) getHost().getModel();<NEW_LINE>for (Iterator nit = view.getChildren().iterator(); nit.hasNext(); ) {<NEW_LINE>Node node = <MASK><NEW_LINE>switch(OpenDDSDcpsLibVisualIDRegistry.getVisualID(node)) {<NEW_LINE>case DeadlineQosPoli...
(Node) nit.next();
1,846,701
public static void validateTransition(IndexMetadata idxMeta, Step.StepKey currentStepKey, Step.StepKey newStepKey, PolicyStepsRegistry stepRegistry) {<NEW_LINE>String indexName = idxMeta.getIndex().getName();<NEW_LINE>String policyName = idxMeta.getLifecyclePolicyName();<NEW_LINE>// policy could be updated in-between e...
IllegalArgumentException("index [" + indexName + "] is not associated with an Index Lifecycle Policy");
1,005,246
protected ClassVisitor createClassVisitor() {<NEW_LINE>return new ClassWriter(ClassWriter.COMPUTE_MAXS | ClassWriter.COMPUTE_FRAMES) {<NEW_LINE><NEW_LINE>private ClassNode getClassNode(String name) {<NEW_LINE>// try classes under compilation<NEW_LINE>CompileUnit cu = getAST();<NEW_LINE>ClassNode cn = cu.getClass(name);...
).replace('.', '/');
1,786,526
public List<BlockNode> prepareBlocks() {<NEW_LINE>removeEmptyBlocks();<NEW_LINE>List<BlockNode> blocksList = getSortedBlocks();<NEW_LINE>blocksList.removeIf(b -> b.equals(mth.getEnterBlock()) || b.equals(mth.getExitBlock()));<NEW_LINE>unbindExceptionHandlers();<NEW_LINE>if (blocksList.isEmpty()) {<NEW_LINE>return Colle...
int predsCount = preds.size();
522,440
public void onChildAdded(DataSnapshot _param1, String _param2) {<NEW_LINE>GenericTypeIndicator<HashMap<String, Object>> _ind = new GenericTypeIndicator<HashMap<String, Object>>() {<NEW_LINE>};<NEW_LINE>final String _childKey = _param1.getKey();<NEW_LINE>final HashMap<String, Object> _childValue = _param1.getValue(_ind)...
listdata = new ArrayList<>();
1,819,892
private void sendTextMessage(RoomMediaMessage sharedDataItem) {<NEW_LINE>final CharSequence sequence = sharedDataItem.getText();<NEW_LINE>String htmlText = sharedDataItem.getHtmlText();<NEW_LINE>// content only text -> insert it in the room editor<NEW_LINE>// to let the user decides to send the message<NEW_LINE>if (!Te...
fHtmlText, Message.FORMAT_MATRIX_HTML, false);
1,148,537
private Document layerDocument(Element... originatingElements) {<NEW_LINE>Filer filer = processingEnv.getFiler();<NEW_LINE>Collection<Element> originatingElementsL = originatingElementsByProcessor.get(filer);<NEW_LINE>if (originatingElementsL == null) {<NEW_LINE>originatingElementsL = new WeakSet<Element>();<NEW_LINE>o...
"filesystem", null, PUBLIC_DTD_ID, NETWORK_DTD_URL);
1,018,500
protected List<? extends JComponent> createPreviewElements() {<NEW_LINE>final JToggleButton basic = new JToggleButton("", true);<NEW_LINE>basic.putClientProperty(StyleId.STYLE_PROPERTY, getStyleId());<NEW_LINE>UILanguageManager.registerComponent(basic, getExampleLanguageKey("styled.text.basic"));<NEW_LINE>final JToggle...
StyleId.STYLE_PROPERTY, getStyleId());
665,751
private Problem extract(String problem) {<NEW_LINE>java.util.regex.Matcher matcher = CAUSE_PATTERN.matcher(problem);<NEW_LINE>String description;<NEW_LINE>List<String> causes = new ArrayList<>();<NEW_LINE>if (!matcher.find()) {<NEW_LINE>description = TextUtil.normaliseLineSeparators(problem.trim());<NEW_LINE>} else {<N...
return new Problem(description, causes);
688,355
public List<StandardServiceInitiator> initialInitiatorList() {<NEW_LINE>// Note to maintainers: always remember to check for consistency needs with both:<NEW_LINE>// io.quarkus.hibernate.orm.runtime.boot.registry.PreconfiguredServiceRegistryBuilder#buildQuarkusServiceInitiatorList(RecordedState)<NEW_LINE>// and Reactiv...
serviceInitiators.add(SessionFactoryServiceRegistryFactoryInitiator.INSTANCE);
595,820
public synchronized ObjectId rootTreeShaOf(Project project, String reference) {<NEW_LINE>try {<NEW_LINE>Repository repo = repositoryFor(project);<NEW_LINE>ObjectId treeSha = rootTreeShaCache.get(repo, reference);<NEW_LINE>if (treeSha == null) {<NEW_LINE>try (RevWalk revWalk = new RevWalk(repo)) {<NEW_LINE>ObjectId comm...
.resolve(Constants.HEAD));
182,645
public static LineString uncompactLineString(double xa, double ya, double xb, double yb, byte[] packedCoords, boolean reverse) {<NEW_LINE>int[] <MASK><NEW_LINE>int size = coords == null ? 2 : (coords.length / 2) + 2;<NEW_LINE>Coordinate[] c = new Coordinate[size];<NEW_LINE>double x0 = reverse ? xb : xa;<NEW_LINE>double...
coords = DlugoszVarLenIntPacker.unpack(packedCoords);
1,720,904
private Mono<Response<PartnerTopicInner>> createOrUpdateWithResponseAsync(String resourceGroupName, String partnerTopicName, PartnerTopicInner partnerTopicInfo, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint...
this.client.mergeContext(context);
911,000
public static void transformSq(final GrayF32 input, final GrayF64 transformed) {<NEW_LINE>int indexSrc = input.startIndex;<NEW_LINE>int indexDst = transformed.startIndex;<NEW_LINE>int end = indexSrc + input.width;<NEW_LINE>double total = 0;<NEW_LINE>for (; indexSrc < end; indexSrc++) {<NEW_LINE>float value = input.data...
.startIndex + transformed.stride * y;
878,606
private void createOfficeElements(GridBagConstraints cons, JPanel portPanel) {<NEW_LINE>JCheckBox useQueueResetbox = new JCheckBox(Tools.getLabel(messages.getString("guiUseTextLevelQueue")));<NEW_LINE>JCheckBox saveCacheBox = new JCheckBox(Tools.getLabel(messages.getString("guiSaveCacheToFile")));<NEW_LINE>addOfficeLan...
messages.getString("guiUseLtDictionary")));
1,485,888
protected void trainSequence(@NonNull Sequence<T> sequence, AtomicLong nextRandom, double alpha) {<NEW_LINE>if (sequence.getElements().isEmpty())<NEW_LINE>return;<NEW_LINE>if (trainElementsVectors && !(trainSequenceVectors && sequenceLearningAlgorithm instanceof DM)) {<NEW_LINE>// call for ElementsLearningAlgorithm<NEW...
(sequence, nextRandom, alpha));
346,494
protected void addGuiElements() {<NEW_LINE>super.addGuiElements();<NEW_LINE>addRenderableWidget(new GuiVerticalPowerBar(this, tile.getEnergyContainer(), 157, 23)).warning(WarningType.NOT_ENOUGH_ENERGY, tile.getWarningCheck(RecipeError.NOT_ENOUGH_ENERGY));<NEW_LINE>addRenderableWidget(new GuiEnergyTab(this, tile.getEner...
, 13).setRenderAboveSlots());
788,059
public void updateToolbar(TopToolbarView view) {<NEW_LINE>TextView titleView = view.getTitleView();<NEW_LINE>TextView descrView = view.getDescrView();<NEW_LINE>LinearLayout bottomViewLayout = view.getBottomViewLayout();<NEW_LINE>SwitchCompat switchCompat = view.getTopBarSwitch();<NEW_LINE>if (title != null) {<NEW_LINE>...
bottomViewLayout.setVisibility(View.VISIBLE);
1,382,187
public void didUploadPhoto(final TLRPC.InputFile photo, final TLRPC.InputFile video, double videoStartTimestamp, String videoPath, final TLRPC.PhotoSize bigSize, final TLRPC.PhotoSize smallSize) {<NEW_LINE>AndroidUtilities.runOnUIThread(() -> {<NEW_LINE>avatar = smallSize.location;<NEW_LINE>if (photo != null || video !...
), "50_50", avatarDrawable, currentChat);
1,337,759
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, String workId) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>if (!b...
Wo.copier.copy(os);
133,949
protected PowerMockJUnitRunnerDelegate createDelegatorFromClassloader(ClassLoader classLoader, Class<?> testClass, final List<Method> methodsToTest) throws Exception {<NEW_LINE>Set<String> methodNames = new HashSet<String>();<NEW_LINE>for (Method method : methodsToTest) {<NEW_LINE>methodNames.add(method.getName());<NEW...
String[].class, powerMockTestListenerArrayType);
1,356,579
private void processFile(File file, String license) {<NEW_LINE>try {<NEW_LINE>String content = FileUtils.readFileToString(file);<NEW_LINE>int indexOfPackageStart = content.indexOf("package ");<NEW_LINE>if (indexOfPackageStart != -1) {<NEW_LINE>int indexOfPackageEnd = content.indexOf(";", indexOfPackageStart + 1);<NEW_L...
+ "\n\n" + license + "\n\n" + second;
220,766
protected void initScene() {<NEW_LINE>PointLight pointLight = new PointLight();<NEW_LINE>pointLight.setPower(1);<NEW_LINE>pointLight.setPosition(-1, 1, 4);<NEW_LINE>getCurrentScene().addLight(pointLight);<NEW_LINE>try {<NEW_LINE>Texture earthTexture = new Texture("earthDiffuseTex", R.drawable.earth_diffuse);<NEW_LINE>M...
Vector3.Axis.Y, 359);
1,073,373
protected RowExpression visitSimpleCaseExpression(SimpleCaseExpression node, Void context) {<NEW_LINE>ImmutableList.Builder<RowExpression<MASK><NEW_LINE>RowExpression value = process(node.getOperand(), context);<NEW_LINE>arguments.add(value);<NEW_LINE>ImmutableList.Builder<ResolvedFunction> functionDependencies = Immut...
> arguments = ImmutableList.builder();
88,106
private synchronized TravelArticle findArticleById(@NonNull final TravelArticleIdentifier articleId, String lang, boolean readGpx, @Nullable GpxReadCallback callback) {<NEW_LINE>TravelArticle article = null;<NEW_LINE>final boolean isDbArticle = articleId.file != null && articleId.file.getName(<MASK><NEW_LINE>final List...
).endsWith(IndexConstants.BINARY_WIKIVOYAGE_MAP_INDEX_EXT);
331,052
private Map<String, Long> findResoucerDistributionByDate(String searchResponse, LocalDate fromDate) {<NEW_LINE>JsonParser parser = new JsonParser();<NEW_LINE>JsonObject responeObj = parser.parse(searchResponse).getAsJsonObject();<NEW_LINE>System.out.println("****Time taken for ES Query " + responeObj.get("took").getAsL...
dateResourceMap.put(date, currentResources);
1,684,941
protected void rebalanceClusterOwnership(final String iNode, String databaseName, final OModifiableDistributedConfiguration cfg, final boolean canCreateNewClusters) {<NEW_LINE>final ODistributedConfiguration.ROLES role = cfg.getServerRole(iNode);<NEW_LINE>if (role != ODistributedConfiguration.ROLES.MASTER)<NEW_LINE>// ...
cluster2CreateMap.put(clazz, cluster2Create);
563,519
private void checkSuperclass() {<NEW_LINE>ClassAccessor<? super T> superAccessor = classAccessor.getSuperAccessor();<NEW_LINE>if (superAccessor.isEqualsInheritedFromObject() || superAccessor.isSealed()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (config.hasRedefinedSuperclass() || config.isUsingGetClass()) {<NEW_LINE>T ...
(classAccessor.getRedAccessor(typeTag));
1,592,164
private void declarePyramid(int imageWidth, int imageHeight) {<NEW_LINE>int minSize = (config.trackerFeatureRadius * 2 + 1) * 5;<NEW_LINE>ConfigDiscreteLevels configLevels = ConfigDiscreteLevels.minSize(minSize);<NEW_LINE>currentImage = FactoryPyramid.discreteGaussian(configLevels, -1, 1, false, ImageType.single(imageT...
createSingleBand(derivType, w, h);
423,253
public static void takeScreenShot() {<NEW_LINE>// create the screenshot directory<NEW_LINE>File dir = Options.getScreenshotDir();<NEW_LINE>if (!dir.isDirectory() && !dir.mkdir()) {<NEW_LINE>ErrorHandler.error(String.format("Failed to create screenshot directory at '%s'.", dir.getAbsolutePath()), null, false);<NEW_LINE>...
width, height, BufferedImage.TYPE_INT_RGB);
977,004
private String addReference(EjbReference ejbReference, EjbReference.EjbRefIType refType, String ejbRefName, FileObject referencingFile, String referencingClass) throws IOException {<NEW_LINE>String refName = ejbRefName;<NEW_LINE>AppClient webApp = getAppClient();<NEW_LINE>// don't duplicate ejbRefs with same name - iss...
), "EjbRef", "EjbRefName", ejbRefName);
1,208,250
private MetaDataRegisterDTO buildMetaDataDTO(final Class<?> clazz, final MotanService service, final ShenyuMotanClient shenyuMotanClient, final Method method, final String rpcExt) {<NEW_LINE>String appName = this.appName;<NEW_LINE>String path = this.contextPath + shenyuMotanClient.path();<NEW_LINE>String desc = shenyuM...
enabled()).build();
956,336
public static void initDefaultSchemas() {<NEW_LINE>SoapUIClassLoaderState state = SoapUIExtensionClassLoader.ensure();<NEW_LINE>try {<NEW_LINE>defaultSchemas.clear();<NEW_LINE>String root = "/com/eviware/soapui/resources/xsds";<NEW_LINE>loadDefaultSchema(SoapUI.class.getResource(root + "/xop.xsd"));<NEW_LINE>loadDefaul...
.getResource(root + "/soapEnvelope.xsd"));
1,054,109
public static IRubyObject inject(ThreadContext context, IRubyObject self, IRubyObject init, IRubyObject method, final Block block) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>if (block.isGiven())<NEW_LINE>runtime.getWarnings().warn(ID.BLOCK_UNUSED, "given block not used");<NEW_LINE>final String methodId =...
, result[0], larg);
995,610
public static DescribeFlowResponse unmarshall(DescribeFlowResponse describeFlowResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFlowResponse.setRequestId(_ctx.stringValue("DescribeFlowResponse.RequestId"));<NEW_LINE>describeFlowResponse.setId(_ctx.stringValue("DescribeFlowResponse.Id"));<NEW_LINE>describeFlowResp...
(_ctx.booleanValue("DescribeFlowResponse.Periodic"));
1,693,652
/*<NEW_LINE>* Registration form submit<NEW_LINE>*/<NEW_LINE>private void submitForm() {<NEW_LINE>logDebug("submit form!");<NEW_LINE>DatabaseHandler dbH = DatabaseHandler.getDbHandler(context.getApplicationContext());<NEW_LINE>dbH.clearCredentials();<NEW_LINE>if (!validateForm()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>I...
().toString() : null;
60,965
protected static void interpretIntOp(AluInstr instr, Operation op, long[] fixnums, boolean[] booleans) {<NEW_LINE>TemporaryLocalVariable dst = (TemporaryLocalVariable) instr.getResult();<NEW_LINE>long i1 = getFixnumArg(fixnums, instr.getArg1());<NEW_LINE>long i2 = getFixnumArg(fixnums, instr.getArg2());<NEW_LINE>switch...
fixnums, dst, i1 + i2);
101,317
final BatchGetCustomDataIdentifiersResult executeBatchGetCustomDataIdentifiers(BatchGetCustomDataIdentifiersRequest batchGetCustomDataIdentifiersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(batchGetCustomDataIdentifiersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
305,056
private void queryDohServer(IpPacket ipPacket, Message dnsMsg, Name name) {<NEW_LINE>String dnsQueryName = name.toString(true);<NEW_LINE>InetAddress address = null;<NEW_LINE>try {<NEW_LINE>List<InetAddress> addresses = this.dnsOverHttps.lookup(dnsQueryName);<NEW_LINE>if (!addresses.isEmpty()) {<NEW_LINE><MASK><NEW_LINE...
address = addresses.get(0);
785,116
public final void objectConstructionExpr() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>AST objectConstructionExpr_AST = null;<NEW_LINE>{<NEW_LINE>switch(LA(1)) {<NEW_LINE>case DOTDOT:<NEW_LINE>{<NEW_LINE>AST tmp47_AST = null;<NEW_L...
.create(LT(1));
47,128
public Object visitNewClass(NewClassTree node, Object p) {<NEW_LINE>Element e = ctx.getInfo().getTrees().getElement(getCurrentPath());<NEW_LINE>if (e == null) {<NEW_LINE>return super.visitNewClass(node, p);<NEW_LINE>} else {<NEW_LINE>e = e.getEnclosingElement();<NEW_LINE>}<NEW_LINE>if (e != null && e.getKind().isClass(...
getClassBody(), p, r);
1,135,335
private void initSourcesConn(DatabusSourcesConnection sourcesConn) {<NEW_LINE>if (null != sourcesConn) {<NEW_LINE>RelayPullThread rp = sourcesConn.getRelayPullThread();<NEW_LINE>BootstrapPullThread bp = sourcesConn.getBootstrapPullThread();<NEW_LINE>GenericDispatcher<DatabusCombinedConsumer> rd = sourcesConn.getRelayDi...
setCurrentBootstrapServer(bp.getCurentServer());
1,025,066
public Builder mergeFrom(edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain other) {<NEW_LINE>if (other == edu.stanford.nlp.pipeline.CoreNLPProtos.CorefChain.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (other.hasChainID()) {<NEW_LINE>setChainID(other.getChainID());<NEW_LINE>}<NEW_LINE>if (mentionBuilder_ ==...
bitField0_ = (bitField0_ & ~0x00000002);
693,125
final CreateAssetResult executeCreateAsset(CreateAssetRequest createAssetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAssetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
resolvedHostPrefix = String.format("api.");
473,918
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>List<Integer> results = player.rollDice(outcome, source, <MASK><NEW_LINE>int firstResult = results.get(0);<NEW_LINE>int secondRes...
game, 8, 2, 0);
8,491
public void checkAndDoUpdate() throws UserException {<NEW_LINE>Database database = Catalog.getCurrentCatalog().getDbNullable(dbId);<NEW_LINE>if (database == null) {<NEW_LINE>if (!isCompleted()) {<NEW_LINE>String msg = "The database has been deleted. Change job state to cancelled";<NEW_LINE>LOG.warn(new LogBuilder(LogKe...
, "Job need to be scheduled").build());
347,732
private void _buildSQL(String fileName) throws IOException {<NEW_LINE>File file = new File("../sql/" + fileName + ".sql");<NEW_LINE>if (!file.exists()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Template<NEW_LINE>String template = FileUtil.read(file);<NEW_LINE>// DB2<NEW_LINE>String db2 = StringUtil.replace(template, _T...
replace(template, _TEMPLATE, _SQL_SERVER);
144,859
private void readZapAddOnXmlFile(ZapAddOnXmlFile zapAddOnXml) {<NEW_LINE>this.name = zapAddOnXml.getName();<NEW_LINE>this.version = zapAddOnXml.getVersion();<NEW_LINE>this.semVer = zapAddOnXml.getSemVer();<NEW_LINE>this.status = AddOn.Status.valueOf(zapAddOnXml.getStatus());<NEW_LINE>this.description = zapAddOnXml.getD...
bundleBaseName, zapAddOnXml.getBundlePrefix());
1,213,163
private static void recreateAllTableIndexes(Handle handle, Map<String, Map<String, Set<String>>> tableWiseIndexesMap) {<NEW_LINE>for (Map.Entry<String, Map<String, Set<String>>> tableIndexesMap : tableWiseIndexesMap.entrySet()) {<NEW_LINE>for (Map.Entry<String, Set<String>> indexesMap : tableIndexesMap.getValue().entry...
)))).execute();
1,394,991
protected void initEnvironment() {<NEW_LINE>if (props == null) {<NEW_LINE>_logger.debug("PROVIDER_URL {}", providerUrl);<NEW_LINE>_logger.debug("SECURITY_PRINCIPAL {}", principal);<NEW_LINE>// no log credentials<NEW_LINE>// _logger.trace("SECURITY_CREDENTIALS {}" , credentials);<NEW_LINE>// LDAP<NEW_LINE>props = new Pr...
setProperty(Context.URL_PKG_PREFIXES, "com.sun.jndi.url");
211,037
public void read(org.apache.thrift.protocol.TProtocol prot, TableInfo struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(12);<NEW_LINE>if (incoming.get(0)) {<NEW_...
.tablets = iprot.readI32();
704,680
private void initBuffer() {<NEW_LINE>logger.info("Initializing display (if last line in log then likely the game crashed from an issue with your " + "video card)");<NEW_LINE>if (!config.isVSync()) {<NEW_LINE>GLFW.glfwSwapInterval(0);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>String root = "org/terasology/icons/";<NEW_LINE>Cla...
logger.warn("Could not set icon", e);
1,062,781
public WorkerPipeline.SourceStep<SimpleFeature> read() {<NEW_LINE>return next -> {<NEW_LINE>long id = 0;<NEW_LINE>// pass every element in every table through the profile<NEW_LINE>var tables = tableNames();<NEW_LINE>for (int i = 0; i < tables.size(); i++) {<NEW_LINE>String table = tables.get(i);<NEW_LINE>LOGGER.trace("...
size() + ": " + table);
1,329,846
public SamlIdentityProviderBuilder fromSettings(Environment env) {<NEW_LINE>final Settings settings = env.settings();<NEW_LINE>this.entityId = require(settings, IDP_ENTITY_ID);<NEW_LINE>this.ssoEndpoints = new HashMap<>();<NEW_LINE>this.sloEndpoints = new HashMap<>();<NEW_LINE>this.ssoEndpoints.put(SAML2_REDIRECT_BINDI...
, IDP_SSO_POST_ENDPOINT.get(settings));
537,150
private void linkRuleToHashedBuckOut(BuildRule rule, SourcePathResolverAdapter pathResolver, boolean buckOutCompatLink, OutputLabel outputLabel, HashedBuckOutLinkMode linkMode) throws IOException {<NEW_LINE>Optional<Path> outputPath = PathUtils.getUserFacingOutputPath(pathResolver, rule, buckOutCompatLink, outputLabel,...
absolutePathWithHash, rule.getBuildTarget());
135,355
public int compareTo(final Key<?> other) {<NEW_LINE>if (this.raw == other.raw) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>{<NEW_LINE>final int result = this.raw.getProjectId().compareTo(other.raw.getProjectId());<NEW_LINE>if (result != 0)<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>{<NEW_LINE>final int result = this.raw....
getRaw().getKind());
645,874
public void deploy(DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {<NEW_LINE>DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();<NEW_LINE>WarMetaData warMetaData = deploymentUnit.getAttachment(WarMetaData.ATTACHMENT_KEY);<NEW_LINE>if (warMetaData == null) {<NEW_LINE>return;<...
(getXML(deploymentUnit), warMetaData);
441,806
public ESat isEntailed() {<NEW_LINE>int lb = index.getLB();<NEW_LINE>int ub = index.getUB();<NEW_LINE>int min = MAX_VALUE / 2;<NEW_LINE>int max = MIN_VALUE / 2;<NEW_LINE>int val = var.getLB();<NEW_LINE>boolean exists = false;<NEW_LINE>for (int i = lb; i <= ub; i = index.nextValue(i)) {<NEW_LINE><MASK><NEW_LINE>if (j >=...
int j = 2 + i - offset;
1,627,764
public ActivityTimedOutEventDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ActivityTimedOutEventDetails activityTimedOutEventDetails = new ActivityTimedOutEventDetails();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentPar...
JsonToken token = context.getCurrentToken();
1,252,407
void upgrade(File directory) {<NEW_LINE>synchronized (KinesisRecorder.this) {<NEW_LINE>final File recordsDir = new File(directory, Constants.RECORDS_DIRECTORY);<NEW_LINE>final File oldRecordsFile = new File(recordsDir, Constants.RECORDS_FILE_NAME);<NEW_LINE>if (!oldRecordsFile.isFile()) {<NEW_LINE>return;<NEW_LINE>}<NE...
Constants.RECORDS_FILE_NAME, Long.MAX_VALUE);
1,639,550
public void run() {<NEW_LINE>if (ServerRegistry.getInstance().getServerInstance(url) == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Target target = _retrieveTarget(null);<NEW_LINE>ServerDebugInfo sdi = getServerDebugInfo(target);<NEW_LINE>if (sdi == null) {<NEW_LINE>LOGGER.log(Level.FINE, "DebuggerInfo cannot be found...
String shmem = attCookie.getSharedMemoryName();
1,339,556
public void read(org.apache.thrift.protocol.TProtocol iprot, ping_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TField schemeField;<NEW_LINE>iprot.readStructBegin();<NEW_LINE>while (true) {<NEW_LINE>schemeField = iprot.readFieldBegin();<NEW_LINE>if (schemeField.type == org.apach...
skip(iprot, schemeField.type);
1,035,788
private static void addListenerStoreEntries(List<Map<String, String>> storeEntries, List<Map<String, String>> listenerStoreEntries) {<NEW_LINE>String instanceStore = storeEntries.get(0).get("store");<NEW_LINE>for (Map<String, String> listenerStoreEntry : listenerStoreEntries) {<NEW_LINE>// Add to list if unique store<N...
+ listenerStoreEntry.get("usedBy"));
1,138,918
private boolean copyDependencies() throws IOException {<NEW_LINE>boolean result = true;<NEW_LINE>projectCopy.setResourceRoot("${projectDir}");<NEW_LINE>List<ExternalDependency> dependencies = projectCopy.getExternalDependencies();<NEW_LINE>for (ExternalDependency dependency : dependencies) {<NEW_LINE>switch(dependency....
copyDirectory(originalDependency, targetDependency, false);
1,320,590
public BounceAction unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>BounceAction bounceAction = new BounceAction();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>...
().unmarshall(context));
200,491
public OResultSet syncPull(OCommandContext ctx, int nRecords) throws OTimeoutException {<NEW_LINE>getPrev().ifPresent(x -> x.syncPull(ctx, nRecords));<NEW_LINE>return new OResultSet() {<NEW_LINE><NEW_LINE>private int internalNext = 0;<NEW_LINE><NEW_LINE>private void fetchNext() {<NEW_LINE>if (nextResult != null) {<NEW_...
"$current", result.toElement());
951,583
final ReplaceIamInstanceProfileAssociationResult executeReplaceIamInstanceProfileAssociation(ReplaceIamInstanceProfileAssociationRequest replaceIamInstanceProfileAssociationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(replaceIamInstanceProfileAssociationRequest);<NEW_LINE>AWSRequestMet...
ReplaceIamInstanceProfileAssociationResult>(new ReplaceIamInstanceProfileAssociationResultStaxUnmarshaller());
959,442
public Optional<SOTrx> retrieveRecordSOTrx(final String tableName, final String whereClause) {<NEW_LINE>if (Check.isEmpty(tableName, true)) {<NEW_LINE>log.error("No TableName");<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>if (Check.isEmpty(whereClause, true)) {<NEW_LINE>log.error("No Where Clause");<NEW_LINE>...
log.trace("No records were found to fetch the IsSOTrx from SQL: {}", sqlSelectIsSOTrx);
1,145,490
private List<Node> cleanEmptyClinitReferences(Multimap<String, Node> clinitReferences) {<NEW_LINE>final List<Node> newChangedScopes = new ArrayList<>();<NEW_LINE>// resolveReplacement step above should not require any particular iteration order of the<NEW_LINE>// emptiedClinitMethods but we are using LinkedHashMap to b...
(getClinitMethodName(replacement), replacement);
1,661,786
static <T extends Trait> Set<String> deduceOperationResponseHeaders(Context<T> context, OperationObject operationObject, OperationShape shape, CorsTrait cors) {<NEW_LINE>// The deduced response headers of an operation consist of any headers<NEW_LINE>// returned by security schemes, any headers returned by the protocol,...
TreeSet<>(String.CASE_INSENSITIVE_ORDER);
726,759
public void rangeNotification(IntSeqKey conditionPath, ContextControllerConditionNonHA originEndpoint, EventBean optionalTriggeringEvent, Map<String, Object> optionalTriggeringPattern, EventBean optionalTriggeringEventPattern, Map<String, Object> optionalPatternForInclusiveEval, Map<String, Object> terminationPropertie...
getterKey = factory.getGetterKey(partitionKey);
1,192,830
public List<SDVariable> doDiff(List<SDVariable> f1) {<NEW_LINE>// Jaccard distance: https://en.wikipedia.org/wiki/Jaccard_index#Generalized_Jaccard_similarity_and_distance<NEW_LINE>// J(x,y) = 1 - sum_i min(x_i, y_i) / sum_i max(x_i, y_i)<NEW_LINE>SDVariable min = sameDiff.math.min(larg(), rarg());<NEW_LINE>SDVariable ...
()).castTo(d);
574,104
private void addCommentLikeActionForCommentNotification(Context context, NotificationCompat.Builder builder, String noteId) {<NEW_LINE>// adding comment like action<NEW_LINE>Intent commentLikeIntent = getCommentActionIntent(context);<NEW_LINE>commentLikeIntent.addCategory(KEY_CATEGORY_COMMENT_LIKE);<NEW_LINE>commentLik...
putExtra(NotificationsProcessingService.ARG_NOTE_ID, noteId);
1,595,936
/* Helpers */<NEW_LINE>private void insertRecordToTmpCollection(final MongodbWriteConfig writeConfig, final AirbyteMessage message) {<NEW_LINE>try {<NEW_LINE>final AirbyteRecordMessage recordMessage = message.getRecord();<NEW_LINE>final Map<String, Object> result = objectMapper.convertValue(recordMessage.getData(), new...
var collection = writeConfig.getCollection();
302,871
private void performWorkload(BaseSubscriber<PojoizedJson> baseSubscriber, long i) throws InterruptedException {<NEW_LINE>Mono<PojoizedJson> result;<NEW_LINE>int clientIndex = (int) (i % clientDocsMap.size());<NEW_LINE>CosmosAsyncClient client = (CosmosAsyncClient) clientDocsMap.keySet().toArray()[clientIndex];<NEW_LINE...
String partitionKeyValue = doc.getId();
1,084,563
public static void initOpenTelemetry() throws Exception {<NEW_LINE>if (!Config.enable_tracing) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String traceExportUrl = Config.trace_export_url;<NEW_LINE>SpanExporter spanExporter;<NEW_LINE>if (DorisTraceExporter.collector.name().equalsIgnoreCase(Config.trace_exporter)) {<NEW_LINE>...
(serviceNameResource)).build();
1,579,527
private static void printType(ConfiguredType configuredType, Map<String, ConfiguredType> typesMap, int nesting, boolean listStart) {<NEW_LINE>String spaces = <MASK><NEW_LINE>Set<ConfiguredProperty> properties = configuredType.properties();<NEW_LINE>boolean isListStart = listStart;<NEW_LINE>for (ConfiguredProperty prope...
" ".repeat(nesting * 2);
1,265,820
private void initValues(List<ClassPathSupport.Item> list) {<NEW_LINE>Set<ClientModuleItem> items = new TreeSet<ClientModuleItem>();<NEW_LINE>for (Project p : EarProjectProperties.getApplicationSubprojects(list, J2eeModule.Type.WAR)) {<NEW_LINE>items.add(new ClientModuleItem(ProjectUtils.getInformation(p).getName(), fal...
new ArrayList<ClientModuleItem>(items);
576,057
private // refactored to use a common method.<NEW_LINE>void loadOnlyEjbCreateMethod(List<CallbackInterceptor>[] metaArray, int numPostConstructFrameworkCallbacks) {<NEW_LINE>int sz = lcAnnotationClasses.length;<NEW_LINE>for (int i = 0; i < sz; i++) {<NEW_LINE>if (lcAnnotationClasses[i] != PostConstruct.class) {<NEW_LIN...
[i].add(meta);
1,188,778
public String createMessage(CompilationInfo info, Diagnostic d, int offset, TreePath treePath, Data<Void> data) {<NEW_LINE>Tree t = treePath.getLeaf();<NEW_LINE>if (t.getKind() != Tree.Kind.MEMBER_SELECT) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>TypeMirror mt = info.getTrees().getTypeMirror(treePath);<NEW_LINE>if (!...
addAll(etype.getThrownTypes());
482,570
final UpdateDatasetEntriesResult executeUpdateDatasetEntries(UpdateDatasetEntriesRequest updateDatasetEntriesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateDatasetEntriesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,820,342
private void write(ElfHeader.EIClass eiClass, ByteBuffer buffer) {<NEW_LINE>if (eiClass == ElfHeader.EIClass.ELFCLASS32) {<NEW_LINE>Elf.Elf32.putElf32Half(buffer, (short) vn_version);<NEW_LINE>Elf.Elf32.putElf32Half(buffer, (short) vn_cnt);<NEW_LINE>Elf.Elf32.putElf32Word(buffer, (int) vn_file);<NEW_LINE>Elf.Elf32.putE...
(buffer, (short) vn_cnt);
826,425
private void tablePopupApply(ActionEvent actionEvent) {<NEW_LINE>StringBuilder stringBuffer = new StringBuilder();<NEW_LINE>stringBuffer.append("\n");<NEW_LINE>String title = tablePopupTitle.textProperty().getValue();<NEW_LINE>// Table title<NEW_LINE>if (!"".equals(title))<NEW_LINE>stringBuffer.append(".").append(title...
insertEditorValue(stringBuffer.toString());
1,769,291
public void run() {<NEW_LINE>liveSnippets = <MASK><NEW_LINE>prepareDeclarations();<NEW_LINE>createStatementsText();<NEW_LINE>prepareImports();<NEW_LINE>try {<NEW_LINE>FileObject replaced = targetFolder.getFileObject(className, "java");<NEW_LINE>if (replaced != null) {<NEW_LINE>replaced.delete();<NEW_LINE>}<NEW_LINE>jav...
shellSession.getSnippets(true, true);
290,846
public void commit(boolean onSave) {<NEW_LINE>final Model model = getModel();<NEW_LINE>final String comments = FormHelper.trimTrailingSpaces(commentsSource.getDocument().get());<NEW_LINE>model.setAttribute(MODEL_COMMENTS, comments);<NEW_LINE>// TLCUIActivator.getDefault().logDebug("Main page commit");<NEW_LINE>// close...
= this.networkInterfaceCombo.getText();
1,360,809
public static void toJSON(OutputWriter jsonOutputWriter, StageInstanceModel model, String pipelineName, String pipelineCounter) {<NEW_LINE>jsonOutputWriter.addLinks(linkWriter -> {<NEW_LINE>linkWriter.addLink("self", Routes.Stage.self(pipelineName, pipelineCounter, model.getName()<MASK><NEW_LINE>}).add("name", model.ge...
, model.getCounter()));
958,244
public Object execute(final NodeModel node, PrintStream outStream, IFreeplaneScriptErrorHandler errorHandler, ScriptContext scriptContext) {<NEW_LINE>try {<NEW_LINE>if (errorsInScript != null && compileTimeStrategy.canUseOldCompiledScript()) {<NEW_LINE>throw new ExecuteScriptException(errorsInScript.getMessage(), error...
scriptSource.getScript(), context);
1,561,274
public void run(RegressionEnvironment env) {<NEW_LINE>String[] <MASK><NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportBean_ST0_Container");<NEW_LINE>builder.expression(fields[0], "contained.selectFrom(x => key0).sequenceEqual(contained.selectFrom(y => id))");<NEW_LINE>builder.statementConsumer(stmt...
fields = "c0".split(",");
867,029
public void removeColumnItems(int column) {<NEW_LINE>// Firstly, remove columns from visible recyclerViews.<NEW_LINE>// To be able provide removing animation, we need to notify just for given column position.<NEW_LINE>CellRecyclerView[] visibleRecyclerViews = mTableView<MASK><NEW_LINE>for (CellRecyclerView cellRowRecyc...
.getCellLayoutManager().getVisibleCellRowRecyclerViews();
1,316,699
public boolean onLongClick(View v) {<NEW_LINE>String link;<NEW_LINE>boolean displayPic = !picUrl.equals("");<NEW_LINE>if (displayPic) {<NEW_LINE>link = picUrl;<NEW_LINE>} else {<NEW_LINE>link = otherUrl.split(" ")[0];<NEW_LINE>}<NEW_LINE>Log.v("tweet_page", "clicked");<NEW_LINE>Intent viewTweet = new Intent(context, T...
viewTweet.putExtra("tweet", tweetText);
361,715
public void startNewFragment(final PlanFragment fragment, final DrillbitContext drillbitContext) throws UserRpcException {<NEW_LINE>logger.debug("Received remote fragment start instruction: {}", fragment);<NEW_LINE>try {<NEW_LINE>final FragmentContextImpl fragmentContext = new FragmentContextImpl(drillbitContext, fragm...
getWorkBus().addFragmentManager(manager);
940,880
private void drawPaintersImpl(com.codename1.ui.Graphics g, Component par, Component c, int x, int y, int w, int h) {<NEW_LINE>if (par == null) {<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>if (par.getStyle().getBgTransparency() != ((byte) 0xFF)) {<NEW_LINE>drawPainters(g, par.getParent(), par, x, y, w, h);<NEW_LINE>}<N...
() + par.getScrollX();
1,547,022
private static SparqlComponent possibleSparqlValidator(Graph shapesGraph, Node valNode, List<Parameter> params, /* for reporting */<NEW_LINE>Node constraintComponentNode) {<NEW_LINE>// Check for SHACL-JS<NEW_LINE>Node xJSFunctionName = G.getZeroOrOneSP(shapesGraph, valNode, SHACL.jsFunctionName);<NEW_LINE>if (xJSFuncti...
ShLib.prefixes(shapesGraph, valNode);
615,581
private void tryMergePreviousGap(final long thisSeek) throws IOException {<NEW_LINE>// this is called after a record has been removed. That may cause that a new<NEW_LINE>// empty record was surrounded by gaps. We merge with a previous gap, if this<NEW_LINE>// is also empty, but don't do that recursively<NEW_LINE>// If ...
thisSeek, thisSize.intValue());
628,598
public JDBCStatement prepareUniqueConstraintsLoadStatement(@NotNull JDBCSession session, @NotNull GenericStructContainer owner, @Nullable GenericTableBase forParent) throws SQLException {<NEW_LINE>JDBCPreparedStatement dbStat;<NEW_LINE>dbStat = session.prepareStatement("SELECT K.CONSTRAINT_NAME AS PK_NAME, K.TABLE_NAME...
dbStat.setString(4, tableName);
1,487,333
public void execute(String commandName, ConsoleInput ci, List args) {<NEW_LINE>if (args.isEmpty()) {<NEW_LINE>printconsolehelp(ci.out);<NEW_LINE>} else {<NEW_LINE>String subcommand = (String) args.get(0);<NEW_LINE>IConsoleCommand cmd = (IConsoleCommand) commands.get(subcommand);<NEW_LINE>if (cmd != null) {<NEW_LINE>Lis...
printHelp(ci.out, newargs);