idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
343,855
public void visit(ArraySchema arraySchema) {<NEW_LINE>AbstractSchema items = arraySchema.items();<NEW_LINE>if (items.type() == Type.OBJECT) {<NEW_LINE>nodes.put(this.parentTableKey, SampleNodeGenerator.createTableArray(this.parentTableKey, arraySchema.description(<MASK><NEW_LINE>Map<String, AbstractSchema> children = (...
).orElse(null)));
1,540,209
public static LambdaMethod createLambdaMethod(JavaElement parent, org.eclipse.jdt.internal.compiler.ast.LambdaExpression lambdaExpression) {<NEW_LINE>int length;<NEW_LINE>JavaModelManager manager = JavaModelManager.getJavaModelManager();<NEW_LINE>String[] parameterTypes = new String[length = lambdaExpression.descriptor...
manager, lambdaExpression.descriptor.returnType);
1,810,996
public static void tryDropDefaultShardingTableConfig(String schema, String tableName) {<NEW_LINE>SchemaConfig schemaConfig = DbleServer.getInstance().getConfig().getSchemas().get(schema);<NEW_LINE>if (schemaConfig != null && schemaConfig.getTable(tableName) instanceof ShardingTableFakeConfig) {<NEW_LINE>// remove<NEW_L...
.getShardingNodes().toString();
909,521
public void addSilence(SIMPMessage msgItem) throws SIResourceException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.<MASK><NEW_LINE>// Get the JsMessage as we need to update the Guaranteed fields<NEW_LINE>JsMessage jsMsg = msgItem.getMessage();<NEW_LINE>SIBUuid12 streamID =...
entry(tc, "addSilence", msgItem);
1,463,487
protected void read(Map<Integer, ByteBuffer> tags) {<NEW_LINE>for (Iterator<Entry<Integer, ByteBuffer>> it = tags.entrySet().iterator(); it.hasNext(); ) {<NEW_LINE>Entry<Integer, ByteBuffer> entry = it.next();<NEW_LINE>ByteBuffer _bb = entry.getValue();<NEW_LINE>switch(entry.getKey()) {<NEW_LINE>case 0x4801:<NEW_LINE>t...
sequenceRef = UL.read(_bb);
917,139
public ClickFeedback unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ClickFeedback clickFeedback = new ClickFeedback();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
class).unmarshall(context));
1,102,145
protected void processProgramVars() {<NEW_LINE>if (program.getLanguage().getProcessor() == Processor.findOrPossiblyCreateProcessor("PowerPC")) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>SymbolTable symbolTable = program.getSymbolTable();<NEW_LINE>int defaultPointerSize = program.getDefaultPointerSize();<NEW_LINE>DataType i...
.getAddress(0), charPointerX2DataType);
658,447
private static void mergeSort2(float[] a, int fromIndex, int toIndex) {<NEW_LINE>rangeCheck(<MASK><NEW_LINE>final int NEG_ZERO_BITS = Float.floatToIntBits(-0.0f);<NEW_LINE>int numNegZeros = 0;<NEW_LINE>int i = fromIndex, n = toIndex;<NEW_LINE>while (i < n) {<NEW_LINE>if (a[i] != a[i]) {<NEW_LINE>a[i] = a[--n];<NEW_LINE...
a.length, fromIndex, toIndex);
414,356
Mono<Response<KeyVaultKey>> updateKeyPropertiesWithResponse(KeyProperties keyProperties, Context context, KeyOperation... keyOperations) {<NEW_LINE>Objects.requireNonNull(keyProperties, "The key properties input parameter cannot be null.");<NEW_LINE>context = context == null ? Context.NONE : context;<NEW_LINE>KeyReques...
setReleasePolicy(keyProperties.getReleasePolicy());
869,504
public static double angleSparseDense(SparseNumberVector v1, NumberVector v2) {<NEW_LINE>// TODO: exploit precomputed length, when available.<NEW_LINE>final int dim2 = v2.getDimensionality();<NEW_LINE>double l1 = 0., l2 = 0., cross = 0.;<NEW_LINE>int i1 = v1.iter(), d2 = 0;<NEW_LINE>while (v1.iterValid(i1)) {<NEW_LINE>...
a < 1.) ? a : 1.;
452,560
public void paint(Graphics2D g2, Rectangle rect) {<NEW_LINE>Paint oldPaint = g2.getPaint();<NEW_LINE>Arc2D arc = new Arc2D.Double(rect.x - radius + 0.5f, rect.y + rect.height - radius * 2 + 0.5f, radius * 2, radius * 2, -90, 90, Arc2D.OPEN);<NEW_LINE>GeneralPath gp = new GeneralPath(arc);<NEW_LINE>arc = new Arc2D.Doubl...
, -90, Arc2D.OPEN);
131,898
void computeCostInnerD(final short[] costXD, final int idxCost, int idxLrPrev, final int lengthLocalD, final short[] workCostLr) {<NEW_LINE>// idxLrPrev is +1<NEW_LINE>final int nextRow = this.lengthD - 1;<NEW_LINE>final int penalty1 = this.penalty1;<NEW_LINE>final int penalty2 = this.penalty2;<NEW_LINE>// start at d=1...
workCostLr[idxLrPrev - 1] & 0xFFFF;
1,180,481
final ListEnabledProductsForImportResult executeListEnabledProductsForImport(ListEnabledProductsForImportRequest listEnabledProductsForImportRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listEnabledProductsForImportRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
615,061
GitRevision fetch(ImmutableMultimap<String, String> additionalLabels) throws RepoException, ValidationException {<NEW_LINE>String metaRef = String.format("refs/changes/%02d/%d/meta", change % 100, change);<NEW_LINE>repository.fetch(repoUrl, /*prune=*/<NEW_LINE>true, /*force=*/<NEW_LINE>true, ImmutableList.of(ref + ":re...
repository.resolveReference("refs/gerrit/" + ref);
726,958
private boolean filterExpandableObject(T item, List<T> filteredItems) {<NEW_LINE>boolean filtered = false;<NEW_LINE>// Is item an expandable?<NEW_LINE>if (isExpandable(item)) {<NEW_LINE>IExpandable expandable = (IExpandable) item;<NEW_LINE>// Save which expandable was originally expanded before filtering it out<NEW_LIN...
mExpandedFilterFlags = new HashSet<>();
164,733
public CreateAgentStatusResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateAgentStatusResult createAgentStatusResult = new CreateAgentStatusResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<...
int originalDepth = context.getCurrentDepth();
1,236,104
final AllocateTransitVirtualInterfaceResult executeAllocateTransitVirtualInterface(AllocateTransitVirtualInterfaceRequest allocateTransitVirtualInterfaceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(allocateTransitVirtualInterfaceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = ...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,323,491
public static URI relativize(URI from, URI to) {<NEW_LINE>if (!compare(from.getScheme(), to.getScheme()))<NEW_LINE>return to;<NEW_LINE>if (!compare(from.getHost(), to.getHost()))<NEW_LINE>return to;<NEW_LINE>if (from.getPort() != to.getPort())<NEW_LINE>return to;<NEW_LINE>if (from.getPath() == null && to.getPath() == n...
.path(tsplit[i]);
931,908
private void handleResultEvent(TaskEvent taskEvent, TaskInstance taskInstance) {<NEW_LINE>Channel channel = taskEvent.getChannel();<NEW_LINE>try {<NEW_LINE>if (taskInstance != null) {<NEW_LINE>dataQualityResultOperator.operateDqExecuteResult(taskEvent, taskInstance);<NEW_LINE>taskInstance.setStartTime(taskEvent.getStar...
setState(taskEvent.getState());
359,683
private synchronized void reapStalledTransfers() {<NEW_LINE>final AtomicInteger stalledTrasfersCounter = new AtomicInteger();<NEW_LINE>final Instant now = Instant.now();<NEW_LINE>// Iterate active transfers, shut down and remove the ones that are not making progress<NEW_LINE>this.activeTransfers.entrySet().removeIf(ent...
AgentFileChunkObserver observer = transfer.getAgentFileChunkObserver();
817,206
public int compareTo(TFServiceInfo 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.valueOf(isSetServiceName()).compareTo(other.isSetServiceNam...
compareTo(other.isSetServiceLibs());
1,722,617
public Msg encode(Msg msg) {<NEW_LINE>assert (state == State.CONNECTED);<NEW_LINE>byte flags = 0;<NEW_LINE>if (msg.hasMore()) {<NEW_LINE>flags |= 0x01;<NEW_LINE>}<NEW_LINE>if (msg.isCommand()) {<NEW_LINE>flags |= 0x02;<NEW_LINE>}<NEW_LINE>ByteBuffer messageNonce = ByteBuffer.allocate(Curve.Size.NONCE.bytes());<NEW_LINE...
Size.BOXZERO.bytes());
333,813
public okhttp3.Call connectGetNamespacedPodPortforwardCall(String name, String namespace, Integer ports, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/pods/{name}/portfo...
localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
1,622,632
public CodegenExpression make(CodegenMethodScope parent, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenMethod method = parent.makeChild(PropertyEvaluatorSimple.EPTYPE, <MASK><NEW_LINE>method.getBlock().declareVarNewInstance(PropertyEvaluatorSimple.EPTYPE, "pe").exprDotMethod(ref("pe"), ...
this.getClass(), classScope);
415,065
/*<NEW_LINE>* Two colors, represented by Rl,Gl,Bl and Rh,Gh,Bh respectively are mixed according to the percentage "percent"<NEW_LINE>*/<NEW_LINE>private String color(float percent, int Rl, int Rh, int Gl, int Gh, int Bl, int Bh) {<NEW_LINE>int redValue = (int) (Rl + (Rh <MASK><NEW_LINE>int greenValue = (int) (Gl + (Gh ...
- Rl) * percent / 100);
789,172
private final void drawBars(boolean xIsDescription, Double[][] values, int sourceAxisPos, int valueAxisPos, Double valueSegment, int descSegment, List<String> colors) {<NEW_LINE>int barLength;<NEW_LINE>int valueRowAmount = values.length;<NEW_LINE>for (int vIndex = 0; vIndex < valueRowAmount; vIndex++) {<NEW_LINE>int cI...
(Theme.PredefinedColors.TRANSPARENT));
540,873
static private List<ToolChainCandidate> findClangs(boolean mustFind) {<NEW_LINE>List<ToolChainCandidate> toolChains = Lists.newArrayList();<NEW_LINE>// On macOS, we assume co-located Xcode is installed into /opt/xcode and default location at /Applications/Xcode.app<NEW_LINE>// We need to search for Clang differently on...
.iterator().next();
513,271
/* (non-Javadoc)<NEW_LINE>* @see org.netbeans.modules.web.beans.navigation.actions.AbstractWebBeansAction#modelAcessAction(org.netbeans.modules.web.beans.api.model.WebBeansModel, org.netbeans.modules.j2ee.metadata.model.api.MetadataModel, java.lang.Object[], javax.swing.text.JTextComponent, org.openide.filesystems.File...
metaModel, subject, component, fileObject);
113,109
private List<Wo> list(Business business, Wi wi, List<Identity> identityList) throws Exception {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Person.class);<NEW_LINE><MASK><NEW_LINE>CriteriaQuery<String> cq = cb.createQuery(String.class);<NEW_LINE>Root<Pers...
CriteriaBuilder cb = em.getCriteriaBuilder();
1,723,437
private void shareLogs() {<NEW_LINE>try {<NEW_LINE>String fileName = "MBW-" + dateFormat.format(new Date()) + ".txt";<NEW_LINE>File logsExport = DataExport.getLogsExport(getFormattedLogs(null), getFileStreamPath(fileName));<NEW_LINE>PackageManager packageManager = Preconditions.checkNotNull(this.getPackageManager());<N...
getPackageName(), PackageManager.GET_PROVIDERS);
1,329,428
private void checkPrimaryStatus(Message msg) {<NEW_LINE>if (msg instanceof InstantiateVolumeOnPrimaryStorageMsg) {<NEW_LINE>new PrimaryStorageValidater().disable().maintenance().validate();<NEW_LINE>} else if (msg instanceof DownloadVolumeTemplateToPrimaryStorageMsg) {<NEW_LINE>new PrimaryStorageValidater().disable().m...
.maintenance().validate();
1,760,415
public String TIME(Integer hours, Integer minutes, Integer seconds, String timePattern) {<NEW_LINE>if (hours == null || minutes == null || seconds == null) {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug("None of the arguments can be null.");<NEW_LINE>}<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>LocalTime lt =...
getReportTimeZone().toZoneId());
1,668,947
public void marshall(TimestreamAction timestreamAction, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (timestreamAction.getRoleArn() != null) {<NEW_LINE>String roleArn = timestreamAction.getRoleArn();<NEW_LINE>jsonWriter.name("roleArn");<NEW_LINE>jsonWriter.value(roleArn);<...
).marshall(timestamp, jsonWriter);
571,448
protected List<String> findStringsInLogsAndTraceUsingMarkMultiRegexp(List<String> regexpList, String traceFileNamePrefix) throws Exception {<NEW_LINE>List<String> matches = new ArrayList<String>();<NEW_LINE>LogSearchResult newOffsetAndMatches;<NEW_LINE>Long offset = getMarkOffset(getDefaultLogPath());<NEW_LINE>newOffse...
traceLogBaseNames = listDirectoryContents(logsRoot, traceFileNamePrefix);
551,174
public static void horizontal7(Kernel1D_S32 kernel, GrayU8 input, GrayI8 output, int skip, int divisor) {<NEW_LINE>final byte[] dataSrc = input.data;<NEW_LINE>final byte[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_L...
indexSrc++] & 0xFF) * k1;
366,851
public RoleBean create(NewRoleBean bean) throws RoleAlreadyExistsException, NotAuthorizedException {<NEW_LINE>securityContext.checkAdminPermissions();<NEW_LINE>RoleBean role = new RoleBean();<NEW_LINE>role.setAutoGrant(bean.getAutoGrant());<NEW_LINE>role.setCreatedBy(securityContext.getCurrentUser());<NEW_LINE>role.set...
setPermissions(bean.getPermissions());
254,696
public void change(final Event e, @Nullable final Object[] delta, final ChangeMode mode) {<NEW_LINE>double d = delta == null ? 0 : ((Number) delta[0]).doubleValue();<NEW_LINE>switch(mode) {<NEW_LINE>case DELETE:<NEW_LINE>case SET:<NEW_LINE>for (final LivingEntity entity : getExpr().getArray(e)) {<NEW_LINE>assert entity...
, HealthUtils.getMaxHealth(entity));
1,227,595
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>changeAuthorizations_result result = new changeAuthorizations_result();<NEW_LINE>if (e instanceof ThriftSecurityException) {<NEW_LINE><MASK><NEW_LINE...
result.sec = (ThriftSecurityException) e;
50,676
public static String encode(byte[] in) {<NEW_LINE>StringBuilder out = s_workBuffer.get();<NEW_LINE>out.setLength(0);<NEW_LINE>int inLength = in.length;<NEW_LINE>int nFullGroups = inLength / 3;<NEW_LINE>int nBytesInPartialGroup = inLength - 3 * nFullGroups;<NEW_LINE>int inIndex = 0;<NEW_LINE>for (int i = 0; i < nFullGro...
= in[inIndex++] & 0xff;
1,414,063
public String loginUser(String username, String password) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'username' is set<NEW_LINE>if (username == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'username' when calling loginUser");<...
HashMap<String, String>();
1,193,631
private AbstractR2Servlet buildR2ServletFromServletParams(ServletConfig servletConfig) {<NEW_LINE>ResourceFactory resourceFactory = new PrototypeResourceFactory();<NEW_LINE>RestLiConfig config = new RestLiConfig();<NEW_LINE>config.setResourcePackageNamesSet(getResourcePackageSet(servletConfig));<NEW_LINE>final Schedule...
throw new IllegalArgumentException("This servlet is configured with useAsync=true, but the current servlet " + "context does not support the required Servlet API 3.0.");
1,396,442
public com.amazonaws.services.imagebuilder.model.InvalidParameterCombinationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.imagebuilder.model.InvalidParameterCombinationException invalidParameterCombinationException = new com.amazonaws.services.imageb...
JsonToken token = context.getCurrentToken();
1,646,936
final ListObjectAttributesResult executeListObjectAttributes(ListObjectAttributesRequest listObjectAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listObjectAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "CloudDirectory");
1,074
public static void main(String[] args) {<NEW_LINE>// test directories are automatically added<NEW_LINE>String[] directories = new String[] { "main/boofcv-geo/src/main/java/boofcv/alg", "main/boofcv-geo/src/main/java/boofcv/struct/geo", "main/boofcv-ip-multiview/src/main/java/boofcv/alg", "main/boofcv-io/src/main/java/b...
converter.replacePattern("UtilEjml.EPS", "UtilEjml.F_EPS");
190,280
public GenericRow updateRecord(GenericRow record, RecordInfo recordInfo) {<NEW_LINE>// Directly return the record when partial-upsert is not enabled<NEW_LINE>if (_partialUpsertHandler == null) {<NEW_LINE>return record;<NEW_LINE>}<NEW_LINE>// Ensure all previous records are loaded before inserting new records<NEW_LINE>w...
_partialUpsertHandler.merge(previousRecord, record);
1,362,322
public boolean isMandatory(boolean checkContext) {<NEW_LINE>// Do we have a mandatory rule<NEW_LINE>// metas: 03093<NEW_LINE>if (checkContext) {<NEW_LINE>// boolean retValue = Evaluator.evaluateLogic(this, m_vo.MandatoryLogic);<NEW_LINE>final Evaluatee evaluationCtx = createEvaluationContext(null);<NEW_LINE>final ILogi...
mandatoryLogic.evaluate(evaluationCtx, true);
582,224
public void createMenuItems(final Bundle savedInstanceState) {<NEW_LINE>Bundle args = getArguments();<NEW_LINE>if (args != null) {<NEW_LINE>pointType = PointType.valueOf(args.getString(POINT_TYPE_KEY));<NEW_LINE>}<NEW_LINE>if (savedInstanceState != null && savedInstanceState.getBoolean(IS_SORTED)) {<NEW_LINE>sortByDist...
R.layout.recyclerview, null);
575,658
public MembersView handleMastershipClaim(@Nonnull Address candidateAddress, @Nonnull UUID candidateUuid) {<NEW_LINE>checkNotNull(candidateAddress);<NEW_LINE>checkNotNull(candidateUuid);<NEW_LINE>checkFalse(getThisAddress()<MASK><NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE>checkTrue(isJoined(), candidateAddress + " cl...
.equals(candidateAddress), "cannot accept my own mastership claim!");
1,001,956
public static void killOld() {<NEW_LINE>// Note: failure here doesn't necessarily mean we need admin rights,<NEW_LINE>// only that we lack the required permission for these specific items.<NEW_LINE>try {<NEW_LINE>killProc();<NEW_LINE>} catch (AccessControlException e) {<NEW_LINE>LOGGER.error("Failed to check for alread...
() ? "\nUMS might need to run as an administrator to access the PID file" : ""));
1,040,705
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets .Composite)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void createPartControl(Composite parent) {<NEW_LINE>int style = WebBrowserViewer.NAVIGATION_BAR;<NEW_LINE>if (PlatformUtil.isLinux()) {<NEW_L...
worked(event.current - progressWorked);
414,785
public List<Sku> readSkusByIds(List<Long> skuIds) {<NEW_LINE>if (skuIds == null || skuIds.size() == 0) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (skuIds.size() > 100) {<NEW_LINE>logger.warn("Not recommended to use the readSkusByIds method for long lists of skuIds, since " + "Hibernate is required to transform the ...
criteria.from(SkuImpl.class);
344,132
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "@name('s0') " + EventRepresentationChoice.AVRO.getAnnotationText() + " select 1 as myInt," + "{1L, 2L} as myLongArray," + EPLInsertIntoPopulateCreateStreamAvro.class.getName() + ".makeByteArray() as myByteArray, " + EPLInsertIntoPopulateCreateStreamAvr...
getEventType()).getSchemaAvro();
373,274
protected void updatePolyBuffers(boolean lit, boolean tex, boolean needNormals, boolean needTexCoords) {<NEW_LINE>createPolyBuffers(PGL.bufferUsageImmediate);<NEW_LINE>pgl.bindBuffer(PGL.ARRAY_BUFFER, bufPolyVertex.glId);<NEW_LINE>tessGeo.copyPolyVertices(PGL.bufferUsageImmediate);<NEW_LINE>pgl.bindBuffer(PGL.ARRAY_BUF...
copyPolyAttribs(attrib, PGL.bufferUsageImmediate);
1,733,194
public void awakeFromNib() {<NEW_LINE>this.toolbar = NSToolbar.toolbarWithIdentifier("Transfer Toolbar");<NEW_LINE>this.toolbar.setDelegate(this.id());<NEW_LINE>this.toolbar.setAllowsUserCustomization(true);<NEW_LINE>this.toolbar.setAutosavesConfiguration(true);<NEW_LINE>this.toolbar.setDisplayMode(NSToolbar.NSToolbarD...
transferTable.setGridStyleMask(NSTableView.NSTableViewSolidHorizontalGridLineMask);
410,540
private void addConstructor(AnnotationTypeDeclaration node, Map<ExecutableElement, VariableElement> fieldElements) {<NEW_LINE>TypeElement type = node.getTypeElement();<NEW_LINE>String typeName = nameTable.getFullName(type);<NEW_LINE>FunctionDeclaration constructorDecl = new FunctionDeclaration("create_" + typeName, typ...
add(new NativeStatement("return self;"));
1,654,022
final GetDocumentResult executeGetDocument(GetDocumentRequest getDocumentRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDocumentRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
474,388
public void iteration() {<NEW_LINE>this.network.getParams().C = this.c;<NEW_LINE>this.network.getParams().gamma = this.gamma;<NEW_LINE>EncogLogging.log(EncogLogging.LEVEL_INFO, "Training with parameters C = " + c + ", gamma = " + gamma);<NEW_LINE>if (this.fold > 1) {<NEW_LINE>// cross validate<NEW_LINE>final double[] t...
, this.problem, target));
835,349
public void onResponse(IndicesStatsResponse indicesStatsResponse) {<NEW_LINE>final ShardStats[] stats = indicesStatsResponse.getShards();<NEW_LINE>final ImmutableOpenMap.Builder<String, Long<MASK><NEW_LINE>final ImmutableOpenMap.Builder<ShardRouting, String> dataPathByShardRoutingBuilder = ImmutableOpenMap.builder();<N...
> shardSizeByIdentifierBuilder = ImmutableOpenMap.builder();
38,055
private Stream<PPOrderCost> createPPOrderCostsAndStream(final PPOrderCostCandidate candidate) {<NEW_LINE>final Set<CostElementId> costElementIds = costElementsRepo.getActiveCostElementIds();<NEW_LINE>if (costElementIds.isEmpty()) {<NEW_LINE>// shall not happen!<NEW_LINE><MASK><NEW_LINE>return Stream.empty();<NEW_LINE>}...
logger.warn("No active costs elements found. Returning empty for {}", candidate);
149,023
private CompletableFuture<List<SetMonitoringModeResult>> executeAsync(UInteger operationLimit) {<NEW_LINE>List<Map.Entry<OpcUaMonitoredItem, MonitoringMode>> entries = new ArrayList<>(monitoringModesByItem.entrySet());<NEW_LINE>CompletableFuture<List<SetMonitoringModeResult>> resultsFuture = GroupMapCollate.groupMapCol...
List<CompletableFuture<SetMonitoringModeResult>> futures;
8,091
final DeleteUserAttributesResult executeDeleteUserAttributes(DeleteUserAttributesRequest deleteUserAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteUserAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,100,903
public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create window MyRectangleWindow#keepall as (id string, rx double, ry double, rw double, rh double);\n" + "insert into MyRectangleWindow select id, x as rx, y as ry, width as rw, height as rh from SupportSpatialEventRectangle;\n" + "create index Idx on ...
, y, 0.5, 0.5));
884,846
public void markup(OatHeader oatHeader, Program program, TaskMonitor monitor, MessageLog log) throws Exception {<NEW_LINE>Symbol oatDataSymbol = OatUtilities.getOatDataSymbol(program);<NEW_LINE>Address address = oatDataSymbol.getAddress();<NEW_LINE>Address dataAddress = address.add(_offset);<NEW_LINE>program.getListing...
getFieldName(), SourceType.ANALYSIS);
1,683,935
public GetWorkGroupResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetWorkGroupResult getWorkGroupResult = new GetWorkGroupResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.get...
String currentParentElement = context.getCurrentParentElement();
734,759
protected Map<String, Object> toMap() throws IOException {<NEW_LINE>try {<NEW_LINE>Map<String, Object> map = new HashMap<>();<NEW_LINE>synchronized (this) {<NEW_LINE>MapUtils.exportInt(map, "state", state);<NEW_LINE>MapUtils.setMapString(map, "error", error);<NEW_LINE>MapUtils.setMapString(map, "target", target.getID()...
exportBooleanAsLong(map, "ar_enable", auto_retry_enabled);
652,648
public void expandIntoScope(NinjaScope scope, Map<NinjaScope, List<FileFragment>> rawTargets) throws InterruptedException, GenericParsingException, IOException {<NEW_LINE>scope.setRules(rules);<NEW_LINE>scope.setPools(pools);<NEW_LINE>rawTargets.put(scope, targets);<NEW_LINE>TreeMap<Long, NinjaCallable> resolvables = M...
Long offset = entry.getKey();
1,414,378
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = "theString".split(",");<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create window ABCWin#length(2) as SupportBean", path);<NEW_LINE>env.compileDeploy("insert into ABCWin select * from SupportBean", path)...
new Object[] { "E4" });
1,047,676
private void applyServerEdits() {<NEW_LINE>try {<NEW_LINE>// apply edits to the server<NEW_LINE>final ListenableFuture<List<FeatureEditResult>> updatedServerResult = mServiceFeatureTable.applyEditsAsync();<NEW_LINE>updatedServerResult.addDoneListener(() -> {<NEW_LINE>try {<NEW_LINE>List<FeatureEditResult> edits = updat...
get("objectid").toString();
713,479
final ListCoreDefinitionVersionsResult executeListCoreDefinitionVersions(ListCoreDefinitionVersionsRequest listCoreDefinitionVersionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listCoreDefinitionVersionsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.SERVICE_ID, "Greengrass");
1,148,894
public Deferred<ArrayList<Void>> shutdown() {<NEW_LINE>checkIsClosed();<NEW_LINE>closed = true;<NEW_LINE>// This is part of step 2. We need to execute this in its own thread<NEW_LINE>// because Netty gets stuck in an infinite loop if you try to shut it<NEW_LINE>// down from within a thread of its own thread pool. The...
.addCallback(new ReleaseResourcesCB());
1,241,391
public void mouseReleased(final MouseEvent me) {<NEW_LINE>if (!armed)<NEW_LINE>return;<NEW_LINE>armed = false;<NEW_LINE>if (zoomType == ZoomType.PANNING)<NEW_LINE>setCursor(zoomType.getCursor());<NEW_LINE>if (end == null || start == null)<NEW_LINE>return;<NEW_LINE>switch(zoomType) {<NEW_LINE>case RUBBERBAND_ZOOM:<NEW_L...
setRange(t1, t2, true);
1,799,978
public UpstreamRepositoryInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UpstreamRepositoryInfo upstreamRepositoryInfo = new UpstreamRepositoryInfo();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_...
int originalDepth = context.getCurrentDepth();
1,081,538
public void center() {<NEW_LINE>int windowTop = RootPanel.get().getAbsoluteTop();<NEW_LINE>int windowLeft = RootPanel.get().getAbsoluteLeft();<NEW_LINE>int windowRight = windowLeft + RootPanel.get().getOffsetWidth();<NEW_LINE>int windowBottom = windowTop + RootPanel.get().getOffsetHeight();<NEW_LINE>int offsetWidth = p...
-= (left + offsetWidth) - windowRight;
1,443,381
public void draw(GraphicsContext ctx) {<NEW_LINE>Point c = getCenter();<NEW_LINE>double cx = c.x;<NEW_LINE>double cy = c.y;<NEW_LINE>ctx.ellipsemode(GraphicsContext.EllipseMode.CENTER);<NEW_LINE>ctx.nofill();<NEW_LINE>ctx.stroke(HANDLE_COLOR);<NEW_LINE>ctx.ellipse(cx, cy, handleLength * 2, handleLength * 2);<NEW_LINE>d...
(float) xy[1]);
145,222
private Iterable<CacheEntryEvent<? extends K, ? extends V>> createCacheEntryEvent(Collection<CacheEventData> keys) {<NEW_LINE>HashSet<CacheEntryEvent<? extends K, ? extends V>> evt = new HashSet<CacheEntryEvent<? extends K, ? extends V>>();<NEW_LINE>for (CacheEventData cacheEventData : keys) {<NEW_LINE>EventType eventT...
toObject(cacheEventData.getDataValue());
576,170
public CreateMedicalVocabularyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateMedicalVocabularyResult createMedicalVocabularyResult = new CreateMedicalVocabularyResult();<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>reader.beginObject();<NEW_LINE>while (reader.hasNe...
().unmarshall(context));
234,681
public ResponseEntity<IdentityZone> deleteIdentityZone(@PathVariable String id) {<NEW_LINE>if (id == null) {<NEW_LINE>throw new ZoneDoesNotExistsException(id);<NEW_LINE>}<NEW_LINE>if (!IdentityZoneHolder.isUaa() && !id.equals(IdentityZoneHolder.get().getId())) {<NEW_LINE>throw new AccessDeniedException("Zone admins can...
(removeKeys(zone), OK);
1,099,800
private static boolean checkAccess(Class<?> invoker, Member target, Object anInstance) {<NEW_LINE>int modifiers = target.getModifiers();<NEW_LINE>boolean isStatic = Modifier.isStatic(modifiers);<NEW_LINE>boolean isPublic = Modifier.isPublic(modifiers);<NEW_LINE>boolean isProtected = Modifier.isProtected(modifiers);<NEW...
!(isPrivate || isProtected || isPublic);
463,690
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>java.awt.GridBagConstraints gridBagConstraints;<NEW_LINE>jLabel1 = new javax.swing.JLabel();<NEW_LINE>labelSize = new javax.swing.JLabel();<NEW_LINE>sizeLabel = new javax.swing.JLa...
(SizerPanel.class, "SizerPanel.labelSize.text"));
1,256,255
// @formatter:on<NEW_LINE>@Overwrite<NEW_LINE>@Nullable<NEW_LINE>public Packet<?> nextUpdatePacket(int i) {<NEW_LINE>// CraftBukkit<NEW_LINE>RenderData render = ((MapDataBridge) outerThis).bridge$getMapView().render(((ServerPlayerEntityBridge) this.player).bridge$getBukkitEntity());<NEW_LINE>MapItemSavedData.MapPatch p...
cursor.getCaption())));
594,297
private // r is an input or output route, so the outputRoute flag distinguishes these cases.<NEW_LINE>BDD routeConstraintsToBDD(BgpRouteConstraints constraints, BDDRoute r, boolean outputRoute, ConfigAtomicPredicates configAPs) {<NEW_LINE>// make sure the model we end up getting corresponds to a valid route<NEW_LINE>BD...
, r.getMed()));
1,236,258
public void deleteOnCreator(Integer creator) throws Exception {<NEW_LINE>boolean create = true;<NEW_LINE>File indexDir = new File(getIndexPath());<NEW_LINE>if (!indexDir.exists()) {<NEW_LINE>indexDir.mkdirs();<NEW_LINE>} else {<NEW_LINE>String[] children = indexDir.list();<NEW_LINE>if (children != null && children.leng...
= new IndexWriter(dir, iwc);
380,049
private void checkVCAPHost(ServerInfo server) {<NEW_LINE>String VCAP_APPLICATION = System.getenv("VCAP_APPLICATION");<NEW_LINE>if (VCAP_APPLICATION != null) {<NEW_LINE>try {<NEW_LINE>JsonNode node = Json.mapper().readValue(VCAP_APPLICATION, JsonNode.class);<NEW_LINE>ArrayNode uris = (ArrayNode) node.get("uris");<NEW_LI...
(0).textValue());
422,013
private void extractKeyValueType(Type type, TriConsumer<Type, Type, Boolean> keyValueTypeAcceptor) {<NEW_LINE>if (type == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (isMessage(type)) {<NEW_LINE>List<Type> typeArguments = type.asParameterizedType().arguments();<NEW_LINE>Type messageTypeParameter = typeArguments.get...
.get(1), false);
415,626
static QuadTreeImpl buildQuadTree(MultiPathImpl multipathImpl) {<NEW_LINE>Envelope2D extent = new Envelope2D();<NEW_LINE>multipathImpl.queryLooseEnvelope2D(extent);<NEW_LINE>QuadTreeImpl quad_tree_impl = new QuadTreeImpl(extent, 8);<NEW_LINE>int hint_index = -1;<NEW_LINE>SegmentIteratorImpl seg_iter = multipathImpl.que...
int index = seg_iter.getStartPointIndex();
1,403,120
private Command parseSubstitution(String command) {<NEW_LINE>if (command.equals("s")) {<NEW_LINE>return RepeatLastSubstitutionCommand.CURRENT_LINE_ONLY;<NEW_LINE>}<NEW_LINE>// any non-alphanumeric character can be a delimiter<NEW_LINE>// (this check is to avoid treating ":set" as a substitution)<NEW_LINE>if (command.st...
), new DummyTextObject(null));
1,628,429
public static void initLocked(final ClassLoader classLoader) {<NEW_LINE>//<NEW_LINE>final String IPC = "com.qihoo360.replugin.base.IPC";<NEW_LINE>getCurrentProcessName = new MethodInvoker(classLoader, IPC, "getCurrentProcessName", new Class<?>[] {});<NEW_LINE>getCurrentProcessId = new MethodInvoker(classLoader, IPC, "g...
<?>[] {});
1,610,545
public void marshall(AwsAutoScalingAutoScalingGroupDetails awsAutoScalingAutoScalingGroupDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsAutoScalingAutoScalingGroupDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>p...
e.getMessage(), e);
71,608
public CMPXCHGI8 compareAndSwapI8(Node location, LLVMNativePointer p, byte comparisonValue, byte newValue) {<NEW_LINE>assert checkPointer(p.asNative());<NEW_LINE>int byteIndex = getI8Index(p.asNative());<NEW_LINE>long address = alignToI32(p.asNative());<NEW_LINE>while (true) {<NEW_LINE>int t = unsafe.getIntVolatile(nul...
return new CMPXCHGI8(b, false);
658,709
protected void initChannel(SocketChannel ch) throws Exception {<NEW_LINE>if (this.enableTls) {<NEW_LINE>if (this.tlsEnabledWithKeyStore) {<NEW_LINE>ch.pipeline().addLast(TLS_HANDLER, new SslHandler(nettySSLContextAutoRefreshBuilder.get().createSSLEngine()));<NEW_LINE>} else {<NEW_LINE>ch.pipeline().addLast(TLS_HANDLER,...
).addLast("handler", cnx);
959,517
public Void visitTimestampArithmeticExpr(TimestampArithmeticExpr node, Scope scope) {<NEW_LINE>node.setChild(0, TypeManager.addCastExpr(node.getChild(0), Type.DATETIME));<NEW_LINE>String funcOpName;<NEW_LINE>if (node.getFuncName() != null) {<NEW_LINE>if (addDateFunctions.contains(node.getFuncName().toUpperCase())) {<NE...
.ADD) ? "ADD" : "SUB");
1,423,265
public ServerAuthorConfigurationResponse updateAuditLogDestination(String userId, String serverName, String serverToBeConfiguredName, String auditLogDestinationName, Connection auditLogDestination) {<NEW_LINE>final String methodName = "updateAuditLogDestination";<NEW_LINE>RESTCallToken token = restCallLogger.logRESTCal...
captureCheckedException(response, error, className);
1,044,505
private static HybridNode nextSubtree(HybridNode.State state) {<NEW_LINE>if (state.oldTreePtr.isAtEOF() || state.oldTextOffset != state.newTextOffset) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Node oldTreeNode = state.oldTreePtr.currentNode();<NEW_LINE>while (SyntaxUtils.isNonTerminalNode(oldTreeNode)) {<NEW_LINE>if ...
oldTreeNode.internalNode(), state);
1,474,751
public void collapse() {<NEW_LINE>if (!_isShowing)<NEW_LINE>return;<NEW_LINE>if (_folderAnimator == null || _folderAnimator.isRunning())<NEW_LINE>return;<NEW_LINE>long animDuration = Setup.appSettings<MASK><NEW_LINE>Tool.invisibleViews(animDuration, _cellContainer);<NEW_LINE>int startRadius = Tool.dp2px(Setup.appSettin...
().getAnimationSpeed() * 10;
1,233,638
private ClassificationDef addChangeManagementLibraryClassification() {<NEW_LINE>final String guid = "4e236548-b802-4a1d-a329-4abdeaae5323";<NEW_LINE>final String name = "ChangeManagementLibrary";<NEW_LINE>final String description = "Defines a managed collection of requirements, defects and proposed changes to a project...
.getEntityDef(linkedToEntity), true);
335,204
static void genCommands(PrintWriter pw, CommandSpec spec) {<NEW_LINE>// remove hidden subcommands before tags are added<NEW_LINE>Map<String, CommandLine> subCommands = new LinkedHashMap<String, CommandLine>(spec.subcommands());<NEW_LINE>for (Iterator<Map.Entry<String, CommandLine>> iter = subCommands.entrySet().iterato...
[0].toString());
1,220,489
private HttpURLConnection createDefaultConnection(URI uri, SSLSocketFactory socketFactory) {<NEW_LINE>Optional<Proxy> proxy = determineProxy(uri);<NEW_LINE>HttpURLConnection connection = !proxy.isPresent() ? invokeSafely(() -> (HttpURLConnection) uri.toURL().openConnection()) : invokeSafely(() -> (HttpURLConnection) ur...
CONNECTION_TIMEOUT).toMillis()));
1,158,069
public ItemStack doBukkitEvent_PlayerItemConsumeEvent(ItemStack s, World w, LivingEntity e) {<NEW_LINE>PICE_canceled = false;<NEW_LINE>if (get() instanceof ServerPlayerEntity) {<NEW_LINE>org.bukkit.inventory.ItemStack craftItem = CraftItemStack.asBukkitCopy(get().activeItemStack);<NEW_LINE>PlayerItemConsumeEvent event ...
).getBukkitEntity(), craftItem);
1,140,408
public static ETuple2 load_module(EAtom mod, EBinary bin) {<NEW_LINE>if (mod == null || bin == null)<NEW_LINE>throw ERT.badarg(mod, bin);<NEW_LINE>try {<NEW_LINE>EModule module = EModuleLoader.load_module(mod.getName(), bin);<NEW_LINE>if (module.has_on_load()) {<NEW_LINE>return new ETuple2(ERT.am_error, am_on_load);<NE...
am_error, ee.reason());
1,155,088
public View bindView(View view, final Context context, int position) {<NEW_LINE>ViewHolder holder = (ViewHolder) view.getTag();<NEW_LINE>final MenuEntry menuEntry = getItem(position);<NEW_LINE>final String hashtag = mContext.getString(menuEntry.titleId);<NEW_LINE>holder.name.setText(hashtag);<NEW_LINE>view.setBackgroun...
.getColor(menuEntry.colorId));