idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
983,786 | public SystemActionWorkflowActionMapping mapSystemActionToWorkflowActionForContentType(final SystemAction systemAction, final WorkflowAction workflowAction, final ContentType contentType) throws DotDataException {<NEW_LINE>DotPreconditions.checkArgument(null != systemAction, "System Action can not be null");<NEW_LINE>D... | " and contentType: " + contentType.variable()); |
1,409,182 | static void run_till_stable(int num_threads, int num_trials, int impl) {<NEW_LINE>Counter C = make_ctr(impl);<NEW_LINE>System.out.printf("=== %10.10s %3d cnts/sec=", <MASK><NEW_LINE>// Number of trials<NEW_LINE>long[] trials = new long[num_trials];<NEW_LINE>// Total ops altogether<NEW_LINE>long total_ops = 0;<NEW_LIN... | C.name(), num_threads); |
1,585,761 | private Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String workspaceName, 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_LINE>... | resourceGroupName, workspaceName, accept, context); |
1,586,243 | public Assembler unbox(String desc) {<NEW_LINE>int typeCode = desc.charAt(0);<NEW_LINE>switch(typeCode) {<NEW_LINE>case '[':<NEW_LINE>case 'L':<NEW_LINE>mv.visitTypeInsn(CHECKCAST, Type.getType(desc).getInternalName());<NEW_LINE>break;<NEW_LINE>case 'Z':<NEW_LINE><MASK><NEW_LINE>invokeVirtual(BOOLEAN_BOXED_INTERNAL, BO... | mv.visitTypeInsn(CHECKCAST, BOOLEAN_BOXED_INTERNAL); |
1,716,442 | // Submit tasks that attempt to get their own result while they are running. The executor should detect this and immediately raise InterruptedException<NEW_LINE>// to prevent a hang or lengthy timeout. This also tests the onSubmit callback, which is one convenient way for a task to obtain its own Future.<NEW_LINE>@Test... | toString(), result instanceof InterruptedException); |
372,197 | private static // of a Pinned sketch before compressing it. Hence the name Hybrid.<NEW_LINE>void compressHybridFlavor(final CompressedState target, final CpcSketch source) {<NEW_LINE>final int srcK = 1 << source.lgK;<NEW_LINE>final PairTable srcPairTable = source.pairTable;<NEW_LINE>final int srcNumPairs = srcPairTable... | byte[] srcSlidingWindow = source.slidingWindow; |
1,007,344 | final UpdateLagResult executeUpdateLag(UpdateLagRequest updateLagRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateLagRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Direct Connect"); |
1,126,315 | public void success(FormContext context) {<NEW_LINE>MultivaluedMap<String, String> formData = context.getHttpRequest().getDecodedFormParameters();<NEW_LINE>String email = formData.getFirst(UserModel.EMAIL);<NEW_LINE>String username = formData.getFirst(UserModel.USERNAME);<NEW_LINE>if (context.getRealm().isRegistrationE... | KeycloakSession session = context.getSession(); |
1,757,744 | public long addInstanceIdleKeyTask(long appId, String host, int port, long idleTime, int size, long auditId, long parentTaskId) {<NEW_LINE>Map<String, Object> paramMap = new HashMap<String, Object>();<NEW_LINE>paramMap.put(TaskConstants.APPID_KEY, appId);<NEW_LINE>paramMap.put(TaskConstants.AUDIT_ID_KEY, auditId);<NEW_... | put(TaskConstants.PORT_KEY, port); |
116,277 | Iterator<Entry<K, V>> entryIterator() {<NEW_LINE>return new Itr<Entry<K, V>>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>Entry<K, V> output(BiEntry<K, V> entry) {<NEW_LINE>return new MapEntry(entry);<NEW_LINE>}<NEW_LINE><NEW_LINE>class MapEntry extends AbstractMapEntry<K, V> {<NEW_LINE><NEW_LINE>BiEntry<K, V> delegate;<N... | delegate.keyHash, value, valueHash); |
746,664 | 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>ChoiceColor choice = new ChoiceColor();<NEW_LINE>player.choose(outcome, choice, game);<NEW_LINE>if (!choice.isChosen()) {<NEW_LIN... | (Collectors.toSet())); |
1,567,911 | public void marshall(CountClosedWorkflowExecutionsRequest countClosedWorkflowExecutionsRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (countClosedWorkflowExecutionsRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>prot... | countClosedWorkflowExecutionsRequest.getTagFilter(), TAGFILTER_BINDING); |
1,280,446 | public void execute(AdminCommandContext context) {<NEW_LINE>ActionReport report = context.getActionReport();<NEW_LINE>Logger logger = context.getLogger();<NEW_LINE>report.<MASK><NEW_LINE>ApplicationRef appRef = domain.getApplicationRefInTarget(name, target);<NEW_LINE>if (appRef == null) {<NEW_LINE>String msg = localStr... | setActionExitCode(ActionReport.ExitCode.SUCCESS); |
151,530 | private File findToolsJar(File javaHome) {<NEW_LINE>File toolsJar = new File(javaHome, "lib/tools.jar");<NEW_LINE>if (toolsJar.exists()) {<NEW_LINE>return toolsJar;<NEW_LINE>}<NEW_LINE>if (javaHome.getName().equalsIgnoreCase("jre")) {<NEW_LINE>javaHome = javaHome.getParentFile();<NEW_LINE>toolsJar = new File(javaHome, ... | getParentFile(), "jdk" + version); |
553,224 | public byte[] toBytes() {<NEW_LINE>ByteBuffer headBuffer = ByteBuffer.allocate(size);<NEW_LINE>headBuffer.order(ByteOrder.LITTLE_ENDIAN);<NEW_LINE>headBuffer.clear();<NEW_LINE>headBuffer.putShort(size);<NEW_LINE>headBuffer.putShort(flag);<NEW_LINE>headBuffer.putInt(stringPoolIndex);<NEW_LINE>int totalSize = size;<NEW_L... | = new ArrayList<ByteBuffer>(); |
1,177,697 | protected void updateBeforeRender() {<NEW_LINE>super.updateBeforeRender();<NEW_LINE>this.selectCPU.setMessage(getNextCpuButtonLabel());<NEW_LINE>CraftingPlanSummary plan = menu.getPlan();<NEW_LINE>boolean planIsStartable = plan != null && !plan.isSimulation();<NEW_LINE>this.start.active = !this.menu.hasNoCPU() && planI... | ().size() : 0; |
1,323,385 | public void serialize(Geometry geom, JsonGenerator gen, SerializerProvider serializers) throws IOException, JsonProcessingException {<NEW_LINE>gen.writeStartObject();<NEW_LINE>gen.writeFieldName("type");<NEW_LINE>gen.writeString(geom.getClass().getSimpleName());<NEW_LINE>if (geom instanceof Point) {<NEW_LINE>Point v = ... | (i).getCoordinates()); |
576,139 | public ResourceIdPreference unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ResourceIdPreference resourceIdPreference = new ResourceIdPreference();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con... | String currentParentElement = context.getCurrentParentElement(); |
497,286 | public byte[] processBlock(byte[] in, int inOff, int inLen) {<NEW_LINE>if (key == null) {<NEW_LINE>throw new IllegalStateException("RSA engine not initialised");<NEW_LINE>}<NEW_LINE>BigInteger input = core.convertInput(in, inOff, inLen);<NEW_LINE>BigInteger result;<NEW_LINE>if (key instanceof RSAPrivateCrtKeyParameters... | result = core.processBlock(input); |
1,721,801 | public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>if (sources[0] instanceof Iterable) {<NEW_LINE>return Iterables.first((Iterable) sources[0]);<NEW_LINE>}<NEW_LINE>... | Object[]) sources[0]; |
1,359,077 | public static String[] parsePeerId(final String s) {<NEW_LINE>if (s.startsWith(IPV6_START_MARK) && StringUtils.containsIgnoreCase(s, IPV6_END_MARK)) {<NEW_LINE>String ipv6Addr;<NEW_LINE>if (s.endsWith(IPV6_END_MARK)) {<NEW_LINE>ipv6Addr = s;<NEW_LINE>} else {<NEW_LINE>ipv6Addr = s.substring(0, (s.indexOf(IPV6_END_MARK)... | + ipv6Addr.length())); |
70,733 | public float[] transformToFloatValuesSV(ProjectionBlock projectionBlock) {<NEW_LINE>if (_floatResultSV == null) {<NEW_LINE>_floatResultSV = new float[DocIdSetPlanNode.MAX_DOC_PER_CALL];<NEW_LINE>}<NEW_LINE>for (int i = 0; i < _numGroovyArgs; i++) {<NEW_LINE>_sourceArrays[i] = _transformToValuesFunctions[i].apply<MASK><... | (_groovyArguments[i], projectionBlock); |
371,003 | private DatabaseAccountUpdateParameters updateParametersInner(DatabaseAccountGetResultsInner inner) {<NEW_LINE>this.ensureFailoverIsInitialized();<NEW_LINE>DatabaseAccountUpdateParameters updateParameters = new DatabaseAccountUpdateParameters();<NEW_LINE>updateParameters.withTags(inner.tags());<NEW_LINE>updateParameter... | withDisableKeyBasedMetadataWriteAccess(inner.disableKeyBasedMetadataWriteAccess()); |
1,357,178 | public void respondWithError(final ErrorInformation errorInformation, final Flag... flags) throws IOException, ServletException, PwmUnrecoverableException {<NEW_LINE>LOGGER.error(pwmRequest.getLabel(), errorInformation);<NEW_LINE>pwmRequest.<MASK><NEW_LINE>if (JavaHelper.enumArrayContainsValue(flags, Flag.ForceLogout))... | setAttribute(PwmRequestAttribute.PwmErrorInfo, errorInformation); |
532,112 | public void run() {<NEW_LINE>int statusCode;<NEW_LINE>String streamArn = null;<NEW_LINE>final KinesisVideoCredentialsProvider credentialsProvider = getCredentialsProvider(authData, log);<NEW_LINE>final long retentionInHours = retentionPeriod / Time.HUNDREDS_OF_NANOS_IN_AN_HOUR;<NEW_LINE>final <MASK><NEW_LINE>try {<NEW_... | long timeoutInMillis = timeout / Time.HUNDREDS_OF_NANOS_IN_A_MILLISECOND; |
1,124,136 | public boolean onDraw(Canvas canvas, Paint originalPaint, AnyKeyboardViewWithExtraDraw parentKeyboardView) {<NEW_LINE>final long currentAnimationTime = SystemClock.elapsedRealtime() - mStartTime;<NEW_LINE>if (currentAnimationTime > mTotalDuration) {<NEW_LINE>return false;<NEW_LINE>} else {<NEW_LINE>final float typingFr... | mTypingCenterPoint.x, mTypingCenterPoint.y); |
386,866 | private View createView() {<NEW_LINE>LinearLayout linearLayout = new LinearLayout(container.$context());<NEW_LINE>linearLayout.setOrientation(LinearLayout.HORIZONTAL);<NEW_LINE>linearLayout.setPadding(15, 15, 15, 15);<NEW_LINE>ImageView imageView = new ImageView(container.$context());<NEW_LINE>imageView.setLayoutParams... | 10, 10, 10, 10); |
986,785 | private Mono<Response<Flux<ByteBuffer>>> stopWithResponseAsync(String resourceGroupName, String clusterName, 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_LINE>}<NE... | getApiVersion(), accept, context); |
1,258,461 | private List<PHPDocTypeNode> findTypes(String description, int startDescription, String originalComment, int originalCommentStart, boolean isReturnTag) {<NEW_LINE>if (StringUtils.isEmpty(description)) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>List<PHPDocTypeNode> result = new ArrayList<>();<NEW_LIN... | .indexOf(']') > 0); |
1,601,715 | public void handle(final HttpServletRequest request, final HttpServletResponse response, final HandlerContext context) throws Exception {<NEW_LINE>String requestUri = request.getRequestURI();<NEW_LINE>if (this.enabled && isSecured(requestUri, request.getMethod())) {<NEW_LINE>if (authenticationManager == null) {<NEW_LIN... | logger.info("Failed to authenticate using credentials {}", credentials); |
923,715 | public boolean canImport(final TransferSupport support) {<NEW_LINE>try {<NEW_LINE>final Transferable t = support.getTransferable();<NEW_LINE>if (t.isDataFlavorSupported(dataFlavor)) {<NEW_LINE>final Object transferData = t.getTransferData(transferFlavor);<NEW_LINE>if (transferData instanceof DocumentPaneTransferInfo) {... | WebDocumentPane dp = paneData.getDocumentPane(); |
339,504 | public RelativeTimeRange unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>RelativeTimeRange relativeTimeRange = new RelativeTimeRange();<NEW_LIN... | ().unmarshall(context)); |
752,476 | public static void main(String[] args) {<NEW_LINE>Map conf = new HashMap<Object, Object>();<NEW_LINE>conf.putAll(Utils.loadConf(args[0]));<NEW_LINE>RocksDbHdfsState<String, Integer> state = new RocksDbHdfsState<String, Integer>();<NEW_LINE>state.setStateName(String.valueOf(1));<NEW_LINE>// setup checkpoint<NEW_LINE>int... | remoteCpPath = state.backup(i); |
155,467 | public static ListUserBackupFilesResponse unmarshall(ListUserBackupFilesResponse listUserBackupFilesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listUserBackupFilesResponse.setRequestId(_ctx.stringValue("ListUserBackupFilesResponse.RequestId"));<NEW_LINE>List<RecordsItem> records = new ArrayList<RecordsItem>();<NEW_L... | ("ListUserBackupFilesResponse.Records[" + i + "].Reason")); |
683,936 | private void handle(APIResumeLongJobMsg msg) {<NEW_LINE>thdf.chainSubmit(new ChainTask(msg) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public String getSyncSignature() {<NEW_LINE>return "longjob-" + msg.getUuid();<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run(SyncTaskChain chain) {<NEW_LINE>final APIRes... | (LongJobInventory.valueOf(vo)); |
712,062 | private void handleRpcStreamClosed(Status error) {<NEW_LINE>checkArgument(!error.isOk(), "unexpected OK status");<NEW_LINE>if (closed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>logger.log(XdsLogLevel.ERROR, "ADS stream closed with status {0}: {1}. Cause: {2}", error.getCode(), error.getDescription(), error.getCause());<NE... | XdsLogLevel.INFO, "Retry ADS stream in {0} ns", delayNanos); |
1,737,877 | public void run() {<NEW_LINE>try {<NEW_LINE>if (released)<NEW_LINE>return;<NEW_LINE>System.out.println("about to run " + sql);<NEW_LINE>DataSource ds = (DataSource) new <MASK><NEW_LINE>Connection con = ds.getConnection();<NEW_LINE>try {<NEW_LINE>if (released)<NEW_LINE>return;<NEW_LINE>Statement stmt = con.createStateme... | InitialContext().lookup(jndiName); |
1,261,719 | protected void onBindView(@NonNull View view) {<NEW_LINE>super.onBindView(view);<NEW_LINE>Resources res = getContext().getResources();<NEW_LINE>TextView titleView = view.findViewById(android.R.id.title);<NEW_LINE>TextView summaryView = view.findViewById(android.R.id.summary);<NEW_LINE>if (titleView != null) {<NEW_LINE>... | , R.dimen.material_emphasis_disabled)); |
1,795,489 | protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_pin_layout);<NEW_LINE><MASK><NEW_LINE>boolean frontSide = getIntent().getBooleanExtra("layout", true);<NEW_LINE>ImageView pinImageView = findViewById(R.id.pin_lay_img_view);<NEW_LI... | getSupportActionBar().setDisplayHomeAsUpEnabled(true); |
1,247,338 | /* (non-Javadoc)<NEW_LINE>* @see tlc2.tool.coverage.CostModel#report()<NEW_LINE>*/<NEW_LINE>public CostModel report() {<NEW_LINE>// Report count for action itself.<NEW_LINE>if (relation == Relation.PROP) {<NEW_LINE>assert getEvalCount() == 0L && this.secondary.getCount() == 0L;<NEW_LINE>MP.printMessage(EC.TLC_COVERAGE_... | secondary.getCount()) }); |
1,778,038 | public void run() {<NEW_LINE>FileDialog dialog2 = new FileDialog(shell, <MASK><NEW_LINE>dialog2.setFilterPath(TorrentOpener.getFilterPathTorrent());<NEW_LINE>dialog2.setFilterExtensions(new String[] { "*.json" });<NEW_LINE>String str2 = dialog2.open();<NEW_LINE>if (str2 != null) {<NEW_LINE>if (!(str2.toLowerCase(Locale... | SWT.SYSTEM_MODAL | SWT.SAVE); |
1,804,597 | // Use JAX-RS client rx invoker, where the client builder is not supplied with any ExecutorService.<NEW_LINE>// Verify that the CompletionStage function which runs synchronously after completion lacks access to<NEW_LINE>// the java:comp namespace of the servlet because it is running on a plain Liberty executor thread<N... | , results[2] instanceof NamingException); |
1,514,689 | private void prune() throws ContradictionException {<NEW_LINE>for (int i = 0; i < n; i++) {<NEW_LINE>DvarLexFixMin(X[i], XLB[i]);<NEW_LINE>DvarLexFixMax(X[i], XUB[i]);<NEW_LINE>DvarLexFixMin(Y[i], YLB[i]);<NEW_LINE>DvarLexFixMax(Y[i], YUB[i]);<NEW_LINE>}<NEW_LINE>for (int d = 0; d <= m; d++) {<NEW_LINE>int j = 0, x;<NE... | ].updateLowerBound(xlb, this); |
1,059,074 | public static ModifyStrategyResponse unmarshall(ModifyStrategyResponse modifyStrategyResponse, UnmarshallerContext context) {<NEW_LINE>modifyStrategyResponse.setRequestId(context.stringValue("ModifyStrategyResponse.RequestId"));<NEW_LINE>modifyStrategyResponse.setSuccess(context.booleanValue("ModifyStrategyResponse.Suc... | ("ModifyStrategyResponse.Strategy.WorkingTime[" + i + "].BeginTime")); |
1,778,700 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>addPreferencesFromResource(R.xml.preferences);<NEW_LINE>// DefaultSharedPreferences is used by the PreferenceActivity<NEW_LINE>mInsecurePrefs = PreferenceManager.getDefaultSharedPreferences(this);<NEW_LINE>// both us... | string.text_key), "Not set")); |
1,048,774 | private static Object floorCeil(Object operandValue, QueryDataType operandType, QueryDataType resultType, boolean ceil) {<NEW_LINE>Converter operandConverter = operandType.getConverter();<NEW_LINE>switch(resultType.getTypeFamily()) {<NEW_LINE>case DECIMAL:<NEW_LINE>{<NEW_LINE>BigDecimal operand0 = operandConverter.asDe... | operand0 = operandConverter.asReal(operandValue); |
1,793,019 | public void orderAndLimit() {<NEW_LINE>CollectionReference citiesRef = db.collection("cities");<NEW_LINE>// [START order_and_limit]<NEW_LINE>citiesRef.orderBy("name").limit(3);<NEW_LINE>// [END order_and_limit]<NEW_LINE>// [START order_and_limit_desc]<NEW_LINE>citiesRef.orderBy("name", Direction.DESCENDING).limit(3);<N... | orderBy("population", Direction.DESCENDING); |
1,395,659 | public void onReceive(Context context, Intent intent) {<NEW_LINE>Log.d(LOG_TAG, "onReceive " + intent);<NEW_LINE>final String action = intent.getAction();<NEW_LINE>if (action.equals(NfcAdapter.ACTION_ADAPTER_STATE_CHANGED)) {<NEW_LINE>final int state = intent.getIntExtra(<MASK><NEW_LINE>String stateStr = "unknown";<NEW... | NfcAdapter.EXTRA_ADAPTER_STATE, NfcAdapter.STATE_OFF); |
1,009,282 | public static boolean isDeviceSupported(Activity currentActivity) {<NEW_LINE>if (currentActivity == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (!currentActivity.getPackageManager().hasSystemFeature(PackageManager.FEATURE_NFC)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean foundViaFeatures = currentAct... | File device = new File("/dev/bcm2079x-i2c"); |
191,312 | private void enableInsertionPoint() {<NEW_LINE>if (ipModel == null) {<NEW_LINE>ipModel = insertionPointComboBox.getModel();<NEW_LINE>}<NEW_LINE>Object[] values;<NEW_LINE>Object toSelect = insertionPointComboBox.getSelectedItem();<NEW_LINE>if (sortMembersAlphaCheckBox.isSelected()) {<NEW_LINE>if (toSelect == ipModel.get... | , ipModel.getElementAt(3) }; |
481,421 | private void vLineBoundsChanged(Set<Point> oldSelection, Set<Point> newSelection) {<NEW_LINE>SortedSet<<MASK><NEW_LINE>for (Point p : oldSelection) selectionBounds.add(p.x);<NEW_LINE>int selections = selectionBounds.size();<NEW_LINE>if (selections == 1) {<NEW_LINE>repaint(selectionBounds.first() - selectionExtent, 0, s... | Integer> selectionBounds = new TreeSet(); |
70,783 | public Request<DescribeImportSnapshotTasksRequest> marshall(DescribeImportSnapshotTasksRequest describeImportSnapshotTasksRequest) {<NEW_LINE>if (describeImportSnapshotTasksRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeImport... | (describeImportSnapshotTasksRequest.getNextToken())); |
103,114 | void WriteEndMarker(int posState) throws IOException {<NEW_LINE>if (!_writeEndMark)<NEW_LINE>return;<NEW_LINE>_rangeEncoder.Encode(_isMatch, (_state << Base.kNumPosStatesBitsMax) + posState, 1);<NEW_LINE>_rangeEncoder.Encode(_isRep, _state, 0);<NEW_LINE>_state = Base.StateUpdateMatch(_state);<NEW_LINE>int len = Base.kM... | 1 << Base.kNumPosSlotBits) - 1; |
1,528,004 | public void OpenShift_StubbedTests_usingSocialConfig_futureCreationTimestampInTokenReviewResponse() throws Exception {<NEW_LINE>// Use a "captured" response from an OpenShift tokenReviews response<NEW_LINE>String access_token = "{\"kind\":\"TokenReview\",\"apiVersion\":\"authentication.k8s.io/v1\",\"metadata\":{\"creat... | genericTestServer.getServerHttpsString() + "/helloworld/rest/helloworld_accessTokenRequiredTrue"); |
1,391,477 | public List<ExtElimClause> typecheckBody(Definition definition, Concrete.Definition def, Set<DataDefinition> dataDefinitions) {<NEW_LINE>if (definition instanceof FunctionDefinition) {<NEW_LINE>try {<NEW_LINE>return typecheckFunctionBody((FunctionDefinition) definition, (Concrete.BaseFunctionDefinition) def);<NEW_LINE>... | addStatus(Definition.TypeCheckingStatus.HAS_ERRORS); |
1,440,031 | /*<NEW_LINE>* BlockFluidClassic uses both random ticks and update ticks (after a neighbor change) to flow. This means we cannot decouple our snow gen completely from<NEW_LINE>* that by using one or the other. However, we can stay out of the random tick, so we don't have to do anything if there wasn't either a block upd... | neighborPos = getNeighbor(pos, rand); |
1,263,418 | public SmsConfigurationType unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SmsConfigurationType smsConfigurationType = new SmsConfigurationType();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = con... | String currentParentElement = context.getCurrentParentElement(); |
184,367 | public static void main(String[] args) throws java.lang.Exception {<NEW_LINE>BufferedReader br = new BufferedReader(new InputStreamReader(System.in));<NEW_LINE>int t = Integer.parseInt(br.readLine());<NEW_LINE>while (t-- > 0) {<NEW_LINE>int n = Integer.parseInt(br.readLine());<NEW_LINE>int[] arr = new int[n];<NEW_LINE>... | readLine().split(" "); |
618,870 | public void call(Channel channel, String data) {<NEW_LINE>Map<String, Object> map = MapHelper.parser(data);<NEW_LINE>int turnClientId = (int) map.get("nextClientId");<NEW_LINE>if (map.containsKey("preClientNickname")) {<NEW_LINE>SimplePrinter.printNotice(map.get("preClientNickname") + " don't rob the landlord!");<NEW_L... | channel, ServerEventCode.CODE_GAME_LANDLORD_ELECT, "TRUE"); |
538,894 | public void execute() throws CoreException, IOException, MalformedURLException {<NEW_LINE>LogUtils.logBugtrackingUsage(repositoryConnector.getConnectorKind(), "ISSUE_EDIT");<NEW_LINE>MylynSubmitTaskJob job = new MylynSubmitTaskJob(taskDataManager, repositoryConnector, <MASK><NEW_LINE>if (submitJobListener != null) {<NE... | taskRepository, task, taskData, changedOldAttributes); |
1,744,597 | private static void doFindDataTypeReferences(Accumulator<LocationReference> accumulator, FieldMatcher fieldMatcher, Program program, boolean discoverTypes, TaskMonitor monitor) throws CancelledException {<NEW_LINE>monitor = TaskMonitor.dummyIfNull(monitor);<NEW_LINE><MASK><NEW_LINE>Listing listing = program.getListing(... | DataType dataType = fieldMatcher.getDataType(); |
1,277,608 | static void h2HeadersCompressCookieCrumbs(Http2Headers h2Headers) {<NEW_LINE>// Netty's value iterator doesn't return elements in insertion order, this is not strictly compliant with the<NEW_LINE>// RFC and may result in reversed order cookies.<NEW_LINE>Iterator<? extends CharSequence> cookieItr = h2Headers.valueIterat... | cookieHeader.length() + 2); |
390,838 | public HeroicConfig.Builder build(final ExtraParameters params) throws Exception {<NEW_LINE>final HeroicConfig.Builder builder = HeroicConfig.builder();<NEW_LINE>final boolean synchronizedStorage = params.getBoolean("synchronizedStorage").orElse(false);<NEW_LINE>final ImmutableList.Builder<SuggestModule<MASK><NEW_LINE>... | > suggest = ImmutableList.builder(); |
1,126,054 | private void prepare(IParam param, Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("iterate" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>if (param.getType() == IParam.Semicolon) {<NEW_LINE>if (param.getSubSize() != 2) {<NEW... | + mm.getMessage("function.invalidParam")); |
1,655,848 | public void process(DataInputX in) throws IOException {<NEW_LINE>final Value v = in.readValue();<NEW_LINE>ExUtil.exec(comp, new Runnable() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>if (v == null) {<NEW_LINE>MessageDialog.openError(getSite().getShell(), "Problem occured", "Can't receive response. Please try agai... | item.setText(colIndex, CHECK); |
448,129 | private void desugarAttributes() {<NEW_LINE>AttributeContainerInternal result = attributesFactory.mutable();<NEW_LINE>if (source != null) {<NEW_LINE>for (Attribute<?> attribute : source.keySet()) {<NEW_LINE>String name = attribute.getName();<NEW_LINE>Class<?> type = attribute.getType();<NEW_LINE>Object attributeValue =... | ) attribute, (Integer) attributeValue); |
599,543 | private String generateContentWorldsCreatorCode() {<NEW_LINE>if (this.contentWorlds.size() == 1) {<NEW_LINE>return "";<NEW_LINE>}<NEW_LINE>StringBuilder source = new StringBuilder();<NEW_LINE>LinkedHashSet<PluginScript> pluginScriptsRequired = this.getPluginScriptsRequiredInAllContentWorlds();<NEW_LINE>for (PluginScrip... | contentWorldsNames = new ArrayList<>(); |
371,435 | public void changeKeymap(String profileName, Map<ShortcutAction, Set<String>> actionToShortcuts) {<NEW_LINE>final String profile = displayNameToName(profileName);<NEW_LINE>log("changeKeymap.actionToShortcuts", actionToShortcuts.entrySet());<NEW_LINE>// 1) mix changes with current keymap and put them to cached current s... | newMap.put(profile, m); |
665,817 | /*<NEW_LINE>* (non-Javadoc)<NEW_LINE>*<NEW_LINE>* @see java.lang.Runnable#run()<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>String lvItemName = null;<NEW_LINE>try {<NEW_LINE>while (true) {<NEW_LINE>logger.debug("Autorefresh: Waiting for new item in update queue");<NEW_LINE>lvItemName = ivUpdate... | new OneWireDevicePropertyWantsUpdateEvent(this, lvItemName)); |
737,242 | public void applyDefinitions(Configuration config) {<NEW_LINE>config.set(SystemConfig.<MASK><NEW_LINE>config.set(CoapConfig.MAX_RESOURCE_BODY_SIZE, DEFAULT_MAX_RESOURCE_SIZE);<NEW_LINE>config.set(CoapConfig.MAX_MESSAGE_SIZE, DEFAULT_BLOCK_SIZE);<NEW_LINE>config.set(CoapConfig.PREFERRED_BLOCK_SIZE, DEFAULT_BLOCK_SIZE);<... | HEALTH_STATUS_INTERVAL, 300, TimeUnit.SECONDS); |
971,858 | public void kruskalMST() {<NEW_LINE>PriorityQueue<Edge> pq = new PriorityQueue<>(allEdges.size(), Comparator.comparingInt(o -> o.weight));<NEW_LINE>// add all the edges to priority queue, //sort the edges on weights<NEW_LINE>for (int i = 0; i < allEdges.size(); i++) {<NEW_LINE>pq.add(allEdges.get(i));<NEW_LINE>}<NEW_LI... | System.out.println("Minimum Spanning Tree: "); |
340,409 | private void extractContext(CategorizedProblem problem, char[] unitSource) {<NEW_LINE>// sanity .....<NEW_LINE>int startPosition = problem.getSourceStart();<NEW_LINE>int endPosition = problem.getSourceEnd();<NEW_LINE>if (unitSource == null) {<NEW_LINE>if (problem.getOriginatingFileName() != null) {<NEW_LINE>try {<NEW_L... | parameters = new HashMap<>(); |
1,593,557 | protected void encodeLabel(FacesContext context, CascadeSelect cascadeSelect, List<SelectItem> itemList, String valueToRender) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>Converter converter = ComponentUtils.getConverter(context, cascadeSelect);<NEW_LINE>String itemLabel ... | cascadeSelect, converter, itemList, valueToRender); |
904,226 | private boolean checkIfSubjectHasRequiredRole(Subject subject, String role, String rolePrincipalClasses) {<NEW_LINE>String[] roleArray = role.split(",");<NEW_LINE>String[] rolePrincipalClazzes = rolePrincipalClasses.split(",");<NEW_LINE>boolean found = false;<NEW_LINE>for (String clazz : rolePrincipalClazzes) {<NEW_LIN... | ), clazz.trim()); |
919,692 | public static void main(String[] args) {<NEW_LINE>if (args.length != 2) {<NEW_LINE>System.out.println("Usage: java Tdiff tree1 tree2");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File tree1Path = <MASK><NEW_LINE>File tree2Path = new File(args[1]);<NEW_LINE>try {<NEW_LINE>TreeReaderFactory trf = new LabeledScoredTreeReaderFac... | new File(args[0]); |
416,639 | private Runnable createRssReadCommand() {<NEW_LINE>return new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>GPLogger.log("Starting RSS check...");<NEW_LINE>HttpClient httpClient = new DefaultHttpClient();<NEW_LINE>String url = RSS_URL;<NEW_LINE>HttpGet getRssUrl = new HttpGet(url);<NEW... | "GanttProject " + GPVersion.getCurrentVersionNumber()); |
1,757,109 | private static ArithNode convertFieldArith(MethodNode mth, InsnNode insn) {<NEW_LINE>InsnArg arg = insn.getArg(0);<NEW_LINE>if (!arg.isInsnWrap()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>InsnNode wrap = ((InsnWrapArg) arg).getWrapInsn();<NEW_LINE>InsnType wrapType = wrap.getType();<NEW_LINE>if (wrapType != InsnType... | , ar.getArg(1)); |
299,628 | public ParameterSpecification create(ParameterSpecificationContext context) {<NEW_LINE>SimpleParameterSpecification simpleParameter = context.getSimpleParameter();<NEW_LINE>SimpleParameterSpecification validSimpleParameter = null;<NEW_LINE>ContentSpecification validContentEncoding = null;<NEW_LINE>if (simpleParameter !... | collectionFormat(null).build(); |
1,016,432 | public static TrainingResult runExample(String[] args) throws IOException, ModelException, TranslateException {<NEW_LINE>Arguments arguments = new Arguments().parseArgs(args);<NEW_LINE>if (arguments == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>try (Model model = getModel(arguments)) {<NEW_LINE>// get training d... | TrainingResult result = trainer.getTrainingResult(); |
1,665,880 | public SensitiveDataItem unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SensitiveDataItem sensitiveDataItem = new SensitiveDataItem();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | class).unmarshall(context)); |
1,552,312 | private void registerSignificanceHeuristics(List<SearchPlugin> plugins) {<NEW_LINE>registerSignificanceHeuristic(new SignificanceHeuristicSpec<>(ChiSquare.NAME, ChiSquare::new, ChiSquare.PARSER));<NEW_LINE>registerSignificanceHeuristic(new SignificanceHeuristicSpec<>(GND.NAME, GND::new, GND.PARSER));<NEW_LINE>registerS... | SearchPlugin::getSignificanceHeuristics, this::registerSignificanceHeuristic); |
365,114 | public void create(OperatingLogWithBLOBs log, String sourceIds) {<NEW_LINE>log.setSourceId("");<NEW_LINE>operatingLogMapper.insert(log);<NEW_LINE>if (StringUtils.isNotEmpty(sourceIds)) {<NEW_LINE>List<String> ids = new ArrayList<>();<NEW_LINE>if (sourceIds.startsWith("[")) {<NEW_LINE>ids = JSON.parseObject(sourceIds, L... | sqlSession.getMapper(OperatingLogResourceMapper.class); |
1,285,587 | private static List<String> doIncomingForSearch(File repository, HgURL repositoryUrl, String to, String branchName, boolean bShowMerges, boolean bGetFileInfo, boolean getParents, int limit, OutputLogger logger) throws HgException {<NEW_LINE>InterRepositoryCommand command = new InterRepositoryCommand();<NEW_LINE>command... | , bGetFileInfo ? HG_LOG_FULL_CHANGESET_NAME : HG_LOG_BASIC_CHANGESET_NAME)); |
268,566 | void close(ByteBuf out) {<NEW_LINE>// If an RLE run is in progress, write it out<NEW_LINE>if (rleLength > 0) {<NEW_LINE>writeRun(rleCurrentValue & 0xff, rleLength);<NEW_LINE>}<NEW_LINE>// Apply a one byte block wrap required by the BWT implementation<NEW_LINE>block[blockLength] = block[0];<NEW_LINE>// Perform the Burro... | out, crc.getCRC()); |
454,596 | public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>logDebug("onCreateView");<NEW_LINE>View v = inflater.inflate(R.layout.fragment_info_achievements, container, false);<NEW_LINE>icon = v.findViewById(R.id.icon_info_achievements);<NEW_LINE>checkIcon = v.findViewBy... | findViewById(R.id.how_works_title); |
1,626,776 | void addToBuilder(AbstractTable table, QueryStringBuilder builder, Consumer<BindMarker> onMarker) {<NEW_LINE>Column receiver = lhs().appendToBuilder(table, builder, onMarker);<NEW_LINE>builder.append(predicate().toString());<NEW_LINE>ColumnType type = receiver.type();<NEW_LINE>assert type != null;<NEW_LINE>BindMarker m... | .name()), valueType); |
1,668,113 | void processBuilds(TeletraanServiceContext workerContext) throws Exception {<NEW_LINE>BuildDAO buildDAO = workerContext.getBuildDAO();<NEW_LINE>UtilDAO utilDAO = workerContext.getUtilDAO();<NEW_LINE>long timeToKeep = (long<MASK><NEW_LINE>long maxToKeep = (long) workerContext.getMaxBuildsToKeep();<NEW_LINE>long timeThre... | ) workerContext.getMaxDaysToKeep() * MILLIS_PER_DAY; |
1,340,788 | public Mono<Void> saveAuthorizedClient(OAuth2AuthorizedClient authorizedClient, Authentication principal, ServerWebExchange exchange) {<NEW_LINE>Assert.notNull(authorizedClient, "authorizedClient cannot be null");<NEW_LINE>Assert.notNull(exchange, "exchange cannot be null");<NEW_LINE>Assert.notNull(principal, "authenti... | ).getOrDefault("hd", ""); |
59,457 | public void testSetDeliveryDelayTopicClassicApi_Tcp(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE><MASK><NEW_LINE>con.start();<NEW_LINE>TopicSession session = con.createTopicSession(false, Session.AUTO_ACKNOWLEDGE);<NEW_LINE>TopicSubscriber su... | TopicConnection con = jmsTCFTCP.createTopicConnection(); |
1,604,471 | public IRubyObject call(final ThreadContext context, final IRubyObject self, final RubyModule klass, final String name, final IRubyObject constant) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>final String constName = ((RubySymbol) constant).idString();<NEW_LINE>final String realName = includedPackages.jav... | "const_missing", constant, Block.NULL_BLOCK); |
1,351,361 | public void LAPACK_zgeevx(String arg0, String arg1, String arg2, String arg3, int[] arg4, double[] arg5, int[] arg6, double[] arg7, double[] arg8, int[] arg9, double[] arg10, int[] arg11, int[] arg12, int[] arg13, double[] arg14, double[] arg15, double[] arg16, double[] arg17, double[] arg18, int[] arg19, double[] arg2... | arg18, arg19, arg20, arg21); |
115,713 | public static RestClientConfig load(Class<?> interfaceClass) {<NEW_LINE>final RestClientConfig instance = new RestClientConfig();<NEW_LINE>instance.url = getConfigValue(interfaceClass, "url", String.class);<NEW_LINE>instance.uri = getConfigValue(interfaceClass, "uri", String.class);<NEW_LINE>instance.scope = getConfigV... | interfaceClass, "key-store", String.class); |
215,318 | private Collection<String> checkShardingKeyConstant(RouteTableConfigInfo dataSourceTc, RouteResultset rrs, ServerSchemaStatVisitor visitor, String tableName, ShardingTableConfig tc, SchemaConfig schema, String clientCharset) throws SQLException {<NEW_LINE>RouteCalculateUnit singleRouteUnit = new RouteCalculateUnit();<N... | ), rrs, true, clientCharset); |
718,760 | public void testTaskFailsWithLookupError(HttpServletRequest request, PrintWriter out) throws Exception {<NEW_LINE>String <MASK><NEW_LINE>long taskId = Long.parseLong(request.getParameter("taskId"));<NEW_LINE>PersistentExecutor executor = (PersistentExecutor) new InitialContext().lookup(jndiName);<NEW_LINE>TaskStatus<In... | jndiName = request.getParameter("jndiName"); |
632,601 | List<CallableProcedure> compileProcedure(Class<?> procDefinition, String warning, boolean fullAccess) throws KernelException {<NEW_LINE>try {<NEW_LINE>List<Method> procedureMethods = Arrays.stream(procDefinition.getDeclaredMethods()).filter(m -> m.isAnnotationPresent(Procedure.class)).collect(Collectors.toList());<NEW_... | >(procedureMethods.size()); |
485,301 | public Mono<AmqpReceiveLink> createConsumer(String linkName, String entityPath, Duration timeout, AmqpRetryPolicy retry, EventPosition eventPosition, ReceiveOptions options) {<NEW_LINE>Objects.requireNonNull(linkName, "'linkName' cannot be null.");<NEW_LINE><MASK><NEW_LINE>Objects.requireNonNull(timeout, "'timeout' can... | Objects.requireNonNull(entityPath, "'entityPath' cannot be null."); |
71,514 | public void resetNodes(Map<String, DiscoveryDruidNode> fullNodes) {<NEW_LINE>synchronized (lock) {<NEW_LINE>List<DiscoveryDruidNode> nodesAdded = new ArrayList<>();<NEW_LINE>List<DiscoveryDruidNode> nodesDeleted = new ArrayList<>();<NEW_LINE>for (Map.Entry<String, DiscoveryDruidNode> e : fullNodes.entrySet()) {<NEW_LIN... | ).getHostAndPortToUse(), node); |
567,411 | public String generateDataFileIdentifier(DataFile datafile, GlobalIdServiceBean idServiceBean) {<NEW_LINE>String doiIdentifierType = settingsService.getValueForKey(<MASK><NEW_LINE>String doiDataFileFormat = settingsService.getValueForKey(SettingsServiceBean.Key.DataFilePIDFormat, "DEPENDENT");<NEW_LINE>String prepend =... | SettingsServiceBean.Key.IdentifierGenerationStyle, "randomString"); |
1,514,524 | public static SearchAlertHistoriesResponse unmarshall(SearchAlertHistoriesResponse searchAlertHistoriesResponse, UnmarshallerContext _ctx) {<NEW_LINE>searchAlertHistoriesResponse.setRequestId(_ctx.stringValue("SearchAlertHistoriesResponse.RequestId"));<NEW_LINE>PageBean pageBean = new PageBean();<NEW_LINE>pageBean.setP... | (_ctx.integerValue("SearchAlertHistoriesResponse.PageBean.PageNumber")); |
1,173,297 | public ListHandshakesForOrganizationResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListHandshakesForOrganizationResult listHandshakesForOrganizationResult = new ListHandshakesForOrganizationResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentEle... | )).unmarshall(context)); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.