idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
286,030
public IRubyObject initialize(ThreadContext context, IRubyObject[] args) {<NEW_LINE>Ruby runtime = context.getRuntime();<NEW_LINE>if (this.vSource != null) {<NEW_LINE>throw runtime.newTypeError("already initialized instance");<NEW_LINE>}<NEW_LINE>OptionsReader opts = new OptionsReader(context, args.length > 1 ? args[1]...
("create_id", getCreateId(context));
347,983
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>cancel_result result = new cancel_result();<NEW_LINE>if (e instanceof org.apache.thrift.transport.TTransportException) {<NEW_LINE>_LOGGER.error("TTra...
.thrift.protocol.TMessageType.EXCEPTION;
1,759,012
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>javax.swing.JScrollPane jScrollPane1 = new javax.swing.JScrollPane();<NEW_LINE>artifactsTable = new javax.swing.JTable();<NEW_LINE>setOpaque(false);<NEW_LINE>setPreferredSize(new j...
javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
373,444
private EPerson createEPersonFromRestObject(Context context, EPersonRest epersonRest) throws AuthorizeException {<NEW_LINE>EPerson eperson = null;<NEW_LINE>try {<NEW_LINE>eperson = es.create(context);<NEW_LINE>// this should be probably moved to the converter (a merge method?)<NEW_LINE>eperson.<MASK><NEW_LINE>eperson.s...
setCanLogIn(epersonRest.isCanLogIn());
1,321,996
public EigrpInternalRoute build() {<NEW_LINE>checkArgument(getNetwork() != null, "EIGRP route: missing %s", PROP_NETWORK);<NEW_LINE>checkArgument(_eigrpMetric != null, "EIGRP route: missing %s", PROP_EIGRP_METRIC);<NEW_LINE>checkArgument(_eigrpMetricVersion != null, "EIGRP route: missing %s", PROP_EIGRP_METRIC_VERSION)...
getMetric() == 0, "EIGRP route: cannot set metric directly, use setEigrpMetric instead");
1,038,479
public boolean canPay(Ability ability, Ability source, UUID controllerId, Game game) {<NEW_LINE>UUID activator = controllerId;<NEW_LINE>if (ability.getAbilityType() == AbilityType.ACTIVATED || ability.getAbilityType() == AbilityType.SPECIAL_ACTION) {<NEW_LINE>if (((ActivatedAbilityImpl) ability).getActivatorId() != nul...
ActivatedAbilityImpl) ability).getActivatorId();
1,582,273
public static byte[] scrambleCachingSha2(byte[] password, byte[] seed) throws DigestException {<NEW_LINE>MessageDigest md = null;<NEW_LINE>try {<NEW_LINE>md = MessageDigest.getInstance("SHA-256");<NEW_LINE>} catch (NoSuchAlgorithmException ex) {<NEW_LINE>// throw new AssertionFailedException(ex);<NEW_LINE>}<NEW_LINE>by...
dig2, 0, dig1.length);
221,495
private static void runAssertionPartitionAddRemoveListener(RegressionEnvironment env, String eplContext, String contextName) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('ctx') @public " + eplContext, path);<NEW_LINE>env.compileDeploy("@name('s0') context " + contextName + " ...
sendEventBean(new SupportBean_S0(2));
697,444
public void reshape(int x, int y, int w, int h) {<NEW_LINE>if (myDividerPositionStrategy != DividerPositionStrategy.KEEP_PROPORTION && !isNull(myFirstComponent) && myFirstComponent.isVisible() && !isNull(mySecondComponent) && mySecondComponent.isVisible() && ((myVerticalSplit && h > 2 * getDividerWidth()) || (!myVertic...
int total = myVerticalSplit ? h : w;
105,189
protected void showCurrentFormat(LatLon l) {<NEW_LINE>final EditText latEdit = view.findViewById(R.id.LatitudeEdit);<NEW_LINE>final EditText lonEdit = view.<MASK><NEW_LINE>switch(currentFormat) {<NEW_LINE>case PointDescription.UTM_FORMAT:<NEW_LINE>{<NEW_LINE>view.findViewById(R.id.easting_row).setVisibility(View.VISIBL...
findViewById(R.id.LongitudeEdit);
766,636
private static JimfsFileStore createFileStore(Configuration config, PathService pathService, FileSystemState state) {<NEW_LINE>AttributeService attributeService = new AttributeService(config);<NEW_LINE>HeapDisk disk = new HeapDisk(config);<NEW_LINE>FileFactory fileFactory = new FileFactory(disk);<NEW_LINE>Map<Name, Dir...
Name rootName = path.root();
1,003,411
public void exitBoolean_as_path_in(Boolean_as_path_inContext ctx) {<NEW_LINE>AsPathSetExpr asPathSetExpr;<NEW_LINE>if (ctx.name != null) {<NEW_LINE>String name = toString(ctx.name);<NEW_LINE>asPathSetExpr = new AsPathSetReference(name);<NEW_LINE>_configuration.referenceStructure(AS_PATH_SET, name, ROUTE_POLICY_AS_PATH_...
getStart().getLine());
456,429
private void initializeStickerObserver() {<NEW_LINE>StickerSearchRepository repository = new StickerSearchRepository(requireContext());<NEW_LINE>stickerViewModel = new ViewModelProvider(this, new ConversationStickerViewModel.Factory(requireActivity().getApplication(), repository)).get(ConversationStickerViewModel.class...
inputPanel.setMediaKeyboardToggleMode(KeyboardPage.STICKER);
620,313
public static <T> TraversalControl changeNode(TraverserContext<T> context, T changedNode) {<NEW_LINE>boolean changed = context.isChanged();<NEW_LINE>if (context.isParallel()) {<NEW_LINE>List<NodeZipper<T>> zippers = context.getVar(List.class);<NEW_LINE>NodeAdapter adaper = context.getVar(NodeAdapter.class);<NEW_LINE>if...
> zippers = context.getSharedContextData();
940,411
private void processMethods0(int mod, CtClass clazz, CtMethod m, int identifier, boolean dontSearch) throws CannotCompileException, NotFoundException {<NEW_LINE>CtMethod body;<NEW_LINE><MASK><NEW_LINE>if (// internally-used method inherited<NEW_LINE>isExcluded(name))<NEW_LINE>// from a reflective class.<NEW_LINE>return...
String name = m.getName();
787,490
public static boolean isSQL(String sql) {<NEW_LINE>if (sql.startsWith("$")) {<NEW_LINE>sql = sql.substring(1);<NEW_LINE>sql = sql.trim();<NEW_LINE>}<NEW_LINE>sql = sql.trim();<NEW_LINE>while (sql.startsWith("(")) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>sql = sql.trim();<NEW_LINE>if (sql.toLowerCase().startsWith(JDBCConst...
sql = sql.substring(1);
103,701
public void initialize(ConfigurableApplicationContext applicationContext) {<NEW_LINE>ConfigurableEnvironment environment = applicationContext.getEnvironment();<NEW_LINE>if (!bootstrapEnabled(environment) && !useLegacyProcessing(environment)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>MutablePropertySources propertySources ...
new SystemEnvironmentPropertySource(DECRYPTED_PROPERTY_SOURCE_NAME, map));
1,181,163
public void update(PartialUpdate<?> update) {<NEW_LINE>RedisPersistentEntity<?> entity = this.converter.getMappingContext().getRequiredPersistentEntity(update.getTarget());<NEW_LINE>String keyspace = entity.getKeySpace();<NEW_LINE>Object id = update.getId();<NEW_LINE>byte[] redisKey = createKey(keyspace, converter.getC...
(redisKey, BinaryKeyspaceIdentifier.PHANTOM_SUFFIX));
546,499
public List<Path> call() throws Exception {<NEW_LINE>final String directoryName = file.getParent()<MASK><NEW_LINE>final Qualifiers qualifiers = Qualifiers.parseFrom(directoryName);<NEW_LINE>final ResourceFolderType resourceFolderType = qualifiers.asFolderType();<NEW_LINE>if (resourceFolderType == null) {<NEW_LINE>throw...
.getFileName().toString();
1,779,104
public void onOpened() {<NEW_LINE>super.onOpened();<NEW_LINE>final UIText gameName = find("gameName", UIText.class);<NEW_LINE>setGameName(gameName);<NEW_LINE>final UIDropdown<Module> gameplay = <MASK><NEW_LINE>String configDefaultModuleName = config.getDefaultModSelection().getDefaultGameplayModuleName();<NEW_LINE>Stri...
find("gameplay", UIDropdown.class);
1,003,036
public void commit(final boolean onSave) {<NEW_LINE>// definitions<NEW_LINE>List<String> definitions = FormHelper.getSerializedInput(definitionsTable);<NEW_LINE>getModel().setAttribute(MODEL_PARAMETER_DEFINITIONS, definitions);<NEW_LINE>// new definitions<NEW_LINE>String newDefinitions = FormHelper.trimTrailingSpaces(n...
getDocument().get());
1,306,827
public void bufferFromPixel(ByteBuffer buffer, int p) {<NEW_LINE>if (bigEndian) {<NEW_LINE>switch(bpp) {<NEW_LINE>case 32:<NEW_LINE>buffer.put((byte) ((p >> 24) & 0xff));<NEW_LINE>buffer.put((byte) ((p >> 16) & 0xff));<NEW_LINE>break;<NEW_LINE>case 16:<NEW_LINE>buffer.put((byte) ((p >> 8) & 0xff));<NEW_LINE>break;<NEW_...
>> 0) & 0xff));
33,322
public void registerMap() {<NEW_LINE>// Position<NEW_LINE>map(Type.POSITION);<NEW_LINE>// Type<NEW_LINE>map(Type.UNSIGNED_BYTE);<NEW_LINE>// NBT<NEW_LINE>map(Type.NBT);<NEW_LINE>handler(new PacketHandler() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void handle(PacketWrapper wrapper) throws Exception {<NEW_LINE>if (...
get(Type.POSITION, 0);
53,711
// This cannot return a Name because filterKindToMethodName cannot.<NEW_LINE>@Nullable<NEW_LINE>private String filterTreeToMethodName(Tree filterTree, ValueAnnotatedTypeFactory valueATF) {<NEW_LINE>while (filterTree != null && filterTree.getKind() == Tree.Kind.METHOD_INVOCATION) {<NEW_LINE>MethodInvocationTree filterTr...
getReceiverTree(filterTreeAsMethodInvocation.getMethodSelect());
1,590,988
public DBTraceMemoryRegion addRegion(String path, Range<Long> lifespan, AddressRange range, Collection<TraceMemoryFlag> flags) throws TraceOverlappedRegionException, DuplicateNameException {<NEW_LINE>try (LockHold hold = LockHold.lock(lock.writeLock())) {<NEW_LINE>Collection<? extends DBTraceMemoryRegion> conflicts = g...
set(path, path, flags);
727,039
public IRubyObject op_plus(IRubyObject obj) {<NEW_LINE>Ruby runtime = metaClass.runtime;<NEW_LINE>RubyArray y = obj.convertToArray();<NEW_LINE>int len = realLength + y.realLength;<NEW_LINE>switch(len) {<NEW_LINE>case 1:<NEW_LINE>return new RubyArrayOneObject(runtime, realLength == 1 ? eltInternal(0) <MASK><NEW_LINE>cas...
: y.eltInternal(0));
126,065
/* (non-Javadoc)<NEW_LINE>* @see com.impetus.client.cassandra.index.InvertedIndexHandlerBase#deleteColumn(java.lang.String, java.lang.String, byte[], java.lang.String, org.apache.cassandra.thrift.ConsistencyLevel, byte[])<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>protected void deleteColumn(String indexColumnFamily, Stri...
ColumnPath cp = new ColumnPath(indexColumnFamily);
864,997
public void fullRedraw() {<NEW_LINE>LOG.debug("Full redraw");<NEW_LINE>// Done that.<NEW_LINE>noIncrementalRedraw = false;<NEW_LINE>// initialize css (needs clusterSize!)<NEW_LINE>addCSSClasses(segments.getHighestClusterCount());<NEW_LINE>layer = <MASK><NEW_LINE>visLayer = svgp.svgElement(SVGConstants.SVG_G_TAG);<NEW_L...
svgp.svgElement(SVGConstants.SVG_G_TAG);
580,488
public void accept(Object ingredient) {<NEW_LINE>if (ingredient instanceof ItemStack) {<NEW_LINE>s.putStack((ItemStack) ingredient, 1);<NEW_LINE>} else if (ingredient instanceof FluidStack && s instanceof IFluidGhostSlot) {<NEW_LINE>((IFluidGhostSlot) s)<MASK><NEW_LINE>} else if (ingredient instanceof Fluid && s instan...
.putFluidStack((FluidStack) ingredient);
943,020
public SQLStatement preHandle(DumpFileContext context, String stmt) throws SQLSyntaxErrorException {<NEW_LINE>stmt = stmt.replace("\r", "");<NEW_LINE>SQLStatement sqlStatement = DruidUtil.parseMultiSQL(stmt);<NEW_LINE>String tableName;<NEW_LINE>if (sqlStatement instanceof MySqlCreateTableStatement) {<NEW_LINE>tableName...
isChanged = preHandleCreateTable(context, sqlStatement);
240,376
protected void handleComputeFields(int julianDay) {<NEW_LINE>double jdAtStartOfGregYear;<NEW_LINE>int leapMonth, IndianYear, yday, IndianMonth, IndianDayOfMonth, mday;<NEW_LINE>// Stores gregorian date corresponding to Julian day;<NEW_LINE>int[] gregorianDay;<NEW_LINE>// Gregorian date for Julian day<NEW_LINE>gregorian...
+ (30 * 3) + 10;
1,700,351
// Generate an id for a specific type<NEW_LINE>public default Id nextId(HugeType type) {<NEW_LINE>final int MAX_TIMES = 1000;<NEW_LINE>// Do get-increase-get-compare operation<NEW_LINE>long counter = 0L;<NEW_LINE>long expect = -1L;<NEW_LINE>synchronized (this) {<NEW_LINE>for (int i = 0; i < MAX_TIMES; i++) {<NEW_LINE>c...
provider().type());
1,222,473
private static int writePatch(Enumeration entries, ZipOutputStream out, BufferedOutputStream bo, ZipFile zipFile, int i) throws IOException {<NEW_LINE>byte[] buffer = new byte[BUFFEREDSIZE];<NEW_LINE>while (entries.hasMoreElements()) {<NEW_LINE>ZipEntry zipEnt = (ZipEntry) entries.nextElement();<NEW_LINE>String name = ...
write(in, out, buffer);
540,251
private boolean _save(ActionRequest req, ActionResponse res, PortletConfig config, ActionForm form) throws Exception {<NEW_LINE>Pattern p = Pattern.compile("[A-Za-z0-9-_\\.]+");<NEW_LINE>Language lang = (Language) req.getAttribute(WebKeys.LANGUAGE_MANAGER_LANGUAGE);<NEW_LINE>int numberOfKeys = Integer.parseInt(req.getP...
specificKeys.put(key, specific);
1,267,761
public void vcvtsi2ss(AsmRegisterXMM dst, AsmRegisterXMM src1, AsmMemoryOperand src2) {<NEW_LINE>int code;<NEW_LINE>if (src2.size == MemoryOperandSize.QWORD) {<NEW_LINE>code = getInstructionPreferVex() ? Code.VEX_VCVTSI2SS_XMM_XMM_RM64 : Code.EVEX_VCVTSI2SS_XMM_XMM_RM64_ER;<NEW_LINE>} else if (src2.size == MemoryOperan...
VCVTSI2SS, dst, src1, src2);
204,987
public SampledMemoryResultsSnapshot createSnapshot(long time) {<NEW_LINE>HeapHistogram histogram = lastHistogram;<NEW_LINE>if (histogram != null) {<NEW_LINE>ByteArrayOutputStream output = new ByteArrayOutputStream(1024);<NEW_LINE>DataOutputStream dos = new DataOutputStream(output);<NEW_LINE>try {<NEW_LINE>SampledMemory...
writeUTF(info.getName());
253,267
public ManagedHttpClientConnection create(final HttpRoute route, final ConnectionConfig config) {<NEW_LINE>final ConnectionConfig cconfig = config != null ? config : ConnectionConfig.DEFAULT;<NEW_LINE>CharsetDecoder chardecoder = null;<NEW_LINE>CharsetEncoder charencoder = null;<NEW_LINE>final Charset charset = cconfig...
toString(COUNTER.getAndIncrement());
876,832
public BitmapFrame process(OpenGlFrame rawFrame) {<NEW_LINE>// Flip whole image in place<NEW_LINE><MASK><NEW_LINE>int bpp = rawFrame.getBytesPerPixel();<NEW_LINE>int rowSize = size.getWidth() * bpp;<NEW_LINE>if (row == null || row.length < rowSize) {<NEW_LINE>row = new byte[rowSize];<NEW_LINE>rowSwap = new byte[rowSize...
ReadableDimension size = rawFrame.getSize();
534,546
private void showOtherInvitingUserView() {<NEW_LINE>if (CollectionUtils.isEmpty(mOtherInviteeList)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>mGroupInviting.setVisibility(View.VISIBLE);<NEW_LINE>int squareWidth = getResources().<MASK><NEW_LINE>int leftMargin = getResources().getDimensionPixelOffset(R.dimen.trtccalling_sma...
getDimensionPixelOffset(R.dimen.trtccalling_small_image_size);
1,777,645
private static boolean _hasBinary(Object obj) {<NEW_LINE>if (obj == null)<NEW_LINE>return false;<NEW_LINE>if (obj instanceof byte[]) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>if (obj instanceof JSONArray) {<NEW_LINE>JSONArray _obj = (JSONArray) obj;<NEW_LINE>int length = _obj.length();<NEW_LINE>for (int i = 0; i < le...
(String) keys.next();
1,601,519
private static void bindBytes(Connection conn) throws SQLException {<NEW_LINE>String sql = "insert into ? using stable4 tags(?) values(?,?)";<NEW_LINE>try (TSDBPreparedStatement pstmt = conn.prepareStatement(sql).unwrap(TSDBPreparedStatement.class)) {<NEW_LINE>for (int i = 1; i <= numOfSubTable; i++) {<NEW_LINE>// set ...
pstmt.setTimestamp(0, tsList);
1,762,490
protected void translateCore(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) {<NEW_LINE>final IOperandTreeNode registerOperand1 = instruction.getOperands().get(0).getRootNode().getChildren().get(0);<NEW_LINE>final IOperandTreeNode registerOperand2 = i...
1), dw, shiftedRn));
878,190
private void initWith(Context context, AttributeSet attrs) {<NEW_LINE>final TypedArray typedArray = context.obtainStyledAttributes(attrs, R.styleable.ColorPickerPreference);<NEW_LINE>try {<NEW_LINE>alphaSlider = typedArray.getBoolean(R.styleable.ColorPickerPreference_alphaSlider, true);<NEW_LINE>lightSlider = typedArra...
getString(R.string.cancel);
1,409,625
public static void writeInt(int value, byte[] byteArray, int offset, boolean bigEndian, int numBytes) {<NEW_LINE>if ((offset + numBytes > byteArray.length) && (numBytes <= 4) && (numBytes > 0))<NEW_LINE>throw new ArrayIndexOutOfBoundsException("Array access index out of bounds. " + "writeInt is trying to access byteArr...
.length - 1) + ".");
859,270
public Collection<CodegenExpression> additionalParams(CodegenMethod method, SAIFFInitializeSymbol symbols, CodegenClassScope classScope) {<NEW_LINE>CodegenExpression hashGetter = constantNull();<NEW_LINE>if (!hashKeys.isEmpty()) {<NEW_LINE>QueryPlanIndexItemForge indexForge = indexSpecs.getItems().get(getIndexNum()[0])...
this.getClass(), classScope);
188,568
public void saveState(IMemento memento) {<NEW_LINE>super.saveState(memento);<NEW_LINE>TreeViewer viewer = getCommonViewer();<NEW_LINE>if (viewer == null) {<NEW_LINE>if (this.memento != null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Make sure we are up-to-date<NEW_LINE>updateProjectMementoCac...
memento.putMemento(this.memento);
1,302,659
public void run(TLObject response, TLRPC.TL_error error) {<NEW_LINE>AndroidUtilities.runOnUIThread(() -> {<NEW_LINE>if (response instanceof TLRPC.TL_messages_historyImport) {<NEW_LINE>importId = ((TLRPC.TL_messages_historyImport) response).id;<NEW_LINE>uploadSet.remove(historyPath);<NEW_LINE>getNotificationCenter().<MA...
postNotificationName(NotificationCenter.historyImportProgressChanged, dialogId);
567,513
private void markupHashTable(TaskMonitor monitor) {<NEW_LINE>ElfDynamicTable dynamicTable = elf.getDynamicTable();<NEW_LINE>if (dynamicTable == null || !dynamicTable.containsDynamicValue(ElfDynamicType.DT_HASH)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>DataType dt = DWordDataType.dataType;<NEW_LINE>Address hashTableAddr ...
add(d.getLength());
873,950
public void runSupport() {<NEW_LINE>long wait = SystemTime<MASK><NEW_LINE>if (wait > 700) {<NEW_LINE>diag_logger.log(SystemTime.getCurrentTime() + "] took " + wait + "ms before SWT ran async code " + code);<NEW_LINE>}<NEW_LINE>long lStartTimeRun = SystemTime.getCurrentTime();<NEW_LINE>try {<NEW_LINE>if (fDisplay.isDisp...
.getCurrentTime() - lStart - msLater;
1,102,811
public static void showDisableDialog(@NonNull Context context, @NonNull Runnable onSuccess) {<NEW_LINE>AlertDialog dialog = new AlertDialog.Builder(context).setTitle(R.string.RegistrationLockV2Dialog_turn_off_registration_lock).setView(R.layout.registration_lock_v2_dialog).setNegativeButton(android.R.string.cancel, nul...
dialog.getButton(AlertDialog.BUTTON_POSITIVE);
706,315
public CreateInfrastructureConfigurationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateInfrastructureConfigurationResult createInfrastructureConfigurationResult = new CreateInfrastructureConfigurationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String ...
JsonToken token = context.getCurrentToken();
365,371
void indexMiniChunk(Chunker.Chunk chunk, String sourceName, Map<String, Object> fields, String baseChunkID, Language language) throws Ingester.IngesterException {<NEW_LINE>// Make a SolrInputDocument out of the field map<NEW_LINE>SolrInputDocument updateDoc = new SolrInputDocument();<NEW_LINE>for (String key : fields.k...
baseChunkID)).toString());
1,689,839
// The PipeInputIterator interface<NEW_LINE>public Instance next() {<NEW_LINE>String uriStr = null;<NEW_LINE>String data = null;<NEW_LINE>String target = null;<NEW_LINE>Matcher matcher = lineRegex.matcher(currentLine);<NEW_LINE>if (matcher.find()) {<NEW_LINE>if (uriGroup > -1)<NEW_LINE>uriStr = matcher.group(uriGroup);...
target = matcher.group(targetGroup);
327,792
static AnalyzerComponents createComponents(String name, Settings analyzerSettings, final Map<String, TokenizerFactory> tokenizers, final Map<String, CharFilterFactory> charFilters, final Map<String, TokenFilterFactory> tokenFilters) {<NEW_LINE>String tokenizerName = analyzerSettings.get("tokenizer");<NEW_LINE>if (token...
tokenFilter = tokenFilters.get(tokenFilterName);
91,955
public void before(Context<? extends Trait> context, OpenApi.Builder builder) {<NEW_LINE>List<Pair<ShapeId, List<String>>> violations = context.getModel().shapes().map(shape -> Pair.of(shape.getId(), TRAITS.stream().filter(trait -> shape.findTrait(trait).isPresent()).collect(Collectors.toList()))).filter(pair -> pair.g...
collect(Collectors.toList());
1,382,015
final DeleteGameSessionQueueResult executeDeleteGameSessionQueue(DeleteGameSessionQueueRequest deleteGameSessionQueueRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteGameSessionQueueRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
959,557
public static <T> void inject(Object task, Class<T> valueClass, T value) {<NEW_LINE>List<Field> allFields = new ArrayList<Field>();<NEW_LINE>Class<?> clazz = task.getClass();<NEW_LINE>while (true) {<NEW_LINE>if (clazz != null) {<NEW_LINE>Field[<MASK><NEW_LINE>allFields.addAll(Arrays.asList(fields));<NEW_LINE>} else {<N...
] fields = clazz.getDeclaredFields();
1,802,970
public void propagateTtl(InstanceState state) {<NEW_LINE>var data = (TtlRegisterData) state.getData();<NEW_LINE>if (data == null) {<NEW_LINE>// changed = true;<NEW_LINE>data = new TtlRegisterData(BitWidth.create(4));<NEW_LINE>state.setData(data);<NEW_LINE>}<NEW_LINE>var triggered = data.updateClock(state.getPortValue(7...
] = state.getPortValue(11);
1,516,428
private static TypeBinding toRawType(TypeBinding tb) {<NEW_LINE>if (// tb instanceof WildcardBinding ||<NEW_LINE>tb instanceof RawTypeBinding || tb instanceof BaseTypeBinding || // tb instanceof TypeVariableBinding ||<NEW_LINE>tb instanceof ProblemReferenceBinding) {<NEW_LINE>return tb;<NEW_LINE>} else if (tb instanceo...
? BinaryTypeBinding.class : SourceTypeBinding.class;
393,816
static void generateBala(BLangPackage bLangPackage, String projectPath, Stream<Path> paths) {<NEW_LINE>PackageID packageID = bLangPackage.packageID;<NEW_LINE>Path destPath = Paths.get(projectPath, ProjectDirConstants.DOT_BALLERINA_DIR_NAME, ProjectDirConstants.CACHES_DIR_NAME, ProjectDirConstants.BALLERINA_CENTRAL_DIR_...
= packageID.getName() + ".zip";
1,806,572
static <// / @Generated("This method was generated using jOOQ-tools")<NEW_LINE>T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, R> Seq<R> zip(Iterable<? extends T1> i1, Iterable<? extends T2> i2, Iterable<? extends T3> i3, Iterable<? extends T4> i4, Iterable<? extends T5> i5, Iterable<? extends T6...
, seq(i16), zipper);
925,505
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>new GetEnergyCountersControllerEffect(4).apply(game, source);<NEW_LINE>Permanent targetPermanent = game.getPermanent(getTargetPointer().getFirst(game, sour...
new FixedTarget(targetPermanent, game));
183,471
public void marshall(ControlDomainInsights controlDomainInsights, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (controlDomainInsights == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(controlDomainInsights...
controlDomainInsights.getLastUpdated(), LASTUPDATED_BINDING);
1,836,878
private void traverse(int action) {<NEW_LINE>Date oldStart = monthView.isSelectionEmpty() ? monthView.getToday() : monthView.getFirstSelectionDate();<NEW_LINE>Calendar cal = getCalendar(oldStart);<NEW_LINE>switch(action) {<NEW_LINE>case SELECT_PREVIOUS_DAY:<NEW_LINE>cal.add(Calendar.DAY_OF_MONTH, -1);<NEW_LINE>break;<N...
Date newStartDate = cal.getTime();
1,727,965
protected void insertArtifactInDB(String entityId, Handle handle, Artifact artifact, boolean uploadCompleted, String storeTypePath) {<NEW_LINE>handle.createUpdate("insert into " + getTableName() + " (entity_name, field_type, ar_key, ar_path, artifact_type, path_only, linked_artifact_id, filename_extension, store_type_p...
ENTITY_NAME_QUERY_PARAM, entityName).execute();
158,840
protected static void extractNamedEntityMentions(CoreMap s, List<Mention> mentions, Set<IntPair> mentionSpanSet, Set<IntPair> namedEntitySpanSet) {<NEW_LINE>List<CoreLabel> sent = s.get(CoreAnnotations.TokensAnnotation.class);<NEW_LINE>SemanticGraph basicDependency = s.get(SemanticGraphCoreAnnotations.BasicDependencies...
= new IntPair(beginIndex, endIndex);
673,734
void buildAnonymousTypeBinding(SourceTypeBinding enclosingType, ReferenceBinding supertype) {<NEW_LINE>LocalTypeBinding anonymousType = buildLocalType(enclosingType, enclosingType.fPackage);<NEW_LINE>// tag all anonymous types as used locally<NEW_LINE>anonymousType.modifiers |= ExtraCompilerModifiers.AccLocallyUsed;<NE...
).anonymousClassCannotExtendFinalClass(typeReference, supertype);
1,277,287
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.setApiKey(B...
SOLID, Color.BLACK, 1);
533,119
// getDocumentInfo<NEW_LINE>@Override<NEW_LINE>protected boolean beforeSave(boolean newRecord) {<NEW_LINE>// Set default locator, if not set and we have the warehouse:<NEW_LINE>if (getM_Locator_ID() <= 0 && getM_Warehouse_ID() > 0) {<NEW_LINE>MWarehouse wh = MWarehouse.get(<MASK><NEW_LINE>MLocator loc = wh.getDefaultLo...
getCtx(), getM_Warehouse_ID());
953,614
private int[][] readPositions(int skip, int numFields, LongValues flags, LongValues numTerms, int[] termFreqs, int flag, final int totalPositions, int[][] positionIndex) throws IOException {<NEW_LINE>final int[][] positions = new int[numFields][];<NEW_LINE><MASK><NEW_LINE>// skip<NEW_LINE>int toSkip = 0;<NEW_LINE>int t...
reader.reset(vectorsStream, totalPositions);
1,604,963
static List<SpecModelValidationError> validate(SpecModel specModel) {<NEW_LINE>if (!(specModel instanceof MountSpecModel)) {<NEW_LINE>return validateHasNoDynamicProps(specModel);<NEW_LINE>}<NEW_LINE>final List<SpecModelValidationError> validationErrors = new ArrayList<>();<NEW_LINE>final SpecMethodModel method = SpecMo...
+ dynamicProp.getName()));
773,787
default <R1, R2, R3, R4> Reader<T, R4> forEach4(Function<? super R, Function<? super T, ? extends R1>> value2, BiFunction<? super R, ? super R1, Function<? super T, ? extends R2>> value3, Function3<? super R, ? super R1, ? super R2, Function<? super T, ? extends R3>> value4, Function4<? super R, ? super R1, ? super R2,...
in, ina, inb, in2);
1,616,298
public CodeSigning unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CodeSigning codeSigning = new CodeSigning();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE...
JsonToken token = context.getCurrentToken();
1,472,560
public boolean split_traces(Point p_location, int p_layer, int p_net_no) {<NEW_LINE>ItemSelectionFilter filter = new ItemSelectionFilter(ItemSelectionFilter.SelectableChoices.TRACES);<NEW_LINE>Collection<Item> picked_items = this.<MASK><NEW_LINE>IntOctagon location_shape = TileShape.get_instance(p_location).bounding_oc...
pick_items(p_location, p_layer, filter);
1,129,448
public PagedList<PoolNodeCounts> listPoolNodeCounts(final AccountListPoolNodeCountsOptions accountListPoolNodeCountsOptions) {<NEW_LINE>ServiceResponseWithHeaders<Page<PoolNodeCounts>, AccountListPoolNodeCountsHeaders> response = listPoolNodeCountsSinglePageAsync(accountListPoolNodeCountsOptions)<MASK><NEW_LINE>return ...
.toBlocking().single();
385,186
public Builder config(Config config) {<NEW_LINE>config.get("optional").asBoolean().ifPresent(this::optional);<NEW_LINE>config.get("authenticate").asBoolean().ifPresent(this::authenticate);<NEW_LINE>config.get("propagate").asBoolean().ifPresent(this::propagate);<NEW_LINE>config.get("allow-impersonation").asBoolean(<MASK...
).ifPresent(this::allowImpersonation);
327,768
final DeleteDirectConnectGatewayResult executeDeleteDirectConnectGateway(DeleteDirectConnectGatewayRequest deleteDirectConnectGatewayRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteDirectConnectGatewayRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "DeleteDirectConnectGateway");
1,798,720
public void deleteAttachmentFilesForViewOnceMessage(long mmsId) {<NEW_LINE>Log.d(TAG, "[deleteAttachmentFilesForViewOnceMessage] mmsId: " + mmsId);<NEW_LINE>SQLiteDatabase database = databaseHelper.getSignalWritableDatabase();<NEW_LINE>Cursor cursor = null;<NEW_LINE>try {<NEW_LINE>cursor = database.query(TABLE_NAME, ne...
(CAPTION, (String) null);
209,580
/* (non-Javadoc)<NEW_LINE>* @see com.kkalice.adempiere.migrate.DBObjectInterface#createObject(com.kkalice.adempiere.migrate.MigrateLogger, com.kkalice.adempiere.migrate.MigrateDBEngine, com.kkalice.adempiere.migrate.DBConnection, java.lang.String, java.util.HashMap, java.util.HashMap)<NEW_LINE>*/<NEW_LINE>@SuppressWarn...
append(content.getDefinition());
1,377,083
final CreateSecurityProfileResult executeCreateSecurityProfile(CreateSecurityProfileRequest createSecurityProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSecurityProfileRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
207,928
protected void drawGuiContainerBackgroundLayer(float p_146976_1_, int p_146976_2_, int p_146976_3_) {<NEW_LINE>GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);<NEW_LINE>bindGuiTexture();<NEW_LINE>int sx = (width - xSize) / 2;<NEW_LINE>int sy = (height - ySize) / 2;<NEW_LINE>drawTexturedModalRect(sx, sy, 0, 0, this.xSize, ...
f.y - 2, true);
795,816
public MapCodec<A> mapResult(final ResultFunction<A> function) {<NEW_LINE>return new MapCodec<A>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public <T> Stream<T> keys(final DynamicOps<T> ops) {<NEW_LINE>return MapCodec.this.keys(ops);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public <T> RecordBuilder<T> encode(fin...
.decode(ops, input));
302,055
private void unconditionalCopy(AtomicReferenceArray dest, Entry<K, V> toCopyEntry) {<NEW_LINE>int hash = this.hash(toCopyEntry.getKey());<NEW_LINE>AtomicReferenceArray currentArray = dest;<NEW_LINE>while (true) {<NEW_LINE>int length = currentArray.length();<NEW_LINE>int index = ConcurrentHashMap.indexFor(hash, length);...
), toCopyEntry.getValue());
560,116
private void addHandlers(XMLReader xmlReader) {<NEW_LINE>try {<NEW_LINE>// add our own entity resolver<NEW_LINE>xmlReader.setEntityResolver(FSEntityResolver.instance());<NEW_LINE>xmlReader.setErrorHandler(new ErrorHandler() {<NEW_LINE><NEW_LINE>public void error(SAXParseException ex) {<NEW_LINE>XRLog.log(Level.INFO, Lo...
LOAD_EXCEPTION_MESSAGE, ex.getMessage());
66,478
public static String resolveVars(String str, Map props) {<NEW_LINE>if (str == null)<NEW_LINE>return null;<NEW_LINE>// ${VAR_NAME} or $VAR_NAME<NEW_LINE>Pattern p = Pattern.compile("\\$\\{(\\w+)\\}");<NEW_LINE>Matcher m = p.matcher(str);<NEW_LINE>StringBuffer sb = new StringBuffer();<NEW_LINE>while (m.find()) {<NEW_LINE...
vrValue = System.getenv(varName);
1,699,119
private boolean isSQLStartLogicMatches(final Workflow workflow, final PO document) {<NEW_LINE>String logic = workflow.getDocValueWorkflowTriggerLogic();<NEW_LINE>// "SQL="<NEW_LINE><MASK><NEW_LINE>//<NEW_LINE>final String tableName = document.get_TableName();<NEW_LINE>final String[] keyColumns = document.get_KeyColumns...
logic = logic.substring(4);
595,488
public int compareSp(Slice str1, Slice str2) {<NEW_LINE>SliceInput sliceInput1 = str1.getInput();<NEW_LINE>SliceInput sliceInput2 = str2.getInput();<NEW_LINE>int minLen = Math.min(str1.length(), str2.length());<NEW_LINE>int len1 = str1.length();<NEW_LINE>int len2 = str2.length();<NEW_LINE>while (sliceInput1.isReadable(...
= sortOrder[codeOfSimpleFromUTF8(sliceInput2)];
1,073,032
final StopStackResult executeStopStack(StopStackRequest stopStackRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(stopStackRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
82,971
public boolean apply(Game game, Ability source) {<NEW_LINE>Player player = game.getPlayer(source.getControllerId());<NEW_LINE>if (player == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Set<UUID> opponents = game.getOpponents(source.getControllerId());<NEW_LINE>if (opponents.stream().map(game::getPlayer).filter(Ob...
-> 1, Integer::sum));
1,356,302
public Request<ScheduleKeyDeletionRequest> marshall(ScheduleKeyDeletionRequest scheduleKeyDeletionRequest) {<NEW_LINE>if (scheduleKeyDeletionRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ScheduleKeyDeletionRequest)");<NEW_LINE>}<NEW_LINE>Request<ScheduleKeyDeletionRequ...
request.addHeader("Content-Type", "application/x-amz-json-1.1");
1,093,008
protected Map<DataSourceKey, List<AggreJoinDataSourceBo>> classifyByDataSourceUrl(List<AggreJoinDataSourceListBo> aggreJoinDataSourceListBoList) {<NEW_LINE>Map<DataSourceKey, List<AggreJoinDataSourceBo>> <MASK><NEW_LINE>for (AggreJoinDataSourceListBo aggreJoinDataSourceListBo : aggreJoinDataSourceListBoList) {<NEW_LINE...
aggreJoinDataSourceBoMap = new HashMap<>();
1,410,929
private void addTCRef(final String modeName, String tcRefName) {<NEW_LINE>if (DEBUG)<NEW_LINE>Debug.log(ModuleChangeHandler.class, "addTCRef modeName:" + modeName + " tcRefName:" + tcRefName);<NEW_LINE>WindowManagerParser wmParser = PersistenceManager.getDefault().getWindowManagerParser();<NEW_LINE>List<String> tcRefNa...
).findTopComponentDataObject(tcRefConfig.tc_id);
989,106
public ItemInfo createInfo(int itemType, UserHandle user, Intent intent) {<NEW_LINE>if (mReadCount >= mMaxCount) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>switch(itemType) {<NEW_LINE>case ITEM_TYPE_APPLICATION:<NEW_LINE>{<NEW_LINE>LauncherActivityInfo lai = mAppState.getContext().getSystemService(LauncherApps.class)....
ShortcutKey.fromIntent(intent, user);
805,325
public PolicyGrantingServiceAccess unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>PolicyGrantingServiceAccess policyGrantingServiceAccess = new PolicyGrantingServiceAccess();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetD...
int originalDepth = context.getCurrentDepth();
353,001
private Drawable applyRippleEffectWhenNeeded(Drawable selectable) {<NEW_LINE>if (mRippleColor != null && Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP && selectable instanceof RippleDrawable) {<NEW_LINE>int[][] states = new int[][] { new int[] { android.R.attr.state_enabled } };<NEW_LINE>int[] colors = new int[...
= new ColorStateList(states, colors);
313,601
void restoreState() {<NEW_LINE>try {<NEW_LINE>process.restoreState(stateStreamer, params.modelSnapshot());<NEW_LINE>} catch (Exception e) {<NEW_LINE>logger.error(() -> new ParameterizedMessage("[{}] [{}] failed to write old state", jobId, snapshotId), e);<NEW_LINE>setTaskToFailed("Failed to write old state due to: " + ...
f -> shutdown(e)));
872,115
private List<Message> load(EffectivePerson effectivePerson) {<NEW_LINE>List<Message> os = new ArrayList<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>EntityManager em = <MASK><NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>CriteriaQuery<Me...
emc.get(Message.class);
1,217,517
private String appendAccessToken(AuthorizationRequest authorizationRequest, OAuth2AccessToken accessToken) {<NEW_LINE>Map<String, Object> vars = new HashMap<String, Object>();<NEW_LINE>String requestedRedirect = authorizationRequest.getRedirectUri();<NEW_LINE>if (accessToken == null) {<NEW_LINE>throw new InvalidRequest...
(OAuth2Constants.PARAMETER.ACCESS_TOKEN));
416,351
private TypeProto generateTypeProto(Color color) {<NEW_LINE>final TypeProto.Builder typeProtoBuilder = TypeProto.newBuilder();<NEW_LINE>if (color.isUnion()) {<NEW_LINE>typeProtoBuilder.getUnionBuilder().addAllUnionMember(addColors(color.getUnionElements()));<NEW_LINE>} else {<NEW_LINE>final ObjectTypeProto.<MASK><NEW_L...
Builder objectTypeProtoBuilder = typeProtoBuilder.getObjectBuilder();
1,235,977
public static long byteStringAs(String str, ByteUnit unit) {<NEW_LINE>String lower = str.toLowerCase().trim();<NEW_LINE>try {<NEW_LINE>Matcher m = Pattern.compile("([0-9]+)([a-z]+)?").matcher(lower);<NEW_LINE>Matcher fractionMatcher = Pattern.compile("([0-9]+\\.[0-9]+)([a-z]+)?").matcher(lower);<NEW_LINE>if (m.matches(...
+ fractionMatcher.group(1));