idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
407,454
public void execute(Agent<?, ?> agent, Action action) {<NEW_LINE>if (action == ACTION_MOVE_RIGHT) {<NEW_LINE>envState.setAgentLocation(agent, LOCATION_B);<NEW_LINE>updatePerformanceMeasure(agent, -1);<NEW_LINE>} else if (action == ACTION_MOVE_LEFT) {<NEW_LINE><MASK><NEW_LINE>updatePerformanceMeasure(agent, -1);<NEW_LIN...
envState.setAgentLocation(agent, LOCATION_A);
497,081
public static ListRoleResponse unmarshall(ListRoleResponse listRoleResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRoleResponse.setRequestId(_ctx.stringValue("ListRoleResponse.RequestId"));<NEW_LINE>listRoleResponse.setCode(_ctx.integerValue("ListRoleResponse.Code"));<NEW_LINE>listRoleResponse.setMessage(_ctx.string...
("ListRoleResponse.RoleList[" + i + "].Role.Name"));
161,428
private void writeMedia(JsonWriter writer, Media media) throws IOException {<NEW_LINE>writer.name(FULL_FIELD_NAME_MEDIA);<NEW_LINE>writer.beginObject();<NEW_LINE>writeStringField(writer, FULL_FIELD_NAME_PLAYER, media.player.name());<NEW_LINE>writeStringField(<MASK><NEW_LINE>if (media.title != null) {<NEW_LINE>writeStri...
writer, FULL_FIELD_NAME_URI, media.uri);
276,561
// classes annotated with @RepositoryDefinition behave exactly as if they extended Repository<NEW_LINE>private void addRepositoryDefinitionInstances(IndexView indexView, List<ClassInfo> interfacesExtendingRepository) {<NEW_LINE>Collection<AnnotationInstance> repositoryDefinitions = indexView.getAnnotations(DotNames.SPR...
AnnotationTarget target = repositoryDefinition.target();
812,546
protected void paintHighlight(RenderContext<V, E> rc, V vertex, GraphicsDecorator g, Rectangle bounds) {<NEW_LINE>if (!vertex.isSelected()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Paint oldPaint = g.getPaint();<NEW_LINE>int halfishTransparency = 150;<NEW_LINE>Color yellowWithTransparency = new Color(255, 255, 0, halfish...
adjustValueForCurrentScale(rc, offset, .9);
675,902
public void exposeObject(String name, Object obj) throws IOException {<NEW_LINE>// Create a local object<NEW_LINE>LocalObject localObj = new LocalObject();<NEW_LINE>localObj.objectName = name;<NEW_LINE>localObj.objectId = objectIdCounter++;<NEW_LINE>localObj.theObject = obj;<NEW_LINE>// localObj.methods = obj.getClas...
[] { makeObjectDef(localObj) };
1,033,478
public void startPublishing(final String prop) {<NEW_LINE>trace(_log, "register: ", prop);<NEW_LINE>if (_eventBus == null) {<NEW_LINE>throw new IllegalStateException("_eventBus must not be null when publishing");<NEW_LINE>}<NEW_LINE>// Zookeeper callbacks (see the listener below) will be executed by the Zookeeper<NEW_L...
), _zkStoreWatcher, _zkStoreWatcher, true);
468,970
private Identity checkIdentity(Business business, PullResult result, Person person, Unit unit, User user) throws Exception {<NEW_LINE>EntityManagerContainer emc = business.entityManagerContainer();<NEW_LINE>EntityManager em = emc.get(Identity.class);<NEW_LINE>CriteriaBuilder cb = em.getCriteriaBuilder();<NEW_LINE>Crite...
cb.createQuery(Identity.class);
842,710
public static DarkClusterConfigMap toConfig(Map<String, Object> properties) {<NEW_LINE>DarkClusterConfigMap configMap = new DarkClusterConfigMap();<NEW_LINE>for (Map.Entry<String, Object> entry : properties.entrySet()) {<NEW_LINE>String darkClusterName = entry.getKey();<NEW_LINE>DarkClusterConfig darkClusterConfig = ne...
Object>) entry.getValue();
302,103
public static ConditionQuery constructEdgesQuery(Id sourceVertex, Directions direction, Id... edgeLabels) {<NEW_LINE>E.checkState(sourceVertex != null, "The edge query must contain source vertex");<NEW_LINE>E.checkState(direction != null, "The edge query must contain direction");<NEW_LINE>ConditionQuery query = new Con...
.LABEL, edgeLabels[0]);
1,854,197
static boolean matchHostName(String hostName, String pattern) {<NEW_LINE>checkArgument(hostName.length() != 0 && !hostName.startsWith(".") && !hostName.endsWith("."), "Invalid host name");<NEW_LINE>checkArgument(pattern.length() != 0 && !pattern.startsWith(".") && !pattern.endsWith("."), "Invalid pattern/domain name");...
hostName.toLowerCase(Locale.US);
1,653,914
private void parseSize(VDTree apath, Attributes attributes) {<NEW_LINE>Pattern pattern = Pattern.compile("^\\s*(\\d+(\\.\\d+)*)\\s*([a-zA-Z]+)\\s*$");<NEW_LINE>HashMap<String, Integer> m = new HashMap<String, Integer>();<NEW_LINE>m.put("px", 1);<NEW_LINE>m.put("dip", 1);<NEW_LINE>m.put("dp", 1);<NEW_LINE>m.put("sp", 1)...
(matcher.group(1));
735,074
public boolean read(java.io.ObjectInputStream p_object_stream) {<NEW_LINE>try {<NEW_LINE>SavedAttributes saved_attributes = (SavedAttributes) p_object_stream.readObject();<NEW_LINE>this.snapshot_count = saved_attributes.snapshot_count;<NEW_LINE>this.list_model = saved_attributes.list_model;<NEW_LINE>this.list.setModel(...
this.setVisible(saved_attributes.is_visible);
1,183,391
public static void main(String[] args) throws IOException {<NEW_LINE>// Use the factory to get the version 1 Mercado Bitcoin exchange API using default settings<NEW_LINE>Exchange mercadoExchange = ExchangeFactory.INSTANCE.createExchange(MercadoBitcoinExchange.class);<NEW_LINE>// Interested in the public market data fee...
yData = new ArrayList<>();
974,551
private Cpe parseCpe(DefCpeMatch cpe, String cveId) throws DatabaseException {<NEW_LINE>Cpe parsedCpe;<NEW_LINE>try {<NEW_LINE>// the replace is a hack as the NVD does not properly escape backslashes in their JSON<NEW_LINE>parsedCpe = CpeParser.parse(<MASK><NEW_LINE>} catch (CpeParsingException ex) {<NEW_LINE>LOGGER.de...
cpe.getCpe23Uri(), true);
277,735
public <T> It<T> createIterator(@Nonnull Iterable<? extends T> roots, @Nonnull final Function<T, ? extends Iterable<? extends T>> tree) {<NEW_LINE>class WrappedTree implements Condition<T>, Function<T, Iterable<? extends T>> {<NEW_LINE><NEW_LINE>HashSet<Object> visited;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public bool...
t)).filter(this);
745,474
public void onIEBlockPlacedBy(BlockPlaceContext context, BlockState state) {<NEW_LINE>Level world = context.getLevel();<NEW_LINE>BlockPos pos = context.getClickedPos();<NEW_LINE>BlockEntity tile = world.getBlockEntity(pos);<NEW_LINE>Player placer = context.getPlayer();<NEW_LINE>Direction side = context.getClickedFace()...
.z - pos.getZ();
1,746,619
protected void assignColorsToLocals(Body body) {<NEW_LINE>if (Options.v().verbose()) {<NEW_LINE>logger.debug("[" + body.getMethod().getName() + "] Assigning colors to locals...");<NEW_LINE>}<NEW_LINE>if (Options.v().time()) {<NEW_LINE>Timers.v().packTimer.start();<NEW_LINE>}<NEW_LINE>localToGroup = new HashMap<Local, O...
) * 2 + 1, 0.7f);
1,507,832
protected void createSocksGroup(Composite parent) {<NEW_LINE>final Composite composite = UIUtils.createControlGroup(parent, "SOCKS", 4, GridData.FILL_HORIZONTAL, SWT.DEFAULT);<NEW_LINE>// $NON-NLS-2$<NEW_LINE>hostText = UIUtils.createLabelText(composite, UIConnectionMessages.dialog_connection_network_socket_label_host,...
SocksConstants.DEFAULT_SOCKS_PORT, 0, 65535);
901,170
protected static Object filterItem(final String iConditionFieldName, final Object iConditionFieldValue, final Object iValue) {<NEW_LINE>if (iValue instanceof OIdentifiable) {<NEW_LINE>final ORecord rec = ((OIdentifiable) iValue).getRecord();<NEW_LINE>if (rec instanceof ODocument) {<NEW_LINE>final ODocument doc = (ODocu...
return fieldValue == null ? doc : null;
42,455
public GetResourceCollectionResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetResourceCollectionResult getResourceCollectionResult = new GetResourceCollectionResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentE...
().unmarshall(context));
534,634
public Instance pipe(Instance carrier) {<NEW_LINE>TokenSequence ts = (TokenSequence) carrier.getData();<NEW_LINE>for (int i = 0; i < ts.size(); i++) {<NEW_LINE>Token t = ts.get(i);<NEW_LINE>String s = t.getText();<NEW_LINE>String conS = s;<NEW_LINE>// dealing with ([a-z]+), ([a-z]+, [a-z]+), [a-z]+.<NEW_LINE>if (conS.s...
conS.length() - 1);
999,424
public boolean execute(final OHttpRequest iRequest, OHttpResponse iResponse) throws Exception {<NEW_LINE>checkSyntax(iRequest.getUrl(), 2, "Syntax error: document/<database>");<NEW_LINE>iRequest.getData().commandInfo = "Create document";<NEW_LINE>ODatabaseDocument db = null;<NEW_LINE>ODocument doc;<NEW_LINE>try {<NEW_L...
HEADER_ETAG + doc.getVersion());
1,004,134
private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String networkProfileName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));<NEW_...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
435,616
DoubleArray computedBucketedCs01(ResolvedCdsTrade trade, List<ResolvedCdsTrade> bucketCds, CreditRatesProvider ratesProvider, ReferenceData refData) {<NEW_LINE>checkCdsBucket(trade, bucketCds);<NEW_LINE>ResolvedCds product = trade.getProduct();<NEW_LINE>Currency currency = product.getCurrency();<NEW_LINE><MASK><NEW_LIN...
StandardId legalEntityId = product.getLegalEntityId();
749,337
final DeleteCacheParameterGroupResult executeDeleteCacheParameterGroup(DeleteCacheParameterGroupRequest deleteCacheParameterGroupRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteCacheParameterGroupRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequest...
invoke(request, responseHandler, executionContext);
227,409
public MasterBenchTaskResult runLocal() throws Exception {<NEW_LINE>ExecutorService service = ExecutorServiceFactories.fixedThreadPool("maxfile-bench-thread", <MASK><NEW_LINE>List<Callable<Void>> callables = new ArrayList<>(mParameters.mThreads);<NEW_LINE>for (int i = 0; i < mParameters.mThreads; i++) {<NEW_LINE>callab...
mParameters.mThreads).create();
102,084
private void init() {<NEW_LINE>// WARNING: called from ctor so must not be overridden (i.e. must be private or final)<NEW_LINE>setLayout(new BorderLayout(0, 5));<NEW_LINE>setBorder(makeBorder());<NEW_LINE>add(makeTitlePanel(), BorderLayout.NORTH);<NEW_LINE>JPanel mainPanel = new JPanel(new BorderLayout());<NEW_LINE>mai...
(Box.createVerticalStrut(5));
1,465,647
public int sendMessageAsync(Message message) {<NEW_LINE>OtrChatManager cm = OtrChatManager.getInstance();<NEW_LINE>SessionID sId = cm.getSessionId(message.getFrom().getAddress(), mParticipant.getAddress().getAddress());<NEW_LINE>SessionStatus otrStatus = cm.getSessionStatus(sId);<NEW_LINE>message.setTo(new XmppAddress(...
setType(Imps.MessageType.OUTGOING);
440,011
private void lowerInvokeNode(InvokeNode invokeWithArrayAlloc) {<NEW_LINE>CallTargetNode callTarget = invokeWithArrayAlloc.callTarget();<NEW_LINE>final StructuredGraph graph = invokeWithArrayAlloc.graph();<NEW_LINE>final ValueNode secondInput = callTarget.arguments().get(1);<NEW_LINE>if (secondInput instanceof ConstantN...
getValue()).asInt();
272,386
public void actionPerformed(ActionEvent e) {<NEW_LINE>// 1) load all keymaps to allKeyMaps<NEW_LINE>Map<String, Map<String, ShortcutAction>> allKeyMaps = new HashMap<String, Map<String, ShortcutAction>>();<NEW_LINE>LayersBridge layersBridge = new LayersBridge();<NEW_LINE>// no synchronization needed; the bridge is a ne...
List keyMaps = layersBridge.getProfiles();
375,683
void readPersistence() {<NEW_LINE>if (persistenceFile.exists()) {<NEW_LINE>try {<NEW_LINE>properties.load(new FileInputStream(persistenceFile));<NEW_LINE>String ebene = properties.getProperty("ebene", String.valueOf<MASK><NEW_LINE>int ebe = Integer.valueOf(ebene);<NEW_LINE>if (ebe >= 0) {<NEW_LINE>controlUnit.setEbene(...
(controlUnit.getEbene()));
829,647
public void initialize() throws LifecycleException {<NEW_LINE>// Service shouldn't be used with embedded, so it doesn't matter<NEW_LINE>if (initialized) {<NEW_LINE>if (log.isLoggable(Level.INFO)) {<NEW_LINE>log.log(Level.INFO, LogFacade.SERVICE_HAS_BEEN_INIT);<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>initialized...
getServer().addService(this);
1,396,824
private static void printNestedObjectField(PrintStream out, int tabLevel, J9ClassPointer localClazz, U8Pointer dataStart, J9ClassPointer fromClass, J9ObjectFieldOffset objectFieldOffset, long address, String[] nestingHierarchy, J9ClassPointer containerClazz) throws CorruptDataException {<NEW_LINE>J9ROMFieldShapePointer...
format("%s %s = ", fieldSignature, fieldName);
1,011,184
public void open() {<NEW_LINE>box = new VuzeMessageBox(<MASK><NEW_LINE>box.setSubTitle(MessageText.getString(resource_prefix + ".subtitle"));<NEW_LINE>box.addResourceBundle(SimplePluginInstallWindow.class, SkinPropertiesImpl.PATH_SKIN_DEFS, "skin3_dlg_register");<NEW_LINE>box.setIconResource(resource_prefix + ".image")...
"", "", null, 0);
565,375
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>getSupportActionBar().setHomeAsUpIndicator(R.drawable.ic_close_white_24dp);<NEW_LINE>getSupportActionBar().setDisplayHomeAsUpEnabled(true);<NEW_LINE>mDataSource = new VpnProfileDataSource(this);<NEW_LINE>mDataSource....
findViewById(R.id.vpn_type);
1,430,988
public void deletePet(Long petId, String apiKey) throws TimeoutException, ExecutionException, InterruptedException, ApiException {<NEW_LINE>Object postBody = null;<NEW_LINE>// verify the required parameter 'petId' is set<NEW_LINE>if (petId == null) {<NEW_LINE>VolleyError error = new VolleyError("Missing the required pa...
= new ArrayList<Pair>();
1,738,264
protected static Iterator<String> findResourcePaths(String path, String pattern) {<NEW_LINE>Iterator<String> bufferedResult = <MASK><NEW_LINE>if (bufferedResult != null) {<NEW_LINE>return bufferedResult;<NEW_LINE>}<NEW_LINE>ArrayList<String> propertiesList = new ArrayList<String>();<NEW_LINE>@SuppressWarnings("unchecke...
ressourcesFiles.get(path + pattern);
988,245
public void run(RegressionEnvironment env) {<NEW_LINE>String[] fields = new String[] { "symbol", "price", "sumVol" };<NEW_LINE>String stmtText = "@name('s0') select symbol, price, sum(volume) as sumVol " + "from SupportMarketDataBean#length(5) " + "group by symbol " + "order by symbol";<NEW_LINE>env.compileDeploy(stmtT...
, "TAC", -2, 12);
71,041
private ConvolutionLayer addDenseLayer(String name, String... previousLayers) {<NEW_LINE>BatchNormalization bnLayer1 = new BatchNormalization.Builder().name(String.format("%s_%s", name, "bn1")).build();<NEW_LINE>ConvolutionLayer layer1x1 = new ConvolutionLayer.Builder().name(String.format("%s_%s", name, "con1x1")).kern...
growthRate * 4).build();
1,640,557
public MappeableContainer xor(MappeableBitmapContainer value2) {<NEW_LINE>int newCardinality = 0;<NEW_LINE>if (BufferUtil.isBackedBySimpleArray(this.bitmap) && BufferUtil.isBackedBySimpleArray(value2.bitmap)) {<NEW_LINE>long[] b = this.bitmap.array();<NEW_LINE>long[] v2 = value2.bitmap.array();<NEW_LINE>int len = this....
= value2.bitmap.array();
1,021,187
public ListNode reverseBetween(ListNode head, int a, int b) {<NEW_LINE>int size = getSize(head);<NEW_LINE>if (a == 1 && b != size) {<NEW_LINE>ListNode s = head;<NEW_LINE>ListNode e = head;<NEW_LINE>for (int i = 1; i < b; i++) e = e.next;<NEW_LINE>ListNode afb = e.next;<NEW_LINE>e.next = null;<NEW_LINE>head = reverseLis...
i++) bFa = bFa.next;
1,170,697
public Flux<NumericResponse<ZInterStoreCommand, Long>> zInterStore(Publisher<ZInterStoreCommand> commands) {<NEW_LINE>return execute(commands, command -> {<NEW_LINE>Assert.notNull(command.getKey(), "Destination key must not be null!");<NEW_LINE>Assert.notEmpty(command.getSourceKeys(), "Source keys must not be null or e...
(weight).toPlainString());
445,302
public static QueryRecordPlansResponse unmarshall(QueryRecordPlansResponse queryRecordPlansResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryRecordPlansResponse.setRequestId(_ctx.stringValue("QueryRecordPlansResponse.RequestId"));<NEW_LINE>queryRecordPlansResponse.setSuccess<MASK><NEW_LINE>queryRecordPlansResponse.se...
(_ctx.booleanValue("QueryRecordPlansResponse.Success"));
523,354
public static List<SerializeDataType> convertToSerilizeType(List<RelDataTypeField> relDataTypeList) {<NEW_LINE>List<SerializeDataType> dataTypes = new ArrayList<>(relDataTypeList.size());<NEW_LINE>for (RelDataTypeField relDataTypeField : relDataTypeList) {<NEW_LINE><MASK><NEW_LINE>SqlTypeName sqlTypeName = relDataType....
RelDataType relDataType = relDataTypeField.getType();
60,754
private void create() {<NEW_LINE>mainPanel = new JPanel();<NEW_LINE>cardLayout = new CardLayout();<NEW_LINE>conflictPanel = new JPanel(cardLayout);<NEW_LINE>mainPanel.setLayout(new BorderLayout(0, 10));<NEW_LINE>mainPanel.setBorder(BorderFactory.createEmptyBorder(5, 5, 5, 5));<NEW_LINE>nameLabel = new GDLabel("Merge Pr...
add(new GIconLabel(MERGE_ICON));
1,534,762
private static // for fullscreen JavaFX systems with no window decorations<NEW_LINE>void addCloseButton(final Stage stage) {<NEW_LINE>Scene scene = stage.getScene();<NEW_LINE>Parent rootNode = scene.getRoot();<NEW_LINE>Button btnClose = new Button("X");<NEW_LINE>btnClose.setOnAction(new EventHandler<ActionEvent>() {<NE...
Node topNode = pane.getTop();
1,797,066
final PutEncryptionConfigResult executePutEncryptionConfig(PutEncryptionConfigRequest putEncryptionConfigRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(putEncryptionConfigRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
false), new PutEncryptionConfigResultJsonUnmarshaller());
1,764,767
public void run() {<NEW_LINE>try {<NEW_LINE>final ProgressHandle handle = ProgressHandleFactory.createHandle(isInstall ? getBundle("CustomHandleStep_Install_InstallingPlugins") : getBundle("CustomHandleStep_Uninstall_UninstallingPlugins"));<NEW_LINE>JComponent progressComponent = ProgressHandleFactory.createProgressCom...
mainLabel = ProgressHandleFactory.createMainLabelComponent(handle);
1,715,632
private void test_1cfa_call_graph(LocalVarNode vn, SootMethod caller, SootMethod callee_signature, Histogram ce_range) {<NEW_LINE>long l, r;<NEW_LINE>IVarAbstraction pn = ptsProvider.findInternalNode(vn);<NEW_LINE>if (pn == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>pn = pn.getRepresentative();<NEW_LINE>Set<SootMetho...
CgEdge p = it.next();
1,733,524
private void actOnQuitEvent(ClientConnectionEvent.Disconnect event) {<NEW_LINE>long time = System.currentTimeMillis();<NEW_LINE>Player player = event.getTargetEntity();<NEW_LINE>String playerName = player.getName();<NEW_LINE>UUID playerUUID = player.getUniqueId();<NEW_LINE><MASK><NEW_LINE>SpongeAFKListener.afkTracker.l...
ServerUUID serverUUID = serverInfo.getServerUUID();
1,820,289
public static HANDLE dialEntry(String entryName, RasDialFunc2 func2) throws Ras32Exception {<NEW_LINE>// get the RAS Credentials<NEW_LINE>RASCREDENTIALS.ByReference credentials = new RASCREDENTIALS.ByReference();<NEW_LINE>synchronized (phoneBookMutex) {<NEW_LINE>credentials.dwMask = WinRas.RASCM_UserName | WinRas.RASCM...
RasHangUp(hrasConn.getValue());
510,915
public static Set<ElementHandle<TypeElement>> findImplementors(final ClasspathInfo cpInfo, final ElementHandle<TypeElement> baseType) {<NEW_LINE>final Set<ClassIndex.SearchKind> kind = EnumSet.of(ClassIndex.SearchKind.IMPLEMENTORS);<NEW_LINE>final Set<ClassIndex.SearchScope> scope = EnumSet.<MASK><NEW_LINE>final Set<El...
allOf(ClassIndex.SearchScope.class);
1,750,041
public List<ByteRecord> xReadGroup(Consumer consumer, StreamReadOptions readOptions, StreamOffset<byte[]>... streams) {<NEW_LINE>Assert.notNull(readOptions, "Consumer must not be null!");<NEW_LINE><MASK><NEW_LINE>Assert.notNull(streams, "StreamOffsets must not be null!");<NEW_LINE>List<Object> params = new ArrayList<>(...
Assert.notNull(readOptions, "ReadOptions must not be null!");
557,867
public static void addToItemTooltip(ItemTooltipEvent event) {<NEW_LINE>if (!AllConfigs.CLIENT.tooltips.get())<NEW_LINE>return;<NEW_LINE>if (event.getPlayer() == null)<NEW_LINE>return;<NEW_LINE>ItemStack stack = event.getItemStack();<NEW_LINE>String translationKey = stack.getItem().getDescriptionId(stack);<NEW_LINE>if (...
event.getToolTip(), stack);
1,724,228
public void read(org.apache.thrift.protocol.TProtocol prot, GcCycleStats struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet <MASK><NEW_LINE>if (incoming.get(0)) {<NEW_LINE>struct.started = i...
incoming = iprot.readBitSet(6);
364,658
private static void addDiscountLine(MOrder order, MOrderLine ol, BigDecimal discount, BigDecimal qty, int C_Charge_ID, I_M_Promotion promotion) throws Exception {<NEW_LINE>MOrderLine nol;<NEW_LINE>if (discount.scale() > 2)<NEW_LINE>discount = discount.setScale(2, BigDecimal.ROUND_HALF_UP);<NEW_LINE>String description =...
.getLine() + i + 1;
1,372,340
public void init() {<NEW_LINE>if (siteConfig == null)<NEW_LINE>siteConfig = SpringContextUtil.getBean(SiteConfig.class);<NEW_LINE>try {<NEW_LINE>Class.forName(siteConfig.getDatasource_driver());<NEW_LINE>URI uri = new URI(siteConfig.getDatasource_url().replace("jdbc:", ""));<NEW_LINE>String host = uri.getHost();<NEW_LI...
String query = uri.getQuery();
1,392,982
public static void createANewServer(com.azure.resourcemanager.postgresqlflexibleserver.PostgreSqlManager manager) {<NEW_LINE>manager.servers().define("pgtestsvc4").withRegion("westus").withExistingResourceGroup("testrg").withTags(mapOf("ElasticServer", "1")).withSku(new Sku().withName("Standard_D4s_v3").withTier(SkuTie...
CreateMode.CREATE).create();
177,076
private static void buildYCCtoRGBtable() {<NEW_LINE>if (ColorSpaces.DEBUG) {<NEW_LINE>System.err.println("Building JPEG YCbCr conversion table");<NEW_LINE>}<NEW_LINE>for (int i = 0, x = -CENTERJSAMPLE; i <= MAXJSAMPLE; i++, x++) {<NEW_LINE>// i is the actual input pixel value, in the range 0..MAXJSAMPLE<NEW_LINE>// The...
* x + ONE_HALF) >> SCALEBITS;
751,082
private void doFinish() {<NEW_LINE>CvsInstallerModuleConfig.getInstance().setCvsInstalled(true);<NEW_LINE>if (listener != null) {<NEW_LINE>OpenProjects.<MASK><NEW_LINE>listener = null;<NEW_LINE>}<NEW_LINE>assert !EventQueue.isDispatchThread();<NEW_LINE>for (UpdateUnit u : UpdateManager.getDefault().getUpdateUnits()) {<...
getDefault().removePropertyChangeListener(listener);
1,817,903
public void build(boolean parallel, List<V> collection, DistanceMetric dm) {<NEW_LINE>// really just checking dm == euclidean<NEW_LINE>setDistanceMetric(dm);<NEW_LINE>this.vecs = new ArrayList<>(collection);<NEW_LINE>this.cache = euclid.getAccelerationCache(vecs, parallel);<NEW_LINE>int d = collection.get(0).length();<...
= new NearestIterator(keys, vals);
282,187
private void internalPutIfAbsent(final byte[] key, final byte[] value, final CompletableFuture<byte[]> future, final int retriesLeft, final Errors lastCause) {<NEW_LINE>final Region region = this.pdClient.findRegionByKey(key, ErrorsHelper.isInvalidEpoch(lastCause));<NEW_LINE>final RegionEngine regionEngine = getRegionE...
setRegionId(region.getId());
727,596
public synchronized boolean updateNetKey(final NetworkKey networkKey, final String newNetKey) throws IllegalArgumentException {<NEW_LINE>if (MeshParserUtils.validateKeyInput(newNetKey)) {<NEW_LINE>final byte[] key = MeshParserUtils.toByteArray(newNetKey);<NEW_LINE>if (isNetKeyExists(key)) {<NEW_LINE>throw new IllegalAr...
final NetworkKey netKey = getNetKey(keyIndex);
315,724
public void run() {<NEW_LINE>try {<NEW_LINE>final Camera camera = cameraManager.open(previewView, displayRotation(), !DISABLE_CONTINUOUS_AUTOFOCUS);<NEW_LINE>final Rect framingRect = cameraManager.getFrame();<NEW_LINE>final RectF framingRectInPreview = new RectF(cameraManager.getFramePreview());<NEW_LINE><MASK><NEW_LIN...
framingRectInPreview.offsetTo(0, 0);
1,322,114
public EphemeralStorage unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>EphemeralStorage ephemeralStorage = new EphemeralStorage();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = origina...
JsonToken token = context.getCurrentToken();
164,154
private TransactionReceipt waitForTx(byte[] txHash) throws InterruptedException {<NEW_LINE>ByteArrayWrapper txHashW = new ByteArrayWrapper(txHash);<NEW_LINE><MASK><NEW_LINE>long startBlock = ethereum.getBlockchain().getBestBlock().getNumber();<NEW_LINE>while (true) {<NEW_LINE>TransactionReceipt receipt = txWaiters.get(...
txWaiters.put(txHashW, null);
1,182,172
public static synchronized void startBackgroundServiceIfNotAlreadyRunning(Context context, String filename, String queryFilter, int logLevel) {<NEW_LINE>boolean alreadyRunning = ServiceHelper.checkIfServiceIsRunning(context, LogcatRecordingService.class);<NEW_LINE>Log.d(TAG, "Is LogcatRecordingService running: " + alre...
Intent(context, LogcatRecordingService.class);
487,896
private boolean isEmpty(ChunkCache chunkCache) {<NEW_LINE>if (!chunkCache.isEmpty()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (Baritone.settings().renderCachedChunks.value && !Minecraft.getMinecraft().isSingleplayer()) {<NEW_LINE>Baritone baritone = (Baritone) BaritoneAPI<MASK><NEW_LINE>IPlayerContext ctx = bari...
.getProvider().getPrimaryBaritone();
1,490,696
final public boolean isPotentiallyUnknown(LocalVariableBinding local) {<NEW_LINE>// do not want to complain in unreachable code<NEW_LINE>if ((this.tagBits & UNREACHABLE) != 0 || (this.tagBits & NULL_FLAG_MASK) == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int position = local.id + this.maxFieldCount;<NEW_LINE>if (...
position % BitCacheSize))) != 0;
616,067
private void reassignEarlyHolders8(Context context) {<NEW_LINE>ReflectUtil.field(Annotate.instance(context), TYPES_FIELD).set(this);<NEW_LINE>ReflectUtil.field(Attr.instance(context), TYPES_FIELD).set(this);<NEW_LINE>ReflectUtil.field(Check.instance(context), TYPES_FIELD).set(this);<NEW_LINE>ReflectUtil.field(DeferredA...
, TYPES_FIELD).set(this);
1,833,965
private static Callable<byte[]> requestWithGetAndResponse(final URL url, final Proxy proxy, final SecurityAuthentication authentication, final Map<String, Object> headers) {<NEW_LINE>return new Callable<byte[]>() {<NEW_LINE><NEW_LINE>private HttpURLConnection openConnection(final URL url) throws IOException {<NEW_LINE>...
) : url.openConnection(proxy);
494,946
private Set<File> walkDirectory(Path directory, final WatchEvent.Kind<?> kind) {<NEW_LINE>final Set<File> <MASK><NEW_LINE>try {<NEW_LINE>registerWatch(directory);<NEW_LINE>Files.walkFileTree(directory, new SimpleFileVisitor<Path>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public FileVisitResult preVisitDirectory(Path di...
walkedFiles = new LinkedHashSet<>();
1,139,357
private static FileObject generateHtml(FileObject appletFile, FileObject buildDir, FileObject classesDir) throws IOException {<NEW_LINE>FileObject htmlFile = buildDir.getFileObject(appletFile.getName(), HTML_EXT);<NEW_LINE>if (htmlFile == null) {<NEW_LINE>htmlFile = buildDir.createData(<MASK><NEW_LINE>}<NEW_LINE>FileLo...
appletFile.getName(), HTML_EXT);
1,409,265
public DBSObject resolveObject(DBRProgressMonitor monitor) throws DBException {<NEW_LINE>OracleSchema tableSchema = schema != null ? schema : dataSource.getSchema(monitor, schemaName);<NEW_LINE>if (tableSchema == null) {<NEW_LINE>throw new <MASK><NEW_LINE>}<NEW_LINE>OracleTable table = tableSchema.getTable(monitor, tab...
DBException("Constraint schema '" + schemaName + "' not found");
1,055,472
private HttpResponse allowArchiveAccess(String tenantName, HttpRequest request) {<NEW_LINE>if (controller.tenants().require(TenantName.from(tenantName)).type() != Tenant.Type.cloud)<NEW_LINE>throw new IllegalArgumentException("Tenant '" + tenantName + "' is not a cloud tenant");<NEW_LINE>var data = toSlime(request.<MAS...
getData()).get();
1,485,415
public JavaNode visitNewClass(JCNewClass newClass, TreeContext owner) {<NEW_LINE>TreeContext ctx = owner.down(newClass);<NEW_LINE>if (newClass == null || newClass.constructor == null) {<NEW_LINE>logger.atWarning().log("Unexpected null class or constructor: %s", newClass);<NEW_LINE>return emitDiagnostic(ctx, "error anal...
newClass.getClassBody(), ctx);
1,753,242
public void toModel(Model model) {<NEW_LINE>for (String s1 : altLocations.keySet()) {<NEW_LINE>Resource r = model.createResource();<NEW_LINE>Resource e = model.createResource();<NEW_LINE>model.add(r, LocationMappingVocab.mapping, e);<NEW_LINE>String k = s1;<NEW_LINE>String <MASK><NEW_LINE>model.add(e, LocationMappingVo...
v = altLocations.get(k);
352,823
final GetWorkflowResult executeGetWorkflow(GetWorkflowRequest getWorkflowRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getWorkflowRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
868,274
public <T> void afterBeanDiscovery(@Observes AfterBeanDiscovery afterBeanDiscovery, BeanManager beanManager) {<NEW_LINE>if (tc.isDebugEnabled())<NEW_LINE>Tr.debug(tc, "afterBeanDiscovery : instance : " + Integer.toHexString(this.hashCode()) + " BeanManager : " + Integer.toHexString(beanManager.hashCode()));<NEW_LINE>tr...
Tr.debug(tc, "IdentityStoreHandler is not registered because a custom IdentityStoreHandler has been registered,");
699,626
public static void VRSettings_SetString(@NativeType("char const *") CharSequence pchSection, @NativeType("char const *") CharSequence pchSettingsKey, @NativeType("char const *") CharSequence pchValue, @NativeType("EVRSettingsError *") IntBuffer peError) {<NEW_LINE>if (CHECKS) {<NEW_LINE>check(peError, 1);<NEW_LINE>}<NE...
stack.nASCII(pchValue, true);
774,424
private static <T> StreamingDeserializer<T> newDeserializer(ObjectReader reader) {<NEW_LINE>final <MASK><NEW_LINE>final JsonParser parser;<NEW_LINE>try {<NEW_LINE>// TODO(scott): ByteBufferFeeder is currently not supported by jackson, and the current API throws<NEW_LINE>// UnsupportedOperationException if not supported...
JsonFactory factory = reader.getFactory();
1,082,826
private TextChunk[] extractChunks(@Nonnull UsageInfo2UsageAdapter usageInfo2UsageAdapter, @Nonnull PsiFile file) {<NEW_LINE>int absoluteStartOffset = usageInfo2UsageAdapter.getNavigationOffset();<NEW_LINE>if (absoluteStartOffset == -1)<NEW_LINE>return TextChunk.EMPTY_ARRAY;<NEW_LINE>Document visibleDocument = myDocumen...
visibleStartOffset - visibleDocument.getLineStartOffset(visibleLineNumber);
1,179,221
public void run() {<NEW_LINE>try {<NEW_LINE>long startTime = System.currentTimeMillis();<NEW_LINE>if (parentObject instanceof ParallelTileObject) {<NEW_LINE>((ParallelTileObject) parentObject).updateStatus(Status.PROCESSING);<NEW_LINE>imageData.getHierarchy().fireObjectClassificationsChangedEvent(this, Collections.sing...
error("Error processing " + roi, e);
878,552
private IQueryBuilder<I_AD_User_SortPref_Hdr> createSortPreferenceHdrQueryBuilder(final String action, final int recordId, final Object contextProvider) {<NEW_LINE>Check.assumeNotEmpty(action, "action not empty");<NEW_LINE>//<NEW_LINE>// Services<NEW_LINE>final IQueryBL queryBL = Services.get(IQueryBL.class);<NEW_LINE>...
addEqualsFilter(I_AD_User_SortPref_Hdr.COLUMN_AD_Tab_ID, recordId);
1,134,187
public com.baidu.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse buildPartial() {<NEW_LINE>com.baidu.hugegraph.backend.store.raft.rpc.RaftRequests.SetLeaderResponse result = new com.baidu.hugegraph.backend.store.raft.<MASK><NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_L...
rpc.RaftRequests.SetLeaderResponse(this);
1,039,499
private void updateInfoViewAppearance() {<NEW_LINE>if (portrait)<NEW_LINE>return;<NEW_LINE>View toolsPanel = mainView.findViewById(R.id.measure_mode_controls);<NEW_LINE>View snapToRoadProgress = mainView.findViewById(R.id.snap_to_road_progress_bar);<NEW_LINE>int infoViewWidth = mainView.getWidth() - toolsPanel.getWidth...
int bottomMargin = toolsPanel.getHeight();
1,137,666
public void recordHistoricDetailVariableCreate(VariableInstanceEntity variable, ExecutionEntity sourceActivityExecution, boolean useActivityId, String activityInstanceId, Date createTime) {<NEW_LINE>String processDefinitionId = getProcessDefinitionId(variable, sourceActivityExecution);<NEW_LINE>if (getHistoryConfigurat...
), HistoryJsonConstants.TYPE_HISTORIC_DETAIL_VARIABLE_UPDATE, data);
901,294
public void taskFinished(Task task) {<NEW_LINE>FileObject modeDir = userDir.get().getFileObject("config/Windows2Local/Modes");<NEW_LINE>OutputStream os;<NEW_LINE>if (modeDir != null) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>try {<NEW_LINE>FileSystem layer = findLayer(project);<NEW_LINE>if (layer == n...
= "Windows2/Modes/" + m.getNameExt();
1,440,588
private static void decode13(DataInput in, long[] tmp, long[] longs) throws IOException {<NEW_LINE>readLELongs(in, tmp, 0, 26);<NEW_LINE>shiftLongs(tmp, 26, <MASK><NEW_LINE>for (int iter = 0, tmpIdx = 0, longsIdx = 26; iter < 2; ++iter, tmpIdx += 13, longsIdx += 3) {<NEW_LINE>long l0 = (tmp[tmpIdx + 0] & MASK16_3) << 1...
longs, 0, 3, MASK16_13);
1,644,661
static boolean determineIfCurrentPasswordRequired(final PwmRequest pwmRequest) throws PwmUnrecoverableException {<NEW_LINE>final ChangePasswordProfile changePasswordProfile = ChangePasswordServlet.getProfile(pwmRequest);<NEW_LINE>final RequireCurrentPasswordMode currentSetting = changePasswordProfile.readSettingAsEnum(...
.getPwmSession().getLoginInfoBean();
1,376,107
private static void categorizeErrorRules(List<Pair<Rule, FileObject>> rules, Map<String, Map<String, List<ErrorRule>>> dest, FileObject rootFolder) {<NEW_LINE>dest.clear();<NEW_LINE>for (Pair<Rule, FileObject> pair : rules) {<NEW_LINE>Rule rule = pair.getA();<NEW_LINE>FileObject fo = pair.getB();<NEW_LINE>String mime =...
rootFolder, fo.getParent());
139,009
public static void main(String[] args) {<NEW_LINE>OptionsParser parser = OptionsParser.builder().optionsClasses(BuildEncyclopediaOptions.class).allowResidue(false).build();<NEW_LINE>parser.parseAndExitUponError(args);<NEW_LINE>BuildEncyclopediaOptions options = parser.getOptions(BuildEncyclopediaOptions.class);<NEW_LIN...
, createRuleClassProvider(options.provider));
135,884
private void makeConstructor(ConstructorInsn insn, ICodeWriter code) throws CodegenException {<NEW_LINE>ClassNode cls = mth.root().resolveClass(insn.getClassType());<NEW_LINE>if (cls != null && cls.isAnonymous() && !fallback) {<NEW_LINE>cls.ensureProcessed();<NEW_LINE>inlineAnonymousConstructor(code, cls, insn);<NEW_LI...
resolveMethod(insn.getCallMth());
48,204
private static void registerAppLinksListeners(Context context, final MixpanelAPI mixpanel) {<NEW_LINE>// Register a BroadcastReceiver to receive com.parse.bolts.measurement_event and track a call to mixpanel<NEW_LINE>try {<NEW_LINE>final Class<?> clazz = Class.forName("androidx.localbroadcastmanager.content.LocalBroadc...
, args.get(key));
1,702,125
public static void searchSubreddits(@NonNull final CacheManager cm, @NonNull final RedditAccount user, @NonNull final String queryString, @NonNull final Context context, @NonNull final APIResponseHandler.ValueResponseHandler<SubredditListResponse> handler, @NonNull final Optional<String> after) {<NEW_LINE>// 60 seconds...
TimestampBound.notOlderThan(maxCacheAgeMs)));
431,122
final UpdateSceneResult executeUpdateScene(UpdateSceneRequest updateSceneRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSceneRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.SERVICE_ID, "IoTTwinMaker");
676,598
public void lower(DynamicNewArrayNode newArrayNode, HotSpotRegistersProvider registers, LoweringTool tool) {<NEW_LINE>StructuredGraph graph = newArrayNode.graph();<NEW_LINE>OptionValues localOptions = graph.getOptions();<NEW_LINE>Arguments args = new Arguments(allocateArrayDynamic, newArrayNode.graph().getGuardsStage()...
), newArrayNode, DEFAULT_REPLACER, args);
905,555
public Producer buildProducerProperties() {<NEW_LINE>PropertyMapper propertyMapper = PropertyMapper.get().alwaysApplyingWhenNonNull();<NEW_LINE>Producer properties = new Producer();<NEW_LINE>AzurePropertiesUtils.mergeAzureCommonProperties(this, this.producer, properties);<NEW_LINE>propertyMapper.from(this.getDomainName...
).to(properties::setDomainName);
1,661,682
public static void onReceive(TermuxApiReceiver apiReceiver, final Context context, Intent intent) {<NEW_LINE>Logger.logDebug(LOG_TAG, "onReceive");<NEW_LINE>final String[] filePaths = intent.getStringArrayExtra("paths");<NEW_LINE>final boolean recursive = intent.getBooleanExtra("recursive", false);<NEW_LINE>final Integ...
].replace("\\,", ",");