idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
857,370
public void deleteCol(final int col) {<NEW_LINE>try {<NEW_LINE>// process the file<NEW_LINE>// allocate buffers<NEW_LINE>final ByteBuffer readBuffer = ByteBuffer.allocate(EncogEGBFile.DOUBLE_SIZE * 1024);<NEW_LINE>final ByteBuffer writeBuffer = ByteBuffer.<MASK><NEW_LINE>readBuffer.clear();<NEW_LINE>writeBuffer.clear()...
allocate(EncogEGBFile.DOUBLE_SIZE * 1024);
74,196
public void run() {<NEW_LINE>MC.<MASK><NEW_LINE>Vec3d velocity = MC.player.getVelocity();<NEW_LINE>MC.player.setVelocity(0, velocity.y, 0);<NEW_LINE>Vec3d eyes = RotationUtils.getEyesPos().add(-0.5, -0.5, -0.5);<NEW_LINE>Comparator<BlockPos> comparator = Comparator.<BlockPos>comparingDouble(p -> eyes.squaredDistanceTo(...
options.sneakKey.setPressed(true);
1,326,106
default Map<String, Object> prepare(final Precorrelation precorrelation, final HttpRequest request) throws IOException {<NEW_LINE>final String correlationId = precorrelation.getId();<NEW_LINE>final Map<String, Object> content = new LinkedHashMap<>();<NEW_LINE>content.put("origin", request.getOrigin().name().toLowerCase...
content.put("correlation", correlationId);
1,169,625
public AssemblyResolution solve(T exp, MaskedLong goal, Map<String, Long> vals, AssemblyResolvedPatterns cur, Set<SolverHint> hints, String description) throws NeedsBackfillException {<NEW_LINE>MaskedLong lval = solver.getValue(exp.getLeft(), vals, cur);<NEW_LINE>MaskedLong rval = solver.getValue(exp.getRight(), vals, ...
cval = compute(lval, rval);
1,293,799
public int processBytes(byte[] in, int inOff, int len, byte[] out, int outOff) {<NEW_LINE>if ((inOff + len) > in.length) {<NEW_LINE>throw new DataLengthException("input buffer too short");<NEW_LINE>}<NEW_LINE>if ((outOff + len) > out.length) {<NEW_LINE>throw new OutputLengthException("output buffer too short");<NEW_LIN...
[y]) & 0xff]);
131,506
public void serialize(StringBodyDTO stringBodyDTO, JsonGenerator jgen, SerializerProvider provider) throws IOException {<NEW_LINE>boolean notFieldSetAndNotDefault = stringBodyDTO.getNot() != null && stringBodyDTO.getNot();<NEW_LINE>boolean optionalFieldSetAndNotDefault = stringBodyDTO.getOptional() != null && stringBod...
"rawBytes", stringBodyDTO.getRawBytes());
805,283
public static String saveImage(BufferedImage img, String sImage, String bundlePath) {<NEW_LINE>final int MAX_ALT_NUM = 3;<NEW_LINE>String fullpath = bundlePath;<NEW_LINE>File fBundle = new File(fullpath);<NEW_LINE>if (!fBundle.exists()) {<NEW_LINE>fBundle.mkdir();<NEW_LINE>}<NEW_LINE>if (!sImage.endsWith(".png")) {<NEW...
= new File(fBundle, sImage);
711,923
public void read(org.apache.thrift.protocol.TProtocol iprot, adhoc_filter_result 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 ==...
skip(iprot, schemeField.type);
256,586
private void optimizeJsLoop(Collection<JsNode> toInline) throws InterruptedException {<NEW_LINE>int optimizationLevel = options.getOptimizationLevel();<NEW_LINE>List<OptimizerStats<MASK><NEW_LINE>int counter = 0;<NEW_LINE>while (true) {<NEW_LINE>counter++;<NEW_LINE>if (Thread.interrupted()) {<NEW_LINE>throw new Interru...
> allOptimizerStats = Lists.newArrayList();
1,011,848
private synchronized int loadData(final Uri uri) {<NEW_LINE>int numBytesLoaded = 0;<NEW_LINE>String msg;<NEW_LINE>InputStream inStr;<NEW_LINE>try {<NEW_LINE>inStr = context.getContentResolver().openInputStream(uri);<NEW_LINE>numBytesLoaded = inStr != null ? inStr.available() : 0;<NEW_LINE>msg = context.getString(R.stri...
int currService = oIn.readInt();
713,786
public PythonObject toPython(List javaObject) {<NEW_LINE>PythonGIL.assertThreadSafe();<NEW_LINE>PyObject pyList = PyList_New(javaObject.size());<NEW_LINE>for (int i = 0; i < javaObject.size(); i++) {<NEW_LINE>Object item = javaObject.get(i);<NEW_LINE>PythonObject pyItem;<NEW_LINE>boolean owned;<NEW_LINE>if (item instan...
pyItem = PythonTypes.convert(item);
107,244
public static void checkMock(Class<?> interfaceClass, AbstractInterfaceConfig config) {<NEW_LINE>String mock = config.getMock();<NEW_LINE>if (ConfigUtils.isEmpty(mock)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String normalizedMock = MockInvoker.normalizeMock(mock);<NEW_LINE>if (normalizedMock.startsWith(RETURN_PREFIX)) ...
"Illegal mock throw in <dubbo:service/reference ... " + "mock=\"" + mock + "\" />");
839,540
public boolean requestChildRectangleOnScreen(RecyclerViewBase parent, View child, Rect rect, boolean immediate) {<NEW_LINE>try {<NEW_LINE>final int parentLeft = getPaddingLeft();<NEW_LINE>final int parentTop = getPaddingTop();<NEW_LINE>final int parentRight <MASK><NEW_LINE>final int parentBottom = getHeight() - getPadd...
= getWidth() - getPaddingRight();
1,315,486
private static Vector apply(CompLongDoubleVector v1, LongIntVector v2, Binary op) {<NEW_LINE>LongDoubleVector[] parts = v1.getPartitions();<NEW_LINE>Storage[] resParts = StorageSwitch.applyComp(v1, v2, op);<NEW_LINE>if (!op.isKeepStorage()) {<NEW_LINE>for (int i = 0; i < parts.length; i++) {<NEW_LINE>if (parts[i].getSt...
(LongDoubleVectorStorage) resParts[i]);
531,201
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>// Inflate the layout for this fragment<NEW_LINE>((MemoryGraphParent) getActivity()).setActionBarTitle(getResources().getString(R.string.statistics));<NEW_LINE>View rootView = inflater.inflate(R.<MASK><NEW_LINE>...
layout.fragment_statistics, container, false);
803,163
public Object sGet(SField sField) {<NEW_LINE>if (sField.getName().equals("bounds")) {<NEW_LINE>return getBounds();<NEW_LINE>}<NEW_LINE>if (sField.getName().equals("boundsUntransformed")) {<NEW_LINE>return getBoundsUntransformed();<NEW_LINE>}<NEW_LINE>if (sField.getName().equals("startVertex")) {<NEW_LINE>return getStar...
sField.getName() + " not found");
670,139
public Map<String, String> createReplacements(String action, Lookup lookup) {<NEW_LINE>FileObject fo = lookup.lookup(FileObject.class);<NEW_LINE>if (fo == null) {<NEW_LINE>SingleMethod m = <MASK><NEW_LINE>if (m != null) {<NEW_LINE>fo = m.getFile();<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (isGroovyFile(fo)) {<NEW_LINE>for (So...
lookup.lookup(SingleMethod.class);
1,748,659
public void decode(MBlock mBlock, Picture mb) {<NEW_LINE>int mbX = mapper.getMbX(mBlock.mbIdx);<NEW_LINE>int mbY = mapper.getMbY(mBlock.mbIdx);<NEW_LINE>int address = mapper.getAddress(mBlock.mbIdx);<NEW_LINE>boolean leftAvailable = mapper.leftAvailable(mBlock.mbIdx);<NEW_LINE>boolean topAvailable = mapper.topAvailable...
mbTypes[address] = mBlock.curMbType;
1,112,003
private void uiAttachedAndCoreRunning(Core core) {<NEW_LINE>Utils.execSWTThread(new AERunnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void runSupport() {<NEW_LINE>MultipleDocumentInterfaceSWT mdi = UIFunctionsManagerSWT.getUIFunctionsSWT().getMDISWT();<NEW_LINE>if (mdi != null) {<NEW_LINE>setupUI(mdi);<NEW_LI...
return mb.getResult() == 0;
1,036,583
protected void initColumnAndType() {<NEW_LINE>columns.put(COLUMN_INDEX, new ColumnMeta(COLUMN_INDEX, "int(11)", false, true));<NEW_LINE>columnsType.put(COLUMN_INDEX, Fields.FIELD_TYPE_LONG);<NEW_LINE>columns.put(COLUMN_CLUSTER, new ColumnMeta(COLUMN_CLUSTER, "varchar(20)", false));<NEW_LINE>columnsType.put(COLUMN_CLUST...
(COLUMN_LAST_RELOAD_START, "varchar(19)", false));
1,544,434
protected boolean exist(Business business, EffectivePerson effectivePerson, String name, String excludeId) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Share.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Long> cq = <MASK><NEW_LINE>Root<Shar...
cb.createQuery(Long.class);
668,181
private void mergeTuplets() {<NEW_LINE>for (Voice voice : getVoicesWithImplicit()) {<NEW_LINE>final List<TupletInter> tuplets = voice.getTuplets();<NEW_LINE>TupletInter prevTuplet = null;<NEW_LINE>List<AbstractChordInter> prevGroup = null;<NEW_LINE>BeamGroupInter bgLast = null;<NEW_LINE>for (TupletInter tuplet : tuplet...
debug("Merge {} with {}", prevTuplet, tuplet);
1,613,057
public Graph<EntityDescriptor> resolveNativeEntity(EntityDescriptor entityDescriptor) {<NEW_LINE>final MutableGraph<EntityDescriptor> mutableGraph = GraphBuilder.directed().build();<NEW_LINE>mutableGraph.addNode(entityDescriptor);<NEW_LINE>final ModelId modelId = entityDescriptor.id();<NEW_LINE>try {<NEW_LINE>final Pip...
String> referencedRules = referencedRules(pipelineSource);
607,484
public GradientPaint transform(GradientPaint paint, Shape target) {<NEW_LINE>GradientPaint result = paint;<NEW_LINE><MASK><NEW_LINE>if (this.type.equals(GradientPaintTransformType.VERTICAL)) {<NEW_LINE>result = new GradientPaint((float) bounds.getCenterX(), (float) bounds.getMinY(), paint.getColor1(), (float) bounds.ge...
Rectangle2D bounds = target.getBounds2D();
1,206,503
private void docEntity(Node g, Node s, List<Quad> batch) {<NEW_LINE>// One document per entity<NEW_LINE>String <MASK><NEW_LINE>String gx = TextQueryFuncs.graphNodeToString(g);<NEW_LINE>Entity entity = new Entity(x, gx);<NEW_LINE>String graphField = defn.getGraphField();<NEW_LINE>if (defn.getGraphField() != null)<NEW_LI...
x = TextQueryFuncs.subjectToString(s);
581,529
/*<NEW_LINE>* (non-Javadoc)<NEW_LINE>* @see org.eclipse.jface.text.rules.PatternRule#endSequenceDetected(org.eclipse.jface.text.rules.ICharacterScanner)<NEW_LINE>*/<NEW_LINE>protected boolean endSequenceDetected(ICharacterScanner scanner) {<NEW_LINE>CollectingCharacterScanner collectingCharacterScanner = new Collecting...
setContents(collectingCharacterScanner.getContents());
1,119,174
private void backgroundPullFromRemote() {<NEW_LINE>if (getRemoteClientManager().getRemoteClient().isAuthenticated()) {<NEW_LINE>m_pulling = true;<NEW_LINE>updateSyncUI(false);<NEW_LINE>new AsyncTask<Void, Void, Boolean>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>protected Boolean doInBackground(Void... params) {<NEW_LIN...
new Intent(Constants.INTENT_ASYNC_FAILED));
1,836,913
TreeSet<DexProgramClass> sortClassesByPackage(Set<DexProgramClass> classes, Map<DexProgramClass, String> originalNames) {<NEW_LINE>TreeSet<DexProgramClass> sortedClasses = new TreeSet((a, b) -> {<NEW_LINE>String originalA = (String) originalNames.get(a);<NEW_LINE>String originalB = (String) originalNames.get(b);<NEW_LI...
originalB.substring(0, indexB);
638,991
private void processSubcommand(CommandLine subcommand, ParseResult.Builder builder, List<CommandLine> parsedCommands, Stack<String> args, Collection<ArgSpec> required, Set<ArgSpec> initialized, String[] originalArgs, List<Object> nowProcessing, String separator, String arg) {<NEW_LINE>Tracer tracer = CommandLine.tracer...
ArgSpec requiredArg = requiredIter.next();
532,647
public SRemoteServiceCalled convertToSObject(RemoteServiceCalled input) {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SRemoteServiceCalled result = new SRemoteServiceCalled();<NEW_LINE>result.setOid(input.getOid());<NEW_LINE>result.setUuid(input.getUuid());<NEW_LINE>result.<MASK><NEW_LINE>re...
setRid(input.getRid());
182,230
private static void addToCurrentGroup(ScanState state, CitationGroup group, XTextRange currentRange) {<NEW_LINE>final boolean isNewGroup = state.currentGroup.isEmpty();<NEW_LINE>if (!isNewGroup) {<NEW_LINE>Objects.requireNonNull(state.currentGroupCursor);<NEW_LINE>Objects.requireNonNull(state.cursorBetween);<NEW_LINE>O...
(currentRange.getStart()));
596,302
static void doExecuteConverterGeneric(ConversionNodeSupplier supplier, int index, Object converter, Object inputArgument, Object outputArgument, @CachedLibrary("converter") InteropLibrary converterLib, @CachedLibrary(limit = "1") InteropLibrary resultLib, @Cached(value = "createTN(supplier)", uncached = "getUncachedTN(...
SystemError, ErrorMessages.CALLING_ARG_CONVERTER_FAIL_UNEXPECTED_RETURN, result);
336,006
private void initOsPathModule() {<NEW_LINE>ModuleType m = newModule("path");<NEW_LINE>State ospath = m.table;<NEW_LINE>// make sure global qnames are correct<NEW_LINE>ospath.setPath("os.path");<NEW_LINE>update("path", newLibUrl("os.path.html#module-os.path"), m, MODULE);<NEW_LINE>String[] str_funcs = { "_resolve_link",...
ospath, "_varprog", Types.UNKNOWN);
965,915
protected void initView() {<NEW_LINE>LayoutInflater.from(mContext).inflate(R.layout.trtccalling_group_videocall_activity_call_main, this);<NEW_LINE>mMuteImg = (ImageView) findViewById(R.id.iv_mute);<NEW_LINE>mMuteLl = (LinearLayout) findViewById(R.id.ll_mute);<NEW_LINE>mHangupImg = (ImageView) findViewById(R.id.iv_hang...
findViewById(R.id.ll_img_container);
1,540,745
protected String doIt() throws Exception {<NEW_LINE>log.info("PA_SLA_Measure_ID=" + p_PA_SLA_Measure_ID);<NEW_LINE>MSLAMeasure measure = new MSLAMeasure(getCtx(), p_PA_SLA_Measure_ID, get_TrxName());<NEW_LINE>if (measure.get_ID() == 0)<NEW_LINE>throw new AdempiereUserError("@PA_SLA_Measure_ID@ " + p_PA_SLA_Measure_ID);...
getPA_SLA_Criteria_ID(), get_TrxName());
1,394,893
protected OAuthData doInBackground(String... params) {<NEW_LINE>try {<NEW_LINE>OAuthData oAuthData = mOAuthHelper.onUserChallenge(params[0], mCredentials);<NEW_LINE>if (oAuthData != null) {<NEW_LINE>Authentication.reddit.authenticate(oAuthData);<NEW_LINE>Authentication.isLoggedIn = true;<NEW_LINE>String refreshToken = ...
= Authentication.authentication.edit();
1,595,052
public void sessionPutTimeout(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>HttpSession session = request.getSession(true);<NEW_LINE>String key = request.getParameter("key");<NEW_LINE>String value = request.getParameter("value");<NEW_LINE>String sessionId = session.getId();<NEW_L...
, InitialContext.doLookup("jcache/hazelcast.config"));
796,365
public static void main(String[] args) {<NEW_LINE>int[] array1 = { 1, 2, 3, 4, -1, -2, -3 };<NEW_LINE>int[] array2 = { 1, 5, 4, 3, 2, 0 };<NEW_LINE>int[] array3 = { 2, 4, 8, 16, 32, 1 };<NEW_LINE>int[] array4 = { 2, 4, 8, 16, 32 };<NEW_LINE>int[] array5 = { 2, 1 };<NEW_LINE>int[] array6 = { 9 };<NEW_LINE>int indexOfEle...
indexOfElement3 = bitonicSearch(array3, 2);
1,824,547
protected void copy(List<HadoopResourceId> srcResourceIds, List<HadoopResourceId> destResourceIds) throws IOException {<NEW_LINE>for (int i = 0; i < srcResourceIds.size(); ++i) {<NEW_LINE>// this enforces src and dest file systems to match<NEW_LINE>final org.apache.hadoop.fs.FileSystem fs = srcResourceIds.get(i).toPath...
true, fs.getConf());
439,340
void terminate(Object terminal) {<NEW_LINE>if (state == STATE_SENT_ON_SUBSCRIBE_AND_DONE) {<NEW_LINE>return;<NEW_LINE>} else if (state == STATE_WAITING_FOR_SUBSCRIBE) {<NEW_LINE>state = STATE_SENT_ON_SUBSCRIBE_AND_DONE;<NEW_LINE>try {<NEW_LINE>subscriber.onSubscribe(IGNORE_CANCEL);<NEW_LINE>} catch (Throwable t) {<NEW_...
"Unexpected exception from onSubscribe from subscriber {}. Discarding result {}.", subscriber, terminal, t);
25,627
protected void addAuthorizationsFromIterator(List<String> expressions, CaseDefinitionEntity caseDefinition, String expressionType) {<NEW_LINE>if (expressions != null) {<NEW_LINE>IdentityLinkService identityLinkService = cmmnEngineConfiguration.getIdentityLinkServiceConfiguration().getIdentityLinkService();<NEW_LINE>Exp...
identityLink.setType(IdentityLinkType.CANDIDATE);
1,776,878
public void serve404(HttpServletRequest servletRequest, HttpServletResponse servletResponse, NotFound e) {<NEW_LINE>Logger.warn("404 -> %s %s (%s)", servletRequest.getMethod(), servletRequest.getRequestURI(), e.getMessage());<NEW_LINE>servletResponse.setStatus(404);<NEW_LINE>servletResponse.setContentType("text/html");...
.current().encoding));
1,425,247
public JsonResult execute() {<NEW_LINE>String entityType = getNonNullRequestParamValue(Const.ParamsNames.ENTITY_TYPE);<NEW_LINE>if (entityType.equals(Const.EntityType.INSTRUCTOR)) {<NEW_LINE>return handleInstructorReq();<NEW_LINE>}<NEW_LINE>// Default path for student and admin<NEW_LINE>String courseId = getNonNullRequ...
getRequestParamValue(Const.ParamsNames.FEEDBACK_SESSION_NAME);
426,173
public SqlLiteral createLiteral(Object o, SqlParserPos pos) {<NEW_LINE>switch(this) {<NEW_LINE>case BOOLEAN:<NEW_LINE>if (o instanceof Number) {<NEW_LINE>return SqlLiteral.createBoolean(((Number) o).intValue() == 1, pos);<NEW_LINE>}<NEW_LINE>return SqlLiteral.createBoolean((Boolean) o, pos);<NEW_LINE>case FLOAT:<NEW_LI...
o.toString(), pos);
1,333,686
private AstNode name(int ttFlagged, int tt) throws IOException {<NEW_LINE>String nameString = ts.getString();<NEW_LINE>int namePos = ts.tokenBeg, nameLineno = ts.lineno;<NEW_LINE>if (0 != (ttFlagged & TI_CHECK_LABEL) && peekToken() == Token.COLON) {<NEW_LINE>// Do not consume colon. It is used as an unwind indicator<N...
return propertyName(-1, 0);
644,558
public void renderString(String templateContent, Map<String, Object> model, Writer writer) {<NEW_LINE>// prepare the locale-aware i18n method<NEW_LINE>String language = (String) model.get(PippoConstants.REQUEST_PARAMETER_LANG);<NEW_LINE>if (StringUtils.isNullOrEmpty(language)) {<NEW_LINE>language = getLanguageOrDefault...
renderTemplate(stringTemplate, model, writer);
345,408
void diff(final StructrTypeDefinitions other) throws FrameworkException {<NEW_LINE>final Map<String, StructrTypeDefinition> databaseTypes = getMappedTypes();<NEW_LINE>final Map<String, StructrTypeDefinition> structrTypes = other.getMappedTypes();<NEW_LINE>final Set<String> typesOnlyInDatabase = new TreeSet<<MASK><NEW_L...
>(databaseTypes.keySet());
946,990
private void actOnQuitEvent(PlayerQuitEvent event) {<NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE><MASK><NEW_LINE>String playerName = player.getName();<NEW_LINE>UUID playerUUID = player.getUniqueId();<NEW_LINE>ServerUUID serverUUID = serverInfo.getServerUUID();<NEW_LINE>BukkitAFKListener.afkTracker.loggedO...
Player player = event.getPlayer();
1,535,899
public boolean unremove(ID id) {<NEW_LINE>if (_removed == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final TransactionLegacy txn = TransactionLegacy.currentTxn();<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>try {<NEW_LINE>txn.start();<NEW_LINE>pstmt = txn.prepareAutoCloseStatement(_removeSql.first());<NEW...
int result = pstmt.executeUpdate();
991,814
public final void bounds(int range) {<NEW_LINE>double x0 = cx0;<NEW_LINE>double y0 = cy0;<NEW_LINE>double x1 = cx0 + cx1 + cx2 + cx3;<NEW_LINE>double y1 = cy0 + cy1 + cy2 + cy3;<NEW_LINE>double minx = Math.min(x0, x1);<NEW_LINE>double miny = Math.min(y0, y1);<NEW_LINE>double maxx = Math.max(x0, x1);<NEW_LINE>double max...
Math.min(y, miny);
168,423
final DeleteTagOptionResult executeDeleteTagOption(DeleteTagOptionRequest deleteTagOptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTagOptionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
943,452
public void mapPartition(Iterable<T> values, Collector<Tuple3<Integer, Integer, double[]>> out) throws Exception {<NEW_LINE>if (getRuntimeContext().getNumberOfParallelSubtasks() == 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>ComContext context = new ComContext(sessionId, getIterationRuntimeContext());<NEW_LINE>int taskId...
= getRuntimeContext().getIndexOfThisSubtask();
57,913
public static DescribeGtmAccessStrategyResponse unmarshall(DescribeGtmAccessStrategyResponse describeGtmAccessStrategyResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGtmAccessStrategyResponse.setRequestId(_ctx.stringValue("DescribeGtmAccessStrategyResponse.RequestId"));<NEW_LINE>describeGtmAccessStrategyResponse...
("DescribeGtmAccessStrategyResponse.Lines[" + i + "].GroupCode"));
31,494
protected void backpropagate(boolean update) {<NEW_LINE>output.computeOutputGradient(target.get(), 1.0);<NEW_LINE><MASK><NEW_LINE>Layer upper = output;<NEW_LINE>for (int i = net.length; --i > 0; ) {<NEW_LINE>upper.backpropagate(net[i].gradient());<NEW_LINE>upper = net[i];<NEW_LINE>upper.backpopagateDropout();<NEW_LINE>...
clipGradient(output.gradient());
1,222,613
public static void positionCenterWindow(final Window parent, final Window window) {<NEW_LINE>if (parent == null) {<NEW_LINE>positionCenterScreen(window);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>window.pack();<NEW_LINE>//<NEW_LINE>final Dimension sSize = Toolkit.getDefaultToolkit().getScreenSize();<NEW_LINE>// take into ac...
GraphicsConfiguration config = window.getGraphicsConfiguration();
686,983
private static SSLContext createSSLContext() throws RuntimeException {<NEW_LINE>try {<NEW_LINE>String keyPass <MASK><NEW_LINE>if (keyPass == null) {<NEW_LINE>Map<String, Object> secretConfig = Config.getInstance().getJsonMapConfig(SECRET_CONFIG_NAME);<NEW_LINE>keyPass = (String) secretConfig.get(SecretConstants.SERVER_...
= getServerConfig().getKeyPass();
1,006,069
// ---- Helper methods ------------------------------------------------------------------------<NEW_LINE>private void initializeParameterInfos() {<NEW_LINE>IVariableBinding[] arguments = fAnalyzer.getArguments();<NEW_LINE>fParameterInfos = new ArrayList<>(arguments.length);<NEW_LINE>ASTNode root = fAnalyzer.getEnclosin...
argument.getName(), i);
1,798,397
protected static List<Method> collectValidatorMethods(Class annotationClass, Class... argTypes) {<NEW_LINE>if (argTypes == null) {<NEW_LINE>argTypes = new Class[] {};<NEW_LINE>}<NEW_LINE>List<Method> methods = new ArrayList<>();<NEW_LINE>Set<Method> ms = Platform.getReflections().getMethodsAnnotatedWith(annotationClass...
, i, expectedType, actualType));
1,434,078
public MethodAndImports generateMethodAndImports() {<NEW_LINE>Set<FullyQualifiedJavaType> <MASK><NEW_LINE>FullyQualifiedJavaType parameterType = new // $NON-NLS-1$<NEW_LINE>FullyQualifiedJavaType("org.mybatis.dynamic.sql.select.SelectDSLCompleter");<NEW_LINE>imports.add(parameterType);<NEW_LINE>// $NON-NLS-1$<NEW_LINE>...
imports = new HashSet<>();
534,471
public void doAlarm(List<AlarmMessage> alarmMessage) {<NEW_LINE>alarmMessage.forEach(message -> {<NEW_LINE>if (LOGGER.isDebugEnabled()) {<NEW_LINE>LOGGER.debug("Alarm message: {}", message.getAlarmMessage());<NEW_LINE>}<NEW_LINE>AlarmRecord record = new AlarmRecord();<NEW_LINE>record.setScope(message.getScopeId());<NEW...
appendSearchableTags(message.getTags());
64,526
public void propertyChange(PropertyChangeEvent evt) {<NEW_LINE>if (!evt.getOldValue().equals(evt.getNewValue()) && evt.getSource() instanceof InstantOption) {<NEW_LINE>Set<MutablePositionRegion> newChangePoints = ui.optionChanged((<MASK><NEW_LINE>if (newChangePoints != null) {<NEW_LINE>MutablePositionRegion mainRegion ...
InstantOption) evt.getSource());
1,019,938
public void changeButtonEnablement() {<NEW_LINE>if (tableViewer == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>IStructuredSelection selection = (IStructuredSelection) tableViewer.getSelection();<NEW_LINE>if (!tableViewer.getTable().isEnabled()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (buttonRemove != null) {<NEW_LIN...
.getItemCount() == 1));
431,091
final ListBudgetsForResourceResult executeListBudgetsForResource(ListBudgetsForResourceRequest listBudgetsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listBudgetsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
invoke(request, responseHandler, executionContext);
604,644
private PsiElementVisitor createVisitor(final String schemaFileName, final ProblemsHolder holder, final LocalInspectionToolSession session, final PsiFile file) {<NEW_LINE>JsonValue root = file instanceof JsonFile ? ObjectUtils.tryCast(file.getFirstChild(<MASK><NEW_LINE>if (root == null)<NEW_LINE>return PsiElementVisito...
), JsonValue.class) : null;
1,114,246
private void loadNode133() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SubscriptionDiagnosticsArrayType_SubscriptionDiagnostics_RepublishRequestCount, new QualifiedName(0, "RepublishRequestCount"), new LocalizedText("en", "RepublishRequestCount"), LocalizedText.NULL...
.expanded(), true));
645,453
private ThriftRuleKeyHasher putMap(int length) {<NEW_LINE>Map<String, Value> thriftContainer = new HashMap<>(length);<NEW_LINE>// Length for maps is the number of keys + number of values, unlike<NEW_LINE>// tuple or list<NEW_LINE>for (int i = 0; i < length; i += 2) {<NEW_LINE>// Normally key value pairs are pushed on t...
(Value.containerMap(thriftContainer));
511,197
public Font derive(float sizePixels, int weight) {<NEW_LINE>if (fontUniqueId != null) {<NEW_LINE>// derive should recycle instances of Font to allow smarter caching and logic on the native side of the fence<NEW_LINE>String key = fontUniqueId + "_" + sizePixels + "_" + weight;<NEW_LINE>Font <MASK><NEW_LINE>if (f != null...
f = derivedFontCache.get(key);
281,912
StoreScan createStoreScan(PageCacheTracer cacheTracer) {<NEW_LINE>int[] entityTokenIds = entityTokenIds();<NEW_LINE>int[] propertyKeyIds = propertyKeyIds();<NEW_LINE>IntPredicate propertyKeyIdFilter = propertyKeyId -> contains(propertyKeyIds, propertyKeyId);<NEW_LINE>if (type == EntityType.RELATIONSHIP) {<NEW_LINE>Stor...
= new LoggingStoreScan(innerStoreScan, true);
1,790,913
synchronized void onRetry(@NonNull Job job, long backoffInterval) {<NEW_LINE>if (backoffInterval <= 0) {<NEW_LINE>throw new IllegalArgumentException("Invalid backoff interval! " + backoffInterval);<NEW_LINE>}<NEW_LINE>int nextRunAttempt = job.getRunAttempt() + 1;<NEW_LINE>long nextRunAttemptTime = System.currentTimeMil...
constraintInstantiator::instantiate).toList();
736,692
public void checkQueuedCalls(long incomingCallChatId) {<NEW_LINE>logDebug("Check several calls");<NEW_LINE>MegaHandleList handleList = megaChatApi.getChatCalls();<NEW_LINE>if (handleList == null || handleList.size() <= 1)<NEW_LINE>return;<NEW_LINE>ArrayList<Long> callsInProgress = getCallsParticipating();<NEW_LINE>if (...
incomingCall = megaChatApi.getChatCall(incomingCallChatId);
1,543,529
private void addHostNameAndIpMapping(HostAddress dnsNameAddress, HostAddress ipAddress, Long time, Content source, final CaseDbConnection connection) throws SQLException, TskCoreException {<NEW_LINE>if (dnsNameAddress.getAddressType() != HostAddress.HostAddressType.HOSTNAME) {<NEW_LINE>throw new TskCoreException("Illeg...
1, dnsNameAddress.getId());
1,141,438
public static CodegenMethod codegen(ExprEqualsNodeForgeCoercion forge, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope, ExprNode lhs, ExprNode rhs) {<NEW_LINE><MASK><NEW_LINE>EPTypeClass rhsType = forge.getRhsTypeClass();<NEW_LINE>CodegenMethod methodNode = ...
EPTypeClass lhsType = forge.getLhsTypeClass();
897,174
@ApiOperation(position = 4, value = "Updates an existing catalog", notes = "Returns success if there were no errors updating the catalog")<NEW_LINE>@ApiResponses({ @ApiResponse(code = HttpURLConnection.HTTP_OK, message = "Catalog successfully updated"), @ApiResponse(code = HttpURLConnection.HTTP_NOT_FOUND, message = "N...
catalogService.update(name, createCatalogDto);
1,560,863
@ExceptionMetered<NEW_LINE>@ApiOperation(value = "Create a deploy", notes = "Creates a deploy given an environment name, stage name, build id and description", response = Response.class)<NEW_LINE>public Response create(@Context SecurityContext sc, @ApiParam(value = "Environment name", required = true) @PathParam("envNa...
getEnvStage(environDAO, envName, stageName);
1,466,002
private void createCreateReflectorMethod2(String newClassPrefix, CtClass reflectorFactoryImpl) throws NotFoundException, CannotCompileException {<NEW_LINE>CtClass[<MASK><NEW_LINE>parameters[0] = pool.get(Class.class.getName());<NEW_LINE>parameters[1] = pool.get(PublicInterface.class.getName());<NEW_LINE>CtMethod method...
] parameters = new CtClass[2];
1,427,481
public static GetVehicleRepairPlanResponse unmarshall(GetVehicleRepairPlanResponse getVehicleRepairPlanResponse, UnmarshallerContext _ctx) {<NEW_LINE>getVehicleRepairPlanResponse.setRequestId(_ctx.stringValue("GetVehicleRepairPlanResponse.RequestId"));<NEW_LINE>getVehicleRepairPlanResponse.setHttpCode(_ctx.integerValue...
("GetVehicleRepairPlanResponse.Data.RepairParts[" + i + "].PartNameMatch"));
320,186
private List<QuestionConcept> retrieveArtificialConcepts(Request request) {<NEW_LINE>List<QuestionConcept> <MASK><NEW_LINE>String numberOfArtificialConceptsS = request.queryParams("numberOfConcepts");<NEW_LINE>if (numberOfArtificialConceptsS == null)<NEW_LINE>return artificialConcepts;<NEW_LINE>int numberOfArtificialCo...
artificialConcepts = new ArrayList<>();
798,696
private void applyJavaConvention(Project project) {<NEW_LINE>JavaPluginExtension java = project.getExtensions(<MASK><NEW_LINE>java.setSourceCompatibility(JavaVersion.VERSION_1_8);<NEW_LINE>java.setTargetCompatibility(JavaVersion.VERSION_1_8);<NEW_LINE>project.getTasks().withType(JavaCompile.class).forEach(compileTask -...
).getByType(JavaPluginExtension.class);
884,445
public static DescribeModelServiceResponse unmarshall(DescribeModelServiceResponse describeModelServiceResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeModelServiceResponse.setRequestId(_ctx.stringValue("DescribeModelServiceResponse.RequestId"));<NEW_LINE>describeModelServiceResponse.setCode(_ctx.stringValue("Des...
= new ArrayList<ModelApi>();
1,541,792
public short[] convert(ByteBuffer buffer) {<NEW_LINE>long dcAccumulator = 0;<NEW_LINE>short sample;<NEW_LINE>short[] samples;<NEW_LINE>byte b1, b2;<NEW_LINE>samples = new short[buffer.capacity() / 2];<NEW_LINE>int bytesOffset;<NEW_LINE>int rawPointer = 0;<NEW_LINE>ShortVector vector;<NEW_LINE>int samplesOffset = 0;<NEW...
vector.reduceLanes(VectorOperators.ADD);
845,616
final GetGroupResult executeGetGroup(GetGroupRequest getGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>R...
(super.beforeMarshalling(getGroupRequest));
615,757
public static List<PluginDescription> sortCandidates(List<PluginDescription> candidates) {<NEW_LINE>List<PluginDescription> sortedCandidates = new ArrayList<>(candidates);<NEW_LINE>sortedCandidates.sort(Comparator.comparing(PluginDescription::getId));<NEW_LINE>// Create a graph and populate it with plugin dependencies....
, new ArrayDeque<>());
109,518
private void updateMetrics() throws AutoIngestMetricsDialogException {<NEW_LINE>if (datePicker.getDate() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (autoIngestMetricsCollector == null) {<NEW_LINE>try {<NEW_LINE>autoIngestMetricsCollector = new AutoIngestMetricsCollector();<NEW_LINE>} catch (AutoIngestMetricsCol...
MetricsSnapshot metricsSnapshot = autoIngestMetricsCollector.queryCoordinationServiceForMetrics();
1,812,034
public Object call(ExecutionContext context, Object self, Object... args) {<NEW_LINE>// 15.4.4.8<NEW_LINE>JSObject o = Types.toObject(context, self);<NEW_LINE>long len = Types.toUint32(context, o.get(context, "length"));<NEW_LINE>long middle = (long) Math.floor(len / 2);<NEW_LINE>long lower = 0;<NEW_LINE>while (lower !...
"" + upper, lowerValue, true);
654,740
public static void main(String[] args) throws InterruptedException {<NEW_LINE>try (KubernetesClient client = new KubernetesClientBuilder().build()) {<NEW_LINE>final String namespace = Optional.ofNullable(client.getNamespace()).orElse("default");<NEW_LINE>final Pod pod = client.pods().inNamespace(namespace).create(new P...
waitUntilReady(10, TimeUnit.SECONDS);
902,126
public void paint(@Nonnull Graphics2D g2, int x, int y, int height) {<NEW_LINE>if (myLabels.isEmpty())<NEW_LINE>return;<NEW_LINE>GraphicsConfig config = GraphicsUtil.setupAAPainting(g2);<NEW_LINE>g2.setFont(getReferenceFont());<NEW_LINE>g2.setStroke(new BasicStroke(1.5f));<NEW_LINE>FontMetrics fontMetrics = g2.getFontM...
+= size.width + PaintParameters.LABEL_PADDING;
902,340
public void load(ByteProvider provider, LoadSpec loadSpec, List<Option> options, Program prog, TaskMonitor monitor, MessageLog log) throws IOException {<NEW_LINE>if (!prog.getExecutableFormat().equals(PeLoader.PE_NAME)) {<NEW_LINE>throw new IOException("Program must be a " + PeLoader.PE_NAME);<NEW_LINE>}<NEW_LINE>Symbo...
appendMsg("Added " + successCount + " symbols.");
52,217
void onFold() {<NEW_LINE>if (visualMode_.isActivated()) {<NEW_LINE>visualMode_.fold();<NEW_LINE>} else if (useScopeTreeFolding()) {<NEW_LINE>Range range = Range.fromPoints(docDisplay_.getSelectionStart(), docDisplay_.getSelectionEnd());<NEW_LINE>if (range.isEmpty()) {<NEW_LINE>// If no selection, fold the innermost non...
) scope = scope.getParentScope();
936,992
public byte[] doInTransform(Instrumentor instrumentor, ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws InstrumentException {<NEW_LINE>final InstrumentClass target = instrumentor.getInstrumentClass(loader, className, classfileBuffer);<...
, va(ReactorConstants.REACTOR_NETTY));
316,559
public void save(ServerRow row, PSMatrixSaveContext saveContext, MatrixPartitionMeta meta, DataOutputStream out) throws IOException {<NEW_LINE>if (saveContext.cloneFirst()) {<NEW_LINE>row = (ServerRow) row.deepClone();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>row.startWrite();<NEW_LINE>if (row instanceof ServerIntFloatRow) {...
row, saveContext, meta, out);
1,595,192
private DocLine[] loadLines(MOrder order) {<NEW_LINE>ArrayList<DocLine> list = new ArrayList<DocLine>();<NEW_LINE>MOrderLine[] lines = order.getLines();<NEW_LINE>for (int i = 0; i < lines.length; i++) {<NEW_LINE>MOrderLine line = lines[i];<NEW_LINE>DocLine docLine = new DocLine(line, this);<NEW_LINE>BigDecimal Qty = li...
BigDecimal PriceList = line.getPriceList();
575,063
private static final Object convertValueToType(final Object value, final GridField field, final Class<?> returnType) {<NEW_LINE>if (boolean.class.equals(returnType)) {<NEW_LINE>if (value == null)<NEW_LINE>return false;<NEW_LINE>else<NEW_LINE>return value instanceof Boolean ? value : "Y".equals(value);<NEW_LINE>} else i...
parseInt(value.toString());
442,271
private static void generics(LexerfulGrammarBuilder b) {<NEW_LINE>b.rule(cliGenericDeclaration).is("generic", "<", cliGenericParameterList, ">", b.optional(cliConstraintClauseList), declaration);<NEW_LINE>b.rule(cliGenericParameterList).is(cliGenericParameter, b.zeroOrMore(",", cliGenericParameter));<NEW_LINE>b.rule(cl...
(cliGenericArgument).is(typeId);
405,548
public static MDDerivedType create38(long[] args, MetadataValueList md) {<NEW_LINE><MASK><NEW_LINE>final long line = args[ARGINDEX_38_LINE];<NEW_LINE>final long size = args[ARGINDEX_38_SIZE];<NEW_LINE>final long align = args[ARGINDEX_38_ALIGN];<NEW_LINE>final long offset = args[ARGINDEX_38_OFFSET];<NEW_LINE>final long ...
final long tag = args[ARGINDEX_38_TAG];
672,803
// ///////////////////////////////// Registration Methods ///////////////////////////////////<NEW_LINE>public void register(BundleContext bndCtx) {<NEW_LINE>final boolean trace = TraceComponent.isAnyTracingEnabled();<NEW_LINE>final String methodName = "register()";<NEW_LINE>if (trace && tc.isEntryEnabled())<NEW_LINE>Tr...
getName(), this, props);
1,452,567
private void buildCardView(int styleResId) {<NEW_LINE>// Make sure the ImageCardView is focusable.<NEW_LINE>setFocusable(true);<NEW_LINE>setFocusableInTouchMode(true);<NEW_LINE>// setCardType(CARD_TYPE_INFO_UNDER);<NEW_LINE>setCardType(CARD_TYPE_MAIN_ONLY);<NEW_LINE>setBackgroundResource(R.color.primary_dark);<NEW_LINE...
findViewById(R.id.image_option);
1,219,061
public static Mono<String> readFileFromClasspath(String url) {<NEW_LINE>Assert.notNull(url, "url must not be null");<NEW_LINE>return DataBufferUtils.join(DataBufferUtils.read(new ClassPathResource(url), new DefaultDataBufferFactory(), BUFFER_SIZE)).<String>handle((it, sink) -> {<NEW_LINE>try (InputStream is = it.asInpu...
is, Charset.defaultCharset());
1,602,659
private void parse(String connectionInformation) throws MalformedURLException {<NEW_LINE>String cloudId = "";<NEW_LINE>if (isValidUrlFormat(connectionInformation)) {<NEW_LINE>elasticsearchURL = new URL(connectionInformation);<NEW_LINE>type = Type.URL;<NEW_LINE>} else {<NEW_LINE>type = Type.CLOUD_ID;<NEW_LINE>if (connec...
IllegalStateException("cloudId " + connectionInformation + " did not decode to a cluster identifier correctly");
437,553
public void loadFromFileToHolder() {<NEW_LINE>super.loadFromFileToHolder();<NEW_LINE>try {<NEW_LINE>Map<String, String> tmpGroupIdMappingProperties = new HashMap<>();<NEW_LINE>Map<String, Map<String, String>> tmpStreamIdMappingProperties = new HashMap<>();<NEW_LINE>Map<String, String> tmpGroupIdEnableMappingProperties ...
entry.getKey(), GROUPID_VALUE_SPLITTER);
648,260
public MitigationAction unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MitigationAction mitigationAction = new MitigationAction();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
class).unmarshall(context));