idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
857,763 | public static double winrateToHandicap(double pWinrate) {<NEW_LINE>// we assume each additional handicap lowers winrate by fixed percentage.<NEW_LINE>// this is pretty accurate for human handicap games at least.<NEW_LINE>// also this kind of property is a requirement for handicaps to determined based on rank<NEW_LINE>/... | ) / Math.log(passWinrateSymmetric); |
334,532 | final CreateAppCookieStickinessPolicyResult executeCreateAppCookieStickinessPolicy(CreateAppCookieStickinessPolicyRequest createAppCookieStickinessPolicyRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createAppCookieStickinessPolicyRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.star... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
1,185,132 | public static GmmDiscretizer trainDiscretizer(List<Integer> values, int nrClasses, boolean extraZero) {<NEW_LINE>List<Integer> retained = new ArrayList<Integer>(values);<NEW_LINE>Integer zero = Integer.valueOf(0);<NEW_LINE>if (extraZero && retained.contains(zero)) {<NEW_LINE>// remove all zeroes<NEW_LINE>int i = 0;<NEW... | .size()][1]; |
654,689 | private JCMethodDecl generateBuilderMethod(SuperBuilderJob job) {<NEW_LINE>JavacTreeMaker maker = job.getTreeMaker();<NEW_LINE>JCExpression call = maker.NewClass(null, List.<JCExpression>nil(), namePlusTypeParamsToTypeReference(maker, job.parentType, job.toName(job.builderImplClassName), false, job.typeParams), List.<J... | nil(), body, null); |
849,815 | private boolean isJoinNodeOrderMatch(JoinNode jn, List<Order> orderBys) {<NEW_LINE>// onCondition column in orderBys will be saved to onOrders,<NEW_LINE>// eg: if jn.onCond = (t1.id=t2.id),<NEW_LINE>// orderBys is t1.id,t2.id,t1.name, and onOrders = {t1.id,t2.id};<NEW_LINE>List<Order> leftOnOrders = jn.getLeftJoinOnOrd... | 0, leftOnOrders.size()); |
1,261,613 | private static HUTraceEventQuery updateEventTimeFromParameter(@NonNull final HUTraceEventQuery query, @NonNull final DocumentFilterParam parameter) {<NEW_LINE>errorIfQueryValueNotNull("EventTime", query.getEventTime(), query);<NEW_LINE>switch(parameter.getOperator()) {<NEW_LINE>case EQUAL:<NEW_LINE>final Instant value ... | ).setParameter("DocumentFilterParam", parameter); |
680,065 | private // F743-15628 d649636<NEW_LINE>void addJCDIInterceptors() {<NEW_LINE>// Must be in a JCDI enabled module, and not a ManagedBean<NEW_LINE>JCDIHelper jcdiHelper = ivEJBModuleMetaDataImpl.ivJCDIHelper;<NEW_LINE>if (// F743-34301.1<NEW_LINE>jcdiHelper != null && !ivBmd.isManagedBean()) {<NEW_LINE>// Obtain the inte... | "addJCDIInterceptor : " + ivJCDIFirstInterceptorClass.getName()); |
534,392 | private void notifyException(Throwable ex) {<NEW_LINE>Util.bug(null, ex);<NEW_LINE>if (mNotified)<NEW_LINE>return;<NEW_LINE>Context context = getContext();<NEW_LINE>if (context == null)<NEW_LINE>return;<NEW_LINE>try {<NEW_LINE>Intent intent = new Intent("biz.bokhorst.xprivacy.action.EXCEPTION");<NEW_LINE>intent.putExtr... | setSmallIcon(R.drawable.ic_launcher); |
1,505,472 | public boolean union(RWSet other) {<NEW_LINE>if (other == null || isFull) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean ret = false;<NEW_LINE>if (other instanceof MethodRWSet) {<NEW_LINE>MethodRWSet o = (MethodRWSet) other;<NEW_LINE>if (o.getCallsNative()) {<NEW_LINE><MASK><NEW_LINE>setCallsNative();<NEW_LINE>}<... | ret = !getCallsNative() | ret; |
1,649,153 | final CreateDiskResult executeCreateDisk(CreateDiskRequest createDiskRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDiskRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
1,405,743 | private synchronized String createSequential(String path, byte[] data, List<ACL> acl, CreateMode createMode) throws KeeperException, InterruptedException {<NEW_LINE><MASK><NEW_LINE>boolean first = true;<NEW_LINE>// String newPath = path + this.identifier;<NEW_LINE>String newPath = path;<NEW_LINE>while (true) {<NEW_LINE... | RetryCounter retryCounter = retryCounterFactory.create(); |
1,726,261 | public static void handleStaleStatement(WSJdbcWrapper jdbcWrapper) {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEventEnabled())<NEW_LINE>Tr.<MASK><NEW_LINE>if (jdbcWrapper instanceof WSJdbcObject)<NEW_LINE>try {<NEW_LINE>WSJdbcConnection connWrapper = (WSJdbcConnection) ((WSJdbcObject) jdbcWrapper).getCo... | event(tc, "Encountered a Stale Statement: " + jdbcWrapper); |
536,532 | public AgentNetworkInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AgentNetworkInfo agentNetworkInfo = new AgentNetworkInfo();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = c... | int originalDepth = context.getCurrentDepth(); |
547,131 | private static void runAssertionAllCombinations(RegressionEnvironment env, String field, AtomicInteger milestone) {<NEW_LINE>String[] methods = "getMinuteOfHour,getMonthOfYear,getDayOfMonth,getDayOfWeek,getDayOfYear,getEra,gethourOfDay,getmillisOfSecond,getsecondOfMinute,getweekyear,getyear".split(",");<NEW_LINE>String... | set(Calendar.MILLISECOND, 3); |
1,356,136 | private void escape(StringBuffer sb, String text) {<NEW_LINE>if (text == null) {<NEW_LINE>// NOI18N<NEW_LINE>text = "<null>";<NEW_LINE>}<NEW_LINE>for (int i = 0; i < text.length(); i++) {<NEW_LINE>char <MASK><NEW_LINE>if (ch == '<') {<NEW_LINE>// NOI18N<NEW_LINE>sb.append("<");<NEW_LINE>} else if (ch == '>') {<NEW_L... | ch = text.charAt(i); |
1,780,262 | public void execute(Event e) {<NEW_LINE>List<CommandSender> receivers = new ArrayList<>();<NEW_LINE>if (worlds == null) {<NEW_LINE>receivers.addAll(Bukkit.getOnlinePlayers());<NEW_LINE>receivers.<MASK><NEW_LINE>} else {<NEW_LINE>for (World world : worlds.getArray(e)) receivers.addAll(world.getPlayers());<NEW_LINE>}<NEW... | add(Bukkit.getConsoleSender()); |
1,085,187 | private void parseClass(Element element, DozerBuilder.ClassDefinitionBuilder classBuilder) {<NEW_LINE>if (StringUtils.isNotEmpty(getAttribute(element, MAP_GET_METHOD_ATTRIBUTE))) {<NEW_LINE>classBuilder.mapGetMethod(getAttribute(element, MAP_GET_METHOD_ATTRIBUTE));<NEW_LINE>}<NEW_LINE>if (StringUtils.isNotEmpty(getAttr... | getAttribute(element, IS_ACCESSIBLE_ATTRIBUTE))); |
1,520,827 | // lookup<NEW_LINE>public static void ToXContent(PainlessCast painlessCast, XContentBuilderWrapper builder) {<NEW_LINE>builder.startObject();<NEW_LINE>if (painlessCast.originalType != null) {<NEW_LINE>builder.field("originalType", painlessCast.originalType.getSimpleName());<NEW_LINE>}<NEW_LINE>if (painlessCast.targetTy... | painlessCast.targetType.getSimpleName()); |
379,218 | boolean removeBond() {<NEW_LINE>final <MASK><NEW_LINE>if (device.getBondState() == BluetoothDevice.BOND_NONE)<NEW_LINE>return true;<NEW_LINE>mService.sendLogBroadcast(DfuBaseService.LOG_LEVEL_VERBOSE, "Removing bond information...");<NEW_LINE>boolean result = false;<NEW_LINE>try {<NEW_LINE>// noinspection JavaReflectio... | BluetoothDevice device = mGatt.getDevice(); |
734,431 | @SuppressWarnings("unchecked")<NEW_LINE>public <T> T put(final Key<T> key, @Nullable final T value, final CopyOnWriteContextMap owner, final AtomicReferenceFieldUpdater<CopyOnWriteContextMap, CopyContextMap> mapUpdater) {<NEW_LINE>final int i = findIndex(key);<NEW_LINE>final Object returnValue;<NEW_LINE>final Object[] ... | this.context.length] = key; |
1,179,334 | private static void createMappingIfNeeded(JestClient jestClient, String indexName, String typeName) throws ElasticWriterException, IOException {<NEW_LINE>synchronized (CREATE_MAPPING_LOCK) {<NEW_LINE>IndicesExists indicesExists = new IndicesExists.<MASK><NEW_LINE>boolean indexExists = jestClient.execute(indicesExists).... | Builder(indexName).build(); |
1,091,463 | protected void addPlatformSpecificLibraryLocationInformationForStatic(Artifact artifact, StringBuffer buffer) throws UMAException {<NEW_LINE>buffer.append(artifact.getTargetNameWithScope() + "_depend=" + getLibName(artifact) + "\n");<NEW_LINE>buffer.append("ifeq ($(UMA_TARGET_TYPE),EXE)\n");<NEW_LINE>buffer.append(arti... | + getLibLinkName(artifact) + "\n"); |
1,297,658 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | HandlerContextKey.SIGNING_REGION, getSigningRegion()); |
341,999 | private NamingEnumeration<SearchResult> checkSearchCache(String name, String filterExpr, Object[] filterArgs, SearchControls cons) throws WIMException {<NEW_LINE>final String METHODNAME = "checkSearchCache";<NEW_LINE>NamingEnumeration<SearchResult> neu = null;<NEW_LINE>if (getSearchResultsCache() != null) {<NEW_LINE>St... | tc, METHODNAME + " Miss cache: " + key); |
217,077 | private void _postStopServerArchive(boolean skipArchives) throws Exception {<NEW_LINE>final String method = "_postStopServerArchive";<NEW_LINE>Log.entering(c, method, skipArchives);<NEW_LINE>SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy-HH-mm-ss");<NEW_LINE>Date d = new Date(System.currentTimeMillis());<NEW_L... | LocalFile logFolder = new LocalFile(logDirectoryName); |
1,770,125 | protected void internalTransform(Body b, String phaseName, Map<String, String> options) {<NEW_LINE>// removes all redundant load-stores<NEW_LINE>boolean changed = true;<NEW_LINE>PatchingChain<Unit> units = b.getUnits();<NEW_LINE>while (changed) {<NEW_LINE>changed = false;<NEW_LINE>Unit prevprevprev = null, prevprev = n... | eug = ExceptionalUnitGraphFactory.createExceptionalUnitGraph(b); |
739,097 | public void send(Map<String, List<String>> poolMap) {<NEW_LINE>try {<NEW_LINE>for (String poolId : poolMap.keySet()) {<NEW_LINE>TestResourcePoolExample example = new TestResourcePoolExample();<NEW_LINE>example.createCriteria().andStatusEqualTo("VALID").andTypeEqualTo("NODE").andIdEqualTo(poolId);<NEW_LINE>List<TestReso... | collect(Collectors.toList()); |
1,391,342 | public Dialog onCreateDialog(@Nullable Bundle savedInstanceState) {<NEW_LINE>FragmentActivity activity = requireActivity();<NEW_LINE>PackageUsageInfo packageUsageInfo = requireArguments().getParcelable(ARG_PACKAGE_USAGE_INFO);<NEW_LINE>LayoutInflater inflater = LayoutInflater.from(activity);<NEW_LINE>if (packageUsageIn... | setCustomTitle(titleBuilder.build()); |
134,484 | void readData(GroupConfig groupCfg, InternalConfig internalCfg) throws IOException {<NEW_LINE>groupConfig = groupCfg;<NEW_LINE>internalConfig = internalCfg;<NEW_LINE>FileObject cfgFOInput = getConfigFOInput();<NEW_LINE>if (cfgFOInput == null) {<NEW_LINE>throw new // NOI18N<NEW_LINE>FileNotFoundException("[WinSys] Missi... | GroupParser.this.getName()); |
511,677 | public void addInvitedSignaling(MethodCall methodCall, final MethodChannel.Result result) {<NEW_LINE>HashMap<String, Object> info = CommonUtil.getParam(methodCall, result, "info");<NEW_LINE>V2TIMSignalingInfo param = new V2TIMSignalingInfo();<NEW_LINE>if (info.get("inviteID") != null) {<NEW_LINE>param.setInviteID((Stri... | ) info.get("inviter")); |
351,647 | private Map<Integer, InsnFormatter> registerFormatters() {<NEW_LINE>Map<Integer, InsnFormatter> map = new HashMap<>();<NEW_LINE>map.put(DexOpcodes.NOP, fi -> fi.getCodeWriter().add("nop"));<NEW_LINE>map.put(DexOpcodes.SGET_OBJECT, staticFieldInsn("sget-object"));<NEW_LINE>map.put(DexOpcodes.SPUT_BOOLEAN, staticFieldIns... | .CONST_HIGH16, constInsn("const/high16")); |
8,688 | private void sendHash() {<NEW_LINE>final Element checksum = new Element("checksum", description.<MASK><NEW_LINE>checksum.setAttribute("creator", "initiator");<NEW_LINE>checksum.setAttribute("name", "a-file-offer");<NEW_LINE>Element hash = checksum.addChild("file").addChild("hash", "urn:xmpp:hashes:2");<NEW_LINE>hash.se... | getVersion().getNamespace()); |
1,093,127 | public void merge(int i, int j) {<NEW_LINE>float nij = n[i] + n[j];<NEW_LINE>for (int k = 0; k < i; k++) {<NEW_LINE>proximity[index(i, k)] = (d(i, k) * n[i] + d(j, k) * n[j] - d(j, i) * n[i] * n[j] / nij) / nij;<NEW_LINE>}<NEW_LINE>for (int k = i + 1; k < j; k++) {<NEW_LINE>proximity[index(k, i)] = (d(k, i) * n[i] + d(... | [j] / nij) / nij; |
1,302,522 | // session factories ////////////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>public void initSessionFactories() {<NEW_LINE>if (sessionFactories == null) {<NEW_LINE>sessionFactories = new HashMap<>();<NEW_LINE>if (usingRelationalDatabase) {<NEW_LINE>initDbSqlSessionFactory();<NEW_LINE>}<NEW_... | addSessionFactory(new AgendaSessionFactory(agendaFactory)); |
196,882 | private static void putPositiveIntAscii(final byte[] dest, final int offset, final int value, final int digitCount) {<NEW_LINE>int quotient = value;<NEW_LINE>int i = digitCount;<NEW_LINE>while (quotient >= 10_000) {<NEW_LINE>final int lastFourDigits = quotient % 10_000;<NEW_LINE>quotient /= 10_000;<NEW_LINE>final int p... | = (quotient % 100) << 1; |
924,097 | public static Element serializeExecutionAction(Document doc, XCScheme.SchemePrePostAction action) {<NEW_LINE>Element executionAction = doc.createElement("ExecutionAction");<NEW_LINE>executionAction.setAttribute("ActionType", "Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.ShellScriptAction");<NEW_LINE>Elemen... | "scriptText", action.getCommand()); |
1,500,826 | public void createBeforeUnloadDialog(WebView view, String message, final JsResult result, String responseMessage, String confirmButtonTitle, String cancelButtonTitle) {<NEW_LINE>String alertMessage = (responseMessage != null && !responseMessage.isEmpty()) ? responseMessage : message;<NEW_LINE>DialogInterface.OnClickLis... | alertDialogBuilder.setPositiveButton(confirmButtonTitle, confirmClickListener); |
1,610,532 | public ErrorInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ErrorInfo errorInfo = new ErrorInfo();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonTok... | class).unmarshall(context)); |
1,508,189 | private <R> R readEntity(ElasticsearchPersistentEntity<?> entity, Map<String, Object> source) {<NEW_LINE>ElasticsearchPersistentEntity<?> targetEntity = computeClosestEntity(entity, source);<NEW_LINE>SpELExpressionEvaluator evaluator = new DefaultSpELExpressionEvaluator(source, spELContext);<NEW_LINE>MapValueAccessor a... | long version = document.getVersion(); |
1,257,646 | public static void createGlueModel(PosTexNormalWriterUnsafe buffer) {<NEW_LINE>Vec3 diff = Vec3.atLowerCornerOf(Direction.SOUTH.getNormal());<NEW_LINE>Vec3 extension = diff.normalize().scale(1 / 32f - 1 / 128f);<NEW_LINE>Vec3 plane = VecHelper.axisAlingedPlaneOf(diff);<NEW_LINE>Direction.Axis axis = Direction.getNeares... | 0, 1f, minU, maxV); |
1,295,385 | public void contributeParameters(Map<String, Object> parameters) throws JRException {<NEW_LINE>RemoteXmlDataAdapter remoteXmlDataAdapter = getRemoteXmlDataAdapter();<NEW_LINE>if (remoteXmlDataAdapter != null) {<NEW_LINE>if (remoteXmlDataAdapter.isUseConnection()) {<NEW_LINE>String fileName = remoteXmlDataAdapter.getFil... | put(JRXPathQueryExecuterFactory.XML_LOCALE, locale); |
1,192,797 | void ifAnonymousModeLogin(boolean pendingJoin) {<NEW_LINE>if (chatC.isInAnonymousMode()) {<NEW_LINE>Intent loginIntent = new Intent(this, LoginActivity.class);<NEW_LINE>if (pendingJoin && getIntent() != null && getIntent().getDataString() != null) {<NEW_LINE>String link = getIntent().getDataString();<NEW_LINE>MegaAppli... | (Uri.parse(link)); |
1,117,725 | final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,689,371 | public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>builder.field(COUNT.getPreferredName(), count);<NEW_LINE>builder.field(CARDINALITY.getPreferredName(), cardinality);<NEW_LINE>if (minValue != null) {<NEW_LINE>builder.field(... | (), toIntegerIfInteger(meanValue)); |
47,873 | public static void init(FMLInitializationEvent event) {<NEW_LINE>INSTANCE.registerMessage(PacketItemInfo.Handler.class, PacketItemInfo.class, PacketHandler.nextID(), Side.CLIENT);<NEW_LINE>INSTANCE.registerMessage(PacketItemList.Handler.class, PacketItemList.class, PacketHandler.nextID(), Side.CLIENT);<NEW_LINE>INSTANC... | nextID(), Side.SERVER); |
1,625,835 | public io.kubernetes.client.proto.V1beta1Extensions.IngressList buildPartial() {<NEW_LINE>io.kubernetes.client.proto.V1beta1Extensions.IngressList result = new io.kubernetes.client.proto.V1beta1Extensions.IngressList(this);<NEW_LINE>int from_bitField0_ = bitField0_;<NEW_LINE>int to_bitField0_ = 0;<NEW_LINE>if (((from_b... | util.Collections.unmodifiableList(items_); |
1,806,728 | final CreateTableResult executeCreateTable(CreateTableRequest createTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createTableRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<CreateTableRequest> request = null;<NEW_LINE>Respo... | AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics(); |
13,097 | final GetPatchBaselineResult executeGetPatchBaseline(GetPatchBaselineRequest getPatchBaselineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getPatchBaselineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint); |
984,859 | public void run(RegressionEnvironment env) {<NEW_LINE>String epl = "create window MyWindow#keepall as SupportBean;" + "insert into MyWindow select * from SupportBean;" + "@name('s0') on SupportBean_S0 select theString, sum(intPrimitive) as c0, sum(intPrimitive, group_by:()) as c1" + " from MyWindow group by theString;"... | makeSendEvent(env, "E1", 10); |
693,635 | private MessageExtBrokerInner toMessageExtBrokerInner(MessageExt msgExt) {<NEW_LINE>TopicConfig topicConfig = this.getBrokerController().getTopicConfigManager().createTopicOfTranCheckMaxTime(TCMT_QUEUE_NUMS, PermName.PERM_READ | PermName.PERM_WRITE);<NEW_LINE>int queueId = ThreadLocalRandom.current().nextInt(99999999) ... | inner, msgExt.getProperties()); |
308,039 | public <Req, Resp> BlockingClientCall<Req, Resp> newBlockingCall(final MethodDescriptor<Req, Resp> methodDescriptor, final BufferDecoderGroup decompressors) {<NEW_LINE>final BlockingHttpClient client = streamingHttpClient.asBlockingClient();<NEW_LINE>GrpcSerializer<Req> serializerIdentity = serializer(methodDescriptor)... | , deserializers, GrpcDeserializer::messageEncoding)); |
370,624 | private Menu createMenu(ToolItem toolItem) {<NEW_LINE>if (menu != null) {<NEW_LINE>menu.dispose();<NEW_LINE>}<NEW_LINE>{<NEW_LINE>MenuManager menuManager = new MenuManager();<NEW_LINE>ToolBar toolBar = toolItem.getParent();<NEW_LINE>menu = new Menu(toolBar);<NEW_LINE>List<StreamValueManagerDescriptor> managers = new Ar... | e -> menu.dispose()); |
624,216 | private void finishDismiss(View dismissView, int originalLayoutHeight) {<NEW_LINE>// Make sure no other animation is running. Remove animation from running list, that just finished<NEW_LINE>boolean noAnimationLeft;<NEW_LINE>synchronized (mAnimationLock) {<NEW_LINE>--mDismissAnimationRefCount;<NEW_LINE>mAnimatedViews.re... | .obtainMessage(mValidDelayedMsgId), mUndoHideDelay); |
255,796 | public Node newRegexpNode(int line, Node contents, RegexpNode end) {<NEW_LINE>Ruby runtime = configuration.getRuntime();<NEW_LINE>RegexpOptions options = end.getOptions();<NEW_LINE>Encoding encoding = lexer.getEncoding();<NEW_LINE>if (contents == null) {<NEW_LINE>ByteList newValue = ByteList.create("");<NEW_LINE>if (en... | DRegexpNode(line, options, encoding); |
559,062 | protected PointsToSet computeRefinedReachingObjects(VarNode v) {<NEW_LINE>// must reset the refinement heuristic for each query<NEW_LINE>this.fieldCheckHeuristic = HeuristicType.getHeuristic(heuristicType, pag.getTypeManager(), getMaxPasses());<NEW_LINE>doPointsTo = true;<NEW_LINE>numPasses = 0;<NEW_LINE>PointsToSet co... | (v, EMPTY_CALLSTACK), null); |
570,865 | private static TlsKeyExchange createKeyExchangeServer(TlsServer server, int keyExchange) throws IOException {<NEW_LINE>TlsKeyExchangeFactory factory = server.getKeyExchangeFactory();<NEW_LINE>switch(keyExchange) {<NEW_LINE>case KeyExchangeAlgorithm.DH_anon:<NEW_LINE>return factory.createDHanonKeyExchangeServer(keyExcha... | keyExchange, server.getECDHConfig()); |
830,969 | public static <T> void processDense(T data, Adapter<T> adapter, Collector collector) {<NEW_LINE>// Number of nodes<NEW_LINE>final int <MASK><NEW_LINE>// Best distance for each node<NEW_LINE>double[] best = new double[n];<NEW_LINE>Arrays.fill(best, Double.POSITIVE_INFINITY);<NEW_LINE>// Best previous node<NEW_LINE>int[]... | n = adapter.size(data); |
1,023,388 | public static HashMap<String, Object> convertImageMessageElem(V2TIMImageElem elem) {<NEW_LINE>HashMap<String, Object> img = new HashMap<String, Object>();<NEW_LINE>img.put("path", elem.getPath());<NEW_LINE>LinkedList<Object> imgList = new LinkedList<Object>();<NEW_LINE>for (int i = 0; i < elem.getImageList().size(); i+... | "url", imgInstance.getUrl()); |
387,695 | public ParcelFileDescriptor performNextcloudRequestAndBodyStreamV2(ParcelFileDescriptor input, ParcelFileDescriptor requestBodyParcelFileDescriptor) {<NEW_LINE>// read the input<NEW_LINE>final InputStream is = new ParcelFileDescriptor.AutoCloseInputStream(input);<NEW_LINE>final InputStream requestBodyInputStream = requ... | e(TAG, "Error during Nextcloud request", e); |
333,491 | public boolean canBeTargetedBy(MageObject source, UUID sourceControllerId, Game game) {<NEW_LINE>if (source != null) {<NEW_LINE>if (abilities.containsKey(ShroudAbility.getInstance().getId())) {<NEW_LINE>if (null == game.getContinuousEffects().asThough(this.getId(), AsThoughEffectType.SHROUD, null, sourceControllerId, g... | ), null, game, true); |
915,850 | private Switch createPlayerButtons() {<NEW_LINE>final Switch playerItemSwitch <MASK><NEW_LINE>final List<Mapping> mappings = playerItemSwitch.getMappings();<NEW_LINE>Mapping commandMapping;<NEW_LINE>mappings.add(commandMapping = SitemapFactory.eINSTANCE.createMapping());<NEW_LINE>commandMapping.setCmd(NextPreviousType.... | = SitemapFactory.eINSTANCE.createSwitch(); |
1,239,787 | public void paint(Graphics g) {<NEW_LINE>boolean selected;<NEW_LINE>boolean focused;<NEW_LINE>int xpos;<NEW_LINE>selected = isRowSelected(currentlyPaintedRow);<NEW_LINE>focused = JTreeTable.this.isFocusOwner();<NEW_LINE>int rHeight = getRowHeight();<NEW_LINE>// move tree according to offsetX<NEW_LINE>g.translate(-offse... | getWidth() + offsetX, rHeight); |
26,071 | public static Process createIdaProcess(final String idaExe, final File idcPath, final String idbFileName, final String outputDirectory) throws IdaException {<NEW_LINE>final String idcFileString = idcPath.getAbsolutePath();<NEW_LINE>final String sArgument = getSArgument(<MASK><NEW_LINE>// Setup the invocation of the IDA... | idcFileString, SystemHelpers.isRunningWindows()); |
1,103,202 | public void maintainTranslations(@NonNull final I_AD_Language language, @NonNull final String maintenanceMode) {<NEW_LINE>logger.info("Mode={}, language={}", maintenanceMode, language);<NEW_LINE>int deleteNo = 0;<NEW_LINE>int insertNo = 0;<NEW_LINE>// Delete<NEW_LINE>if (MAINTENANCEMODE_Delete.equals(maintenanceMode) ... | "@Deleted@=" + deleteNo + " - @Inserted@=" + insertNo); |
550,662 | protected boolean canProveSuperClass(Resource sup) {<NEW_LINE>OntModel om = (OntModel) getModel();<NEW_LINE>if (om.getReasoner() != null) {<NEW_LINE>if (om.getReasoner().getReasonerCapabilities().contains(null, ReasonerVocabulary.supportsP, RDFS.subClassOf)) {<NEW_LINE>// this reasoner does transitive closure on sub-cl... | c = queue.remove(0); |
657,060 | public boolean removeIPEntryfromPool(@Nonnull IPv4Address ip) {<NEW_LINE>if (!isIPAvailableInRepo(ip)) {<NEW_LINE>log.info("The request IP address {} is not valid, either because it is in use at this point " + "or it is not an existing IP in DHCP pool", ip);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (ip.equals(star... | log.info("The request IP address {} completely removed from DHCP pool", ip); |
973,770 | public void onUserLogin(final int AD_Org_ID, final int AD_Role_ID, final int AD_User_ID) {<NEW_LINE>DBException.registerExceptionWrapper(DLMReferenceExceptionWrapper.INSTANCE);<NEW_LINE>// gh #1411: only register the connection customizer if it was enabled.<NEW_LINE>final IDLMService dlmService = Services.get(IDLMServi... | ).registerInspector(LastUpdatedInspector.INSTANCE); |
1,750,312 | protected LeafNode createIntArrayLeafNode(String line) {<NEW_LINE>StringTokenizer tok = new StringTokenizer(line, " ");<NEW_LINE>// read the indices from the tokenized String<NEW_LINE>int numTokens = tok.countTokens();<NEW_LINE>int index = 0;<NEW_LINE>// The data to be saved in the leaf node:<NEW_LINE>int[] indices;<NE... | nextToken = nextToken.substring(4); |
115,140 | public Dialog onCreateDialog(Bundle savedInstanceState) {<NEW_LINE>BottomSheetDialog dialog = (BottomSheetDialog) super.onCreateDialog(savedInstanceState);<NEW_LINE>dialog.getBehavior().setPeekHeight((int) (getResources().getDisplayMetrics().heightPixels * 0.50));<NEW_LINE>ShapeAppearanceModel shapeAppearanceModel = Sh... | ViewCompat.setBackground(bottomSheet, dialogBackground); |
61,795 | private Mono<Response<Flux<ByteBuffer>>> deleteGremlinGraphWithResponseAsync(String resourceGroupName, String accountName, String databaseName, String graphName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoin... | client.getApiVersion(), context); |
565,692 | public Response execute(SubmitContext submitContext, Request request, long timeStarted) throws Exception {<NEW_LINE>Session queueSession = null;<NEW_LINE>JMSConnectionHolder jmsConnectionHolder = null;<NEW_LINE>try {<NEW_LINE>init(submitContext, request);<NEW_LINE>jmsConnectionHolder = new JMSConnectionHolder(jmsEndpoi... | request, timeStarted, null, messageConsumer); |
1,516,123 | public InnerLiteral extractInnerLiteral() {<NEW_LINE>assert properties.hasInnerLiteral();<NEW_LINE>int literalEnd = properties.getInnerLiteralEnd();<NEW_LINE><MASK><NEW_LINE>AbstractStringBuffer literal = getEncoding().createStringBuffer(literalEnd - literalStart);<NEW_LINE>AbstractStringBuffer mask = getEncoding().cre... | int literalStart = properties.getInnerLiteralStart(); |
853,209 | final DeleteQuickConnectResult executeDeleteQuickConnect(DeleteQuickConnectRequest deleteQuickConnectRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteQuickConnectRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | invoke(request, responseHandler, executionContext); |
470,155 | private ExecutionResults runJREUninstallerWindows(Progress progress, File location) throws UninstallationException {<NEW_LINE>ExecutionResults results = null;<NEW_LINE>try {<NEW_LINE>String id = getInstallationID(location);<NEW_LINE>if (id != null) {<NEW_LINE>LogManager.log("... uninstall ID : " + id);<NEW_LINE><MASK><... | final File logFile = getLog("jre_uninstall"); |
102,021 | public static Map readUiConfig() {<NEW_LINE>File file = new File(confPath);<NEW_LINE>// check whether ui config is update, if not , skip reload config<NEW_LINE>if (!isFileModified(file)) {<NEW_LINE>return uiConfig;<NEW_LINE>}<NEW_LINE>// reload config<NEW_LINE>Map ret = Utils.readStormConfig();<NEW_LINE>ret.remove(Conf... | Map) yaml.load(fileStream); |
11,661 | public static void main(String[] args) throws InterruptedException {<NEW_LINE>FSTOrderedConcurrentJobExecutor jex = new FSTOrderedConcurrentJobExecutor(8);<NEW_LINE>final long sumtim = System.currentTimeMillis();<NEW_LINE>for (int i = 0; i < 4; i++) {<NEW_LINE>final int finalI = i;<NEW_LINE>FSTRunnable job = new FSTRun... | .currentTimeMillis() - tim)); |
1,391,216 | public ConfirmSignUpResult confirmSignUp(ConfirmSignUpRequest confirmSignUpRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(confirmSignUpRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NE... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
949,093 | private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>targetsButton = new javax.swing.JButton();<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.setLocalizedText(targetsButton, org.openide.util.NbBundle.getMessage(GenericElement... | 156, Short.MAX_VALUE))); |
315,730 | private void handle(APIUpdateLoadBalancerListenerMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return getSyncId();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(SyncTaskChain chain) {<NEW_LINE>APIUpdateLoadB... | APIUpdateLoadBalancerListenerEvent(msg.getId()); |
1,493,330 | public static DropGlobalIndexBuilder createBuilder(final String schemaName, final String primaryTableName, final String indexName, ExecutionContext executionContext) {<NEW_LINE>ReplaceTableNameWithQuestionMarkVisitor visitor = new ReplaceTableNameWithQuestionMarkVisitor(schemaName, executionContext);<NEW_LINE>final Str... | DropGlobalIndexBuilder(dropIndex, preparedData, executionContext); |
1,753,954 | public static Geometry makeAtlasBatch(Spatial spat, AssetManager mgr, int atlasSize) {<NEW_LINE>List<Geometry> geometries = new ArrayList<>();<NEW_LINE>GeometryBatchFactory.gatherGeoms(spat, geometries);<NEW_LINE>TextureAtlas atlas = createAtlas(spat, atlasSize);<NEW_LINE>if (atlas == null) {<NEW_LINE>return null;<NEW_... | GeometryBatchFactory.mergeGeometries(geometries, mesh); |
1,571,149 | public void createBindings() {<NEW_LINE>AbstractMachine machine = (AbstractMachine) Configuration.get().getMachine();<NEW_LINE>DoubleConverter doubleConverter = new DoubleConverter(Configuration.get().getLengthDisplayFormat());<NEW_LINE>LengthConverter lengthConverter = new LengthConverter();<NEW_LINE>NamedConverter<Ax... | "axisZ", axisZ, "selectedItem", axisConverter); |
639,691 | public void onServiceConnected(ComponentName name, final IBinder service) {<NEW_LINE>Thread bindThread = new Thread(new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>final boolean cameraStartSucess = RTABMapLib.startCamera(nativeApplication, service, getApplicationContext(), getActivity(), mCameraDriver)... | State.STATE_VISUALIZING_CAMERA : State.STATE_CAMERA); |
706,428 | /*<NEW_LINE>* @param password The incoming password.<NEW_LINE>* @param encryptedPassword The stored password digest.<NEW_LINE>* @return true if the password matches, false otherwise.<NEW_LINE>* @throws NoSuchAlgorithmException encryption exceptions.<NEW_LINE>* @throws InvalidKeySpe... | = fromHex(parts[2]); |
453,022 | public static Optional<Add> create(String statement) {<NEW_LINE>Matcher argumentMatcher = ARGUMENT_TOKENIZER.matcher(statement.trim());<NEW_LINE>if (!argumentMatcher.find()) {<NEW_LINE>return Optional.absent();<NEW_LINE>}<NEW_LINE>String commandName = argumentMatcher.group();<NEW_LINE>if (!(StringUtils.equals(commandNa... | sources = new ArrayList<>(); |
1,550,863 | public Composite createContents(IFormatterControlManager manager, Composite parent) {<NEW_LINE>final int numColumns = 4;<NEW_LINE>if (fPixelConverter == null) {<NEW_LINE>fPixelConverter = new PixelConverter(parent);<NEW_LINE>}<NEW_LINE>final SashForm sashForm = new SashForm(parent, SWT.HORIZONTAL);<NEW_LINE>sashForm.se... | Composite(sashForm, SWT.NONE); |
956,713 | public void playAll(final Activity context, final long[] list, int position, final long sourceId, final TimberUtils.IdType sourceType, final boolean forceShuffle, final Song currentSong, boolean navigateNowPlaying) {<NEW_LINE>if (context instanceof BaseActivity) {<NEW_LINE>CastSession castSession = ((BaseActivity) cont... | TimberUtils.IdType.NA, false); |
1,635,365 | protected InternalCompletableFuture<Data> putIfAbsentAsyncInternal(Object key, Data valueData, long ttl, TimeUnit ttlUnit, long maxIdle, TimeUnit maxIdleUnit) {<NEW_LINE>key = toNearCacheKeyWithStrategy(key);<NEW_LINE>try {<NEW_LINE>return super.putIfAbsentAsyncInternal(key, valueData, <MASK><NEW_LINE>} finally {<NEW_L... | ttl, ttlUnit, maxIdle, maxIdleUnit); |
1,558,557 | private String formatSamlString(String saml) {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>String samlString = saml;<NEW_LINE>// String line_separator = System.getProperty("line.separator");<NEW_LINE>if (saml != null) {<NEW_LINE>// On Mac and Sun JDK, we see that these two lines are separated by new line<NEW_L... | lines = saml.split("\r\n|\r|\n"); |
1,297,351 | protected void encodeHeader(FacesContext context, Panel panel, Menu optionsMenu) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>UIComponent header = panel.getFacet("header");<NEW_LINE>String headerText = panel.getHeader();<NEW_LINE>String clientId = panel.getClientId(context... | writer.writeText(headerText, null); |
1,234,611 | public boolean onMapClick(@NonNull LatLng point) {<NEW_LINE>PointF pointf = mapboxMap.getProjection().toScreenLocation(point);<NEW_LINE>RectF rectF = new RectF(pointf.x - 10, pointf.y - 10, pointf.x + 10, pointf.y + 10);<NEW_LINE>Feature feature = firstFeatureOnLayers(rectF);<NEW_LINE>final Map<String, Object> argument... | "lat", point.getLatitude()); |
1,827,479 | public IpV4Option newInstance(byte[] rawData, int offset, int length, Class<? extends IpV4Option> dataClass) {<NEW_LINE>if (rawData == null || dataClass == null) {<NEW_LINE>StringBuilder sb = new StringBuilder(50);<NEW_LINE>sb.append("rawData: ").append(rawData).append(" dataClass: ").append(dataClass);<NEW_LINE>throw ... | int.class, int.class); |
1,675,962 | /*<NEW_LINE>* Remembers all type bindings defined in the given parsed unit, adding local/anonymous types if specified.<NEW_LINE>*/<NEW_LINE>private void rememberAllTypes(CompilationUnitDeclaration parsedUnit, org.eclipse.jdt.core.ICompilationUnit cu, boolean includeLocalTypes) {<NEW_LINE><MASK><NEW_LINE>if (types != nu... | TypeDeclaration[] types = parsedUnit.types; |
812,534 | public void execute(String commandName, ConsoleInput ci, CommandLine commands) {<NEW_LINE>if (commands.hasOption('l')) {<NEW_LINE><MASK><NEW_LINE>showAdds(ci);<NEW_LINE>ci.out.println("> -----");<NEW_LINE>return;<NEW_LINE>} else if (commands.hasOption('h') || commands.getArgs().length == 0) {<NEW_LINE>printHelp(ci.out,... | ci.out.println("> -----"); |
747,607 | public static void main(String[] args) throws Exception {<NEW_LINE>String author = args.length == <MASK><NEW_LINE>// Connect to the sever<NEW_LINE>ManagedChannel channel = ManagedChannelBuilder.forAddress("localhost", PORT).usePlaintext().build();<NEW_LINE>RxChatGrpc.RxChatStub stub = RxChatGrpc.newRxStub(channel);<NEW... | 0 ? "Random_Stranger" : args[0]; |
1,351,473 | public static DescribeAccessWhitelistEcsListResponse unmarshall(DescribeAccessWhitelistEcsListResponse describeAccessWhitelistEcsListResponse, UnmarshallerContext context) {<NEW_LINE>describeAccessWhitelistEcsListResponse.setRequestId(context.stringValue("DescribeAccessWhitelistEcsListResponse.RequestId"));<NEW_LINE>de... | (context.integerValue("DescribeAccessWhitelistEcsListResponse.TotalCount")); |
1,456,320 | final ReplicationGroup executeDecreaseReplicaCount(DecreaseReplicaCountRequest decreaseReplicaCountRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(decreaseReplicaCountRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri... | (super.beforeMarshalling(decreaseReplicaCountRequest)); |
286,029 | protected void recordClassUsages(Path file) throws IOException {<NEW_LINE>if (file.toFile().isDirectory()) {<NEW_LINE>File[] children = file.toFile().listFiles();<NEW_LINE>if (children != null) {<NEW_LINE>for (File child : children) {<NEW_LINE>recordClassUsages(child.toPath());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>} else if ... | bytes = ByteStreams.toByteArray(zis); |
664,592 | private boolean addDownloadRequest() {<NEW_LINE>SingularityS3DownloaderAsyncHandler existingHandler = downloadRequestToHandler.get(artifactDownloadRequest.getS3Artifact());<NEW_LINE>if (existingHandler != null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final SingularityS3DownloaderAsyncHandler newHandler = new Singu... | metrics, exceptionNotifier, SingularityS3DownloaderCoordinator.this); |
239,262 | // Called from the handler thread<NEW_LINE>private void doHandleMessage(Message msg) {<NEW_LINE>@Nullable<NEW_LINE>MessageParams params = null;<NEW_LINE>switch(msg.what) {<NEW_LINE>case MSG_QUEUE_INPUT_BUFFER:<NEW_LINE>params = (MessageParams) msg.obj;<NEW_LINE>doQueueInputBuffer(params.index, params.offset, params.siz... | params = (MessageParams) msg.obj; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.