idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,084,659
protected void cleanOutBifurcatedMessages(BifurcatedConsumerSessionImpl owner, boolean bumpRedeliveryOnClose) throws SIResourceException, SISessionDroppedException {<NEW_LINE>if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled())<NEW_LINE>SibTr.entry(tc, "cleanOutBifurcatedMessages", new Object[] { new Intege...
SibTr.exception(tc, e);
76,179
private void secureLogin(JoinRequest joinRequest, Connection connection) {<NEW_LINE>if (node.securityContext != null) {<NEW_LINE><MASK><NEW_LINE>if (credentials == null) {<NEW_LINE>throw new SecurityException("Expecting security credentials, but credentials could not be found in join request");<NEW_LINE>}<NEW_LINE>Stri...
Credentials credentials = joinRequest.getCredentials();
1,558,255
public com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.ApplicationNameRequiredException applicationNameRequiredException = new com.amazonaws.services.codedeploy.model.Appli...
int originalDepth = context.getCurrentDepth();
188,681
public boolean canPublish(MqttConnection connection, Topic topic) {<NEW_LINE>AuthContext authContext = connection.getAuthContext();<NEW_LINE>if (!isKeycloak) {<NEW_LINE>LOG.fine("Identity provider is not keycloak");<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (authContext == null) {<NEW_LINE>LOG.fine(<MASK><NEW_LINE>...
"Anonymous publish not supported: topic=" + topic + ", connection=" + connection);
38,135
private // ==================================================================================================<NEW_LINE>SearchLocation findNextTokenGoingForward(java.util.function.Function<String, SearchMatch> matcher, String searchString, FieldLocation currentLocation) {<NEW_LINE>int row = currentLocation.getIndex().in...
String fullLine = field.getText();
717,929
private static BundleEntryComponent report(RandomNumberGenerator rand, BundleEntryComponent personEntry, Bundle bundle, BundleEntryComponent encounterEntry, Report report) {<NEW_LINE>DiagnosticReport reportResource = new DiagnosticReport();<NEW_LINE>reportResource.setStatus(DiagnosticReportStatus.FINAL);<NEW_LINE>repor...
newEntry(rand, bundle, reportResource);
538,438
final ListDeliveryStreamsResult executeListDeliveryStreams(ListDeliveryStreamsRequest listDeliveryStreamsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listDeliveryStreamsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
773,488
public void SendBytes(YailList list) {<NEW_LINE>String functionName = "SendBytes";<NEW_LINE>Object[] array = list.toArray();<NEW_LINE>byte[] bytes = new byte[array.length];<NEW_LINE>for (int i = 0; i < array.length; i++) {<NEW_LINE>// We use Object.toString here because the element might be a String or it might be some...
String s = element.toString();
1,444,356
public static void main(String... args) {<NEW_LINE>String SHAPES = "examples/schema.shex";<NEW_LINE>String SHAPES_MAP = "examples/shape-map.shexmap";<NEW_LINE>String DATA = "examples/data.ttl";<NEW_LINE>System.out.println("Read data");<NEW_LINE>Graph dataGraph = RDFDataMgr.loadGraph(DATA);<NEW_LINE>System.out.println("...
System.out.println("Read shapes map");
1,459,366
private void paintFinHandles(final Graphics2D g2) {<NEW_LINE>// excludes fin tab points<NEW_LINE>final Coordinate[] drawPoints = finset.getFinPoints();<NEW_LINE>// Fin point boxes<NEW_LINE>final float boxWidth = (float) (BOX_WIDTH_PIXELS / scale);<NEW_LINE>final float boxHalfWidth = boxWidth / 2;<NEW_LINE>final float b...
y - boxHalfWidth, boxWidth, boxWidth);
846,153
// ----- private methods -----<NEW_LINE>private static GraphObjectMap relationPropertyToMap(final ConfigurationProvider config, final RelationProperty relationProperty) {<NEW_LINE>final GraphObjectMap map = new GraphObjectMap();<NEW_LINE>final Relation relation = relationProperty.getRelation();<NEW_LINE>map.put(SchemaR...
map.put(allTargetTypesPossibleProperty, false);
903,846
public static ListFirewallRulesResponse unmarshall(ListFirewallRulesResponse listFirewallRulesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listFirewallRulesResponse.setRequestId(_ctx.stringValue("ListFirewallRulesResponse.RequestId"));<NEW_LINE>listFirewallRulesResponse.setPageNumber(_ctx.integerValue("ListFirewallRu...
= new ArrayList<FirewallRule>();
994,093
public com.amazonaws.services.elastictranscoder.model.ResourceInUseException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.elastictranscoder.model.ResourceInUseException resourceInUseException = new com.amazonaws.services.elastictranscoder.model.ResourceInUseE...
int originalDepth = context.getCurrentDepth();
469,324
public Map<String, String> rebalance(Set<String> hosts, Map<String, Long> scores) {<NEW_LINE>// we sort them so this process is predictable<NEW_LINE>hosts = new TreeSet<>(hosts);<NEW_LINE>scores = new TreeMap<>(scores);<NEW_LINE>Map<String, String> balancedAssignments = new HashMap<>();<NEW_LINE>List<ServerAssignment> ...
add(new ServerAssignment(host));
537,910
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>FilterPermanent filter = new FilterArtifactOrEnchantmentPermanent("artifact or enchantment not controlled by " + controll...
controller.getId())));
1,022,938
public void subscribe(final FlowableEmitter<E> emitter) {<NEW_LINE>// If the Realm has been closed, just create an empty Observable because we assume it is going to be disposed shortly.<NEW_LINE>if (realm.isClosed())<NEW_LINE>return;<NEW_LINE>// Gets instance to make sure that the Realm is open for as long as the<NEW_L...
get().acquireReference(object);
1,394,534
public boolean visit(SQLExprTableSource x) {<NEW_LINE>SqlNode table;<NEW_LINE>SQLExpr expr = x.getExpr();<NEW_LINE>SqlNodeList sqlNodes = convertHints((List) x.getHints(), x.computeAlias());<NEW_LINE>if (expr instanceof SQLIdentifierExpr) {<NEW_LINE>table = new SqlTableRef(SqlParserPos.ZERO, (SqlIdentifier) buildIdenti...
throw new MycatException("not support : " + expr);
445,781
public void testSecurityContextParamResource() throws Exception {<NEW_LINE>String uri = getSecurityContextTestUri() + "/param";<NEW_LINE>Response response = null;<NEW_LINE>Client client = ClientBuilder.newClient();<NEW_LINE>WebTarget t = client.target(uri);<NEW_LINE>response = t.request(MediaType.APPLICATION_XML).get()...
false, secContextInfo.isUserInRoleUser());
1,049,769
private void handleCExtensionException(String feature, Exception e) {<NEW_LINE>TranslateExceptionNode.logJavaException(getContext(), this, e);<NEW_LINE>final Throwable linkErrorException = searchForException("NFIUnsatisfiedLinkError", e);<NEW_LINE>if (linkErrorException != null) {<NEW_LINE>final String linkError = link...
home + "/" : "") + "lib/truffle/post_install_hook.sh";
1,375,717
private <T extends AlbumID3> T createJaxbAlbum(T jaxbAlbum, Album album, String username) {<NEW_LINE>jaxbAlbum.setId(String.valueOf(album.getId()));<NEW_LINE>jaxbAlbum.<MASK><NEW_LINE>if (album.getArtist() != null) {<NEW_LINE>jaxbAlbum.setArtist(album.getArtist());<NEW_LINE>org.airsonic.player.domain.Artist artist = ar...
setName(album.getName());
1,562,335
public String savePaymentInfo(HttpServletRequest request, HttpServletResponse response, Model model, PaymentInfoForm paymentForm, BindingResult result) throws PricingException, ServiceException {<NEW_LINE>Order cart = CartState.getCart();<NEW_LINE>Customer customer = CustomerState.getCustomer();<NEW_LINE>preProcessBill...
savedPaymentService.addSavedPayment(customer, paymentForm);
1,386,720
public Object resolveArgument(MethodParameter parameter, Message<?> message) {<NEW_LINE><MASK><NEW_LINE>Assert.state(payload instanceof Collection, "This Argument Resolver support only messages with payload as Collection<Message<?>>");<NEW_LINE>Collection<Message<?>> messages = (Collection<Message<?>>) payload;<NEW_LIN...
Object payload = message.getPayload();
856,582
public static String dottedClassName(String typeDescriptor) {<NEW_LINE>if (!isByteCodeClassName(typeDescriptor)) {<NEW_LINE>// typeDescriptor may not be a class but something like "[[[[[[[[J"<NEW_LINE>String t = typeDescriptor;<NEW_LINE>int idx = 0;<NEW_LINE>while (idx < t.length() && t.charAt(idx) == '[') {<NEW_LINE>i...
className = typeDescriptor.substring(idx);
1,410,810
private synchronized void populate() {<NEW_LINE>if (completed) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>List<DeleteObject> objectList = new LinkedList<>();<NEW_LINE>while (objectIter.hasNext() && objectList.size() < 1000) {<NEW_LINE>objectList.add(objectIter.next());<NEW_LINE>}<NEW_LINE>completed = objectL...
), args.extraQueryParams());
1,111,282
public byte[] toByteArray() {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "toByteArray");<NEW_LINE>// Just in case you're wondering, if two threads race to create the<NEW_LINE>// cached arrays, we may end up with two identical arrays, one of which<NEW_LINE>// is cached, while the other thread uses the secon...
& 0x00FF000000000000L) >>> 48);
483,009
private Builder initializeAsRestore(IndexMetaData indexMetaData, SnapshotRecoverySource recoverySource, IntSet ignoreShards, boolean asNew, UnassignedInfo unassignedInfo) {<NEW_LINE>assert indexMetaData.getIndex().equals(index);<NEW_LINE>if (!shards.isEmpty()) {<NEW_LINE>throw new IllegalStateException("trying to initi...
= new IndexShardRoutingTable.Builder(shardId);
1,321,097
/*<NEW_LINE>static public void addTools(JMenu menu, List<Tool> tools) {<NEW_LINE>Map<String, JMenuItem> toolItems = new HashMap<String, JMenuItem>();<NEW_LINE><NEW_LINE>for (final Tool tool : tools) {<NEW_LINE>// If init() fails, the item won't be added to the menu<NEW_LINE>addToolItem(tool, toolItems);<NEW_LINE>}<NEW_...
>(toolItems.keySet());
795,307
public static HippyArray fromArray(Object array) {<NEW_LINE>HippyArray catalystArray = new HippyArray();<NEW_LINE>int length;<NEW_LINE>int index;<NEW_LINE>if (array instanceof String[]) {<NEW_LINE>String[] strs = (String[]) array;<NEW_LINE>length = strs.length;<NEW_LINE>for (index = 0; index < length; ++index) {<NEW_LI...
"Unknown array type " + array.getClass());
794,658
public void printData() {<NEW_LINE>System.out.println("version:\t" + version);<NEW_LINE>System.out.println("presentation:\t" + presentation);<NEW_LINE>System.out.println("machine:\t" + machine);<NEW_LINE>System.<MASK><NEW_LINE>System.out.println("tstart:\t\t" + tstart);<NEW_LINE>System.out.println("tstop:\t\t" + tstop)...
out.println("port:\t\t" + port);
1,020,390
public LdcInsnAST visit(int lineNo, String line) throws ASTParseException {<NEW_LINE>try {<NEW_LINE>String trim = line.trim();<NEW_LINE>int ti = line.indexOf(trim);<NEW_LINE>int space = line.indexOf(' ');<NEW_LINE>String opS = trim.substring(0, space);<NEW_LINE>// op<NEW_LINE>OpcodeParser opParser = new OpcodeParser();...
parser.visit(lineNo, content);
1,613,478
public Stream<V> read(QueryParameters<M> queryParameters) {<NEW_LINE>DefaultModelCriteria<M> mcb = queryParameters.getModelCriteriaBuilder();<NEW_LINE>MapModelCriteriaBuilder<K, V, M> mapMcb = mcb.flashToModelCriteriaBuilder(createCriteriaBuilder());<NEW_LINE>Predicate<? super V> filterOutAllBulkDeletedObjects = tasks....
).orElse(v -> true);
1,442,537
int utf8Variable(AbstractTruffleString a, Object arrayA, int codeRangeA, int codepoint, int fromIndex, int toIndex, @Cached @Shared("lastIndexOfNode") TStringOpsNodes.RawLastIndexOfCodePointNode lastIndexOfNode) {<NEW_LINE>int encodedSize = Encodings.utf8EncodedSize(codepoint);<NEW_LINE>if (encodedSize > fromIndex - to...
1, TSCodeRange.getValidMultiByte());
1,419,264
/*<NEW_LINE>* Called by Declarative Services to activate service<NEW_LINE>*/<NEW_LINE>@Activate<NEW_LINE>protected void activate(ComponentContext cc) throws Exception {<NEW_LINE>RuntimeDelegate.setInstance(new RuntimeDelegateImpl());<NEW_LINE>// This is a workaroud to avoid invoking createWoodstoxFactory in org.apache....
Thread.currentThread(), orignalClassLoader);
1,052,468
public static ProjectOp valueOf(LogRecord rec) {<NEW_LINE>if ("UI_CLOSED_PROJECTS".equals(rec.getMessage())) {<NEW_LINE>// NOI18N<NEW_LINE>String type = getStringParam(rec, 0, "unknown");<NEW_LINE>// NOI18N<NEW_LINE>String name = getStringParam(rec, 1, "unknown");<NEW_LINE>int cnt;<NEW_LINE>try {<NEW_LINE>cnt = Integer...
(rec, 2, "0"));
882,671
protected void deployResourcesInternal(String deploymentNameHint, Resource[] resources, EventRegistryEngine engine) {<NEW_LINE>EventRepositoryService repositoryService = engine.getEventRepositoryService();<NEW_LINE>// Create a single deployment for all resources using the name hint as the literal name<NEW_LINE>final Ev...
enableDuplicateFiltering().name(deploymentNameHint);
462,867
protected Object peekAtInfo(IJavaElement element) {<NEW_LINE>switch(element.getElementType()) {<NEW_LINE>case IJavaElement.JAVA_MODEL:<NEW_LINE>return this.modelInfo;<NEW_LINE>case IJavaElement.JAVA_PROJECT:<NEW_LINE>return this.projectCache.get(element);<NEW_LINE>case IJavaElement.PACKAGE_FRAGMENT_ROOT:<NEW_LINE>retur...
this.childrenCache.get(element);
1,659,083
public void update(AnActionEvent e) {<NEW_LINE>Presentation presentation = e.getPresentation();<NEW_LINE>if (!Registry.is("vcs.log.graph.history")) {<NEW_LINE>presentation.setEnabledAndVisible(false);<NEW_LINE>} else {<NEW_LINE>VirtualFile file = e.getData(CommonDataKeys.VIRTUAL_FILE);<NEW_LINE>Project project = e.getP...
(project).getVcsRootFor(file);
226,396
public com.amazonaws.services.cognitosync.model.NotAuthorizedException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.cognitosync.model.NotAuthorizedException notAuthorizedException = new com.amazonaws.services.cognitosync.model.NotAuthorizedException(null);<NE...
String currentParentElement = context.getCurrentParentElement();
1,188,090
public void execute() {<NEW_LINE>try {<NEW_LINE>if (getValue("xmlfile") == null)<NEW_LINE>throw new InstantiationException("You need to choose an xml file");<NEW_LINE>if (getValue("pdffile") == null)<NEW_LINE>throw new InstantiationException("You need to choose a source PDF file");<NEW_LINE>PdfReader reader = new PdfRe...
println(e.getMessage());
929,061
public void start() {<NEW_LINE>serverGroup = new ServerGroup("Salamander", eventLoopConfig.acceptorCount(), eventLoopConfig.eventLoopCount(), eventLoopGroupMetrics);<NEW_LINE>serverGroup.initializeTransport();<NEW_LINE>try {<NEW_LINE>List<ChannelFuture> allBindFutures = new ArrayList<>(addressesToInitializers.size());<...
Channel chan = nettyServerFuture.channel();
232,456
protected void renderDatePicker(FormField formField, HtmlDocumentBuilder documentBuilder) {<NEW_LINE>boolean isReadOnly = isReadOnly(formField);<NEW_LINE>// start input-group<NEW_LINE>HtmlElementWriter inputGroupDivElement = new HtmlElementWriter(DIV_ELEMENT).attribute(CLASS_ATTRIBUTE, INPUT_GROUP_CLASS);<NEW_LINE>Stri...
).attribute(CLASS_ATTRIBUTE, CALENDAR_GLYPHICON);
1,098,525
final UpdateSizeConstraintSetResult executeUpdateSizeConstraintSet(UpdateSizeConstraintSetRequest updateSizeConstraintSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSizeConstraintSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
821,990
private Map<String, Object> retrieveAsnGeoData(InetAddress ipAddress) {<NEW_LINE>SpecialPermission.check();<NEW_LINE>AsnResponse response = AccessController.doPrivileged((PrivilegedAction<AsnResponse>) () -> cache.putIfAbsent(ipAddress, AsnResponse.class, ip -> {<NEW_LINE>try {<NEW_LINE>return lazyLoader.get().asn(ip);...
, NetworkAddress.format(ipAddress));
919,945
protected boolean updateDefaultColumn(String column, DefaultColumnAction action) throws Exception {<NEW_LINE>LOGGER.info("Starting default column action: {} on column: {}", action, column);<NEW_LINE>// For UPDATE and REMOVE action, delete existing dictionary and forward index, and remove column metadata<NEW_LINE>if (ac...
column + V1Constants.Dict.FILE_EXTENSION);
543,889
public static ListCorpGroupsResponse unmarshall(ListCorpGroupsResponse listCorpGroupsResponse, UnmarshallerContext _ctx) {<NEW_LINE>listCorpGroupsResponse.setRequestId(_ctx.stringValue("ListCorpGroupsResponse.RequestId"));<NEW_LINE>listCorpGroupsResponse.setMessage(_ctx.stringValue("ListCorpGroupsResponse.Message"));<N...
(_ctx.longValue("ListCorpGroupsResponse.Data.TotalCount"));
1,554,308
public okhttp3.Call commitCall(String repository, String branch, CommitCreation commitCreation, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = commitCreation;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/repositories/{repository}/branches/{branch}/com...
HashMap<String, String>();
882,844
public void run() {<NEW_LINE>try {<NEW_LINE>if (System.getProperty("soapui.enablenamedthreads") != null) {<NEW_LINE>Thread.currentThread().setName(testCase.getName() + " " + loadTest.getName() + " ThreadIndex = " + threadIndex);<NEW_LINE>}<NEW_LINE>runner = new WsdlTestCaseRunner(testCase, new StringToObjectMap());<NEW...
setProperty(TestCaseRunContext.THREAD_INDEX, threadIndex);
25,188
public static void main(String[] args) {<NEW_LINE>// build a sync client<NEW_LINE>WebPubSubServiceClient chatHub = new WebPubSubServiceClientBuilder().connectionString(CONNECTION_STRING).hub("chat").buildClient();<NEW_LINE>// send a text message to the entire hub<NEW_LINE>chatHub.sendToAll("{\"message\": \"Hello world!...
"admin", "Hi admins!", WebPubSubContentType.TEXT_PLAIN);
1,345,701
// GEN-LAST:event_methodDetailsButtonActionPerformed<NEW_LINE>private void propertyDetailsButtonActionPerformed(java.awt.event.ActionEvent evt) {<NEW_LINE>// GEN-FIRST:event_propertyDetailsButtonActionPerformed<NEW_LINE>PropertyPicker propertyPicker = new PropertyPicker(formModel, null, valueType);<NEW_LINE>propertyPic...
getDefault().createDialog(dd);
1,801,148
// if we match more than 1 citation based on name, then we leave only those citations that have author name first<NEW_LINE>private List<BibDataSet> postFilterMatches(String c, List<BibDataSet> matches) {<NEW_LINE>if (c.toLowerCase().contains("et al") || c.toLowerCase().contains(" and ")) {<NEW_LINE>String[] sp = c.trim...
).size() > 1);
700,682
private Individuum combineRecursive(IntArrayList r, int i, short[] current, Individuum parent1, Individuum parent2) {<NEW_LINE>if (i == r.size()) {<NEW_LINE>return makeIndividuum(current);<NEW_LINE>}<NEW_LINE>// Position to modify<NEW_LINE>int pos = r.getInt(i);<NEW_LINE>// Build genes<NEW_LINE>short[<MASK><NEW_LINE>//...
] gene1 = current.clone();
1,363,884
public CodeRepository unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CodeRepository codeRepository = new CodeRepository();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth +...
class).unmarshall(context));
185,940
protected Pair<List<LogicalProcessor>, List<PhysicalProcessor>> initProcessorCounts() {<NEW_LINE>if (VersionHelpers.IsWindows7OrGreater()) {<NEW_LINE>Pair<List<LogicalProcessor>, List<PhysicalProcessor>> procs = LogicalProcessorInformation.getLogicalProcessorInformationEx();<NEW_LINE>// Save numaNode,Processor lookup f...
numaNodeProcToLogicalProcMap = new HashMap<>();
1,279,476
private void recordOutlink(CrawlURI curi, URL newUri, Date lastModified, boolean isSitemap) {<NEW_LINE>try {<NEW_LINE>// Get the max outlinks (needed by add method):<NEW_LINE>//<NEW_LINE>// Because sitemaps are really important we excuse this extractor<NEW_LINE>// from the general setting:<NEW_LINE>//<NEW_LINE>// getEx...
" Dated " + lastModified + " and with isSitemap = " + isSitemap);
663,473
public ServiceResponse serviceImpl(Query query, HttpServletResponse response, Authorization authorization, JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>String key = query.get("macid", null);<NEW_LINE>String email = query.get("email", null);<NEW_LINE>if (authorization.getIdentity() != null) {<NEW_LI...
result.put("accepted", true);
1,743,166
public IoTJobAbortCriteria unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>IoTJobAbortCriteria ioTJobAbortCriteria = new IoTJobAbortCriteria();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context...
String currentParentElement = context.getCurrentParentElement();
776,191
public Node operate(final AtomicValue mOperand1, final AtomicValue mOperand2) throws SirixXPathException {<NEW_LINE>final Type returnType = getReturnType(mOperand1.getTypeKey(), mOperand2.getTypeKey());<NEW_LINE>final int typeKey = asXdmNodeReadTrx().keyForName(returnType.getStringRepr());<NEW_LINE>final byte[] value;<...
return new AtomicValue(value, typeKey);
106,608
public Object sqlToObject(String value, Database database) {<NEW_LINE>if (zeroTime(value)) {<NEW_LINE>return value;<NEW_LINE>}<NEW_LINE>if (database instanceof AbstractDb2Database) {<NEW_LINE>return value.replaceFirst("^\"SYSIBM\".\"TIMESTAMP\"\\('", "").replaceFirst("'\\)", "");<NEW_LINE>}<NEW_LINE>if (database instan...
value.replaceFirst("(\\.\\d{3})\\d+", "$1");
1,496,085
private void complexQuery(RESTRequest request, RESTResponse response) {<NEW_LINE>RESTHelper.ensureConsumesJson(request);<NEW_LINE>String objectName = RESTHelper.getQueryParam(request, APIConstants.PARAM_OBJECT_NAME);<NEW_LINE>String className = RESTHelper.getQueryParam(request, APIConstants.PARAM_CLASSNAME);<NEW_LINE>I...
e, converter, APIConstants.STATUS_BAD_REQUEST);
591,188
static KeyPair parseKeyPair(String pemData) {<NEW_LINE>Matcher m = PEM_DATA.matcher(pemData.trim());<NEW_LINE>if (!m.matches()) {<NEW_LINE>throw new IllegalArgumentException("String is not PEM encoded data");<NEW_LINE>}<NEW_LINE>String type = m.group(1);<NEW_LINE>final byte[] content = b64Decode(utf8Encode(m.group(2)))...
publicKey = fact.generatePublic(keySpec);
1,408,939
private void doDescription(List<AttributedString> desc) {<NEW_LINE>if (descriptionSize == 0 || !descriptionEnabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (desc.isEmpty()) {<NEW_LINE>clearDescription();<NEW_LINE>} else if (desc.size() == descriptionSize) {<NEW_LINE>addDescription(desc);<NEW_LINE>} else if (desc.size...
add(asb.toAttributedString());
1,732,713
protected void createHierarchy() {<NEW_LINE>// root node<NEW_LINE>ArrayList<ArrayList> Lists = new ArrayList<ArrayList>();<NEW_LINE>ArrayList<Integer> parent = new ArrayList<>();<NEW_LINE>ArrayList<Integer> element = new ArrayList<>();<NEW_LINE>ArrayList<Integer> child = new ArrayList<>();<NEW_LINE>Lists.add(parent);<N...
divideUI(continentid, 0, iid);
699,477
private <T> T wrapInExternalTransaction(final ReturnableDelegate<T> delegate, final String jdbcPool) {<NEW_LINE>T result = null;<NEW_LINE>Connection connection = null;<NEW_LINE>boolean autocommit = false;<NEW_LINE>try {<NEW_LINE>connection = DbConnectionFactory.getConnection(jdbcPool);<NEW_LINE>autocommit = connection....
e.getMessage(), e);
578,335
private Collection<Component> defineStorageComponents() {<NEW_LINE>final List<Component> all = new ArrayList<Component>();<NEW_LINE>final String ID = StorageAnalyzer.ID;<NEW_LINE>all.add(A(StorageReportUpdater.class));<NEW_LINE>all.add(A(StorageBuilderManager.class));<NEW_LINE>all.add(A(StorageSQLBuilder.class));<NEW_L...
(A(StorageCacheBuilder.class));
1,004,666
public SOAPMessage invoke(SOAPMessage request) {<NEW_LINE>SOAPMessage response = null;<NEW_LINE>Boolean samlAssertionFound = false;<NEW_LINE>try {<NEW_LINE>String hdrText = request<MASK><NEW_LINE>System.out.println("Incoming SOAP Header:" + hdrText);<NEW_LINE>// for (Iterator<Node> i = request.getSOAPHeader().getChildE...
.getSOAPHeader().getTextContent();
578,212
public ConfiguredTarget create(RuleContext ruleContext) throws InterruptedException, RuleErrorException, ActionConflictException {<NEW_LINE>ToolchainTypeInfo toolchainType = PlatformProviderUtils.toolchainType(ruleContext<MASK><NEW_LINE>ImmutableList<ConstraintValueInfo> execConstraints = PlatformProviderUtils.constrai...
.getPrerequisite(ToolchainRule.TOOLCHAIN_TYPE_ATTR));
549,888
public static String[] unpackCipherSuites(String ciphers) {<NEW_LINE>// can't use split as split is not available on all java platforms.<NEW_LINE>if (ciphers == null)<NEW_LINE>return null;<NEW_LINE>Vector<String> c = new Vector<String>();<NEW_LINE>int <MASK><NEW_LINE>int j = 0;<NEW_LINE>// handle all commas.<NEW_LINE>w...
i = ciphers.indexOf(',');
1,723,943
Cluster provideCluster() {<NEW_LINE>final Cluster.Builder builder = Cluster.builder().withClusterName(this.catalogShardName);<NEW_LINE>// Contact points are required<NEW_LINE>final String contactPointsString = this.configuration.get(CONTACT_POINTS_KEY);<NEW_LINE>if (contactPointsString == null) {<NEW_LINE>throw new Ill...
this.configuration.get(USERNAME_KEY);
564,142
private void coloredSlabs(Map<?, ? extends IBlockProvider> slabs, String existingPrefix, String doubleType) {<NEW_LINE>ConfiguredModel bottomModel = new ConfiguredModel(models().getExistingFile(modLoc("block/plastic/" + existingPrefix + "slab")));<NEW_LINE>ConfiguredModel topModel = new ConfiguredModel(models().getExis...
.DOUBLE).addModels(doubleModel);
656,352
public void onResponseComplete(Exception exception) {<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>if (responseCompleteCalled.compareAndSet(false, true)) {<NEW_LINE>logger.trace("Finished responding to current request on channel {}", ctx.channel());<NEW_LINE>nettyMetrics.requestCompletionRate.mark();<NEW_LINE>if (exception ...
long responseCompleteStartTime = System.currentTimeMillis();
711,875
public void parse(ByteBuffer input) {<NEW_LINE>NIOUtils.skip(input, 1);<NEW_LINE>profile = input.get() & 0xff;<NEW_LINE>profileCompat = input.get() & 0xff;<NEW_LINE>level = input.get() & 0xff;<NEW_LINE>int flags = input.get() & 0xff;<NEW_LINE>nalLengthSize = (flags & 0x03) + 1;<NEW_LINE>// 3 bits reserved + 5 bits numb...
(input, spsSize - 1));
145,492
public void onClick(View view) {<NEW_LINE>if (view == mBottomBarControls) {<NEW_LINE>openPlaybackActivity();<NEW_LINE>} else if (view.getTag() != null) {<NEW_LINE>// a limiter view was clicked<NEW_LINE>int i = (Integer) view.getTag();<NEW_LINE>Limiter limiter = mPagerAdapter.getCurrentLimiter();<NEW_LINE>int type = lim...
= limiter.names.length - i;
1,374,440
public void printInfo(boolean isSample, boolean includeIndexDetails) throws IOException {<NEW_LINE>PrintStream out = System.out;<NEW_LINE>out.printf("%-24s : %s\n", (isSample ? "Sample " : "") + "Locality group ", (isDefaultLG ? "<DEFAULT>" : name));<NEW_LINE>if (version == RINDEX_VER_3 || version == RINDEX_VER_4 || ve...
printf("\t%-22s : %d\n", "Start block", startBlock);
19,486
private void start(String dbname) throws ClassNotFoundException, Exception {<NEW_LINE>// hsqldb only accept '/' as path;<NEW_LINE>dbname = dbname.replaceAll("\\\\", "/");<NEW_LINE>// ZAP: Check if old database should be compacted<NEW_LINE>boolean doCompact = false;<NEW_LINE>File propsFile = new File(dbname + ".properti...
isRecoveryLogEnabled() ? "TRUE" : "FALSE");
351,877
public void markUnreadNews() {<NEW_LINE>if (currentNews == null || currentNews.getNewsArticlesCount() <= 0) {<NEW_LINE>// do nothing<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Stored enabled and un-read article<NEW_LINE>List<String> unReadNewsList = new ArrayList<>();<NEW_LINE>for (NewsArticle newsArticle : currentNews.ge...
envelope = ServerRequestEnvelope.create(request);
1,116,410
public static RandomForest fit(Formula formula, DataFrame data, Properties params) {<NEW_LINE>int ntrees = Integer.parseInt(params.getProperty("smile.random_forest.trees", "500"));<NEW_LINE>int mtry = Integer.parseInt(params.getProperty("smile.random_forest.mtry", "0"));<NEW_LINE>SplitRule rule = SplitRule.valueOf(para...
(params.getProperty("smile.random_forest.class_weight"));
1,511,347
public void sharedLibraryTasks(ModelMap<Task> tasks, final SharedLibraryBinarySpecInternal binary) {<NEW_LINE>String taskName = binary.getNamingScheme().getTaskName("link");<NEW_LINE>tasks.create(taskName, LinkSharedLibrary.class, new Action<LinkSharedLibrary>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execu...
"Links " + binary.getDisplayName());
302,468
private void generateOutputs() {<NEW_LINE>// preserve original surface form as an output.<NEW_LINE>outputs.add(new CompletionToken(pdgSurface.toString(), true, pdgStartOffset, pdgEndOffset));<NEW_LINE>// skip readings that cannot be translated to romaji.<NEW_LINE>if (pdgReading == null || pdgReading.length() == 0 || !C...
, false, pdgStartOffset, pdgEndOffset));
941,278
private boolean processEnum(XmlTreeNode root) {<NEW_LINE>XmlElement element = root.getStartElement();<NEW_LINE>String name = element.getAttribute("NAME");<NEW_LINE>String enuumComment = getRegularComment(root);<NEW_LINE>CategoryPath cp = getCategoryPath(element);<NEW_LINE>int size = XmlUtilities.parseInt(element.getAtt...
add(entryName, entryValue, comment);
409,472
protected MappedAddressRange identityMapped(AddressRange srng, Program dest) {<NEW_LINE>if (dest == null) {<NEW_LINE>// New program<NEW_LINE>return new MappedAddressRange(srng, srng);<NEW_LINE>}<NEW_LINE>AddressSpace srcSpace = srng.getAddressSpace();<NEW_LINE>AddressSpace dstSpace = dest.getAddressFactory().getAddress...
dstSpace.getAddress(maxOff)));
437,676
public static void register() {<NEW_LINE>RecipeWrapperIRecipe.setLevelData(SagRecipe.class, MachinesPlugin.iGuiHelper, 173 - xOff, <MASK><NEW_LINE>MachinesPlugin.iModRegistry.addRecipeCategories(new SagMillRecipeCategory(MachinesPlugin.iGuiHelper));<NEW_LINE>MachinesPlugin.iModRegistry.handleRecipes(IRecipe.class, SagR...
yOff + 1, "textures/blocks/block_simple_sagmill_front.png", "textures/blocks/block_sagmill_front.png");
1,821,307
protected void initChannel(@NotNull final Channel ch) throws Exception {<NEW_LINE>Preconditions.checkNotNull(ch, "Channel must never be null");<NEW_LINE>if (!legacyNettyShutdown && channelDependencies.getShutdownHooks().isShuttingDown()) {<NEW_LINE>// during shutting down, we dont want new clients to create any pipelin...
PublishFlushHandler publishFlushHandler = channelDependencies.createPublishFlushHandler();
1,661,590
// ----- private methods -----<NEW_LINE>private static Object evaluateScript(final ActionContext actionContext, final GraphObject entity, final String engineName, final Snippet snippet) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>final Context context = ContextFactory.getContext(engineName, actionContext, entit...
getErrorBuffer().setStatus(0);
701,023
public Object createObject(Attributes atts) {<NEW_LINE>JasperPrint jasperPrint = (JasperPrint) digester.peek(<MASK><NEW_LINE>JRBasePrintImage image = new JRBasePrintImage(jasperPrint.getDefaultStyleProvider());<NEW_LINE>// get image attributes<NEW_LINE>ScaleImageEnum scaleImage = ScaleImageEnum.getByName(atts.getValue(...
digester.getCount() - 2);
1,392,251
public WebResponse performIDPLogin(String testcase, WebConversation wc, WebResponse response, TestSettings settings, List<validationData> expectations) throws Exception {<NEW_LINE>String thisMethod = "performIDPLogin";<NEW_LINE>msgUtils.printMethodName(thisMethod);<NEW_LINE>try {<NEW_LINE>// Read response from HTTP POS...
response.getForms()[0];
1,147,249
public ReplicationGroupUpdate unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ReplicationGroupUpdate replicationGroupUpdate = new ReplicationGroupUpdate();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
().unmarshall(context));
1,597,170
public HashMap pageContent(String query, String sortBy, String perPage, String currentPageNumber) {<NEW_LINE>HashMap retMap = new HashMap();<NEW_LINE>int pageNumber = 1;<NEW_LINE>try {<NEW_LINE>pageNumber = Integer.parseInt(currentPageNumber);<NEW_LINE>} catch (Exception e) {<NEW_LINE>}<NEW_LINE>int displayPerPage = Co...
displayPerPage = Integer.parseInt(perPage);
542,808
public void parseDevices(String ipAddress, String getDevicesResponse) {<NEW_LINE>if ((getDevicesResponse == null)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>StringTokenizer st = new StringTokenizer(getDevicesResponse, "\r ,");<NEW_LINE>String configURL = ipAddress;<NEW_LINE>if (configURL == null) {<NEW_LINE>return;<NEW_LI...
logger.error("UnknownHostException :", e);
300,230
public void applyDayNightMode() {<NEW_LINE>MapActivity ctx = getMapActivity();<NEW_LINE>View mainView = getMainView();<NEW_LINE>View view = getView();<NEW_LINE>if (ctx == null || mainView == null || view == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>updateNightMode();<NEW_LINE>int dividerColorId = ColorUtilities.getD...
cancel_button_descr)).setTextColor(activeColor);
1,837,794
protected void signalDecodedTransaction(Cardio2eTransaction transaction) {<NEW_LINE>if (decodedTransactionListeners != null && !decodedTransactionListeners.isEmpty()) {<NEW_LINE>Cardio2eDecodedTransactionEvent event = new Cardio2eDecodedTransactionEvent(this, transaction);<NEW_LINE>// make a copy<NEW_LINE>Vector<Cardio...
> e = targets.elements();
1,164,321
public Integer implicitCast(Object value) throws IllegalArgumentException, ClassCastException {<NEW_LINE>if (value == null) {<NEW_LINE>return null;<NEW_LINE>} else if (value instanceof Integer) {<NEW_LINE>return (Integer) value;<NEW_LINE>} else if (value instanceof String) {<NEW_LINE>return Integer.parseInt((String) va...
Integer.MIN_VALUE).toBigInteger();
1,801,455
private void convertGetContextIDAfterInvokeMethod(Method method) throws CSErrorException {<NEW_LINE>if (method.getName().toLowerCase().contains(GETCONTEXTID)) {<NEW_LINE>Object result = null;<NEW_LINE>try {<NEW_LINE>result = method.invoke(object);<NEW_LINE>} catch (Exception e) {<NEW_LINE>logger.warn("Invoke method : {...
+ gson.toJson(result));
1,742,603
public Object constructValue() throws IOException {<NEW_LINE>if (source == null) {<NEW_LINE>throw constructLoadException(INCLUDE_SOURCE_ATTRIBUTE + " is required.");<NEW_LINE>}<NEW_LINE>URL location;<NEW_LINE>final ClassLoader cl = getClassLoader();<NEW_LINE>if (source.charAt(0) == '/') {<NEW_LINE>// FIXME: JIGSAW -- u...
(source.substring(1));
106,306
protected void fillInputs(CodeUnit unit) {<NEW_LINE>if (unit instanceof Instruction) {<NEW_LINE>Instruction ins = (Instruction) unit;<NEW_LINE>String instr = ins.toString();<NEW_LINE>if (ins.isInDelaySlot()) {<NEW_LINE>assert instr.startsWith("_");<NEW_LINE>instr = instr.substring(1).trim();<NEW_LINE>}<NEW_LINE>input.s...
.getOperandsField().grabFocus();
267,267
public static void main(final String[] args) throws Exception {<NEW_LINE>final Options opts = new Options();<NEW_LINE>opts.addOption(Option.builder("b").longOpt("bootstrap-servers").hasArg().desc("Kafka cluster bootstrap server string").build()).addOption(Option.builder("c").longOpt("config-file").hasArg().desc("Java p...
final HelpFormatter formatter = new HelpFormatter();
678,792
protected void visitParameter(Parameter node) {<NEW_LINE>blockStack.add(node);<NEW_LINE>super.visitParameter(node);<NEW_LINE>blockStack.removeLast();<NEW_LINE>// check parameter type<NEW_LINE>if (check(node.getType()) || (check(node) && completionOffset < node.getNameStart())) {<NEW_LINE>boolean isCatchParam = (blockSt...
getLast(), expressionOrStatement());
1,717,124
public void doCollectInformation(@Nonnull final ProgressIndicator progress) {<NEW_LINE>if (myHighlightUsagesHandler != null) {<NEW_LINE>List<PsiElement> targets = myHighlightUsagesHandler.getTargets();<NEW_LINE>myHighlightUsagesHandler.computeUsages(targets);<NEW_LINE>final List<TextRange> readUsages = myHighlightUsage...
readUsage != null, "null text range from " + myHighlightUsagesHandler);
121,221
private boolean exist(Business business, String name, String id, String applicationId) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(File.class);<NEW_LINE><MASK><NEW_LINE>CriteriaQuery<Long> cq = cb.createQuery(Long.class);<NEW_LINE>Root<File> root = cq.from(File.class);<NEW_LINE>...
CriteriaBuilder cb = em.getCriteriaBuilder();
1,625,087
public User login() throws UnauthenticatedException {<NEW_LINE>String username = "";<NEW_LINE>if (mConf.isSet(PropertyKey.SECURITY_LOGIN_USERNAME)) {<NEW_LINE>username = mConf.getString(PropertyKey.SECURITY_LOGIN_USERNAME);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// Use the class loader of User.class to construct the LoginC...
LOG.debug("login subject: {}", mSubject);
1,286,753
private Settings parseAsSettings() {<NEW_LINE>TomlValidator settingsTomlValidator;<NEW_LINE>try {<NEW_LINE>settingsTomlValidator = new TomlValidator(Schema.from(FileUtils.readFileAsString("settings-toml-schema.json")));<NEW_LINE>} catch (IOException e) {<NEW_LINE>throw new ProjectException("Failed to read the Settings....
getStringValueFromProxyNode(centralNode, ACCESS_TOKEN, "");