idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
855,328
public static void waitForBulkTransfer(Iterable<? extends ListenableFuture<?>> transfers, boolean cancelRemainingOnInterrupt) throws BulkTransferException, InterruptedException {<NEW_LINE>BulkTransferException bulkTransferException = null;<NEW_LINE>InterruptedException interruptedException = null;<NEW_LINE>boolean inte...
.currentThread().isInterrupted();
456,709
public StartBuildBatchResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>StartBuildBatchResult startBuildBatchResult = new StartBuildBatchResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
1,452,875
public void updateBlock(GlowBlock block) {<NEW_LINE>if (isNearWater(block) || GlowBiomeClimate.isRainy(block)) {<NEW_LINE>// set this block as fully wet<NEW_LINE>block.setData((byte) 7);<NEW_LINE>} else if (block.getData() > 0) {<NEW_LINE>// if this block is wet, it becomes less wet<NEW_LINE>block.// if this block is w...
getInstance().callEvent(fadeEvent);
1,485,332
private void createVideoView() {<NEW_LINE>mVideoView = new <MASK><NEW_LINE>dialog = new ProgressDialog(RhodesActivity.safeGetInstance());<NEW_LINE>dialog.setMessage("Loading Video");<NEW_LINE>dialog.setIndeterminate(true);<NEW_LINE>dialog.setCancelable(false);<NEW_LINE>mVideoView.setZOrderMediaOverlay(true);<NEW_LINE>m...
RhoVideoView(RhodesService.getContext());
1,594,397
public static void applyTheme(AppCompatActivity activity, @NonNull ThemeType themePref) {<NEW_LINE>switch(themePref) {<NEW_LINE>case LIGHT_MODE:<NEW_LINE>{<NEW_LINE>AppCompatDelegate.setDefaultNightMode(AppCompatDelegate.MODE_NIGHT_NO);<NEW_LINE>if (activity != null) {<NEW_LINE>activity.getDelegate(<MASK><NEW_LINE>}<NE...
).setLocalNightMode(AppCompatDelegate.MODE_NIGHT_NO);
1,528,934
private List<String> generateContent(List<String> currentDefaultEnvLines) {<NEW_LINE>List<String> newDefaultEnvLines = new ArrayList<>();<NEW_LINE>Set<String> seenNames = new TreeSet<>();<NEW_LINE>for (String line : currentDefaultEnvLines) {<NEW_LINE>String[] items = line.split(" ");<NEW_LINE>if (items.length < 2) {<NE...
add(operation.toLine());
306,391
public void build() {<NEW_LINE>// TODO Check Map to Map mapping<NEW_LINE>FieldMap result;<NEW_LINE>if (srcField.isMapTypeCustomGetterSetterField() || destField.isMapTypeCustomGetterSetterField() || classMap.isSrcClassMapTypeCustomGetterSetter() || classMap.isDestClassMapTypeCustomGetterSetter()) {<NEW_LINE>result = new...
classMap, beanContainer, destBeanCreator, propertyDescriptorFactory);
1,738,053
public static GetTaobaoOrderResponse unmarshall(GetTaobaoOrderResponse getTaobaoOrderResponse, UnmarshallerContext context) {<NEW_LINE>getTaobaoOrderResponse.setRequestId(context.stringValue("GetTaobaoOrderResponse.RequestId"));<NEW_LINE>getTaobaoOrderResponse.setSuccess(context.booleanValue("GetTaobaoOrderResponse.Suc...
("GetTaobaoOrderResponse.Orders[" + i + "].orderRecordId"));
1,438,871
private void init() {<NEW_LINE>logger.info("metadata init().");<NEW_LINE>writeLock.lock();<NEW_LINE>try {<NEW_LINE>// Required keys<NEW_LINE>initCache(CLUSTER_KEY);<NEW_LINE>// If stores definition storage engine is not null, initialize metadata<NEW_LINE>// Add the mapping from key to the storage engine used<NEW_LINE>i...
VoldemortState.NORMAL_SERVER.toString());
1,090,575
private static void realExecute() {<NEW_LINE>MatrixLog.i(TAG, "[realExecute] timestamp:%s", System.currentTimeMillis());<NEW_LINE>sCurrentDiffTime = SystemClock.uptimeMillis() - sDiffTime;<NEW_LINE>sHandler.removeCallbacksAndMessages(null);<NEW_LINE>sHandler.<MASK><NEW_LINE>sHandler.postDelayed(checkStartExpiredRunnabl...
postDelayed(sUpdateDiffTimeRunnable, Constants.TIME_UPDATE_CYCLE_MS);
161,336
List<ZeebePartition> constructPartitions(final RaftPartitionGroup partitionGroup, final List<PartitionListener> partitionListeners, final TopologyManager topologyManager) {<NEW_LINE>final var partitions = new ArrayList<ZeebePartition>();<NEW_LINE>final var communicationService = clusterServices.getCommunicationService(...
var membershipService = clusterServices.getMembershipService();
1,153,229
private XmlTiers createXmlTiers(@NonNull final PayantType payantType) {<NEW_LINE>final XmlTiersBuilder xtiers = XmlTiers.builder();<NEW_LINE>xtiers.type(Tiers.PAYANT);<NEW_LINE>xtiers.paymentPeriod(payantType.getPaymentPeriod());<NEW_LINE>xtiers.biller(createXmlBiller(payantType.getBiller()));<NEW_LINE>final DebitorAdd...
(payantType.getPatient()));
666,090
protected void applyProperties(ObjectDefinition bean, Object instance, EcoExecutionContext context) throws IllegalAccessException, InvocationTargetException, NoSuchFieldException {<NEW_LINE>List<PropertyDefinition> props = bean.getProperties();<NEW_LINE>Class clazz = instance.getClass();<NEW_LINE>if (props != null) {<N...
clazz, prop.getName());
685,167
protected void applyChange(AlterTable alterTable) {<NEW_LINE>MTable table = getTable(alterTable.getName());<NEW_LINE>if (table == null) {<NEW_LINE>throw new IllegalStateException("Table [" + alterTable.getName() + "] does not exist in model?");<NEW_LINE>}<NEW_LINE>// Handle Tablespace change<NEW_LINE>TablespaceMeta ts ...
toTablespace(alterTable.getLobTablespace());
916,768
private static void dump(IndentWriter iw, Control comp, Set<Object> done) {<NEW_LINE>if (done.contains(comp)) {<NEW_LINE>iw.println("<RECURSIVE!>");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>done.add(comp);<NEW_LINE>String str = comp.getClass().getName();<NEW_LINE>int pos = str.lastIndexOf(".");<NEW_LINE>if (pos != -1) {<NE...
Composite) comp).getLayoutData();
1,370,943
public static org.python.Object __lt__(org.python.Object v, org.python.Object w) {<NEW_LINE>org.python.Object result = org<MASK><NEW_LINE>boolean reflectedChecked = v.type() != w.type() && ((org.python.types.Bool) org.Python.isinstance(w, v.type())).value;<NEW_LINE>boolean v_builtin = isBuiltin(v);<NEW_LINE>boolean w_b...
.python.types.NotImplementedType.NOT_IMPLEMENTED;
33,620
public <T> T createValid(@NonNull Class<T> beanType, Object... arguments) throws ConstraintViolationException {<NEW_LINE>ArgumentUtils.requireNonNull("type", beanType);<NEW_LINE>@SuppressWarnings("unchecked")<NEW_LINE>final BeanIntrospection<T> introspection = (BeanIntrospection<T>) getBeanIntrospection(beanType);<NEW_...
errors = validate(introspection, instance);
190,036
protected String doIt() throws Exception {<NEW_LINE>MViewDefinition join = new MViewDefinition(getCtx(), p_Record_ID, get_TrxName());<NEW_LINE>for (MColumn attr : join.getEntityAttributes()) {<NEW_LINE>MViewColumn column = MViewColumn.get(join, attr);<NEW_LINE>if (column != null)<NEW_LINE>continue;<NEW_LINE>column = ne...
"." + attr.getColumnName());
1,792,135
public void swapToJVMConfigProp() throws Exception {<NEW_LINE>Log.info(c, <MASK><NEW_LINE>ServerConfiguration newServer = emptyConfiguration.clone();<NEW_LINE>LdapRegistry ldap = getLdapRegistryForKeytabWithContextPool();<NEW_LINE>// start with default config<NEW_LINE>addKerberosConfigAndKeytab(newServer);<NEW_LINE>new...
testName.getMethodName(), "Swap config from Kerberos file to JVM property");
1,694,361
public void pluginStateChanged(PluginContext pluginContext, boolean enabled) {<NEW_LINE>// Reflect this change also in the database<NEW_LINE>Condition pluginCondition = new AttributeCondition(StorePackage.eINSTANCE.getPluginDescriptor_PluginClassName(), new StringLiteral(pluginContext.getPlugin().getClass().getName()))...
bimDatabase.createSession(OperationType.POSSIBLY_WRITE);
1,820,080
private File computeDestinationDir(File rootDestDir) throws IOException, FileNotFoundException {<NEW_LINE>StringBuilder buf = new StringBuilder(rootDestDir.getPath());<NEW_LINE>String prevToken = null;<NEW_LINE>// NOI18N<NEW_LINE>StringTokenizer // NOI18N<NEW_LINE>parser = new StringTokenizer(theExpectedClassName, "/",...
buf.append(File.separatorChar);
220,552
protected void compute() {<NEW_LINE>boolean canCompute = (end - start) < threshold;<NEW_LINE>if (canCompute) {<NEW_LINE>if (v instanceof CompIntDoubleVector) {<NEW_LINE>apply((CompIntDoubleVector) v, op, (CompIntDoubleVector) result, start, end);<NEW_LINE>} else if (v instanceof CompIntFloatVector) {<NEW_LINE>apply((Co...
CompLongIntVector) result, start, end);
1,416,233
public void addNodeSet(INodeSet nodeSet) {<NEW_LINE>NodeSetImpl iNodeEntries = new NodeSetImpl();<NEW_LINE>for (INodeEntry iNodeEntry : nodeSet) {<NEW_LINE>INodeEntry node = getNode(iNodeEntry.getNodename());<NEW_LINE>if (null != node) {<NEW_LINE>// merge attributes<NEW_LINE>HashMap<String, String> newAttributes = new ...
addAll(node.getTags());
476,923
public Map<String, Object> deleteTenantById(User loginUser, int id) throws Exception {<NEW_LINE>Map<String, Object> result = new HashMap<>();<NEW_LINE>if (isNotAdmin(loginUser, result)) {<NEW_LINE>return result;<NEW_LINE>}<NEW_LINE>Tenant tenant = tenantMapper.queryById(id);<NEW_LINE>if (tenant == null) {<NEW_LINE>putM...
DELETE_TENANT_BY_ID_FAIL_USERS, userList.size());
280,112
private Object convertFieldValue(SField field, Object val) throws ConvertException {<NEW_LINE>if (val instanceof EnumValueDescriptor) {<NEW_LINE>EnumValueDescriptor enumValueDescriptor = (EnumValueDescriptor) val;<NEW_LINE>Class<?> enumClass;<NEW_LINE>try {<NEW_LINE>enumClass = Class.forName("org.bimserver.interfaces.o...
new Date((Long) val);
656,325
public void run() {<NEW_LINE>TcpProxy tcp = TcpProxy.getTcpProxy(serverId);<NEW_LINE>Pack p = null;<NEW_LINE>try {<NEW_LINE>MapPack param = new MapPack();<NEW_LINE>param.put("objHash", agentDailyProxy.getObjHashLv(date, serverId, CounterConstants.MARIA_PLUGIN));<NEW_LINE>param.put("sdate", date);<NEW_LINE>param.put("ed...
primaryXAxis.setRange(stime, etime);
328,102
public String run(EjbJarMetadata metadata) {<NEW_LINE>Ejb <MASK><NEW_LINE>if (ejb == null) {<NEW_LINE>return ref.getMessageDestinationRefName();<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>// do not add if there is already an existing destination ref (see #85673)<NEW_LINE>for (MessageDestinationRef mdRef : ejb.getMessageDestina...
ejb = metadata.findByEjbClass(referencingClass);
811,905
static RemoteViews updateWidget(final int appWidgetId, final Context context, final int steps) {<NEW_LINE>final SharedPreferences prefs = context.getSharedPreferences("Widgets", Context.MODE_PRIVATE);<NEW_LINE>final PendingIntent pendingIntent = PendingIntent.getActivity(context, appWidgetId, new Intent(context, Activi...
R.id.widget, pendingIntent);
1,626,083
public boolean needProcess() throws Exception {<NEW_LINE>if (_segmentMetadata.getTotalDocs() == 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try (SegmentDirectory.Reader segmentReader = _segmentDirectory.createReader()) {<NEW_LINE>// Check if there is need to update default columns according to the schema.<NEW_LINE>...
LOGGER.info("Found index type: {} needs updates", type);
459,344
public BLangNode transform(UnionTypeDescriptorNode unionTypeDescriptorNode) {<NEW_LINE>List<TypeDescriptorNode> nodes = flattenUnionType(unionTypeDescriptorNode);<NEW_LINE>List<TypeDescriptorNode> finiteTypeElements = new ArrayList<>();<NEW_LINE>List<List<TypeDescriptorNode>> unionTypeElementsCollection = new ArrayList...
.add(createTypeNode(unionElement));
1,631,114
public String initNetwork(@Nullable String networkName, @Nullable String networkPrefix) {<NEW_LINE>try {<NEW_LINE>WebTarget webTarget = getTarget(CoordConsts.SVC_RSC_INIT_NETWORK);<NEW_LINE>// postData will close it<NEW_LINE>@SuppressWarnings("PMD.CloseResource")<NEW_LINE>MultiPart multiPart = new MultiPart();<NEW_LINE...
multiPart, CoordConsts.SVC_KEY_NETWORK_NAME, networkName);
800,352
private void createNewLogFile(String dirName, long startLogIndex) throws IOException {<NEW_LINE>lock.lock();<NEW_LINE>try {<NEW_LINE><MASK><NEW_LINE>long endLogIndex = Long.MAX_VALUE;<NEW_LINE>String fileNamePrefix = dirName + File.separator + startLogIndex + FILE_NAME_SEPARATOR + endLogIndex + FILE_NAME_SEPARATOR + ne...
long nextVersion = versionController.nextVersion();
97,393
public static ListExtendfilesResponse unmarshall(ListExtendfilesResponse listExtendfilesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listExtendfilesResponse.setRequestId(_ctx.stringValue("ListExtendfilesResponse.RequestId"));<NEW_LINE>List<ResultItem> result = new ArrayList<ResultItem>();<NEW_LINE>for (int i = 0; i <...
("ListExtendfilesResponse.Result[" + i + "].filePath"));
1,261,450
private static String createElasticTranscoderJob() throws Exception {<NEW_LINE>// Setup the job input using the provided input key.<NEW_LINE>JobInput input = new JobInput().withKey(INPUT_KEY);<NEW_LINE>// Setup the job output using the provided input key to generate an output key.<NEW_LINE>List<CreateJobOutput> outputs...
.getJob().getId();
210,223
private AuthenticationResult handleJwtSSO(HttpServletRequest req, HttpServletResponse res) {<NEW_LINE>String jwtCookieName = JwtSSOTokenHelper.getJwtCookieName();<NEW_LINE>if (jwtCookieName == null) {<NEW_LINE>// jwtsso feature not active<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>String encodedjwtssotoken = ssoCookieHe...
, new Object[] {});
522,172
final ListOnPremisesInstancesResult executeListOnPremisesInstances(ListOnPremisesInstancesRequest listOnPremisesInstancesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listOnPremisesInstancesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
endClientExecution(awsRequestMetrics, request, response);
1,176,537
public void insertNodesInto(@NotNull final N[] children, @NotNull final N parent, final int index) {<NEW_LINE>// Event Dispatch Thread check<NEW_LINE>WebLookAndFeel.checkEventDispatchThread();<NEW_LINE>// Ensure model is installed<NEW_LINE>checkInstalled();<NEW_LINE>// Ensure node children are loaded<NEW_LINE>if (paren...
parent.getId(), cachedChildren);
468,058
public OpenAPI3RouterFactory mountServicesFromExtensions() {<NEW_LINE>for (Map.Entry<String, OperationValue> opEntry : operations.entrySet()) {<NEW_LINE>OperationValue operation = opEntry.getValue();<NEW_LINE>Object extensionVal = OpenApi3Utils.getAndMergeServiceExtension(OPENAPI_EXTENSION, OPENAPI_EXTENSION_ADDRESS, O...
createWrongExtension("Extension " + OPENAPI_EXTENSION + " must be or string or a JsonObject");
599,705
final InetSocketAddress open(String host, int port, int timeoutMillis, boolean useParallel, boolean useTnir, boolean isTnirFirstAttempt, int timeoutMillisForFullTimeout, String iPAddressPreference) throws SQLServerException {<NEW_LINE>if (logger.isLoggable(Level.FINER))<NEW_LINE>logger.finer(this.toString() + ": Openin...
int socketTimeout = con.getSocketTimeoutMilliseconds();
498,129
private void addDirtyData(DatabaseVersion newDatabaseVersion) {<NEW_LINE>Iterator<DatabaseVersion> dirtyDatabaseVersions = localDatabase.getDirtyDatabaseVersions();<NEW_LINE>if (!dirtyDatabaseVersions.hasNext()) {<NEW_LINE>logger.log(Level.INFO, "No DIRTY data found in database (no dirty databases); Nothing to do here....
DatabaseVersion dirtyDatabaseVersion = dirtyDatabaseVersions.next();
640,303
private void executeScan(final Project project, final ScanScope scope, final ToolWindow toolWindow) {<NEW_LINE>try {<NEW_LINE>setProgressText(toolWindow, "plugin.status.in-progress.project");<NEW_LINE>Runnable scanAction = null;<NEW_LINE>if (scope == ScanScope.Everything) {<NEW_LINE>scanAction = new ScanAllFilesInProje...
, sourceRoots, getSelectedOverride(toolWindow));
239,653
private void addSelects() {<NEW_LINE>Iterator<DefinedType> typeIter = schema<MASK><NEW_LINE>while (typeIter.hasNext()) {<NEW_LINE>DefinedType type = typeIter.next();<NEW_LINE>if (type instanceof SelectType) {<NEW_LINE>EClass selectType = getOrCreateEClass(type.getName());<NEW_LINE>selectType.setInterface(true);<NEW_LIN...
.getTypes().iterator();
1,537,512
public DescribeQueryDefinitionsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeQueryDefinitionsResult describeQueryDefinitionsResult = new DescribeQueryDefinitionsResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe...
int originalDepth = context.getCurrentDepth();
1,540,962
public static GetInventoryResponse unmarshall(GetInventoryResponse getInventoryResponse, UnmarshallerContext _ctx) {<NEW_LINE>getInventoryResponse.setSuccess(_ctx.booleanValue("GetInventoryResponse.Success"));<NEW_LINE>Data data = new Data();<NEW_LINE>List<ResultObjectItem> resultObject = new ArrayList<ResultObjectItem...
("GetInventoryResponse.Data.ResultObject[" + i + "].BuyerId"));
1,105,656
public static DescribeSlowLogRecordsResponse unmarshall(DescribeSlowLogRecordsResponse describeSlowLogRecordsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeSlowLogRecordsResponse.setRequestId(_ctx.stringValue("DescribeSlowLogRecordsResponse.RequestId"));<NEW_LINE>describeSlowLogRecordsResponse.setTotalRecordCou...
("DescribeSlowLogRecordsResponse.Items[" + i + "].SQLText"));
1,042,720
protected void renderTangents(Graphics2D g2, double scale) {<NEW_LINE>DogArray<Tangents> tangents = detector.getKeypointFinder().getTangents();<NEW_LINE>BasicStroke thick = new BasicStroke(2.0f);<NEW_LINE>BasicStroke thin = new BasicStroke(1.0f);<NEW_LINE>int radius = Math.max(1, (int) (3 * scale + 0.5));<NEW_LINE>int ...
scale * p.x + 0.5);
736,105
private ErrorCode checkIfSpecifyPrimaryStorage(VmInstanceSpec spec) {<NEW_LINE>if (spec.getRequiredPrimaryStorageUuidForRootVolume() == null) {<NEW_LINE>ErrorCode errorCode = operr("The cluster[uuid=%s] mounts multiple primary storage[LocalStorage, other non-LocalStorage primary storage], You must specify the primary s...
getDestHost().getClusterUuid());
1,750,968
public static void planarToBuffered_U8(Planar<GrayU8> src, DataBufferInt buffer, WritableRaster dst) {<NEW_LINE>if (src.getNumBands() != dst.getNumBands())<NEW_LINE>throw new IllegalArgumentException("Unequal number of bands src = " + src.getNumBands() + " dst = " + dst.getNumBands());<NEW_LINE>final int[] dstData = bu...
.startIndex + y * src.stride;
710,036
private void loadInitData(final String tagGroup, final long stime, final long etime, final MapValue filterMv) {<NEW_LINE>lastIndex = 0;<NEW_LINE>lastSize = 0;<NEW_LINE>firstTime = 0;<NEW_LINE>lastTime = 0;<NEW_LINE>firstTxid = 0;<NEW_LINE>lastTxid = 0;<NEW_LINE>leftBtn.setEnabled(false);<NEW_LINE>rightBtn.setEnabled(fa...
result.size() - 1);
242,011
final GetRecordsResult executeGetRecords(GetRecordsRequest getRecordsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getRecordsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
409,070
public void valueChanged(ListSelectionEvent e) {<NEW_LINE>int depth = updateDepth.incrementAndGet();<NEW_LINE>try {<NEW_LINE>if (depth != 1) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>int minIndex = viewFrame.errorList.getMinSelectionIndex();<NEW_LINE>int maxIndex <MASK><NEW_LINE>int i = minIndex;<NEW_LINE>while (i <= maxI...
= viewFrame.errorList.getMaxSelectionIndex();
1,143,612
private void removeMemberOfUnitController(Business business, Person person) throws Exception {<NEW_LINE>EntityManager em = business.entityManagerContainer().get(Unit.class);<NEW_LINE><MASK><NEW_LINE>CriteriaQuery<Unit> cq = cb.createQuery(Unit.class);<NEW_LINE>Root<Unit> root = cq.from(Unit.class);<NEW_LINE>Predicate p...
CriteriaBuilder cb = em.getCriteriaBuilder();
146,945
private void printInternal(VirtualFrame frame, PythonObjectFactory factory, TracebackBuiltins.GetTracebackFrameNode getTbFrameNode, TracebackBuiltins.MaterializeTruffleStacktraceNode materializeStNode, Object out, PTraceback traceback, long limit) {<NEW_LINE>int depth = 0;<NEW_LINE>String lastFile = null;<NEW_LINE>int ...
printLineRepeated(frame, out, cnt);
547,108
public void testCreateSharedDurableConsumer_JRException_TCP(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>JMSContext jmsContext = tcfTCP.createContext();<NEW_LINE>JMSConsumer jmsConsumer = jmsContext.createDurableConsumer(topic1, "DURATEST8");<NEW_LINE><MASK><NEW_LINE>TextMessage...
JMSProducer jmsProducer = jmsContext.createProducer();
1,436,214
public T doRead(IIdType theId, RequestDetails theRequest, boolean theDeletedOk) {<NEW_LINE>assert TransactionSynchronizationManager.isActualTransactionActive();<NEW_LINE>// Notify interceptors<NEW_LINE>if (theRequest != null && theRequest.getServer() != null) {<NEW_LINE>ActionRequestDetails requestDetails = new ActionR...
theRequest, getResourceName(), theId);
558,925
private AmazonS3Exception newAmazonS3Exception(String errmsg, HttpResponse httpResponse) {<NEW_LINE>final AmazonS3Exception ase = new AmazonS3Exception(errmsg);<NEW_LINE>final int statusCode = httpResponse.getStatusCode();<NEW_LINE>ase.setErrorCode(statusCode + " " + httpResponse.getStatusText());<NEW_LINE>ase.setStatu...
> headers = httpResponse.getHeaders();
1,000,945
public void initialize() {<NEW_LINE>listener = (viewPath, data) -> {<NEW_LINE>if (viewPath.size() != 4 || viewPath.indexOf(bisq.desktop.main.dao.bonding.BondingView.class) != 2)<NEW_LINE>return;<NEW_LINE>selectedViewClass = viewPath.tip();<NEW_LINE>loadView(selectedViewClass, data);<NEW_LINE>};<NEW_LINE>toggleGroup = n...
dao.bonding.BondingView.class);
409,456
public boolean deleteAccountFromProject(long projectId, String accountName) {<NEW_LINE>Account caller = CallContext.current().getCallingAccount();<NEW_LINE>// check that the project exists<NEW_LINE>Project project = getProject(projectId);<NEW_LINE>if (project == null) {<NEW_LINE>InvalidParameterValueException ex = new ...
projectId, account.getId());
1,369,097
private static int parseMonth(ThreadContext context, IRubyObject _month) {<NEW_LINE>if (_month.isNil())<NEW_LINE>return 1;<NEW_LINE>int month;<NEW_LINE>IRubyObject tmp = _month.checkStringType();<NEW_LINE>if (!tmp.isNil()) {<NEW_LINE>String monthStr = tmp.toString().toLowerCase();<NEW_LINE>if (monthStr.length() == 3) {...
runtime.newArgumentError("Argument out of range: for month: " + month);
1,779,453
@Produces(MediaType.APPLICATION_JSON)<NEW_LINE>@Operation(summary = "Return the reduced configuration", responses = { @ApiResponse(responseCode = "200", description = "OK") })<NEW_LINE>public Response putFullConfigApi(@Context UriInfo uri, @PathParam("username") @Parameter(description = "username") String username, Str...
uri, HueResponse.UNAUTHORIZED, "Not Authorized");
1,549,180
final ListSimulationJobBatchesResult executeListSimulationJobBatches(ListSimulationJobBatchesRequest listSimulationJobBatchesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listSimulationJobBatchesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri...
(super.beforeMarshalling(listSimulationJobBatchesRequest));
252,947
public static GrayPushMsConfigDataResponse unmarshall(GrayPushMsConfigDataResponse grayPushMsConfigDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>grayPushMsConfigDataResponse.setRequestId(_ctx.stringValue("GrayPushMsConfigDataResponse.RequestId"));<NEW_LINE>grayPushMsConfigDataResponse.setResultCode(_ctx.stringValu...
= new ArrayList<PushResultItem>();
894,909
public static void vertical3(Kernel1D_S32 kernel, GrayS16 input, GrayI16 output, int skip) {<NEW_LINE>final short[] dataSrc = input.data;<NEW_LINE>final short[] dataDst = output.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final i...
indexDst++] = (short) total;
459,122
private PrepareCHEntry doAddShortcut(PrepareCHEntry edgeFrom, PrepareCHEntry edgeTo, int origEdgeCount) {<NEW_LINE>int from = edgeFrom.parent.adjNode;<NEW_LINE>int adjNode = edgeTo.adjNode;<NEW_LINE>final PrepareGraphEdgeIterator iter = existingShortcutExplorer.setBaseNode(from);<NEW_LINE>while (iter.next()) {<NEW_LINE...
double existingWeight = iter.getWeight();
1,410,775
private void _notifyMigratedFromInstance(String fromOwnerId) {<NEW_LINE>PayaraCluster cluster = Globals.getDefaultBaseServiceLocator().getService(PayaraCluster.class);<NEW_LINE>PayaraInstanceImpl instance = Globals.getDefaultBaseServiceLocator().getService(PayaraInstanceImpl.class);<NEW_LINE>if (cluster == null || inst...
publish(EjbTimerEvent.EJB_TIMER_EVENTS_TOPIC, message);
531,817
public static String mapDynamicURI(String uri) {<NEW_LINE>// Jena2 -> Jena3 transition<NEW_LINE>if (uri.startsWith("http://jena.hpl.hp.com/ARQ")) {<NEW_LINE>String newURI = uri.replace("http://jena.hpl.hp.com/", "http://jena.apache.org/");<NEW_LINE>Log.warnOnce(MappedLoader.class, "Loading function or property function...
String> e = find(uri);
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.process(WordEmbeddings.class, args);<NEW_LINE>Inst...
"Unrecognized ordering: " + orderingOption.value + ", using linear.");
230,585
final GetSessionResult executeGetSession(GetSessionRequest getSessionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSessionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<...
addHandlerContext(HandlerContextKey.CLIENT_ENDPOINT, endpoint);
1,662,210
private static void addAppCompatViews() {<NEW_LINE>DEFAULT_STYLES.put(android.support.v7.widget.AppCompatTextView.class, <MASK><NEW_LINE>DEFAULT_STYLES.put(android.support.v7.widget.AppCompatButton.class, android.R.attr.buttonStyle);<NEW_LINE>DEFAULT_STYLES.put(android.support.v7.widget.AppCompatEditText.class, android...
android.R.attr.textViewStyle);
537,300
private SelectMastersResult selectMasters(String masterLeader, boolean applySelection) {<NEW_LINE>UniverseDefinitionTaskParams.Cluster primaryCluster <MASK><NEW_LINE>if (primaryCluster != null) {<NEW_LINE>Set<NodeDetails> primaryNodes = taskParams().getNodesInCluster(primaryCluster.uuid);<NEW_LINE>SelectMastersResult r...
= taskParams().getPrimaryCluster();
160,855
public static String instanceFrom(String type, String value) {<NEW_LINE>if (type == null)<NEW_LINE>return value;<NEW_LINE>type = type.intern();<NEW_LINE>if (type == "java.lang.String" || type == "String") {<NEW_LINE>StringBuffer buf = new StringBuffer("\"");<NEW_LINE>for (int i = 0; i < value.length(); ++i) {<NEW_LINE>...
c = value.charAt(i);
1,644,585
protected BeanMetadataElement parseSource(Element element, ParserContext parserContext) {<NEW_LINE>BeanDefinitionBuilder builder = BeanDefinitionBuilder.rootBeanDefinition(MBeanTreePollingMessageSource.class);<NEW_LINE>IntegrationNamespaceUtils.setReferenceIfAttributeDefined(builder, element, "server", "server");<NEW_L...
beanName, childBuilder.getBeanDefinition());
1,236,200
public Object calculate(Context ctx) {<NEW_LINE>if (param == null) {<NEW_LINE>MessageManager mm = EngineMessage.get();<NEW_LINE>throw new RQException("olap" + mm.getMessage("function.missingParam"));<NEW_LINE>}<NEW_LINE>int size = param.getSubSize();<NEW_LINE>Object cli = new Object();<NEW_LINE>Object[] objs = new Obje...
+ mm.getMessage("function.invalidParam"));
435,781
public static <PS, SEG, S> ReadOnlyStyledDocument<PS, SEG, S> fromString(String str, PS paragraphStyle, S style, TextOps<SEG, S> segmentOps) {<NEW_LINE>Matcher m = LINE_TERMINATOR.matcher(str);<NEW_LINE>int n = 1;<NEW_LINE>while (m.find()) ++n;<NEW_LINE>List<Paragraph<PS, SEG, S>> res = new ArrayList<>(n);<NEW_LINE>int...
return new ReadOnlyStyledDocument<>(res);
329,682
public static Planar<GrayU8> loadPPM_U8(InputStream inputStream, Planar<GrayU8> storage, DogArray_I8 temp) throws IOException {<NEW_LINE>DataInputStream in = new DataInputStream(inputStream);<NEW_LINE>readLine(in);<NEW_LINE>String line = readLine(in);<NEW_LINE>while (line.charAt(0) == <MASK><NEW_LINE>String[] s = line....
'#') line = readLine(in);
144,345
private static void checkUpdateServerResources(File sunResourcesXml, Hk2DeploymentManager dm) {<NEW_LINE>Map<String, String> changedData = new HashMap<String, String>();<NEW_LINE>List<TreeParser.Path> pathList = new ArrayList<TreeParser.Path>();<NEW_LINE>// NOI18N<NEW_LINE>ResourceFinder cpFinder = new ResourceFinder("...
ResourceFinder jdbcFinder = new ResourceFinder("jndi-name");
1,088,022
public static IRubyObject newInstance(ThreadContext context, IRubyObject recv, IRubyObject arg, boolean strict, boolean exception) {<NEW_LINE>switch(((RubyBasicObject) arg).getNativeClassIndex()) {<NEW_LINE>case RATIONAL:<NEW_LINE>return handleMissingPrecision(context, "Rational", strict, exception);<NEW_LINE>case FLOA...
, recv, (RubyBigDecimal) arg);
1,725,844
private static OpenedRocksDB openRocksDB(HugeConfig config, List<String> cfNames, String dataPath, String walPath) throws RocksDBException {<NEW_LINE>// Old CFs should always be opened<NEW_LINE>Set<String> mergedCFs = RocksDBStdSessions.mergeOldCFs(dataPath, cfNames);<NEW_LINE>List<String> <MASK><NEW_LINE>// Init CFs o...
cfs = ImmutableList.copyOf(mergedCFs);
537,387
public ServiceMetadata unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>ServiceMetadata serviceMetadata = new ServiceMetadata();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
class).unmarshall(context));
1,428,456
public void addBValBeans(@Observes final AfterBeanDiscovery afterBeanDiscovery, final BeanManager beanManager) {<NEW_LINE>initValidationExtension(null);<NEW_LINE>SetContextClassLoaderPrivileged setClassLoader = null;<NEW_LINE>ClassLoader oldClassLoader = null;<NEW_LINE>ClassLoader classLoader = null;<NEW_LINE>try {<NEW...
oldClassLoader = setClassLoader.execute(classLoader);
682,385
public void createUser(HttpServletRequest request, HttpServletResponse response) throws Exception {<NEW_LINE>request = wrapRequest(request);<NEW_LINE>org.airsonic.player.domain.User <MASK><NEW_LINE>if (!user.isAdminRole()) {<NEW_LINE>error(request, response, ErrorCode.NOT_AUTHORIZED, user.getUsername() + " is not autho...
user = securityService.getCurrentUser(request);
1,402,284
synchronized void checkThreshold(ExecutionContext<R> context) {<NEW_LINE>boolean successesExceeded;<NEW_LINE>boolean failuresExceeded;<NEW_LINE>int successThreshold = config.getSuccessThreshold();<NEW_LINE>if (successThreshold != 0) {<NEW_LINE><MASK><NEW_LINE>successesExceeded = stats.getSuccessCount() >= successThresh...
int successThresholdingCapacity = config.getSuccessThresholdingCapacity();
995,302
static FastDistanceMatrixData kmeans(int k, long[] sampleWeights, FastDistanceVectorData[] samples, FastDistance distance, int vectorSize, int seed) {<NEW_LINE>Random random = new Random(seed);<NEW_LINE>List<FastDistanceVectorData> initCentroidsList = sampleInitialCentroids(k, sampleWeights, samples, distance, random);...
] sumMatrixData = sumMatrix.getData();
1,513,369
private void removeMember(MemberImpl member, String reason, boolean shouldCloseConn) {<NEW_LINE>clusterServiceLock.lock();<NEW_LINE>try {<NEW_LINE>assert clusterService.isMaster() : "Master: " + clusterService.getMasterAddress();<NEW_LINE>if (!clusterService.isJoined()) {<NEW_LINE>logger.warning("Not removing " + membe...
getClusterHeartbeatManager().removeMember(member);
854,103
public void read(org.apache.thrift.protocol.TProtocol prot, getDiskUsage_result struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming.get(0...
struct.sec.read(iprot);
9,927
public WebMvcEndpointHandlerMapping webEndpointServletHandlerMapping(WebEndpointsSupplier webEndpointsSupplier, ServletEndpointsSupplier servletEndpointsSupplier, ControllerEndpointsSupplier controllerEndpointsSupplier, EndpointMediaTypes endpointMediaTypes, CorsEndpointProperties corsProperties, WebEndpointProperties ...
String basePath = webEndpointProperties.getBasePath();
224,383
void addShipmentLinesToCustomsInvoice(@NonNull ProductId productId, @NonNull final ImmutableSet<InOutAndLineId> shipmentLinesForProduct, @NonNull final CustomsInvoiceId customsInvoiceId) {<NEW_LINE>CustomsInvoice customsInvoice = customsInvoiceRepo.retrieveById(customsInvoiceId);<NEW_LINE>final ImmutableList<CustomsInv...
shipmentLineId, customsInvoice.getCurrencyId());
1,708,539
private MethodDeclaration generateCleanMethod(BuilderJob job) {<NEW_LINE>List<Statement> statements = new ArrayList<Statement>();<NEW_LINE>for (BuilderFieldData bfd : job.builderFields) {<NEW_LINE>if (bfd.singularData != null && bfd.singularData.getSingularizer() != null) {<NEW_LINE>bfd.singularData.getSingularizer().a...
singularData, job.builderType, statements);
1,289,396
public final void postProcessBeanFactory(final ConfigurableListableBeanFactory beanFactory) {<NEW_LINE>try {<NEW_LINE>// 1) Retrieve properties from ff4j<NEW_LINE>BeanDefinitionVisitor visitor = new PropertiesPlaceHolderBeanDefinitionVisitor(ff4j);<NEW_LINE>// 2) Inject property & features value<NEW_LINE>String[] beanN...
LOGGER.error("Cannot handle placeholding through ff4j : ", e);
1,625,424
private void checkInstanceNameConsistency(Multimap<String, JMember> instanceMembersByJsName, JMember member) {<NEW_LINE>checkOverrideConsistency(member);<NEW_LINE>if (member.isJsNative()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>String name = member.getJsName();<NEW_LINE>Set<JMember> potentiallyCollidingMembers = Sets.ne...
(instanceMembersByJsName.get(name));
232,636
protected void executeProject(JBallerinaBackend jBallerinaBackend) throws InvokerException {<NEW_LINE>if (bufferFile == null) {<NEW_LINE>throw new UnsupportedOperationException("Buffer file must be set before execution");<NEW_LINE>}<NEW_LINE>PrintStream errorStream = getErrorStream();<NEW_LINE>try {<NEW_LINE>// Main me...
(panicError.getCause()));
590,551
private SegmentTree computeBypassPathLengths(EdgeWeightedDigraph edgeWeightedDigraph, int[] islands, DijkstraSP dijkstraSP, DijkstraSP dijkstraSPFromTarget, int target) {<NEW_LINE>// bypassPathLengths[i] denotes the length of the shortest path that bypasses ei, where ei is the ith edge in<NEW_LINE>// the shortest path ...
island1, island2 - 1, shortestPathLength);
1,625,909
public void initDefaultAuth() {<NEW_LINE>List<User> allSuperAdmin = groupUserDao.selectAllSuperAdmin();<NEW_LINE>if (allSuperAdmin != null && allSuperAdmin.size() > 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Group group = buildDefaultGroup();<NEW_LINE>Group existGroup = groupDao.selectGroupByGroupName(group.getGroupName...
), user.getUserId());
1,763,715
private static void activate(String agentArgs, Instrumentation inst, int activateCode) {<NEW_LINE>URL classUrl = getSelfClassUrl();<NEW_LINE>File jar = getArchiveFile(classUrl);<NEW_LINE>String fullJFluidPath = jar.getParent();<NEW_LINE>if ((agentArgs == null) || (agentArgs.length() == 0)) {<NEW_LINE>// no options, jus...
portNo = Integer.parseInt(portStr);
658,205
// findActionByStep.<NEW_LINE>@GET<NEW_LINE>@Path("/steps/{stepId}/actions")<NEW_LINE>@JSONP<NEW_LINE>@NoCache<NEW_LINE>@Produces({ MediaType.APPLICATION_JSON, "application/javascript" })<NEW_LINE>public final Response findActionsByStep(@Context final HttpServletRequest request, @Context final HttpServletResponse respo...
debug(this, "Getting the workflow actions for the step: " + stepId);
1,237,230
public Annotation annotate(File file, String revision) throws IOException {<NEW_LINE>ArrayList<String> <MASK><NEW_LINE>ensureCommand(CMD_PROPERTY_KEY, CMD_FALLBACK);<NEW_LINE>argv.add(RepoCommand);<NEW_LINE>argv.add("annotate");<NEW_LINE>argv.add("-n");<NEW_LINE>if (!this.isHandleRenamedFiles()) {<NEW_LINE>argv.add("--...
argv = new ArrayList<>();
1,476,575
public <T extends GenericDeclaration> void visitTypeParameter(TypeVariable<T> parameter) {<NEW_LINE>GenericDeclaration genericDeclaration = parameter.getGenericDeclaration();<NEW_LINE>for (RuntimeBuilderContext context : contexts) {<NEW_LINE>CtTypeParameter typeParameter = context.getTypeParameter(genericDeclaration, p...
peek().addFormalType(typeParameter);
1,641,632
public int compare(Integer head1, Integer head2) {<NEW_LINE>if (head1.equals(head2)) {<NEW_LINE>return 0;<NEW_LINE>}<NEW_LINE>VcsRef ref1 = myRefsModel.bestRefToHead(head1);<NEW_LINE>VcsRef ref2 = myRefsModel.bestRefToHead(head2);<NEW_LINE>if (ref1 == null) {<NEW_LINE>reportNoRefs(head1);<NEW_LINE>if (ref2 == null) {<N...
).compare(ref1, ref2);
115,647
public boolean save(RandomAccessFile raf) throws IOException {<NEW_LINE>int globalOffset = 2;<NEW_LINE>int lastWritten = 0;<NEW_LINE>raf.seek(0);<NEW_LINE>for (int i = 0; i < 1024; i++) {<NEW_LINE>raf.seek(globalOffset * 4096L);<NEW_LINE>T chunk = chunks[i];<NEW_LINE>if (chunk == null || chunk.isEmpty()) {<NEW_LINE>con...
seek(globalOffset * 4096L - 1);
362,218
public void parse(String string) {<NEW_LINE>groupSize = 0;<NEW_LINE>minimumFracLength = 0;<NEW_LINE>fracLength = 0;<NEW_LINE>exponentLength = 0;<NEW_LINE>decimalSeparatorRequired = false;<NEW_LINE>multiplier = 1;<NEW_LINE>this.string = string;<NEW_LINE>index = 0;<NEW_LINE>positivePrefix = parseText(false, false);<NEW_L...
throw new IllegalArgumentException("Positive number pattern not found in " + string);