idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
769,027
private boolean next() {<NEW_LINE>if (diter == null) {<NEW_LINE>diter = hash.keySet().iterator();<NEW_LINE>}<NEW_LINE>if (citer == null || !citer.hasNext()) {<NEW_LINE>if (aiter == null || !aiter.hasNext()) {<NEW_LINE>if (diter.hasNext()) {<NEW_LINE>aiter = hash.get(idate = diter.next()).keySet().iterator();<NEW_LINE>}...
.keySet().iterator();
26,795
public void commandStarted(CommandStartedEvent event) {<NEW_LINE>String databaseName = event.getDatabaseName();<NEW_LINE>// don't trace commands like "endSessions"<NEW_LINE>if ("admin".equals(databaseName))<NEW_LINE>return;<NEW_LINE>Span span = threadLocalSpan.next();<NEW_LINE>if (span == null || span.isNoop())<NEW_LIN...
String commandName = event.getCommandName();
974,968
public void run() {<NEW_LINE>String command = null;<NEW_LINE>while (!isInterrupted()) {<NEW_LINE>try {<NEW_LINE>command = sendQueue.take();<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>logger.warn("Failed to wait for queue: " + e.toString());<NEW_LINE>}<NEW_LINE>if (command == null) {<NEW_LINE>continue;<NEW_LIN...
logger.warn("Error while writing command to CUL", e);
903,264
public static void main(String[] args) {<NEW_LINE>JetInstance instance1 = Jet.newJetInstance();<NEW_LINE>JetInstance instance2 = Jet.newJetInstance();<NEW_LINE>Pipeline p = Pipeline.create();<NEW_LINE>p.readFrom(Sources.<Integer, Integer>mapJournal("source", START_FROM_OLDEST)).withoutTimestamps().writeTo<MASK><NEW_LIN...
(Sinks.list("sink"));
994,949
public Response processCitationPatentTXT(String text, int consolidate, boolean includeRawCitations) {<NEW_LINE>LOGGER.debug(methodLogIn());<NEW_LINE>Response response = null;<NEW_LINE>Engine engine = null;<NEW_LINE>try {<NEW_LINE>engine = Engine.getEngine(true);<NEW_LINE>List<PatentItem> patents = new ArrayList<PatentI...
articles, patents, consolidate, includeRawCitations);
832,800
public ProcessContext<Order> execute(ProcessContext<Order> context) throws Exception {<NEW_LINE>Order order = context.getSeedData();<NEW_LINE>setTaxSums(order);<NEW_LINE>Money total = BroadleafCurrencyUtils.getMoney(BigDecimal.ZERO, order.getCurrency());<NEW_LINE>total = total.add(order.getSubTotal());<NEW_LINE>total =...
add(fulfillmentGroup.getShippingPrice());
1,249,851
protected Object doWork() {<NEW_LINE>validateArguments();<NEW_LINE>logger.info("Reading and validating input files...");<NEW_LINE>denoisedCopyRatios = inputDenoisedCopyRatiosFile == null ? null : new CopyRatioCollection(inputDenoisedCopyRatiosFile);<NEW_LINE>allelicCounts = inputAllelicCountsFile == null ? null : new A...
contigLengthMap, allelicCounts, inputAllelicCountsFile, logger);
585,009
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE><MASK><NEW_LINE>mRecyclerView = (RecyclerView) findViewById(R.id.image_grid);<NEW_LINE>mRecyclerView.setLayoutManager(new GridLayoutManager(this, COLS_NUMBER));<NEW_LINE>FLog.setMinimumLoggingLevel(FLog.WARN);<NEW...
setContentView(R.layout.activity_main);
229,981
private void handle(ClientAuthMsg clientAuthMessage) throws NoSuchAlgorithmException, InvalidKeySpecException, ExecutionException, InterruptedException {<NEW_LINE>byte[] response = clientAuthMessage.getChallengeResponse().toByteArray();<NEW_LINE>if (handshakeChallenges.length > 1) {<NEW_LINE>if (Arrays.compare(response...
(), Role.PLAYER));
543,335
public static <T> void selectItemDialogWithAdditionalDeleteButton(final Context context, @StringRes final int title, @NonNull final List<T> items, @NotNull final Func1<T, TextParam> displayMapper, final Action1<T> onSelectListener, final Action1<T> onDeleteListener) {<NEW_LINE>final AlertDialog.Builder builder = Dialog...
dialog[0].show();
706,055
protected void internalReceiveCommand(String itemName, Command command) {<NEW_LINE>logger.trace("Received command (item='{}', command='{}')", itemName, command.toString());<NEW_LINE>final Map<String, AnelCommandType> map = getCommandTypeForItemName(itemName);<NEW_LINE>if (map == null || map.isEmpty()) {<NEW_LINE>logger...
.iterator().next();
1,473,420
public void showRemovedComment(Comment comment, int position) {<NEW_LINE>Toast.makeText(activity, R.string.fetching_removed_comment, <MASK><NEW_LINE>FetchRemovedComment.searchRemovedComment(mExecutor, new Handler(), pushshiftRetrofit, comment, new FetchRemovedComment.FetchRemovedCommentListener() {<NEW_LINE><NEW_LINE>@...
Toast.LENGTH_SHORT).show();
656,216
public static void logIssue(Report report, Issue issue, SheetParser parser) {<NEW_LINE>if (parser != null) {<NEW_LINE>String newMessage = "[" + NbBundle.getMessage(SpreadsheetUtils.class, "SpreadsheetUtils.recordNumber", parser.getCurrentRecordNumber()) + "] " + issue.getMessage();<NEW_LINE>issue = new Issue(<MASK><NEW...
newMessage, issue.getLevel());
472,811
private void parseResponses() {<NEW_LINE>HangingTraceStream tracingStream = null;<NEW_LINE>ByteArrayOutputStream responseCopy = null;<NEW_LINE>try {<NEW_LINE>boolean traceEWSResponse = this.getService().isTraceEnabledFor(TraceFlags.EwsResponse);<NEW_LINE>InputStream responseStream = this.response.getInputStream();<NEW_...
disconnect(HangingRequestDisconnectReason.Exception, ex);
255,056
// invalidateIt<NEW_LINE>@Override<NEW_LINE>public String prepareIt() {<NEW_LINE><MASK><NEW_LINE>m_processMsg = ModelValidationEngine.get().fireDocValidate(this, ModelValidator.TIMING_BEFORE_PREPARE);<NEW_LINE>if (m_processMsg != null)<NEW_LINE>return IDocument.STATUS_Invalid;<NEW_LINE>// Std Period open?<NEW_LINE>if (...
log.info(toString());
1,407,691
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>UUID targetId = source.getFirstTarget();<NEW_LINE>Player affectedPlayer = null;<NEW_LINE>Player <MASK><NEW_LINE>if (player != null) {<NEW_LINE>player.damag...
player = game.getPlayer(targetId);
1,703,986
protected void parseProcessDefinitionStartEvent(ActivityImpl startEventActivity, Element startEventElement, Element parentElement, ScopeImpl scope) {<NEW_LINE>ProcessDefinitionEntity processDefinition = (ProcessDefinitionEntity) scope;<NEW_LINE>String initiatorVariableName = startEventElement.attributeNS(CAMUNDA_BPMN_E...
.setActivityBehavior(new NoneStartEventActivityBehavior());
465,273
// Handle a SelectionKey which was selected<NEW_LINE>private void handleKey(SelectionKey key) throws IOException {<NEW_LINE>// We could have a !isValid() key here if the connection is already closed at this point<NEW_LINE>if (key.isValid() && key.isConnectable()) {<NEW_LINE>// ie a client connection which has finished ...
data.future.completeExceptionally(cause);
704,485
public boolean drop(@NotNull final WebDockablePane dockablePane, @NotNull final TransferHandler.TransferSupport support) {<NEW_LINE>final FrameDropData dropData = dropData(dockablePane, support);<NEW_LINE>if (dropData != null) {<NEW_LINE>// Dropped element<NEW_LINE>final DockableElement element = root.get(dropData.getI...
final CompassDirection position = getFramePosition(frame);
1,843,821
public BigDecimal invoke(int A_Asset_ID, String PostingType, int A_Asset_Acct_ID, int Flag, int Period) {<NEW_LINE>String conventionType = getConventionType();<NEW_LINE>BigDecimal retValue = null;<NEW_LINE>if (CLogMgt.isLevelFine())<NEW_LINE>log.fine("Entering: ConventionType=" + conventionType + "A_Asset_ID=" + A_Asse...
cs.setInt(4, A_Asset_Acct_ID);
1,259,982
private void swt_updateSideBarHitAreasY(SideBarEntrySWT[] entries) {<NEW_LINE>for (int x = 0; x < entries.length; x++) {<NEW_LINE>SideBarEntrySWT entry = entries[x];<NEW_LINE>TreeItem treeItem = entry.getTreeItem();<NEW_LINE>if (treeItem == null || treeItem.isDisposed()) {<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>Rectang...
> vitalityImages = entry.getVitalityImages();
1,119,362
public final Result search(Query query, Execution execution) {<NEW_LINE>int tries = 0;<NEW_LINE>Hasher.NodeList<T> nodes = getHasher().getNodes();<NEW_LINE>if (nodes.getNodeCount() == 0)<NEW_LINE>return search(query, execution, ErrorMessage.createNoBackendsInService("No nodes in service in " + this + " (" + monitor.nod...
tries < nodes.getNodeCount());
408,282
final UntagResourceResult executeUntagResource(UntagResourceRequest untagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(untagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
589,655
private void handleDeletion(final CascadeAction action, final Completion completion) {<NEW_LINE>final List<NeedReplyMessage> msgs = new ArrayList<>();<NEW_LINE>if (VolumeVO.class.getSimpleName().equals(action.getParentIssuer())) {<NEW_LINE>List<VolumeDeletionStruct> vols = action.getParentIssuerContext();<NEW_LINE>for ...
.add(handleSnapshotDeletion(sinv));
95,101
protected int bsdthread_terminate(Emulator<DarwinFileIO> emulator) {<NEW_LINE>RegisterContext context = emulator.getContext();<NEW_LINE>final UnidbgPointer freeaddr = context.getPointerArg(0);<NEW_LINE>final int freesize = context.getIntArg(1);<NEW_LINE>int kport = context.getIntArg(2);<NEW_LINE>int joinsem = context.g...
", kport=" + kport + ", joinsem=" + joinsem);
71,183
private void registerWindowSizeListener() {<NEW_LINE>addComponentListener(new ComponentAdapter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void componentResized(ComponentEvent e) {<NEW_LINE>storeWindowPosition(e);<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void componentMoved(ComponentEvent e) {<NEW_L...
var component = e.getComponent();
79,279
IntTree<V> minus(final long key) {<NEW_LINE>if (size == 0)<NEW_LINE>return this;<NEW_LINE>if (key < this.key)<NEW_LINE>return rebalanced(left.minus(key - this.key), right);<NEW_LINE>if (key > this.key)<NEW_LINE>return rebalanced(left, right.minus<MASK><NEW_LINE>// otherwise key==this.key, so we are killing this node:<N...
(key - this.key));
1,415,924
public ProfileStackTree buildAnalyzeResult() {<NEW_LINE>// all nodes add to single-level list (such as flat), work for parallel calculating<NEW_LINE>LinkedList<Pair<ProfileStackElement, ProfileStackNode>> <MASK><NEW_LINE>int idGenerator = 1;<NEW_LINE>ProfileStackElement root = buildElement(idGenerator++);<NEW_LINE>node...
nodeMapping = new LinkedList<>();
159,253
public static int binarySearch(float[] array, int startIndex, int endIndex, float value) {<NEW_LINE>checkIndexForBinarySearch(array.length, startIndex, endIndex);<NEW_LINE>int intBits = Float.floatToIntBits(value);<NEW_LINE>int low = startIndex, mid = -1, high = endIndex - 1;<NEW_LINE>while (low <= high) {<NEW_LINE>mid...
mid]) ? 1 : 2);
473,567
public void marshall(AddOutputRequest addOutputRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (addOutputRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(addOutputRequest.getCidrAllowList(),...
addOutputRequest.getMediaStreamOutputConfigurations(), MEDIASTREAMOUTPUTCONFIGURATIONS_BINDING);
440,833
public void InvalidatedSessions(@Args Object[] myargs) {<NEW_LINE>if (tc.isEntryEnabled()) {<NEW_LINE>Tr.entry(tc, "InvalidatedSessions");<NEW_LINE>}<NEW_LINE>if (myargs == null) {<NEW_LINE>if (tc.isEntryEnabled()) {<NEW_LINE>Tr.exit(tc, "InvalidatedSessions", "Args is null");<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<NEW...
exit(tc, "InvalidatedSessions", "AppName Not found in MeterCollection");
593,645
public static ModifiableModel createNewProfile(final int initValue, ModifiableModel selectedProfile, JPanel parent, String profileName, Set<String> existingProfileNames, @Nonnull Project project) {<NEW_LINE>profileName = Messages.showInputDialog(parent, profileName, "Create New Inspection Profile", Messages.getQuestion...
, InspectionsBundle.message("inspection.unable.to.create.profile.dialog.title"));
125,504
private void invalidate(Response response, CacheKey cacheKey) {<NEW_LINE>if (!lock.isHeldByCurrentThread()) {<NEW_LINE>throw new ConcurrentModificationException("cache has pending access!");<NEW_LINE>}<NEW_LINE>invalidate(cacheKey);<NEW_LINE>int contentType = response<MASK><NEW_LINE>if (contentType != MediaTypeRegistry...
.getOptions().getContentFormat();
395,143
private void chooseDefaultAction(final double lat, final double lon, final MapActivity mapActivity) {<NEW_LINE>boolean nightMode = app.getDaynightHelper().isNightModeForMapControls();<NEW_LINE>AlertDialog.Builder ab = new AlertDialog.Builder(UiUtilities.getThemedContext(mapActivity, nightMode));<NEW_LINE>ab.setItems(ne...
mapActivity, lon, lat, action);
1,244,192
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {<NEW_LINE>// TODO Auto-generated method stub<NEW_LINE>PrintWriter writer = response.getWriter();<NEW_LINE>Enumeration<?> enu = request.getParameterNames();<NEW_LINE>while (enu.hasMoreElements()) {<NEW_LI...
methodName = request.getParameter("method");
487,482
private void invokeInjectConfigurationAndPluginsRegistryMethods(InstatiatedPlugin ip) throws ConfigurationException, InstantiationException, IllegalAccessException, InvocationTargetException {<NEW_LINE>// we need to process methods that are annotated only with @InjectConfiguration<NEW_LINE>var confMethods = ip.descript...
injection.method + "(Map<String, Object> configuration," + " PluginsRegistry pluginsRegistry)");
1,317,190
final RevokeCertificateResult executeRevokeCertificate(RevokeCertificateRequest revokeCertificateRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(revokeCertificateRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st...
(super.beforeMarshalling(revokeCertificateRequest));
1,217,540
public static JibBuildRunner createJibBuildRunnerForTarImage(RawConfiguration rawConfiguration, InferredAuthProvider inferredAuthProvider, ProjectProperties projectProperties, GlobalConfig globalConfig, HelpfulSuggestions helpfulSuggestions) throws InvalidImageReferenceException, MainClassInferenceException, InvalidApp...
getGeneratedTargetDockerTag(rawConfiguration, projectProperties, helpfulSuggestions);
407,717
private boolean printAny(final MessageOrBuilder message, final TextGenerator generator) throws IOException {<NEW_LINE>Descriptor messageType = message.getDescriptorForType();<NEW_LINE>FieldDescriptor typeUrlField = messageType.findFieldByNumber(1);<NEW_LINE>FieldDescriptor valueField = messageType.findFieldByNumber(2);...
contentType = typeRegistry.getDescriptorForTypeUrl(typeUrl);
507,358
private void syncVmSystemTags(List<String> tags) {<NEW_LINE>if (tags == null || tags.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (String tag : tags) {<NEW_LINE>if (VmSystemTags.VM_INJECT_QEMUGA.getTagFormat().equals(tag)) {<NEW_LINE>tagMgr.createNonInherentSystemTag(self.getUuid(), ImageSystemTags.IMAGE_INJEC...
newSystemTagCreator(self.getUuid());
992,659
public static <T> RSocketRemoteServiceBuilder<T> client(Class<T> serviceInterface) {<NEW_LINE>RSocketRemoteServiceBuilder<T> builder = new RSocketRemoteServiceBuilder<T>();<NEW_LINE>builder.serviceInterface = serviceInterface;<NEW_LINE>builder.service = serviceInterface.getCanonicalName();<NEW_LINE>ServiceMapping servi...
valueOfType(serviceMapping.paramEncoding());
71,913
public ImageData filter(Effect effect, RenderState rstate, BaseTransform transform, Rectangle outputClip, ImageData... inputs) {<NEW_LINE>FilterContext fctx = getFilterContext();<NEW_LINE>Reflection reflect = (Reflection) effect;<NEW_LINE>Rectangle inputbounds = inputs[0].getUntransformedBounds();<NEW_LINE>int srcW = i...
[0].getTransform());
150,128
public void applyToIndex(Index index) {<NEW_LINE>if (prefix.isPresent()) {<NEW_LINE>index.setPrefix(prefix.get());<NEW_LINE>}<NEW_LINE>for (String alias : aliases) {<NEW_LINE>index.addAlias(alias);<NEW_LINE>}<NEW_LINE>if (stemming.isPresent()) {<NEW_LINE>index.setStemming(Stemming.get(stemming.get()));<NEW_LINE>}<NEW_L...
setType(type.get());
1,559,532
public static void resolve(JimpleBody stmtBody, Scene scene) {<NEW_LINE>if (DEBUG) {<NEW_LINE>logger.debug("" + stmtBody.getMethod());<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>TypeResolverBV resolver = new TypeResolverBV(stmtBody, scene);<NEW_LINE>resolver.resolve_step_1();<NEW_LINE>} catch (TypeException e1) {<NEW_LINE>if (...
PrintWriter pw = new PrintWriter(st);
1,424,426
private Vector<Vector<Object>> queryProduct(boolean isInvoicePrice) {<NEW_LINE>String sql;<NEW_LINE>if (isInvoicePrice) {<NEW_LINE>// for Invoice Price<NEW_LINE>// 1,2,3,4<NEW_LINE>sql = // 5,6<NEW_LINE>"SELECT p.Name,l.PriceActual,l.PriceList,l.QtyInvoiced," + // 7<NEW_LINE>"i.DateInvoiced,dt.PrintName || ' ' || i.Doc...
+ " INNER JOIN AD_Org o ON (i.AD_Org_ID=o.AD_Org_ID)" + " INNER JOIN M_Product p ON (l.M_Product_ID=p.M_Product_ID) " + "WHERE i.C_BPartner_ID=? " + "ORDER BY i.DateInvoiced DESC";
1,467,962
public void addFormForEditAccount() {<NEW_LINE>gridRowFrom = gridRow;<NEW_LINE>addAccountNameTextFieldWithAutoFillToggleButton();<NEW_LINE>addCompactTopLabelTextField(gridPane, ++gridRow, Res.get("shared.paymentMethod"), Res.get(sepaAccount.getPaymentMethod().getId()));<NEW_LINE>addCompactTopLabelTextField(gridPane, ++...
), CountryUtil.getAllSepaNonEuroCountries());
1,424,925
final CreateDomainResult executeCreateDomain(CreateDomainRequest createDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExec...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "CreateDomain");
780,741
private Object transformValue(final Object field) {<NEW_LINE>if (fromPigAvroStorage && field instanceof GenericArray) {<NEW_LINE>return Lists.transform((List) field, item -> String.valueOf(((GenericRecord) item).get(0)));<NEW_LINE>}<NEW_LINE>if (field instanceof ByteBuffer) {<NEW_LINE>if (binaryAsString) {<NEW_LINE>ret...
ByteBuffer) field).array();
1,095,684
protected boolean stopWindowsProcessWMClosed(@Nonnull ProcessInfo processInfo) {<NEW_LINE>if (LOGGER.isTraceEnabled()) {<NEW_LINE>LOGGER.trace("Attempting to stop timed out process \"{}\" ({}) with WM_CLOSE", processInfo.getName(), processInfo.getPID());<NEW_LINE>}<NEW_LINE>HANDLE hProc = Kernel32.INSTANCE.OpenProcess(...
), processInfo.getPID());
1,631,744
String buildClientCredentialsBody(ClientCredentialsExchangeRequest req) {<NEW_LINE>Map<String, String> bodyMap = new TreeMap<>();<NEW_LINE>bodyMap.put("grant_type", "client_credentials");<NEW_LINE>bodyMap.put("client_id", req.getClientId());<NEW_LINE>bodyMap.put("client_secret", req.getClientSecret());<NEW_LINE>// Only...
(Collectors.joining("&"));
682,653
ActionResult<Wo> execute(String applicationId, String unit, String person) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<DateRange> ...
wo.put(str, list);
1,225,039
private void restorePosition(Video item) {<NEW_LINE>State state = mStateService.getByVideoId(item.videoId);<NEW_LINE>// Ignore up to 10% watched because the video might be opened on phone and closed immediately.<NEW_LINE>boolean containsWebPosition = item.percentWatched >= RESTORE_POSITION_PERCENTS;<NEW_LINE>boolean st...
.getLengthMs() - state.positionMs;
563,654
final ListServiceProfilesResult executeListServiceProfiles(ListServiceProfilesRequest listServiceProfilesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listServiceProfilesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,032,403
private void shiftHashLookupEntries() {<NEW_LINE>VanillaChronicleHash<?, ?, ?, ?> h = mh.h();<NEW_LINE>CompactOffHeapLinearHashTable hl = h.hashLookup;<NEW_LINE>long hlAddr = s.tierBaseAddr;<NEW_LINE>long hlPos = 0;<NEW_LINE>long steps = 0;<NEW_LINE>do {<NEW_LINE>long hlEntry = hl.readEntry(hlAddr, hlPos);<NEW_LINE>if ...
hlPos = hl.step(hlPos);
610,797
public static void main(String[] args) {<NEW_LINE>System.setProperty("az.factory.internat.bundle", "com.biglybt.ui.none.internat.MessagesBundle");<NEW_LINE>COConfigurationManager.initialise();<NEW_LINE>if (System.getProperty(SystemProperties.SYSPROP_LOW_RESOURCE_MODE, "false").equals("true")) {<NEW_LINE>System.out.prin...
println("Download directory set to '" + dir + "'");
682,528
public void run(RegressionEnvironment env) {<NEW_LINE>String field = "c0";<NEW_LINE>SupportEvalBuilder builder = new SupportEvalBuilder("SupportBean_ST0_Container");<NEW_LINE>builder.expression(field, "contained.selectFrom(x => new {c0 = id||'x', c1 = key0||'y'})");<NEW_LINE>builder.statementConsumer(stmt -> assertType...
{ "E4x", "0y" } }));
1,310,161
protected SQLException closeWrapper(boolean closeWrapperOnly) {<NEW_LINE>// Indicate the statement is closed by setting the parent object's statement to null.<NEW_LINE>// This will allow us to be garbage collected.<NEW_LINE>try // Connection wrapper can close at any time.<NEW_LINE>{<NEW_LINE>parentWrapper.childWrappers...
WSJdbcUtil.mapException(this, closeX);
82,349
public void visitProgramClass(ProgramClass programClass) {<NEW_LINE>// Rename template class to specific type adapter class name.<NEW_LINE>programClass<MASK><NEW_LINE>programClass.methodsAccept(new AllAttributeVisitor(new AllAttributeVisitor(new LocalVariableTypeRenamer())));<NEW_LINE>boolean isEnumAdapter = (objectPro...
.thisClassConstantAccept(new TypeAdapterRenamer());
992,135
public StreamingHttpRequest apply(final boolean relative, final StreamingHttpRequest previousRequest, final StreamingHttpResponse redirectResponse, final StreamingHttpRequest redirectRequest) {<NEW_LINE>// https://tools.ietf.org/html/rfc7231#section-6.4.2<NEW_LINE>// https://tools.ietf.org/html/rfc7231#section-6.4.3<NE...
.status().code();
1,842,436
private Object transform(final XMLDOMNode source) {<NEW_LINE>try {<NEW_LINE>Source xmlSource = new DOMSource(source.getDomNodeOrDie());<NEW_LINE>final Source xsltSource = new <MASK><NEW_LINE>final DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();<NEW_LINE>final org.w3c.dom.Document containerDocumen...
DOMSource(style_.getDomNodeOrDie());
1,363,119
public TypeScanner scanDependencies(String... artifactNames) {<NEW_LINE>TypeScanner scanner = new TypeScanner(this).files(file -> {<NEW_LINE>boolean found = false;<NEW_LINE>String artifactNameFromFile = TypeScanner.<MASK><NEW_LINE>for (String artifactName : artifactNames) {<NEW_LINE>if (artifactName.endsWith("*")) {<NE...
extractArtifactNameFromFile(file).toLowerCase();
1,466,782
public ThreadPoolBulkheadConfig buildThreadPoolBulkheadConfig(ThreadPoolBulkheadConfig.Builder builder, InstanceProperties properties, CompositeCustomizer<ThreadPoolBulkheadConfigCustomizer> compositeThreadPoolBulkheadCustomizer, String instanceName) {<NEW_LINE>if (properties == null) {<NEW_LINE>return ThreadPoolBulkhe...
writableStackTraceEnabled(properties.getWritableStackTraceEnabled());
644,968
public static void sendSupportInfo(final String text, final ActivityBase context) {<NEW_LINE>Util.log(null, Log.WARN, text);<NEW_LINE>if (Util.hasValidFingerPrint(context) && !"Genymotion".equals(Build.MANUFACTURER)) {<NEW_LINE>AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(context);<NEW_LINE>alertDia...
setTitle(R.string.app_name);
971,448
public ListTagsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListTagsResult listTagsResult = new ListTagsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
JsonToken token = context.getCurrentToken();
286,068
PollerFlux<RenderingSession, RenderingSession> beginSessionInternal(String sessionId, BeginSessionOptions options, Context context) {<NEW_LINE>Objects.requireNonNull(sessionId, "'sessionId' cannot be null.");<NEW_LINE>Objects.requireNonNull(options, "'options' cannot be null.");<NEW_LINE>Objects.requireNonNull(context,...
(r.getValue()));
1,722,924
// snapshot<NEW_LINE>public static WritableMap dataSnapshotToMap(String name, String path, DataSnapshot dataSnapshot) {<NEW_LINE>WritableMap data = Arguments.createMap();<NEW_LINE>data.putString("key", dataSnapshot.getKey());<NEW_LINE>data.putBoolean("exists", dataSnapshot.exists());<NEW_LINE>data.putBoolean("hasChildr...
"priority", priority.toString());
1,631,165
public Document createMapping(Class<?> clazz) {<NEW_LINE>Assert.notNull(clazz, "clazz must not be null");<NEW_LINE>// load mapping specified in Mapping annotation if present<NEW_LINE>// noinspection DuplicatedCode<NEW_LINE>Mapping mappingAnnotation = AnnotatedElementUtils.<MASK><NEW_LINE>if (mappingAnnotation != null) ...
findMergedAnnotation(clazz, Mapping.class);
1,673,604
public CompletableFuture<ResultSet> deleteDeadLeaves(String keyspaceName, String tableName, String key, long microsTimestamp, Map<String, Set<DeadLeaf>> deadLeaves, ExecutionContext context) {<NEW_LINE>List<BoundQuery> <MASK><NEW_LINE>for (Map.Entry<String, Set<DeadLeaf>> entry : deadLeaves.entrySet()) {<NEW_LINE>Strin...
queries = new ArrayList<>();
781,822
public static int[] calculateRefWindowsByGc(final int windows, final File referenceSequence, final int windowSize) {<NEW_LINE>final ReferenceSequenceFile refFile = ReferenceSequenceFileFactory.getReferenceSequenceFile(referenceSequence);<NEW_LINE>ReferenceSequence ref;<NEW_LINE>final int[] windowsByGc = new int[windows...
GcBiasUtils().new CalculateGcState();
894,563
public void onRequest(MetaData.Request request) {<NEW_LINE>_requests.incrementAndGet();<NEW_LINE>_request.setTimeStamp(System.currentTimeMillis());<NEW_LINE>HttpFields.Mutable fields = _response.getHttpFields();<NEW_LINE>if (_configuration.getSendDateHeader() && !fields.contains(HttpHeader.DATE))<NEW_LINE>fields.put(_c...
getServer().getDateField());
1,422,911
private void createPatch() {<NEW_LINE>try {<NEW_LINE>if (!myModel.canPerformCreatePatch()) {<NEW_LINE>showError(message("message.cannot.create.patch.because.of.unavailable.content"));<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>CreatePatchConfigurationPanel p = new CreatePatchConfigurationPanel(myProject);<NEW_LINE>p.setFileN...
(myModel.getChanges()));
840,968
protected Crypto loadCryptoFromPropertiesFile(String propFilename, RequestData reqData) throws WSSecurityException {<NEW_LINE>ClassLoaderHolder orig = null;<NEW_LINE>try {<NEW_LINE>try {<NEW_LINE>URL url = ClassLoaderUtils.getResource(propFilename, this.getClass());<NEW_LINE>if (url == null) {<NEW_LINE>ResourceManager ...
orig = ClassLoaderUtils.setThreadContextClassloader(loader);
1,377,282
final GetRequestedServiceQuotaChangeResult executeGetRequestedServiceQuotaChange(GetRequestedServiceQuotaChangeRequest getRequestedServiceQuotaChangeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRequestedServiceQuotaChangeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
(super.beforeMarshalling(getRequestedServiceQuotaChangeRequest));
1,196,691
final CreateSlotResult executeCreateSlot(CreateSlotRequest createSlotRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSlotRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
27,880
public void serialize(SpanData spanData, JsonGenerator jsonGenerator, SerializerProvider serializerProvider) throws IOException {<NEW_LINE>jsonGenerator.writeStartObject();<NEW_LINE>jsonGenerator.writeStringField("spanId", spanData.getSpanId());<NEW_LINE>jsonGenerator.writeStringField("traceId", spanData.getTraceId());...
"ended", spanData.hasEnded());
1,683,139
final DeleteEventDestinationResult executeDeleteEventDestination(DeleteEventDestinationRequest deleteEventDestinationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteEventDestinationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,109,575
public com.amazonaws.services.dax.model.SubnetGroupQuotaExceededException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.dax.model.SubnetGroupQuotaExceededException subnetGroupQuotaExceededException = new com.amazonaws.services.dax.model.SubnetGroupQuotaExceede...
int originalDepth = context.getCurrentDepth();
420,173
public void marshall(GatewayRouteRef gatewayRouteRef, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (gatewayRouteRef == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(gatewayRouteRef.getArn(), ARN_BINDING);...
e.getMessage(), e);
36,408
public void paint(Graphics2D g, double xStart, double xEnd, double y) {<NEW_LINE>Shape clip = g.getClip();<NEW_LINE>final Rectangle2D rectangle = new Rectangle2D.Double(xStart, y - 3, xEnd - xStart, 3);<NEW_LINE>final Rectangle2D waveClip = clip != null ? clip.getBounds2D().createIntersection(rectangle) : rectangle;<NE...
(Graphics2D) g.create();
499,276
public ParcelFileDescriptor openFileDescriptor(@NonNull String mode, @NonNull HandlerThread callbackThread) throws FileNotFoundException {<NEW_LINE>if (mDocumentFile instanceof ProxyDocumentFile) {<NEW_LINE>File file = Objects.requireNonNull(getFile());<NEW_LINE>int modeBits = ParcelFileDescriptor.parseMode(mode);<NEW_...
()).initCause(e);
1,482,970
public void write(OutputStream outputStream) throws IOException {<NEW_LINE>if (canEncode()) {<NEW_LINE>DeflaterOutputStream encoderOutputStream = null;<NEW_LINE>if (this.encoding.equals(Encoding.GZIP)) {<NEW_LINE>encoderOutputStream = new GZIPOutputStream(outputStream);<NEW_LINE>} else if (this.encoding.equals(Encoding...
putNextEntry(new ZipEntry(name));
853,424
public void marshall(MountTargetDescription mountTargetDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (mountTargetDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(mountTargetDescrip...
mountTargetDescription.getAvailabilityZoneId(), AVAILABILITYZONEID_BINDING);
482,150
public Response decodeResponse(Object in, ChannelHandlerContext ctx) throws Exception {<NEW_LINE>PublicPbRpcPacket packet = (PublicPbRpcPacket) in;<NEW_LINE>RpcResponse rpcResponse = new RpcResponse();<NEW_LINE>ChannelInfo channelInfo = ChannelInfo.getClientChannelInfo(ctx.channel());<NEW_LINE>ByteBuf bodyBuf = packet....
), future.getRpcMethodInfo());
1,561,764
int injectFile(AnActionEvent event) {<NEW_LINE>try {<NEW_LINE>if (!new File(bundlePath).exists())<NEW_LINE>return alert("Please download InjectionIII from the Mac App Store.");<NEW_LINE>if (clientOutput == null)<NEW_LINE>return alert("Application not running/connected.");<NEW_LINE>Project project = event.getData(Platfo...
VirtualFile proj = project.getBaseDir();
1,665,511
public void initialize() {<NEW_LINE>this.viewModel <MASK><NEW_LINE>protect.disableProperty().bind(viewModel.protectDisableProperty());<NEW_LINE>protect.selectedProperty().bindBidirectional(viewModel.libraryProtectedProperty());<NEW_LINE>saveOrderConfigPanel.saveInOriginalProperty().bindBidirectional(viewModel.saveInOri...
= new SavingPropertiesViewModel(databaseContext, preferencesService);
284,037
public static void removeServiceFromDD(Project prj, JaxWsService service) throws IOException {<NEW_LINE>WebApp webApp = getWebApp(prj);<NEW_LINE>if (webApp != null) {<NEW_LINE>boolean changed = removeServiceFromDD(webApp, service.getServiceName());<NEW_LINE>// determine if there are other web services in the project<NE...
] remainingServlets = webApp.getServlet();
993,158
protected CommandExecutionResult executeNow(AbstractEntityDiagram diagram, BlocLines lines) throws NoSuchColorException {<NEW_LINE>lines = lines.trim();<NEW_LINE>final RegexResult line0 = getStartingPattern().matcher(lines.getFirst().getTrimmed().getString());<NEW_LINE>final String codeRaw = line0.getLazzy("CODE", 0);<...
ident : diagram.buildCode(idShort);
892,880
public Prediction<Event> predict(Example<Event> example) {<NEW_LINE>svm_node[] features = LibSVMTrainer.exampleToNodes(example, featureIDMap, null);<NEW_LINE>// Bias feature is always set by the library.<NEW_LINE>if (features.length == 0) {<NEW_LINE>throw new IllegalArgumentException("No features found in Example " + e...
(0), features, score);
985,402
public Result.ResultMetadata decode(ByteBuf body, ProtocolVersion version) {<NEW_LINE>// flags & column count<NEW_LINE>int iflags = body.readInt();<NEW_LINE>int columnCount = body.readInt();<NEW_LINE>EnumSet<Result.Flag> flags = Result.Flag.deserialize(iflags);<NEW_LINE>MD5Digest resultMetadataId = null;<NEW_LINE>if (f...
globalCfName = CBUtil.readString(body);
606,307
public TileRead read() {<NEW_LINE>if (mapkey == null)<NEW_LINE>return null;<NEW_LINE>TileRead rslt = null;<NEW_LINE>Connection c = null;<NEW_LINE>boolean err = false;<NEW_LINE>try {<NEW_LINE>c = getConnection();<NEW_LINE>Statement stmt = c.createStatement();<NEW_LINE>// ResultSet rs = stmt.executeQuery("SELECT HashCode...
= new BufferInputStream(img, len);
679,134
private static void writeIgnoreEntries(File directory, Set entries) throws IOException {<NEW_LINE>File hgIgnore = new File(directory, FILENAME_HGIGNORE);<NEW_LINE>FileObject fo = FileUtil.toFileObject(hgIgnore);<NEW_LINE>if (entries.isEmpty()) {<NEW_LINE>if (fo != null)<NEW_LINE>fo.delete();<NEW_LINE>resetIgnorePattern...
(fo.getOutputStream(lock));
1,025,120
public void log(Level level, String prefix, boolean alphabetize) {<NEW_LINE>if (!LOG.isLoggable(level)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (this.map == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// alphabetize keys<NEW_LINE>TreeSet<String> keys = new TreeSet<String>(this.map.keySet());<NEW_LINE>// leave one ch...
length = maxLength(keys) + 2;
1,442,002
public static void main(String[] args) throws Exception {<NEW_LINE>// Process the command-line options<NEW_LINE>CommandOption.setSummary(WordEmbeddings.class, "Train continuous word embeddings using the skip-gram method with negative sampling.");<NEW_LINE>CommandOption.<MASK><NEW_LINE>InstanceList instances = InstanceL...
process(WordEmbeddings.class, args);
680,185
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "TagResource");
1,113,616
public void restoreXml(XmlPullParser parser, SleighLanguage language) throws XmlParseException {<NEW_LINE>ArrayList<InjectParameter> inlist = new ArrayList<>();<NEW_LINE>ArrayList<InjectParameter> outlist = new ArrayList<>();<NEW_LINE>// The <pcode> tag<NEW_LINE>XmlElement el = parser.start();<NEW_LINE>String injectstr...
throw new XmlParseException("Unknown \"inject\" attribute value: " + injectstr);
292,755
public JarContent addJarContent(String jarPath, AnalysisType analysisType) {<NEW_LINE>// Make sure classpath is scraped first, so we'll overwrite it.<NEW_LINE>getClassPathClasses();<NEW_LINE>File file = new File(jarPath);<NEW_LINE>if (!file.exists()) {<NEW_LINE>throw new ConfusedCFRException("No such jar file " + jarPa...
= new JarSourceEntry(analysisType, jarPath);
1,653,673
private void loadNode8() throws IOException, SAXException {<NEW_LINE>DataTypeDescriptionTypeNode node = new DataTypeDescriptionTypeNode(this.context, Identifiers.OpcUa_BinarySchema_ModelChangeStructureDataType, new QualifiedName(0, "ModelChangeStructureDataType"), new LocalizedText("en", "ModelChangeStructureDataType")...
DataValue(new Variant(o));
465,258
public boolean migrateLegacyCredsToNonLegacy(boolean useDecodableOnly) {<NEW_LINE><MASK><NEW_LINE>String nonDecodableEncoder = useDecodableOnly ? decodableEncoder : settingsService.getNonDecodablePasswordEncoder();<NEW_LINE>List<UserCredential> failures = new ArrayList<>();<NEW_LINE>userDao.getCredentialsByEncoder("leg...
String decodableEncoder = settingsService.getDecodablePasswordEncoder();
1,596,834
protected JsonParserResult parseSource(SanitizingParser.Context ctx, JsErrorManager errorManager) throws Exception {<NEW_LINE>final Snapshot snapshot = ctx.getSnapshot();<NEW_LINE>final String text = ctx.getSource();<NEW_LINE>final FileObject fo = snapshot.getSource().getFileObject();<NEW_LINE>final boolean allowCommen...
.propertyChange(this, opts));
548,038
protected void analyzeDependency(Dependency dependency, Engine engine) throws AnalysisException {<NEW_LINE>final File parentFile = dependency.getActualFile().getParentFile();<NEW_LINE>final List<String> mixAuditArgs = Arrays.asList("--format", "json");<NEW_LINE>final Process process = launchMixAudit(parentFile, mixAudi...
String.format("Unexpected exit code from mix_audit process; exit code: %s", exitValue);