idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
89,541
public void begin(InterpretationContext ec, String localName, Attributes attributes) throws ActionException {<NEW_LINE>// reset variables<NEW_LINE>scopeStr = null;<NEW_LINE>scope = null;<NEW_LINE>propertyName = null;<NEW_LINE>definer = null;<NEW_LINE>inError = false;<NEW_LINE>// read future property name<NEW_LINE>prope...
className, PropertyDefiner.class, context);
1,478,248
public static CheckUpgradeVersionResponse unmarshall(CheckUpgradeVersionResponse checkUpgradeVersionResponse, UnmarshallerContext _ctx) {<NEW_LINE>checkUpgradeVersionResponse.setRequestId(_ctx.stringValue("CheckUpgradeVersionResponse.RequestId"));<NEW_LINE>checkUpgradeVersionResponse.setMessage(_ctx.stringValue("CheckU...
(_ctx.stringValue("CheckUpgradeVersionResponse.Option"));
1,117,725
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,819,460
private Table build(Composite parent) {<NEW_LINE>final Table table = new Table(parent, SWT.BORDER | SWT.WRAP | SWT.FULL_SELECTION | SWT.V_SCROLL | SWT.H_SCROLL);<NEW_LINE>table.setHeaderVisible(true);<NEW_LINE>table.setLinesVisible(true);<NEW_LINE>cols = new TableColumn[4];<NEW_LINE>cols[0] = UIUtil.create(table, SWT.C...
0, true, 40, this);
800,512
// Substitute for FormattingUtils if there is no dependency to core<NEW_LINE>public static String formatDurationAsWords(long durationMillis) {<NEW_LINE>String format = "";<NEW_LINE>String second = "second";<NEW_LINE>String minute = "minute";<NEW_LINE>String hour = "hour";<NEW_LINE>String day = "day";<NEW_LINE>String da...
"|\\b1 " + seconds, "1 " + second);
1,795,278
private void addAccountApiRoles(RealmModel realm) {<NEW_LINE>ClientModel accountClient = realm.getClientByClientId(Constants.ACCOUNT_MANAGEMENT_CLIENT_ID);<NEW_LINE>RoleModel viewAppRole = <MASK><NEW_LINE>viewAppRole.setDescription("${role_" + AccountRoles.VIEW_APPLICATIONS + "}");<NEW_LINE>LOG.debugf("Added the role %...
accountClient.addRole(AccountRoles.VIEW_APPLICATIONS);
1,069,704
public UpdateStreamResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateStreamResult updateStreamResult = new UpdateStreamResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNext()) {<NEW_LINE>String name = reader.nextNa...
().unmarshall(context));
1,662,228
protected LLVMDebugValue fromManagedPointer(LLVMManagedPointer value) {<NEW_LINE>final Object target = value.getObject();<NEW_LINE>if (target instanceof LLVMGlobalContainer) {<NEW_LINE>return fromGlobalContainer((LLVMGlobalContainer) target);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>InteropLibrary interop = InteropLibrary.ge...
unboxedValue = interop.asDouble(target);
1,562,295
public static String concat(String... dbColumns) throws DotRuntimeException {<NEW_LINE>if (dbColumns == null) {<NEW_LINE>throw new DotRuntimeException("the column list being concated are null");<NEW_LINE>}<NEW_LINE>StringBuilder bob = new StringBuilder();<NEW_LINE>boolean first = true;<NEW_LINE>for (String col : dbColu...
(col).append(" as varchar(512))");
643,652
public void onError(java.lang.Exception e) {<NEW_LINE>byte msgType = org.apache.thrift.protocol.TMessageType.REPLY;<NEW_LINE>org.apache.thrift.TSerializable msg;<NEW_LINE>shutdownTabletServer_result result = new shutdownTabletServer_result();<NEW_LINE>if (e instanceof org.apache.accumulo.core.clientImpl.thrift.ThriftSe...
.clientImpl.thrift.ThriftSecurityException) e;
731,360
/* Sample generated code:<NEW_LINE>*<NEW_LINE>* @com.ibm.j9ddr.GeneratedFieldAccessor(offsetFieldName="_refOffset_", declaredType="fj9object_t")<NEW_LINE>* public J9ObjectPointer ref() throws CorruptDataException {<NEW_LINE>* return getObjectReferenceAtOffset(Example._refOffset_);<NEW_LINE>* }<NEW_LINE>*/<NEW_LINE>...
method.visitMaxs(3, 1);
1,112,767
public String delete(@RequestAttribute SysSite site, @SessionAttribute SysUser admin, String path, HttpServletRequest request, ModelMap model) {<NEW_LINE>if (ControllerUtils.verifyCustom("noright", null != site.getParentId(), model)) {<NEW_LINE>return CommonConstants.TEMPLATE_ERROR;<NEW_LINE>}<NEW_LINE>if (CommonUtils....
siteComponent.getWebTemplateBackupFilePath(site, path);
884,996
public static FabOptions parse(Context context, JSONObject json) {<NEW_LINE>FabOptions options = new FabOptions();<NEW_LINE>if (json == null)<NEW_LINE>return options;<NEW_LINE>options.id = TextParser.parse(json, "id");<NEW_LINE>options.backgroundColor = ThemeColour.parse(context, json.optJSONObject("backgroundColor"));...
TextParser.parse(json, "size");
824,443
protected void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>if (needManualOrientationHandling()) {<NEW_LINE>// Register our content observer for the auto-rotate setting.<NEW_LINE>android.net.Uri autoRotateSetting = android.provider.Settings.System.getUriFor(android.provider.Settings.System.ACCELEROMETER_ROTATION);<...
registerContentObserver(autoRotateSetting, false, fAutoRotateObserver);
456,280
protected // Contrib Manager was opened.) [fry 220311]<NEW_LINE>void updateContributionListing() {<NEW_LINE>Editor editor = base.getActiveEditor();<NEW_LINE>if (editor != null) {<NEW_LINE>List<Library> libraries = new ArrayList<>(editor.getMode().contribLibraries);<NEW_LINE>// Only add Foundation libraries that are ins...
getInstance().updateInstalledList(contributions);
716,213
protected void applyOptions(Workbook wb, DataTable table, Sheet sheet, ExporterOptions options) {<NEW_LINE>Font font = getFont(wb, options);<NEW_LINE>facetStyle = wb.createCellStyle();<NEW_LINE>facetStyle.setFont(font);<NEW_LINE>facetStyle.setAlignment(HorizontalAlignment.CENTER);<NEW_LINE>facetStyle.setVerticalAlignme...
createDataFormat().getFormat(pattern);
1,565,353
public void renderTo(ClassExtensionDoc extension, Element parent) {<NEW_LINE>if (extension.getExtensionProperties().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Document document = parent.getOwnerDocument();<NEW_LINE>Element section = document.createElement("section");<NEW_LINE>parent.appendChild(section);<NEW_LIN...
(document.createTextNode(" plugin"));
546,146
public // -------------------------------------------------------------<NEW_LINE>boolean loadGraph(String name) {<NEW_LINE>// Make sure index ID values are set as LONG values.<NEW_LINE>// If this is not done, when we try to sort results by vertex<NEW_LINE>// ID later it will not sort the way you would expect it to.<NEW...
long t1 = System.currentTimeMillis();
1,795,741
public void onScriptPostFired(ScriptPostFired event) {<NEW_LINE>if (event.getScriptId() == ScriptID.FRIENDS_UPDATE) {<NEW_LINE>final int world = client.getWorld();<NEW_LINE>final boolean isMember = client.getVar(VarPlayer.MEMBERSHIP_DAYS) > 0;<NEW_LINE>final NameableContainer<Friend> friendContainer = client.getFriendC...
int world = client.getWorld();
1,682,338
final GetMeetingResult executeGetMeeting(GetMeetingRequest getMeetingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getMeetingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
689,394
private static void verifyRuntime(boolean fatal) {<NEW_LINE>if (GraalVMVersion.isGraalVM()) {<NEW_LINE>// graalvm version should be aligned with the dependencies<NEW_LINE>// used on the application, otherwise it introduces some<NEW_LINE>// unwanted side effects<NEW_LINE>try (InputStream is = PM.class.getClassLoader().g...
wanted = versions.getProperty("graalvm");
560,312
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {<NEW_LINE>CommonLayoutParams.adjustChildrenLayoutParams(this, widthMeasureSpec, heightMeasureSpec);<NEW_LINE>int measureWidth = 0;<NEW_LINE>int measureHeight = 0;<NEW_LINE>int width = MeasureSpec.getSize(widthMeasureSpec);<NEW_LINE>int widthMode = M...
measureChild(child, childWidthMeasureSpec, childHeightMeasureSpec);
608,193
public ConfigOrError parseLoadBalancingPolicyConfig(Map<String, ?> rawConfig) {<NEW_LINE>Map<String, PolicySelection> parsedChildPolicies = new LinkedHashMap<>();<NEW_LINE>try {<NEW_LINE>Map<String, ?> childPolicies = JsonUtil.getObject(rawConfig, "childPolicy");<NEW_LINE>if (childPolicies == null || childPolicies.isEm...
+ name + " in cluster_manager Lb policy: " + rawConfig));
1,198,803
public String generate() {<NEW_LINE>StringBuilder builder = new StringBuilder();<NEW_LINE>appendPackageAndCommonImports(builder, apiClassname, Arrays.<HollowSchema>asList(schema));<NEW_LINE>builder.append("import " + HollowList.class.getName() + ";\n");<NEW_LINE>builder.append("import " + HollowListSchema.class.getName...
class.getName() + ";\n");
754,630
private static boolean isSignatureValid(byte[] signatureFromMerit, String pubKeyAsHex, String blindVoteTxId) {<NEW_LINE>// We verify if signature of hash of blindVoteTxId is correct. EC key from first input for blind vote tx is<NEW_LINE>// used for signature.<NEW_LINE>if (pubKeyAsHex == null) {<NEW_LINE>log.error("Erro...
"Signature verification of issuance failed: " + t.toString());
451,878
/* package */<NEW_LINE>void parseKml() throws XmlPullParserException, IOException {<NEW_LINE>int eventType = mParser.getEventType();<NEW_LINE>while (eventType != XmlPullParser.END_DOCUMENT) {<NEW_LINE>if (eventType == XmlPullParser.START_TAG) {<NEW_LINE>if (mParser.getName().matches(UNSUPPORTED_REGEX)) {<NEW_LINE>skip(...
(KmlStyleParser.createStyleMap(mParser));
875,325
public Object doQuery(Object[] objs) {<NEW_LINE>Object[] os = new Object[1];<NEW_LINE>os[0] = objs[0];<NEW_LINE>// for columns<NEW_LINE>super.doQuery(os);<NEW_LINE>if (objs.length != 3) {<NEW_LINE>throw new RQException("redis getRange param size " + objs.length + " is not 3");<NEW_LINE>} else {<NEW_LINE>List<String> ls...
.next().toString();
126,058
public void serialize(final T t, final BufferAllocator allocator, final Buffer buffer) {<NEW_LINE>if (compressor == null) {<NEW_LINE>final int writerIndexBefore = buffer.writerIndex();<NEW_LINE>buffer.writerIndex(writerIndexBefore + METADATA_SIZE);<NEW_LINE>serializer.<MASK><NEW_LINE>buffer.setByte(writerIndexBefore, F...
serialize(t, allocator, buffer);
1,049,540
private void createLoggingSelectorGroup() {<NEW_LINE>Group loggingButtonGroup = new Group(this, SWT.NONE);<NEW_LINE>loggingButtonGroup.setText(Messages.CONFIGURATION_TAB_LOGGER_GROUP_TITLE);<NEW_LINE>GridLayout groupLayout = new GridLayout(LoggingButtonData.values().length, false);<NEW_LINE>loggingButtonGroup.setLayout...
Button(loggingButtonGroup, SWT.RADIO);
30,421
public void addJMSHeaderExpansions(PropertyExpansionsResult result, JMSHeaderConfig jmsHeaderConfig, ModelItem modelItem) {<NEW_LINE>result.addAll(PropertyExpansionUtils.extractPropertyExpansions(modelItem, jmsHeaderConfig, JMSHeader.JMSCORRELATIONID));<NEW_LINE>result.addAll(PropertyExpansionUtils.extractPropertyExpan...
, jmsHeaderConfig, JMSHeader.JMSPRIORITY));
1,449,638
public void doReportStat(SofaTracerSpan sofaTracerSpan) {<NEW_LINE>Map<String, String> tagsWithStr = sofaTracerSpan.getTagsWithStr();<NEW_LINE>StatMapKey statKey = new StatMapKey();<NEW_LINE>statKey.addKey(CommonSpanTags.LOCAL_APP, tagsWithStr.get(CommonSpanTags.LOCAL_APP));<NEW_LINE>statKey.addKey(CommonSpanTags.REQUE...
long[] { 1, duration };
1,386,413
final UpdateRecipeJobResult executeUpdateRecipeJob(UpdateRecipeJobRequest updateRecipeJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateRecipeJobRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<UpdateRecipeJobRequest> reques...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,793,689
public void printImageFromFile(String path, int x, int y, Map<String, Object> options, IPrinterResponce result) {<NEW_LINE>Utils.platformLog("ZEBRA_PRINTER", "@@@@ printImageFromFile !!!");<NEW_LINE>int width = -1;<NEW_LINE>int height = -1;<NEW_LINE>boolean isInsideFormat = false;<NEW_LINE>if (path.toLowerCase().endsWi...
Boolean) obj).booleanValue();
1,038,880
protected void fillTable(Listbox cb) {<NEW_LINE>ValueNamePair select = null;<NEW_LINE>String sql = "SELECT AD_Table_ID, TableName FROM AD_Table t " + "WHERE EXISTS (SELECT * FROM AD_Column c" + " WHERE t.AD_Table_ID=c.AD_Table_ID AND c.ColumnName='Posted')" + " AND IsView='N'";<NEW_LINE>try {<NEW_LINE>PreparedStatement...
tableName = rs.getString(2);
1,329,018
static FileObject copyBuildNativeTemplate(@NonNull final Project project) throws IOException {<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("project", project);<NEW_LINE>final FileObject buildExFoBack = project.getProjectDirectory().getFileObject(// NOI18N<NEW_LINE>String.// NOI18N<NEW_LINE>format("%s~", EXTENSION_BU...
getClassLoader().getResourceAsStream(BUILD_SCRIPT_PROTOTYPE);
777,672
public OutputStream writeResponseStatusAndHeaders(final long contentLength, final ContainerResponse context) throws ContainerException {<NEW_LINE>final javax.ws.rs.core.Response.StatusType statusInfo = context.getStatusInfo();<NEW_LINE>final int code = statusInfo.getStatusCode();<NEW_LINE>final String reason = statusIn...
response.setStatusWithReason(code, reason);
150,190
public void onSuspendEvent(SuspendInfo info) {<NEW_LINE>if (!isDebugging()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (info.isTerminated()) {<NEW_LINE>debuggerPanel.log("Debugger exited.");<NEW_LINE>setDebuggerState(true, true);<NEW_LINE>debugger = null;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>setDebuggerState(true, false...
() -> updateRegOrField(toBeUpdatedTreeNode));
1,804,203
private void encryptParameters(final StandardParameterBuilder parameterBuilder, final String tableName, final AssignmentSegment assignmentSegment, final List<Object> parameters) {<NEW_LINE>String columnName = assignmentSegment.getColumns().get(0).getIdentifier().getValue();<NEW_LINE>int parameterMarkerIndex = ((Paramet...
.iterator().next();
1,524,998
private List<Candidate> createCandidatesForPPOrder(@NonNull final AbstractTransactionEvent event) {<NEW_LINE>final List<Candidate> candidates;<NEW_LINE>final TransactionDetail transactionDetailOfEvent = createTransactionDetail(event);<NEW_LINE>final int ppOrderLineIdForQuery = event.getPpOrderLineId() > 0 ? event.getPp...
ppOrderLineId(ppOrderLineIdForQuery).build();
1,605,255
public Container.ExecResult execInContainer(InspectContainerResponse containerInfo, Charset outputCharset, String... command) throws UnsupportedOperationException, IOException, InterruptedException {<NEW_LINE>if (!TestEnvironment.dockerExecutionDriverSupportsExec()) {<NEW_LINE>// at time of writing, this is the expecte...
withCmd(command).exec();
971,751
private void tableswitch(Locatable locatable, SortedMap<Integer, CodeContext.Offset> caseLabelMap, Offset switchOffset, Offset defaultLabelOffset) {<NEW_LINE>final int low = (Integer) caseLabelMap.firstKey();<NEW_LINE>final int high = (Integer) caseLabelMap.lastKey();<NEW_LINE>this.addLineNumberOffset(locatable);<NEW_L...
getCodeContext()).set();
666,578
public JasperPrint fill(Map<String, Object> parameterValues) throws JRException {<NEW_LINE>// FIXMEBOOK copied from JRBaseFiller<NEW_LINE>if (parameterValues == null) {<NEW_LINE>parameterValues = new HashMap<>();<NEW_LINE>}<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.<MASK><NEW_LINE>}<NEW_LINE>setParametersToCont...
debug("Fill " + fillerId + ": filling report");
981,590
public synchronized void createTweet(Status status, int account) {<NEW_LINE>ContentValues values = new ContentValues();<NEW_LINE>String originalName = "";<NEW_LINE>long time = status.getCreatedAt().getTime();<NEW_LINE>long id = status.getId();<NEW_LINE>if (status.isRetweet()) {<NEW_LINE>originalName = status.getUser()....
html = TweetLinkUtils.getLinksInStatus(status);
1,001,832
private void sendFiles(Session sess, String[] files, String mode) throws IOException {<NEW_LINE>byte[] buffer = new byte[8192];<NEW_LINE>OutputStream os = new BufferedOutputStream(sess.getStdin(), 40000);<NEW_LINE>InputStream is = new BufferedInputStream(sess.getStdout(), 512);<NEW_LINE>readResponse(is);<NEW_LINE>for (...
+ f.getName() + "\n";
962,907
public void sync(Storage.Schema schemaStorage, Storage.Data dataStorage) {<NEW_LINE>Encoding.Vertex.Thing[] thingsWithGeneratedIID = new Encoding.Vertex.Thing[] { ENTITY, RELATION, ROLE };<NEW_LINE>for (Encoding.Vertex.Thing thingEncoding : thingsWithGeneratedIID) {<NEW_LINE>FunctionalIterator<VertexIID.Type> typeItera...
Type typeIID = typeIterator.next();
829,522
static int nextBitSet(int bitIndex, int bitTableBytes, FST.BytesReader reader) throws IOException {<NEW_LINE>assert bitIndex >= -1 && bitIndex < bitTableBytes * Byte.SIZE <MASK><NEW_LINE>int byteIndex = bitIndex / Byte.SIZE;<NEW_LINE>int mask = -1 << ((bitIndex + 1) & (Byte.SIZE - 1));<NEW_LINE>int i;<NEW_LINE>if (mask...
: "bitIndex=" + bitIndex + " bitTableBytes=" + bitTableBytes;
350,736
public void createItem(Item item, int page, Definitions.ItemPosition itemPosition) {<NEW_LINE>Log.i(this.getClass().getName(), String.format("createItem: %s (ID: %d)", item.getLabel(), item.getId()));<NEW_LINE>ContentValues itemValues = new ContentValues();<NEW_LINE>itemValues.put(COLUMN_TIME, item.getId());<NEW_LINE>i...
getType().toString());
1,483,007
public void refresh() {<NEW_LINE>ScouterUtil.collectGroupObjcts(grpName, serverObjMap);<NEW_LINE>isActive = false;<NEW_LINE>Iterator<Integer> serverIds = serverObjMap.keySet().iterator();<NEW_LINE>final List<Pack> result <MASK><NEW_LINE>while (serverIds.hasNext()) {<NEW_LINE>int serverId = serverIds.next();<NEW_LINE>Tc...
= new ArrayList<Pack>();
365,657
private void guessDelegate() {<NEW_LINE>// https://issues.apache.org/jira/browse/SIRONA-44<NEW_LINE>// https://github.com/javamelody/javamelody/issues/460<NEW_LINE>final List<PersistenceProvider> persistenceProviders = PersistenceProviderResolverHolder.getPersistenceProviderResolver().getPersistenceProviders();<NEW_LIN...
IllegalStateException(new ClassNotFoundException("Can't find a delegate"));
391,097
// Remove a consumer for a topic<NEW_LINE>public CompletableFuture<Void> removeConsumerAsync(String topicName) {<NEW_LINE>checkArgument(TopicName.isValid(topicName), "Invalid topic name:" + topicName);<NEW_LINE>if (getState() == State.Closing || getState() == State.Closed) {<NEW_LINE>return FutureUtil.failedFuture(new ...
consumerName, ex.getCause());
748,081
protected void wrapUpOutputs(File classes2Folder, File classes3Folder) throws IOException {<NEW_LINE>// the transform can set the verifier status to failure in some corner cases, in that<NEW_LINE>// case, make sure we delete our classes.3<NEW_LINE>// if (!transformScope.getInstantRunBuildContext().hasPassedVerification...
+ stringStringEntry.getValue()));
846,943
public static Date parseDate(@Nonnull String s) {<NEW_LINE>// SimpleDateFormat prior JDK7 doesn't support 'X' specifier for ISO 8601 timezone format.<NEW_LINE>// Because some bug trackers and task servers e.g. send dates ending with 'Z' (that stands for UTC),<NEW_LINE>// dates should be preprocessed before parsing.<NEW...
m = ISO8601_DATE_PATTERN.matcher(s);
1,423,135
public void createShieldedTransactionWithoutSpendAuthSig(PrivateParametersWithoutAsk request, StreamObserver<TransactionExtention> responseObserver) {<NEW_LINE>TransactionExtention.Builder trxExtBuilder = TransactionExtention.newBuilder();<NEW_LINE>Return.Builder retBuilder = Return.newBuilder();<NEW_LINE>try {<NEW_LIN...
setTransaction(trx.getInstance());
1,794,084
private void showContentRenamePopup(Component baseLabel, Content content) {<NEW_LINE>JBTextField textField = new JBTextField(content.getDisplayName());<NEW_LINE>textField.getEmptyText().<MASK><NEW_LINE>textField.putClientProperty("StatusVisibleFunction", (BooleanFunction<JBTextField>) o -> o.getText().isEmpty());<NEW_L...
setText(content.getDisplayName());
165,097
final NativeInvoker compile(RubyModule implementationClass, com.kenai.jffi.Function function, Signature signature, String methodName) {<NEW_LINE>if (compilationFailed || (counter.incrementAndGet() < THRESHOLD && Options.COMPILE_MODE.load() != RubyInstanceConfig.CompileMode.FORCE)) {<NEW_LINE>return null;<NEW_LINE>}<NEW...
newInstance(implementationClass, function, signature);
51,865
public List<PropertyDeclaration> buildDeclarations(CSSName cssName, List<PropertyValue> values, int origin, boolean important, boolean inheritAllowed) {<NEW_LINE>checkValueCount(cssName, 1, values.size());<NEW_LINE>PropertyValue <MASK><NEW_LINE>checkInheritAllowed(value, inheritAllowed);<NEW_LINE>if (value.getCssValueT...
value = values.get(0);
821,570
private void loadCacertsAndCustomCerts() {<NEW_LINE>try {<NEW_LINE>KeyStore keystore = KeyStore.getInstance(KeyStore.getDefaultType());<NEW_LINE>InputStream keystoreStream = NzbHydra.class.getResource("/cacerts").openStream();<NEW_LINE>keystore.load(keystoreStream, null);<NEW_LINE>final File certificatesFolder = new Fi...
init(null, trustManagers, null);
1,600,471
public CodegenExpression codegen(EnumForgeCodegenParams premade, CodegenMethodScope codegenMethodScope, CodegenClassScope codegenClassScope) {<NEW_LINE>ExprForgeCodegenSymbol scope <MASK><NEW_LINE>CodegenMethod methodNode = codegenMethodScope.makeChildWithScope(returnTypeOfMethod(), getClass(), scope, codegenClassScope...
= new ExprForgeCodegenSymbol(false, null);
1,273,476
private List<NameValueCountPair> listWorkStatus(Business business, Application application) throws Exception {<NEW_LINE>List<NameValueCountPair> wos = new ArrayList<>();<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Work.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>Criteri...
SortTools.asc(wos, "name");
1,095,866
protected Drive connect(final Proxy proxy, final HostKeyCallback callback, final LoginCallback prompt, final CancelCallback cancel) throws HostParserException {<NEW_LINE>final HttpClientBuilder configuration = builder.build(proxy, this, prompt);<NEW_LINE>authorizationService = new OAuth2RequestInterceptor(builder.build...
getProtocol().getOAuthRedirectUrl());
1,224,331
public void marshall(FileSystemAssociationInfo fileSystemAssociationInfo, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (fileSystemAssociationInfo == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NE...
fileSystemAssociationInfo.getFileSystemAssociationARN(), FILESYSTEMASSOCIATIONARN_BINDING);
1,354,852
public static MediaType produceType(RequestHeaders headers) {<NEW_LINE>final <MASK><NEW_LINE>if (HttpMethod.POST == headers.method() && contentType != null && contentType.is(MediaType.GRAPHQL)) {<NEW_LINE>return MediaType.GRAPHQL_JSON;<NEW_LINE>}<NEW_LINE>final List<MediaType> acceptTypes = headers.accept();<NEW_LINE>i...
MediaType contentType = headers.contentType();
944,594
ActionResult<Wo> execute(EffectivePerson effectivePerson, String flag, String appInfoFlag) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = null;<NEW_LINE>Cache.CacheKey cacheKey =...
ExceptionEntityNotExist(flag, File.class);
69,111
public BatchModifyClusterSnapshotsResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>BatchModifyClusterSnapshotsResult batchModifyClusterSnapshotsResult = new BatchModifyClusterSnapshotsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth...
().unmarshall(context));
1,644,494
protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {<NEW_LINE>String text = req.getParameter("text") != null ? req.getParameter("text") : "Hello World";<NEW_LINE>try (Context ic = new InitialContext();<NEW_LINE>ConnectionFactory cf = (ConnectionFactory) ic.lookup(...
"> message: " + e.getMessage());
665,597
private void add() {<NEW_LINE>if (fileChooser == null) {<NEW_LINE>fileChooser = new GhidraFileChooser(panel);<NEW_LINE>fileChooser.setMultiSelectionEnabled(allowMultiFileSelection);<NEW_LINE>fileChooser.setFileSelectionMode(fileChooserMode);<NEW_LINE>fileChooser.setTitle(title);<NEW_LINE>fileChooser.setApproveButtonToo...
Path(element.getAbsolutePath());
237,383
public void extract(byte[] segmentBytes, Metadata metadata, JpegSegmentType segmentType) {<NEW_LINE>JpegDirectory directory = metadata.getFirstDirectoryOfType(JpegDirectory.class);<NEW_LINE>if (directory == null) {<NEW_LINE>ErrorDirectory errorDirectory = new ErrorDirectory();<NEW_LINE>metadata.addDirectory(errorDirect...
TAG_IMAGE_HEIGHT, reader.getUInt16());
1,075,197
private void synchronizeTables() {<NEW_LINE>// TODO synchronize tables - identify renamed tables<NEW_LINE>// we need to identify tables which have been renamed.<NEW_LINE>// normally we would check the PK's ad_element_id, but in the<NEW_LINE>// past, when C_Allocation was renamed to C_AllocationLine,<NEW_LINE>// C_Alloc...
m_totalUpd.intValue() + 1);
1,418,074
// get first element<NEW_LINE>private static void testGetFirst() {<NEW_LINE>Collection<String> collection = Lists.newArrayList("a1", "a2", "a3", "a1");<NEW_LINE>OrderedIterable<String> orderedIterable = FastList.newListWith("a1", "a2", "a3", "a1");<NEW_LINE>Iterable<String> iterable = collection;<NEW_LINE>// get first ...
Iterables.getFirst(iterable, "1");
789,722
public static void cloneControlElements(List<TransitionElement> controlElements, List<TransitionElement> newControlElements) {<NEW_LINE>newControlElements.clear();<NEW_LINE>for (TransitionElement controlElement : controlElements) {<NEW_LINE>ObjectFactory jslFactory = objectFactoryMap.get(controlElement.getClass().getPa...
setOn(nextElement.getOn());
1,157,836
public void sendAAAA() {<NEW_LINE>if (c_logger.isTraceEntryExitEnabled())<NEW_LINE>c_logger.traceEntry(this, "StateMachine: sendAAAA: entry: id=" + hashCode());<NEW_LINE>if (haveSRVResponses()) {<NEW_LINE>for (int i = 0; i < _SRVResponses.length; i++) {<NEW_LINE>Vector vector2 = _SRVResponses[i];<NEW_LINE>for (Enumerat...
getTarget().toString());
814,101
public List<? extends Token> tokenize(String pattern) {<NEW_LINE>// split pattern into chunks: sea (raw input) and islands (<ID>, <expr>)<NEW_LINE>List<Chunk> chunks = split(pattern);<NEW_LINE>// create token stream from text and tags<NEW_LINE>List<Token> tokens = new ArrayList<Token>();<NEW_LINE>for (Chunk chunk : chu...
getTokenType(tagChunk.getTag());
945,311
public void run(RegressionEnvironment env) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>String createEpl = "@public create window MyWindow#keepall as select * from SupportBean";<NEW_LINE>if (indexShare) {<NEW_LINE>createEpl = "@Hint('enable_window_subquery_indexshare') " + createEpl;<NEW_LINE>}<NEW_L...
long startTime = System.currentTimeMillis();
1,332,674
Station map(StopPlace stopPlace) {<NEW_LINE>final I18NString name;<NEW_LINE>if (stopPlace.getName() == null) {<NEW_LINE>name = new NonLocalizedString("N/A");<NEW_LINE>} else if (stopPlace.getAlternativeNames() != null) {<NEW_LINE>Map<String, String> translations = new HashMap<>();<NEW_LINE>translations.put(null, stopPl...
getName().getValue());
922,380
private List<JSONObject> fillRelation(List<JSONObject> relation) throws Exception {<NEW_LINE>checkRelation(relation);<NEW_LINE>String id = relation.get(0).getString(Constant.INNER_ID) + Constant.RELATION_META_SEPARATOR + relation.get(1).getString(Constant.INNER_ID);<NEW_LINE>String type = relation.get(0).getString(Cons...
).getString(Constant.INNER_TYPE);
560,420
public static String base64Encode(byte[] bytes) {<NEW_LINE>if (bytes == null) {<NEW_LINE>throw new IllegalArgumentException("Input bytes must not be null.");<NEW_LINE>}<NEW_LINE>if (bytes.length >= BASE64_UPPER_BOUND) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>// Every three bytes is encoded into four characters.<NEW_LINE>/...
throw new IllegalArgumentException("Input bytes length must not exceed " + BASE64_UPPER_BOUND);
74,430
public DataCatalogConfig unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DataCatalogConfig dataCatalogConfig = new DataCatalogConfig();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori...
class).unmarshall(context));
547,280
public ListLicenseManagerReportGeneratorsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListLicenseManagerReportGeneratorsResult listLicenseManagerReportGeneratorsResult = new ListLicenseManagerReportGeneratorsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MA...
String currentParentElement = context.getCurrentParentElement();
823,969
public void update(Cell cell, long ts, byte[] oldValue, byte[] newValue) {<NEW_LINE>Object[] args = new Object[] { cell.getRowName(), cell.getColumnName(), ts, newValue, cell.getRowName(), cell.getColumnName(), ts, oldValue };<NEW_LINE>String prefixedTableName = prefixedTableNames.get(tableRef, conns);<NEW_LINE>String ...
+ " WHERE row_name = ?" + " AND col_name = ?" + " AND ts = ?" + " AND val = ?";
1,551,428
private List<StaffPeak> groupOf(List<StaffPeak> peaks) {<NEW_LINE>if (peaks.isEmpty()) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>final StaffPeak first = peaks.get(0);<NEW_LINE>// All peaks in staff<NEW_LINE>final List<StaffPeak> all = projectorOf(first.<MASK><NEW_LINE>final int i1 = all.indexOf(fir...
getStaff()).getPeaks();
234,507
private static // super fields<NEW_LINE>EvpnAddressFamily // super fields<NEW_LINE>create(// local fields<NEW_LINE>@Nullable @JsonProperty(PROP_ADDRESS_FAMILY_CAPABILITIES) AddressFamilyCapabilities addressFamilyCapabilities, // local fields<NEW_LINE>@Nullable @JsonProperty(PROP_EXPORT_POLICY) String exportPolicy, // l...
propagateUnmatched != null, "Missing %s", PROP_PROPAGATE_UNMATCHED);
1,329,838
public UpdateApprovalRuleTemplateDescriptionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpdateApprovalRuleTemplateDescriptionResult updateApprovalRuleTemplateDescriptionResult = new UpdateApprovalRuleTemplateDescriptionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<...
JsonToken token = context.getCurrentToken();
290,989
public void draw(GL2 gl, final TextureCache cache) {<NEW_LINE>gl.glMatrixMode(GLMatrixFunc.GL_PROJECTION);<NEW_LINE>gl.glPushMatrix();<NEW_LINE>gl.glLoadIdentity();<NEW_LINE>gl.glMatrixMode(GLMatrixFunc.GL_MODELVIEW);<NEW_LINE>gl.glPushMatrix();<NEW_LINE>gl.glLoadIdentity();<NEW_LINE>gl.glScaled(1, 1, -1);<NEW_LINE>Tex...
sky = cache.getTexture(imageURL);
10,518
public J visitParameterizedType(ParameterizedTypeTree node, Space fmt) {<NEW_LINE>J.Identifier id = (J.Identifier) javaVisitor.scan(node.getType(), Space.EMPTY);<NEW_LINE>List<JRightPadded<Expression>> expressions = new ArrayList<>(node.getTypeArguments().size());<NEW_LINE>// skip '<', JavaDocVisitor does not interpret...
whitespaceBeforeAsString(), emptyList());
460,168
public void marshall(InsertableImage insertableImage, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (insertableImage == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(insertableImage.getDuration(), DURATION...
insertableImage.getHeight(), HEIGHT_BINDING);
1,123,736
private void openNewObject() {<NEW_LINE>IWorkbenchWindow workbenchWindow = UIUtils.getActiveWorkbenchWindow();<NEW_LINE>try {<NEW_LINE>final DBNDatabaseNode newChild = DBWorkbench.getPlatform().getNavigatorModel().findNode(newObject);<NEW_LINE>if (newChild != null) {<NEW_LINE>DatabaseNavigatorView view = UIUtils.findVi...
editorInput.setDefaultPageId(EntityEditorDescriptor.DEFAULT_OBJECT_EDITOR_ID);
1,038,313
public ApplicationInfo queryApplicationInfo(String application, long start, long end) {<NEW_LINE>StopWatch stopWatch = new StopWatch();<NEW_LINE>stopWatch.start();<NEW_LINE>ApplicationStatisticsStorage applicationStatisticsStorage = APPLICATION_STORAGES.get(application);<NEW_LINE>ApplicationInfo applicationInfo = new A...
null, "elapsed", start, end);
1,053,621
protected static Map<String, Object> fromAttributeValueMap(Map<String, AttributeValue> item) {<NEW_LINE>Map<String, Object> option = new LinkedHashMap<>();<NEW_LINE>option.put("engine", item.get("engine").s());<NEW_LINE>option.put("region", item.get("region").s());<NEW_LINE>Map<String, AttributeValue> optionAttributes ...
versions = new ArrayList<>();
1,057,971
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>final String uri = sources[0].toString();<NEW_LINE>String contentType = "application/json";<NEW_LINE>// overrid...
Object[] { responseBody }));
1,658,654
private void processServerHelloDone() throws HandshakeException {<NEW_LINE>flightNumber += 2;<NEW_LINE>flight5 = createFlight();<NEW_LINE>createCertificateMessage(flight5);<NEW_LINE>PskPublicInformation clientIdentity;<NEW_LINE>DTLSSession session = getSession();<NEW_LINE>KeyExchangeAlgorithm keyExchangeAlgorithm = ses...
generateSecret(serverKeyExchange.getEncodedPoint());
903,204
public void populate(ChunkManager level, int chunkX, int chunkZ, NukkitRandom random) {<NEW_LINE>this.level = level;<NEW_LINE>BaseFullChunk chunk = level.getChunk(chunkX, chunkZ);<NEW_LINE>int bx = chunkX << 4;<NEW_LINE>int bz = chunkZ << 4;<NEW_LINE>int tx = bx + 15;<NEW_LINE>int tz = bz + 15;<NEW_LINE>ObjectOre ore =...
random.nextRange(0, 15);
504,218
final DeleteExplainabilityResult executeDeleteExplainability(DeleteExplainabilityRequest deleteExplainabilityRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteExplainabilityRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
invoke(request, responseHandler, executionContext);
1,544,947
private static boolean isEnabled(Preferences node, Element el) {<NEW_LINE>switch(el.getKind()) {<NEW_LINE>case ANNOTATION_TYPE:<NEW_LINE>case CLASS:<NEW_LINE>case ENUM:<NEW_LINE>case INTERFACE:<NEW_LINE>case // ???<NEW_LINE>TYPE_PARAMETER:<NEW_LINE>return node.getBoolean(MarkOccurencesSettingsNames.TYPES, true);<NEW_LI...
getBoolean(MarkOccurencesSettingsNames.METHODS, true);
739,416
public void read(org.apache.thrift.protocol.TProtocol iprot, Log_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.apache...
skip(iprot, schemeField.type);
1,149,474
private void safeAppendEntry(final long lowestPosition, final long highestPosition, final ByteBuffer data, final AppendListener appendListener) {<NEW_LINE>raft.checkThread();<NEW_LINE>final ApplicationEntry entry = new ApplicationEntry(lowestPosition, highestPosition, data);<NEW_LINE>if (!isRunning()) {<NEW_LINE>append...
).validateEntry(lastZbEntry, entry);
728,155
final SuspendProcessesResult executeSuspendProcesses(SuspendProcessesRequest suspendProcessesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(suspendProcessesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
invoke(request, responseHandler, executionContext);
1,853,670
public void execute() throws MojoExecutionException, MojoFailureException {<NEW_LINE>getLog().info("Going to measure the coverage of manually written test cases with EvoSuite");<NEW_LINE>Set<String> cp = new LinkedHashSet<>();<NEW_LINE>// Get compile elements (i.e., classes under /target/classes)<NEW_LINE>List<String> ...
getLog().info("Params:");
287,397
public static ErrorDescription switchExpression(HintContext ctx) {<NEW_LINE>TreePath select = ctx.getVariables().get("$select");<NEW_LINE>TypeMirror m = ctx.getInfo().getTrees().getTypeMirror(select);<NEW_LINE>if (m == null || m.getKind() != TypeKind.DECLARED) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>State r = compu...
ctx.getPath(), displayName);
220,049
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (retcode_ != 0) {<NEW_LINE>output.writeInt32(1, retcode_);<NEW_LINE>}<NEW_LINE>if (targetWeaponGuid_ != 0L) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (targetWeaponAwakenLevel_ != 0) {<NEW_LINE>output.writeUInt32(3,...
output.writeUInt64(2, targetWeaponGuid_);
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 <MASK><NEW_LINE>determineCompressionMode();<NEW_LINE>} else {<NEW_LINE>addWarn...
FileNamePattern(fileNamePatternStr, this.context);