idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,714,902
public void Start() {<NEW_LINE>// Need to check if we have RECORD_AUDIO and WRITE_EXTERNAL permissions<NEW_LINE>String uri = FileUtil.resolveFileName(form, savedRecording, form.DefaultFileScope());<NEW_LINE>if (!havePermission) {<NEW_LINE>final SoundRecorder me = this;<NEW_LINE>final String[] neededPermissions;<NEW_LIN...
= new String[] { RECORD_AUDIO };
1,219,300
protected void computeOtsu2(int[] histogram, int length, int totalPixels) {<NEW_LINE>double dlength = length;<NEW_LINE>double sum = 0;<NEW_LINE>for (int i = 0; i < length; i++) sum += (i / dlength) * histogram[i];<NEW_LINE>double sumB = 0;<NEW_LINE>int wB = 0;<NEW_LINE>variance = 0;<NEW_LINE>threshold = 0;<NEW_LINE>dou...
* (selectedMB + selectedMF) / 2.0;
1,850,344
public Bias unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Bias bias = new Bias();<NEW_LINE><MASK><NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>JsonToken token = context.getCurrentToken();<NEW_LINE>if (token == ...
int originalDepth = context.getCurrentDepth();
1,411,731
public Service convertFromSObject(SService input, Service result, DatabaseSession session) throws BimserverDatabaseException {<NEW_LINE>if (input == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>result.setName(input.getName());<NEW_LINE>result.setServiceName(input.getServiceName());<NEW_LINE>result.setServiceIdenti...
setProfileName(input.getProfileName());
1,525,694
private static Optional<List<BingTile>> handleTrivialCases(Envelope envelope, int zoom) {<NEW_LINE>checkZoomLevel(zoom);<NEW_LINE>if (envelope.isEmpty()) {<NEW_LINE>return Optional.of(ImmutableList.of());<NEW_LINE>}<NEW_LINE>checkLatitude(envelope.getYMin(), LATITUDE_SPAN_OUT_OF_RANGE);<NEW_LINE>checkLatitude(envelope....
envelope.getXMax(), LONGITUDE_SPAN_OUT_OF_RANGE);
1,479,687
protected Subtitle decode(byte[] bytes, int length, boolean reset) throws SubtitleDecoderException {<NEW_LINE>// Webvtt in Mp4 samples have boxes inside of them, so we have to do a traditional box parsing:<NEW_LINE>// first 4 bytes size and then 4 bytes type.<NEW_LINE>sampleData.reset(bytes, length);<NEW_LINE>List<Cue>...
(sampleData, boxSize - BOX_HEADER_SIZE));
989,607
public OriginGroup unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>OriginGroup originGroup = new OriginGroup();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE>targetDepth += 1;<NEW_LINE>whil...
().unmarshall(context));
480,620
private void createPreviewRequest() {<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "createPreviewRequest");<NEW_LINE>if (camera == null) {<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "camera not available!");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (MyDebug.LOG)<NEW_LINE>Log.d(TAG, "camera: " + camera);<NEW_LINE>try...
Log.d(TAG, "successfully created preview request");
1,697,639
public static // ifftSize can be greater than, equal to, or less than x.length.<NEW_LINE>ComplexArray ifft(ComplexArray x, int ifftSize) {<NEW_LINE>ComplexArray h = null;<NEW_LINE>int w;<NEW_LINE>if (x.real.length > ifftSize) {<NEW_LINE>ComplexArray h2 = ifft(x);<NEW_LINE>h = new ComplexArray(ifftSize);<NEW_LINE>for (w...
h.imag[w] = 0.0;
535,768
public void fileCreated(int wd, String rootPath, final String name) {<NEW_LINE>if (name == null || name.endsWith(DOT_LOCK)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// a branch has been added<NEW_LINE>addBranch(new GitRevSpecifier(GitRef.refFromString(GitRef.REFS_HEADS + name)));<NEW_LINE>Job job = new // $NON-NLS-1$<NEW...
.simpleRef().shortName();
1,303,667
public RestHighLevelClient initRestClient() {<NEW_LINE>// support es cluster with multi hosts<NEW_LINE>List<HttpHost> hosts = new ArrayList<>();<NEW_LINE>String[] hostArrays = host.split(",");<NEW_LINE>for (String host : hostArrays) {<NEW_LINE>if (StringUtils.isNotEmpty(host)) {<NEW_LINE>hosts.add(new HttpHost(host.tri...
(), port, "http"));
1,639,247
public <T> List<ExtensionWrapper<T>> find(Class<T> type) {<NEW_LINE>log.debug("Finding extensions of extension point '{}'", type.getName());<NEW_LINE>Map<String, Set<String>> entries = getEntries();<NEW_LINE>List<ExtensionWrapper<T>> result = new ArrayList<>();<NEW_LINE>// add extensions found in classpath and plugins<...
pluginExtensions = find(type, pluginId);
1,236,017
public static String encodeXmlAttribute(String text, boolean exceptApos) {<NEW_LINE>if (text == null || text.length() == 0) {<NEW_LINE>return text;<NEW_LINE>}<NEW_LINE>int length = text.length();<NEW_LINE>// FIXME avoid creating this when not necessary<NEW_LINE>StringBuilder ret = new StringBuilder(length * 12 / 10);<N...
text, ret, i, last);
254,795
private Map<String, Object> buildResultMap(SearchResponse response, KunderaQuery query, EntityMetadata m, MetamodelImpl metaModel) {<NEW_LINE>Map<String, Object> map = new LinkedHashMap<>();<NEW_LINE>ESResponseWrapper esResponseReader = new ESResponseWrapper();<NEW_LINE>for (SearchHit hit : response.getHits()) {<NEW_LI...
m.getEntityClazz(), m);
617,951
// return true if commit success and publish success, return false if publish timeout<NEW_LINE>private boolean loadTxnCommitImpl(TLoadTxnCommitRequest request) throws UserException {<NEW_LINE>String cluster = request.getCluster();<NEW_LINE>if (Strings.isNullOrEmpty(cluster)) {<NEW_LINE>cluster = SystemInfoService.DEFAU...
.getThriftRpcTimeoutMs() / 2 : 5000;
820,685
private static void buildConversionMap() {<NEW_LINE>// Values in the map below may be always changed<NEW_LINE>ArrayMap<String, String> keyValueMap = new ArrayMap<>(10);<NEW_LINE>keyValueMap.put("top", "0");<NEW_LINE>keyValueMap.put("left", "0");<NEW_LINE><MASK><NEW_LINE>keyValueMap.put("bottom", "DUMMY_BOTTOM");<NEW_LI...
keyValueMap.put("right", "DUMMY_RIGHT");
970,770
protected void processTasks(boolean redstoneCheck) {<NEW_LINE>if (!redstoneCheck) {<NEW_LINE>if (canBeActive) {<NEW_LINE>canBeActive = false;<NEW_LINE>updateClients = true;<NEW_LINE>}<NEW_LINE>return;<NEW_LINE>} else {<NEW_LINE>canBeActive = true;<NEW_LINE>if (!world.isRemote && fluidUsed > 0 && activeTask == null && !...
= new EntityWeatherRocket(world, activeTask);
1,374,519
protected DB2PlanConfig runTask() {<NEW_LINE>// No valid explain tables found, propose to create them in current authId<NEW_LINE>String msg = String.format(DB2Messages.<MASK><NEW_LINE>if (!UIUtils.confirmAction(DB2Messages.dialog_explain_no_tables, msg)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>// Ask the user in wh...
dialog_explain_ask_to_create, object.getSessionUserSchema());
156,342
private void fixnumStep(ThreadContext context, Ruby runtime, long step, Block block) {<NEW_LINE>// We must avoid integer overflows.<NEW_LINE>// Any method calling this method must ensure that "step" is greater than 0.<NEW_LINE>long to = ((RubyFixnum) end).getLongValue();<NEW_LINE>if (isExclusive) {<NEW_LINE>if (to == L...
.newFixnum(runtime, i));
1,094,968
protected void copyUserFolders(User fromUser, User toUser, Map<UUID, Presentation> presentationsMap) {<NEW_LINE>try (Transaction tx = persistence.createTransaction()) {<NEW_LINE>MetaClass effectiveMetaClass = metadata.getExtendedEntities().getEffectiveMetaClass(SearchFolder.class);<NEW_LINE>EntityManager em = persisten...
()), SearchFolder.class);
466,172
public String execute(SampleResult previousResult, Sampler currentSampler) throws InvalidVariableException {<NEW_LINE>String digestAlgorithm = <MASK><NEW_LINE>String stringToEncode = values[1].execute();<NEW_LINE>String salt = values.length > 2 ? values[2].execute() : null;<NEW_LINE>String encodedString = null;<NEW_LIN...
values[0].execute();
359,427
public Object call(ExecutionContext context, Object self, Object... args) {<NEW_LINE>// 15.4.4.9<NEW_LINE>JSObject o = Types.toObject(context, self);<NEW_LINE>long len = Types.toUint32(context, o<MASK><NEW_LINE>Arguments argsObj = (Arguments) context.resolve("arguments").getValue(context);<NEW_LINE>int numArgs = (int) ...
.get(context, "length"));
898,394
private // SQLDCXGRP; PROTOCOL TYPE N-GDA; ENVLID 0xD3; Length Override 1<NEW_LINE>int parseSQLDCGRP(NetSqlca[] rowsetSqlca, int lastRow) {<NEW_LINE>// SQLCODE<NEW_LINE>int sqldcCode = readFastInt();<NEW_LINE>// SQLSTATE<NEW_LINE>String sqldcState = readFastString(5, CCSIDConstants.UTF8);<NEW_LINE>// REASON_CODE<NEW_LI...
NetSqlca(sqldcCode, sqldcState, null);
1,324,661
public void doSubSidebarNoLoad(final String subOverride) {<NEW_LINE>findViewById(R.id.loader).setVisibility(View.GONE);<NEW_LINE>invalidateOptionsMenu();<NEW_LINE>if (!subOverride.equalsIgnoreCase("all") && !subOverride.equalsIgnoreCase("frontpage") && !subOverride.equalsIgnoreCase("friends") && !subOverride.equalsIgno...
wiki_text)).setTextColor(subColor);
338,194
private void checkSnapshotCompatibility(Project project, FileCollection currentFiles, File previousDirectory, FileExtensionFilter filter, List<String> fileArgs) {<NEW_LINE>boolean isCheckRestSpecVsSnapshot = filter.getSuffix().equals(PegasusPlugin.IDL_FILE_SUFFIX);<NEW_LINE>for (File currentFile : currentFiles) {<NEW_L...
apiFile = project.file(apiFilePath);
1,036,114
private void initDatabasesTab() {<NEW_LINE>new ViewModelListCellFactory<StudyDatabaseItem>().withText(StudyDatabaseItem::getName).install(databaseSelector);<NEW_LINE>databaseSelector.setItems(viewModel.getNonSelectedDatabases());<NEW_LINE>setupCommonPropertiesForTables(databaseSelector, <MASK><NEW_LINE>databaseEnabledC...
this::addDatabase, databaseColumn, databaseActionColumn);
268,944
public SecurityProfileIdentifier unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>SecurityProfileIdentifier securityProfileIdentifier = new SecurityProfileIdentifier();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE><MASK><NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>J...
String currentParentElement = context.getCurrentParentElement();
952,204
public static void main(String[] args) {<NEW_LINE>// TODO: Replace with your project ID in the form "projects/your-project-id".<NEW_LINE>String projectId = "your-project";<NEW_LINE>// TODO: Replace with the ID of your member in the form "user:member@example.com"<NEW_LINE>String member = "your-member";<NEW_LINE>// The r...
) + e.getStackTrace());
1,658,803
public void run() throws Exception {<NEW_LINE>initShutdownHook();<NEW_LINE>log.log(Level.FINE, "Starting VdsVisitTarget");<NEW_LINE>MessageBusParams mbusParams = new MessageBusParams(new LoadTypeSet());<NEW_LINE>mbusParams.getRPCNetworkParams().setIdentity(new Identity(slobrokAddress));<NEW_LINE>if (port > 0) {<NEW_LIN...
int.class, boolean.class };
1,616,117
private String toStringWithSuffix(final String suffix) {<NEW_LINE>StringBuilder toStringBuff = new StringBuilder();<NEW_LINE>toStringBuff.append(" parentHash=").append(toHexStringOrEmpty(parentHash)).append(suffix);<NEW_LINE>toStringBuff.append(" unclesHash=").append(toHexStringOrEmpty(unclesHash)).append(suffix);<NE...
receiptTrieRoot)).append(suffix);
1,122,084
private static void createOffsetFromNode(Node node, AnnotationProvider factory, OffsetEquation eq, char op) {<NEW_LINE>JavaExpression je = JavaExpression.fromNode(node);<NEW_LINE>if (je instanceof Unknown || je == null) {<NEW_LINE>if (node instanceof NumericalAdditionNode) {<NEW_LINE>createOffsetFromNode(((NumericalAdd...
op, je.toString());
540,134
public CreateSignalingChannelResult createSignalingChannel(CreateSignalingChannelRequest createSignalingChannelRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createSignalingChannelRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics ...
awsRequestMetrics, request, response, LOGGING_AWS_REQUEST_METRIC);
491,174
public ConsumerExecutor createExecutor(ExecutionContext context, int index) {<NEW_LINE>PartitioningScheme partitioningScheme = fragment.getPartitioningScheme();<NEW_LINE>List<DataType<MASK><NEW_LINE>List<DataType> outputType = SerializeDataType.convertToDataType(fragment.getOutputTypes());<NEW_LINE>if (partitioningSche...
> inputType = fragment.getTypes();
1,141,682
public void printHistogramScaled() {<NEW_LINE>String sumType = input.getSumType();<NEW_LINE>out.print("\tpublic static void histogramScaled( " + input.getSingleBandName() + " input , " + sumType + " minValue , " + sumType + " maxValue, int[] histogram ) {\n" + "\t\tArrays.fill(histogram,0);\n" + "\n" + "\t\tfinal " + s...
input.getBitWise() + ") - minValue)/rangeValue) ]++;\n");
1,694,326
public void restartNode(NodeSpec nodeSpec) throws Exception {<NEW_LINE>String clientKey = getNodeClientKey(nodeSpec);<NEW_LINE>NodeClient client = nodeClientCache.getOrDefault(clientKey, null);<NEW_LINE>if (null == client) {<NEW_LINE>client = new NodeClient(nodeSpec.getIp(), nodeSpec.getClientPort());<NEW_LINE>nodeClie...
"restart response:" + response1.getMessage());
1,274,713
public Lucene90OnHeapHnswGraph build(RandomAccessVectorValues vectors) throws IOException {<NEW_LINE>if (vectors == vectorValues) {<NEW_LINE>throw new IllegalArgumentException("Vectors to build must be independent of the source of vectors provided to HnswGraphBuilder()");<NEW_LINE>}<NEW_LINE>if (infoStream.isEnabled(HN...
.nanoTime(), t = start;
913,695
public void update(ECoCheckDetector<?> ecocheck) {<NEW_LINE>DogArray<ChessboardCorner> orig = ecocheck.getDetector().getCorners();<NEW_LINE>foundCorners.reset();<NEW_LINE>for (int i = 0; i < orig.size; i++) {<NEW_LINE>foundCorners.grow().setTo(orig.get(i));<NEW_LINE>}<NEW_LINE>{<NEW_LINE>DogArray<ECoCheckFound> found =...
.corners.get(j));
1,206,090
final DescribeLoadBasedAutoScalingResult executeDescribeLoadBasedAutoScaling(DescribeLoadBasedAutoScalingRequest describeLoadBasedAutoScalingRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeLoadBasedAutoScalingRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContex...
invoke(request, responseHandler, executionContext);
376,039
private void writePage(Page page) {<NEW_LINE>int[] writerIndexes = getWriterIndexes(page);<NEW_LINE>// position count for each writer<NEW_LINE>int[] sizes = new <MASK><NEW_LINE>for (int index : writerIndexes) {<NEW_LINE>sizes[index]++;<NEW_LINE>}<NEW_LINE>// record which positions are used by which writer<NEW_LINE>int[...
int[writers.size()];
471,195
public void filterBankDetails(ActionRequest request, ActionResponse response) {<NEW_LINE>InvoicePayment invoicePayment = request.getContext().asType(InvoicePayment.class);<NEW_LINE>Map<String, Object> partialInvoice = (Map<String, Object>) request.<MASK><NEW_LINE>Invoice invoice = Beans.get(InvoiceRepository.class).fin...
getContext().get("_invoice");
267,306
protected static void verifyData(File file, RSAPublicKey key) throws AEVerifierException, Exception {<NEW_LINE>ZipInputStream zis = null;<NEW_LINE>try {<NEW_LINE>zis = new ZipInputStream(new BufferedInputStream(FileUtil.newFileInputStream(file)));<NEW_LINE>byte[] signature = null;<NEW_LINE>Signature sig = Signature.get...
String name = entry.getName();
1,827,438
void removeUpdateUpdate(DocumentEvent evt) {<NEW_LINE>// Check whether removal would affect any contained text regions<NEW_LINE>// and if so remove their associated text sync groups.<NEW_LINE>int minGroupIndex = Integer.MAX_VALUE;<NEW_LINE>int removeStartOffset = evt.getOffset();<NEW_LINE>int removeEndOffset = removeSt...
(removeEndOffset).append(">.\n Removing GROUPS <");
797,756
public void registerLifecycleEventListener(final LifecycleEventListener listener) {<NEW_LINE>final WeakReference<LifecycleEventListener> weakListener = new WeakReference<>(listener);<NEW_LINE>mLifecycleListenersMap.put(listener, new abi44_0_0.com.facebook.react.bridge.LifecycleEventListener() {<NEW_LINE><NEW_LINE>@Over...
(mLifecycleListenersMap.get(listener));
443,695
public void Call(lua_State thread, lua_Debug ar) {<NEW_LINE>String[] hooknames = new String[] { "call", "return", "line", "count", "tail return" };<NEW_LINE>LuaAPI.lua_pushlightuserdata(thread, KEY_HOOK);<NEW_LINE>LuaAPI.lua_rawget(thread, LuaAPI.LUA_REGISTRYINDEX);<NEW_LINE>LuaAPI.lua_pushlightuserdata(thread, thread)...
lua_call(thread, 2, 0);
1,821,089
private static boolean addLinks(Context context, AppSettings settings, Spannable s, Pattern p, MatchFilter matchFilter, TransformFilter transformFilter, TextView tv, View holder, String allUrls, boolean extBrowser) {<NEW_LINE>boolean hasMatches = false;<NEW_LINE>Matcher m = p.matcher(s);<NEW_LINE>while (m.find()) {<NEW...
int start = m.start();
1,782,235
private static List<GraphUpdater> createUpdatersFromConfig(UpdatersParameters config) {<NEW_LINE>List<GraphUpdater> updaters = new ArrayList<>();<NEW_LINE>for (VehicleRentalUpdaterParameters configItem : config.getVehicleRentalParameters()) {<NEW_LINE>var source = VehicleRentalDataSourceFactory.create(configItem.source...
add(new SiriETGooglePubsubUpdater(configItem));
272,068
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {<NEW_LINE>builder.startObject();<NEW_LINE>if (bucketSpan != null) {<NEW_LINE>builder.field(BUCKET_SPAN.getPreferredName(), bucketSpan.getStringRep());<NEW_LINE>}<NEW_LINE>if (categorizationFieldName != null) {<NEW_LINE>builder...
categorizationAnalyzerConfig.toXContent(builder, params);
1,502,668
public void init() {<NEW_LINE>List<String> fileList = getFilesList();<NEW_LINE>if (fileList.size() > 0) {<NEW_LINE>try {<NEW_LINE>List<String> paths = new ArrayList<String>();<NEW_LINE>for (String s : fileList) {<NEW_LINE>if (!paths.contains(s)) {<NEW_LINE>paths.add(s);<NEW_LINE>}<NEW_LINE>}<NEW_LINE>Collections.sort(<...
paths, Collections.reverseOrder());
1,621,109
protected void sendEntriesToSwitch(DatapathId switchId) {<NEW_LINE>IOFSwitch <MASK><NEW_LINE>if (sw == null)<NEW_LINE>return;<NEW_LINE>String stringId = sw.getId().toString();<NEW_LINE>if ((entriesFromStorage != null) && (entriesFromStorage.containsKey(stringId))) {<NEW_LINE>Map<String, OFMessage> entries = entriesFrom...
sw = switchService.getSwitch(switchId);
28,750
public void transactionPromise() {<NEW_LINE>// [START transaction_with_result]<NEW_LINE>final DocumentReference sfDocRef = db.collection("cities").document("SF");<NEW_LINE>db.runTransaction(new Transaction.Function<Double>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public Double apply(Transaction transaction) throws Fir...
snapshot.getDouble("population") + 1;
1,316,563
public static int trap(int[] height) {<NEW_LINE>int result = 0;<NEW_LINE>if (height == null || height.length <= 2)<NEW_LINE>return result;<NEW_LINE>int[] left = new int[height.length];<NEW_LINE>int[] right = new int[height.length];<NEW_LINE>// scan from left to right<NEW_LINE>int max = height[0];<NEW_LINE>left[0] = hei...
height[height.length - 1];
604,146
public void run() {<NEW_LINE>M2ConfigProvider conf = proj.getLookup().lookup(M2ConfigProvider.class);<NEW_LINE>ActionToGoalUtils.writeMappingsToFileAttributes(proj.getProjectDirectory(), maps);<NEW_LINE>if (remembered != null) {<NEW_LINE>try {<NEW_LINE>// NOI18N<NEW_LINE>String tit = "CUSTOM-" + remembered;<NEW_LINE>ma...
proj, conf.getDefaultConfig());
1,184,019
public static GetTableDBTopologyResponse unmarshall(GetTableDBTopologyResponse getTableDBTopologyResponse, UnmarshallerContext _ctx) {<NEW_LINE>getTableDBTopologyResponse.setRequestId(_ctx.stringValue("GetTableDBTopologyResponse.RequestId"));<NEW_LINE>getTableDBTopologyResponse.setErrorCode(_ctx.stringValue("GetTableDB...
= new ArrayList<DataSource>();
1,652,394
private void testReceiveMessageTopicTranxSecOff(TopicConnectionFactory topicConnectionFactory) throws NamingException, NotSupportedException, SystemException, HeuristicMixedException, HeuristicRollbackException, RollbackException, JMSException, TestException {<NEW_LINE>UserTransaction userTransaction = null;<NEW_LINE>J...
JMSProducer jmsProducer = jmsContext.createProducer();
1,535,103
public void logStaxImplementation(Class<?> theClass) {<NEW_LINE>try {<NEW_LINE>URL rootUrl = getRootUrlForClass(theClass);<NEW_LINE>if (rootUrl == null) {<NEW_LINE>ourLog.info("Unable to determine location of StAX implementation containing class");<NEW_LINE>} else {<NEW_LINE>Manifest manifest;<NEW_LINE>URL metaInfUrl =...
version = attrs.getValue(BUNDLE_VERSION);
283,387
public EqualityError isVulnerable(List<Pkcs1Vector> pkcs1Vectors, RSAPublicKey publicKey) {<NEW_LINE>fingerprintPairList = getBleichenbacherMap(config.getWorkflowType(), pkcs1Vectors, publicKey);<NEW_LINE>if (fingerprintPairList.isEmpty()) {<NEW_LINE>LOGGER.warn("Could not extract Fingerprints");<NEW_LINE>return null;<...
getWorkflowType(), pkcs1Vectors, publicKey);
823,200
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.getPlayer(source.getControllerId());<NEW_LINE>Permanent permanent = game.getPermanentOrLKIBattlefield(source.getSourceId());<NEW_LINE>if (controller != null && permanent != null) {<NEW_LINE>new AddCountersSourceEffect(CounterType.WAGE.c...
).apply(game, source);
353,944
final GetReservedNodeExchangeConfigurationOptionsResult executeGetReservedNodeExchangeConfigurationOptions(GetReservedNodeExchangeConfigurationOptionsRequest getReservedNodeExchangeConfigurationOptionsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getReservedNodeExchangeConfigurationOpti...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
291,327
public Collection<Long> loadCollapsedCommenst(String repoUrl, String id) {<NEW_LINE>File file = getIssuePropertiesFile(repoUrl, id);<NEW_LINE>FileLocks.FileLock <MASK><NEW_LINE>try {<NEW_LINE>Properties p = load(file, repoUrl, id);<NEW_LINE>Set<Long> s = new HashSet<Long>();<NEW_LINE>for (Object k : p.keySet()) {<NEW_L...
l = FileLocks.getLock(file);
365,958
public static String readUtf8LPP4(LittleEndianInput is) {<NEW_LINE><MASK><NEW_LINE>if (length == 0 || length == 4) {<NEW_LINE>@SuppressWarnings("unused")<NEW_LINE>int // ignore<NEW_LINE>skip = is.readInt();<NEW_LINE>return length == 0 ? null : "";<NEW_LINE>}<NEW_LINE>byte[] data = new byte[length];<NEW_LINE>is.readFull...
int length = is.readInt();
655,724
public Void visitBlock(BlockTree bt, Void p) {<NEW_LINE>List<CatchTree> catches = createCatches(info, make, thandles, statement);<NEW_LINE>// #89379: if inside a constructor, do not wrap the "super"/"this" call:<NEW_LINE>// please note that the "super" or "this" call is supposed to be always<NEW_LINE>// in the construc...
info.rewrite(originalDeclaration, assignment);
621,595
private InetSocketAddress slowSearchClientIP(final RegionClient client) {<NEW_LINE>String hostport = null;<NEW_LINE>synchronized (ip2client) {<NEW_LINE>for (final Map.Entry<String, RegionClient> e : ip2client.entrySet()) {<NEW_LINE>if (e.getValue() == client) {<NEW_LINE>hostport = e.getKey();<NEW_LINE>break;<NEW_LINE>}...
, hostport.length()));
549,863
protected WSSecTimestamp handleLayout(WSSecTimestamp timestamp) {<NEW_LINE>Collection<AssertionInfo> ais;<NEW_LINE>ais = aim.get(SP12Constants.LAYOUT);<NEW_LINE>if (ais != null) {<NEW_LINE>for (AssertionInfo ai : ais) {<NEW_LINE>Layout layout = (Layout) ai.getAssertion();<NEW_LINE>ai.setAsserted(true);<NEW_LINE>if (SPC...
SPConstants.Layout.LaxTimestampLast + " requires a timestamp");
1,358,327
protected void createWorldOctaves(World world, Map<String, OctaveGenerator> octaves) {<NEW_LINE>Random seed = new Random(world.getSeed());<NEW_LINE>OctaveGenerator gen = new PerlinOctaveGenerator(seed, <MASK><NEW_LINE>gen.setXScale(coordinateScale);<NEW_LINE>gen.setYScale(heightScale);<NEW_LINE>gen.setZScale(coordinate...
16, 3, 33, 3);
147,456
public static SGIHeader read(final ImageInputStream imageInput) throws IOException {<NEW_LINE>// typedef struct _SGIHeader<NEW_LINE>// {<NEW_LINE>// SHORT Magic; /* Identification number (474) */<NEW_LINE>// CHAR Storage; /* Compression flag */<NEW_LINE>// CHAR Bpc; /* Bytes per pixel */<NE...
short magic = imageInput.readShort();
1,642,281
public Root update(Root inRoot) throws WIMException {<NEW_LINE>System.out.println("<update> entry, inRoot: \n" + inRoot);<NEW_LINE>for (Entity entity : inRoot.getEntities()) {<NEW_LINE><MASK><NEW_LINE>IdentifierType identity = entity.getIdentifier();<NEW_LINE>String dn = identity.getExternalName();<NEW_LINE>String uniq...
String typeName = entity.getTypeName();
1,354,023
public AwsRdsDbClusterMember unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsRdsDbClusterMember awsRdsDbClusterMember = new AwsRdsDbClusterMember();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int t...
JsonToken token = context.getCurrentToken();
1,403,415
public void bind() {<NEW_LINE>if (type == GLES20.GL_FLOAT) {<NEW_LINE>GLES20.glUniform1fv(location, /* count= */<NEW_LINE>1, value, /* offset= */<NEW_LINE>0);<NEW_LINE>checkGlError();<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (type == GLES20.GL_FLOAT_MAT3) {<NEW_LINE>GLES20.glUniformMatrix3fv(location, /* count= */<NEW_L...
GLES20.GL_TEXTURE_WRAP_T, GLES20.GL_CLAMP_TO_EDGE);
1,191,891
private ReferenceDB addRef(Address fromAddr, Address toAddr, RefType type, SourceType sourceType, int opIndex, boolean isOffset, boolean isShifted, long offsetOrShift) throws IOException {<NEW_LINE>if (isOffset && isShifted) {<NEW_LINE>throw new IllegalArgumentException("Reference may not be both shifted and offset");<...
sourceType, isOffset, isShifted, offsetOrShift);
1,333,194
public void start() throws IOException {<NEW_LINE>synchronized (lock) {<NEW_LINE>if (started) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>log.info(<MASK><NEW_LINE>final String loadQueueLocation = ZKPaths.makePath(zkPaths.getLoadQueuePath(), me.getName());<NEW_LINE>final String servedSegmentsLocation = ZKPaths.makePath(zkPat...
"Starting zkCoordinator for server[%s]", me.getName());
466,011
public void actionPerformed(@NotNull AnActionEvent e) {<NEW_LINE><MASK><NEW_LINE>DownloadableFileDescription rebar = service.createFileDescription(url, fileName);<NEW_LINE>FileDownloader downloader = service.createDownloader(Collections.singletonList(rebar), fileName);<NEW_LINE>List<Pair<VirtualFile, DownloadableFileDe...
DownloadableFileService service = DownloadableFileService.getInstance();
180,110
public Problem preCheck(CompilationController info) throws IOException {<NEW_LINE>fireProgressListenerStart(refactoring.PRE_CHECK, 4);<NEW_LINE>Problem preCheckProblem = null;<NEW_LINE>info.<MASK><NEW_LINE>preCheckProblem = isElementAvail(treePathHandle, info);<NEW_LINE>if (preCheckProblem != null) {<NEW_LINE>return pr...
toPhase(JavaSource.Phase.RESOLVED);
1,615,209
private BeanDefinitionBuilder dispatcher(Element element, ParserContext parserContext, boolean isFixedSubscriber, Element dispatcherElement) {<NEW_LINE>BeanDefinitionBuilder builder;<NEW_LINE>if (isFixedSubscriber) {<NEW_LINE>parserContext.getReaderContext().error("The 'fixed-subscriber' attribute is not allowed" + " w...
loadBalancerRef = dispatcherElement.getAttribute("load-balancer-ref");
1,447,569
private static String compress(String inFileName) {<NEW_LINE>String outFileName = inFileName + ".gz";<NEW_LINE>FileInputStream in = null;<NEW_LINE>try {<NEW_LINE>in = new FileInputStream(new File(inFileName));<NEW_LINE>} catch (FileNotFoundException e) {<NEW_LINE>e.printStackTrace();<NEW_LINE>}<NEW_LINE>GZIPOutputStrea...
File(inFileName).delete();
522,449
private void processSample() throws ParserException {<NEW_LINE>ParsableByteArray webvttData = new ParsableByteArray(sampleData);<NEW_LINE>// Validate the first line of the header.<NEW_LINE>WebvttParserUtil.validateWebvttHeaderLine(webvttData);<NEW_LINE>// Defaults to use if the header doesn't contain an X-TIMESTAMP-MAP...
mediaTimestampMatcher = MEDIA_TIMESTAMP.matcher(line);
907,930
public void addAttachments(BlackboardArtifact message, MessageAttachments attachments) throws TskCoreException {<NEW_LINE>// Create attribute<NEW_LINE>BlackboardAttribute blackboardAttribute = BlackboardJsonAttrUtil.toAttribute(ATTACHMENTS_ATTR_TYPE, getModuleName(), attachments);<NEW_LINE>message.addAttribute(blackboa...
, ingestJobId.orElse(null));
274,621
private <PSIC> String onEvent(PSIC targetThreshhold, Object observer, ObserveEvent.Type obsType) {<NEW_LINE>if (observer != null && (observer.getClass().getName().contains("org.python") || observer.getClass().getName().contains("org.jruby"))) {<NEW_LINE>observer = new ObserverCallBack(observer, obsType);<NEW_LINE>}<NEW...
ObserverCallBack) observer, obsType, targetThreshhold);
1,328,611
public void onGetEditorContext(GetEditorContextEvent event) {<NEW_LINE>GetEditorContextEvent.Data data = event.getData();<NEW_LINE><MASK><NEW_LINE>if (type == GetEditorContextEvent.TYPE_ACTIVE_EDITOR) {<NEW_LINE>if (consoleEditorHadFocusLast() || !columnManager_.hasActiveEditor())<NEW_LINE>type = GetEditorContextEvent....
int type = data.getType();
1,094,346
private void onIsolinesStateChanged(@NonNull IsolinesState type) {<NEW_LINE>if (type != IsolinesState.EXPIREDDATA) {<NEW_LINE>type.activate(this, findViewById(R.id.coordinator), findViewById<MASK><NEW_LINE>return;<NEW_LINE>}<NEW_LINE>com.mapswithme.maps.dialog.AlertDialog dialog = new com.mapswithme.maps.dialog.AlertDi...
(R.id.menu_frame));
662,220
public boolean executeCommand(final String args) {<NEW_LINE>// get filenames<NEW_LINE>final String sourceID = getProp().getPropertyString(ScriptProperties.CLUSTER_CONFIG_SOURCE_FILE);<NEW_LINE>final String targetID = getProp().getPropertyString(ScriptProperties.CLUSTER_CONFIG_TARGET_FILE);<NEW_LINE>final int clusters =...
getScript().expectInputHeaders(sourceID);
908,740
protected void layoutChildren(final double x, final double y, final double w, final double h) {<NEW_LINE>final CheckBox checkBox = getSkinnable();<NEW_LINE>boxWidth = snapSize(container.prefWidth(-1));<NEW_LINE>boxHeight = snapSize(<MASK><NEW_LINE>final double computeWidth = Math.max(checkBox.prefWidth(-1), checkBox.mi...
container.prefHeight(-1));
1,377,571
private static Resource generate(Set<Triple> paths, Collection<ReportEntry> entries, PrefixMapping prefixes) {<NEW_LINE>if (entries.isEmpty())<NEW_LINE>return reportConformsTrueResource();<NEW_LINE><MASK><NEW_LINE>model.setNsPrefix("rdf", RDF.getURI());<NEW_LINE>model.setNsPrefix("rdfs", RDFS.getURI());<NEW_LINE>model....
Model model = ModelFactory.createDefaultModel();
116,362
protected static ASTNode findClosestNode(int lineNumber, ASTNode node) {<NEW_LINE>log("findClosestNode to line " + lineNumber);<NEW_LINE>ASTNode parent = findClosestParentNode(lineNumber, node);<NEW_LINE>log("findClosestParentNode returned " + getNodeAsString(parent));<NEW_LINE>if (parent == null)<NEW_LINE>return null;...
Block) parent).statements();
1,656,041
final DescribeBudgetActionsForBudgetResult executeDescribeBudgetActionsForBudget(DescribeBudgetActionsForBudgetRequest describeBudgetActionsForBudgetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeBudgetActionsForBudgetRequest);<NEW_LINE><MASK><NEW_LINE>awsRequestMetrics.startEven...
AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();
788,516
public void apply(CompletionItem completion) throws Exception {<NEW_LINE>completion = harness.resolveCompletionItem(completion);<NEW_LINE>Either<TextEdit, InsertReplaceEdit> edit = completion.getTextEdit();<NEW_LINE>String docText = doc.getText();<NEW_LINE>if (edit != null) {<NEW_LINE>if (edit.isLeft()) {<NEW_LINE>Stri...
replaceAll("\\n", "\n" + referenceIndent);
1,837,181
private static void initExpressions() throws NoSuchFieldException, IllegalAccessException, NoSuchMethodException {<NEW_LINE>List<Class> classes = Lists.newArrayList();<NEW_LINE>ClassFinder.ClassFilter filter = new ClassFinder.ClassFilter() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public boolean filter(Class klass) {<NEW...
.findClassesInPackage("com.alibaba.polardbx", filter));
595,148
private MethodSpec renderNamedGetRangeStartEnd(NamedColumnDescription col) {<NEW_LINE>com.palantir.logsafe.Preconditions.checkArgument(tableMetadata.getRowMetadata().getRowParts().size() == 1);<NEW_LINE>NameComponentDescription rowComponent = tableMetadata.getRowMetadata().<MASK><NEW_LINE>MethodSpec.Builder getterBuild...
getRowParts().get(0);
270,600
private void createTimeSlot(ArrayList<MAssignmentSlot> list, Timestamp startTime, Timestamp endTime) {<NEW_LINE>// log.debug( "MSchedule.createTimeSlot");<NEW_LINE>GregorianCalendar cal = new GregorianCalendar(Language.getLoginLanguage().getLocale());<NEW_LINE>cal.setTimeInMillis(m_startDate.getTime());<NEW_LINE>// End...
setTimeInMillis(startTime.getTime());
289,219
private void backupData() throws BackupException {<NEW_LINE>String sourceBackupFilePrefix;<NEW_LINE>Path[] dataFiles;<NEW_LINE>// Store file hash in a separate thread<NEW_LINE>new Thread(() -> {<NEW_LINE>for (String dir : mMetadata.dataDirs) {<NEW_LINE>FileHash fileHash = new FileHash();<NEW_LINE>fileHash.path = dir;<N...
i + getExt(mMetadata.tarType);
1,499,465
private static long retain(@Pointer long self, @Pointer long sel) {<NEW_LINE>int count = ObjCRuntime.int_objc_msgSend(self, retainCount);<NEW_LINE>if (count <= 1) {<NEW_LINE>synchronized (CUSTOM_OBJECTS) {<NEW_LINE>ObjCClass cls = ObjCClass.toObjCClass(ObjCRuntime.object_getClass(self));<NEW_LINE>ObjCObject obj = ObjCO...
CUSTOM_OBJECTS.put(self, obj);
1,726,875
private void buildsPathsSection(MarkupDocBuilder markupDocBuilder, Map<String, Path> paths) {<NEW_LINE>List<SwaggerPathOperation> pathOperations = PathUtils.toPathOperationsList(paths, getHostname(), getBasePath(), config.getOperationOrdering());<NEW_LINE>if (CollectionUtils.isNotEmpty(pathOperations)) {<NEW_LINE>if (c...
(markupDocBuilder, operation, config));
560,624
private static byte[] createCheckpointBytes(Path checkpointFile, Checkpoint checkpoint) throws IOException {<NEW_LINE>final ByteArrayOutputStream byteOutputStream = new ByteArrayOutputStream(V4_FILE_SIZE) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public synchronized byte[] toByteArray() {<NEW_LINE>// don't clone<NEW_LINE...
writeHeader(indexOutput, CHECKPOINT_CODEC, CURRENT_VERSION);
201,537
private void updateAllKeys() {<NEW_LINE>CryptoOperationHelper.Callback<KeySyncParcel, ImportKeyResult> callback = new CryptoOperationHelper.Callback<KeySyncParcel, ImportKeyResult>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public KeySyncParcel createOperationInput() {<NEW_LINE>return KeySyncParcel.createRefreshAll();<N...
getActivity()).show();
620,852
/*<NEW_LINE>I made this method because endpoint parameters not contain a lot of needed metadata<NEW_LINE>It is very verbose to write all of this info into the api template<NEW_LINE>This ingests all operations under a tag in the objs input and writes out one file for each endpoint<NEW_LINE>*/<NEW_LINE>protected void gen...
"Error when writing template file {}", e.toString());
421,427
public KeyFactory<AesGcmKeyFormat, AesGcmKey> keyFactory() {<NEW_LINE>return new KeyFactory<AesGcmKeyFormat, AesGcmKey>(AesGcmKeyFormat.class) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void validateKeyFormat(AesGcmKeyFormat format) throws GeneralSecurityException {<NEW_LINE>Validators.validateAesKeySize(format.get...
throw new GeneralSecurityException("Reading pseudorandomness failed", e);
641,833
public String requestDeviceCode(@RequestParam("client_id") String clientId, @RequestParam(name = "scope", required = false) String scope, Map<String, String> parameters, ModelMap model) {<NEW_LINE>ClientDetailsEntity client;<NEW_LINE>try {<NEW_LINE>client = clientService.loadClientByClientId(clientId);<NEW_LINE>// make...
ERROR, dcce.getError());
458,489
public static String colorToString(Color c) {<NEW_LINE>try {<NEW_LINE>Field[] fields = Color.class.getFields();<NEW_LINE>for (int i = 0; i < fields.length; i++) {<NEW_LINE>Field f = fields[i];<NEW_LINE>if (Modifier.isPublic(f.getModifiers()) && Modifier.isFinal(f.getModifiers()) && Modifier.isStatic(f.getModifiers())) ...
oColor = f.get(null);
1,565,092
public void visitClassExpression(ClassExpression expression) {<NEW_LINE>ClassNode type = expression.getType();<NEW_LINE>MethodVisitor mv = controller.getMethodVisitor();<NEW_LINE>if (BytecodeHelper.isClassLiteralPossible(type) || BytecodeHelper.isSameCompilationUnit(controller.getClassNode(), type)) {<NEW_LINE>if (cont...
"$get$" + staticFieldName, "()Ljava/lang/Class;", false);
1,655,452
public boolean execute(final OHttpRequest iRequest, final OHttpResponse iResponse) throws Exception {<NEW_LINE>iRequest.getData().commandInfo = "Get static content";<NEW_LINE>iRequest.getData().commandDetail = iRequest.getUrl();<NEW_LINE>OStaticContent staticContent = null;<NEW_LINE>try {<NEW_LINE>staticContent = getVi...
] compressedBytes = bytesOutput.toByteArray();
1,600,658
private void loadColors(final Preferences preferences, final OutputOptions diskData) {<NEW_LINE>int rgbStandard = preferences.getInt(PREFIX + PROP_COLOR_STANDARD, getDefaultColorStandard().getRGB());<NEW_LINE>diskData.setColorStandard(new Color(rgbStandard));<NEW_LINE>int rgbError = preferences.getInt(PREFIX + PROP_COL...
setColorWarning(new Color(rgbWarning));