idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,427,601 | private void onRotate(KeySeries series) {<NEW_LINE>mKeysMap.put(Numeric.toHexString(series.getID()), series);<NEW_LINE>long validFrom = Math.round(System.nanoTime() - 10 * Math.pow(10, 9));<NEW_LINE>byte[] signature = new Random().randomBytes(65);<NEW_LINE>List<Object> args = new ArrayList<>();<NEW_LINE>args.add(series... | System.out.println("Offer placed..."); |
623,232 | public void render(Component comp, Writer out) throws IOException {<NEW_LINE>final SmartWriter wh = new SmartWriter(out);<NEW_LINE>final Combobox self = (Combobox) comp;<NEW_LINE>final String uuid = self.getUuid();<NEW_LINE>final String zcls = self.getZclass();<NEW_LINE>final Execution exec = Executions.getCurrent();<N... | ()).write("'>"); |
512,942 | private void renderTracers(MatrixStack matrixStack, double partialTicks, int regionX, int regionZ) {<NEW_LINE>RenderSystem.setShader(GameRenderer::getPositionColorShader);<NEW_LINE>RenderSystem.setShaderColor(1, 1, 1, 1);<NEW_LINE>Matrix4f matrix = matrixStack<MASK><NEW_LINE>BufferBuilder bufferBuilder = Tessellator.ge... | .peek().getPositionMatrix(); |
1,635,490 | protected void execute(final Event e) {<NEW_LINE>lastSpawned = null;<NEW_LINE>final Number v = velocity != null ? velocity.getSingle(e) : DEFAULT_SPEED;<NEW_LINE>if (v == null)<NEW_LINE>return;<NEW_LINE>final Direction dir = direction != null ? direction.getSingle(e) : Direction.IDENTITY;<NEW_LINE>if (dir == null)<NEW_... | .setShooter((ProjectileSource) shooter); |
248,170 | public static ClientIdentity deserialize(byte[] input) throws IllegalArgumentException, IOException {<NEW_LINE>DataInputStream inputStream = new DataInputStream(new ByteArrayInputStream(input));<NEW_LINE>byte header = inputStream.readByte();<NEW_LINE>if (header != CLIENT_IDENTITY_HEADER) {<NEW_LINE>throw new IllegalArg... | ClientIdentity(ephemeralPublicKey, signingPublicKey, attestationInfo); |
1,620,344 | public ByteBuf encrypt(ByteBuf message, ByteBufAllocator allocator) throws InvalidKeyException, NoSuchPaddingException, NoSuchAlgorithmException, BadPaddingException, ShortBufferException, IllegalBlockSizeException {<NEW_LINE>Cipher cipher = Cipher.getInstance(algorithm);<NEW_LINE>cipher.init(Cipher.ENCRYPT_MODE, secre... | paddedMessage.nioBuffer(), nioBuffer); |
1,370,497 | public void testPersistentMessageReceive(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>boolean testFailed = false;<NEW_LINE>JMSContext jmsContext = jmsQCFBindings.createContext();<NEW_LINE>JMSConsumer jmsConsumer1 = jmsContext.createConsumer(jmsQueue);<NEW_LINE>JMSConsumer <MASK>... | jmsConsumer2 = jmsContext.createConsumer(jmsQueue1); |
193,620 | // use our deserializer instead of results toXcontent because the source field is differnet from sourceAsMap.<NEW_LINE>public static XContentBuilder hitsAsXContentBuilder(SearchHits results, MetaSearchResult metaResults) throws IOException {<NEW_LINE>if (results == null)<NEW_LINE>return null;<NEW_LINE>Object[] searchHi... | value = new HashMap<>(); |
1,072,367 | String assembleLongPollRefreshUrl(String uri, String appId, String cluster, String dataCenter, Map<String, Long> notificationsMap) {<NEW_LINE>Map<String, String> queryParams = Maps.newHashMap();<NEW_LINE>queryParams.put("appId", queryParamEscaper.escape(appId));<NEW_LINE>queryParams.put("cluster", queryParamEscaper.esc... | escape(assembleNotifications(notificationsMap))); |
562,715 | public void exitCsz_edit(Csz_editContext ctx) {<NEW_LINE>// If edited item is valid, add/update the entry in VS map<NEW_LINE>String invalidReason = getZoneInvalidReason(_currentZone, _currentZoneNameValid, _c.getInterfaces().keySet());<NEW_LINE>if (invalidReason == null) {<NEW_LINE>// is valid<NEW_LINE>String name = _c... | ctx.start.getLine()); |
1,117,692 | public void storeFirebaseMessage(RemoteMessage remoteMessage) {<NEW_LINE>try {<NEW_LINE>String remoteMessageString = reactToJSON(remoteMessageToWritableMap(remoteMessage)).toString();<NEW_LINE>// Log.d("storeFirebaseMessage", remoteMessageString);<NEW_LINE>UniversalFirebasePreferences preferences = UniversalFirebasePre... | preferences.getStringValue(S_KEY_ALL_NOTIFICATION_IDS, ""); |
282,387 | void configureTransition(@NonNull final ViewGroup container, @Nullable View from, @Nullable View to, @NonNull final Transition transition, boolean isPush) {<NEW_LINE>final View nonExistentView = new <MASK><NEW_LINE>List<View> fromSharedElements = new ArrayList<>();<NEW_LINE>List<View> toSharedElements = new ArrayList<>... | View(container.getContext()); |
372,296 | public void marshall(CreateInstancesRequest createInstancesRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createInstancesRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createInstancesReq... | createInstancesRequest.getTags(), TAGS_BINDING); |
771,987 | private void markupDirectory(ResourceDirectory directory, Address directoryAddr, Address resourceBase, Program program, boolean isBinary, TaskMonitor monitor, MessageLog log) throws IOException, DuplicateNameException, CodeUnitInsertionException {<NEW_LINE>PeUtils.createData(program, directoryAddr, directory.toDataType... | directoryAddr.add(ResourceDirectory.SIZEOF); |
242,022 | public ResponseEntity<Void> updatePetWithHttpInfo(Pet body) throws RestClientException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new HttpClientErrorException(HttpStatus.BAD_REQUEST, "Missing the required parameter 'body... | ] localVarContentTypes = { "application/json", "application/xml" }; |
925,925 | public Answer execute(CreateOrUpdateRecordAndReverseCommand cmd) {<NEW_LINE>boolean needsExport = false;<NEW_LINE>try {<NEW_LINE>Domain domain = searchDomain(cmd.getNetworkDomain(), false);<NEW_LINE>if (domain == null) {<NEW_LINE>domain = _globoDns.getDomainAPI().createDomain(cmd.getNetworkDomain(), cmd.getReverseTempl... | false, e.getMessage()); |
391,097 | // Remove a consumer for a topic<NEW_LINE>public CompletableFuture<Void> removeConsumerAsync(String topicName) {<NEW_LINE>checkArgument(TopicName.isValid(topicName), "Invalid topic name:" + topicName);<NEW_LINE>if (getState() == State.Closing || getState() == State.Closed) {<NEW_LINE>return FutureUtil.failedFuture(new ... | collect(Collectors.toList()); |
233,345 | private static Path prepareSandboxRunner(FileSystem fs, RemoteWorkerOptions remoteWorkerOptions) throws InterruptedException {<NEW_LINE>if (OS.getCurrent() != OS.LINUX) {<NEW_LINE>logger.atSevere().log("Sandboxing requested, but it is currently only available on Linux");<NEW_LINE>System.exit(1);<NEW_LINE>}<NEW_LINE>if ... | RemoteWorker.class.getResourceAsStream("/main/tools/linux-sandbox"); |
665,805 | public Object calculate(Context ctx) {<NEW_LINE>if (param == null || !param.isLeaf()) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("long" + mm.getMessage("function.invalidParam"));<NEW_LINE>}<NEW_LINE>Object result = param.getLeafExpression().calculate(ctx);<NEW_LINE>if (result ins... | .parseLong((String) result); |
1,076,297 | public static DescribeDomainSrcBpsDataResponse unmarshall(DescribeDomainSrcBpsDataResponse describeDomainSrcBpsDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainSrcBpsDataResponse.setRequestId(_ctx.stringValue("DescribeDomainSrcBpsDataResponse.RequestId"));<NEW_LINE>describeDomainSrcBpsDataResponse.setDo... | (_ctx.stringValue("DescribeDomainSrcBpsDataResponse.DomainName")); |
978,260 | public ListHyperParameterTuningJobsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListHyperParameterTuningJobsResult listHyperParameterTuningJobsResult = new ListHyperParameterTuningJobsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NE... | int originalDepth = context.getCurrentDepth(); |
1,610,786 | public static void aniket() {<NEW_LINE>Scanner scanner = new Scanner(System.in);<NEW_LINE>char[] alpha = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' };<NEW_LINE>char turn = 'X';<NEW_LINE>int input;<NEW_LINE>while (true) {<NEW_LINE>do {<NEW_LINE>System.out.print("enter position:");<NEW_LINE>input = scanner.nextInt();<... | alpha[input - 1] = turn; |
233,386 | public static DateTime peekWatermark(BufferedInputStream xmlInput) throws IOException, XmlException {<NEW_LINE>xmlInput.mark(PEEK_SIZE);<NEW_LINE>byte[] peek = new byte[PEEK_SIZE];<NEW_LINE>if (xmlInput.read(peek) != PEEK_SIZE) {<NEW_LINE>throw new IOException(String.format("Failed to peek %,d bytes on input file", PEE... | (watermarkMatcher.group(1)); |
521,890 | public static ImmutableListMultimap<LocalDate, LegalEntityCurveGroup> parse(Predicate<LocalDate> datePredicate, CharSource groupsCharSource, CharSource settingsCharSource, Collection<CharSource> curveValueCharSources) {<NEW_LINE>Map<CurveGroupName, Map<Pair<RepoGroup, Currency>, CurveName>> repoGroups = new LinkedHashM... | > builder = ImmutableListMultimap.builder(); |
1,545,507 | private void cmd_Ok() {<NEW_LINE>log.config("OK=" + true);<NEW_LINE>m_ok = true;<NEW_LINE>saveResultSelection(detail);<NEW_LINE>saveSelection(detail);<NEW_LINE>// Is Process ok<NEW_LINE>boolean isOk = false;<NEW_LINE>// Valid Process, Selected Keys and process parameters<NEW_LINE>if (getAD_Process_ID() > 0 && getSelect... | setAliasForTableSelection(viewDefinition.getTableAlias()); |
1,028,278 | public void run(TaskMonitor monitor) throws CancelledException {<NEW_LINE>FileSystemService fsService = FileSystemService.getInstance();<NEW_LINE>String locInfo = "\"" + projectLocator.toString() + "\" from \"" + projectArchiveFile.getAbsolutePath() + "\"";<NEW_LINE>if (projectFile.exists() || projectDir.exists()) {<NE... | this, "Restore Archive: " + locInfo + " succeeded."); |
1,090,459 | public I_PP_Order_Candidate execute() {<NEW_LINE>// Create PP Order Candidate<NEW_LINE>final I_PP_Order_Candidate ppOrderCandidateRecord = InterfaceWrapperHelper.newInstance(I_PP_Order_Candidate.class);<NEW_LINE>PPOrderCandidatePojoConverter.setMaterialDispoGroupId(ppOrderCandidateRecord, request.getMaterialDispoGroupI... | getWarehouseId().getRepoId()); |
1,497,642 | void checkConcreteInheritedMethod(MethodBinding concreteMethod, MethodBinding[] abstractMethods) {<NEW_LINE>super.checkConcreteInheritedMethod(concreteMethod, abstractMethods);<NEW_LINE>boolean analyseNullAnnotations = this.environment.globalOptions.isAnnotationBasedNullAnalysisEnabled;<NEW_LINE>// TODO (stephan): uncl... | MethodBinding originalInherited = abstractMethod.original(); |
621,767 | public boolean onContextItemSelected(MenuItem item) {<NEW_LINE>ContextMenuAwareRecyclerView.RecyclerContextMenuInfo info = (ContextMenuAwareRecyclerView.RecyclerContextMenuInfo) item.getMenuInfo();<NEW_LINE>if (info.position >= mAdapter.getItemCount()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int id = item.getItemI... | ).get(id - MENU_DOWNLOAD_START); |
1,510,678 | private JTabbedPane createTabs() {<NEW_LINE>JTabbedPane tp = new JTabbedPane(JTabbedPane.BOTTOM) {<NEW_LINE><NEW_LINE>protected final void fireStateChanged() {<NEW_LINE>super.fireStateChanged();<NEW_LINE>fireViewOrIndexChanged();<NEW_LINE>}<NEW_LINE>};<NEW_LINE>tp.setOpaque(false);<NEW_LINE>if (UIUtils.isAquaLookAndFee... | setBorder(BorderFactory.createEmptyBorder()); |
1,020,024 | public RestLiResponse buildResponse(RoutingResult routingResult, RestLiResponseData<BatchCreateResponseEnvelope> responseData) {<NEW_LINE>List<BatchCreateResponseEnvelope.CollectionCreateResponseItem> collectionCreateResponses = responseData<MASK><NEW_LINE>List<CreateIdStatus<Object>> formattedResponses = new ArrayList... | .getResponseEnvelope().getCreateResponses(); |
122,186 | void ensureExistingComponentRemoved(ComponentInfo info) throws IOException {<NEW_LINE>String componentId = info.getId();<NEW_LINE>ComponentInfo oldInfo = input.getLocalRegistry().loadSingleComponent(componentId, true);<NEW_LINE>if (oldInfo == null) {<NEW_LINE>feedback.output("INSTALL_InstallNewComponent", info.getId(),... | ), info.getVersionString()); |
1,059,343 | private static void addUtilityMethods(SrcClass clazz, JavascriptModel model, ClassNode classNode, String fqn) {<NEW_LINE>long uid = incUid();<NEW_LINE>IFile file = JavascriptProgram.loadSrcForName(model, fqn, JavascriptTypeManifold.JS);<NEW_LINE>String url;<NEW_LINE>try {<NEW_LINE>url = file.toURI()<MASK><NEW_LINE>} ca... | .toURL().toString(); |
864,802 | protected JComponent createNorthPanel() {<NEW_LINE>final JPanel result = new JPanel();<NEW_LINE>result.setLayout(new BoxLayout(result, BoxLayout.Y_AXIS));<NEW_LINE>final List<NamedScope> scopeList = new ArrayList<NamedScope>();<NEW_LINE>final Project project = myManager.getProject();<NEW_LINE>final NamedScopesHolder[] ... | JLabel colorLabel = new JLabel("Color:"); |
1,556,029 | public void run(Debugger context, CommandArguments args, Document result) {<NEW_LINE>DebugTick tick = context.getRegisteredTick();<NEW_LINE>Element response = createResponse(args, result);<NEW_LINE>response.setAttribute("encoding", "base64");<NEW_LINE>String varName = args.get("n");<NEW_LINE>if (varName.startsWith("$")... | provider = getContextValueProvider(context, result); |
1,287,343 | public void marshall(StreamInfo streamInfo, AwsJsonWriter jsonWriter) throws Exception {<NEW_LINE>jsonWriter.beginObject();<NEW_LINE>if (streamInfo.getDeviceName() != null) {<NEW_LINE><MASK><NEW_LINE>jsonWriter.name("DeviceName");<NEW_LINE>jsonWriter.value(deviceName);<NEW_LINE>}<NEW_LINE>if (streamInfo.getStreamName()... | String deviceName = streamInfo.getDeviceName(); |
333,559 | public static void omitEmptyArrays(JsonArray clients) {<NEW_LINE>if (clients == null || clients.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>List<JsonObject> clientObjs = OidcOAuth20Util.getListOfJsonObjects(clients);<NEW_LINE>if (clientObjs == null || clientObjs.size() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LI... | fromJson(clientObj, OidcBaseClient.class); |
938,674 | public AssociationStatus unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociationStatus associationStatus = new AssociationStatus();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = ori... | JsonToken token = context.getCurrentToken(); |
1,675,995 | public void registerExternalVocabValues(DatasetField df) {<NEW_LINE>DatasetFieldType dft = df.getDatasetFieldType();<NEW_LINE>logger.fine("Registering for field: " + dft.getName());<NEW_LINE>JsonObject cvocEntry = getCVocConf(false).get(dft.getId());<NEW_LINE>if (dft.isPrimitive()) {<NEW_LINE>for (DatasetFieldValue dfv... | cvocEntry, dfv.getValue()); |
368,169 | public static ThreadFactory[] createThreadFactories(Supplier<ThreadLocalStreamBufferPool> bufferPoolSupplier) {<NEW_LINE>List<ThreadFactory> threadFactories = new LinkedList<>();<NEW_LINE>if (IS_BENCHMARK_DEBUG) {<NEW_LINE>// Simple threading for debug<NEW_LINE><MASK><NEW_LINE>for (int i = 0; i < Runtime.getRuntime().a... | System.out.println("\n\nWARNING: using debug mode so performance will suffer\n\n"); |
748,380 | private Unmarshaller createUnmarshaller() {<NEW_LINE>try {<NEW_LINE>Unmarshaller um = databinding.getJAXBUnmarshaller();<NEW_LINE>if (setEventHandler) {<NEW_LINE>um.setEventHandler(new WSUIDValidationHandler(veventHandler));<NEW_LINE>}<NEW_LINE>// If the unmarshaller has already been filled with all the initializing pr... | Level.INFO, "PropertyException setting Marshaller properties", pe); |
339,679 | private Predicate workCompletedPredicate_application(CriteriaBuilder cb, Root<WorkCompleted> root) throws Exception {<NEW_LINE>List<String> _application_ids = ListTools.extractField(this.applicationList, Application.id_FIELDNAME, String.class, true, true);<NEW_LINE>List<String> _application_names = ListTools.extractFie... | applicationAlias).in(_application_alias)); |
847,576 | private Leaf position_locate(TreeNode p_curr_node, Leaf p_leaf_to_insert) {<NEW_LINE>TreeNode curr_node = p_curr_node;<NEW_LINE>while (!(curr_node instanceof Leaf)) {<NEW_LINE>InnerNode curr_inner_node = (InnerNode) curr_node;<NEW_LINE>curr_inner_node.bounding_shape = p_leaf_to_insert.bounding_shape.union(curr_inner_no... | () - second_child_shape.area(); |
901,610 | final DescribeTargetGroupsResult executeDescribeTargetGroups(DescribeTargetGroupsRequest describeTargetGroupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeTargetGroupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Elastic Load Balancing v2"); |
199,767 | public static void main(String[] args) {<NEW_LINE>String url;<NEW_LINE>if (args.length == 0)<NEW_LINE>url = "jdbc:virtuoso://localhost:1111";<NEW_LINE>else<NEW_LINE>url = args[0];<NEW_LINE>Node foo1 = Node.createURI("http://example.org/#foo1");<NEW_LINE>Node bar1 = Node.createURI("http://example.org/#bar1");<NEW_LINE>N... | Node.ANY, Node.ANY); |
1,086,111 | public void submitTicket(LotteryService service, Scanner scanner) {<NEW_LINE>logger.info("What is your email address?");<NEW_LINE>var email = readString(scanner);<NEW_LINE>logger.info("What is your bank account number?");<NEW_LINE>var account = readString(scanner);<NEW_LINE>logger.info("What is your phone number?");<NE... | -> logger.info("Failed submitting lottery ticket - please try again.")); |
1,728,777 | private I_C_BPartner createNewBPartnerNoSave(final I_I_BPartner from) {<NEW_LINE>final I_C_BPartner bpartner = InterfaceWrapperHelper.newInstance(I_C_BPartner.class);<NEW_LINE>bpartner.setExternalId(from.getC_BPartner_ExternalId());<NEW_LINE>bpartner.setAD_Org_ID(from.getAD_Org_ID());<NEW_LINE>//<NEW_LINE>bpartner.setV... | setPaymentRulePO(from.getPaymentRulePO()); |
1,592,953 | public int crypto_kem_dec(byte[] k, byte[] c, byte[] sk) {<NEW_LINE>int i, fail;<NEW_LINE>byte[<MASK><NEW_LINE>byte[] buf = new byte[64];<NEW_LINE>// Will contain key, coins<NEW_LINE>byte[] kr = new byte[64];<NEW_LINE>byte[] pk = Arrays.copyOfRange(sk, SABER_INDCPA_SECRETKEYBYTES, sk.length);<NEW_LINE>// buf[0:31] <-- ... | ] cmp = new byte[SABER_BYTES_CCA_DEC]; |
1,079,293 | public void writeDesign(Element design, DesignContext context) {<NEW_LINE>super.writeDesign(design, context);<NEW_LINE>Window def = context.getDefaultInstance(this);<NEW_LINE>if (getState().centered) {<NEW_LINE>design.attr("center", true);<NEW_LINE>}<NEW_LINE>DesignAttributeHandler.writeAttribute("position", design.att... | ), String.class, context); |
721,398 | private void enqueueMessage(UUID uuid, DynmapPlayer player, EnterExitText txt, boolean isEnter) {<NEW_LINE>SendQueueRec rec = entersetsendqueue.get(uuid);<NEW_LINE>if (rec == null) {<NEW_LINE>rec = new SendQueueRec();<NEW_LINE>rec.player = player;<NEW_LINE>rec.tickdelay = 0;<NEW_LINE>entersetsendqueue.put(uuid, rec);<N... | rec.queue.add(txtrec); |
64,719 | private void writeValueNodeTriple(IndentedWriter out, Node value, boolean multiLine) {<NEW_LINE>Triple triple = value.getTriple();<NEW_LINE>print(out, quoteName(kType), ": ", quote(kTriple), " , ");<NEW_LINE>println(out);<NEW_LINE>// if ( multiLineValues )<NEW_LINE>// println(out);<NEW_LINE>print(out, quoteName(kValue)... | , quoteName(kPredicate), ": "); |
315,134 | private static String figureThemeURL(final PwmRequest pwmRequest, final PwmThemeURL themeUrl) {<NEW_LINE>String themeURL = null;<NEW_LINE>String themeName <MASK><NEW_LINE>if (pwmRequest != null) {<NEW_LINE>final PwmDomain pwmDomain = pwmRequest.getPwmDomain();<NEW_LINE>themeName = figureThemeName(pwmRequest);<NEW_LINE>... | = AppProperty.CONFIG_THEME.getDefaultValue(); |
1,803,269 | public void init(GameServer gameServer) {<NEW_LINE>IServerConfiguration configuration = gameServer.getConfig();<NEW_LINE>GameRegistry registry = gameServer.getRegistry();<NEW_LINE>listeners.add(new WorldCreationListener(configuration.getInt("settlement_spawn_rate")));<NEW_LINE>listeners.add(new CpuInitialisationListene... | registry.registerHardware(NpcBattery.class); |
807,235 | protected void createRepository() {<NEW_LINE>EditRepositoryDialog dialog = new EditRepositoryDialog(gitblit.getProtocolVersion());<NEW_LINE>dialog.setLocationRelativeTo(RepositoriesPanel.this);<NEW_LINE>dialog.setAccessRestriction(gitblit.getDefaultAccessRestriction());<NEW_LINE>dialog.setAuthorizationControl(gitblit.g... | > permittedUsers = dialog.getUserAccessPermissions(); |
329,860 | private boolean addRemoveJAR(File jar, POMModel mdl, String scope, boolean add) throws IOException {<NEW_LINE>if (!add) {<NEW_LINE>throw new UnsupportedOperationException("removing JARs not yet supported");<NEW_LINE>}<NEW_LINE>NBVersionInfo dep = null;<NEW_LINE>for (NBVersionInfo _dep : RepositoryQueries.findBySHA1Resu... | [] { jar, dep }); |
925,655 | public void updateHandler(final RoutingContext ctx) {<NEW_LINE>final int queries = Helper.<MASK><NEW_LINE>final World[] worlds = new World[queries];<NEW_LINE>final boolean[] failed = { false };<NEW_LINE>final int[] queryCount = { 0 };<NEW_LINE>for (int i = 0; i < worlds.length; i++) {<NEW_LINE>int id = randomWorld();<N... | getQueries(ctx.request()); |
1,624,116 | public void reorder() throws ExpressionException {<NEW_LINE>ArrayList<Variable> newVars = new ArrayList<>();<NEW_LINE>ArrayList<Variable> deletedVars = new ArrayList<>(table.getVars());<NEW_LINE>for (String name : names) {<NEW_LINE>Variable found = null;<NEW_LINE>for (Variable v : deletedVars) if (v.getIdentifier().equ... | (Lang.get("err_tableBecomesToSmall")); |
603,906 | public void exitExtended_access_list_tail(Extended_access_list_tailContext ctx) {<NEW_LINE>LineAction action = toLineAction(ctx.ala);<NEW_LINE>AccessListAddressSpecifier srcAddressSpecifier = toAccessListAddressSpecifier(ctx.srcipr);<NEW_LINE>AccessListAddressSpecifier dstAddressSpecifier = toAccessListAddressSpecifier... | _currentIpv4Acl.getName(), name); |
976,369 | public void process(InputStream in, ZipEntry zipEntry) throws IOException {<NEW_LINE>String root = <MASK><NEW_LINE>if (rootDir == null) {<NEW_LINE>rootDir = root;<NEW_LINE>} else if (!rootDir.equals(root)) {<NEW_LINE>throw new ZipException("Unwrapping with multiple roots is not supported, roots: " + rootDir + ", " + ro... | getRootName(zipEntry.getName()); |
402,012 | PNone initInPlace(VirtualFrame frame, SuperObject self, @SuppressWarnings("unused") PNone clsArg, @SuppressWarnings("unused") PNone objArg, @Cached("createRead(frame)") ReadLocalVariableNode readClass, @Cached("create(0)") ReadIndexedArgumentNode readArgument, @Cached ConditionProfile isCellProfile) {<NEW_LINE>Object <... | obj = readArgument.execute(frame); |
1,008,393 | ArrayTable.Representation chooseRep(int ordinal) {<NEW_LINE>Primitive primitive = Primitive.of(clazz);<NEW_LINE>Primitive boxPrimitive = Primitive.ofBox(clazz);<NEW_LINE>Primitive p = primitive != null ? primitive : boxPrimitive;<NEW_LINE>if (!containsNull && p != null) {<NEW_LINE>switch(p) {<NEW_LINE>case FLOAT:<NEW_L... | min), toLong(max)); |
262,350 | public static Map<String, Map<String, String>> convertRegister(Map<String, Map<String, String>> register) {<NEW_LINE>Map<String, Map<String, String>> newRegister = new HashMap<>();<NEW_LINE>for (Map.Entry<String, Map<String, String>> entry : register.entrySet()) {<NEW_LINE>String serviceName = entry.getKey();<NEW_LINE>... | params = StringUtils.parseQueryString(serviceQuery); |
1,418,637 | private void drawStabilityInfo() {<NEW_LINE>String at;<NEW_LINE>// // at M=<NEW_LINE>at = trans.get("RocketInfo.at") + UnitGroup.UNITS_COEFFICIENT.getDefaultUnit().toStringUnit(Application.getPreferences().getDefaultMach());<NEW_LINE>if (!Double.isNaN(aoa)) {<NEW_LINE>at += " " + ALPHA + "=" + UnitGroup.UNITS_ANGLE.get... | .getWidth()) / 2); |
817,165 | public String annotatedDebugName() {<NEW_LINE>StringBuffer buffer = new StringBuffer(10);<NEW_LINE>buffer.<MASK><NEW_LINE>if (!this.inRecursiveFunction) {<NEW_LINE>this.inRecursiveFunction = true;<NEW_LINE>try {<NEW_LINE>if (this.superclass != null && TypeBinding.equalsEquals(this.firstBound, this.superclass)) {<NEW_LI... | append(super.annotatedDebugName()); |
1,220,670 | private PropertyList makeConjunctions(PropertyList.Iterator[] iters, int currIndex, int[][] conjunctions, int j, int tsSize, @Var PropertyList newfs, int tsi, PropertyList[] oldfs, int[] iterIndices) {<NEW_LINE>if (iters.length == currIndex) {<NEW_LINE>// base case: add feature for current conjunction of iters<NEW_LINE... | add(newFeature, newValue, newfs); |
1,783,289 | private void printTopicPartitionInfo(KafkaCluster cluster, PrintWriter writer, String topic) {<NEW_LINE>writer.print("<p> <h5>" + topic + "</h5></p>");<NEW_LINE>writer.print("<table class=\"table\">");<NEW_LINE>writer.print("<thead> <tr> <th> Partition</th> ");<NEW_LINE>writer.print("<th>In Max (Mb/s)</th> ");<NEW_LINE... | getMaxBytesIn(topicPartition) / 1024.0 / 1024.0; |
532,695 | public void marshall(UpdateFileSystemOpenZFSConfiguration updateFileSystemOpenZFSConfiguration, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateFileSystemOpenZFSConfiguration == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>prot... | updateFileSystemOpenZFSConfiguration.getCopyTagsToVolumes(), COPYTAGSTOVOLUMES_BINDING); |
459,424 | public static ListServiceInstancesResponse unmarshall(ListServiceInstancesResponse listServiceInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listServiceInstancesResponse.setRequestId(_ctx.stringValue("ListServiceInstancesResponse.RequestId"));<NEW_LINE>listServiceInstancesResponse.setNextToken(_ctx.stringValue... | ("ListServiceInstancesResponse.ServiceInstances[" + i + "].UpdateTime")); |
834,640 | public Request<DescribeImportImageTasksRequest> marshall(DescribeImportImageTasksRequest describeImportImageTasksRequest) {<NEW_LINE>if (describeImportImageTasksRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeImportImageTasksRe... | (describeImportImageTasksRequest.getMaxResults())); |
1,293,739 | protected void configure() {<NEW_LINE>// need to eagerly initialize<NEW_LINE>bind(<MASK><NEW_LINE>//<NEW_LINE>// override these in additional modules if necessary with Modules.override()<NEW_LINE>//<NEW_LINE>bind(EurekaInstanceConfig.class).toProvider(CloudInstanceConfigProvider.class).in(Scopes.SINGLETON);<NEW_LINE>bi... | ApplicationInfoManager.class).asEagerSingleton(); |
693,882 | public void updateValueFromChildren(TypeNodeData inData) {<NEW_LINE>DefaultMutableTreeNode localPartNode = (DefaultMutableTreeNode) this.getChildAt(0);<NEW_LINE>DefaultMutableTreeNode valueNode = (DefaultMutableTreeNode) this.getChildAt(1);<NEW_LINE>// TypeNodeData localPartData = (TypeNodeData) localPartNode.getUserOb... | ReflectionHelper.setJAXBElementValue(jaxBElement, value); |
1,138,541 | private void downloadJdk(File jdkExtractDirectory, Jdk jdk) throws MojoExecutionException {<NEW_LINE>log.info(<MASK><NEW_LINE>Boolean interactiveMode = session.getSettings().getInteractiveMode();<NEW_LINE>session.getSettings().setInteractiveMode(false);<NEW_LINE>try {<NEW_LINE>String cacheDirectory = Paths.get(session.... | "Downloading " + jdk.getUrl()); |
1,250,317 | public ActionForward render(ActionMapping mapping, ActionForm form, PortletConfig config, RenderRequest req, RenderResponse res) throws Exception {<NEW_LINE>try {<NEW_LINE>String cmd = ParamUtil.get(req, Constants.CMD, "dgar");<NEW_LINE>String[] groupNames = StringUtil.split(ParamUtil.getString(req, "config_groups"));<... | (registrationEmailSend, registrationEmailSubject, registrationEmailBody)); |
561,796 | public Object executeFunction() {<NEW_LINE>// symbolic receiver (new object)<NEW_LINE><MASK><NEW_LINE>// string argument<NEW_LINE>String conc_str = (String) this.getConcArgument(0);<NEW_LINE>ReferenceExpression symb_str = this.getSymbArgument(0);<NEW_LINE>// delim argument<NEW_LINE>String conc_delim = (String) this.get... | ReferenceConstant symb_str_tokenizer = this.getSymbReceiver(); |
657,796 | double leftLabelPadding() {<NEW_LINE>double leftPadding = super.leftLabelPadding();<NEW_LINE>// RT-27167: we must take into account the disclosure node and the<NEW_LINE>// indentation (which is not taken into account by the LabeledSkinBase.<NEW_LINE>final double height = getCellSize();<NEW_LINE>TreeTableCell<S, T> cell... | columnIndex = treeTable.getVisibleLeafIndex(tableColumn); |
1,125,691 | public DescribeApplicationStateResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeApplicationStateResult describeApplicationStateResult = new DescribeApplicationStateResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | int originalDepth = context.getCurrentDepth(); |
739,141 | public void onBindViewHolder(final RecyclerView.ViewHolder holder, final int position) {<NEW_LINE>int type = getItemViewType(position);<NEW_LINE>switch(type) {<NEW_LINE>case TYPE_ACTION_HEADER:<NEW_LINE>{<NEW_LINE>HeaderViewHolder headerViewHolder = (HeaderViewHolder) holder;<NEW_LINE>headerViewHolder.setAction(mMassOp... | setText(R.string.bookmarks_import); |
654,436 | final DescribeVpcAttributeResult executeDescribeVpcAttribute(DescribeVpcAttributeRequest describeVpcAttributeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeVpcAttributeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe... | DescribeVpcAttributeResult>(new DescribeVpcAttributeResultStaxUnmarshaller()); |
1,055,674 | protected void onCreate(final Bundle savedInstanceState) {<NEW_LINE>PrefsUtility.applyTheme(this);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setTitle(R.string.pm_send_actionbar);<NEW_LINE>final LinearLayout layout = (LinearLayout) getLayoutInflater().inflate(R.layout.pm_send, null);<NEW_LINE>usernameSpinner... | findViewById(R.id.pm_send_username); |
1,318,853 | final DeleteInsightResult executeDeleteInsight(DeleteInsightRequest deleteInsightRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteInsightRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | endClientExecution(awsRequestMetrics, request, response); |
1,100,115 | public DescribeInsightRulesResult unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeInsightRulesResult describeInsightRulesResult = new DescribeInsightRulesResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.i... | new ArrayList<InsightRule>()); |
963,634 | void createAnonymousFilter() {<NEW_LINE>Element anonymousElt = DomUtils.getChildElementByTagName(this.httpElt, Elements.ANONYMOUS);<NEW_LINE>if (anonymousElt != null && "false".equals(anonymousElt.getAttribute("enabled"))) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String grantedAuthority = null;<NEW_LINE>String username =... | this.pc.extractSource(anonymousElt); |
14,399 | public void aesEncrypt(final byte[] key, InputStream in, OutputStream out, final byte[] iv, boolean useMac) throws CryptoError, IOException {<NEW_LINE>InputStream encrypted = null;<NEW_LINE>try {<NEW_LINE>Cipher cipher = Cipher.getInstance(AES_MODE_PADDING);<NEW_LINE>IvParameterSpec params = new IvParameterSpec(iv);<NE... | new byte[] { 1 }); |
1,168,662 | private // pretty printer it would not help much.<NEW_LINE>String formatCssCode(Document doc, int baseIndent, int additionalIndent, String... lines) {<NEW_LINE>StringBuilder b = new StringBuilder();<NEW_LINE>int indentLevelSize = IndentUtils.indentLevelSize(doc);<NEW_LINE>for (String line : lines) {<NEW_LINE>// add bas... | c = line.charAt(i); |
1,385,511 | protected void consumeEnterAnonymousClassBody(boolean qualified) {<NEW_LINE>// EnterAnonymousClassBody ::= $empty<NEW_LINE>if (this.indexOfAssistIdentifier() < 0) {<NEW_LINE>super.consumeEnterAnonymousClassBody(qualified);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// trick to avoid creating a selection on type reference<NEW... | currentElement.add(anonymousType, 0); |
1,399,949 | private String build() {<NEW_LINE>String options = deployState.getProperties().jvmGCOptions();<NEW_LINE>if (jvmGcOptions != null) {<NEW_LINE>options = jvmGcOptions;<NEW_LINE>String[] <MASK><NEW_LINE>List<String> invalidOptions = Arrays.stream(optionList).filter(option -> !option.isEmpty()).filter(option -> !Pattern.mat... | optionList = options.split(" "); |
52,410 | public void resolveBuildDependencies(ConfigurationInternal configuration, ResolverResults result) {<NEW_LINE>ResolutionStrategyInternal resolutionStrategy = configuration.getResolutionStrategy();<NEW_LINE>ResolutionFailureCollector failureCollector = new ResolutionFailureCollector(componentSelectorConverter);<NEW_LINE>... | CompositeDependencyGraphVisitor(failureCollector, resolutionResultBuilder, localComponentsVisitor); |
1,141,556 | static void runTriggerExample(TrafficFlowOptions options) throws IOException {<NEW_LINE>options.setStreaming(true);<NEW_LINE>ExampleUtils exampleUtils = new ExampleUtils(options);<NEW_LINE>exampleUtils.setup();<NEW_LINE>Pipeline pipeline = Pipeline.create(options);<NEW_LINE>TableReference tableRef = getTableReference(o... | .withSchema(getSchema())); |
783,464 | private LogicalPlan withSelectHint(LogicalPlan logicalPlan, SelectHintContext hintContext) {<NEW_LINE>if (hintContext == null) {<NEW_LINE>return logicalPlan;<NEW_LINE>}<NEW_LINE>Map<String, SelectHint> hints = Maps.newLinkedHashMap();<NEW_LINE>for (HintStatementContext hintStatement : hintContext.hintStatements) {<NEW_... | ).toLowerCase(Locale.ROOT); |
509,269 | private void doScheduleAsyncCleanupRequest(Backoff cleanupBackoff, Request request, String action) {<NEW_LINE>ListenableFuture future = httpClient.executeAsync(request, createFullJsonResponseHandler(taskInfoCodec));<NEW_LINE>Futures.addCallback(future, new FutureCallback<FullJsonResponseHandler.JsonResponse<TaskInfo>>(... | cleanupTaskInfo(result.getValue()); |
1,421,484 | private void filterOutIgnoredFiles(final List<VcsDirtyScope> scopes) {<NEW_LINE>final Set<VirtualFile> refreshFiles = new HashSet<>();<NEW_LINE>try {<NEW_LINE>synchronized (myDataLock) {<NEW_LINE>final IgnoredFilesCompositeHolder fileHolder = myComposite.getIgnoredFileHolder();<NEW_LINE>for (Iterator<VcsDirtyScope> ite... | > roots = modifier.getAffectedVcsRoots(); |
860,246 | public static List<GCList> searchBookmarkLists() {<NEW_LINE>final Parameters params = new Parameters();<NEW_LINE>params.add("skip", "0");<NEW_LINE>params.add("take", "100");<NEW_LINE>params.add("type", "bm");<NEW_LINE>final String page = GCLogin.getInstance().getRequestLogged("https://www.geocaching.com/api/proxy/web/v... | (page).get("data"); |
1,538,565 | private void adaptFpsRange(int expectedFps, CaptureRequest.Builder builderInputSurface) {<NEW_LINE>List<Range<Integer>> fpsRanges = getSupportedFps(null, Facing.BACK);<NEW_LINE>if (fpsRanges != null && fpsRanges.size() > 0) {<NEW_LINE>Range<Integer> <MASK><NEW_LINE>int measure = Math.abs(closestRange.getLower() - expec... | closestRange = fpsRanges.get(0); |
373,551 | public // /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>void initWithData(Offer offer) {<NEW_LINE>model.initWithData(offer);<NEW_LINE>if (model.dataModel.isSellOffer()) {<NEW_LINE>actionButton.setId("buy-button-big");<NEW_LINE>actionButton.updateText(Res.get("takeOff... | Res.get("shared.buy"))); |
1,370,962 | public static DataTcpWebServer start(DataServer dataServer) throws Exception {<NEW_LINE>File dataBaseDir = new File(Config.base(), "local/repository/data");<NEW_LINE>FileUtils.forceMkdir(dataBaseDir);<NEW_LINE>Server tcpServer = null;<NEW_LINE>Server webServer = null;<NEW_LINE>String password = Config.token().getPasswo... | ] webs = new String[4]; |
617,866 | protected boolean isSetAfterPart(Key key, PartialKey part) {<NEW_LINE>if (key != null) {<NEW_LINE>switch(part) {<NEW_LINE>case ROW:<NEW_LINE>return key.getColumnFamilyData().length() > 0 || key.getColumnQualifierData().length() > 0 || key.getColumnVisibilityData().length() > 0 || key.getTimestamp() < Long.MAX_VALUE || ... | .MAX_VALUE || key.isDeleted(); |
231,892 | final AddApplicationCloudWatchLoggingOptionResult executeAddApplicationCloudWatchLoggingOption(AddApplicationCloudWatchLoggingOptionRequest addApplicationCloudWatchLoggingOptionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(addApplicationCloudWatchLoggingOptionRequest);<NEW_LINE>AWSReque... | (super.beforeMarshalling(addApplicationCloudWatchLoggingOptionRequest)); |
1,030,032 | public void operationComplete(CommandFuture<V> commandFuture) throws Exception {<NEW_LINE>if (commandFuture.isSuccess()) {<NEW_LINE>future().setSuccess(commandFuture.get());<NEW_LINE>} else {<NEW_LINE>if (!shouldRetry(commandFuture.cause())) {<NEW_LINE>logger.info("[opetationComplete][retry fail than max retry]{}", com... | int waitMilli = retryPolicy.retryWaitMilli(); |
1,218,626 | public static CodegenExpression codegen(IntervalComputerAfterWithDeltaExprForge forge, CodegenExpression leftStart, CodegenExpression leftEnd, CodegenExpression rightStart, CodegenExpression rightEnd, CodegenMethodScope codegenMethodScope, ExprForgeCodegenSymbol exprSymbol, CodegenClassScope codegenClassScope) {<NEW_LI... | ), ref("rangeStartDelta"))); |
4,739 | public void writeToParcel(Parcel dest, int flags) {<NEW_LINE>dest.writeInt(cropShape.ordinal());<NEW_LINE>dest.writeFloat(snapRadius);<NEW_LINE>dest.writeFloat(touchRadius);<NEW_LINE>dest.<MASK><NEW_LINE>dest.writeInt(scaleType.ordinal());<NEW_LINE>dest.writeByte((byte) (showCropOverlay ? 1 : 0));<NEW_LINE>dest.writeBy... | writeInt(guidelines.ordinal()); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.