idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
1,336,587
protected void handleTokenRequestResponse(String t) {<NEW_LINE>token = t.substring(t.indexOf("=") + 1, t.indexOf("&"));<NEW_LINE>int off = t.indexOf("expires=");<NEW_LINE>int start = 8;<NEW_LINE>if (off == -1) {<NEW_LINE>off = t.indexOf("expires_in=");<NEW_LINE>start = 11;<NEW_LINE>}<NEW_LINE>if (off > -1) {<NEW_LINE>i...
t.indexOf('&', off);
1,400,092
public CompareSameNameAnswerElement answer(NetworkSnapshot snapshot) {<NEW_LINE>_assumeAllUnique = _batfish.debugFlagEnabled(DEBUG_FLAG_ASSUME_ALL_UNIQUE);<NEW_LINE>_configurations = _batfish.loadConfigurations(snapshot);<NEW_LINE>_csnQuestion = (CompareSameNameQuestion) _question;<NEW_LINE>_nodes = _csnQuestion.getNod...
IpsecPhase2Policy.class, Configuration::getIpsecPhase2Policies);
1,021,417
public static void main(String[] args) {<NEW_LINE>Map<String, List<LightSource>> lightSourcesMap = new HashMap<String, List<LightSource>>();<NEW_LINE>List<LightSource> lightSourceList = new ArrayList<LightSource>();<NEW_LINE>lightSourceList.add(createD20LightSource("Candle - 5", 5, 360));<NEW_LINE>lightSourceList.add(c...
("Lamp - 15", 15, 360));
1,484,829
public void createBindings() {<NEW_LINE>DoubleConverter doubleConverter = new DoubleConverter("%f");<NEW_LINE>DoubleConverter degreeConverter = new DoubleConverter(Configuration.<MASK><NEW_LINE>IntegerConverter integerConverter = new IntegerConverter();<NEW_LINE>LengthConverter lengthConverter = new LengthConverter();<...
get().getLengthDisplayFormat());
1,503,820
final GetServiceSettingsResult executeGetServiceSettings(GetServiceSettingsRequest getServiceSettingsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getServiceSettingsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetri...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
323,896
public OCompositeKey deserializeFromByteBufferObject(ByteBuffer buffer, OWALChanges walChanges, int offset) {<NEW_LINE>final OCompositeKey compositeKey = new OCompositeKey();<NEW_LINE>offset += OIntegerSerializer.INT_SIZE;<NEW_LINE>final int keysSize = walChanges.getIntValue(buffer, offset);<NEW_LINE>offset += OInteger...
deserializeFromByteBufferObject(buffer, walChanges, offset);
73,490
private String replayFiles(DateTime startTime) {<NEW_LINE>DateTime replayTimeoutTime = startTime.plus(REPLAY_TIMEOUT_DURATION);<NEW_LINE>DateTime searchStartTime = jpaTm().transact(() -> SqlReplayCheckpoint.get().plusMillis(1));<NEW_LINE>int filesProcessed = 0;<NEW_LINE>int transactionsProcessed = 0;<NEW_LINE>// Starti...
"Reached max execution time", startTime, filesProcessed, transactionsProcessed);
1,505,966
public static void process(GrayU8 src, final int kerA, final int kerB, GrayS16 derivX, GrayS16 derivY) {<NEW_LINE>final byte[] data = src.data;<NEW_LINE>final short[] imgX = derivX.data;<NEW_LINE>final short[] imgY = derivY.data;<NEW_LINE>final <MASK><NEW_LINE>final int height = src.getHeight() - 1;<NEW_LINE>final int ...
int width = src.getWidth();
951,448
private void loadNode131() {<NEW_LINE>BaseDataVariableTypeNode node = new BaseDataVariableTypeNode(this.context, Identifiers.SubscriptionDiagnosticsArrayType_SubscriptionDiagnostics_EnableCount, new QualifiedName(0, "EnableCount"), new LocalizedText("en", "EnableCount"), LocalizedText.NULL_VALUE, UInteger.valueOf(0), U...
(1), 0.0, false);
668,614
private List<LSCompletionItem> populateSelfClassSymbolCompletionItems(Symbol symbol, BallerinaCompletionContext ctx, TypeSymbol rawType) {<NEW_LINE>Optional<ModuleMemberDeclarationNode<MASK><NEW_LINE>if (moduleMember.isEmpty() || (!CommonUtil.isSelfClassSymbol(symbol, ctx, moduleMember.get()) && !CommonUtil.isSelfObjec...
> moduleMember = ctx.enclosedModuleMember();
514,834
// Implement the pointer assignment inference rules<NEW_LINE>private static boolean add_new_points_to_tuple(SegmentNode pts, SegmentNode pe, AllocNode obj, PtInsNode qn) {<NEW_LINE>long interI, interJ;<NEW_LINE>int code = 0;<NEW_LINE>// Special Cases<NEW_LINE>if (pts.I1 == 0 || pe.I1 == 0) {<NEW_LINE>// Make it pointer...
pts.I1 + pts.L);
310,131
public Response play(final Request request) {<NEW_LINE>if (!mode.isReadable()) {<NEW_LINE>throw new IllegalStateException("the tape is not readable");<NEW_LINE>}<NEW_LINE>if (mode.isSequential()) {<NEW_LINE>int nextIndex = orderedIndex.getAndIncrement();<NEW_LINE>RecordedInteraction nextInteraction = interactions.get(n...
nextInteraction.request())));
1,735,290
public ApiResponse<ExtendedUser> usersPostWithHttpInfo(CreateUserRequest createUserRequest) throws ApiException {<NEW_LINE>Object localVarPostBody = createUserRequest;<NEW_LINE>// verify the required parameter 'createUserRequest' is set<NEW_LINE>if (createUserRequest == null) {<NEW_LINE>throw new ApiException(400, "Mis...
localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
1,548,377
protected StringBuilder renderWrappedText(StringBuilder sb, int width, int nextLineTabStop, String text) {<NEW_LINE>int pos = findWrapPos(text, width, 0);<NEW_LINE>if (pos == -1) {<NEW_LINE>sb.append(rtrim(text));<NEW_LINE>return sb;<NEW_LINE>}<NEW_LINE>sb.append(rtrim(text.substring(0, pos))<MASK><NEW_LINE>if (nextLin...
).append(getNewLine());
755,632
void constructPointWKT(int pointIndex) {<NEW_LINE>if (xValues[pointIndex] % 1 == 0) {<NEW_LINE>appendToWKTBuffers((int) xValues[pointIndex]);<NEW_LINE>} else {<NEW_LINE>appendToWKTBuffers(xValues[pointIndex]);<NEW_LINE>}<NEW_LINE>appendToWKTBuffers(" ");<NEW_LINE>if (yValues[pointIndex] % 1 == 0) {<NEW_LINE>appendToWKT...
WKTsbNoZM.length() - 1);
1,368,748
protected boolean handleProcess(Set<? extends TypeElement> annotations, RoundEnvironment env) throws LayerGenerationException {<NEW_LINE>if (env.processingOver()) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>int cnt = 0;<NEW_LINE>for (Element e : env.getElementsAnnotatedWith(JPDADebugger.Registration.class)) {<NEW_LINE...
e, JPDADebugger.class, path);
1,599,828
ActionResult<List<Wo>> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<List<Wo>> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi...
cq.from(FileInfo.class);
371,509
private void loadNode57() throws IOException, SAXException {<NEW_LINE>PropertyTypeNode node = new PropertyTypeNode(this.context, Identifiers.ServerConfigurationType_UpdateCertificate_OutputArguments, new QualifiedName(0, "OutputArguments"), new LocalizedText("en", "OutputArguments"), LocalizedText.NULL_VALUE, UInteger....
String xml = sb.toString();
597,560
private void editAlias() {<NEW_LINE>AlertDialog.Builder builder = new AlertDialog.Builder(this);<NEW_LINE>builder.setTitle(R.string.edit_alias);<NEW_LINE>final EditText input = new EditText(this);<NEW_LINE>input.setInputType(InputType.TYPE_TEXT_VARIATION_PERSON_NAME);<NEW_LINE>RosterContact rosterContact = RosterManage...
getText().toString());
459,601
public void onListContributorsClicked() {<NEW_LINE>_adapter.clear();<NEW_LINE>//<NEW_LINE>//<NEW_LINE>_disposables.add(_githubService.contributors(_username.getText().toString(), _repo.getText().toString()).subscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread()).subscribeWith(new DisposableObserver<List<...
Timber.e(e, "woops we got an error while getting the list of contributors");
18,066
public void fill(float[] vertices, float[] texture_uv, int voff, int[] index, int[] stype, int ioff, float z, boolean blue) {<NEW_LINE><MASK><NEW_LINE>z += mZ;<NEW_LINE>float[] v = new float[] { x, y, z, x + width, y, z, x + width, y + height, z, x, y + height, z, x, y, z - d, x + width, y, z - d, x + width, y + height...
float d = blue ? 1 : DEPTH;
960,818
final TransferInputDeviceResult executeTransferInputDevice(TransferInputDeviceRequest transferInputDeviceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(transferInputDeviceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest...
addHandlerContext(HandlerContextKey.OPERATION_NAME, "TransferInputDevice");
379,723
public static <T> T fromJson(String json, Class<?> clazz, Class<?>... parameters) throws JsonErrorException {<NEW_LINE>if (StringUtils.isNotBlank(json)) {<NEW_LINE>try {<NEW_LINE>if (parameters.length > 0) {<NEW_LINE>return (T) mapper.readValue(json, mapper.getTypeFactory().constructParametricType(clazz, parameters));<...
mapper.readValue(json, javaType);
80,887
public void operationComplete(CommandFuture<PrimaryDcChangeMessage> commandFuture) throws Exception {<NEW_LINE>if (commandFuture.isSuccess()) {<NEW_LINE>PrimaryDcChangeMessage res = commandFuture.get();<NEW_LINE>logger.info("[doNewPrimaryDcMigrate]{},{},{},{}", cluster, shard, newPrimaryDc, res);<NEW_LINE>if (PRIMARY_D...
false, res.getErrorMessage());
1,737,105
private static void configureNodesUsingUserIntent(Cluster cluster, Collection<NodeDetails> nodeDetailsSet, boolean isEditUniverse) {<NEW_LINE>UserIntent userIntent = cluster.userIntent;<NEW_LINE>Set<NodeDetails> nodesInCluster = nodeDetailsSet.stream().filter(n -> n.placementUuid.equals(cluster.uuid)).collect(Collector...
NodeDetails currentNode = nodeIter.next();
389,282
public void process(T gray, GrayU8 binary) {<NEW_LINE>results.reset();<NEW_LINE>ellipseDetector.process(binary);<NEW_LINE>if (ellipseRefiner != null)<NEW_LINE>ellipseRefiner.setImage(gray);<NEW_LINE>intensityCheck.setImage(gray);<NEW_LINE>List<BinaryEllipseDetectorPixel.Found> found = ellipseDetector.getFound();<NEW_LI...
System.out.println("Rejecting ellipse. Refined fit didn't have an intense enough edge");
514,745
public void enterCip_transform_set(Cip_transform_setContext ctx) {<NEW_LINE>if (_currentIpsecTransformSet != null) {<NEW_LINE>throw new BatfishException("IpsecTransformSet should be null!");<NEW_LINE>}<NEW_LINE>_currentIpsecTransformSet = new IpsecTransformSet(ctx.name.getText());<NEW_LINE>_configuration.defineStructur...
(ctx.ipsec_authentication()));
524,165
public static List<WordDistances> readFromBinary(Path binFile, Path vocabFile) throws IOException {<NEW_LINE>LmVocabulary vocabulary = LmVocabulary.loadFromBinary(vocabFile.toFile());<NEW_LINE>try (DataInputStream in = new DataInputStream(new BufferedInputStream(new FileInputStream(binFile.toFile()), 100000))) {<NEW_LI...
= new Distance(word, f);
541,650
public static Version.Match versionFilter(String spec) {<NEW_LINE>if (spec == null || spec.isEmpty()) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>int <MASK><NEW_LINE>int moreIndex = spec.indexOf(GREATER_VERSION);<NEW_LINE>int compatibleIndex = spec.indexOf(COMPATIBLE_VERSION);<NEW_LINE>int i = -1;<NEW_LINE>Version.Matc...
eqIndex = spec.indexOf(EXACT_VERSION);
1,585,390
public AbstractTypeProgramInterface parse(AbstractPdb pdb, TaskMonitor monitor) throws IOException, PdbException, CancelledException {<NEW_LINE>AbstractTypeProgramInterface typeProgramInterface;<NEW_LINE>int versionNumberSize = AbstractTypeProgramInterface.getVersionNumberSize();<NEW_LINE>int streamNumber = getStreamNu...
pdb, getCategory(), streamNumber);
484,255
protected void installStrings(JFileChooser fc) {<NEW_LINE>super.installStrings(fc);<NEW_LINE>Locale l = fc.getLocale();<NEW_LINE>lookInLabelMnemonic = UIManager.getInt("FileChooser.lookInLabelMnemonic");<NEW_LINE>lookInLabelText = UIManager.getString("FileChooser.lookInLabelText", l);<NEW_LINE>saveInLabelText = UIManag...
getMessage(DirectoryChooserUI.class, "ACN_UpFolder");
409,947
public Token apply(Credential credential) {<NEW_LINE>final String account = credential.getAccount();<NEW_LINE>final <MASK><NEW_LINE>if (StringUtils.isEmpty(account) || StringUtils.isEmpty(pwd)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Hashtable<String, String> env = new Hashtable<String, String>();<NEW_LINE>env.put(...
String pwd = credential.getPassword();
1,270,461
public Chunk readChunk(int x, int z) throws IOException {<NEW_LINE>int index = getChunkOffset(x, z);<NEW_LINE>if (index < 0 || index >= 4096) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>this.lastUsed = System.currentTimeMillis();<NEW_LINE>if (!this.isChunkGenerated(index)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>tr...
int length = raf.readInt();
1,448,091
public static BeanComponentDefinition parseInnerHandlerDefinition(Element element, ParserContext parserContext) {<NEW_LINE>// parses out the inner bean definition for concrete implementation if defined<NEW_LINE>List<Element> childElements = DomUtils.getChildElementsByTagName(element, "bean");<NEW_LINE>BeanComponentDefi...
BeanDefinitionParserDelegate delegate = parserContext.getDelegate();
810,504
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTi...
endClientExecution(awsRequestMetrics, request, response);
405,562
protected void addNewEntry(ArrayList<FileSystem.Classpath> paths, String currentClasspathName, ArrayList<String> currentRuleSpecs, String customEncoding, String destPath, boolean isSourceOnly, boolean rejectDestinationPathOnJars) {<NEW_LINE>int rulesSpecsSize = currentRuleSpecs.size();<NEW_LINE>AccessRuleSet accessRule...
> i = currentRuleSpecs.iterator();
941,669
public static DescribeFabricConsortiumOrderersResponse unmarshall(DescribeFabricConsortiumOrderersResponse describeFabricConsortiumOrderersResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeFabricConsortiumOrderersResponse.setRequestId(_ctx.stringValue("DescribeFabricConsortiumOrderersResponse.RequestId"));<NEW_LIN...
("DescribeFabricConsortiumOrderersResponse.Result[" + i + "].UpdateTime"));
816,750
public List<DataPointGroup> group(List<GroupBy> groupBys, List<DataPointGroup> dataPointGroupList) throws IOException {<NEW_LINE>if (groupBys.size() < 1)<NEW_LINE>return dataPointGroupList;<NEW_LINE>List<DataPointGroup> dataPointGroups <MASK><NEW_LINE>for (DataPointGroup dataPointGroup : dataPointGroupList) {<NEW_LINE>...
= new ArrayList<DataPointGroup>();
218,087
public static void onReceive(TermuxApiReceiver apiReceiver, final Context context, Intent intent) {<NEW_LINE>Logger.logDebug(LOG_TAG, "onReceive");<NEW_LINE>final int offset = intent.getIntExtra("offset", 0);<NEW_LINE>final int limit = intent.getIntExtra("limit", 10);<NEW_LINE>final String number = intent.hasExtra("fro...
intent.getStringExtra("from") : "";
1,664,986
private int computeGeneralPoints(DMatrix leftPoint, DMatrix rightView, double[] input, int observationIndex, int viewIndex, SceneStructureCommon.Camera camera, int cameraParamStartIndex) {<NEW_LINE>SceneObservations.View obsView = observations.views.get(viewIndex);<NEW_LINE>SceneStructureMetric.View strView = structure...
transform(world_to_view, worldPt3, cameraPt);
106,149
protected boolean repack(boolean isAutoChange, boolean notify) {<NEW_LINE>lock.acquire();<NEW_LINE>try {<NEW_LINE>checkDeleted();<NEW_LINE>int oldLength = unionLength;<NEW_LINE>// lazy upgrade for v5 adapter<NEW_LINE>boolean storeAlignment = (unionAlignment <= 0);<NEW_LINE>int oldAlignment = getComputedAlignment(false)...
unionLength) || (oldAlignment != unionAlignment);
1,023,953
public static CreateInstanceExResponse unmarshall(CreateInstanceExResponse createInstanceExResponse, UnmarshallerContext context) {<NEW_LINE>createInstanceExResponse.setRequestId(context.stringValue("CreateInstanceExResponse.RequestId"));<NEW_LINE>createInstanceExResponse.setSuccess(context.booleanValue("CreateInstance...
(context.longValue("CreateInstanceExResponse.Instance.CreatedTime"));
1,060,069
public boolean areContentsTheSame(int oldItemPosition, int newItemPosition) {<NEW_LINE>if (oldViews.size() <= oldItemPosition || newViews.size() <= newItemPosition) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>final V oldView = oldViews.get(oldItemPosition);<NEW_LINE>final V newView = newViews.get(newItemPosition);<NEW...
KrollDict newProperties = newView.getProperties();
1,278,150
public void onSwiped(RecyclerView.ViewHolder viewHolder, final int direction) {<NEW_LINE>final <MASK><NEW_LINE>Object item = adapter.getItem(pos);<NEW_LINE>if (item instanceof MapMarker) {<NEW_LINE>final MapMarker marker = (MapMarker) item;<NEW_LINE>int snackbarStringRes;<NEW_LINE>if (direction == ItemTouchHelper.RIGHT...
int pos = viewHolder.getAdapterPosition();
1,131,090
static TypeSpecDataHolder generateBindDynamicProp(SpecModel specModel) {<NEW_LINE>TypeSpecDataHolder.Builder typeSpecDataHolder = TypeSpecDataHolder.newBuilder();<NEW_LINE>final List<PropModel> dynamicProps = SpecModelUtils.getDynamicProps(specModel);<NEW_LINE>if (dynamicProps.isEmpty()) {<NEW_LINE>return typeSpecDataH...
prop = dynamicProps.get(index);
967,503
private void changeJobUpdateStatus(MutableStoreProvider storeProvider, IJobUpdateKey key, JobUpdateEvent proposedEvent, boolean record) throws UpdateStateException {<NEW_LINE>JobUpdateStore.Mutable updateStore = storeProvider.getJobUpdateStore();<NEW_LINE>JobUpdateStatus status = proposedEvent.getStatus();<NEW_LINE>LOG...
info("Update {} is now in state {}", key, status);
133,374
public void sync(List<File> installed) {<NEW_LINE>List<File> notSync = new ArrayList<>();<NEW_LINE>File[] paths = new File[] { new File(application, "lib"), new File(application, "modules") };<NEW_LINE>for (File path : paths) {<NEW_LINE>if (path.exists()) {<NEW_LINE>for (File f : path.listFiles()) {<NEW_LINE>if (!insta...
System.out.println("~");
199,448
public static ListClientSdksResponse unmarshall(ListClientSdksResponse listClientSdksResponse, UnmarshallerContext _ctx) {<NEW_LINE>listClientSdksResponse.setRequestId(_ctx.stringValue("ListClientSdksResponse.RequestId"));<NEW_LINE>List<Result> clientSdks = new ArrayList<Result>();<NEW_LINE>for (int i = 0; i < _ctx.len...
("ListClientSdksResponse.ClientSdks[" + i + "].PkgName"));
795,506
public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>getSupportActionBar().setDisplayHomeAsUpEnabled(true);<NEW_LINE>// Load the raw preferences to show in this screen<NEW_LINE>init(R.xml.pref_seedbox_dediseedbox, SeedboxProvider.Dediseedbox.getSettings().getMaxSeedbox...
PreferenceManager.getDefaultSharedPreferences(this)));
1,185,599
protected Message<?> doReceive(Long timeout) {<NEW_LINE>ChannelInterceptorList interceptorList = getIChannelInterceptorList();<NEW_LINE>Deque<ChannelInterceptor> interceptorStack = null;<NEW_LINE>AtomicBoolean counted = new AtomicBoolean();<NEW_LINE>boolean traceEnabled = isLoggingEnabled() && logger.isTraceEnabled();<...
buildMessageFromResult(object, traceEnabled, counted);
283,998
public void onCreate() {<NEW_LINE>super.onCreate();<NEW_LINE>setInstance(this);<NEW_LINE>Timber.i("Initializing %s", R.string.app_name);<NEW_LINE>// Init datetime<NEW_LINE>AndroidThreeTen.init(this);<NEW_LINE>// Timber<NEW_LINE>if (BuildConfig.DEBUG)<NEW_LINE>Timber.plant<MASK><NEW_LINE>Timber.plant(new CrashlyticsTree...
(new Timber.DebugTree());
1,574,076
private static File fileImpl(String cache, int[] len, long moduleJARs) {<NEW_LINE>File cacheFile = new File(Places.getCacheDirectory(), cache);<NEW_LINE><MASK><NEW_LINE>if (last <= 0) {<NEW_LINE>// NOI18N<NEW_LINE>LOG.log(Level.FINE, "Cache does not exist when asking for {0}", cache);<NEW_LINE>cacheFile = findFallbackC...
long last = cacheFile.lastModified();
1,225,379
protected void deleteUsageVMSnapshot(UsageEventVO event) {<NEW_LINE>long accountId = event.getAccountId();<NEW_LINE>Account acct = _accountDao.findByIdIncludingRemoved(event.getAccountId());<NEW_LINE>Long domainId = acct.getDomainId();<NEW_LINE>Long diskOfferingId = event.getOfferingId();<NEW_LINE>long vmId = event.get...
long zoneId = event.getZoneId();
1,547,792
public void initView(int sketchWidth, int sketchHeight, boolean parentSize, LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {<NEW_LINE>// https://www.bignerdranch.com/blog/understanding-androids-layoutinflater-inflate/<NEW_LINE>ViewGroup rootView = (ViewGroup) inflater.inflate(sketch.parentLayo...
RelativeLayout layout = new RelativeLayout(activity);
1,256,940
private void ripAlbum(URL url, String subdirectory) throws IOException {<NEW_LINE>int index = 0;<NEW_LINE>this.sendUpdate(STATUS.LOADING_RESOURCE, url.toExternalForm());<NEW_LINE>index = 0;<NEW_LINE>ImgurAlbum album = getImgurAlbum(url);<NEW_LINE>for (ImgurImage imgurImage : album.images) {<NEW_LINE>stopCheck();<NEW_LI...
String saveAs = workingDir.getCanonicalPath();
687,627
final DescribePipelineResult executeDescribePipeline(DescribePipelineRequest describePipelineRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describePipelineRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv...
awsRequestMetrics.endEvent(Field.RequestMarshallTime);
793,973
public RestLiResponseData<GetResponseEnvelope> buildRestLiResponseData(Request request, RoutingResult routingResult, Object result, Map<String, String> headers, List<HttpCookie> cookies) {<NEW_LINE>final RecordTemplate record;<NEW_LINE>final HttpStatus status;<NEW_LINE>if (result instanceof GetResult) {<NEW_LINE>final ...
ResourceContext resourceContext = routingResult.getContext();
265,496
private MultiplexedRequest buildSequential() throws RestLiEncodingException {<NEW_LINE>Map<Integer, Callback<RestResponse>> callbacks = new HashMap<>(_requestsWithCallbacks.size());<NEW_LINE>// Dependent requests - requests which are dependent on the current request (executed after the current request)<NEW_LINE>Individ...
requestWithCallback = _requestsWithCallbacks.get(i);
803,635
public final QualifiedClassNameListContext qualifiedClassNameList() throws RecognitionException {<NEW_LINE>QualifiedClassNameListContext _localctx = new QualifiedClassNameListContext(_ctx, getState());<NEW_LINE>enterRule(_localctx, 92, RULE_qualifiedClassNameList);<NEW_LINE>try {<NEW_LINE>int _alt;<NEW_LINE>enterOuterA...
adaptivePredict(_input, 64, _ctx);
237,614
public Single<ContainerListBlobHierarchySegmentResponse> listBlobHierarchySegmentWithRestResponseAsync(Context context, @NonNull String delimiter, String prefix, String marker, Integer maxresults, List<ListBlobsIncludeItem> include, Integer timeout, String requestId) {<NEW_LINE>if (this.client.url() == null) {<NEW_LINE...
serializeList(include, CollectionFormat.CSV);
479,772
private void modifyTarget(boolean add, VolumeInfo volumeInfo, long hostId) {<NEW_LINE>StoragePoolVO storagePoolVO = storagePoolDao.findById(volumeInfo.getPoolId());<NEW_LINE>Map<String, String> details = new HashMap<>(3);<NEW_LINE>details.put(ModifyTargetsCommand.IQN, volumeInfo.get_iScsiName());<NEW_LINE>details.put(M...
(storagePoolVO.getPort()));
1,122,273
private void sortTable(Table table) {<NEW_LINE>TableItem[<MASK><NEW_LINE>Collator collator = Collator.getInstance(Locale.getDefault());<NEW_LINE>for (int i = 1; i < items.length; i++) {<NEW_LINE>String value1 = items[i].getText(0);<NEW_LINE>for (int j = 0; j < i; j++) {<NEW_LINE>String value2 = items[j].getText(0);<NEW...
] items = table.getItems();
1,855,557
// Used for normal and bulk chunks<NEW_LINE>public static Chunk deserialize(final int chunkX, final int chunkZ, final boolean fullChunk, final boolean skyLight, final int bitmask, final byte[] data) throws Exception {<NEW_LINE>final ByteBuf input = Unpooled.wrappedBuffer(data);<NEW_LINE>final ChunkSection[] sections = ...
getLight().readSkyLight(input);
883,168
private void doExperiment(Map<Integer, Comparable[]> allInputArrays) {<NEW_LINE>StdOut.printf("%13s %25s %25s %25s\n", "Array Size | ", "Number of Compares Std Impl | ", "Number of Compares 3-Ary Heap | ", "Number of Compares 4-Ary Heap");<NEW_LINE>for (int i = 0; i < allInputArrays.size(); i++) {<NEW_LINE>Comparable[]...
arrayCopy1, 0, originalArray.length);
1,415,941
private static WasmExpression comparison(WasmIntBinaryOperation intOp, WasmFloatBinaryOperation floatOp, InvocationExpr invocation, WasmIntrinsicManager manager) {<NEW_LINE>WasmType type = WasmGeneratorUtil.mapType(invocation.getMethod<MASK><NEW_LINE>WasmExpression first = manager.generate(invocation.getArguments().get...
().parameterType(0));
1,001,891
public void createPartControl(Composite parent) {<NEW_LINE>AgentObject ao = AgentModelThread.getInstance().getAgentObject(objHash);<NEW_LINE>this.setPartName("WaitCount[" + ao.getObjName() + "]");<NEW_LINE>GridLayout layout = new GridLayout(1, true);<NEW_LINE>layout.marginHeight = 5;<NEW_LINE>layout.marginWidth = 5;<NE...
primaryXAxis, xyGraph.primaryYAxis, pointProvider);
99,254
public void sendError(int sc, String message, boolean ignoreCommittedException) throws IOException {<NEW_LINE>// LIDB1234.3 - throw exception if response already committed.<NEW_LINE>if (getResponse().isCommitted()) {<NEW_LINE>if (!ignoreCommittedException) {<NEW_LINE>throw new IllegalStateException("Response already co...
FINE, CLASS_NAME, "sendError", "response is committed, but not throwing ISE");
1,792,193
public Request<RecordHandlerProgressRequest> marshall(RecordHandlerProgressRequest recordHandlerProgressRequest) {<NEW_LINE>if (recordHandlerProgressRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<RecordHandlerProgressRequest> request = n...
request.addParameter("Action", "RecordHandlerProgress");
453,036
private void sendUpdate() {<NEW_LINE>float[] R = new float[9];<NEW_LINE>float[] I = new float[9];<NEW_LINE>boolean success = SensorManager.getRotationMatrix(R, I, mGravity, mGeomagnetic);<NEW_LINE>if (success) {<NEW_LINE>float[] orientation = new float[3];<NEW_LINE>SensorManager.getOrientation(R, orientation);<NEW_LINE...
headingToBundle(trueNorth, magneticNorth, mAccuracy);
1,451,328
public void handle(Context ctx) throws IOException, ServletException {<NEW_LINE>boolean isTraceMode = Cat.getManager().isTraceMode();<NEW_LINE>HttpServletRequest req = ctx.getRequest();<NEW_LINE>HttpServletResponse res = ctx.getResponse();<NEW_LINE>MessageProducer producer = Cat.getProducer();<NEW_LINE>int mode = ctx.g...
"X-CAT-ROOT-ID", ctx.getRootId());
1,700,567
public void finish(String title) {<NEW_LINE>EventsCollector <MASK><NEW_LINE>if (logEventListener == null) {<NEW_LINE>log.warn("Can not publish report because Selenide logger has not started.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>OptionalInt maxLineLength = logEventListener.events().stream().map(LogEvent::getElement)....
logEventListener = SelenideLogger.removeListener("simpleReport");
1,262,055
private void extractTargetPidsFromIdParams(HashSet<Long> theTargetPids) {<NEW_LINE>// get all the IQueryParameterType objects<NEW_LINE>// for _id -> these should all be StringParam values<NEW_LINE>HashSet<String> ids = new HashSet<>();<NEW_LINE>List<List<IQueryParameterType>> params = <MASK><NEW_LINE>for (List<IQueryPa...
myParams.get(IAnyResource.SP_RES_ID);
1,617,665
public static CompareFaceResponse unmarshall(CompareFaceResponse compareFaceResponse, UnmarshallerContext _ctx) {<NEW_LINE>compareFaceResponse.setRequestId(_ctx.stringValue("CompareFaceResponse.RequestId"));<NEW_LINE>compareFaceResponse.setCode(_ctx.stringValue("CompareFaceResponse.Code"));<NEW_LINE>Data data = new Dat...
(_ctx.stringValue("CompareFaceResponse.Data.MessageTips"));
1,550,311
private void updateUi() {<NEW_LINE>if ((ledgerManager.getCurrentState() != AccountScanManager.Status.unableToScan) && (ledgerManager.getCurrentState() != AccountScanManager.Status.initializing)) {<NEW_LINE>findViewById(R.id.ivConnectLedger).setVisibility(View.GONE);<NEW_LINE>} else {<NEW_LINE>findViewById(R.id.ivConnec...
).setVisibility(View.GONE);
1,673,282
public HttpResponse handlePlayersRequest(HttpRequest request) {<NEW_LINE>if (!request.getMethod().equalsIgnoreCase("GET"))<NEW_LINE>return new HttpResponse(HttpStatusCode.BAD_REQUEST);<NEW_LINE>try (StringWriter data = new StringWriter();<NEW_LINE>JsonWriter json = new JsonWriter(data)) {<NEW_LINE>json.beginObject();<N...
getUuid().toString());
1,584,329
private Set<Long> matchBestPrefixIndex(Map<String, Integer> columnToIds, Map<Long, List<Column>> candidateIndexIdToSchema, Set<Integer> equivalenceColumns, Set<Integer> unequivalenceColumns) {<NEW_LINE>if (equivalenceColumns.size() == 0 && unequivalenceColumns.size() == 0) {<NEW_LINE>return candidateIndexIdToSchema.key...
get(col.getName());
1,329,107
public List<Score<I>> scoresForLaterFile(InputStream input) throws IOException {<NEW_LINE>List<Score<I>> results = new ArrayList<>();<NEW_LINE>int[] laterHashes = hashes(input);<NEW_LINE>if (isEmpty(laterHashes)) {<NEW_LINE>return ImmutableList.of();<NEW_LINE>}<NEW_LINE>for (PriorFile<I> priorFile : priorFiles) {<NEW_L...
priorHash = priorFile.hashes[priorIndex];
292,293
public boolean apply(Game game, Ability source) {<NEW_LINE>Player controller = game.<MASK><NEW_LINE>if (controller == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// put a +1/+1 counter on each creature you control if you control a creature with power 5 or greater.<NEW_LINE>FilterCreaturePermanent filter = new Fi...
getPlayer(source.getControllerId());
1,341,170
static final void safeClose(ExecuteListener listener, ExecuteContext ctx, boolean keepStatement, boolean keepResultSet) {<NEW_LINE>// [#2523] Set JDBC objects to null, to prevent repeated closing<NEW_LINE>JDBCUtils.<MASK><NEW_LINE>ctx.resultSet(null);<NEW_LINE>PreparedStatement statement = ctx.statement();<NEW_LINE>if ...
safeClose(ctx.resultSet());
987,134
public Pair<Map<RandomVariable, Object>, Double> weightedSample(BayesianNetwork bn, AssignmentProposition[] e) {<NEW_LINE>// w <- 1;<NEW_LINE>double w = 1.0;<NEW_LINE>// <b>x</b> <- an event with n elements initialized from e<NEW_LINE>Map<RandomVariable, Object> x = new LinkedHashMap<RandomVariable, Object>();<NEW_LINE...
Xi), x, randomizer));
79,215
public static ClaimsList parse(List<String> lines) {<NEW_LINE>ImmutableMap.Builder<String, String> builder = new ImmutableMap.Builder<>();<NEW_LINE>// First line: <version>,<DNL List creation datetime><NEW_LINE>List<String> firstLine = Splitter.on(',').splitToList(lines.get(0));<NEW_LINE>checkArgument(firstLine.size() ...
lookupKey = currentLine.get(1);
1,502,450
void write(XMLWriter writer) throws java.io.IOException {<NEW_LINE>if (!_ephemeral) {<NEW_LINE>java.util.List<String[]> attributes = new java.util.LinkedList<String[]>();<NEW_LINE>attributes.add<MASK><NEW_LINE>writer.writeStartTag("service-template", attributes);<NEW_LINE>writeParameters(writer, _templateDescriptor.par...
(createAttribute("id", _id));
1,143,871
static public CurrencyValue convertFromValue(ExchangeBasedCurrencyValue value, String targetCurrency, ExchangeRateProvider exchangeRateManager) {<NEW_LINE>if (targetCurrency.equals(value.getCurrency())) {<NEW_LINE>return value;<NEW_LINE>} else if (value.hasExactValue() && value.getExactValue().getCurrency().equals(targ...
null, value.getExactValue());
703,557
public StreamEvent find(CompiledCondition compiledCondition, StateEvent matchingEvent) throws ConnectionUnavailableException {<NEW_LINE>RecordStoreCompiledCondition recordStoreCompiledCondition = ((RecordStoreCompiledCondition) compiledCondition);<NEW_LINE>Map<String, Object> findConditionParameterMap = new HashMap<>()...
findConditionParameterMap, recordStoreCompiledCondition.getCompiledCondition());
1,659,722
private static <T> IExpectationSetters<T> doExpectNew(Class<T> type, MockStrategy mockStrategy, Class<?>[] parameterTypes, Object... arguments) throws Exception {<NEW_LINE>if (type == null) {<NEW_LINE>throw new IllegalArgumentException("type cannot be null");<NEW_LINE>} else if (mockStrategy == null) {<NEW_LINE>throw n...
WhiteboxImpl.getConstructor(unmockedType, parameterTypes);
1,158,620
private static void addBucketStats(HtmlTable.Row row, ContentNodeStats.BucketSpaceStats bucketSpaceStats, double minMergeCompletionRatio) {<NEW_LINE>if (bucketSpaceStats != null) {<NEW_LINE><MASK><NEW_LINE>long bucketsTotal = bucketSpaceStats.getBucketsTotal();<NEW_LINE>String cellValuePending = String.valueOf(bucketsP...
long bucketsPending = bucketSpaceStats.getBucketsPending();
920,313
private /*<NEW_LINE>* StackFrame frame = getFrame(insn); Operand[] out = frame.out(); Operand dup, dup2 = null, dupd, dupd2 = null; if (out ==<NEW_LINE>* null) { dupd = popImmediate(); dup = new Operand(insn, dupd.stackOrValue()); if (dword) { dupd2 = peek(); if (dupd2 ==<NEW_LINE>* DWORD_DUMMY) { pop(); dupd2 = dupd; ...
insn, NullConstant.v());
653,369
static MethodReader resolveMethodImplementation(ClassReaderSource classSource, String className, MethodDescriptor methodDescriptor, Set<String> visited) {<NEW_LINE>if (!visited.add(className)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ClassReader cls = classSource.get(className);<NEW_LINE>if (cls == null) {<NEW_LINE>...
addAll(cls.getInterfaces());
1,480,881
public DescribeContactFlowModuleResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>DescribeContactFlowModuleResult describeContactFlowModuleResult = new DescribeContactFlowModuleResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.g...
JsonToken token = context.getCurrentToken();
590,311
public void marshall(EdgeModelStat edgeModelStat, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (edgeModelStat == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(edgeModelStat.getModelName(), MODELNAME_BINDI...
edgeModelStat.getModelVersion(), MODELVERSION_BINDING);
461,691
public void flatMap(BaseRow input, Collector<BaseRow> out) throws Exception {<NEW_LINE>GenericRow genericRow = (GenericRow) input;<NEW_LINE>Map<String, Object> refData = Maps.newHashMap();<NEW_LINE>for (int i = 0; i < sideInfo.getEqualValIndex().size(); i++) {<NEW_LINE>Integer conValIndex = sideInfo.getEqualValIndex()....
AbstractSideTableInfo sideTableInfo = sideInfo.getSideTableInfo();
812,594
private void initializeFilterAdd() {<NEW_LINE>final List<GeocacheFilterType> filterTypes = new ArrayList<>(CollectionStream.of(GeocacheFilterType.values()).filter(GeocacheFilterType::displayToUser).toList());<NEW_LINE>filterTypes.removeAll(INTERNAL_FILTER_TYPES_SET);<NEW_LINE>Collections.sort(filterTypes, (left, right)...
.createFor(gcf, this));
498,889
final CreatePackageResult executeCreatePackage(CreatePackageRequest createPackageRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(createPackageRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
168,178
private void filter() {<NEW_LINE>Map<String, String> schema = (Map<String, String>) response.getHeaders().get("schema");<NEW_LINE>if (schema == null || schema.isEmpty()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>Map<PolicyInventory, List<PolicyStatement>> denyPolices = RBACManager.collectDenyStatements(RBACManager.getPoli...
statement.split(":", 2);
1,062,212
public void addInstanceRules(RuleStore rs) {<NEW_LINE>// parent rules already added<NEW_LINE>super.addInstanceRules(rs);<NEW_LINE>rs.addRule(new ElementSelector("configuration"), new ConfigurationAction());<NEW_LINE>rs.addRule(new ElementSelector("configuration/contextName"), new ContextNameAction());<NEW_LINE>rs.addRu...
"configuration/appender/sift"), new SiftAction());
1,321,191
public static void main(String[] args) throws Exception {<NEW_LINE>VerifiableProperties properties = ToolUtils.getVerifiableProperties(args);<NEW_LINE>DiskReformatterConfig config = new DiskReformatterConfig(properties);<NEW_LINE>StoreConfig storeConfig = new StoreConfig(properties);<NEW_LINE>ClusterMapConfig clusterMa...
.diskMountPaths[finalI], e);
172,621
public static void horizontal(Kernel1D_F64 kernel, GrayF64 src, GrayF64 dst, ImageBorder_F64 bsrc) {<NEW_LINE>dst.reshape(src.width, src.height);<NEW_LINE>// if( BOverrideConvolveImageNormalized.invokeNativeHorizontal(kernel,src,dst) )<NEW_LINE>// return;<NEW_LINE>bsrc.setImage(src);<NEW_LINE>if (kernel.width >= src.wi...
horizontal(kernel, bsrc, dst);
1,186,272
public List<TxEvent> sagaSuccessfulEvents(String globalTxId, String localTxId_1, String localTxId_2, String localTxId_3) {<NEW_LINE>List<TxEvent> sagaEvents = new ArrayList<>();<NEW_LINE>sagaEvents.add(new TxEvent(EventType.SagaStartedEvent, globalTxId, globalTxId, globalTxId, "", 0, null, 0, 0, 0, 0, 0));<NEW_LINE>sag...
, 0, 0, 0));
1,846,616
public void marshall(Action action, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (action == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(action.getDynamoDB(), DYNAMODB_BINDING);<NEW_LINE>protocolMarshall...
action.getDynamoDBv2(), DYNAMODBV2_BINDING);
1,533,631
public void marshall(EnhancedImageScanFinding enhancedImageScanFinding, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (enhancedImageScanFinding == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(enhancedImag...
enhancedImageScanFinding.getRemediation(), REMEDIATION_BINDING);