idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,705,245
public void synchronize(GroupModel.GroupRemovedEvent event, KeycloakSessionFactory factory) {<NEW_LINE>ProviderFactory<AuthorizationProvider> providerFactory = factory.getProviderFactory(AuthorizationProvider.class);<NEW_LINE>AuthorizationProvider authorizationProvider = providerFactory.create(event.getKeycloakSession(...
policyFactory.onRemove(policy, authorizationProvider);
1,078,952
public static PrefetchableJavaFileObject memoryFileObject(final CharSequence pkg, final CharSequence name, final URI uri, final long lastModified, final CharSequence content) {<NEW_LINE>Parameters.notNull("pkg", pkg);<NEW_LINE><MASK><NEW_LINE>Parameters.notNull("content", content);<NEW_LINE>final String pkgStr = (pkg i...
Parameters.notNull("name", name);
891,127
public static void calculateFramesize(MpaHeader ret) {<NEW_LINE>if (ret.layer == 1) {<NEW_LINE>ret.framesize = (12 * bitrates[ret.version][0][ret.bitrateIndex]) / frequencies[ret<MASK><NEW_LINE>if (ret.paddingBit != 0)<NEW_LINE>ret.framesize++;<NEW_LINE>ret.framesize <<= 2;<NEW_LINE>ret.frameBytes = 0;<NEW_LINE>} else ...
.version][ret.sampleFreq];
333,458
private RSyntaxTextArea createTextArea() {<NEW_LINE>RSyntaxTextArea textArea = new RSyntaxTextArea(25, 70);<NEW_LINE>textArea.setTabSize(3);<NEW_LINE>textArea.setCaretPosition(0);<NEW_LINE>textArea.addHyperlinkListener(this);<NEW_LINE>textArea.requestFocusInWindow();<NEW_LINE>textArea.setMarkOccurrences(true);<NEW_LINE...
InputMap im = textArea.getInputMap();
1,317,328
public static DescribeCertificateResponse unmarshall(DescribeCertificateResponse describeCertificateResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeCertificateResponse.setRequestId(_ctx.stringValue("DescribeCertificateResponse.RequestId"));<NEW_LINE>describeCertificateResponse.setCertificateId(_ctx.stringValue("...
(_ctx.stringValue("DescribeCertificateResponse.Issuer"));
1,184,179
public List<ImageVersion> handle(final ResultSet rs) throws SQLException {<NEW_LINE>if (!rs.next()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>final List<ImageVersion> imageVersions = new ArrayList<>();<NEW_LINE>do {<NEW_LINE>final int id = rs.getInt("id");<NEW_LINE>final String path = rs.getString(...
version = rs.getString("version");
1,633,920
public String render(ExpressionInfo expr) {<NEW_LINE>if (!(Boolean.FALSE.equals(expr.getValue())))<NEW_LINE>return null;<NEW_LINE>if (!(expr.isEqualityComparison() || expr.isSetComparison()))<NEW_LINE>return null;<NEW_LINE>Object value1 = expr.getChildren().get(0).getValue();<NEW_LINE>Object value2 = expr.getChildren()...
int extraSize = extra.size();
564,204
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>mRecyclerView = getView().findViewById(R.id.recycler_view);<NEW_LINE>mLayoutManager = new LinearLayoutManager(requireContext()...
drawable.list_divider_h), true));
1,450,714
private Prediction<T> innerPredictThreadPool(ExecutorService pool, ThreadLocal<PriorityQueue<OutputDoublePair<T>>> queuePool, DistanceType distType, Example<T> example) {<NEW_LINE>SparseVector vector = SparseVector.createSparseVector(example, featureIDMap, false);<NEW_LINE>List<Future<List<OutputDoublePair<T>>>> future...
predictions = new ArrayList<>();
1,768,314
private void addParamReferences(Function func, Address callTarget, Instruction instruction, VarnodeContext varnodeContext, TaskMonitor monitor) {<NEW_LINE>if (!checkForParamRefs) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// don't check for params on external calls<NEW_LINE>if ((callTarget != null) && callTarget.isExternal...
p.getVariableStorage(), callOffset);
280,514
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String path0) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Work work = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Busin...
find(id, Work.class);
1,845,796
protected Attachment executeInternal(CommandContext commandContext) {<NEW_LINE>AttachmentEntity attachment = commandContext.getAttachmentEntityManager().create();<NEW_LINE>attachment.setName(attachmentName);<NEW_LINE>attachment.setProcessInstanceId(processInstanceId);<NEW_LINE>attachment.setTaskId(taskId);<NEW_LINE>att...
setUserId(Authentication.getAuthenticatedUserId());
1,437,550
public Void execute(final CommandContext commandContext) {<NEW_LINE>List<AbstractProcessInstanceModificationCommand> instructions = builder.getInstructions();<NEW_LINE>ensureNotEmpty(BadUserRequestException.class, "Modification instructions cannot be empty", instructions);<NEW_LINE>Collection<String> processInstanceIds...
processInstance, processDefinition.getId());
1,414,081
public static DescribeNasInstancesResponse unmarshall(DescribeNasInstancesResponse describeNasInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeNasInstancesResponse.setRequestId(_ctx.stringValue("DescribeNasInstancesResponse.RequestId"));<NEW_LINE>describeNasInstancesResponse.setSuccess(_ctx.booleanValue(...
("DescribeNasInstancesResponse.NasInstances[" + i + "].Description"));
1,690,581
protected Query doToQuery(SearchExecutionContext context) throws IOException {<NEW_LINE>Settings newSettings = new Settings(settings);<NEW_LINE>final Map<String, Float> resolvedFieldsAndWeights;<NEW_LINE>boolean isAllField;<NEW_LINE>if (fieldsAndWeights.isEmpty() == false) {<NEW_LINE>resolvedFieldsAndWeights = QueryPar...
isAllField = QueryParserHelper.hasAllFieldsWildcard(defaultFields);
545,368
private static GlUtil.Program configureGlProgram(Context context, Matrix transformationMatrix, int textureId, boolean enableExperimentalHdrEditing) throws IOException {<NEW_LINE>// TODO(b/205002913): check the loaded program is consistent with the attributes<NEW_LINE>// and uniforms expected in the code.<NEW_LINE>Strin...
[] transformationMatrixArray = getGlMatrixArray(transformationMatrix);
1,389,457
public List<FieldChange> cleanup(BibEntry entry) {<NEW_LINE>List<FieldChange> changes = new ArrayList<>();<NEW_LINE>// First check if the Doi Field is empty<NEW_LINE>if (entry.hasField(StandardField.DOI)) {<NEW_LINE>String doiFieldValue = entry.getField(StandardField.DOI).orElse(null);<NEW_LINE>Optional<DOI> <MASK><NEW...
doi = DOI.parse(doiFieldValue);
17,461
private Vector<Vector<Object>> fillTable(final String sql, final int parameter) {<NEW_LINE>log.debug(sql + "; Parameter=" + parameter);<NEW_LINE>final Vector<Vector<Object>> data = new Vector<>();<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>ResultSet rs = null;<NEW_LINE>try {<NEW_LINE>pstmt = DB.prepareStatement(...
DB.close(rs, pstmt);
1,702,287
private void updateGhosts() {<NEW_LINE>HashMap<PhysicsGhostObject, Spatial> oldObjects = ghosts;<NEW_LINE>ghosts = new HashMap<PhysicsGhostObject, Spatial>();<NEW_LINE>Collection<PhysicsGhostObject> current = space.getGhostObjectList();<NEW_LINE>// create new map<NEW_LINE>for (Iterator<PhysicsGhostObject> it = current....
PhysicsGhostObject physicsObject = it.next();
1,051,656
public boolean removeClient(RealmModel realm, String id) {<NEW_LINE>ClientModel client = getClientById(realm, id);<NEW_LINE>if (client == null)<NEW_LINE>return false;<NEW_LINE>invalidateClient(client.getId());<NEW_LINE>// this is needed so that a client that hasn't been committed isn't cached in a query<NEW_LINE>listIn...
).removeUser(realm, serviceAccount);
1,603,874
private Wo executeCommand(String ctl, String nodeName, Integer nodePort, String fileName) {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>Wo wo = new Wo();<NEW_LINE>wo.setNode(nodeName);<NEW_LINE>wo.setStatus("success");<NEW_LINE>try (Socket socket = new Socket(nodeName, nodePort)) {<NEW_LINE>socket.setKeepAlive...
put("command", "uninstall:" + ctl);
1,112,228
private static void noCoronaryHeartDisease(Person person, long time) {<NEW_LINE>// chance of getting a sudden cardiac arrest without heart disease. (Most probable cardiac event<NEW_LINE>// w/o cause or history)<NEW_LINE>if (person.attributes.containsKey("coronary_heart_disease")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>...
.DAYS.toMillis(365));
1,197,322
private void handleMouseMoveOverNewCard(TransferData data) {<NEW_LINE>MageCard cardPanel = data.getComponent().getTopPanelRef();<NEW_LINE>// Prevent to show tooltips from panes not in front<NEW_LINE>MagePane <MASK><NEW_LINE>if (topPane instanceof GamePane) {<NEW_LINE>if (data.getGameId() != null && !((GamePane) topPane...
topPane = MageFrame.getTopMost(null);
501,606
public ElasticsearchSettings unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ElasticsearchSettings elasticsearchSettings = new ElasticsearchSettings();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
class).unmarshall(context));
51,520
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.impetus.kundera.configure.schema.api.AbstractSchemaManager#create<NEW_LINE>* (java.util.List)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void create(List<TableInfo> tableInfos) {<NEW_LINE>StatementResult result = null;<NEW_LINE>String statemen...
throw new SchemaGenerationException(e, "Statement couldn't be executed. Caused By: ");
1,082,972
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>ChooseFriendsAndFoes choice = new ChooseFriendsAndFoes();<NEW_LINE>choice.chooseFriendOrFoe(controller, source, game);<NE...
player.getId(), cardsInHand);
1,558,341
private void initNamesView(final View view) {<NEW_LINE>mNamesCaption = (TextView) view.findViewById(R.id.show_additional_names);<NEW_LINE>mNamesCaption.setOnClickListener(this);<NEW_LINE>mAddLanguage = (TextView) view.findViewById(R.id.add_langs);<NEW_LINE>mAddLanguage.setOnClickListener(this);<NEW_LINE>mMoreLanguages ...
new LinearLayoutManager(getActivity()));
1,619,487
public void init(Map<String, String> conf) throws CryptoException {<NEW_LINE>String keyLocation = Objects.requireNonNull(conf.get(KEY_URI<MASK><NEW_LINE>String enabledProp = conf.get(ENCRYPT_ENABLED);<NEW_LINE>if (enabledProp != null)<NEW_LINE>encryptEnabled = Boolean.parseBoolean(enabledProp);<NEW_LINE>// get key from...
), "Config property " + KEY_URI + " is required.");
825,107
public void init() {<NEW_LINE>listGui = new ListGui(client, this, altManager.getList());<NEW_LINE>Exception folderException = altManager.getFolderException();<NEW_LINE>if (folderException != null && shouldAsk) {<NEW_LINE>TranslatableText title = new TranslatableText("gui.wurst.altmanager.folder_error.title");<NEW_LINE>...
client.setScreen(prevScreen)));
402,792
private static Map<String, double[]> loadEmbeddingsFromFile(String filename) throws IOException {<NEW_LINE>Map<String, double[]> embeddings = new HashMap<>();<NEW_LINE>BufferedReader br = new BufferedReader(new FileReader(filename));<NEW_LINE>int readLines = 0;<NEW_LINE>String line = br.readLine();<NEW_LINE>while ((lin...
] embedding = new double[300];
1,581,817
public Void visitLiteral(LiteralTree node, Void p) {<NEW_LINE>int startPos = (int) info.getTrees().getSourcePositions().getStartPosition(<MASK><NEW_LINE>tl.moveToOffset(startPos);<NEW_LINE>Token t = tl.currentToken();<NEW_LINE>if (t != null && t.id() == JavaTokenId.MULTILINE_STRING_LITERAL && t.partType() == PartType.C...
info.getCompilationUnit(), node);
160,340
public void testTopicName_temp_B(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContext = jmsTCFBindings.createContext();<NEW_LINE>Topic topic = jmsContext.createTopic("_tempTopic");<NEW_LINE>JMSConsumer jmsConsumer = jmsContext.createConsumer(topic);<NEW_LINE>String...
TextMessage) jmsConsumer.receive(30000);
799,527
private DataFrame evaluateOrderByClause(DataFrame df, Optional<OrderBy> orderByOpt) throws MacroBaseSQLException {<NEW_LINE>if (!orderByOpt.isPresent()) {<NEW_LINE>return df;<NEW_LINE>}<NEW_LINE>final OrderBy orderBy = orderByOpt.get();<NEW_LINE>// For now, we only support sorting by a single column<NEW_LINE>// TODO: s...
getOrdering() == Ordering.ASCENDING);
1,738,926
private static void tryMT(RegressionEnvironment env, int numSeconds) throws InterruptedException {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String eplCreateVariable = "@public create table vartotal (cnt count(*), sumint sum(int), avgint avg(int))";<NEW_LINE>env.compileDeploy(eplCreateVariable, path...
sendEventBean(new SupportBean_S0(0));
1,600,161
public void connect() throws IOException, SlimVersionMismatch {<NEW_LINE>String slimServerVersionMessage = reader.readLine();<NEW_LINE>if (!isConnected(slimServerVersionMessage)) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>slimServerVersion = Double.parseDouble(slimServerVersionMessage.replace(SlimVersion.SLIM_HEADER, ""));<...
throw new SlimVersionMismatch("Got invalid slim header from client. Read the following: " + slimServerVersionMessage);
1,029,596
public Element render(SVGPlot svgp) {<NEW_LINE>Element tag = svgp.svgElement(SVGConstants.SVG_G_TAG);<NEW_LINE>Element button = svgp.svgRect(x, y, w, h);<NEW_LINE>if (!Double.isNaN(r)) {<NEW_LINE>SVGUtil.setAtt(button, SVGConstants.SVG_RX_ATTRIBUTE, r);<NEW_LINE>SVGUtil.setAtt(button, SVGConstants.SVG_RY_ATTRIBUTE, r);...
"fill:url(#" + SVGEffects.LIGHT_GRADIENT_ID + ");fill-opacity:.5");
1,249,376
public void start() {<NEW_LINE>// set the LR for our utility object<NEW_LINE>renameUtil.setContext(this.context);<NEW_LINE>// find out period from the filename pattern<NEW_LINE>if (fileNamePatternStr != null) {<NEW_LINE>fileNamePattern = new FileNamePattern(fileNamePatternStr, this.context);<NEW_LINE>determineCompressi...
= new FileNamePattern(zipEntryFileNamePatternStr, context);
1,370,223
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>getSerializedSize();<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeInt32(1, version_);<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>output.writeBytes(...
7, sourceType_.getNumber());
410,279
public AssociationExecutionTargetsFilter unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociationExecutionTargetsFilter associationExecutionTargetsFilter = new AssociationExecutionTargetsFilter();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI...
int originalDepth = context.getCurrentDepth();
175,560
public static void addField(MobileSessionCtx wsc, form line, GridField field, Object oData, boolean hasDependents, int recordID, int tableID, boolean tabRO, int fieldNumber, GridTab mTab, MRole role) {<NEW_LINE>String columnName = field.getColumnName();<NEW_LINE>// Any Error?<NEW_LINE>boolean error = field.isErrorValue...
String fieldgroup = field.getFieldGroup();
102,996
public void execute(ObjectNode incomingMessage, HttpServletRequest httpRequest, Writer out) {<NEW_LINE>JsonFactory jsonFactory = new JsonFactory();<NEW_LINE>JsonGenerator writer = null;<NEW_LINE>try {<NEW_LINE>writer = jsonFactory.createGenerator(out);<NEW_LINE>writer.writeStartObject();<NEW_LINE>String token = incomin...
info(incomingMessage.toString());
675,875
private void saveImage(JComponent comp) {<NEW_LINE>String filename;<NEW_LINE>JFileChooser chooser = FileDialoger.promptToSaveFile(GuiPackage.getInstance().getTreeListener().getCurrentNode(<MASK><NEW_LINE>if (chooser == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Get the string given from the choose and check<NEW_LI...
).getName(), extensions);
459,783
public void handle(String stmt, ManagerService service) {<NEW_LINE>MySqlUpdateStatement update;<NEW_LINE>try {<NEW_LINE>update = (MySqlUpdateStatement) DruidUtil.parseMultiSQL(stmt);<NEW_LINE>} catch (Exception e) {<NEW_LINE>LOGGER.warn("manager parser insert failed", e);<NEW_LINE>service.writeErrMessage("42000", "You ...
service, packetResult.getErrorMsg());
141,163
/*<NEW_LINE>* Tweak glyph X positions so they fall on cell/grid/column boundries.<NEW_LINE>*/<NEW_LINE>private void massage_glyphs(GlyphVector gv, int start, int n, Line l) {<NEW_LINE>Point2D pos0 = gv.getGlyphPosition(0);<NEW_LINE>// There's one big assumption here that in a monospaced font all the<NEW_LINE>// Y place...
(int) pos0.getY();
318,696
public void initValues(FileObject template, FileObject preselectedFolder) {<NEW_LINE>if (template == null) {<NEW_LINE>throw new IllegalArgumentException(// NOI18N<NEW_LINE>NbBundle.// NOI18N<NEW_LINE>getMessage(// NOI18N<NEW_LINE>ConfigureFXMLControllerPanelVisual.class, "MSG_ConfigureFXMLPanel_Template_Error"));<NEW_L...
templateDo = DataObject.find(template);
1,273,997
private void forCollector(final Consumer<JSONDocumentChangedWebSocketEventCollector> consumer) {<NEW_LINE>//<NEW_LINE>// Get the collector to use<NEW_LINE>final JSONDocumentChangedWebSocketEventCollector collector;<NEW_LINE>final boolean autoflush;<NEW_LINE>final <MASK><NEW_LINE>if (threadLocalCollector != null) {<NEW_...
JSONDocumentChangedWebSocketEventCollector threadLocalCollector = THREAD_LOCAL_COLLECTOR.get();
530,857
public void invokeSlackWebhook() {<NEW_LINE>RestTemplate restTemplate = new RestTemplate();<NEW_LINE>RichMessage richMessage = new RichMessage("Just to test Slack's incoming webhooks.");<NEW_LINE>// set attachments<NEW_LINE>Attachment[] attachments = new Attachment[1];<NEW_LINE>attachments[0] = new Attachment();<NEW_LI...
().writeValueAsString(richMessage));
245,351
private Coordinate displaceFromCornerAwayFromArms(Coordinate nearPt, Coordinate p1, Coordinate p2, double dist) {<NEW_LINE>Coordinate[] corner = orientCorner(nearPt, p1, p2);<NEW_LINE>boolean isInsideCorner = isInsideCorner(vertexPt, nearPt, corner[0], corner[1]);<NEW_LINE>Vector2D u1 = Vector2D.create(nearPt, corner[0...
u2.rotate(cornerAng / 2);
1,229,128
protected void addPackageList(Content contentTree) {<NEW_LINE>Content caption = contents.getContent("doclet.ClassUse_Packages.that.use.0", getPackageLink(packageElement, utils.getPackageName(packageElement)));<NEW_LINE>Table table = new Table(configuration.htmlVersion, HtmlStyle.useSummary).setSummary(packageUseTableSu...
HtmlStyle.colFirst, HtmlStyle.colLast);
891,987
private void handleHideChildThreads(IThreadContainer channel) {<NEW_LINE>List<ThreadChannel> threads = channel.getThreadChannels();<NEW_LINE>if (threads.isEmpty())<NEW_LINE>return;<NEW_LINE>for (ThreadChannel thread : threads) {<NEW_LINE>GuildImpl guild = (GuildImpl) channel.getGuild();<NEW_LINE>SnowflakeCacheViewImpl<...
(api, responseNumber, thread));
678,681
public void marshall(FsxConfiguration fsxConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (fsxConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(fsxConfiguration.getFileSystemId(), ...
fsxConfiguration.getSecretArn(), SECRETARN_BINDING);
385,127
public void insertUserGroup(List<Map<String, Object>> groups, String userId) {<NEW_LINE>for (Map<String, Object> map : groups) {<NEW_LINE>String idType = (String) map.get("type");<NEW_LINE>String[] arr = idType.split("\\+");<NEW_LINE>String groupId = arr[0];<NEW_LINE>String type = arr[1];<NEW_LINE>if (StringUtils.equal...
SqlSessionUtils.closeSqlSession(sqlSession, sqlSessionFactory);
1,636,664
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see<NEW_LINE>* com.sitewhere.grpc.service.DeviceManagementGrpc.DeviceManagementImplBase#<NEW_LINE>* addDeviceGroupElements(com.sitewhere.grpc.service.<NEW_LINE>* GAddDeviceGroupElementsRequest, io.grpc.stub.StreamObserver)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public...
(DeviceModelConverter.asGrpcDeviceGroupElement(apiElement));
927,257
public int[][] readIntArray2D(String name, int[][] defVal) throws IOException {<NEW_LINE>try {<NEW_LINE>Element tmpEl;<NEW_LINE>if (name != null) {<NEW_LINE>tmpEl = findChildElement(currentElem, name);<NEW_LINE>} else {<NEW_LINE>tmpEl = currentElem;<NEW_LINE>}<NEW_LINE>if (tmpEl == null) {<NEW_LINE>return defVal;<NEW_L...
n = nodes.item(i);
1,759,140
public // Deprecated<NEW_LINE>ResultSet runQuery(String metricName) {<NEW_LINE>java.sql.PreparedStatement genorm_statement = null;<NEW_LINE>try {<NEW_LINE>String genorm_query = QUERY;<NEW_LINE>genorm_statement = org.kairosdb.datastore.h2.<MASK><NEW_LINE>genorm_statement.setString(1, metricName);<NEW_LINE>long genorm_qu...
orm.GenOrmDataSource.prepareStatement(genorm_query);
765,363
private void forEachConstantFragment(int start, int end, Consumer<SourceFragment> consumer) {<NEW_LINE>if (start == end) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (start > end) {<NEW_LINE>throw new SpoonException("Inconsistent start/end. Start=" + start + " is greater then End=" + end);<NEW_LINE>}<NEW_LINE>String sourc...
onCharSequence(lastType, buff, consumer);
758,501
public void rollbackPreparedTransaction(String xid) throws TransactionException, PersistenceException {<NEW_LINE>if (isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "rollbackPreparedTransaction", xid);<NEW_LINE>if (_manager != null) {<NEW_LINE>try {<NEW_LINE>PersistentTranId pid = new Persi...
(nls.getString("INVALID_XID_STRING_SIMS1010"));
180,083
final DeletePlaybackKeyPairResult executeDeletePlaybackKeyPair(DeletePlaybackKeyPairRequest deletePlaybackKeyPairRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deletePlaybackKeyPairRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>...
(super.beforeMarshalling(deletePlaybackKeyPairRequest));
717,150
final UpdateResourceSetResult executeUpdateResourceSet(UpdateResourceSetRequest updateResourceSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateResourceSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
invoke(request, responseHandler, executionContext);
52,671
public void onStop() {<NEW_LINE>context.<MASK><NEW_LINE>if (settings.tweetmarker && !isLauncher()) {<NEW_LINE>new Thread(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>TweetMarkerHelper helper = new TweetMarkerHelper(currentAccount, sharedPrefs.getString("twitter_screen_name_" + cur...
sendBroadcast(new Intent("com.klinker.android.twitter.CLEAR_PULL_UNREAD"));
673,936
private Policy generateWSATPolicy(Message msg) throws Throwable {<NEW_LINE>Element policyElement;<NEW_LINE>if (TC.isDebugEnabled()) {<NEW_LINE>Tr.debug(TC, "Start to loadd policy from template", PATH);<NEW_LINE>}<NEW_LINE>InputStream is = this.getClass().getResourceAsStream(PATH);<NEW_LINE>if (is == null) {<NEW_LINE>if...
Tr.debug(TC, "InputStream is NULL??");
872,315
public final long handle(Emulator<?> emulator) {<NEW_LINE>Backend backend = emulator.getBackend();<NEW_LINE>if (enablePostCall) {<NEW_LINE>regContext = RegContext.backupContext(emulator, Arm64Const.UC_ARM64_REG_X29, Arm64Const.UC_ARM64_REG_X30);<NEW_LINE>}<NEW_LINE>UnidbgPointer sp = UnidbgPointer.register(emulator, Ar...
.share(-8, 0);
1,817,837
public boolean onCreateOptionsMenu(android.view.Menu menu) {<NEW_LINE>// Common options: Copy, Export to SD Card, Refresh<NEW_LINE>SubMenu sub = menu.addSubMenu(0, MENU_TOGGLE, 0, "").setIcon(R.drawable.ic_flow);<NEW_LINE>sub.add(0, MENU_ZOOM_IN, 0, getString(R.string.label_zoomin)).setIcon(R.drawable.zoomin).setShowAs...
MenuItem.SHOW_AS_ACTION_ALWAYS | MenuItem.SHOW_AS_ACTION_WITH_TEXT);
1,224,010
public List<DvObjectSolrDoc> determineSolrDocs(DvObject dvObject) {<NEW_LINE>List<DvObjectSolrDoc> emptyList = new ArrayList<>();<NEW_LINE>if (dvObject == null) {<NEW_LINE>return emptyList;<NEW_LINE>}<NEW_LINE>List<DvObjectSolrDoc> solrDocs = emptyList;<NEW_LINE>if (dvObject.isInstanceofDataverse()) {<NEW_LINE>DvObject...
= constructDatasetSolrDocs((Dataset) dvObject);
1,511,612
public okhttp3.Call readNamespacedHorizontalPodAutoscalerCall(String name, String namespace, String pretty, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/apis/autoscaling/v1/namespaces/{namespace}/ho...
localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
1,150,808
protected static void parseJSON(JSONObject json, MapObject o) {<NEW_LINE>if (json.has("name")) {<NEW_LINE>o.name = json.getString("name");<NEW_LINE>}<NEW_LINE>if (json.has("enName")) {<NEW_LINE>o.enName = json.getString("enName");<NEW_LINE>}<NEW_LINE>if (json.has("names")) {<NEW_LINE>JSONObject namesObj = json.getJSONO...
names = new HashMap<>();
1,471,298
public static ClientMessage encodeCacheEvent(int type, java.util.Collection<com.hazelcast.cache.impl.CacheEventData> keys, int completionId) {<NEW_LINE><MASK><NEW_LINE>ClientMessage.Frame initialFrame = new ClientMessage.Frame(new byte[EVENT_CACHE_INITIAL_FRAME_SIZE], UNFRAGMENTED_MESSAGE);<NEW_LINE>initialFrame.flags ...
ClientMessage clientMessage = ClientMessage.createForEncode();
475,518
private void doUpdateRanges(int beforeChangedLine1, int beforeChangedLine2, int linesShift, int beforeTotalLines) {<NEW_LINE>LOG.assertTrue(!myReleased);<NEW_LINE>List<Range> rangesBeforeChange = new ArrayList<>();<NEW_LINE>List<Range> rangesAfterChange = new ArrayList<>();<NEW_LINE>List<Range> changedRanges = new Arra...
firstChangedRange = ContainerUtil.getFirstItem(changedRanges);
1,074,234
public void removeLink(Link link) {<NEW_LINE>linksUpdated = true;<NEW_LINE>dtLinksUpdated = removeLinkFromStructure(directLinks, link);<NEW_LINE>removeLinkFromStructure(interClusterLinks, link);<NEW_LINE>removeLinkFromStructure(switchPortLinks, link);<NEW_LINE>NodePortTuple srcNpt = new NodePortTuple(link.getSrc(), lin...
remove(dstNpt.getNodeId());
1,698,486
public void optionsChanged(DebugOptions options) {<NEW_LINE>boolean debug = options.getBooleanOption(DEBUG, false);<NEW_LINE>BufferManager.VERBOSE = debug && options.getBooleanOption(BUFFER_MANAGER_DEBUG, false);<NEW_LINE>JavaBuilder.DEBUG = debug && options.getBooleanOption(BUILDER_DEBUG, false);<NEW_LINE>Compiler.DEB...
PERF = PerformanceStats.isEnabled(DELTA_LISTENER_PERF);
1,196,609
public void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>addPreferencesFromResource(R.xml.plugins_preference);<NEW_LINE>helper = new RemotePluginCommunicationHelper(getActivity());<NEW_LINE>helper.begin();<NEW_LINE>Set<String> eventSkillsInUse = getEventSkillsInU...
(R.string.key_pref_enabled_event_plugins));
1,397,396
public static void stepInto(final JFrame parent, final IDebugger debugger) {<NEW_LINE>checkArguments(parent, debugger);<NEW_LINE>if (!debugger.isConnected()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final TargetProcessThread activeThread = debugger.getProcessManager().getActiveThread();<NEW_LINE>try {<NEW_LINE>debugger.g...
parent, innerMessage, innerDescription, e);
21,381
public static boolean isReferencedBy(IJavaElement element, IMarkerDelta markerDelta) throws CoreException {<NEW_LINE>// only match units or classfiles<NEW_LINE>if (element instanceof IMember) {<NEW_LINE>IMember member = (IMember) element;<NEW_LINE>if (member.isBinary()) {<NEW_LINE>element = member.getClassFile();<NEW_L...
String) markerDelta.getAttribute(ATT_HANDLE_ID);
1,026,662
// Create a binary tree by taking input level wise<NEW_LINE>public static Node createBinaryTree() {<NEW_LINE>Scanner sc = new Scanner(System.in);<NEW_LINE>System.out.print("Enter root node value or -1 to exit: ");<NEW_LINE>int rootData = sc.nextInt();<NEW_LINE>Node root = null;<NEW_LINE>if (rootData != -1) {<NEW_LINE>r...
Node child = new Node(leftChild);
1,003,761
final DeleteColumnStatisticsForPartitionResult executeDeleteColumnStatisticsForPartition(DeleteColumnStatisticsForPartitionRequest deleteColumnStatisticsForPartitionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteColumnStatisticsForPartitionRequest);<NEW_LINE>AWSRequestMetrics awsRe...
false), new DeleteColumnStatisticsForPartitionResultJsonUnmarshaller());
1,486,279
public double det() {<NEW_LINE>if (!isSquare())<NEW_LINE>throw new ArithmeticException("Rectangual matricies do not have a determinat");<NEW_LINE>double det = 1;<NEW_LINE>for (int i = 0; i < Math.min(U.rows(), U.cols()); i++) det *= <MASK><NEW_LINE>// We need to swap back P to get the sign, so we make a clone. This cou...
U.get(i, i);
510,121
public DescribeServersResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeServersResult describeServersResult = new DescribeServersResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
1,790,301
protected void bufferMessage(URI projectLoc, boolean deleted, String projectName, Classpath classpath) {<NEW_LINE>if (buffer != null) {<NEW_LINE>logger.log("buffering callback " + callbackCommandId + " " + projectName + " " + deleted + " " + classpath.getEntries().size());<NEW_LINE>buffer.add(ImmutableList.of(projectLo...
callbackCommandId + " SUCCESS [" + r + "]");
735,583
public static Bytes32 hashHeader(final SealableBlockHeader header) {<NEW_LINE><MASK><NEW_LINE>out.startList();<NEW_LINE>out.writeBytes(header.getParentHash());<NEW_LINE>out.writeBytes(header.getOmmersHash());<NEW_LINE>out.writeBytes(header.getCoinbase());<NEW_LINE>out.writeBytes(header.getStateRoot());<NEW_LINE>out.wri...
final BytesValueRLPOutput out = new BytesValueRLPOutput();
812,709
void queueCrossVrfImports() {<NEW_LINE>VrfLeakConfig vrfLeakConfig = _vrf.getVrfLeakConfig();<NEW_LINE>if (vrfLeakConfig == null || vrfLeakConfig.getLeakAsBgp()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (MainRibVrfLeakConfig leakConfig : vrfLeakConfig.getMainRibVrfLeakConfigs()) {<NEW_LINE>String importFromVrf = leak...
), leakConfig.getImportPolicy());
1,221,645
public void onBindViewHolder(@NonNull final RecyclerView.ViewHolder holder, int position) {<NEW_LINE>if (holder instanceof HeaderViewHolder) {<NEW_LINE>Integer dateHeader = (Integer) getItem(position);<NEW_LINE>bindHeaderItem((HeaderViewHolder) holder, dateHeader, position);<NEW_LINE>} else if (holder instanceof TrackV...
= (SearchResult) getItem(position);
1,330,322
private <T> boolean wait(long timeoutNanos, List<Future<T>> futures) throws InterruptedException {<NEW_LINE>boolean done = true;<NEW_LINE>for (int i = 0, size = futures.size(); i < size; i++) {<NEW_LINE>long startNanos = Timer.nanos();<NEW_LINE>Object value;<NEW_LINE>try {<NEW_LINE>Future<T> <MASK><NEW_LINE>value = fut...
future = futures.get(i);
562,319
public int compareTo(compactionJobFailed_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(), other.isSetTinfo());<NEW_L...
), other.isSetExternalCompactionId());
1,730,889
public Element writeXML(Document document) {<NEW_LINE>final Element root = document.createElement("pumping");<NEW_LINE>DomUtil.addElement(root, "url", url.toString());<NEW_LINE>DomUtil.addElement(root, "realUrl", realUrl != null ? realUrl.toString() : null);<NEW_LINE>DomUtil.addElement(root, "length", String.valueOf(le...
file.getAbsolutePath() : null);
1,012,525
private static double calculateHomozygousLogRatio(final AllelicCount allelicCount, final double genotypingBaseErrorRate) {<NEW_LINE>final int r = allelicCount.getRefReadCount();<NEW_LINE>final <MASK><NEW_LINE>final double betaAll = Beta.regularizedBeta(1, r + 1, n - r + 1);<NEW_LINE>final double betaError = Beta.regula...
int n = allelicCount.getTotalReadCount();
1,184,459
public double similarity(Long2DoubleMap vec1, Long2DoubleMap vec2) {<NEW_LINE>// First check for empty vectors - then we can assume at least one element<NEW_LINE>if (vec1.isEmpty() || vec2.isEmpty()) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>// first compute means of common items<NEW_LINE>LongSortedSet commonKeys = Long...
int n = commonKeys.size();
1,311,084
public void delete(AlluxioURI alluxioUri, Inode inode) throws IOException, InvalidPathException {<NEW_LINE>MountTable.Resolution resolution = mMountTable.resolve(alluxioUri);<NEW_LINE>String ufsUri = resolution.getUri().toString();<NEW_LINE>try (CloseableResource<UnderFileSystem> ufsResource = resolution.acquireUfsReso...
AlluxioURI parentUri = alluxioUri.getParent();
497,421
public void createPartControl(Composite parent) {<NEW_LINE>Server server = ServerManager.getInstance().getServer(serverId);<NEW_LINE>this.setPartName("Connections[" + server.getName() + "][" + date + "]");<NEW_LINE>GridLayout layout = new GridLayout(1, true);<NEW_LINE>layout.marginHeight = 5;<NEW_LINE>layout.marginWidt...
xyGraph.primaryXAxis.setDateEnabled(true);
1,299,065
protected void handleError(final ResumeThreadReply reply) {<NEW_LINE>try {<NEW_LINE>final TargetProcessThread thread = getDebugger().getProcessManager().getThread(reply.getThreadId());<NEW_LINE>// TODO: In case we can not resume the thread, we assume that it is really suspended.<NEW_LINE>// This is not correct, however...
thread.setState(ThreadState.SUSPENDED);
574,688
private String replaceNewLines(String inputString) {<NEW_LINE><MASK><NEW_LINE>int i = 0;<NEW_LINE>boolean isInsideCode = false;<NEW_LINE>while (i < stringBuilder.length()) {<NEW_LINE>if (i + 3 < stringBuilder.length() && Objects.equals(stringBuilder.substring(i, i + 3), "```")) {<NEW_LINE>// Is inside a <pre> code sect...
StringBuilder stringBuilder = new StringBuilder(inputString);
1,126,919
public DatasetVersion addDatasetVersionTags(String datasetVersionId, List<String> tagsList) {<NEW_LINE>try (var session = modelDBHibernateUtil.getSessionFactory().openSession()) {<NEW_LINE>DatasetVersionEntity datasetVersionObj = session.get(DatasetVersionEntity.class, datasetVersionId, LockMode.PESSIMISTIC_WRITE);<NEW...
.getInstance().getTimeInMillis();
532,228
// Task: create collection to translate Polish-English words in two ways<NEW_LINE>public static void main(String[] args) {<NEW_LINE>ENGLISH_WORD[] englishWords = ENGLISH_WORD.values();<NEW_LINE>String[] russianWords = { "jeden", "dwa", "trzy", "kula", "snieg" };<NEW_LINE>// Create Multiset<NEW_LINE>BiMap<ENGLISH_WORD, ...
().get("snieg"));
1,561,775
public static ClientMessage encodeRequest(java.lang.String name, java.util.UUID txnId, long threadId, com.hazelcast.internal.serialization.Data key, com.hazelcast.internal.serialization.Data value, long ttl) {<NEW_LINE>ClientMessage clientMessage = ClientMessage.createForEncode();<NEW_LINE>clientMessage.setRetryable(fa...
initialFrame.content, REQUEST_THREAD_ID_FIELD_OFFSET, threadId);
1,395,771
// returns last ord of dimension<NEW_LINE>private int createOneFlatFacetDimState(SortedSetDocValues dv, int dimStartOrd) throws IOException {<NEW_LINE>int dimEndOrd = dimStartOrd;<NEW_LINE>BytesRef nextTerm = dv.lookupOrd(dimEndOrd);<NEW_LINE>String[] nextComponents = FacetsConfig.stringToPath(nextTerm.utf8ToString());...
new OrdRange(dimStartOrd, dimEndOrd));
1,456,317
public void addSelect(List<SqlNode> selectList, SqlNode node, RelDataType rowType) {<NEW_LINE>String name = rowType.getFieldNames().get(selectList.size());<NEW_LINE>if (node instanceof SqlDynamicParam && ((SqlDynamicParam) node).getIndex() == -2 && ((SqlDynamicParam) node).getValue() != null) {<NEW_LINE>SqlLiteral sqlL...
.getAlias(node, -1);
215,980
public boolean openSource(Lookup.Provider project, String className, String methodName, String signature, int line) {<NEW_LINE>if (SourceRoots.getRoots().length == 0) {<NEW_LINE>ProfilerDialogs.displayWarning(Bundle.VisualVMGoToSource_NoSourceRoots(), Bundle.VisualVMGoToSource_NoSourceRootsCaption(), null);<NEW_LINE>//...
className, methodName, signature, line);
475,309
public void visitCode() {<NEW_LINE>mv.visitVarInsn(Opcodes.ALOAD, 1);<NEW_LINE>mv.visitVarInsn(Opcodes.ALOAD, 2);<NEW_LINE>if (httpservlet) {<NEW_LINE>mv.visitMethodInsn(Opcodes.INVOKESTATIC, <MASK><NEW_LINE>} else {<NEW_LINE>mv.visitMethodInsn(Opcodes.INVOKESTATIC, TRACEMAIN, START_FILTER, START_SIGNATURE, false);<NEW...
TRACEMAIN, START_SERVICE, START_SIGNATURE, false);
685,101
public SamlServiceProvider create(final SamlServiceProvider serviceProvider, final String zoneId) {<NEW_LINE>validate(serviceProvider);<NEW_LINE>final String id = UUID<MASK><NEW_LINE>try {<NEW_LINE>jdbcTemplate.update(CREATE_SERVICE_PROVIDER_SQL, ps -> {<NEW_LINE>int pos = 1;<NEW_LINE>ps.setString(pos++, id);<NEW_LINE>...
.randomUUID().toString();
1,575,922
private int[] _setText(int[] indices, String[] txt, final boolean[] widthChanged) {<NEW_LINE>widthChanged[0] = false;<NEW_LINE>boolean fireChange = false;<NEW_LINE>boolean[] changed = new boolean[indices.length];<NEW_LINE>int changedCount = 0;<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < indices.length; i++) {<NEW_LINE...
Arrays.fill(changed, false);
1,734,213
final UpdateJobStatusResult executeUpdateJobStatus(UpdateJobStatusRequest updateJobStatusRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateJobStatusRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
UriResourcePathUtils.updateUriHost(endpoint, resolvedHostPrefix);