idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,052,119
public static void convolve5(Kernel2D_S32 kernel, GrayS32 src, GrayS32 dest) {<NEW_LINE>final <MASK><NEW_LINE>final int[] dataDst = dest.data;<NEW_LINE>final int width = src.getWidth();<NEW_LINE>final int height = src.getHeight();<NEW_LINE>final int kernelRadius = kernel.getRadius();<NEW_LINE>// CONCURRENT_BELOW BoofCo...
int[] dataSrc = src.data;
8,630
public CurrencyAmount presentValue(OvernightInArrearsCapletFloorletPeriod period, RatesProvider ratesProvider, SabrParametersIborCapletFloorletVolatilities sabrVolatilities) {<NEW_LINE>Currency currency = period.getCurrency();<NEW_LINE>if (ratesProvider.getValuationDate().isAfter(period.getPaymentDate())) {<NEW_LINE>re...
effectiveSabr(sabr, startTime, endTime);
1,546,327
public void close() {<NEW_LINE>boolean lockGained = false;<NEW_LINE>try {<NEW_LINE>// dont want to wait too long during shutdown or update<NEW_LINE>lockGained = storageLock.tryLock(15, TimeUnit.SECONDS);<NEW_LINE>// if lockGained within timeout, then try to remove old entries<NEW_LINE>if (lockGained) {<NEW_LINE>String ...
this.storage.get(STORE_KEY_INDEX_OF_HANDLES);
89,707
public boolean accept(Key k, Value v) {<NEW_LINE>ByteSequence testVis = k.getColumnVisibilityData();<NEW_LINE>if (filterInvalid) {<NEW_LINE>Boolean b = cache.get(testVis);<NEW_LINE>if (b != null)<NEW_LINE>return b;<NEW_LINE>try {<NEW_LINE>new <MASK><NEW_LINE>cache.put(testVis, true);<NEW_LINE>return true;<NEW_LINE>} ca...
ColumnVisibility(testVis.toArray());
666,539
private Mono<Response<Void>> deleteWithResponseAsync(String vaultName, String resourceGroupName, String resourceGuardProxyName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null...
error(new IllegalArgumentException("Parameter resourceGuardProxyName is required and cannot be null."));
1,006,183
public List<? extends PackagingElement<?>> createElements(@Nonnull ArtifactEditorContext context) {<NEW_LINE>final Set<Module> modules = new LinkedHashSet<Module>();<NEW_LINE>collectDependentModules(myModule, modules, context);<NEW_LINE>final Artifact artifact = context.getArtifact();<NEW_LINE>final ArtifactType artifa...
= new LinkedHashSet<PackagingSourceItem>();
1,573,622
protected void construct(InputStream is) throws TOTorrentException {<NEW_LINE>ByteArrayOutputStream metaInfo = new ByteArrayOutputStream(64 * 1024);<NEW_LINE>try {<NEW_LINE>// raised this limit as 2k was rather too small<NEW_LINE>byte[] buf = new byte[32 * 1024];<NEW_LINE>// do a check to see if it's a BEncode file.<NE...
char_data = HTMLUtils.convertHTMLToText2(char_data);
184,318
void decode(Decoder decoder, Instruction instruction) {<NEW_LINE>if ((decoder.state_vvvv_invalidCheck & decoder.invalidCheckMask) != 0)<NEW_LINE>decoder.setInvalidInstruction();<NEW_LINE>instruction.setCode(code);<NEW_LINE>instruction.setOp0Register(decoder.state_reg + decoder.<MASK><NEW_LINE>if (decoder.state_mod == 3...
state_zs_extraRegisterBase + decoder.state_extraRegisterBaseEVEX + baseReg1);
969,253
protected AbstractBeanDefinition doParse(Element element, ParserContext parserContext, String channelName) {<NEW_LINE>BeanMetadataElement source = this.parseSource(element, parserContext);<NEW_LINE>if (source == null) {<NEW_LINE>parserContext.getReaderContext().error("failed to parse source", element);<NEW_LINE>}<NEW_L...
(sourceBeanName, (BeanDefinition) source);
880,776
private void convertPicture(Row row, T obj, Integer index, Field field) {<NEW_LINE>byte[] pictureData;<NEW_LINE>if (isXSSFSheet) {<NEW_LINE>XSSFPicture xssfPicture = xssfPicturesMap.get(row.getRowNum() + "_" + index);<NEW_LINE>if (xssfPicture == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>pictureData = xssfPicture<MAS...
.getPictureData().getData();
494,165
private void iterate(Platform platform, String[] registryNames, Registry registry, Product[] combination, int index, List<Product> products, int start) throws ManagerException {<NEW_LINE>for (int i = start; i < products.size(); i++) {<NEW_LINE>combination[index] = products.get(i);<NEW_LINE>if (index == combination.leng...
= new String[combination.length];
390,748
public void updateBlock(GlowBlock block) {<NEW_LINE>MaterialData data = block.getState().getData();<NEW_LINE>if (data instanceof CocoaPlant) {<NEW_LINE>CocoaPlant cocoa = (CocoaPlant) data;<NEW_LINE>CocoaPlantSize size = cocoa.getSize();<NEW_LINE>if (size != CocoaPlantSize.LARGE && ThreadLocalRandom.current().nextInt(5...
getInstance().callEvent(growEvent);
1,828,777
private void registerHostnameVerifier(String verifier, RestClientBuilder builder) {<NEW_LINE>try {<NEW_LINE>Class<?> verifierClass = Thread.currentThread().getContextClassLoader().loadClass(verifier);<NEW_LINE>builder.hostnameVerifier((HostnameVerifier) verifierClass.getDeclaredConstructor().newInstance());<NEW_LINE>} ...
RuntimeException("Could not find hostname verifier class " + verifier, e);
946,927
public GetUserSettingsResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>GetUserSettingsResult getUserSettingsResult = new GetUserSettingsResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
41,211
public static Action createDebuggerGoToAction(final ProjectContext pc, final Debugger debugger) {<NEW_LINE>Models.ActionPerformer actionPerform = new Models.ActionPerformer() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean isEnabled(Object object) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE><NEW_LINE>@Override<N...
), actionPerform, Models.MULTISELECTION_TYPE_EXACTLY_ONE);
1,148,654
private ObjectNode createIntegration(Context<? extends Trait> context, OperationShape shape, Trait integration) {<NEW_LINE>ObjectNode integrationNode;<NEW_LINE>if (integration instanceof MockIntegrationTrait) {<NEW_LINE>integrationNode = integration.toNode().expectObjectNode().withMember("type", Node.from("mock"));<NEW...
PASSTHROUGH_BEHAVIOR, passthroughBehavior.get());
1,275,294
public PyObject __call__() {<NEW_LINE>ThreadState ts = Py.getThreadState();<NEW_LINE>if (!ts.enterRepr(self)) {<NEW_LINE>return Py.newString("{...}");<NEW_LINE>} else {<NEW_LINE>StringBuilder repr = new StringBuilder("{");<NEW_LINE>boolean first = true;<NEW_LINE>for (Map.Entry<Object, Object> entry : asMap().entrySet()...
java2py(entry.getValue());
739,141
public void onBindViewHolder(final RecyclerView.ViewHolder holder, final int position) {<NEW_LINE>int type = getItemViewType(position);<NEW_LINE>switch(type) {<NEW_LINE>case TYPE_ACTION_HEADER:<NEW_LINE>{<NEW_LINE>HeaderViewHolder headerViewHolder = (HeaderViewHolder) holder;<NEW_LINE>headerViewHolder.setAction(mMassOp...
= getCategoryByPosition(toCategoryPosition(position));
1,776,066
public CompilationDescription extract(String target, Iterable<String> sources, Iterable<String> classpath, Iterable<String> bootclasspath, Iterable<String> sourcepath, Iterable<String> processorpath, Iterable<String> processors, Iterable<String> options, String outputPath) throws ExtractionException {<NEW_LINE>Precondi...
), processors, options, outputPath);
561,607
private void lookForQnameDefinition(Node n) {<NEW_LINE>// TODO(b/123725559): There are lots of cases where this could fail to find the right<NEW_LINE>// definition or be fooled by there being multiple definitions.<NEW_LINE>if (n.isClass()) {<NEW_LINE>if (NodeUtil.isClassDeclaration(n)) {<NEW_LINE>// class Foo {...}<NEW...
Node value = n.getFirstChild();
1,086,568
public MLMethod decode(final NEATPopulation pop, final Substrate substrate, final Genome genome) {<NEW_LINE>// obtain the CPPN<NEW_LINE>final NEATCODEC neatCodec = new NEATCODEC();<NEW_LINE>final NEATNetwork cppn = (NEATNetwork) neatCodec.decode(genome);<NEW_LINE>final List<NEATLink> linkList = new ArrayList<NEATLink>(...
.getId(), weight));
1,412,884
private static String dumpActionMapInfo(ActionMap map, Object q, Lookup prev, Lookup now, Lookup globalContext, Lookup originalLkp) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>sb.append("We really get map from the lookup. Map: ").append(map).append(" returned: ").//...
.lookupAll(Object.class));
1,095,955
protected void paintComponent(final Graphics g) {<NEW_LINE>super.paintComponent(g);<NEW_LINE>final Graphics2D g2d = (Graphics2D) g;<NEW_LINE>final Object aa = GraphicsUtils.setupAntialias(g2d);<NEW_LINE>if (image != null) {<NEW_LINE>g2d.drawImage(image, getWidth() / 2 - image.getWidth() / 2 + 1, getHeight() / 2 - image...
) / 2 + 1, null);
376,284
protected void initComponent(CubaCalendar component) {<NEW_LINE>Messages messages = beanLocator.get(Messages.NAME);<NEW_LINE>String[] monthNamesShort = new String[12];<NEW_LINE>monthNamesShort[0] = messages.getMainMessage("calendar.januaryCaption");<NEW_LINE>monthNamesShort[1] = messages.getMainMessage("calendar.februa...
] = messages.getMainMessage("calendar.mondayCaption");
612,965
public void marshall(CustomRoutingAccelerator customRoutingAccelerator, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (customRoutingAccelerator == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(customRoutin...
customRoutingAccelerator.getIpAddressType(), IPADDRESSTYPE_BINDING);
1,131,955
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>poolNameLabel = new javax.swing.JLabel();<NEW_LINE>poolNameCombo = <MASK><NEW_LINE>poolNameLabel.setLabelFor(poolNameCombo);<NEW_LINE>// NOI18N<NEW_LINE>org.openide.awt.Mnemonics.s...
new javax.swing.JComboBox();
362,476
private boolean visit(List<SQLInsertStatement.ValuesClause> valuesList) {<NEW_LINE>boolean isBatch = false;<NEW_LINE>List<SQLInsertStatement.<MASK><NEW_LINE>if (newValuesList.size() < valuesList.size()) {<NEW_LINE>isBatch = true;<NEW_LINE>valuesList = newValuesList;<NEW_LINE>}<NEW_LINE>SqlNode[] rows = new SqlNode[valu...
ValuesClause> newValuesList = convertToSingleValuesIfNeed(valuesList);
1,439,058
public static APIAttachBackupStorageToZoneEvent __example__() {<NEW_LINE>APIAttachBackupStorageToZoneEvent event = new APIAttachBackupStorageToZoneEvent();<NEW_LINE>BackupStorageInventory bs = new BackupStorageInventory();<NEW_LINE>bs.setName("My Backup Storage");<NEW_LINE>bs.setDescription("Public Backup Storage");<NE...
.singletonList(uuid()));
1,072,317
protected void parseIntent(Context ctx, String action, Bundle bundle) {<NEW_LINE>if (ACTION_SPOTIFY_PLAYBACKSTATECHANGED.equals(action)) {<NEW_LINE>if (bundle.getBoolean("playing")) {<NEW_LINE>setState(MicroService.State.RESUME);<NEW_LINE>setIsSameAsCurrentTrack();<NEW_LINE>} else {<NEW_LINE>setState(MicroService.State...
.getString("album"), artist);
1,147,393
public FrameDetail mapRow(ResultSet rs, int rowNum) throws SQLException {<NEW_LINE>FrameDetail frame = new FrameDetail();<NEW_LINE>frame.id = rs.getString("pk_frame");<NEW_LINE>frame.dependCount = rs.getInt("int_depend_count");<NEW_LINE>frame.exitStatus = rs.getInt("int_exit_status");<NEW_LINE>frame.jobId = rs.getStrin...
dispatchOrder = rs.getInt("int_dispatch_order");
1,050,053
public void mapPartition(Iterable<WindowedValue<InputT>> iterable, Collector<RawUnionValue> collector) throws Exception {<NEW_LINE>ReceiverFactory receiverFactory = new ReceiverFactory(collector, outputMap);<NEW_LINE>if (sdfStateInternals != null) {<NEW_LINE>sdfTimerInternals.advanceProcessingTime(Instant.now());<NEW_L...
, inputCoder)).read();
933,778
private static Map<String, String> delimitedToMap(Map<String, String> map, String source, String listDelimiter, String nameValueSeparator) {<NEW_LINE>int pos = 0;<NEW_LINE>while (true) {<NEW_LINE>if (pos >= source.length()) {<NEW_LINE>return map;<NEW_LINE>}<NEW_LINE>int equalsPos = source.indexOf(nameValueSeparator, po...
source.substring(pos, equalsPos);
1,431,354
final CreateClassificationJobResult executeCreateClassificationJob(CreateClassificationJobRequest createClassificationJobRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createClassificationJobRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
321,699
public ConnectionFuture<StatefulRedisConnection<K, V>> apply(ConnectionKey key) {<NEW_LINE>RedisClusterNode targetNode = null;<NEW_LINE>if (key.nodeId != null && (targetNode = getPartitions().getPartitionByNodeId(key.nodeId)) == null) {<NEW_LINE>clusterEventListener.onUnknownNode();<NEW_LINE>throw connectionAttemptReje...
host + ":" + key.port);
1,043,690
public Alarms unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Alarms alarms = new Alarms();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (t...
int originalDepth = context.getCurrentDepth();
846,403
private void rejectOrder(String senderCompId, String targetCompId, String clOrdId, String symbol, char side, String message) {<NEW_LINE>ExecutionReport fixOrder = new ExecutionReport(new OrderID(clOrdId), new ExecID(generator.genExecutionID()), new ExecTransType(ExecTransType.NEW), new ExecType(ExecType.REJECTED), new ...
setString(Text.FIELD, message);
505,991
public Attributes toAttributes(Attributes attrs) {<NEW_LINE>int offsetSOF = offsetSOF();<NEW_LINE>if (offsetSOF == -1)<NEW_LINE>return null;<NEW_LINE>if (attrs == null)<NEW_LINE>attrs = new Attributes(10);<NEW_LINE>int sof = data[offsetSOF] & 255;<NEW_LINE>int p = data[offsetSOF + 3] & 0xff;<NEW_LINE>int y = ((data[off...
p > 8 ? 16 : 8);
763,429
public Future<ReconcileResult<String>> reconcile(Reconciliation reconciliation, String username, String desired) {<NEW_LINE>if (desired != null) {<NEW_LINE>UserScramCredentialUpsertion upsertion = new UserScramCredentialUpsertion(username, new ScramCredentialInfo(SCRAM_MECHANISM, ITERATIONS), desired.getBytes(StandardC...
warnCr(reconciliation, "Failed to delete SCRAM credentials for user {}", username);
1,591,537
protected List<URI> configureLogging(List<URI> defaults) {<NEW_LINE>autodetectHome();<NEW_LINE>Map<String, String> <MASK><NEW_LINE>envVars.put("home", home.toAbsolutePath().toString());<NEW_LINE>envVars.put("tstamp", tstamp);<NEW_LINE>DcsLookup.setup(envVars);<NEW_LINE>Path conf = home.resolve("conf").resolve("logging"...
envVars = new HashMap<>();
207,546
private void init(CacheParams cacheParams) {<NEW_LINE>clearCache();<NEW_LINE>if (mReusableBitmaps != null) {<NEW_LINE>mReusableBitmaps.clear();<NEW_LINE>mReusableBitmaps = null;<NEW_LINE>}<NEW_LINE>mParams = cacheParams;<NEW_LINE>// Set up memory cache<NEW_LINE>if (mParams.memoryCacheEnabled) {<NEW_LINE>if (Worker.debu...
"Memory cache created (size = " + mParams.memCacheSize + ")");
430,825
public static BooleanExpression asBoolean(Expression<Boolean> expr) {<NEW_LINE>Expression<Boolean> underlyingMixin = ExpressionUtils.extract(expr);<NEW_LINE>if (underlyingMixin instanceof PathImpl) {<NEW_LINE>return new BooleanPath((PathImpl<Boolean>) underlyingMixin);<NEW_LINE>} else if (underlyingMixin instanceof Pre...
new BooleanTemplate((PredicateTemplate) underlyingMixin);
1,704,019
public String listResourceSets(Model m, Authentication auth) {<NEW_LINE>ensureOAuthScope(auth, SystemScopeService.UMA_PROTECTION_SCOPE);<NEW_LINE>String owner = auth.getName();<NEW_LINE>Collection<ResourceSet> resourceSets = Collections.emptySet();<NEW_LINE>if (auth instanceof OAuth2Authentication) {<NEW_LINE>// if it'...
getId().toString());
1,764,141
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
addHandlerContext(HandlerContextKey.ADVANCED_CONFIG, advancedConfig);
1,479,296
private void uploadAutoModeContextSettings(File remoteFolder) throws SharedConfigurationException {<NEW_LINE>logger.log(Level.INFO, <MASK><NEW_LINE>publishTask("Uploading AutoModeContext configuration files");<NEW_LINE>// Make a subfolder<NEW_LINE>File remoteAutoConfFolder = new File(remoteFolder, AUTO_MODE_FOLDER);<NE...
"Uploading shared configuration to {0}", remoteFolder.getAbsolutePath());
1,839,595
private DFProgressObject changeAppRef(Target[] targets, String moduleID, String commandName, String action, Map origOptions) {<NEW_LINE>ensureConnected();<NEW_LINE>targets = getTargetServers(targets);<NEW_LINE>ProgressObjectImpl po = new ProgressObjectImpl(targets);<NEW_LINE>List<TargetModuleIDImpl> targetModuleIDList ...
targetModuleIDs = targetModuleIDList.toArray(targetModuleIDs);
963,504
private File buildSegment() throws Exception {<NEW_LINE>Schema schema = new Schema();<NEW_LINE>for (int i = 0; i < NUM_COLUMNS; i++) {<NEW_LINE>String column = "column_" + i;<NEW_LINE>DimensionFieldSpec dimensionFieldSpec = new DimensionFieldSpec(column, FieldSpec.DataType.STRING, true);<NEW_LINE>schema.addField(dimens...
return new File(SEGMENT_DIR_NAME, SEGMENT_NAME);
1,081,438
private static VirtualMachine prepareSpecializedUnmanagedVirtualMachine(AzureResourceManager azureResourceManager, Region region, String rgName) {<NEW_LINE>final String userName = "tirekicker";<NEW_LINE>final <MASK><NEW_LINE>final String linuxVMName1 = Utils.randomResourceName(azureResourceManager, "vm" + "-", 10);<NEW...
String sshPublicKey = Utils.sshPublicKey();
359,061
public Date parse(@NotNull String text, @NotNull ParsePosition pos) {<NEW_LINE>Date date = super.parse(text, pos);<NEW_LINE>if (date == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int index = pos.getIndex();<NEW_LINE>if (index < text.length() && nanoStart > 0) {<NEW_LINE>long nanos = 0;<NEW_LINE>for (int i = 0; i...
.setNanos((int) nanos);
143,689
private static JMethod createEmptyMethodFromExample(JDeclaredType inType, JMethod exampleMethod, boolean isAbstract) {<NEW_LINE>JMethod emptyMethod = new JMethod(exampleMethod.getSourceInfo(), exampleMethod.getName(), inType, exampleMethod.getType(), isAbstract, false, <MASK><NEW_LINE>emptyMethod.addThrownExceptions(ex...
false, exampleMethod.getAccess());
141,805
final GetDetectorResult executeGetDetector(GetDetectorRequest getDetectorRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDetectorRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
592,919
protected void applyEnterTableKey(EventBean[] eventsPerStream, Object tableKey, ExprEvaluatorContext exprEvaluatorContext) {<NEW_LINE>ObjectArrayBackedEventBean bean = tableInstance.getCreateRowIntoTable(tableKey, exprEvaluatorContext);<NEW_LINE>currentAggregationRow = (AggregationRow) bean.getProperties()[0];<NEW_LINE...
methodPair.getColumn(), columnResult);
1,602,123
private Mono<Response<ConnectionSettingInner>> listWithSecretsWithResponseAsync(String resourceGroupName, String resourceName, String connectionName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is requi...
error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."));
926,212
public int matchingDegree(@Nonnull String name, boolean valueStartCaseMatch, @Nullable FList<? extends TextRange> fragments) {<NEW_LINE>if (fragments == null)<NEW_LINE>return Integer.MIN_VALUE;<NEW_LINE>if (fragments.isEmpty())<NEW_LINE>return 0;<NEW_LINE>final TextRange first = fragments.getHead();<NEW_LINE>boolean st...
nextHumpStart = nextWord(name, nextHumpStart);
959,442
public Optional<SOTrx> retrieveRecordSOTrx(final String tableName, final String whereClause) {<NEW_LINE>if (Check.isEmpty(tableName, true)) {<NEW_LINE>log.error("No TableName");<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>if (Check.isEmpty(whereClause, true)) {<NEW_LINE>log.error("No Where Clause");<NEW_LINE>...
parentPOInfo = POInfo.getPOInfo(parentTableName);
1,217,521
public void loadDynamicClasses() {<NEW_LINE>final ArrayList<SootClass> dynamicClasses = new ArrayList<>();<NEW_LINE>final Options opts = Options.v();<NEW_LINE>final Map<String, List<String>> temp = new HashMap<>();<NEW_LINE>temp.put(null, opts.dynamic_class());<NEW_LINE>final ModulePathSourceLocator msloc = ModulePathS...
(msloc.getClassUnderModulePath(path));
720,412
public final void init(Consumer<Particle> control, Image image, Point2D position, Point2D vel, Point2D acceleration, double radius, Point2D scaleOrigin, Point2D scaleFunction, Point2D entityScale, Duration expireTime, Paint startColor, Paint endColor, BlendMode blendMode, Interpolator interpolator, boolean allowRotatio...
this.position.set(position);
753,110
private void startupDeviceCall() {<NEW_LINE>String aUserId = bridgeSettingMaster.getBridgeSecurity().createWhitelistUser("test_ha_bridge");<NEW_LINE>List<DeviceDescriptor> deviceList = repository.findAll();<NEW_LINE>String aChangeBody;<NEW_LINE>String[] components;<NEW_LINE>boolean comma = false;<NEW_LINE>for (DeviceDe...
RGB[2]), hsb);
1,785,363
public static void registerTornadoMathPlugins(final InvocationPlugins plugins) {<NEW_LINE>Registration registration = new Registration(plugins, TornadoMath.class);<NEW_LINE>registerFloatMath1Plugins(registration, float.class, JavaKind.Float);<NEW_LINE>registerTrigonometric1Plugins(registration, float.class, JavaKind.Fl...
int.class, JavaKind.Int);
438,712
public void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry) {<NEW_LINE>List<Class<? extends Annotation>> annotationTypes = getAnnotations();<NEW_LINE>Class<? extends Annotation> namedAnnotation = null;<NEW_LINE>String[] names = null;<NEW_LINE>ScopedProxyMode proxyMode...
0], names[i]);
921,870
// Should not warn<NEW_LINE>public void blah4() throws IOException {<NEW_LINE>List<Vector> baz = new ArrayList<Vector>();<NEW_LINE>Vector<String> vecRow = new Vector<String>();<NEW_LINE>vecRow.add("blah");<NEW_LINE>BufferedWriter bw = new BufferedWriter(new StringWriter());<NEW_LINE>String foo = "foo";<NEW_LINE>String ...
System.out.println(strHtml);
1,458,449
public void invalidateSchedulesForSelection(@NonNull final PInstanceId pinstanceId) {<NEW_LINE>final String description = truncInvalidateDescription("from T_Selection: " + pinstanceId);<NEW_LINE>final String chunkUUID = UUID.randomUUID().toString();<NEW_LINE>final String sql = "INSERT INTO " + M_SHIPMENT_SCHEDULE_RECOM...
debug("Invalidated {} M_ShipmentSchedules for AD_PInstance_ID={}", count, pinstanceId);
956,710
public static Principal createUser(final SecurityContext securityContext, final PropertyKey credentialKey, final String credentialValue, final Map<String, Object> propertySet, final boolean autoCreate, final Class userClass, final String confKey) throws FrameworkException {<NEW_LINE>final PropertyKey<String> confirmati...
props.put(credentialKey, credentialValue);
1,007,733
private void initImpl(LoadedSnapshot ls) {<NEW_LINE>this.snapshot = ls;<NEW_LINE>updateSaveState();<NEW_LINE>setOpaque(false);<NEW_LINE>setFocusable(true);<NEW_LINE>setRequestFocusEnabled(true);<NEW_LINE>refreshTabName();<NEW_LINE>switch(snapshot.getType()) {<NEW_LINE>case LoadedSnapshot.SNAPSHOT_TYPE_CPU:<NEW_LINE>set...
add(displayedPanel, BorderLayout.CENTER);
403,988
private ChiSquareTestResults toResult(List<Row> rows) {<NEW_LINE>ChiSquareTestResult[] result = new ChiSquareTestResult[rows.size()];<NEW_LINE>for (Row row : rows) {<NEW_LINE>int id = Integer.parseInt(String.valueOf(row.getField(0)));<NEW_LINE>result[id] = JsonConverter.fromJson((String) row.getField<MASK><NEW_LINE>}<N...
(1), ChiSquareTestResult.class);
230,993
static final boolean testRSAKeys(byte[] b, byte[][] privKey, byte[][] pubKey) {<NEW_LINE>int l = pubKey[0].length;<NEW_LINE>if (pubKey[0][0] == 0)<NEW_LINE>l--;<NEW_LINE>long t1 = System.currentTimeMillis();<NEW_LINE>byte[] rsa_b = rsa(true, 0, pubKey, b, 1, l);<NEW_LINE>long t2 = System.currentTimeMillis();<NEW_LINE>r...
rsa_b, 0, rsa_b.length);
1,015,243
final CreateBotLocaleResult executeCreateBotLocale(CreateBotLocaleRequest createBotLocaleRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createBotLocaleRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<Create...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
329,569
protected final void configureWebAppContext(WebAppContext context, ServletContextInitializer... initializers) {<NEW_LINE>Assert.notNull(context, "Context must not be null");<NEW_LINE>context.clearAliasChecks();<NEW_LINE>context.setTempDirectory(getTempDirectory());<NEW_LINE>if (this.resourceLoader != null) {<NEW_LINE>c...
this.resourceLoader.getClassLoader());
1,772,241
public boolean onOptionsItemSelected(final MenuItem item) {<NEW_LINE>switch(item.getItemId()) {<NEW_LINE>case // exit settings when home button (iitc icon) is pressed<NEW_LINE>android.R.id.home:<NEW_LINE>onBackPressed();<NEW_LINE>return true;<NEW_LINE>case R.id.menu_plugins_add:<NEW_LINE>// create the chooser Intent<NE...
Toast.LENGTH_LONG).show();
162,380
private void enqueueGcRoots(Snapshot snapshot) {<NEW_LINE>for (RootObj rootObj : HahaSpy.allGcRoots(snapshot)) {<NEW_LINE>switch(rootObj.getRootType()) {<NEW_LINE>case JAVA_LOCAL:<NEW_LINE>Instance thread = HahaSpy.allocatingThread(rootObj);<NEW_LINE>String <MASK><NEW_LINE>Exclusion params = excludedRefs.threadNames.ge...
threadName = HahaHelper.threadName(thread);
1,017,928
protected RestChannelConsumer doCatRequest(RestRequest restRequest, NodeClient client) {<NEW_LINE>String datafeedId = restRequest.param(DatafeedConfig.ID.getPreferredName());<NEW_LINE>if (Strings.isNullOrEmpty(datafeedId)) {<NEW_LINE>datafeedId = GetDatafeedsStatsAction.ALL;<NEW_LINE>}<NEW_LINE><MASK><NEW_LINE>checkAnd...
Request request = new Request(datafeedId);
1,360,525
private // and class as property<NEW_LINE>Expression correctClassClassChain(PropertyExpression pe) {<NEW_LINE>LinkedList<Expression> stack <MASK><NEW_LINE>ClassExpression found = null;<NEW_LINE>for (Expression it = pe; it != null; it = ((PropertyExpression) it).getObjectExpression()) {<NEW_LINE>if (it instanceof ClassE...
= new LinkedList<Expression>();
1,701,442
protected void appendComponentSlot(XStringBuilder xsb, JsonStringBuilder jsb, SofaTracerSpan span) {<NEW_LINE>Map<String, String> tagStr = span.getTagsWithStr();<NEW_LINE>Map<String, Number> tagNum = span.getTagsWithNumber();<NEW_LINE>// protocol<NEW_LINE>jsb.append(CommonSpanTags.PROTOCOL, tagStr.get(CommonSpanTags.PR...
.get(CommonSpanTags.LOCAL_HOST));
553,392
private void drawInternal(UGraphic ug) throws IOException {<NEW_LINE>double x = 0;<NEW_LINE>double y = 0;<NEW_LINE>double rawHeight = 0;<NEW_LINE>final Stdlib folder = Stdlib.retrieve(name);<NEW_LINE>final CommandFactorySprite factorySpriteCommand = new CommandFactorySprite();<NEW_LINE>Command<WithSprite> cmd = factory...
UTranslate(x, y)));
184,134
private static void tryAssertionLifecycleAndFilter(RegressionEnvironment env, String expressionBefore, String selector, String expressionAfter) {<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@name('expr-one') " + expressionBefore, path);<NEW_LINE>env.compileDeploy("@name('s1') " + se...
("s2").getAndClearIsInvoked());
940,892
public RuleMatch adjustRuleMatchPos(RuleMatch match, int charCount, int columnCount, int lineCount, String sentence, AnnotatedText annotatedText) {<NEW_LINE>int fromPos = match.getFromPos() + charCount;<NEW_LINE>int toPos = match.getToPos() + charCount;<NEW_LINE>if (annotatedText != null) {<NEW_LINE>fromPos = annotated...
= match.getPatternFromPos() + charCount;
1,489,810
void process(Content dataSource, DataSourceIngestModuleProgress progressBar) {<NEW_LINE>this.dataSource = dataSource;<NEW_LINE>progressBar.progress(Bundle.ExtractZone_progress_Msg());<NEW_LINE>List<AbstractFile> zoneFiles = null;<NEW_LINE>try {<NEW_LINE>zoneFiles = currentCase.getServices().getFileManager().findFiles(d...
addErrorMessage(Bundle.ExtractZone_process_errMsg_find());
1,537,799
protected int deleteOldContent(final Date deleteFrom) throws DotDataException {<NEW_LINE>final <MASK><NEW_LINE>calendar.setTime(deleteFrom);<NEW_LINE>calendar.set(Calendar.HOUR_OF_DAY, 0);<NEW_LINE>calendar.set(Calendar.MINUTE, 0);<NEW_LINE>calendar.set(Calendar.SECOND, 0);<NEW_LINE>calendar.set(Calendar.MILLISECOND, 0...
Calendar calendar = Calendar.getInstance();
1,521,163
public void testCriteriaQuery_long(TestExecutionContext testExecCtx, TestExecutionResources testExecResources, Object managedComponentObject) throws Throwable {<NEW_LINE>final String testName = getTestName();<NEW_LINE>// Verify parameters<NEW_LINE>if (testExecCtx == null || testExecResources == null) {<NEW_LINE>Assert....
out.println(testName + ": End");
415,986
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {<NEW_LINE>if (((bitField0_ & 0x00000001) == 0x00000001)) {<NEW_LINE>output.writeMessage(1, getMetadata());<NEW_LINE>}<NEW_LINE>if (((bitField0_ & 0x00000002) == 0x00000002)) {<NEW_LINE>com.google.protobuf.GeneratedMessageV3.wr...
, allowedTopologies_.get(i));
424,361
private ResultPoint[] detectSolid2(ResultPoint[] points) {<NEW_LINE>// A..D<NEW_LINE>// : :<NEW_LINE>// B--C<NEW_LINE>ResultPoint pointA = points[0];<NEW_LINE>ResultPoint pointB = points[1];<NEW_LINE>ResultPoint pointC = points[2];<NEW_LINE>ResultPoint pointD = points[3];<NEW_LINE>// Transition detection on the edge i...
(tr + 1) * 4);
187,081
private void generateItemsJson(@NonNull JSONArray itemsJson, @NonNull Map<File, RemoteFile> remoteInfoFiles, @NonNull List<RemoteFile> noInfoRemoteItemFiles) throws JSONException, IOException {<NEW_LINE>List<FileDownloadTask> <MASK><NEW_LINE>for (Entry<File, RemoteFile> fileEntry : remoteInfoFiles.entrySet()) {<NEW_LIN...
tasks = new ArrayList<>();
145,971
public void testThreadContextBuilderOverlappingContextTypes() throws Exception {<NEW_LINE>ThreadContext.<MASK><NEW_LINE>builder.cleared(ThreadContext.SECURITY, ThreadContext.TRANSACTION, TestContextTypes.STATE);<NEW_LINE>builder.propagated(TestContextTypes.CITY, TestContextTypes.STATE, ThreadContext.APPLICATION);<NEW_L...
Builder builder = ThreadContext.builder();
82,615
protected void applyCommonOverrides(@Nullable RabbitListenerEndpoint endpoint, C instance) {<NEW_LINE>if (endpoint != null) {<NEW_LINE>// endpoint settings overriding default factory settings<NEW_LINE>JavaUtils.INSTANCE.acceptIfNotNull(endpoint.getAutoStartup(), instance::setAutoStartup);<NEW_LINE>instance.setListenerI...
getReplyContentType(), messageListener::setReplyContentType);
1,225,431
public void resolveConfiguredHosts(Consumer<List<TransportAddress>> consumer) {<NEW_LINE>if (lifecycle.started() == false) {<NEW_LINE>LOGGER.debug("resolveConfiguredHosts: lifecycle is {}, not proceeding", lifecycle);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (resolveInProgress.compareAndSet(false, true)) {<NEW_LINE>tran...
LOGGER.debug("failure when resolving unicast hosts list", e);
490,674
public void encodeValues(Buffer valueBuffer, List<JoinMemoryBo> joinMemoryBoList) {<NEW_LINE>if (CollectionUtils.isEmpty(joinMemoryBoList)) {<NEW_LINE>throw new IllegalArgumentException("MemoryBoList must not be empty");<NEW_LINE>}<NEW_LINE>final int numValues = joinMemoryBoList.size();<NEW_LINE>valueBuffer.putVInt(num...
add(joinMemoryBo.getTimestamp());
15,839
private void saveFilter() {<NEW_LINE>final OsmandApplication app = getMyApplication();<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(getContext());<NEW_LINE>builder.setTitle(R.string.access_hint_enter_name);<NEW_LINE>final EditText editText = new EditText(getContext());<NEW_LINE>editText.setHint(R.stri...
setSavedFilterByName(filter.getFilterByName());
927,646
public DescribeRecommenderResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeRecommenderResult describeRecommenderResult = new DescribeRecommenderResult();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDep...
int originalDepth = context.getCurrentDepth();
794,524
public SharingConfiguration configureSharing(String designId, UpdateSharingConfiguration config) throws ServerError, NotFoundException {<NEW_LINE>logger.debug("Configuring sharing settings for API: {} ", designId);<NEW_LINE><MASK><NEW_LINE>try {<NEW_LINE>final User currentUser = this.security.getCurrentUser();<NEW_LINE...
metrics.apiCall("/designs/{designId}/sharing", "PUT");
1,285,896
public void onPublish(InterceptPublishMessage msg) {<NEW_LINE>String clientId = msg.getClientID();<NEW_LINE>ByteBuf payload = msg.getPayload();<NEW_LINE>String topic = msg.getTopicName();<NEW_LINE>String username = msg.getUsername();<NEW_LINE>MqttQoS qos = msg.getQos();<NEW_LINE>LOG.debug("Receive publish message. clie...
status = serviceProvider.executeNonQuery(plan);
1,348,333
private static List<UnitCategory> makeFirstClassUpdateCategories() {<NEW_LINE>Collection<UpdateUnit> units = UpdateManager.getDefault().<MASK><NEW_LINE>List<UnitCategory> res = new ArrayList<UnitCategory>();<NEW_LINE>List<String> names = new ArrayList<String>();<NEW_LINE>final Collection<String> firstClass = getFirstCl...
getUpdateUnits(UpdateManager.TYPE.MODULE);
1,412,884
private static String dumpActionMapInfo(ActionMap map, Object q, Lookup prev, Lookup now, Lookup globalContext, Lookup originalLkp) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>// NOI18N<NEW_LINE>// NOI18N<NEW_LINE>sb.append("We really get map from the lookup. Map: ").append(map).append(" returned: ").//...
.lookupAll(Object.class));
47,270
private void acquireMinecraftToken(String xblUhs, String xblXsts) throws IOException, JSONException {<NEW_LINE>// task.publishProgressPublic();<NEW_LINE>URL url = new URL(mcLoginUrl);<NEW_LINE>Map<Object, Object> data = new HashMap<>();<NEW_LINE>data.put("identityToken", "XBL3.0 x=" + xblUhs + ";" + xblXsts);<NEW_LINE>...
(jo.getString("access_token"));
794,852
final GetFieldLevelEncryptionProfileResult executeGetFieldLevelEncryptionProfile(GetFieldLevelEncryptionProfileRequest getFieldLevelEncryptionProfileRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getFieldLevelEncryptionProfileRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = execu...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,307,161
private void connectAllBticinoDevices() throws ConfigurationException {<NEW_LINE>for (String l_gw_if_id : m_bticino_devices_config.keySet()) {<NEW_LINE>BticinoConfig l_current_device_config = m_bticino_devices_config.get(l_gw_if_id);<NEW_LINE>// Create a gw service object<NEW_LINE>BticinoDevice l_bticino_device = new B...
"], Exception : " + e.getMessage());
1,140,941
public static synchronized void doPatch(String className, ClassMethod[] classMethods) {<NEW_LINE>ClassPool classPool = ClassPool.getDefault();<NEW_LINE>try {<NEW_LINE>CtClass cls = classPool.get(className);<NEW_LINE>for (ClassMethod classMethod : classMethods) {<NEW_LINE>String method = classMethod.method;<NEW_LINE>CtM...
PatchType[] types = classMethod.types;
466,586
// Read-write<NEW_LINE>@Override<NEW_LINE>public NBTTagCompound writeToNBT(NBTTagCompound nbt) {<NEW_LINE>super.writeToNBT(nbt);<NEW_LINE>nbt.setTag("battery", battery.serializeNBT());<NEW_LINE><MASK><NEW_LINE>nbt.setBoolean("inverted", inverted);<NEW_LINE>nbt.setBoolean("finished", finished);<NEW_LINE>nbt.setByte("loc...
nbt.setBoolean("canExcavate", canExcavate);
1,818,287
public void initFromTensorFlow(NodeDef nodeDef, SameDiff initWith, Map<String, AttrValue> attributesForNode, GraphDef graph) {<NEW_LINE>val aStrides = nodeDef.getAttrOrThrow("strides");<NEW_LINE>val tfStrides = aStrides.getList().getIList();<NEW_LINE>val sH = tfStrides.get(1);<NEW_LINE>val sW = tfStrides.get(2);<NEW_LI...
isSameMode = paddingMode.equalsIgnoreCase("SAME");
1,565,957
public ResolvedJavaMethod lookup(UniverseMetaAccess metaAccess, ResolvedJavaMethod constructor, boolean throwAllocatedObject) {<NEW_LINE>HostedUniverse hUniverse;<NEW_LINE>AnalysisMetaAccess aMetaAccess;<NEW_LINE>if (metaAccess instanceof HostedMetaAccess) {<NEW_LINE>hUniverse = (HostedUniverse) metaAccess.getUniverse(...
).isAbstract(), "Must be a non-abstract instance class");
1,782,146
public RecipeMarimorphosis fromJson(@Nonnull ResourceLocation recipeId, @Nonnull JsonObject json) {<NEW_LINE>RecipeOrechid base = ModRecipeTypes.ORECHID_SERIALIZER.fromJson(recipeId, json);<NEW_LINE>Set<BiomeCategory> biomes = new HashSet<>();<NEW_LINE>var array = GsonHelper.getAsJsonArray(json, "biomes", new JsonArray...
getAsInt(json, "biome_bonus", 0);
464,452
protected boolean handleProcess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) throws LayerGenerationException {<NEW_LINE>for (Element e : roundEnv.getElementsAnnotatedWith(EmbeddingProvider.Registration.class)) {<NEW_LINE>if (!e.getKind().isClass()) {<NEW_LINE>// NOI18N<NEW_LINE>throw new LayerGene...
getAnnotation(EmbeddingProvider.Registration.class);