idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,189,163
public static RestActionReporter runCommand(String commandName, ParameterMap parameters, Subject subject, boolean managedJob) {<NEW_LINE>AsadminRecorderService asadminRecorderService = Globals.get(AsadminRecorderService.class);<NEW_LINE>if (asadminRecorderService != null && asadminRecorderService.isEnabled()) {<NEW_LIN...
).getService(CommandRunner.class);
123,509
private void login() throws RepositoryException {<NEW_LINE>try {<NEW_LINE>// Try default login<NEW_LINE>session = repository.login(new SimpleCredentials("admin", "admin".toCharArray()));<NEW_LINE>} catch (Exception e) {<NEW_LINE>// If default fails check oldpassword property<NEW_LINE>if (oldpassword == null) {<NEW_LINE...
) authorizable).changePassword(password);
1,589,576
private ONNXNode writeDecisionFunction(ONNXNode svmOutputName) {<NEW_LINE>final ONNXContext onnx = svmOutputName.onnxContext();<NEW_LINE>ONNXInitializer one = onnx.constant("one", 1.0f);<NEW_LINE>ONNXInitializer zero = onnx.constant("zero", 0.0f);<NEW_LINE>ONNXNode prediction = svmOutputName.apply(ONNXOperators.LESS, z...
.singletonMap("axis", 1));
736,483
public static VerifySentenceResponse unmarshall(VerifySentenceResponse verifySentenceResponse, UnmarshallerContext _ctx) {<NEW_LINE>verifySentenceResponse.setRequestId<MASK><NEW_LINE>verifySentenceResponse.setSuccess(_ctx.booleanValue("VerifySentenceResponse.Success"));<NEW_LINE>verifySentenceResponse.setIncorrectWords...
(_ctx.stringValue("VerifySentenceResponse.RequestId"));
1,370,440
public List<VtFileReport> fetchReports(@NonNull String[] hashes) throws IOException {<NEW_LINE>URL url = new URL(URL_FILE_REPORT);<NEW_LINE>HttpURLConnection connection = (HttpURLConnection) url.openConnection();<NEW_LINE>connection.setUseCaches(false);<NEW_LINE>connection.setDoOutput(true);<NEW_LINE>connection.setRequ...
, VtFileReport[].class));
1,725,801
private Object negate(Document arg) {<NEW_LINE>List<Object> list = new ArrayList<Object>();<NEW_LINE>for (Map.Entry<String, Object> entry : arg.entrySet()) {<NEW_LINE>if (entry.getKey().equals("$or")) {<NEW_LINE>list.add(asDocument("$nor"<MASK><NEW_LINE>} else if (entry.getKey().equals("$and")) {<NEW_LINE>List<Object> ...
, entry.getValue()));
338,150
private static void genTags() throws Exception {<NEW_LINE>final BeanManager beanManager = BeanManager.getInstance();<NEW_LINE>final TagQueryService tagQueryService = beanManager.getReference(TagQueryService.class);<NEW_LINE>final List<JSONObject> tags = tagQueryService.getTags();<NEW_LINE>final OptionQueryService optio...
"Generates a tag [title=" + tagTitle + "] failed", e);
761,981
public void unparse(SqlWriter writer, int leftPrec, int rightPrec) {<NEW_LINE>final SqlWriter.Frame selectFrame = writer.startList(SqlWriter.FrameTypeEnum.SELECT);<NEW_LINE>writer.sep("CREATE CCL_RULE");<NEW_LINE>if (ifNotExists) {<NEW_LINE>writer.sep("IF NOT EXISTS");<NEW_LINE>}<NEW_LINE>ruleName.unparse(writer, leftP...
unparse(writer, leftPrec, rightPrec);
222,040
private void appendMapStringify(Writer writer, HollowDataAccess dataAccess, HollowMapTypeDataAccess typeDataAccess, int ordinal, int indentation) throws IOException {<NEW_LINE>HollowMapSchema schema = typeDataAccess.getSchema();<NEW_LINE>if (showTypes)<NEW_LINE>writer.append("(").append(schema.getName()).append(")");<N...
iter.getKey(), indentation);
1,080,971
public boolean doTimeoutChecks() {<NEW_LINE>// Timeouts for states PEPeerTransport.CONNECTION_PENDING and<NEW_LINE>// PEPeerTransport.CONNECTION_CONNECTING are handled by the ConnectDisconnectManager<NEW_LINE>// so we don't need to deal with them here.<NEW_LINE>if (connection != null) {<NEW_LINE>connection.getOutgoingM...
closeConnectionInternally("timed out while waiting for messages", false, true);
906,465
private Boolean synchronizeSingleFileInternal(final ImmutablePair<ContentStorage.FileInformation, String> sourceFile, final File targetRootDir, final Set<String> targetSyncPropsToUpdate, final Map<String, Properties> targetSyncProps) {<NEW_LINE>final String dirPath = getParentPath(sourceFile.right);<NEW_LINE>Properties...
, getFileSyncToken(sourceFile.left));
32,313
private synchronized void makeHierarchyMap() {<NEW_LINE>Map<String, ServerObject> tempRootMap = new TreeMap<String, ServerObject>();<NEW_LINE>Enumeration<Integer> sIds = ServerManager.getInstance().getAllServerList();<NEW_LINE>while (sIds.hasMoreElements()) {<NEW_LINE>int serverId = sIds.nextElement();<NEW_LINE>Server ...
) beforeDummyObj).getChildMap());
585,639
public void run() {<NEW_LINE>String appType = _analyticJob.getAppType().getName();<NEW_LINE>String analysisName = String.format("%s %s", appType, _analyticJob.getAppId());<NEW_LINE>long analysisStartTimeMillis = System.currentTimeMillis();<NEW_LINE>logger.info(String.format("Analyzing %s", analysisName));<NEW_LINE>long...
("Analysis of %s took %sms", analysisName, processingTime));
936,535
public void run(OpcUaClient client, CompletableFuture<OpcUaClient> future) throws Exception {<NEW_LINE>// synchronous connect<NEW_LINE>client.connect().get();<NEW_LINE>registerCustomCodec(client);<NEW_LINE>// synchronous read request via VariableNode<NEW_LINE>UaVariableNode node = client.getAddressSpace().getVariableNo...
logger.info("Decoded={}", decoded);
1,490,304
private Object performCardinalityAdjustment(String inputKey, Object input, WalkedPath walkedPath, Map parentContainer, MatchedElement thisLevel) {<NEW_LINE>// Add our the LiteralPathElement for this level, so that write path References can use it as &(0,0)<NEW_LINE>walkedPath.add(input, thisLevel);<NEW_LINE>Object retu...
one = parentContainer.remove(inputKey);
772,881
final InitiateLayerUploadResult executeInitiateLayerUpload(InitiateLayerUploadRequest initiateLayerUploadRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(initiateLayerUploadRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
330,256
private <REQ extends Request, RES extends Response> void disruptResponse(RES res, RequestContext requestContext, Map<String, String> wireAttrs, NextFilter<REQ, RES> nextFilter) {<NEW_LINE>final DisruptContext context = (DisruptContext) requestContext.getLocalAttr(DisruptContext.DISRUPT_CONTEXT_KEY);<NEW_LINE>if (contex...
onResponse(res, requestContext, wireAttrs);
1,328,813
public void startWarmUpThread() {<NEW_LINE>new Thread() {<NEW_LINE><NEW_LINE>public void run() {<NEW_LINE>try {<NEW_LINE>Thread.sleep(500);<NEW_LINE>String internalName = FindBox.class.getName();<NEW_LINE>TypeReference type = metadataSystem.lookupType(internalName);<NEW_LINE>TypeDefinition resolvedType = null;<NEW_LINE...
(pane.indexOfTab("title"));
1,730,250
public void deleteByIdWithResponse(String id, Context context) {<NEW_LINE>String resourceGroupName = <MASK><NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw logger.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));<N...
Utils.getValueFromIdByName(id, "resourceGroups");
182,385
public void read(org.apache.thrift.protocol.TProtocol prot, setTableProperty_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.g...
.clientImpl.thrift.ThriftNotActiveServiceException();
639,997
public com.amazonaws.services.datapipeline.model.InvalidRequestException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.datapipeline.model.InvalidRequestException invalidRequestException = new com.amazonaws.services.datapipeline.model.InvalidRequestException(nu...
int originalDepth = context.getCurrentDepth();
1,229,212
public void init() throws Exception {<NEW_LINE>super.init();<NEW_LINE>List<String> lines = new ArrayList<>();<NEW_LINE>try {<NEW_LINE>Parameters parameters = getParameters();<NEW_LINE>List<String> unnamedParameters = parameters.getUnnamed();<NEW_LINE>filename = unnamedParameters.get(0);<NEW_LINE>lines = Files.readAllLi...
.parseInt(parts[1]);
1,771,453
public static DAOSet fromServices(ServiceSet services, FutureJdbi jdbi, Executor executor, MDBConfig mdbConfig) {<NEW_LINE>var set = new DAOSet();<NEW_LINE>set.uacApisUtil = new UACApisUtil(executor, services.uac);<NEW_LINE>set.metadataDAO = new MetadataDAORdbImpl();<NEW_LINE>set.commitDAO = new CommitDAORdbImpl(servic...
services.authService, services.mdbRoleService);
390,603
public void eventHandler(PipeEventFluid.FindDest event) {<NEW_LINE>Set<EnumFacing> machineDirs = new HashSet<>();<NEW_LINE>Set<EnumFacing> <MASK><NEW_LINE>for (EnumFacing dir : event.destinations) {<NEW_LINE>if (container.isPipeConnected(dir)) {<NEW_LINE>TileEntity e = container.getTile(dir);<NEW_LINE>if (e instanceof ...
pipeDirs = new HashSet<>();
257,432
private void createHeader(Composite container) {<NEW_LINE>Composite composite = new Composite(container, SWT.NONE);<NEW_LINE>composite.setBackground(container.getBackground());<NEW_LINE>composite.setLayout(new FormLayout());<NEW_LINE>// logo<NEW_LINE>Label image = new Label(composite, SWT.NONE);<NEW_LINE>image.setBackg...
CLASS_NAME, UIConstants.CSS.HEADING1);
129,294
public Response<Void> deleteByIdWithResponse(String id, String ifMatch, Context context) {<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...
serviceName, certificateId, ifMatch, context);
1,131,851
public static void main(String[] args) {<NEW_LINE>System.out.println("Scripting APIs:");<NEW_LINE>ScriptEngineManager manager = new ScriptEngineManager();<NEW_LINE>for (ScriptEngineFactory factory : manager.getEngineFactories()) {<NEW_LINE>System.out.println(" engineName=" + factory.getEngineName() + " engineVersion="...
out.println(" " + type);
88,925
final ListMembersResult executeListMembers(ListMembersRequest listMembersRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listMembersRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListMembersRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,130,976
protected static Map<String, List<String>> resolvePaths(String sourceDirectory) {<NEW_LINE>File endpointsDir = new File(sourceDirectory + "/paths");<NEW_LINE>int endpointStartAt = endpointsDir.getAbsolutePath().length();<NEW_LINE>Collection<File> endpointsFiles = FileUtils.listFiles(endpointsDir, new RegexFileFilter<MA...
("^(.*?)"), DirectoryFileFilter.DIRECTORY);
251,067
public Map<String, String> updateSensorProperties(OwBaseBridgeHandler bridgeHandler) throws OwException {<NEW_LINE>Map<String, String> properties = new HashMap<String, String>();<NEW_LINE>OwPageBuffer pages = bridgeHandler.readPages(sensorId);<NEW_LINE>OwSensorType sensorType = OwSensorType.UNKNOWN;<NEW_LINE>try {<NEW_...
format("%d.%d", fwRevisionHigh, fwRevisionLow);
1,140,464
public Mono<Response<Flux<ByteBuffer>>> deleteWithResponseAsync(String resourceGroupName, String publicIpPrefixName) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.<MASK><NEW_LINE>}<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter res...
error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null."));
665,725
public // 118073_10_1 Return the priority of messages that are sent using this JMSProducer<NEW_LINE>void testSetPriority_B_SecOff(HttpServletRequest request, HttpServletResponse response) throws Throwable {<NEW_LINE>JMSContext jmsContextQCFBindings = qcfBindings.createContext();<NEW_LINE>emptyQueue(qcfBindings, queue1)...
TextMessage) jmsConsumer.receive(30000);
1,219,710
public BlazeCommandResult exec(CommandEnvironment env, OptionsParsingResult options) {<NEW_LINE>env.getEventBus().post(new NoBuildEvent());<NEW_LINE>BlazeRuntime runtime = env.getRuntime();<NEW_LINE>OutErr outErr = env.getReporter().getOutErr();<NEW_LINE>Options helpOptions = options.getOptions(Options.class);<NEW_LINE...
outErr, runtime.getProductName());
1,453,056
public static String addLimits(String query, long offSet, long limit) {<NEW_LINE>if (offSet == 0 && limit == -1) {<NEW_LINE>// Nothing to do...<NEW_LINE>return query;<NEW_LINE>}<NEW_LINE>StringBuffer queryString = new StringBuffer();<NEW_LINE>int count = 0;<NEW_LINE>if (query != null) {<NEW_LINE>query = query.toLowerCa...
query = query.substring(6);
974,149
public int onStartCommand(Intent intent, int flags, int startId) {<NEW_LINE>String cmd = intent != null ? intent.getStringExtra("cmd") : null;<NEW_LINE>CrashTracking.log("MainService.onStartCommand(), cmd:" + cmd);<NEW_LINE>MainController mainController = MainController.get();<NEW_LINE>if (mainController == null || int...
urlLoadStartTime, setAsCurrentTab, Analytics.OPENED_URL_FROM_RESTORE);
480,244
public void marshall(AwsEc2EipDetails awsEc2EipDetails, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (awsEc2EipDetails == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(awsEc2EipDetails.getInstanceId(), IN...
awsEc2EipDetails.getNetworkInterfaceId(), NETWORKINTERFACEID_BINDING);
1,743,076
public void windowStateChanged(WindowEvent evt) {<NEW_LINE>if (!Constants.AUTO_ICONIFY) {<NEW_LINE>modeView.getController().userChangedFrameStateMode(modeView, evt.getNewState());<NEW_LINE>} else {<NEW_LINE>// All the timestamping is a a workaround beause of buggy GNOME<NEW_LINE>// and of its kind who iconify the windo...
modeView, evt.getNewState());
1,463,193
final AcceptResourceShareInvitationResult executeAcceptResourceShareInvitation(AcceptResourceShareInvitationRequest acceptResourceShareInvitationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(acceptResourceShareInvitationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
173,444
public float score() throws IOException {<NEW_LINE>TermStatSupplier tsq = new TermStatSupplier();<NEW_LINE>// Refresh the term stats<NEW_LINE>tsq.setPosAggr(posAggr);<NEW_LINE>tsq.bump(searcher, context, docID(), terms, scoreMode, termContexts);<NEW_LINE>// Prepare computed statistics<NEW_LINE>StatisticsHelper computed...
dvSrc = compiledExpression.getDoubleValuesSource(bindings);
1,040,627
protected Void deleteSnapshotCallback(AsyncCallbackDispatcher<SnapshotServiceImpl, CommandResult> callback, DeleteSnapshotContext<CommandResult> context) {<NEW_LINE>CommandResult result = callback.getResult();<NEW_LINE>AsyncCallFuture<SnapshotResult> future = context.future;<NEW_LINE>SnapshotInfo snapshot = context.sna...
processEvent(ObjectInDataStoreStateMachine.Event.OperationSuccessed);
457,601
public static JBPopup createPopup(final List<? extends GotoRelatedItem> items, final String title) {<NEW_LINE>Object[] elements = new Object[items.size()];<NEW_LINE>// todo[nik] move presentation logic to GotoRelatedItem class<NEW_LINE>final Map<PsiElement, GotoRelatedItem> itemsMap = new HashMap<PsiElement, GotoRelate...
item.getElement(), item);
471,975
private void createPoiFiltersItems(MapActivity mapActivity, Set<PoiUIFilter> poiFilters, LinearLayout optionsContainer) {<NEW_LINE>LinearLayout item = createToolbarOptionView(false, null, <MASK><NEW_LINE>if (item != null) {<NEW_LINE>item.findViewById(R.id.route_option_container).setVisibility(View.GONE);<NEW_LINE>Itera...
-1, -1, null);
1,174,426
private DataSet<Factors> initFactors(DataSet<Ratings> graph, final int numFactors) {<NEW_LINE>return graph.map(new RichMapFunction<Ratings, Factors>() {<NEW_LINE><NEW_LINE>private static final long serialVersionUID = -6242580857177532093L;<NEW_LINE><NEW_LINE>transient Random random;<NEW_LINE><NEW_LINE>transient Factors...
i] = random.nextFloat();
498,067
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.<MASK><NEW_LINE>}<NEW_LINE>String clusterName = Utils.getValueFromIdByName(id,...
format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id)));
1,734,928
public void record(Tunnel tunnel) {<NEW_LINE>StringBuilder sb = new StringBuilder(tunnel.identity().toString());<NEW_LINE>sb.append(RedisProtocol.CRLF);<NEW_LINE>sb.append(tunnel.getTunnelMonitor().getTunnelStats().getTunnelStatsResult().toString()).append(RedisProtocol.CRLF);<NEW_LINE>sb.append(SESSION_TYPE.FRONTEND.n...
).append(RedisProtocol.CRLF);
1,167,203
private void initialiseJavaTimeTypes(DatabaseConfig config) {<NEW_LINE>ZoneId zoneId = getZoneId(config);<NEW_LINE>typeMap.put(java.nio.file.Path.class, new ScalarTypePath());<NEW_LINE>addType(java.time.Period.class, new ScalarTypePeriod());<NEW_LINE>if (config.getDatabasePlatform().supportsNativeJavaTime()) {<NEW_LINE...
class, new ScalarTypeLocalDateTime(jsonDateTime));
1,793,632
private static void transactionCompensatedDemo(StateMachineEngine stateMachineEngine) {<NEW_LINE>Map<String, Object> startParams <MASK><NEW_LINE>String businessKey = String.valueOf(System.currentTimeMillis());<NEW_LINE>startParams.put("businessKey", businessKey);<NEW_LINE>startParams.put("count", 10);<NEW_LINE>startPar...
= new HashMap<>(4);
667,108
private void wrapInGroupNode() {<NEW_LINE>// What's our parent? What's the corresponding node we're wrapping?<NEW_LINE>ParseNode parent = (ParseNode) getCurrentNode();<NEW_LINE>int nodeToWrapIndex = parent.getChildCount() - 1;<NEW_LINE>IParseNode nodeToWrap = parent.getChild(nodeToWrapIndex);<NEW_LINE>JSGroupNode group...
new IParseNode[] { nodeToWrap });
1,518,531
private void processRefLink(Link subRef, String externalFile) {<NEW_LINE>RefFormat format = computeRefFormat(subRef.get$ref());<NEW_LINE>if (!isAnExternalRefFormat(format)) {<NEW_LINE>subRef.set$ref(RefType.SCHEMAS.getInternalPrefix() + processRefToExternalSchema(externalFile + subRef.get$ref(), RefFormat.RELATIVE));<N...
externalFile, subRef.get$ref());
1,680,146
public KernelCapabilities unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>KernelCapabilities kernelCapabilities = new KernelCapabilities();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth =...
JsonToken token = context.getCurrentToken();
1,283,087
public void handle(Map data) {<NEW_LINE>markSnapshotTreeCompleted(VolumeSnapshotInventory.valueOf(vo));<NEW_LINE>VolumeSnapshotVO svo = dbf.findByUuid(vo.getUuid(), VolumeSnapshotVO.class);<NEW_LINE>if (svo.getPrimaryStorageInstallPath() == null) {<NEW_LINE>svo.setPrimaryStorageInstallPath(vol.getInstallPath());<NEW_LI...
bus.reply(msg, ret);
502,904
public void createOrUpdateRealmLocalizationTexts(String locale, Map<String, String> localizationTexts) {<NEW_LINE>Map<String, RealmLocalizationTextsEntity> currentLocalizationTexts = realm.getRealmLocalizationTexts();<NEW_LINE>if (currentLocalizationTexts.containsKey(locale)) {<NEW_LINE>RealmLocalizationTextsEntity loc...
setRealmId(realm.getId());
1,818,114
private MessageTree readMessage(String messageId, Date date, Transaction t, List<String> paths) {<NEW_LINE>for (String dataFile : paths) {<NEW_LINE>try {<NEW_LINE>String type = t.getName();<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(type).append("-").append(date.toString()).append("-").append(d...
String bKey = sb.toString();
289,211
public static void raw(BinanceExchange exchange, BinanceMarketDataService marketDataService) throws IOException {<NEW_LINE>List<BinanceTicker24h> <MASK><NEW_LINE>for (CurrencyPair cp : exchange.getExchangeMetaData().getCurrencyPairs().keySet()) {<NEW_LINE>if (cp.counter == Currency.USDT) {<NEW_LINE>tickers.add(marketDa...
tickers = new ArrayList<>();
1,487,675
public void serialize(RntbdPollChannelEvent event, JsonGenerator writer, SerializerProvider serializerProvider) throws IOException {<NEW_LINE>writer.writeStartObject();<NEW_LINE>writer.writeStringField(event.getEventType().toString(), event.getCreatedTime().toString());<NEW_LINE>if (event.availableChannels > 0) {<NEW_L...
).toNanos() / 1000L);
146,333
public static void horizontal7(Kernel1D_F32 kernel, GrayF32 image, GrayF32 dest) {<NEW_LINE>final float[] dataSrc = image.data;<NEW_LINE>final float[] dataDst = dest.data;<NEW_LINE>final float k1 = kernel.data[0];<NEW_LINE>final float k2 = kernel.data[1];<NEW_LINE>final float k3 = kernel.data[2];<NEW_LINE>final float k...
k5 = kernel.data[4];
1,199,427
public GridBoundsChange performAction(GridManager gridManager, DesignerContext context) {<NEW_LINE>GridInfoProvider gridInfo = gridManager.getGridInfo();<NEW_LINE>boolean gapSupport = gridInfo.hasGaps();<NEW_LINE>int[] originalColumnBounds = gridInfo.getColumnBounds();<NEW_LINE>int[] originalRowBounds = gridInfo.getRow...
columnBounds, 0, column + 1);
1,517,158
public void read(JmeImporter im) throws IOException {<NEW_LINE>InputCapsule ic = im.getCapsule(this);<NEW_LINE>name = ic.readString("name", null);<NEW_LINE>shaderNames.put(Shader.ShaderType.Vertex, ic<MASK><NEW_LINE>shaderNames.put(Shader.ShaderType.Fragment, ic.readString("fragName", null));<NEW_LINE>shaderNames.put(S...
.readString("vertName", null));
461,573
private int findMatch() {<NEW_LINE>int matched = 0;<NEW_LINE>int bankId = 0;<NEW_LINE>if (account != null) {<NEW_LINE>bankId = account.getC_Bank_ID();<NEW_LINE>}<NEW_LINE>List<MBankStatementMatcher> matchersList = MBankStatementMatcher.getMatchersList(Env.getCtx(), bankId);<NEW_LINE>if (matchersList == null) {<NEW_LINE...
setC_Invoice_ID(info.getC_Invoice_ID());
682,516
private JavaRDD<Rating> parsedToRatingRDD(JavaRDD<String[]> parsedRDD, Broadcast<? extends Map<String, Integer>> bUserIDToIndex, Broadcast<? extends Map<String, Integer>> bItemIDToIndex) {<NEW_LINE>JavaPairRDD<Long, Rating> timestampRatingRDD = parsedRDD.mapToPair(tokens -> {<NEW_LINE>try {<NEW_LINE>return new Tuple2<>...
long timestamp = timestampRating._1();
454,782
public Vector max(int axis) {<NEW_LINE>// axis = 0: on rows<NEW_LINE>// axis = 1: on cols<NEW_LINE>assert (axis == 0 || axis == 1);<NEW_LINE>float[] rdVec = null;<NEW_LINE>switch(axis) {<NEW_LINE>case // on row<NEW_LINE>0:<NEW_LINE>rdVec = new float[numCols];<NEW_LINE>for (int j = 0; j < numCols; j++) {<NEW_LINE>rdVec[...
matrixId, 0, clock, rdVec);
715,273
public OResult serialize() {<NEW_LINE>OResultInternal result = (OResultInternal) super.serialize();<NEW_LINE>if (target != null) {<NEW_LINE>result.setProperty("target", target.serialize());<NEW_LINE>}<NEW_LINE>if (projection != null) {<NEW_LINE>result.setProperty("projection", projection.serialize());<NEW_LINE>}<NEW_LI...
result.setProperty("parallel", parallel);
628,987
public void scrutinize(TermedStatementEntityEdit update) {<NEW_LINE>Map<PropertyIdValue, Set<Value>> propertyIdValueValueMap = new HashMap<>();<NEW_LINE>for (Statement statement : update.getAddedStatements()) {<NEW_LINE>PropertyIdValue pid = statement.getClaim()<MASK><NEW_LINE>Value value = null;<NEW_LINE>Snak mainSnak...
.getMainSnak().getPropertyId();
1,076,775
public static void main(String[] args) {<NEW_LINE>// Collector shortcut methods (toList, toSet, groupingBy, joining, etc.)<NEW_LINE>List<User> users = Arrays.asList(new User("name"), new User(), new User());<NEW_LINE>users.stream().map(User::getName).collect(Collectors.toList());<NEW_LINE>List<String> userNames = Strea...
x * 5).toCharArray();
1,430,685
public void internalOpen(String user, String password, OrientDBConfig config) {<NEW_LINE>this.config = config;<NEW_LINE>applyAttributes(config);<NEW_LINE>applyListeners(config);<NEW_LINE>try {<NEW_LINE>storage.open(user, password, config.getConfigurations());<NEW_LINE>status = STATUS.OPEN;<NEW_LINE>initAtFirstOpen();<N...
.instance().remove();
450,879
public boolean matchesCIDR(InetAddress address) {<NEW_LINE>if (bgp_prefix == null || bgp_prefix.length() == 0) {<NEW_LINE>return (false);<NEW_LINE>}<NEW_LINE>boolean isv4 = address instanceof Inet4Address;<NEW_LINE>if (isv4 != ipv4) {<NEW_LINE>return (false);<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>int pos = bgp_prefix.inde...
bytes[i / 8] & mask;
1,665,000
private static EnumMap<Shape, Rational> buildShapeDurations() {<NEW_LINE>EnumMap<Shape, Rational> map = new EnumMap<>(Shape.class);<NEW_LINE>// 4 measures<NEW_LINE>map.put(Shape.LONG_REST, new Rational(4, 1));<NEW_LINE>// 2 measures<NEW_LINE>map.put(Shape.BREVE_REST, new Rational(2, 1));<NEW_LINE>map.put(Shape.BREVE, n...
new Rational(1, 2));
1,200,767
protected void encodeControls(FacesContext context, OrderList ol) throws IOException {<NEW_LINE>ResponseWriter writer = context.getResponseWriter();<NEW_LINE>writer.startElement("div", null);<NEW_LINE>writer.writeAttribute("class", OrderList.CONTROLS_CLASS, null);<NEW_LINE>encodeButton(context, ol.getMoveUpLabel(), <MA...
OrderList.MOVE_UP_BUTTON_CLASS, OrderList.MOVE_UP_BUTTON_ICON_CLASS);
499,634
public boolean addDef(String sec, String key, String value) {<NEW_LINE>Assertion ast = new Assertion();<NEW_LINE>ast.key = key;<NEW_LINE>ast.value = value;<NEW_LINE>ast.initPriorityIndex();<NEW_LINE>if (ast.value.equals("")) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (sec.equals("r") || sec.equals("p")) {<NEW_LINE...
.escapeAssertion(ast.value));
1,613,065
final CreateCachediSCSIVolumeResult executeCreateCachediSCSIVolume(CreateCachediSCSIVolumeRequest createCachediSCSIVolumeRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createCachediSCSIVolumeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,163,170
public void show(boolean restoreBounds) {<NEW_LINE>myFocusedCallback = AsyncResult.undefined();<NEW_LINE>if (myProject != null) {<NEW_LINE>IdeFocusManager.getInstance(myProject).typeAheadUntil(myFocusedCallback);<NEW_LINE>}<NEW_LINE>final Window frame = getFrame();<NEW_LINE>if (myStatusBar != null) {<NEW_LINE>consulo.u...
) frame).setTitle(myTitle);
1,849,291
public Node call() {<NEW_LINE>// throws AnyException<NEW_LINE>Node node;<NEW_LINE>Map<String, Object> <MASK><NEW_LINE>String cypher = buildCypher(st.getObject().stringValue(), st.getContext() != null ? st.getContext().stringValue() : null, params);<NEW_LINE>Result result = txInThread.execute(cypher, params);<NEW_LINE>i...
params = new HashMap<>();
1,510,734
public void run() throws Exception {<NEW_LINE>listing = currentProgram.getListing();<NEW_LINE>memory = currentProgram.getMemory();<NEW_LINE>symbolTable = currentProgram.getSymbolTable();<NEW_LINE>int size = currentProgram.getMinAddress().getSize();<NEW_LINE>if (size != 32) {<NEW_LINE>popup("This script only works on 32...
funcIter = listing.getFunctions(true);
949,219
public void applyInline(double[] data, int pos, int len) {<NEW_LINE>int k;<NEW_LINE>assert pos == 0;<NEW_LINE>assert len == data.length;<NEW_LINE>tmpCount++;<NEW_LINE>if (len > fftSize)<NEW_LINE>len = fftSize;<NEW_LINE>if (len < fftSize) {<NEW_LINE>double[] data2 = new double[fftSize];<NEW_LINE>System.arraycopy(data, 0...
[k] *= vtSpectrum[k];
710,896
final DeleteTableResult executeDeleteTable(DeleteTableRequest deleteTableRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteTableRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
698,483
public KrollPromise<TiResultSetProxy> executeAsync(final String query, final Object... parameterObjects) {<NEW_LINE>// Validate `query` parameter.<NEW_LINE>if (query == null) {<NEW_LINE>throw new InvalidParameterException("'query' parameter is required");<NEW_LINE>}<NEW_LINE>KrollFunction possibleCallback = null;<NEW_L...
0, parameterObjects.length - 1);
469,482
private void chooseDirectory() {<NEW_LINE>FileChooserDescriptor descriptor = new FileChooserDescriptor(false, true, false, false, false, false) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean isFileSelectable(VirtualFile file) {<NEW_LINE>// Default implementation doesn't filter directories,<NEW_LINE>// we want t...
createFileChooser(descriptor, null, null);
144,900
private void writeNamespacesToZip(Stream<ConfigBO> configBOStream, ZipOutputStream zipOutputStream) {<NEW_LINE>final Consumer<ConfigBO> configBOConsumer = configBO -> {<NEW_LINE>try {<NEW_LINE>synchronized (zipOutputStream) {<NEW_LINE>String appId = configBO.getAppId();<NEW_LINE>String clusterName = configBO.getCluster...
String configFileContent = configBO.getConfigFileContent();
1,729,461
protected RequestBody finalizeData() {<NEW_LINE>final Member self = guild.getSelfMember();<NEW_LINE>final boolean isOwner = self.isOwner();<NEW_LINE>if (!isOwner) {<NEW_LINE>if (self.getRoles().isEmpty())<NEW_LINE>throw new IllegalStateException("Cannot move roles above your highest role unless you are the guild owner"...
= new ArrayList<>(orderList);
893,677
private static void printCodePoints(Appendable out, CharSequence text, EscapeMode mode) throws IOException {<NEW_LINE>int len = text.length();<NEW_LINE>for (int i = 0; i < len; i++) {<NEW_LINE>int c = text.charAt(i);<NEW_LINE>if (isHighSurrogate(c)) {<NEW_LINE>i++;<NEW_LINE>char c2;<NEW_LINE>// I apologize for the embe...
toHexString(c) + " at index " + i;
632,989
private void onRefreshButton() {<NEW_LINE>if (context == null || context.getRoots().isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (executeStatusSupport != null) {<NEW_LINE>executeStatusSupport.cancel();<NEW_LINE>executeStatusSupport = null;<NEW_LINE>}<NEW_LINE>if (refreshSetupsSupport != null) {<NEW_LINE>refresh...
boolean contactServer = currentType != Setup.DIFFTYPE_LOCAL;
1,840,054
protected String bindToFields(final OHttpRequest iRequest, final Map<String, String> iFields, final ORecordId iRid) throws Exception {<NEW_LINE>if (iRequest.getContent() == null)<NEW_LINE>throw new IllegalArgumentException("HTTP Request content is empty");<NEW_LINE>final String req = iRequest.getContent();<NEW_LINE>// ...
params = req.split("&");
1,601,217
private static void initRocksDbSettings(Config config) {<NEW_LINE>String prefix = Constant.STORAGE_DB_SETTING;<NEW_LINE>int levelNumber = config.hasPath(prefix + "levelNumber") ? config.getInt(prefix + "levelNumber") : 7;<NEW_LINE>int compactThreads = config.hasPath(prefix + "compactThreads") ? config.getInt(prefix + "...
getLong(prefix + "targetFileSizeBase") : 64;
1,819,727
public static ListRdsDBInstancesResponse unmarshall(ListRdsDBInstancesResponse listRdsDBInstancesResponse, UnmarshallerContext _ctx) {<NEW_LINE>listRdsDBInstancesResponse.setRequestId(_ctx.stringValue("ListRdsDBInstancesResponse.RequestId"));<NEW_LINE>listRdsDBInstancesResponse.setTotalCount(_ctx.integerValue("ListRdsD...
("ListRdsDBInstancesResponse.RdsInstances[" + i + "].DBInstanceDescription"));
688,913
public void actionPerformed(ActionEvent e) {<NEW_LINE>SwingUtilities.invokeLater(() -> {<NEW_LINE>if (r.frame == null) {<NEW_LINE>JFrame top = (JFrame) SwingUtilities.getWindowAncestor((Component) PMS.get().getFrame());<NEW_LINE>// We're using JFrame instead of JDialog here so as to<NEW_LINE>// have a minimize button. ...
r.frame.setLocationRelativeTo(top);
833,202
protected VirtualFile findLocalFile(@NotNull final String uri) {<NEW_LINE>// Get the workspace directory name provided by the test harness.<NEW_LINE>final String workspaceDirName = connector.getWorkspaceDirName();<NEW_LINE>// Verify the returned workspace directory name, we weren't passed a workspace name or if the val...
workspaceOffset + workspaceDirName.length());
1,777,019
private void loadNode927() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.ServerDiagnosticsType_ServerDiagnosticsSummary_SecurityRejectedSessionCount, new QualifiedName(0, "SecurityRejectedSessionCount"), new LocalizedText("en", "SecurityRejectedSessionCount"), Localiz...
.expanded(), true));
980,091
public void processResponse(APIResponse response) {<NEW_LINE>if (response.getRef() != null) {<NEW_LINE>processReferenceResponse(response);<NEW_LINE>}<NEW_LINE>Schema schema = null;<NEW_LINE>if (response.getContent() != null) {<NEW_LINE>Map<String, MediaType> content = response.getContent();<NEW_LINE>for (String mediaNa...
> links = response.getLinks();
341,114
public void findDepsForTargetFromConstructorArgs(BuildTarget buildTarget, CellNameResolver cellRoots, AbstractAndroidBinaryDescriptionArg constructorArg, ImmutableCollection.Builder<BuildTarget> extraDepsBuilder, ImmutableCollection.Builder<BuildTarget> targetGraphOnlyDepsBuilder) {<NEW_LINE>javacFactory.addParseTimeDe...
redexTarget.ifPresent(extraDepsBuilder::add);
792,037
public Object visitar(NoDeclaracaoFuncao declaracaoFuncao) throws ExcecaoVisitaASA {<NEW_LINE>PortugolTreeNode node = new PortugolTreeNode(declaracaoFuncao);<NEW_LINE>List<NoDeclaracaoParametro> parametros = declaracaoFuncao.getParametros();<NEW_LINE>if (parametros != null) {<NEW_LINE>for (NoDeclaracaoParametro paramet...
.add((PortugolTreeNode) no);
1,473,097
public RestResponseContainer executeRequest(RestRequestContainer request, Templater templater, AsyncControl asyncControl) {<NEW_LINE>HttpRequest <MASK><NEW_LINE>asyncControl.triggerReqeuestStarted();<NEW_LINE>AtomicLong startTime = new AtomicLong(System.currentTimeMillis());<NEW_LINE>var chReq = new ChunkedRequest(buil...
httpRequest = toHttpRequest(request, templater);
1,648,989
public void markResults(String[] result_ids, boolean[] reads) {<NEW_LINE>ByteArrayHashMap rid_map = new ByteArrayHashMap();<NEW_LINE>for (int i = 0; i < result_ids.length; i++) {<NEW_LINE>rid_map.put(Base32.decode(result_ids[i]), Boolean.valueOf(reads[i]));<NEW_LINE>}<NEW_LINE>boolean changed = false;<NEW_LINE>List new...
get(result.getKey1());
1,832,554
public Request<ListConfigurationSetsRequest> marshall(ListConfigurationSetsRequest listConfigurationSetsRequest) {<NEW_LINE>if (listConfigurationSetsRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(ListConfigurationSetsRequest)");<NEW_LINE>}<NEW_LINE>Request<ListConfigura...
Integer maxItems = listConfigurationSetsRequest.getMaxItems();
260,777
private void printPreamble() throws FileNotFoundException {<NEW_LINE>setOutputFile(className);<NEW_LINE>out.print("import boofcv.alg.interpolate.PolynomialPixel;\n" + <MASK><NEW_LINE>out.println();<NEW_LINE>out.print("/**\n" + " * <p>\n" + " * Implementation of {@link PolynomialPixel}.\n" + " * </p>\n" + " * <p>\n" + "...
"import boofcv.struct.image.*;\n" + "import boofcv.core.image.border.ImageBorder_" + borderType + ";\n");
338,721
private Method resolveMethodInternalCheckOverloads(Class clazz, String methodName, MethodModifiers methodModifiers) throws ClasspathImportException {<NEW_LINE>Method[] methods = clazz.getMethods();<NEW_LINE>Set<Method> overloadeds = null;<NEW_LINE>Method methodByName = null;<NEW_LINE>// check each method by name, add t...
overloadeds = new HashSet<>();
1,238,690
public void actionPerformed(ActionEvent e) {<NEW_LINE>String state = e.getActionCommand();<NEW_LINE>if (state.equals(JFileChooser.APPROVE_SELECTION)) {<NEW_LINE>File destination = chooser.getSelectedFile();<NEW_LINE>destination = getTargetFile(destination);<NEW_LINE>if (destination.exists()) {<NEW_LINE>NotifyDescriptor...
nd.setOptionType(NotifyDescriptor.YES_NO_OPTION);
548,561
private void initActions(String folder, String category) {<NEW_LINE>if (loadedFromFolders != null) {<NEW_LINE>for (FileObject f : loadedFromFolders) {<NEW_LINE>f.removeFileChangeListener(weakFolderL);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>FileObject fo = FileUtil.getConfigFile(folder);<NEW_LINE>if (fo == null)<NEW_LINE>return...
dataObject, null, category, newFolders);
631,588
protected Texture toJmeObject() {<NEW_LINE>Image image = null;<NEW_LINE>TextureKey key = null;<NEW_LINE>if (media != null) {<NEW_LINE>image = (Image) media.getJmeObject();<NEW_LINE>key = media.getTextureKey();<NEW_LINE>}<NEW_LINE>if (image == null) {<NEW_LINE><MASK><NEW_LINE>}<NEW_LINE>Texture2D tex = new Texture2D(ima...
image = PlaceholderAssets.getPlaceholderImage(assetManager);
1,512,801
public RuleGroupSourceStatelessRulesAndCustomActionsDetails unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>RuleGroupSourceStatelessRulesAndCustomActionsDetails ruleGroupSourceStatelessRulesAndCustomActionsDetails = new RuleGroupSourceStatelessRulesAndCustomActionsDetails();<NEW_LINE>int origina...
JsonToken token = context.getCurrentToken();
1,646,650
private void initHeap(ObjectHeap<CASHInterval> heap, Relation<ParameterizationFunction> relation, int dim, DBIDs ids) {<NEW_LINE>CASHIntervalSplit split = new CASHIntervalSplit(relation, minPts);<NEW_LINE>// determine minimum and maximum function value of all functions<NEW_LINE>double[] <MASK><NEW_LINE>double d_min = m...
minMax = determineMinMaxDistance(relation, dim);