idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,018,639
public void onUnsubscribe(int iLiveToken) {<NEW_LINE>boolean sendFail = true;<NEW_LINE>do {<NEW_LINE>List<OClientConnection> connections = session.getConnections();<NEW_LINE>if (connections.size() == 0) {<NEW_LINE>break;<NEW_LINE>}<NEW_LINE>ONetworkProtocolBinary protocol = (ONetworkProtocolBinary) connections.get(0).g...
channel.writeInt(Integer.MIN_VALUE);
1,222,293
final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<ListTagsFo...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
1,399,734
public void rewriteVarArgsArg(OverloadMethodSet overloadMethodSet, MethodPrototype methodPrototype, List<Expression> args, GenericTypeBinder gtb) {<NEW_LINE>if (!methodPrototype.isVarArgs())<NEW_LINE>return;<NEW_LINE>if (args.size() != methodPrototype.getArgs().size() || args.isEmpty()) {<NEW_LINE>// This shouldn't be ...
> anonVals = newAnonymousArray.getValues();
1,256,258
public okhttp3.Call exportTenantConfigCall(final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/tenant-config";<NEW_LINE>List<Pair> localVarQueryParams = new ArrayList<Pair>();<NEW_LINE>List<Pair> localVarC...
String[] localVarAccepts = { "application/json" };
582,403
public static QueryMqSofamqConsumerConnectionResponse unmarshall(QueryMqSofamqConsumerConnectionResponse queryMqSofamqConsumerConnectionResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryMqSofamqConsumerConnectionResponse.setRequestId(_ctx.stringValue("QueryMqSofamqConsumerConnectionResponse.RequestId"));<NEW_LINE>que...
(_ctx.stringValue("QueryMqSofamqConsumerConnectionResponse.ResultCode"));
1,213,130
public Position destination(EditorAdaptor editorAdaptor, int count, Position fromPosition) throws CommandExecutionException {<NEW_LINE>TextContent viewContent = editorAdaptor.getViewContent();<NEW_LINE>if (viewContent.getTextLength() == 0)<NEW_LINE>return null;<NEW_LINE>ViewportService viewport = editorAdaptor.getViewp...
view, currenCursorLine, scrolloff, scroll);
1,570,919
private void prepareType(Expression type, Scope scope) {<NEW_LINE>Expression namespaceName = type;<NEW_LINE>if (namespaceName instanceof NullableType) {<NEW_LINE>NullableType nullableType = (NullableType) namespaceName;<NEW_LINE>if (nullableType.getType() instanceof NamespaceName) {<NEW_LINE>namespaceName = (NamespaceN...
, (NamespaceName) namespaceName, scope);
1,157,300
public Item addAdjustment(final InvoiceItem item) {<NEW_LINE>final UUID targetId = item.getLinkedItemId();<NEW_LINE>final NodeInterval node = findNode(new SearchCallback() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean isMatch(final NodeInterval curNode) {<NEW_LINE>return ((ItemsNodeInterval) curNode).getItemsI...
).findItem(targetId) != null;
1,310,766
private synchronized boolean addBanInfoNow(ModeratorActionData data) {<NEW_LINE>String command = ModLogInfo.makeCommand(data);<NEW_LINE>for (int i = lines.size() - 1; i >= 0; i--) {<NEW_LINE>Message m = lines.get(i);<NEW_LINE>// Too old, abort (associated message might not be here yet)<NEW_LINE>if (System.currentTimeMi...
.addModLogInfo(data.created_by));
431,514
public void onFilter(Filters filters) {<NEW_LINE>// Construct query basic query<NEW_LINE>Query query = mFirestore.collection("restaurants");<NEW_LINE>// Category (equality filter)<NEW_LINE>if (filters.hasCategory()) {<NEW_LINE>query = query.whereEqualTo(Restaurant.FIELD_CATEGORY, filters.getCategory());<NEW_LINE>}<NEW_...
FIELD_PRICE, filters.getPrice());
465,628
public DruidStatement createStatement(SqlLifecycleFactory sqlLifecycleFactory) {<NEW_LINE>final <MASK><NEW_LINE>synchronized (connectionLock) {<NEW_LINE>if (statements.containsKey(statementId)) {<NEW_LINE>// Will only happen if statementCounter rolls over before old statements are cleaned up. If this<NEW_LINE>// ever h...
int statementId = statementCounter.incrementAndGet();
1,137,304
private static void spawnMob(final IEssentials ess, final Server server, final CommandSource sender, final User target, final Location sloc, final List<String> parts, final List<String> data) throws Exception {<NEW_LINE>Mob mob;<NEW_LINE>Entity spawnedMob = null;<NEW_LINE>Entity spawnedMount;<NEW_LINE>for (int i = 0; i...
(Locale.ENGLISH), target);
348,640
private String format(JSError error, boolean warning) {<NEW_LINE>SourceExcerptProvider source = getSource();<NEW_LINE>String sourceName = error.getSourceName();<NEW_LINE>int lineNumber = error.getLineNumber();<NEW_LINE>int charno = error.getCharno();<NEW_LINE>// Format the non-reverse-mapped position.<NEW_LINE>StringBu...
error.getType().key);
724,847
public int compareTo(checkTableClass_args other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetTinfo(), other.isSetTinfo());<NEW_LINE>...
), other.isSetClassName());
867,882
private <V> List<Map.Entry<ByteString, V>> tagPrefixPageTagValues(Windmill.TagValuePrefixResponse tagValuePrefixResponse, Coder<V> valueCoder) {<NEW_LINE>if (tagValuePrefixResponse.getTagValuesCount() == 0) {<NEW_LINE>return new WeightedList<>(Collections.emptyList());<NEW_LINE>}<NEW_LINE>WeightedList<Map.Entry<ByteStr...
(tagValuePrefixResponse.getTagValuesCount()));
977,095
public void marshall(GcpMySQLSettings gcpMySQLSettings, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (gcpMySQLSettings == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(gcpMySQLSettings.getAfterConnectScri...
gcpMySQLSettings.getSecretsManagerAccessRoleArn(), SECRETSMANAGERACCESSROLEARN_BINDING);
1,724,870
public void generateSolution() {<NEW_LINE>if (this.population.isEmpty()) {<NEW_LINE>this.initializePopulation();<NEW_LINE>assert !this<MASK><NEW_LINE>}<NEW_LINE>if (Properties.ENABLE_SECONDARY_OBJECTIVE_AFTER > 0 || Properties.ENABLE_SECONDARY_OBJECTIVE_STARVATION) {<NEW_LINE>this.disableFirstSecondaryCriterion();<NEW_...
.population.isEmpty() : "Initial population is empty, i.e., EvoSuite could not create any test!";
1,070,667
public SegmentProcessorConfig build() {<NEW_LINE>Preconditions.checkState(_tableConfig != null, "Must provide table config in SegmentProcessorConfig");<NEW_LINE>Preconditions.checkState(_schema != null, "Must provide schema in SegmentProcessorConfig");<NEW_LINE>if (_timeHandlerConfig == null) {<NEW_LINE>_timeHandlerCon...
Type.NO_OP).build();
961,998
private static void introduceFirstPointAndLastPoint(List<Location> locations, List<RouteDirectionInfo> directions, List<RouteSegmentResult> segs, Location start, LatLon end, OsmandApplication ctx) {<NEW_LINE>boolean firstPointIntroduced = introduceFirstPoint(locations, directions, segs, start);<NEW_LINE>boolean lastPoi...
locations.size() - 2);
1,395,160
private void restoreInflightMessages() {<NEW_LINE>final String methodName = "restoreInflightMessages";<NEW_LINE>pendingMessages = new Vector(this.maxInflight);<NEW_LINE>pendingFlows = new Vector();<NEW_LINE>Enumeration keys = outboundQoS2.keys();<NEW_LINE>while (keys.hasMoreElements()) {<NEW_LINE>Object key = keys.next...
this.pendingMessages = reOrder(pendingMessages);
707,019
/* }}} queryAttributeRecursive */<NEW_LINE>private Object queryAttributeRecursive(TabularData parent, /* {{{ */<NEW_LINE>List<String> attrName) {<NEW_LINE>String key;<NEW_LINE>Object value = null;<NEW_LINE>key = attrName.remove(0);<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>Collection<CompositeData> table = (Coll...
value = compositeData.get("value");
279,808
public GetStreamKeyResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetStreamKeyResult getStreamKeyResult = new GetStreamKeyResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken t...
int originalDepth = context.getCurrentDepth();
1,568,712
public void visit(BLangWhile astWhileStmt) {<NEW_LINE>BIRBasicBlock currentEnclLoopBB = this.env.enclLoopBB;<NEW_LINE>BIRBasicBlock currentEnclLoopEndBB = this.env.enclLoopEndBB;<NEW_LINE>// Create a basic block for the while expression.<NEW_LINE>BIRBasicBlock whileExprBB = new BIRBasicBlock(this.env.nextBBId(names));<...
astWhileStmt.expr.accept(this);
1,421,923
ArgumentSorterNode.MappedArguments doExecute(FunctionSchema preApplicationSchema, ArgumentMapping mapping, InvokeCallableNode.ArgumentsExecutionMode argumentsExecutionMode, Function function, Object state, Object[] arguments, @Cached ThunkExecutorNode thunkExecutorNode) {<NEW_LINE>FunctionSchema postApplicationSchema =...
MappedArguments(state, mappedAppliedArguments, oversaturatedArguments);
1,397,751
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_flexiblespacewithimagelistview);<NEW_LINE>mFlexibleSpaceImageHeight = getResources().getDimensionPixelSize(R.dimen.flexible_space_image_height);<NEW_LINE>mFlexibleSpaceShowFabOffse...
View paddingView = new View(this);
1,842,533
private static void clearPreloadTypedArrayIssue(Resources resources) {<NEW_LINE>// Perform this trick not only in Miui system since we can't predict if any other<NEW_LINE>// manufacturer would do the same modification to Android.<NEW_LINE>// if (!isMiuiSystem) {<NEW_LINE>// return;<NEW_LINE>// }<NEW_LINE>ShareTinkerLog...
findField(Resources.class, "mTypedArrayPool");
1,307,608
void positionCartAttributes(FloatRect start, FloatRect end, float x, float y, String[] attribute, float[] value) {<NEW_LINE>float startCenterX = start.centerX();<NEW_LINE>float startCenterY = start.centerY();<NEW_LINE>float endCenterX = end.centerX();<NEW_LINE>float endCenterY = end.centerY();<NEW_LINE>float pathVector...
= (x - startCenterX) / pathVectorX;
483,222
public Object finish(Object val) {<NEW_LINE>if (val == null)<NEW_LINE>return null;<NEW_LINE>if (isSame) {<NEW_LINE>if (getExp != null && val instanceof Sequence) {<NEW_LINE>Sequence seq = (Sequence) val;<NEW_LINE>ListBase1 mems = seq.getMems();<NEW_LINE>for (int i = 1, size = mems.size(); i <= size; ++i) {<NEW_LINE>Obj...
]) mems.get(i);
808,457
public void sendKeypadTextMessage(String displayLocation, String text) {<NEW_LINE>if (text.length() != 8) {<NEW_LINE>logger.debug("Text to be displayed on the keypad has not the correct length");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String cmd = CaddxBindingConstants.KEYPAD_SEND_KEYPAD_TEXT_MESSAGE;<NEW_LINE>String dat...
, text.charAt(7));
661,784
public ListSnapshotsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ListSnapshotsResult listSnapshotsResult = new ListSnapshotsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDep...
JsonToken token = context.getCurrentToken();
1,469,430
private void doRemoveServer(ServerSetChangeMessage serverSetChangeMsg) {<NEW_LINE>ServerInfo newServer = serverSetChangeMsg.getServer();<NEW_LINE>_log.info("About to remove Server (" + newServer + ") from Server set. Current Server set is :" + _servers);<NEW_LINE>if (null == newServer) {<NEW_LINE>_log.error("No Server ...
> iter = _servers.iterator();
1,679,290
private void resolveDict(ResolvedTuple outputTuple, RequestedColumn requestedCol, ColumnMetadata column, int sourceIndex) {<NEW_LINE>// If the actual column isn't a dict, then the request is invalid.<NEW_LINE>if (!column.isDict()) {<NEW_LINE>throw UserException.validationError().message("Project list implies a dict col...
removeChild(dictColumn.members());
1,814,066
void init(Context context, AttributeSet attrs, int defStyleAttr) {<NEW_LINE>TypedArray array = getContext().obtainStyledAttributes(attrs, R.styleable.QMUITopBar, defStyleAttr, 0);<NEW_LINE>mLeftBackDrawableRes = array.getResourceId(R.styleable.QMUITopBar_qmui_topbar_left_back_drawable_id, R.drawable.qmui_icon_topbar_ba...
R.styleable.QMUITopBar_qmui_topbar_clear_left_padding_when_add_left_back_view, false);
1,124,716
public void run() throws Exception {<NEW_LINE>startTimeNanos = Timer.nanos();<NEW_LINE>MultiMapContainer container = getOrCreateContainer();<NEW_LINE>MultiMapValue multiMapValue = container.getOrCreateMultiMapValue(dataKey);<NEW_LINE>for (Long recordId : recordIds) {<NEW_LINE>if (!multiMapValue.containsRecordId(recordI...
coll = multiMapValue.getCollection(false);
252,723
private double adjustTransform() {<NEW_LINE>double xMin = Double.POSITIVE_INFINITY;<NEW_LINE>double xMax = Double.NEGATIVE_INFINITY;<NEW_LINE>double yMin = Double.POSITIVE_INFINITY;<NEW_LINE>double yMax = Double.NEGATIVE_INFINITY;<NEW_LINE>if (csp != null)<NEW_LINE>for (VAR var : csp.getVariables()) {<NEW_LINE>Point2D ...
yMin - yMax) / 2.0));
570,811
public AuthConfig createAuthConfig() {<NEW_LINE>try {<NEW_LINE>Class<?> credentialsProviderChainClass = Class.forName("com.amazonaws.auth.DefaultAWSCredentialsProviderChain");<NEW_LINE>Object credentialsProviderChain = credentialsProviderChainClass.getDeclaredConstructor().newInstance();<NEW_LINE>Object credentials = c...
null ? "" : "title=?" + issueTitle);
564,204
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {<NEW_LINE>super.onViewCreated(view, savedInstanceState);<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>mRecyclerView = getView().findViewById(R.id.recycler_view);<NEW_LINE>mLayoutManager = new LinearLayoutManager(requireContext()...
savedInstanceState.getParcelable(SAVED_STATE_EXPANDABLE_ITEM_MANAGER) : null;
256,925
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup...
format("The resource ID '%s' is not valid. Missing path segment 'serviceUnits'.", id)));
1,403,879
public void addTextRect(ObjectInfo[] objectstatus) {<NEW_LINE>point_lines_list.clear();<NEW_LINE>labels.clear();<NEW_LINE>if (objectstatus != null && objectstatus.length != 0) {<NEW_LINE>for (int i = 0; i < objectstatus.length; i++) {<NEW_LINE>float[] point_lines = new float[4 * 4];<NEW_LINE>point_lines[0] = objectstat...
.key_points[1][0];
790,809
public void stop() throws Exception {<NEW_LINE>mStopped = true;<NEW_LINE>if (mServerSocket != null) {<NEW_LINE>try {<NEW_LINE>mServerSocket.close();<NEW_LINE>} catch (IOException e) {<NEW_LINE>LOG.warn("Exception in closing server socket: {}", e.toString());<NEW_LINE>}<NEW_LINE>}<NEW_LINE>mThreadPool.shutdownNow();<NEW...
awaitTermination(THREAD_KEEP_ALIVE_TIME_MS, TimeUnit.MILLISECONDS);
1,783,674
public void dragStart(DragSourceEvent event) {<NEW_LINE>TableRowCore[] rows = tv.getSelectedRows();<NEW_LINE>if (rows.length != 0) {<NEW_LINE>event.doit = true;<NEW_LINE>// System.out.println("DragStart");<NEW_LINE>drag_drop_location_start = getRowLocation(rows[0]);<NEW_LINE>drag_drop_rows = rows;<NEW_LINE>} else {<NEW...
selectedDataSources = tv.getSelectedDataSources(true);
1,066,874
public ArmatureDebugger addArmatureFrom(Armature armature, Spatial forSpatial) {<NEW_LINE>ArmatureDebugger ad = armatures.get(armature);<NEW_LINE>if (ad != null) {<NEW_LINE>return ad;<NEW_LINE>}<NEW_LINE>JointInfoVisitor visitor = new JointInfoVisitor(armature);<NEW_LINE>forSpatial.depthFirstTraversal(visitor);<NEW_LIN...
"_Armature", armature, visitor.deformingJoints);
1,066,454
public final void fileType() throws RecognitionException, TokenStreamException {<NEW_LINE>returnAST = null;<NEW_LINE>ASTPair currentAST = new ASTPair();<NEW_LINE>PascalAST fileType_AST = null;<NEW_LINE>if ((LA(1) == FILE) && (LA(2) == OF)) {<NEW_LINE>PascalAST tmp69_AST = null;<NEW_LINE>tmp69_AST = (PascalAST) astFacto...
fileType_AST = (PascalAST) currentAST.root;
607,182
// --------- Tick Handling<NEW_LINE>@Override<NEW_LINE>public void tickEnd(@Nullable Profiler profiler) {<NEW_LINE>Prof.start(profiler, "EnergyTransmitting");<NEW_LINE>transmitEnergy();<NEW_LINE>if (energyStored != prevEnergyStored) {<NEW_LINE>Prof.next(profiler, "EnergyBalancing");<NEW_LINE>distributeEnergyToBanks();<...
, capBanks.get(0));
212,126
public DataType toDataType() throws DuplicateNameException, IOException {<NEW_LINE>String name = "objc_category";<NEW_LINE>StructureDataType struct = new StructureDataType(name, 0);<NEW_LINE>struct.setCategoryPath(ObjectiveC1_Constants.CATEGORY_PATH);<NEW_LINE>struct.add(PointerDataType.getPointer(ASCII, _state<MASK><N...
.pointerSize), "category_name", null);
1,046,785
public void updateUiElements() {<NEW_LINE>super.updateUiElements();<NEW_LINE>toolbar.setBackgroundColor(getPrimaryColor());<NEW_LINE>setStatusBarColor();<NEW_LINE>setNavBarColor();<NEW_LINE>setRecentApp(getString(org.horaapps.leafpic.R.string.donate));<NEW_LINE>themeSeekBar(bar);<NEW_LINE>themeButton(btnDonateIap);<NEW...
donate_paypal_icon_title)).setColor(color);
621,749
public int smallestFactorization(int a) {<NEW_LINE>// case 1: a < 10<NEW_LINE>if (a < 10) {<NEW_LINE>return a;<NEW_LINE>}<NEW_LINE>// case 2: start with 9 and try every possible digit<NEW_LINE>List<Integer> <MASK><NEW_LINE>for (int i = 9; i > 1; i--) {<NEW_LINE>// if current digit divides a, then store all occurences o...
resultArray = new ArrayList<>();
1,529,054
final EnableResult executeEnable(EnableRequest enableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(enableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_LINE>Request<Ena...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,598,423
public Table melt(List<String> idVariables, List<NumericColumn<?>> measuredVariables, Boolean dropMissing) {<NEW_LINE>Table result = Table.create(name);<NEW_LINE>for (String idColName : idVariables) {<NEW_LINE>result.addColumns(column(idColName).type().create(idColName));<NEW_LINE>}<NEW_LINE>result.addColumns(StringCol...
, DoubleColumn.create(MELT_VALUE_COLUMN_NAME));
579,538
private Value convertToRow(TypeInfo targetType, CastDataProvider provider, int conversionMode, Object column) {<NEW_LINE>ValueRow v;<NEW_LINE>if (getValueType() == ROW) {<NEW_LINE>v = (ValueRow) this;<NEW_LINE>} else {<NEW_LINE>v = ValueRow.get(new Value[] { this });<NEW_LINE>}<NEW_LINE>ExtTypeInfoRow ext = (ExtTypeInf...
] newValues = new Value[length];
1,314,242
public BExpressionValue evaluate() throws EvaluationException {<NEW_LINE>// The result of a range-expr is a new object belonging to the object type Iterable<int,()> that will iterate<NEW_LINE>// over a sequence of integers in increasing order, where the sequence includes all integers<NEW_LINE>// that are less than / le...
context, rhsResult.getJdiValue());
1,638,806
void toHtml() throws IOException {<NEW_LINE>writeJCaches(jcacheInformationsList);<NEW_LINE>write("<div align='right' class='noPrint'>");<NEW_LINE>if (!hitsRatioEnabled) {<NEW_LINE>writeln("#jcaches_statistics_enable#<br/>");<NEW_LINE>}<NEW_LINE>if (clearEnabled && systemActionsEnabled) {<NEW_LINE>writeln("<a href='?act...
getString("confirm_purge_caches")) + "'>");
1,725,019
public void addPersistentProperty(ElasticsearchPersistentProperty property) {<NEW_LINE>super.addPersistentProperty(property);<NEW_LINE>if (property.isSeqNoPrimaryTermProperty()) {<NEW_LINE>ElasticsearchPersistentProperty seqNoPrimaryTermProperty = this.seqNoPrimaryTermProperty;<NEW_LINE>if (seqNoPrimaryTermProperty != ...
> actualType = property.getActualTypeOrNull();
153,325
private SecurityConfiguration createSecurityConfiguration(EndpointDescription endpoint, ByteString clientCertificateBytes) throws UaException {<NEW_LINE>SecurityPolicy securityPolicy = SecurityPolicy.fromUri(endpoint.getSecurityPolicyUri());<NEW_LINE>MessageSecurityMode securityMode = endpoint.getSecurityMode();<NEW_LI...
new UaException(StatusCodes.Bad_ConfigurationError));
1,835,902
private IV<BigdataURI, ?> createInlineURIIV(final URI value) {<NEW_LINE>// deprecated in favor of the extensible InlineURIFactory mechanism<NEW_LINE>// try {<NEW_LINE>//<NEW_LINE>// final String s = value.stringValue();<NEW_LINE>//<NEW_LINE>// if (s.startsWith("ip:")) {<NEW_LINE>// return new IPAddrIV(s.substring(3));<...
<BigdataURI>(localNameIV, namespaceIV);
1,399,559
private void generateSettings(String mvnProjectName, Set<MavenProject> projects) {<NEW_LINE>BuildScriptBuilder scriptBuilder = scriptBuilderFactory.scriptForMavenConversion(dsl, "settings", useIncubatingAPIs, insecureProtocolOption);<NEW_LINE>scriptBuilder.<MASK><NEW_LINE>Set<MavenProject> modules = modules(projects, t...
propertyAssignment(null, "rootProject.name", mvnProjectName);
945,848
public void makeSortKey(byte[] result, int len) {<NEW_LINE>if (getCharsetHandler().getName() == CharsetName.BINARY) {<NEW_LINE>// Store length last in high-byte order to sort longer strings first<NEW_LINE>if (startPos() == 1) {<NEW_LINE>result[len <MASK><NEW_LINE>} else {<NEW_LINE>result[len - 2] = (byte) (varLength >>...
- 1] = (byte) varLength;
822,698
public Object visitPlus(Object context1, AdditiveExpression expr, boolean strict) {<NEW_LINE>ExecutionContext context = (ExecutionContext) context1;<NEW_LINE>Object lhs = Types.toPrimitive(context, getValue(context, expr.getLhs().accept(context, this, strict)));<NEW_LINE>Object rhs = Types.toPrimitive(context, getValue...
Types.toNumber(context, rhs);
1,583,494
public static ValidatePattern fromPattern(String pattern) {<NEW_LINE>if (pattern == null) {<NEW_LINE>throw new FlywayException("Null pattern not allowed.");<NEW_LINE>}<NEW_LINE>String[] patternParts = pattern.split(":");<NEW_LINE>if (patternParts.length != 2) {<NEW_LINE>throw new FlywayException("Invalid pattern '" + p...
return new ValidatePattern(migrationType, migrationState);
1,079,964
public long tensorsAlongDimension(int... dimension) {<NEW_LINE>if (dimension == null || dimension.length == 0)<NEW_LINE>throw new IllegalArgumentException("Invalid input: dimensions not specified (null or length 0)");<NEW_LINE>if (dimension.length >= rank() || dimension.length == 1 && dimension[0] == Integer.MAX_VALUE)...
len = ArrayUtil.prodLong(tensorShape);
1,307,820
private CurrencyParameterSensitivity parameterSensitivity(FxOptionSensitivity point) {<NEW_LINE>double expiryTime = point.getExpiry();<NEW_LINE>double strike = currencyPair.isInverse(point.getCurrencyPair()) ? 1d / point.getStrike() : point.getStrike();<NEW_LINE>double forward = currencyPair.isInverse(point.getCurrency...
double pointValue = point.getSensitivity();
789,139
public void actionPerformed(ActionEvent e) {<NEW_LINE>if (noproxy.isSelected()) {<NEW_LINE><MASK><NEW_LINE>} else if (systemProxy.isSelected()) {<NEW_LINE>pref.putInt("proxySel", 2);<NEW_LINE>} else if (manual.isSelected()) {<NEW_LINE>pref.putInt("proxySel", 3);<NEW_LINE>pref.put("proxySel-http", http.getText());<NEW_L...
pref.putInt("proxySel", 1);
878,486
private static void encodeType(Class<?> type, StringBuilder buf) {<NEW_LINE>String desc;<NEW_LINE>if (type == boolean.class) {<NEW_LINE>desc = "Z";<NEW_LINE>} else if (type == byte.class) {<NEW_LINE>desc = "B";<NEW_LINE>} else if (type == char.class) {<NEW_LINE>desc = "C";<NEW_LINE>} else if (type == short.class) {<NEW...
type.getComponentType(), buf);
1,826,379
// Basic test using JAX-RS client submit with an invocation callback, which checks that the<NEW_LINE>// callback runs without access to the java:comp namespace of the servlet because it is<NEW_LINE>// running on a plain Liberty executor thread (as opposed to a ManagedExecutorService thread).<NEW_LINE>@Test<NEW_LINE>pub...
r = result.poll());
598,390
private SrcType makeSrcType(SrcLinkedClass owner, Type type, boolean typeParam, boolean isParameter) {<NEW_LINE>SrcType srcType;<NEW_LINE>if (type instanceof ListType) {<NEW_LINE>srcType = new SrcType(isParameter ? "List" : "IListBacked");<NEW_LINE>srcType.addTypeParam(makeSrcType(owner, ((ListType) type).getType(), tr...
getClass().getTypeName());
407,398
public S3Config createS3Config(S3ConfigCreateRequest body, String xSdsAuthToken) throws ApiException {<NEW_LINE>Object localVarPostBody = body;<NEW_LINE>// verify the required parameter 'body' is set<NEW_LINE>if (body == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'body' when calling cr...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1,647,930
public void marshall(UpdateFlowOutputRequest updateFlowOutputRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (updateFlowOutputRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(updateFlowOutpu...
updateFlowOutputRequest.getMediaStreamOutputConfigurations(), MEDIASTREAMOUTPUTCONFIGURATIONS_BINDING);
578,019
protected BeanDefinitionBuilder parseHandler(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.genericBeanDefinition(RedisOutboundGateway.class);<NEW_LINE>String redisTemplate = element.getAttribute("redis-template");<NEW_LINE>String connectionFactory = eleme...
).error("'argument-expressions' and 'arguments-strategy' are mutually exclusive.", element);
626,431
public List<GenTaskBySqlBuilder> updateAndGetTasks(int projectId) throws SQLException {<NEW_LINE>FreeSelectSqlBuilder<List<GenTaskBySqlBuilder>> builder = new FreeSelectSqlBuilder<>(dbCategory);<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("SELECT id, project_id, db_name,table_name,class_name,me...
createIfAbsent(null).allowPartial();
482,584
// /CLOVER:OFF<NEW_LINE>public static boolean validatePKCS7Signature(String data, String signature, PublicKey publicKey) {<NEW_LINE>try {<NEW_LINE>SignerInformationStore signerStore;<NEW_LINE>try (InputStream sigIs = new ByteArrayInputStream(Base64.decode(signature.getBytes(StandardCharsets.UTF_8)))) {<NEW_LINE>CMSProc...
> signers = signerStore.getSigners();
1,503,906
public ActionRequestValidationException validate() {<NEW_LINE>ActionRequestValidationException validationException = targetIndexRequest == null ? null : targetIndexRequest.validate();<NEW_LINE>if (sourceIndex == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>if (targetIndexRequest == null) {<NEW_LINE>validationException =...
validationException = addValidationError("source index is missing", validationException);
738,426
public Path parsePath(String path) {<NEW_LINE>LOGGER.trace(String.format("parsePath(%s)", path));<NEW_LINE>if ("".equals(path)) {<NEW_LINE>return new File(cwd).toPath();<NEW_LINE>}<NEW_LINE>File file;<NEW_LINE>try {<NEW_LINE>URI resolved = mapper.resolve(path);<NEW_LINE>LOGGER.trace(String.format("import-map.resolve(%s...
resolveFile(resolved.getPath());
1,749,257
public void run(IAction action) {<NEW_LINE>if (navigator == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Set<BugPattern> filtered = FindbugsPlugin.getFilteredPatterns();<NEW_LINE>Set<BugCode> filteredTypes = FindbugsPlugin.getFilteredPatternTypes();<NEW_LINE>FilterBugsDialog dialog = new FilterBugsDialog(navigator.getS...
] expandedElements = viewer.getExpandedElements();
963,508
protected void renderLast(PonderWorld world, MultiBufferSource buffer, PoseStack ms, float fade, float pt) {<NEW_LINE>redraw = false;<NEW_LINE>if (selectedBlock == null)<NEW_LINE>return;<NEW_LINE>BlockState blockState = world.getBlockState(selectedBlock);<NEW_LINE>if (blockState.isAir())<NEW_LINE>return;<NEW_LINE>Voxel...
colored(0xefefef).disableNormals();
888,094
public Response addEvent(String content) throws IOException {<NEW_LINE>ObjectMapper mapper = new ObjectMapper();<NEW_LINE>LOGGER.info(String.format("JSON content: '%s'", content));<NEW_LINE>JsonNode input = mapper.readTree(content);<NEW_LINE>String eventType = getStringField(input, "eventType");<NEW_LINE>String groupTy...
createJsonGenerator(baos, JsonEncoding.UTF8);
1,309,762
public static MethodParameter[] customize(String[] pNames, MethodParameter[] parameters, Optional<DelegatingMethodParameterCustomizer> optionalDelegatingMethodParameterCustomizer) {<NEW_LINE>List<MethodParameter> explodedParameters = new ArrayList<>();<NEW_LINE>for (int i = 0; i < parameters.length; ++i) {<NEW_LINE>Met...
.customize(p, methodParameter));
124,382
Map<String, String> kafkaPodAnnotations(int brokerId, boolean storageAnnotation) {<NEW_LINE>Map<String, String> podAnnotations = new LinkedHashMap<>(9);<NEW_LINE>podAnnotations.put(Ca.ANNO_STRIMZI_IO_CLUSTER_CA_CERT_GENERATION, String.valueOf(ModelUtils.caCertGeneration(this.clusterCa)));<NEW_LINE>podAnnotations.put(Ca...
ANNO_STRIMZI_CUSTOM_LISTENER_CERT_THUMBPRINTS, customListenerCertificateThumbprints.toString());
1,599,045
public void close(CTabFolderEvent event) {<NEW_LINE>TabbedEntry entry = (TabbedEntry) <MASK><NEW_LINE>UISWTViewBuilderCore builder = entry == null ? null : entry.getEventListenerBuilder();<NEW_LINE>if (entry != null) {<NEW_LINE>entry.setUserInitiatedClose();<NEW_LINE>}<NEW_LINE>TabbedEntry prev = getPrevious(entry);<NE...
event.item.getData("TabbedEntry");
1,229,932
public static DescribeMasterSlaveServerGroupAttributeResponse unmarshall(DescribeMasterSlaveServerGroupAttributeResponse describeMasterSlaveServerGroupAttributeResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeMasterSlaveServerGroupAttributeResponse.setRequestId(_ctx.stringValue("DescribeMasterSlaveServerGroupAttr...
(_ctx.stringValue("DescribeMasterSlaveServerGroupAttributeResponse.MasterSlaveServerGroupName"));
1,534,488
public void start() throws LifecycleException {<NEW_LINE>if (!initialized)<NEW_LINE>init();<NEW_LINE>// Validate and update our current component state<NEW_LINE>if (started) {<NEW_LINE>if (log.isLoggable(Level.INFO)) {<NEW_LINE>log.log(Level.INFO, LogFacade.MANAGER_STARTED_INFO);<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>}<...
log(Level.FINEST, "Force random number initialization starting");
465,378
protected void processFingerprintVerification(XmppUri uri) {<NEW_LINE>if (mConversation != null && mAccount != null && uri.hasFingerprints() && mAccount.getAxolotlService().getCryptoTargets(mConversation).contains(uri.getJid())) {<NEW_LINE>boolean performedVerification = xmppConnectionService.verifyFingerprints(mAccoun...
Toast.LENGTH_SHORT).show();
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...
spaceWidth = fontMetrics.stringWidth(" ");
1,634,294
final GetParametersByPathResult executeGetParametersByPath(GetParametersByPathRequest getParametersByPathRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getParametersByPathRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "GetParametersByPath");
37,770
// /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>// TradeProtocol implementation<NEW_LINE>// /////////////////////////////////////////////////////////////////////////////////////////<NEW_LINE>@Override<NEW_LINE>protected void onAckMessage(AckMessage ackMessage, NodeA...
), ackMessage.getSourceUid());
754,920
private <T extends org.eclipse.microprofile.metrics.Metric, U extends Annotation> T produceMetric(MetricRegistry registry, InjectionPoint ip, Class<U> annotationClass, Supplier<Map<MetricID, T>> getTypedMetricsFn, BiFunction<Metadata, Tag[], T> registerFn, Class<T> clazz) {<NEW_LINE>final Metric metricAnno = ip.getAnno...
(metricAnno, ip), tags);
931,016
private void initAttrs(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {<NEW_LINE>float density = context.getResources().getDisplayMetrics().density;<NEW_LINE>float scaledDensity = context.getResources().getDisplayMetrics().scaledDensity;<NEW_LINE>TypedArray typedArray = context.obtainStyledAttr...
) (1 * density)));
14,937
private boolean checkConvergence(Collection<Individuum> pop) {<NEW_LINE>if (pop.isEmpty()) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>// Gene occurrence counter<NEW_LINE>int[][] occur = new int[dim][phi + 1];<NEW_LINE>// Count gene occurrences<NEW_LINE>for (Individuum ind : pop) {<NEW_LINE>short[] gene = ind.getGene()...
val = gene[d] - GENE_OFFSET;
1,033,267
public void onRender(MatrixStack matrixStack, float partialTicks) {<NEW_LINE>if (currentBlock == null)<NEW_LINE>return;<NEW_LINE>// GL settings<NEW_LINE>GL11.glEnable(GL11.GL_BLEND);<NEW_LINE>GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA);<NEW_LINE>GL11.glEnable(GL11.GL_LINE_SMOOTH);<NEW_LINE><MASK><N...
GL11.glEnable(GL11.GL_CULL_FACE);
1,334,922
public void run() {<NEW_LINE>id2Bean.clear();<NEW_LINE>name2Bean.clear();<NEW_LINE>beans.clear();<NEW_LINE>alias2Name.clear();<NEW_LINE>Node rootNode = SpringXMLConfigEditorUtils.getDocumentRoot(document);<NEW_LINE>if (rootNode == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>NodeList childNodes = rootNo...
support = XMLSyntaxSupport.getSyntaxSupport(document);
1,288,030
public static GetDesktopGroupDetailResponse unmarshall(GetDesktopGroupDetailResponse getDesktopGroupDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>getDesktopGroupDetailResponse.setRequestId(_ctx.stringValue("GetDesktopGroupDetailResponse.RequestId"));<NEW_LINE>List<Desktop> desktops = new ArrayList<Desktop>();<NE...
("GetDesktopGroupDetailResponse.Desktops[" + i + "].OfficeSiteName"));
1,701,304
public AssociateFileSystemAliasesResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AssociateFileSystemAliasesResult associateFileSystemAliasesResult = new AssociateFileSystemAliasesResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i...
int originalDepth = context.getCurrentDepth();
286,585
protected final void register(Element el, Class<? extends Annotation> annotation, TypeMirror type, String path, int position, String... supersedes) {<NEW_LINE>if (el.getKind() != ElementKind.CLASS) {<NEW_LINE>processingEnv.getMessager().printMessage(Kind.ERROR, annotation.getName() + " is not applicable to a " + el.get...
, findAnnotationValue(ann, "service"));
1,629,436
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>if (controller != null) {<NEW_LINE>List<UUID> players = new ArrayList<>();<NEW_LINE>Permanent gomazoa = game.getPermanent(source.getSourceId());<NEW_LINE>if (gomazoa != null) {<NEW_LINE>cont...
getPlayer(blockedByGomazoa.getOwnerId());
675,997
public static ListExchangesResponse unmarshall(ListExchangesResponse listExchangesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listExchangesResponse.setRequestId(_ctx.stringValue("ListExchangesResponse.RequestId"));<NEW_LINE>Data data = new Data();<NEW_LINE>data.setNextToken(_ctx.stringValue("ListExchangesResponse.Da...
= new ArrayList<ExchangeVO>();
772,054
List<RowLock> acquireRowlocks(Map<KeyExtent, List<ServerConditionalMutation>> updates, Map<KeyExtent, List<ServerConditionalMutation>> deferred) {<NEW_LINE>ArrayList<RowLock> locks = new ArrayList<>();<NEW_LINE>for (List<ServerConditionalMutation> scml : updates.values()) {<NEW_LINE>for (ServerConditionalMutation scm :...
rowsNotLocked.add(rowLock.rowSeq);
1,738,390
public void validateCertificateChain(List<X509Certificate> certificateChain) throws UaException {<NEW_LINE>PKIXCertPathBuilderResult certPathResult;<NEW_LINE>try {<NEW_LINE>certPathResult = buildTrustedCertPath(certificateChain, trustListManager.getTrustedCertificates(), trustListManager.getIssuerCertificates());<NEW_L...
certificateChain.forEach(trustListManager::addRejectedCertificate);
676,125
public SDVariable tensorMmul(SDVariable x, SDVariable y, int[] dimensionsX, int[] dimensionsY, boolean transposeX, boolean transposeY, boolean transposeZ) {<NEW_LINE>SDValidation.validateNumerical("tensorMmul", "x", x);<NEW_LINE>SDValidation.validateNumerical("tensorMmul", "y", y);<NEW_LINE>Preconditions.checkArgument(...
transposeY, transposeZ).outputVariable();
314,829
void modelConverterTest(Context ctx) throws TestFailedException {<NEW_LINE>System.out.println("ModelConverterTest");<NEW_LINE>Expr<RealSort> xr = ctx.mkConst(ctx.mkSymbol("x"), ctx.mkRealSort());<NEW_LINE>Expr<RealSort> yr = ctx.mkConst(ctx.mkSymbol("y"), ctx.mkRealSort());<NEW_LINE>Goal g4 = ctx.mkGoal(true, false, fa...
mkReal(1, 1)));
1,525,071
@Produces(APPLICATION_JSON)<NEW_LINE>@ApiOperation(value = "Invalidates Caches per tenant level")<NEW_LINE>@ApiResponses(value = { @ApiResponse(code = 204, message = "Successful operation") })<NEW_LINE>public Response invalidatesCacheByTenant(@javax.ws.rs.core.Context final HttpServletRequest request) throws TenantApiE...
cacheControllerDispatcher.getCacheController(CacheType.TENANT);
376,220
public static void zoom(int AD_Table_ID, int Record_ID) {<NEW_LINE>String TableName = null;<NEW_LINE>int AD_Window_ID = 0;<NEW_LINE>int PO_Window_ID = 0;<NEW_LINE>String sql = "SELECT TableName, AD_Window_ID, PO_Window_ID FROM AD_Table WHERE AD_Table_ID=?";<NEW_LINE>try {<NEW_LINE>PreparedStatement pstmt = DB.prepareSt...
PO_Window_ID = rs.getInt(3);