idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,210,666
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// get our list view<NEW_LINE>ListView theListView = <MASK><NEW_LINE>// prepare elements to display<NEW_LINE>final ArrayList<Item> items = Item.getTestingList();<NE...
findViewById(R.id.mainListView);
216,050
private void translate_2(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>final List<? extends IOperandTree> operands = instruction.getOperands();<NEW_LINE>final long baseOffset = instruction.getAddress()....
.get(0), true);
892,919
public Statistics unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>Statistics statistics = new Statistics();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>Jso...
class).unmarshall(context));
1,370,457
public DeleteRegistrationCodeResult deleteRegistrationCode(DeleteRegistrationCodeRequest deleteRegistrationCodeRequest) throws AmazonServiceException, AmazonClientException {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteRegistrationCodeRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics ...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
1,743,629
public static DescribeRegionsResponse unmarshall(DescribeRegionsResponse describeRegionsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeRegionsResponse.setRequestId(_ctx.stringValue("DescribeRegionsResponse.RequestId"));<NEW_LINE>describeRegionsResponse.setTotalCount(_ctx.integerValue("DescribeRegionsResponse.To...
("DescribeRegionsResponse.Regions[" + i + "].RegionEndpoint"));
1,726,530
private void loadExtend() {<NEW_LINE>Iterator<HealthCheckProcessor> processorIt = processors.iterator();<NEW_LINE>Iterator<AbstractHealthChecker> healthCheckerIt = checkers.iterator();<NEW_LINE>Set<String> origin = new HashSet<>();<NEW_LINE>for (HealthCheckType type : HealthCheckType.values()) {<NEW_LINE>origin.add(typ...
), checker.getClass());
169,857
/* (non-Javadoc)<NEW_LINE>* @see org.netbeans.api.debugger.DebuggerManagerListener#breakpointAdded(org.netbeans.api.debugger.Breakpoint)<NEW_LINE>*/<NEW_LINE>@Override<NEW_LINE>public void breakpointAdded(Breakpoint breakpoint) {<NEW_LINE>JSLineBreakpoint lb = null;<NEW_LINE>AbstractBreakpoint ab = null;<NEW_LINE>if (b...
MiscEditorUtil.registerProjectsSourceMapTranslator(d, scannedSMT);
922,014
public void marshall(VpcPeeringConnection vpcPeeringConnection, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (vpcPeeringConnection == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(vpcPeeringConnection.get...
vpcPeeringConnection.getPeerVpcId(), PEERVPCID_BINDING);
964,847
static Optional<List<Long>> readInt64Array(GenericRecord record, Schema.Type avroType, String fieldName) {<NEW_LINE>Object fieldValue = record.get(fieldName);<NEW_LINE>if (fieldValue == null) {<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>switch(avroType) {<NEW_LINE>// For type check at compile time, the type ...
(List<Long>) fieldValue);
1,119,509
protected Key engineUnwrap(byte[] wrappedKey, String wrappedKeyAlgorithm, int wrappedKeyType) throws InvalidKeyException, NoSuchAlgorithmException {<NEW_LINE>// TODO: add support for other types.<NEW_LINE>if (wrappedKeyType != Cipher.SECRET_KEY) {<NEW_LINE>throw new InvalidKeyException("only SECRET_KEY supported");<NEW...
"unable to extract KTS secret: " + e.getMessage());
1,241,391
public void mouseReleased(final MouseEvent me) {<NEW_LINE>if (!armed)<NEW_LINE>return;<NEW_LINE>armed = false;<NEW_LINE>if (zoomType == ZoomType.PANNING)<NEW_LINE>setCursor(zoomType.getCursor());<NEW_LINE>if (end == null || start == null)<NEW_LINE>return;<NEW_LINE>switch(zoomType) {<NEW_LINE>case RUBBERBAND_ZOOM:<NEW_L...
ZoomType.NONE.getCursor());
1,791,849
public JSDynamicObject createPrototype(JSRealm realm, JSFunctionObject ctor) {<NEW_LINE>JSContext ctx = realm.getContext();<NEW_LINE>Shape protoShape = JSShape.createPrototypeShape(ctx, INSTANCE, realm.getObjectPrototype());<NEW_LINE>JSObject arrayPrototype = JSArrayObject.createEmpty(protoShape, ConstantEmptyPrototype...
), JSAttributes.configurableNotEnumerableNotWritable());
3,862
private void updatePaint() {<NEW_LINE>if (!mGradientIsDirty)<NEW_LINE>return;<NEW_LINE>mGradientIsDirty = false;<NEW_LINE>LinearGradient gradient = null;<NEW_LINE>final Rect bounds = getBounds();<NEW_LINE>int cx = bounds.centerX();<NEW_LINE>int cy = bounds.centerY();<NEW_LINE>switch(mGradientType) {<NEW_LINE>// VERTICA...
null, Shader.TileMode.CLAMP);
119,820
public void decode(double[] input, SceneStructureMetric structure) {<NEW_LINE>int index = 0;<NEW_LINE>for (int i = 0; i < structure.points.size; i++) {<NEW_LINE>SceneStructureCommon.Point p = structure.points.data[i];<NEW_LINE>p.coordinate[0] = input[index++];<NEW_LINE>p.coordinate[1] = input[index++];<NEW_LINE>p.coord...
.y = input[index++];
482,177
public void apply(Project project) {<NEW_LINE>project.getPlugins().apply(JavaLibraryConvention.class);<NEW_LINE>NamedDomainObjectProvider<Configuration> voltron = project.getConfigurations().register(VOLTRON_CONFIGURATION_NAME, config -> {<NEW_LINE>config.setDescription("Dependencies provided by Voltron from server/lib...
extendsFrom(voltron.get());
560,803
public static Executable storeAllPingData(Map<UUID, List<Ping>> ofUsers) {<NEW_LINE>if (ofUsers == null || ofUsers.isEmpty())<NEW_LINE>return Executable.empty();<NEW_LINE>return new ExecBatchStatement(PingTable.INSERT_STATEMENT) {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void prepare(PreparedStatement statement) th...
UUID uuid = entry.getKey();
367,970
public boolean isResource(String uri, User user) throws IOException {<NEW_LINE>uri = stripMapping(uri);<NEW_LINE>Logger.debug(this.getClass(), "In the Method isResource");<NEW_LINE>if (uri.endsWith("/")) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>boolean returnValue = false;<NEW_LINE>// Host<NEW_LINE>String hostName ...
e.getMessage(), e);
1,006,196
private void taskFinished(TaskInstance taskInstance) {<NEW_LINE>logger.info("work flow {} task id:{} code:{} state:{} ", processInstance.getId(), taskInstance.getId(), taskInstance.getTaskCode(), taskInstance.getState());<NEW_LINE>activeTaskProcessorMaps.remove(taskInstance.getTaskCode());<NEW_LINE>stateWheelExecuteThr...
), taskInstance.getId());
1,453,607
// End of variables declaration//GEN-END:variables<NEW_LINE>@Override<NEW_LINE>public void valueChanged(ListSelectionEvent e) {<NEW_LINE>if (e.getValueIsAdjusting()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>configurationPanel.removeAll();<NEW_LINE>ListSelectionModel m = <MASK><NEW_LINE>// single selection, so max selecti...
(ListSelectionModel) e.getSource();
77,447
private <T> Optional<Set<String>> filterString(TupleDomain<T> constraint, T column) {<NEW_LINE>if (constraint.isNone()) {<NEW_LINE>return Optional.of(ImmutableSet.of());<NEW_LINE>}<NEW_LINE>Domain domain = constraint.getDomains().get().get(column);<NEW_LINE>if (domain == null) {<NEW_LINE>return Optional.empty();<NEW_LI...
> result = ImmutableSet.builder();
78,559
private DoubleObjPair<Polygon> buildHullsRecursively(Cluster<Model> clu, Hierarchy<Cluster<Model>> hier, Map<Object, DoubleObjPair<Polygon>> hulls, Relation<? extends NumberVector> coords) {<NEW_LINE>final DBIDs ids = clu.getIDs();<NEW_LINE>FilteredConvexHull2D hull = new FilteredConvexHull2D();<NEW_LINE>for (DBIDIter ...
double weight = ids.size();
1,460,083
public void saveToFile() {<NEW_LINE>// create properties<NEW_LINE>Properties properties = new Properties();<NEW_LINE>// get parameters<NEW_LINE>properties.setProperty("param_migrationMode_isUpgrade", booleanToString(isUpgrade()));<NEW_LINE>if (getLogLevel() != null)<NEW_LINE>properties.setProperty("param_maxLogLevel", ...
setProperty("param_sourceDB_name", getSourceName());
289,252
public boolean backPressed() {<NEW_LINE>if (null != mediaDetails && mediaDetails.isVisible()) {<NEW_LINE>((ExploreFragment) getParentFragment()).tabLayout.setVisibility(View.VISIBLE);<NEW_LINE>removeFragment(mediaDetails);<NEW_LINE>((ExploreFragment) getParentFragment<MASK><NEW_LINE>setFragment(mapFragment, mediaDetail...
()).setScroll(true);
1,407,064
public void configure(ConfigurableProvider provider) {<NEW_LINE>provider.addAlgorithm("AlgorithmParameters.CAMELLIA", PREFIX + "$AlgParams");<NEW_LINE>provider.addAlgorithm("Alg.Alias.AlgorithmParameters", NTTObjectIdentifiers.id_camellia128_cbc, "CAMELLIA");<NEW_LINE>provider.addAlgorithm("Alg.Alias.AlgorithmParameter...
"Alg.Alias.AlgorithmParameterGenerator", NTTObjectIdentifiers.id_camellia256_cbc, "CAMELLIA");
1,511,741
public void marshall(DeploymentStrategy deploymentStrategy, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (deploymentStrategy == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(deploymentStrategy.getId(), ID...
deploymentStrategy.getFinalBakeTimeInMinutes(), FINALBAKETIMEINMINUTES_BINDING);
478,364
public Prediction<Label> predict(Example<Label> example) {<NEW_LINE>PredAndActive predTuple = predictSingle(example);<NEW_LINE>DenseVector prediction = predTuple.prediction;<NEW_LINE>prediction.normalize(normalizer);<NEW_LINE>double maxScore = Double.NEGATIVE_INFINITY;<NEW_LINE>Label maxLabel = null;<NEW_LINE>Map<Strin...
= new Label(labelName, score);
1,772,349
public void scanForProjects(File workingFolder, String[] checkedOutFolders, SvnProgressSupport support) {<NEW_LINE>Map<Project, Set<Project>> checkedOutProjects = new HashMap<Project, Set<Project>>();<NEW_LINE>// initialize root project container<NEW_LINE>checkedOutProjects.put(null, new HashSet<Project>());<NEW_LINE>F...
subfolder = fo.getFileObject(module);
617,195
private void testForConsistency() {<NEW_LINE>Iterator<Node> iter1 = Iter.toList(node2id_Cache.keys()).iterator();<NEW_LINE>for (; iter1.hasNext(); ) {<NEW_LINE>Node n = iter1.next();<NEW_LINE>NodeId nId = node2id_Cache.getIfPresent(n);<NEW_LINE>if (!id2node_Cache.containsKey(nId))<NEW_LINE>throw new TDBException("Incon...
keys()).iterator();
1,349,042
public int pickIncome(Random random) {<NEW_LINE>// lazy-load in case this randomcollection isn't necessary<NEW_LINE>if (incomeDistribution == null) {<NEW_LINE>Map<String, Double> tempIncome = new HashMap<>(income);<NEW_LINE>tempIncome.remove("mean");<NEW_LINE>tempIncome.remove("median");<NEW_LINE>incomeDistribution = b...
(range[0]) * 1000;
545,114
public void showCharacter(final RequestContext context) {<NEW_LINE>final AbstractFreeMarkerRenderer renderer = new SkinRenderer(context, "activity/character.ftl");<NEW_LINE>final Map<String, Object> dataModel = renderer.getDataModel();<NEW_LINE>dataModelService.fillHeaderAndFooter(context, dataModel);<NEW_LINE>dataMode...
/ (double) totalCharacterCount * 100);
344,949
public static void fix(Snackbar snackbar) {<NEW_LINE>final <MASK><NEW_LINE>TypedArray typedArray = context.obtainStyledAttributes(new int[] { R.attr.TextSizeBody1 });<NEW_LINE>final float size = typedArray.getDimension(0, 0f);<NEW_LINE>typedArray.recycle();<NEW_LINE>if (size != 0f) {<NEW_LINE>final TextView text = snac...
Context context = snackbar.getContext();
381,634
public void defineType() {<NEW_LINE>if (mType != TYPE_ALL)<NEW_LINE>return;<NEW_LINE>String fileExt = null;<NEW_LINE>int dotIndex = mTitle != null ? mTitle.lastIndexOf(".") : -1;<NEW_LINE>if (dotIndex != -1) {<NEW_LINE>fileExt = mTitle.substring(dotIndex).toLowerCase(Locale.ENGLISH);<NEW_LINE>} else {<NEW_LINE>final in...
).substring(0, index);
101,508
void toHtml() throws IOException {<NEW_LINE>writeBackLink();<NEW_LINE>writeln("<br/>");<NEW_LINE>if (dependencies.isEmpty()) {<NEW_LINE>writeln("#Aucune_dependance#");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>writeTitle("beans.png", getString("Dependencies"));<NEW_LINE><MASK><NEW_LINE>table.beginTable(getString("Dependenci...
final HtmlTable table = new HtmlTable();
93,689
private STNode createObjectTypeQualNodeList(List<STNode> qualifierList) {<NEW_LINE>// Validate qualifiers and create a STNodeList<NEW_LINE>List<STNode> validatedList = new ArrayList<>();<NEW_LINE>boolean hasNetworkQual = false;<NEW_LINE>for (int i = 0; i < qualifierList.size(); i++) {<NEW_LINE>STNode qualifier = qualif...
validatedList, qualifier, DiagnosticErrorCode.ERROR_MORE_THAN_ONE_OBJECT_NETWORK_QUALIFIERS);
1,132,748
private void build(@Nonnull final Iterator<int[]> changedLines) {<NEW_LINE>int[] starts = new int[myCount];<NEW_LINE>int[] ends = new int[myCount];<NEW_LINE>int[] last = new int[myCount];<NEW_LINE>for (int i = 0; i < myCount; i++) {<NEW_LINE>last[i] = Integer.MIN_VALUE;<NEW_LINE>}<NEW_LINE>while (changedLines.hasNext()...
[i] = last[i];
311,845
final ListPlacementsResult executeListPlacements(ListPlacementsRequest listPlacementsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPlacementsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListPlaceme...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
429,950
public void mergeFiles() {<NEW_LINE>String[] pdfpaths = mViewFilesAdapter.getSelectedFilePath().toArray(new String[0]);<NEW_LINE>String masterpwd = mSharedPrefs.getString(MASTER_PWD_STRING, appName);<NEW_LINE>new MaterialDialog.Builder(mActivity).title(R.string.creating_pdf).content(R.string.enter_file_name).input(mCon...
getInstance().createOverwriteDialog(mActivity);
1,341,005
public void init() {<NEW_LINE>if (init)<NEW_LINE>return;<NEW_LINE>INSTANCE = this;<NEW_LINE>context = getReactApplicationContext();<NEW_LINE>emitter = new MusicControlEventEmitter(context, notificationId);<NEW_LINE>session = new MediaSessionCompat(context, "MusicControl");<NEW_LINE>session.setFlags(MediaSessionCompat.F...
notification.updateActions(controls, skipOptions);
1,459,321
public static DescribeLoghubDetailResponse unmarshall(DescribeLoghubDetailResponse describeLoghubDetailResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeLoghubDetailResponse.setRequestId(_ctx.stringValue("DescribeLoghubDetailResponse.RequestId"));<NEW_LINE>LoghubInfo loghubInfo = new LoghubInfo();<NEW_LINE>loghubI...
(_ctx.stringValue("DescribeLoghubDetailResponse.LoghubInfo.DomainUrl"));
87,031
private void processInParallel(int n, Consumer<Integer> task) {<NEW_LINE>// Run by chunks:<NEW_LINE>int chunks = <MASK><NEW_LINE>int chn = n / chunks + ((n % chunks) > 0 ? 1 : 0);<NEW_LINE>class TranslateThreads implements Runnable {<NEW_LINE><NEW_LINE>private final int ch;<NEW_LINE><NEW_LINE>private TranslateThreads(i...
Math.min(RP_THROUGHPUT, n);
356,686
ObjectMetadata toObjectMetadata(ObjectMetadata metadata) {<NEW_LINE>// If we generated a symmetric key to encrypt the data, store it in the<NEW_LINE>// object metadata.<NEW_LINE>byte[] encryptedCEK = getEncryptedCEK();<NEW_LINE>metadata.addUserMetadata(Headers.CRYPTO_KEY_V2, Base64.encodeAsString(encryptedCEK));<NEW_LI...
] iv = cipherLite.getIV();
1,838,931
private boolean invariant() {<NEW_LINE>assert Thread.holdsLock(mutex);<NEW_LINE><MASK><NEW_LINE>assert activeFetches <= maxConcurrentFetches : activeFetches + " <= " + maxConcurrentFetches;<NEW_LINE>for (ObjectCursor<SnapshotShard> cursor : knownSnapshotShards.keys()) {<NEW_LINE>assert unknownSnapshotShards.contains(cu...
assert activeFetches >= 0 : "active fetches should be greater than or equal to zero but got: " + activeFetches;
449,014
public void write(final java.nio.ByteBuffer buf) {<NEW_LINE>try {<NEW_LINE>int startPositionMark = buf.position();<NEW_LINE>buf.position(buf.position() + 1);<NEW_LINE>int unknownsCounter = 0;<NEW_LINE>if (unknownFields == null)<NEW_LINE>unknownsCounter = Integer.MAX_VALUE;<NEW_LINE>{<NEW_LINE>com.wowd.wobly.WoblyUtils....
buf, this.uri, true);
670,004
public ArrayList<TextView> clickInList(int line, int index, int id, boolean longClick, int time) {<NEW_LINE>final long endTime = SystemClock.uptimeMillis() + Timeout.getSmallTimeout();<NEW_LINE>int lineIndex = line - 1;<NEW_LINE>if (lineIndex < 0)<NEW_LINE>lineIndex = 0;<NEW_LINE>ArrayList<View> views <MASK><NEW_LINE>f...
= new ArrayList<View>();
1,163,767
public void onGestureStarted(PointF point) {<NEW_LINE>super.onGestureStarted(point);<NEW_LINE>if ((mDelay > 0) && (isInside(point))) {<NEW_LINE>mHoldTimer = new Timer();<NEW_LINE>mHoldTimer.schedule(new GestureTimerTask(), mDelay);<NEW_LINE>mGestureState = ACTIVE_STATE;<NEW_LINE>mCrossed = true;<NEW_LINE>} else {<NEW_L...
hypot(dx, dy) - 100;
958,928
public Outcome<VirtualMachine> deleteAllVMSnapshotsThroughJobQueue(final Long vmId, final VMSnapshot.Type type) {<NEW_LINE>final CallContext context = CallContext.current();<NEW_LINE>final User callingUser = context.getCallingUser();<NEW_LINE>final Account callingAccount = context.getCallingAccount();<NEW_LINE>final VM...
setStep(VmWorkJobVO.Step.Starting);
1,782,165
final GetDefaultPatchBaselineResult executeGetDefaultPatchBaseline(GetDefaultPatchBaselineRequest getDefaultPatchBaselineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDefaultPatchBaselineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();...
awsRequestMetrics.startEvent(Field.RequestMarshallTime);
1,760,095
public boolean shouldIgnore(LazyValue<String> queriedClass, LazyValue<String> callerClass) {<NEW_LINE>if (heuristicsEnabled && !isInLivePhase) {<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>String qualifiedCaller = callerClass.get();<NEW_LINE>assert qualifiedCaller == null || qualifiedCaller.indexOf('/') == -1 : "expectin...
get()).matches();
1,682,370
protected void configureLoaderProperties(WebappClassLoader cloader, WebXmlParser webXmlParser, File base) {<NEW_LINE>cloader.setUseMyFaces(webXmlParser.isUseBundledJSF());<NEW_LINE>File libDir = new File(base, "WEB-INF/lib");<NEW_LINE>if (libDir.exists()) {<NEW_LINE>int baseFileLen = base.getPath().length();<NEW_LINE>f...
boolean ignoreHiddenJarFiles = webXmlParser.isIgnoreHiddenJarFiles();
1,821,870
public static void autoExpand(JTree tree, TreePath path, int maxLines, int maxChildToExpand, boolean dontExpandToLeafs) {<NEW_LINE>TreeModel model = tree.getModel();<NEW_LINE><MASK><NEW_LINE>TreePath newPath = path;<NEW_LINE>int currentLines = 0;<NEW_LINE>while (currentLines++ < maxLines && !model.isLeaf(node) && (mode...
Object node = path.getLastPathComponent();
403,737
public void marshall(RecoveryInstance recoveryInstance, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (recoveryInstance == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(recoveryInstance.getArn(), ARN_BINDI...
e.getMessage(), e);
1,175,188
private static void processAnnotations(AnnotatedElement element, boolean processNested, List<Integer> indexes, List<TransformedHeader> tmp, Map<AnnotatedElement, List<TransformedHeader>> nestedReplacements, HeaderTransformer transformer, MethodFilter filter) {<NEW_LINE>Parsed annotation = findAnnotation(element, Parsed...
, indexes, innerTransformer, filter));
508,488
private void buildFragments() {<NEW_LINE>ArrayList<String[]> pathes = new ArrayList<String[]>();<NEW_LINE>for (int i = 0; i < myView.getItemsSize(); i++) {<NEW_LINE>ItemWrapper item = myView.getItemByIndex(i);<NEW_LINE>pathes.add(ArrayUtil.toStringArray(FileUtil.splitPath(item.getPresentableUrl())));<NEW_LINE>}<NEW_LIN...
int tailLimit = tailBuilder.getIndex();
1,745,181
public void testSFRemoteHomeHandleSerialization() throws Exception {<NEW_LINE>HomeHandle handle = fhome1.getHomeHandle();<NEW_LINE>assertNotNull("Get EJB home handle from home was null.", handle);<NEW_LINE>ByteArrayOutputStream bos = new ByteArrayOutputStream();<NEW_LINE>ObjectOutputStream os = new ObjectOutputStream(b...
(bos.toByteArray()));
250,540
private void handleStreamEventExpandedNotifications(String status, String target, String circuitId, String clientProtocol) {<NEW_LINE>if (!status.equals(TorControlCommands.STREAM_EVENT_SUCCEEDED))<NEW_LINE>return;<NEW_LINE>if (!clientProtocol.contains("SOCKS5"))<NEW_LINE>return;<NEW_LINE>int id = Integer.parseInt(circu...
.country = emoji + " " + countryName;
1,284,773
public Sequence<String> expandToolchainAndRuleContextVariables(StarlarkRuleContext starlarkRuleContext, Sequence<?> flags) throws EvalException {<NEW_LINE>if (flags.isEmpty()) {<NEW_LINE>return Sequence.cast(flags, String.class, "flags");<NEW_LINE>}<NEW_LINE>ImmutableMap<String, String> toolchainMap = starlarkRuleConte...
ShellUtils.tokenize(expandedFlags, expandedFlag);
851,787
private void modifyNativeMethod(CtMethod method, CtClass returnTypeAsCtClass, String returnTypeAsString) throws CannotCompileException {<NEW_LINE>String methodName = method.getName();<NEW_LINE>String returnValue = "($r)value";<NEW_LINE>if (returnTypeAsCtClass.equals(CtClass.voidType)) {<NEW_LINE>returnValue = VOID;<NEW...
getModifiers() - Modifier.NATIVE);
1,303,567
protected boolean validate(final String uri) {<NEW_LINE>if (uri.indexOf("://") != -1) {<NEW_LINE>final Protocol protocol = factory.forName(uri.substring(0, uri.indexOf("://")));<NEW_LINE>if (null == protocol) {<NEW_LINE>console.printf("Unknown protocol in URI %s%n", uri);<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>}<NE...
(factory).get(uri);
828,521
public static void main(String[] args) {<NEW_LINE>MySQLConnectOptions connectOptions = new MySQLConnectOptions().setPort(3306).setHost("localhost").setDatabase("mysql").setUser("root").setPassword("123456");<NEW_LINE>PoolOptions poolOptions = new <MASK><NEW_LINE>MySQLPool client = MySQLPool.pool(connectOptions, poolOpt...
PoolOptions().setMaxSize(1);
137,722
public static SecurityContextInfo securityContextToJSON(SecurityContext secContext) {<NEW_LINE>if (secContext == null) {<NEW_LINE>System.out.println("SecurityContextUtils.securityContextToJSON return null");<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>SecurityContextInfo secInfo = new SecurityContextInfo();<NEW_LINE>secI...
setAuthScheme(secContext.getAuthenticationScheme());
1,214,864
static ImmutableMap<String, Module> loadBzlModules(Environment env, PackageIdentifier packageId, List<Pair<String, Location>> programLoads, List<BzlLoadValue.Key> keys, @Nullable BzlLoadFunction bzlLoadFunctionForInlining) throws NoSuchPackageException, InterruptedException {<NEW_LINE>List<BzlLoadValue> bzlLoads;<NEW_L...
rootCause = Throwables.getRootCause(e);
1,591,866
public void scheduleTimerForAutomaticSaving() {<NEW_LINE>if (!(UrlManager.getController() instanceof MFileManager) || GraphicsEnvironment.isHeadless() || !autosaveEnabled) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final int numberOfTempFiles = Integer.parseInt(ResourceController.getResourceController().getProperty("number...
(this, numberOfTempFiles, filesShouldBeDeletedAfterShutdown));
1,838,549
public PropertiesPanel createPanel(final Snapshot dataSource) {<NEW_LINE>PropertiesPanel panel = new PropertiesPanel();<NEW_LINE>panel.setLayout(new BorderLayout());<NEW_LINE>JLabel l = new JLabel();<NEW_LINE>l.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 5));<NEW_LINE>panel.add(l, BorderLayout.WEST);<NEW_LINE>JT...
(GeneralPropertiesProvider.class, "LBL_File"));
1,118,218
private int[] linearize(final FST fst) {<NEW_LINE>int[] linearized = new int[0];<NEW_LINE>int last = 0;<NEW_LINE>BitSet visited = new BitSet();<NEW_LINE>IntStack nodes = new IntArrayList();<NEW_LINE>nodes.push(fst.getRootNode());<NEW_LINE>while (!nodes.isEmpty()) {<NEW_LINE>final <MASK><NEW_LINE>if (visited.get(node)) ...
int node = nodes.pop();
2,597
public void processHttpRequestMessage(HttpMessage message) {<NEW_LINE>// Get the session tokens for this site<NEW_LINE>HttpSessionTokensSet siteTokensSet = extension.getHttpSessionTokensSet(getSite());<NEW_LINE>// No tokens for this site, so no processing<NEW_LINE>if (siteTokensSet == null) {<NEW_LINE>log.debug("No ses...
processMessageToMatchSession(message, requestCookies, activeSession);
1,099,710
static void parse_bc(ThreadContext context, IRubyObject self, RubyString str, RubyHash hash) {<NEW_LINE>final Ruby runtime = context.runtime;<NEW_LINE>RubyRegexp re = newRegexpFromCache(runtime, _parse_bc, RE_OPTION_IGNORECASE);<NEW_LINE>IRubyObject sub = subSpace(context, (RubyString) str, re);<NEW_LINE>if (sub != con...
.op_plus(context, 1));
1,719,168
protected String[] customCommandLineValidation() {<NEW_LINE>if (GENOTYPING_ERROR_RATE <= 0) {<NEW_LINE>return new String[] { "GENOTYPING_ERROR_RATE must be greater than zero. Found " + GENOTYPING_ERROR_RATE };<NEW_LINE>}<NEW_LINE>if (GENOTYPING_ERROR_RATE >= 1) {<NEW_LINE>return new String[] { "GENOTYPING_ERROR_RATE mu...
return new String[] { "SECOND_INPUT_SAMPLE_MAP can only be used when also using SECOND_INPUT" };
431,458
public static void linkToExistingJdk(String path, int version) {<NEW_LINE>Path jdkPath = getJdkPath(version);<NEW_LINE>Util.verboseMsg("Trying to link " + path + " to " + jdkPath);<NEW_LINE>if (Files.exists(jdkPath)) {<NEW_LINE>Util.verboseMsg("JBang managed JDK already exists, must be deleted to make sure linking work...
ExitException(EXIT_INVALID_INPUT, "Unable to determine Java version in given path: " + path);
1,645,517
public void handleData(ByteBuffer buf, Link link) {<NEW_LINE>if (verbose)<NEW_LINE>System.out.println("[" + <MASK><NEW_LINE>// (2 bytes): A 16-bit, unsigned integer. The update type. This field MUST<NEW_LINE>// be set to UPDATETYPE_PALETTE (0x0002).<NEW_LINE>int updateType = buf.readUnsignedShortLE();<NEW_LINE>if (upda...
this + "] INFO: Data received: " + buf + ".");
34,985
private ImmutableList<ModuleDependencyMetadata> filterDependencies(DefaultConfigurationMetadata config) {<NEW_LINE>if (dependencies.isEmpty()) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>int size = dependencies.size();<NEW_LINE>// If we're reaching this point, we're very likely going to iterate on the dep...
config, getId(), dependency);
207,009
public void assignLabels(LingoProcessingContext context, DoubleMatrix2D stemCos, IntIntHashMap filteredRowToStemIndex, DoubleMatrix2D phraseCos) {<NEW_LINE>final PreprocessingContext preprocessingContext = context.preprocessingContext;<NEW_LINE>final int firstPhraseIndex = preprocessingContext.allLabels.firstPhraseInde...
Integer> phraseMax = max(phraseCos);
715,411
private void updateConstructorDisableInheritable(@NonNull final CtClass clazz) throws NotFoundException, CannotCompileException {<NEW_LINE>for (CtConstructor constructor : clazz.getDeclaredConstructors()) {<NEW_LINE>final CtClass[] parameterTypes = constructor.getParameterTypes();<NEW_LINE>final StringBuilder insertCod...
format("$%d = com.alibaba.ttl.threadpool.TtlExecutors.getDisableInheritableThreadFactory($%<d);", i + 1);
1,169,677
static ParserState doShortInt(ParserState state, Object kwds, @SuppressWarnings("unused") char c, @SuppressWarnings("unused") char[] format, @SuppressWarnings("unused") int format_idx, Object kwdnames, Object varargs, @Shared("getArgNode") @Cached GetArgNode getArgNode, @Cached AsNativePrimitiveNode asNativePrimitiveNo...
transformExceptionToNativeNode.execute(null, e);
888,094
public Response addEvent(String content) throws IOException {<NEW_LINE>ObjectMapper mapper = new ObjectMapper();<NEW_LINE>LOGGER.info(String.format("JSON content: '%s'", content));<NEW_LINE>JsonNode input = mapper.readTree(content);<NEW_LINE>String eventType = getStringField(input, "eventType");<NEW_LINE>String groupTy...
gen.writeStringField("groupType", groupType);
239,842
private <T> T[] buildArray(Instance instance, String field, Class<T> type, InstanceBuilder<? extends T> builder, boolean allowNull, boolean allowNullValues) throws InvalidFieldException {<NEW_LINE>ObjectArrayInstance array = get(instance, field, ObjectArrayInstance.class, allowNull);<NEW_LINE>if (array == null) {<NEW_L...
()).initCause(ex);
807,793
public boolean insertGroup(String domainName, Group group) {<NEW_LINE>int affectedRows;<NEW_LINE>final String caller = "insertGroup";<NEW_LINE>String groupName = ZMSUtils.extractGroupName(domainName, group.getName());<NEW_LINE>if (groupName == null) {<NEW_LINE>throw requestError(caller, "domain name mismatch: " + domai...
.getSelfServe(), false));
699,818
public UcoreInterface.SubscribeNodesOutput subscribeNodes(UcoreInterface.SubscribeNodesInput subscribeNodesInput) throws IOException {<NEW_LINE>try {<NEW_LINE>return stub.withDeadlineAfter(GRPC_SUBTIMEOUT, TimeUnit<MASK><NEW_LINE>} catch (Exception e) {<NEW_LINE>// the first try failure ,try for all the other ucore ip<...
.SECONDS).subscribeNodes(subscribeNodesInput);
1,655,434
public JSDynamicObject propertyHandlerInstantiate(JSContext context, JSRealm realm, ObjectTemplate template, JSDynamicObject target, boolean global) {<NEW_LINE>JSDynamicObject handler = JSUncheckedProxyHandler.create(context, realm);<NEW_LINE>JSDynamicObject proxy = JSProxy.create(context, realm, target, handler);<NEW_...
template, realm, DELETER, proxy);
1,231,586
final DeleteSourceLocationResult executeDeleteSourceLocation(DeleteSourceLocationRequest deleteSourceLocationRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteSourceLocationRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRe...
HandlerContextKey.SIGNING_REGION, getSigningRegion());
1,777,315
private Contentlet fireUnarchiveWithSave(final Contentlet contentlet, final ContentletDependencies dependencies, final String actionId, final User user) throws DotDataException, DotSecurityException {<NEW_LINE>final String disableWorkflow = Contentlet.DISABLE_WORKFLOW;<NEW_LINE>final boolean hasUnarchiveActionlet = Uti...
user).hasUnarchiveActionlet() : false;
963,479
private int storeClasses(Iterator classes, int start) {<NEW_LINE>int initialSize = cache.size();<NEW_LINE>try {<NEW_LINE>// register this class for notifications<NEW_LINE>register(this);<NEW_LINE>while (classes.hasNext()) {<NEW_LINE>J9ClassPointer ptr = (J9ClassPointer) classes.next();<NEW_LINE>log.fine(String.format("...
add(e.getCorruptData());
840,217
public void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>SharedPreferences sharedPrefs = PreferenceManager.getDefaultSharedPreferences(getActivity());<NEW_LINE>// if we are returning from DropBox authentication, save the key which was generated<NEW_LINE>String keyDefaultEmail = getString(R.string.key_default_export...
sharedPrefs.getString(keyDefaultExportFormat, null);
1,818,794
public void onHandleIntent(Intent intent) {<NEW_LINE>sharedPrefs = getSharedPreferences("com.klinker.android.twitter_world_preferences", 0);<NEW_LINE>Context context = getApplicationContext();<NEW_LINE>AppSettings settings = AppSettings.getInstance(context);<NEW_LINE>// if they have mobile data on and don't want to syn...
dataSource = MentionsDataSource.getInstance(context);
17,236
protected void onCreate(@Nullable Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_main);<NEW_LINE>// authentication with an API key or named user is required to access basemaps and other<NEW_LINE>// location services<NEW_LINE>ArcGISRuntimeEnvironment.s...
getOperationalLayers().add(mFeatureLayer);
400,352
@Operation(summary = "Check authorization for updating the group, readOnlyGroups, and readWriteGroups for a SingularityRequest, without committing the change", responses = { @ApiResponse(responseCode = "400", description = "Request object is invalid"), @ApiResponse(responseCode = "401", description = "User is not autho...
SingularityRequestWithState oldRequestWithState = maybeOldRequestWithState.get();
986,961
private void updateFunctionDef(long sourceFunctionDefDtID, FunctionDefinition sourceFunctionDefDt, FunctionDefinition destDt, Map<Long, DataType> resolvedDataTypes) {<NEW_LINE>// NOTE: it is possible for the same function def to be updated more than once;<NEW_LINE>// therefor we must cleanup any previous obsolete fixup...
] sourceVars = sourceFunctionDefDt.getArguments();
1,199,180
protected void init() {<NEW_LINE>codeViewerService = tool.getService(CodeViewerService.class);<NEW_LINE>goToService = <MASK><NEW_LINE>FormatManager formatManager = codeViewerService.getFormatManager();<NEW_LINE>ServiceProvider diffServiceProvider = new DiffServiceProvider(formatManager.getServiceProvider(), this);<NEW_...
tool.getService(GoToService.class);
1,811,030
@Consumes({ "multipart/form-data" })<NEW_LINE>@Produces({ "application/json" })<NEW_LINE>@io.swagger.annotations.ApiOperation(value = "uploads an image", notes = "", response = ModelApiResponse.class, authorizations = { @io.swagger.annotations.Authorization(value = "petstore_auth", scopes = { @io.swagger.annotations.Au...
petId, additionalMetadata, _fileBodypart, securityContext);
789,442
public static DescribeGtmInstanceAddressPoolsResponse unmarshall(DescribeGtmInstanceAddressPoolsResponse describeGtmInstanceAddressPoolsResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeGtmInstanceAddressPoolsResponse.setRequestId(_ctx.stringValue("DescribeGtmInstanceAddressPoolsResponse.RequestId"));<NEW_LINE>des...
("DescribeGtmInstanceAddressPoolsResponse.AddrPools[" + i + "].Type"));
331,437
public void consume(Order order) throws IOException {<NEW_LINE>log.info("Order received to process: {}", order);<NEW_LINE>if (OrderStatus.INITIATION_SUCCESS.equals(order.getOrderStatus())) {<NEW_LINE>orderRepository.findById(order.getId()).map(o -> {<NEW_LINE>orderProducer.sendMessage(o.setOrderStatus(OrderStatus.RESER...
setResponseMessage(order.getResponseMessage());
1,338,973
public static void chromaResidual(int mbX, int mbY, BitWriter out, int qp, int[][] ac1, int[][] ac2, CAVLC cavlc1, CAVLC cavlc2, MBType leftMBType, MBType topMBType, MBType curMBType) {<NEW_LINE>int crQpOffset = 0;<NEW_LINE>int chrQp = calcQpChroma(qp, crQpOffset);<NEW_LINE>transformChroma(ac1);<NEW_LINE>transformChrom...
restorePlane(dc1, ac1, chrQp);
1,378,126
public void eliminateSharedStreams() {<NEW_LINE>if (!sharedStreams)<NEW_LINE>return;<NEW_LINE>sharedStreams = false;<NEW_LINE>if (pageRefs.size() == 1)<NEW_LINE>return;<NEW_LINE>List<PdfObject> newRefs = new ArrayList<>();<NEW_LINE>List<PdfObject> newStreams = new ArrayList<>();<NEW_LINE>IntHashtable visited = new IntH...
getPdfObject(ref), null));
733,022
public boolean blockInteract(GlowPlayer player, GlowBlock block, BlockFace face, Vector clickedLoc) {<NEW_LINE>GlowBlockState state = block.getState();<NEW_LINE>MaterialData data = state.getData();<NEW_LINE>if (!(data instanceof FlowerPot)) {<NEW_LINE><MASK><NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>if (state instance...
warnMaterialData(FlowerPot.class, data);
1,183,911
private CompletableFuture<XContentBuilder> executeSimpleRequest(Session session, String stmt, List<Object> args, boolean includeTypes) throws IOException {<NEW_LINE>long startTimeInNs = System.nanoTime();<NEW_LINE>session.parse(UNNAMED, stmt, emptyList());<NEW_LINE>session.bind(UNNAMED, UNNAMED, args == null ? <MASK><N...
emptyList() : args, null);
1,121,970
private void applyStyleRecord(ParsableByteArray parsableByteArray, SpannableStringBuilder cueText) throws SubtitleDecoderException {<NEW_LINE>assertTrue(parsableByteArray.bytesLeft() >= SIZE_STYLE_RECORD);<NEW_LINE>int start = parsableByteArray.readUnsignedShort();<NEW_LINE>int end = parsableByteArray.readUnsignedShort...
int colorRgba = parsableByteArray.readInt();
644,614
public com.amazonaws.services.codedeploy.model.IamSessionArnAlreadyRegisteredException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.codedeploy.model.IamSessionArnAlreadyRegisteredException iamSessionArnAlreadyRegisteredException = new com.amazonaws.services.c...
String currentParentElement = context.getCurrentParentElement();
1,325,806
private <T> T doSaveVersioned(AdaptibleEntity<T> source, String collectionName) {<NEW_LINE>if (source.isNew()) {<NEW_LINE>return (T) doInsert(collectionName, source.getBean(), this.mongoConverter);<NEW_LINE>}<NEW_LINE>// Create query for entity with the id and old version<NEW_LINE>Query query = source.getQueryForVersio...
toSave, mongoConverter.getConversionService());
1,333,017
private void gaussNewton(double[] betas) {<NEW_LINE>A_temp.reshape(L_full.numRows, numControl);<NEW_LINE>v_temp.reshape(L_full.numRows, 1);<NEW_LINE>x.<MASK><NEW_LINE>// don't check numControl inside in hope that the JVM can optimize the code better<NEW_LINE>if (numControl == 4) {<NEW_LINE>for (int i = 0; i < numIterat...
reshape(numControl, 1, false);
1,813,026
private static boolean skipBuildingPartitionMetricSample(TopicPartition tpDotNotHandled, TopicPartition tpWithDotHandled, int leaderId, BrokerLoad brokerLoad, Map<Integer, Short> cachedNumCoresByBroker) {<NEW_LINE>if (brokerLoad == null || !brokerLoad.brokerMetricAvailable(BROKER_CPU_UTIL)) {<NEW_LINE>// Broker load or...
SKIP_BUILDING_SAMPLE_PREFIX, tpDotNotHandled, BROKER_CPU_UTIL, leaderId);
672,129
public void paintEntity(Graphics g) {<NEW_LINE>Graphics2D g2 = (Graphics2D) g;<NEW_LINE>g2.setFont(HandlerElementMap.getHandlerForElement(this).getFontHandler().getFont());<NEW_LINE>// enable colors<NEW_LINE>Composite[] composites = colorize(g2);<NEW_LINE>g2.setColor(fgColor);<NEW_LINE>Polygon poly = new Polygon();<NEW...
).getDistanceBetweenTexts()) / 2;