idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
631,363 | public void invoke(PHPRuleContext context, List<Hint> hints) {<NEW_LINE>PHPParseResult <MASK><NEW_LINE>if (phpParseResult.getProgram() == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>FileObject fileObject = phpParseResult.getSnapshot().getSource().getFileObject();<NEW_LINE>if (fileObject == null || CodeUtils.isPhpVersi... | phpParseResult = (PHPParseResult) context.parserResult; |
784,483 | final GetBuiltinSlotTypesResult executeGetBuiltinSlotTypes(GetBuiltinSlotTypesRequest getBuiltinSlotTypesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getBuiltinSlotTypesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | addHandlerContext(HandlerContextKey.SERVICE_ID, "Lex Model Building Service"); |
70,456 | private Mono<Response<SshPublicKeyGenerateKeyPairResultInner>> generateKeyPairWithResponseAsync(String resourceGroupName, String sshPublicKeyName, Context context) {<NEW_LINE>if (this.client.getEndpoint() == null) {<NEW_LINE>return Mono.error(new IllegalArgumentException("Parameter this.client.getEndpoint() is required... | this.client.mergeContext(context); |
1,575,523 | static void encodeAsNumpy(NDArray array, OutputStream os) throws IOException {<NEW_LINE><MASK><NEW_LINE>sb.append("{'descr': '").append(array.getDataType().asNumpy()).append("', 'fortran_order': False, 'shape': ");<NEW_LINE>long[] shape = array.getShape().getShape();<NEW_LINE>if (shape.length == 1) {<NEW_LINE>sb.append... | StringBuilder sb = new StringBuilder(80); |
278,040 | public int compareTo(TSummaries other) {<NEW_LINE>if (!getClass().equals(other.getClass())) {<NEW_LINE>return getClass().getName().compareTo(other.getClass().getName());<NEW_LINE>}<NEW_LINE>int lastComparison = 0;<NEW_LINE>lastComparison = java.lang.Boolean.compare(isSetFinished(<MASK><NEW_LINE>if (lastComparison != 0)... | ), other.isSetFinished()); |
508,982 | public static NodeValue dtGetTimezone(NodeValue nv) {<NEW_LINE>DateTimeStruct dts = parseAnyDT(nv);<NEW_LINE>if (dts == null || dts.timezone == null)<NEW_LINE>throw new ExprEvalException("Not a datatype with a timezone: " + nv);<NEW_LINE>if ("".equals(dts.timezone))<NEW_LINE>return null;<NEW_LINE>if ("Z".equals(dts.tim... | s, idx, sb, 'H'); |
1,744,575 | protected StreamMappingMethod instantiateMappingMethod(Method method, Collection<String> existingVariables, Assignment assignment, MethodReference factoryMethod, boolean mapNullToDefault, String loopVariableName, List<LifecycleCallbackMethodReference> beforeMappingMethods, List<LifecycleCallbackMethodReference> afterMa... | .getType(Collectors.class)); |
763,645 | public static MonthView create(ViewGroup parent, LayoutInflater inflater, DateFormat weekdayNameFormat, Listener listener, Calendar today, int dividerColor, int dayBackgroundResId, int dayTextColorResId, int titleTextStyle, boolean displayHeader, int headerTextColor, boolean displayDayNamesHeaderRowView, boolean showAl... | (today.getTime())); |
1,144,461 | private void internalStreamScreen(Device device, FileDescriptor fd) throws IOException {<NEW_LINE>MediaFormat format = createFormat(bitRate, maxFps, codecOptions);<NEW_LINE>device.setRotationListener(this);<NEW_LINE>boolean alive;<NEW_LINE>try {<NEW_LINE>do {<NEW_LINE>MediaCodec codec = createCodec(encoderName);<NEW_LI... | int layerStack = device.getLayerStack(); |
1,037,806 | private OperatorNode<SequenceOperator> convertPipe(Query_statementContext queryStatementContext, List<Pipeline_stepContext> nodes, Scope scope) {<NEW_LINE>OperatorNode<SequenceOperator> result = convertQuery(queryStatementContext.getChild(0), scope.getRoot());<NEW_LINE>for (Pipeline_stepContext step : nodes) {<NEW_LINE... | newArrayListWithExpectedSize(argumentContextList.size()); |
85,905 | public static DescribeDingTalkResponse unmarshall(DescribeDingTalkResponse describeDingTalkResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDingTalkResponse.setRequestId(_ctx.stringValue("DescribeDingTalkResponse.RequestId"));<NEW_LINE>PageInfo pageInfo = new PageInfo();<NEW_LINE>pageInfo.setPageSize(_ctx.integer... | = new ArrayList<ActionListArr>(); |
1,578,525 | public JsonRpcResponse response(final JsonRpcRequestContext requestContext) {<NEW_LINE>LOG.trace("Executing {}", RpcMethod.PRIV_FIND_PRIVACY_GROUP.getMethodName());<NEW_LINE>final String[] addresses = requestContext.getRequiredParameter(0, String[].class);<NEW_LINE>LOG.trace("Finding a privacy group with members {}", A... | LOG.error("Failed to fetch privacy group", e); |
1,583,504 | public static void main(String[] args) {<NEW_LINE>BackEnd be = new BackEnd();<NEW_LINE>Value<Integer> vAge = be.allocate("age", 0);<NEW_LINE>StreamSink<Integer> sAge = new StreamSink<>();<NEW_LINE>ValueOutput<Integer> out = vAge.construct(sAge);<NEW_LINE>Cell<Optional<Integer>> age = out.value;<NEW_LINE>Listener l = ag... | System.out.println("SEND 5"); |
952,632 | protected void initActivityInstanceEvent(HistoricActivityInstanceEventEntity evt, ExecutionEntity execution, PvmScope eventSource, String activityInstanceId, String parentActivityInstanceId, HistoryEventType eventType) {<NEW_LINE>evt.setId(activityInstanceId);<NEW_LINE>evt.setEventType(eventType.getEventName());<NEW_LI... | setCalledProcessInstanceId(subProcessInstance.getId()); |
298,395 | private float[][] swapResults(MatrixLocations srcData, MatrixLocations dstData, float[] times, float[] distances, float[] weights) {<NEW_LINE>boolean hasTimes = times != null;<NEW_LINE>boolean hasDistances = distances != null;<NEW_LINE>boolean hasWeights = weights != null;<NEW_LINE>float[] newTimes = new float[hasTimes... | int srcSize = srcData.size(); |
1,826,045 | public boolean isKnownPackage(String qualifiedPackageName) {<NEW_LINE>if (this.knownPackageNames == null) {<NEW_LINE>LinkedHashSet<String> names = new LinkedHashSet<>(this.typeLocators.size());<NEW_LINE>Set<Entry<String, String>> keyTable = this.typeLocators.entrySet();<NEW_LINE>for (Entry<String, String> entry : keyTa... | last = packageName.lastIndexOf('/'); |
452,615 | public static void validateOutputLayer(String layerName, Layer layer) {<NEW_LINE>IActivation activation;<NEW_LINE>ILossFunction loss;<NEW_LINE>long nOut;<NEW_LINE>boolean isLossLayer = false;<NEW_LINE>if (layer instanceof BaseOutputLayer && !(layer instanceof OCNNOutputLayer)) {<NEW_LINE>activation = ((BaseOutputLayer)... | LossLayer) layer).getLossFn(); |
67,743 | public void executionPhaseStarting(ActionGraph actionGraph, Supplier<ImmutableSet<Artifact>> topLevelArtifacts) throws AbruptExitException, InterruptedException {<NEW_LINE>IncludeParser.HintsRules hintsRules;<NEW_LINE>if (useIncludeHints) {<NEW_LINE>try {<NEW_LINE>hintsRules = (IncludeParser.HintsRules) env.getSkyframe... | getReporter(), IncludeHintsFunction.INCLUDE_HINTS_KEY); |
1,465,243 | public Supplier<Set<ServiceLocator>> exposedServices() {<NEW_LINE>return () -> {<NEW_LINE>return applicationContext.getBeansWithAnnotation(RSocketService.class).values().stream().filter(bean -> !(bean instanceof RSocketServiceHealth || bean instanceof MetricsService)).map(o -> {<NEW_LINE>Class<?> managedBeanClass = Aop... | .serviceInterface().getCanonicalName(); |
120,570 | private TruffleString parseString() {<NEW_LINE>// String buffer is only instantiated if string contains escape sequences.<NEW_LINE>int start = ++pos;<NEW_LINE>TruffleStringBuilder sb = null;<NEW_LINE>while (pos < length) {<NEW_LINE>final int c = next();<NEW_LINE>if (c <= 0x1f) {<NEW_LINE>// Characters < 0x1f are not al... | source, start, pos - 1); |
181,462 | public Session withDefaultProperties(Map<String, String> systemPropertyDefaults, Map<String, Map<String, String>> catalogPropertyDefaults, AccessControl accessControl) {<NEW_LINE>requireNonNull(systemPropertyDefaults, "systemPropertyDefaults is null");<NEW_LINE>requireNonNull(catalogPropertyDefaults, "catalogPropertyDe... | systemProperties = new HashMap<>(); |
727,402 | public static JARVerifier create(String keystore, String alias, char[] passwd) throws IOException, KeyStoreException, NoSuchAlgorithmException, CertificateException {<NEW_LINE>KeyStore keyStore = KeyStore.getInstance("JKS");<NEW_LINE>FileInputStream fileIn = null;<NEW_LINE>try {<NEW_LINE>fileIn = new FileInputStream(ke... | cf = CertificateFactory.getInstance("X.509"); |
301,263 | private boolean compareConfigurations(String serverConfigFilePath, String clientSiteName, Map<String, String> clientSiteProps) {<NEW_LINE>HadoopConfigurationFileParser parser = new HadoopConfigurationFileParser();<NEW_LINE>Map<String, String> serverSiteProps;<NEW_LINE>try {<NEW_LINE>serverSiteProps = parser.parseXmlCon... | .getKey(), clientSiteName)); |
1,236,904 | private void replacePipeAliases(ConsoleEngine consoleEngine, Map<String, List<String>> customPipes, ArgsParser ap) {<NEW_LINE>List<String> words = ap.args();<NEW_LINE>if (consoleEngine != null && words.contains(pipeName.get(Pipe.NAMED))) {<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>boolean trace = false;... | words.get(++i)); |
731,243 | private String uploadImage(MediaFile mediaFile) {<NEW_LINE>AppLog.i(T.POSTS, "PostUploadHandler > UploadImage: " + mediaFile.getFilePath());<NEW_LINE>if (mediaFile.getFilePath() == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>Uri imageUri = Uri.parse(mediaFile.getFilePath());<NEW_LINE>File imageFile = null;<NEW_LI... | setFilePath(imageFile.getPath()); |
791,557 | public static UpdateExperimentBasicInfoResponse unmarshall(UpdateExperimentBasicInfoResponse updateExperimentBasicInfoResponse, UnmarshallerContext _ctx) {<NEW_LINE>updateExperimentBasicInfoResponse.setRequestId(_ctx.stringValue("UpdateExperimentBasicInfoResponse.requestId"));<NEW_LINE>Result result = new Result();<NEW... | + "].config[" + j + "].name")); |
708,120 | private void onChunkOperationComplete(PutChunk chunk) {<NEW_LINE>if (chunk.getChunkBlobId() == null) {<NEW_LINE>// the overall operation has failed if any of the chunk fails.<NEW_LINE>if (chunk.getChunkException() == null) {<NEW_LINE>logger.error("{}: Operation on chunk failed, but no exception was set", loggingContext... | loggingContext, chunk.getChunkIndex()); |
1,824,224 | public Request<DescribeMovingAddressesRequest> marshall(DescribeMovingAddressesRequest describeMovingAddressesRequest) {<NEW_LINE>if (describeMovingAddressesRequest == null) {<NEW_LINE>throw new AmazonClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>Request<DescribeMovingAddressesRequest... | , StringUtils.fromString(publicIpsListValue)); |
1,153,664 | public void execute() {<NEW_LINE>if (!enableArtemisPlugin) {<NEW_LINE>getLog().info("Plugin disabled via 'enableArtemisPlugin' set to false.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (context != null && !context.hasDelta(sourceDirectory))<NEW_LINE>return;<NEW_LINE>log.info("");<NEW_LINE>log.info("CONFIGURATION");<NEW_... | .format("optimizeEntitySystems", optimizeEntitySystems)); |
533,583 | public static void main(String[] __) {<NEW_LINE>Log.info("Converting icons...");<NEW_LINE>Time.mark();<NEW_LINE>Fi.get("fontgen/icons").deleteDirectory();<NEW_LINE>Fi.get("fontgen/icon_parts").deleteDirectory();<NEW_LINE>Fi[] list = new Fi("icons").list();<NEW_LINE>Seq<Fi> <MASK><NEW_LINE>for (Fi img : list) {<NEW_LINE... | files = new Seq<>(); |
952,153 | public int compare(MapMarker mapMarker1, MapMarker mapMarker2) {<NEW_LINE>if (sortByMode == BY_DATE_ADDED_DESC || sortByMode == BY_DATE_ADDED_ASC) {<NEW_LINE>long t1 = visited ? mapMarker1.visitedDate : mapMarker1.creationDate;<NEW_LINE>long t2 = visited ? mapMarker2.visitedDate : mapMarker2.creationDate;<NEW_LINE>if (... | sortByMode == BY_DATE_ADDED_DESC ? -1 : 1; |
1,442,690 | public PersistenceResponse fetch(PersistencePackage persistencePackage, CriteriaTransferObject cto) throws ServiceException {<NEW_LINE>for (PersistenceManagerEventHandler handler : persistenceManagerEventHandlers) {<NEW_LINE>PersistenceManagerEventHandlerResponse response = handler.preFetch(this, persistencePackage, ct... | ().withDynamicResultSet(results)); |
1,329,913 | final GetDomainResult executeGetDomain(GetDomainRequest getDomainRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getDomainRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.ClientExecuteTime);<NEW_L... | false), new GetDomainResultJsonUnmarshaller()); |
642,988 | private void createExternalAssociation(Program program, String extProgName) {<NEW_LINE>int result = OptionDialog.showOptionDialog(null, "No Program Association", "The external program name \"" + extProgName + "\" is not associated with a Ghidra Program\n" + "Would you like to create an association?", "Create Associatio... | tool.execute(cmd, program); |
1,261,342 | public Mapper.Builder<?, ?> parse(String name, Map<String, Object> node, ParserContext parserContext) throws MapperParsingException {<NEW_LINE>Builder builder = new Builder(name);<NEW_LINE>TypeParsers.parseField(builder, name, node, parserContext);<NEW_LINE>for (Iterator<Map.Entry<String, Object>> iterator = node.entry... | , "ignore_malformed", propNode, parserContext)); |
1,252,855 | public static void renderStitching(BufferedImage imageA, BufferedImage imageB, Homography2D_F64 fromAtoB) {<NEW_LINE>// specify size of output image<NEW_LINE>double scale = 0.5;<NEW_LINE>// Convert into a BoofCV color format<NEW_LINE>Planar<GrayF32> colorA = ConvertBufferedImage.convertFromPlanar(imageA, null, true, Gr... | class, model, interp, false); |
1,743,919 | public void write(final MutableDirectBuffer buffer, int offset) {<NEW_LINE>// protocol header<NEW_LINE>messageHeaderEncoder.wrap(buffer, offset).blockLength(responseEncoder.sbeBlockLength()).templateId(responseEncoder.sbeTemplateId()).schemaId(responseEncoder.sbeSchemaId()).version(responseEncoder.sbeSchemaVersion());<... | (key).rejectionType(rejectionType); |
677,565 | public static DbfsRecordResponse unmarshall(DbfsRecordResponse dbfsRecordResponse, UnmarshallerContext _ctx) {<NEW_LINE>dbfsRecordResponse.setRequestId(_ctx.stringValue("DbfsRecordResponse.RequestId"));<NEW_LINE>dbfsRecordResponse.setPageNo(_ctx.longValue("DbfsRecordResponse.PageNo"));<NEW_LINE>dbfsRecordResponse.setPa... | ("DbfsRecordResponse.Records[" + i + "].BatchStrategyNo")); |
754,193 | public T readArrayMappingJSONBObject(JSONReader jsonReader, Type fieldType, Object fieldName, long features) {<NEW_LINE>ObjectReader autoTypeReader = checkAutoType(jsonReader, this.objectClass, this.features | features);<NEW_LINE>if (autoTypeReader != null && autoTypeReader != this && autoTypeReader.getObjectClass() !=... | fieldReader1.readFieldValue(jsonReader, object); |
332,496 | public DynamicType make(String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory) {<NEW_LINE>MethodDescription accessorMethod = methodAccessorFactory.registerAccessorFor(<MASK><NEW_LINE>LinkedHashMap<String, TypeDescription> parameterFields = extractFields(accessorMethod)... | specialMethodInvocation, MethodAccessorFactory.AccessType.DEFAULT); |
403,970 | protected void renderBehaviorizedJavaScriptAnchorStart(FacesContext facesContext, ResponseWriter writer, UIComponent component, String clientId, Map<String, List<ClientBehavior>> behaviors, FormInfo formInfo) throws IOException {<NEW_LINE>String commandOnclick;<NEW_LINE>if (component instanceof HtmlCommandLink) {<NEW_L... | hasSubmittingBehavior(behaviors, ClientBehaviorEvents.ACTION); |
1,356,579 | private void processFile(File file, String license) {<NEW_LINE>try {<NEW_LINE>String content = FileUtils.readFileToString(file);<NEW_LINE>int indexOfPackageStart = content.indexOf("package ");<NEW_LINE>if (indexOfPackageStart != -1) {<NEW_LINE>int indexOfPackageEnd = content.indexOf(";", indexOfPackageStart + 1);<NEW_L... | content.indexOf("private ", indexOfPackageEnd); |
763,855 | private void readNameIdMapV2(FileChannel nameIdMapHolder) throws IOException, InterruptedException {<NEW_LINE>nameIdMap.clear();<NEW_LINE>long localFileCounter = -1;<NEW_LINE>nameIdMapHolder.position(0);<NEW_LINE>NameFileIdEntry nameFileIdEntry;<NEW_LINE>final Map<Integer, String> idFileNameMap = new HashMap<>(1_000);<... | Math.abs(nameFileIdEntry.fileId); |
1,703,793 | static private void validateModel(Model model, String className, ClassLoader classLoader) {<NEW_LINE>Collection c = null;<NEW_LINE>if (!(c = model.validate(className, classLoader, null)).isEmpty()) {<NEW_LINE>Iterator iter = c.iterator();<NEW_LINE>StringBuilder validationMsgs = new StringBuilder();<NEW_LINE>while (iter... | (validationMsg).append('\n'); |
1,655,935 | private ITrxItemProcessor<I_M_InOut, Void> mkProcessor() {<NEW_LINE>return new ITrxItemProcessor<I_M_InOut, Void>() {<NEW_LINE><NEW_LINE>private final IDesadvBL desadvBL = <MASK><NEW_LINE><NEW_LINE>private ITrxItemProcessorContext processorCtx;<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void setTrxItemProcessorCtx(fi... | Services.get(IDesadvBL.class); |
1,318,088 | public static Map<String, String> readSettingsFromStream(InputSource inputSource, String profileName) throws CoreException {<NEW_LINE>final ProfileDefaultHandler handler = new ProfileDefaultHandler(profileName);<NEW_LINE>try {<NEW_LINE>final SAXParserFactory factory = SAXParserFactory.newInstance();<NEW_LINE>final <MAS... | SAXParser parser = factory.newSAXParser(); |
248,389 | protected SetExpressionHelper<E> addListener(InvalidationListener listener) {<NEW_LINE>if (invalidationListeners == null) {<NEW_LINE>invalidationListeners = new InvalidationListener[] { listener };<NEW_LINE>invalidationSize = 1;<NEW_LINE>} else {<NEW_LINE>final int oldCapacity = invalidationListeners.length;<NEW_LINE>i... | Arrays.copyOf(invalidationListeners, newCapacity); |
1,824,658 | protected Object replaceGeneric(Object thisObj, Object searchValue, Object replaceValue) {<NEW_LINE>requireObjectCoercible(thisObj);<NEW_LINE>if (isSpecialProfile.profile(!(searchValue == Undefined.instance || searchValue == Null.instance))) {<NEW_LINE>if (isRegExp.profile(getIsRegExpNode().executeBoolean(searchValue))... | [] { thisObj, replaceValue }); |
161,757 | public void generateStoreSaveValueIfNecessary(Scope scope, CodeStream codeStream) {<NEW_LINE>// push receiver<NEW_LINE>codeStream.aload_0();<NEW_LINE>// push the 2 parameters of "setResult(Object, Class)"<NEW_LINE>if (this.expression == null || this.expression.resolvedType == TypeBinding.VOID) {<NEW_LINE>// expressionT... | = this.expression.resolvedType.id; |
897,354 | private boolean isRowEditable(int row, boolean isAlwaysUpdateableColumn) {<NEW_LINE>// Entire Table not editable or no row<NEW_LINE>if (// metas: check !isAlwaysUpdateableColumn<NEW_LINE>(m_readOnly && !isAlwaysUpdateableColumn) || row < 0) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>// If not Active - not editable<NE... | log.warn("Failed checking role access. Considering row not editable.", ex); |
40,605 | // Visible for testing<NEW_LINE>BiIntFunction<Throwable, Completable> retryStrategy(final Executor executor, final HttpRequestMetaData requestMetaData) {<NEW_LINE>return (count, t) -> {<NEW_LINE>if (count > maxTotalRetries) {<NEW_LINE>return failed(t);<NEW_LINE>}<NEW_LINE>if (loadBalancerReadySubscriber != null && t in... | ).apply(count, t); |
311,610 | public void write(ConnectorSession session, CheckpointEntries entries, Path targetPath) {<NEW_LINE>RowType metadataEntryType = checkpointSchemaManager.getMetadataEntryType();<NEW_LINE>RowType protocolEntryType = checkpointSchemaManager.getProtocolEntryType();<NEW_LINE>RowType txnEntryType = checkpointSchemaManager.getT... | .HdfsContext(session), targetPath); |
164,733 | public CreateAgentStatusResult unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>CreateAgentStatusResult createAgentStatusResult = new CreateAgentStatusResult();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LI... | class).unmarshall(context)); |
792,543 | final UpdateSqlInjectionMatchSetResult executeUpdateSqlInjectionMatchSet(UpdateSqlInjectionMatchSetRequest updateSqlInjectionMatchSetRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(updateSqlInjectionMatchSetRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRe... | awsRequestMetrics.endEvent(Field.RequestMarshallTime); |
182,284 | @CEntryPoint(name = "Java_org_graalvm_compiler_truffle_runtime_hotspot_libgraal_TruffleToLibGraalCalls_initializeCompiler")<NEW_LINE>public static void initializeCompiler(JNIEnv env, JClass hsClazz, @CEntryPoint.IsolateThreadContext long isolateThreadId, long compilerHandle, JByteArray hsOptions, JObject hsCompilable, ... | initialize(options, compilable, firstInitialization); |
546,312 | ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi.class);<NEW_LINE>ActionResult<Wo> <MASK><NEW_LINE>Business business ... | result = new ActionResult<>(); |
224,688 | private void remove_concave_corners_at_close() {<NEW_LINE>add_corner_for_snap_angle();<NEW_LINE>if (corner_list.size() < 4) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>IntPoint[] corner_arr = new IntPoint[corner_list.size()];<NEW_LINE>Iterator<IntPoint> it = corner_list.iterator();<NEW_LINE>for (int i = 0; i < corner_arr.le... | util.LinkedList<IntPoint>(); |
524,860 | public static void vertical3(Kernel1D_S32 kernel, GrayU16 src, GrayI16 dst) {<NEW_LINE>final short[] dataSrc = src.data;<NEW_LINE>final short[] dataDst = dst.data;<NEW_LINE>final int k1 = kernel.data[0];<NEW_LINE>final int k2 = kernel.data[1];<NEW_LINE>final int k3 = kernel.data[2];<NEW_LINE>final int radius = kernel.g... | [indexSrc] & 0xFFFF) * k3; |
1,399,074 | public Mono<Void> pUnsubscribe(ByteBuffer... patterns) {<NEW_LINE>monosListener.acquire();<NEW_LINE>return Mono.defer(() -> {<NEW_LINE>List<CompletableFuture<?>> futures = new ArrayList<>(patterns.length);<NEW_LINE>for (ByteBuffer channel : patterns) {<NEW_LINE>ChannelName cn = toChannelName(channel);<NEW_LINE>Completa... | this.patterns.get(cn); |
492,144 | public static void serverTick(Level level, BlockPos worldPosition, BlockState state, TileTerraPlate self) {<NEW_LINE>boolean removeMana = true;<NEW_LINE>if (self.hasValidPlatform()) {<NEW_LINE>List<ItemStack> items = self.getItems();<NEW_LINE>SimpleContainer inv = self.getInventory();<NEW_LINE>ITerraPlateRecipe recipe ... | SoundSource.BLOCKS, 1F, 1F); |
421,139 | final ListPipelinesResult executeListPipelines(ListPipelinesRequest listPipelinesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listPipelinesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.Clien... | (super.beforeMarshalling(listPipelinesRequest)); |
85,243 | public ChannelInfo unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>AwsJsonReader reader = context.getReader();<NEW_LINE>if (!reader.isContainer()) {<NEW_LINE>reader.skipValue();<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>ChannelInfo channelInfo = new ChannelInfo();<NEW_LINE>reader.beginObject();<... | ().unmarshall(context)); |
541,898 | public void run() {<NEW_LINE>Realm realm = RealmManager.getInstance().getNewRealm();<NEW_LINE>realm.executeTransaction(new Realm.Transaction() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void execute(Realm realm) {<NEW_LINE>String accountJid = chat.getAccount().toString();<NEW_LINE>String userJid = chat.getUser().to... | = new ChatDataRealm(accountJid, userJid); |
379,746 | public static Animator createCircularReveal(@NonNull CircularRevealWidget view, float centerX, float centerY, float endRadius) {<NEW_LINE>Animator revealInfoAnimator = ObjectAnimator.ofObject(view, CircularRevealProperty.CIRCULAR_REVEAL, CircularRevealEvaluator.CIRCULAR_REVEAL, new RevealInfo<MASK><NEW_LINE>if (VERSION... | (centerX, centerY, endRadius)); |
1,277,525 | public void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>overridePendingTransition(R.anim.activity_slide_up, R.anim.activity_slide_down);<NEW_LINE>mCache = App.getInstance(this).getBitmapCache();<NEW_LINE>context = this;<NEW_LINE>sharedPrefs = context.getSharedPreferences(... | ViewConfiguration.class.getDeclaredField("sHasPermanentMenuKey"); |
1,053,880 | private void computeEnumUniqNames() {<NEW_LINE>Map<String, String> definitiveNames = new HashMap<>();<NEW_LINE>for (String h : enumNames.keySet()) {<NEW_LINE>boolean hasDefName = false;<NEW_LINE>List<String> <MASK><NEW_LINE>for (String name : nameCandidates) {<NEW_LINE>String candidate = sanitizeOCamlTypeName(name);<NE... | nameCandidates = enumNames.get(h); |
348,225 | public byte[] messageDecrypt(byte[] input) throws InvalidCipherTextException {<NEW_LINE>if (forEncryption) {<NEW_LINE>throw new IllegalStateException("cipher initialised for decryption");<NEW_LINE>}<NEW_LINE>int c1Len = (n + 7) >> 3;<NEW_LINE>int c2Len = input.length - c1Len;<NEW_LINE>// split ciphertext (c1||c2)<NEW_L... | decC1[0].getEncoded(); |
1,834,660 | public RelDataType validateImpl(RelDataType targetRowType) {<NEW_LINE>resolvedNamespace = Preconditions.checkNotNull(resolveImpl(id));<NEW_LINE>if (resolvedNamespace instanceof TableNamespace) {<NEW_LINE>SqlValidatorTable table = resolvedNamespace.getTable();<NEW_LINE>if (validator.shouldExpandIdentifiers()) {<NEW_LINE... | > qualifiedNames = table.getQualifiedName(); |
594,530 | public List<Object> apply(Object o) {<NEW_LINE>// if (o instanceof Tbl) {<NEW_LINE>//<NEW_LINE>// Tbl tbl = (Tbl)o;<NEW_LINE>//<NEW_LINE>// if ( tbl.getTblPr()==null ) {<NEW_LINE>// tbl.setTblPr( Context.getWmlObjectFactory().createTblPr() );<NEW_LINE>// }<NEW_LINE>//<NEW_LINE>// if (tbl.getTblPr().getTblStyle()==null)... | getPStyle().setVal(newStyle); |
1,449,635 | public void run(RegressionEnvironment env) {<NEW_LINE>SupportVirtualDWFactory.getWindows().clear();<NEW_LINE>SupportVirtualDWFactory.setDestroyed(false);<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compileDeploy("@public create context CtxSegmented as partition by theString from SupportBean", path... | new SupportBean("E2", 2)); |
1,754,538 | private void loadColumns() {<NEW_LINE>ArrayList<MReportColumn> list = new ArrayList<MReportColumn>();<NEW_LINE>String sql = "SELECT * FROM PA_ReportColumn WHERE PA_ReportColumnSet_ID=? AND IsActive='Y' ORDER BY SeqNo";<NEW_LINE>PreparedStatement pstmt = null;<NEW_LINE>try {<NEW_LINE>pstmt = DB.prepareStatement(sql, get... | ResultSet rs = pstmt.executeQuery(); |
783,873 | protected static int underflowDistanceMul(float op1, float op2) {<NEW_LINE>float result = op1 * op2;<NEW_LINE>if (op1 > 0 && op2 < 0) {<NEW_LINE>return result == Float.NEGATIVE_INFINITY ? -1 : HALFWAY - scaleTo(result, HALFWAY);<NEW_LINE>} else if (op1 < 0 && op2 > 0) {<NEW_LINE>return result == Float.NEGATIVE_INFINITY... | HALFWAY - scaleTo(result, HALFWAY); |
1,818,777 | public static boolean scrollToVisible(JViewport viewport, Rectangle fieldArea) {<NEW_LINE>Rectangle viewArea = viewport.getViewRect();<NEW_LINE>if (viewArea.contains(fieldArea)) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>Point pos = new Point();<NEW_LINE>pos.x = viewArea.x;<NEW_LINE>if (fieldArea.x + fieldArea.width ... | .getHeight() - viewArea.height; |
1,662,729 | public NicTO toNicTO(NicProfile profile) {<NEW_LINE>NicTO to = new NicTO();<NEW_LINE>to.setDeviceId(profile.getDeviceId());<NEW_LINE>to.setBroadcastType(profile.getBroadcastType());<NEW_LINE>to.setType(profile.getTrafficType());<NEW_LINE>to.setIp(profile.getIPv4Address());<NEW_LINE>to.setNetmask(profile.getIPv4Netmask(... | setMac(profile.getMacAddress()); |
641,637 | public boolean onOptionsItemSelected(MenuItem item) {<NEW_LINE>if (InputHelper.isEmpty(url))<NEW_LINE>return super.onOptionsItemSelected(item);<NEW_LINE>if (item.getItemId() == R.id.viewAsCode) {<NEW_LINE>ViewerFragment viewerFragment = (ViewerFragment) AppHelper.getFragmentByTag(getSupportFragmentManager(), ViewerFrag... | this, url, isEnterprise()); |
1,416,113 | public Point computeSize(int wHint, int hHint, boolean changed) {<NEW_LINE>Control[] controls = getControls(true);<NEW_LINE>if (controls.length == 0)<NEW_LINE>return new Point(wHint, hHint);<NEW_LINE>int width = 0;<NEW_LINE>int height = 0;<NEW_LINE>boolean vertical = (getStyle() & SWT.VERTICAL) != 0;<NEW_LINE>if (verti... | += controls.length * getSashWidth(); |
1,016,193 | public static void keytool(String cmd) {<NEW_LINE>log.info("keytool " + cmd);<NEW_LINE>ArrayList<String> list = new ArrayList<String>();<NEW_LINE>StringTokenizer st = new StringTokenizer(cmd, " ");<NEW_LINE>String quoteBuffer = null;<NEW_LINE>while (st.hasMoreTokens()) {<NEW_LINE>String token = st.nextToken();<NEW_LINE... | ] { String[].class }; |
1,340,586 | public InputStream newInputStream(Path path, OpenOption... options) throws IOException {<NEW_LINE>// Validate options. Only read is supported.<NEW_LINE>if (options.length > 1 || (options.length > 0 && !options[0].equals(StandardOpenOption.READ))) {<NEW_LINE>throw LoggingUtility.logError(ClientLoggerHolder.LOGGER, new U... | + path.toString())); |
1,183,496 | public static QueryPushAnalysisTaskListResponse unmarshall(QueryPushAnalysisTaskListResponse queryPushAnalysisTaskListResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryPushAnalysisTaskListResponse.setRequestId(_ctx.stringValue("QueryPushAnalysisTaskListResponse.RequestId"));<NEW_LINE>queryPushAnalysisTaskListResponse... | + "].List[" + j + "].GmtCreate")); |
147,093 | private void createOrUpdateBpartnerProduct(@NonNull final JsonRequestBPartnerProductUpsert jsonRequestBPartnerProductUpsert, @NonNull final SyncAdvise effectiveSyncAdvise, @NonNull final ProductId productId, @NonNull final String orgCode) {<NEW_LINE>final ExternalIdentifier externalIdentifier = ExternalIdentifier.of(js... | ).setParameter("effectiveSyncAdvise", effectiveSyncAdvise); |
1,709,877 | private void updateIfNeeded(@NonNull final Project project, @NonNull final AntBuildExtender extender) {<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("project", project);<NEW_LINE>// NOI18N<NEW_LINE>Parameters.notNull("extender", extender);<NEW_LINE>if (extender.getExtension(J2SEDeployProperties.getCurrentExtensionNam... | extension = extender.getExtension(oldExt); |
1,111,296 | private void initialize() {<NEW_LINE>visualizer.setDecoration(new IconValidationDecorator());<NEW_LINE>viewModel = new SharedDatabaseLoginDialogViewModel(frame, dialogService, preferencesService);<NEW_LINE>databaseType.getItems().addAll(DBMSType.values());<NEW_LINE>databaseType.getSelectionModel().select(0);<NEW_LINE>d... | bindBidirectional(viewModel.serverTimezoneProperty()); |
1,175,141 | private void deleteProjects(Session session) {<NEW_LINE>LOGGER.trace("Project deleting");<NEW_LINE>var projectDeleteQuery = session.createQuery("FROM ProjectEntity pr WHERE pr.deleted = :deleted ");<NEW_LINE>projectDeleteQuery.setParameter(DELETED_KEY, true);<NEW_LINE>projectDeleteQuery.setMaxResults(this.recordUpdateL... | deletedExperimentQuery = session.createQuery(updateDeletedStatusExperimentQueryString); |
1,718,252 | public void main() {<NEW_LINE>startif(new Condition(uSegments, Operator.GREATER_THAN, 0f));<NEW_LINE>{<NEW_LINE>// translate from texture to orthagonal coordinates<NEW_LINE>RVec2 delta = new RVec2("delta");<NEW_LINE>delta.assign(vTextureCoord.multiply(2f).subtract(1f));<NEW_LINE>// multiply the mapping angle to compres... | , Operator.LESS_THAN, 0)); |
770,211 | // B.3 pg 62<NEW_LINE>public ECPoint twice() {<NEW_LINE>if (this.isInfinity()) {<NEW_LINE>return this;<NEW_LINE>}<NEW_LINE>ECCurve curve = this.getCurve();<NEW_LINE>SecP160R2FieldElement Y1 = (SecP160R2FieldElement) this.y;<NEW_LINE>if (Y1.isZero()) {<NEW_LINE>return curve.getInfinity();<NEW_LINE>}<NEW_LINE>SecP160R2Fi... | SecP160R2Field.reduce32(c, M); |
1,641,821 | public Response renderForm(MultivaluedMap<String, String> formData, List<FormMessage> errors) {<NEW_LINE>String executionId = formExecution.getId();<NEW_LINE>processor.getAuthenticationSession().setAuthNote(AuthenticationProcessor.CURRENT_AUTHENTICATION_EXECUTION, executionId);<NEW_LINE>String code = processor.generate... | actionUrl = getActionUrl(executionId, code); |
57,009 | public CcCompilationContext createCcCompilationContext(Object headers, Object systemIncludes, Object includes, Object quoteIncludes, Object frameworkIncludes, Object defines, Object localDefines, Sequence<?> directTextualHdrs, Sequence<?> directPublicHdrs, Sequence<?> directPrivateHdrs, Object purposeNoneable, Starlark... | class, "direct_textual_headers").getImmutableList(); |
595,036 | private // Copies schemas from searchdefinitions/ to schemas/ if searchdefinitions/ exists<NEW_LINE>void moveSearchDefinitionsToSchemasDir(java.nio.file.Path applicationDir) throws IOException {<NEW_LINE>File schemasDir = applicationDir.resolve(ApplicationPackage.SCHEMAS_DIR.getRelative()).toFile();<NEW_LINE>File sdDir... | ] sdFiles = sdDir.listFiles(); |
354,158 | public void start(Stage stage) {<NEW_LINE>this.stage = stage;<NEW_LINE>WorkspaceWindow workspaceWindow = new WorkspaceWindow();<NEW_LINE>workspaceWindow.readFromFile();<NEW_LINE>if (WorkspaceWindow.getWorkspace() == null) {<NEW_LINE>workspaceWindow.show(null);<NEW_LINE>}<NEW_LINE>if (WorkspaceWindow.getWorkspace() == n... | getStage().setMaximized(true); |
1,656,588 | public ServiceResponse serviceImpl(Query call, HttpServletResponse response, Authorization authorization, final JsonObjectWithDefault permissions) throws APIException {<NEW_LINE>if (call.get("redirect_link", null) == null || call.get("image_name", null) == null) {<NEW_LINE>throw new APIException(400, "Bad Request. No e... | .get("redirect_link") + " successfully !"); |
326,807 | private void processModifiedFunctionNamespace(long id, Symbol mySym, Symbol resultSym) {<NEW_LINE>// default thunks may lie about their namespace<NEW_LINE>Namespace // default thunks may lie about their namespace<NEW_LINE>myNs = isDefaultThunk(mySym) ? mySym.getProgram().getGlobalNamespace() : mySym.getParentNamespace(... | binarySearch(latestRenameIDs, id) >= 0; |
854,163 | public void marshall(CreateDistributionRequest createDistributionRequest, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (createDistributionRequest == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(createDis... | createDistributionRequest.getCacheBehaviors(), CACHEBEHAVIORS_BINDING); |
899,361 | public void errorResponse(byte[] err, @NotNull AbstractService service) {<NEW_LINE>MySQLResponseService responseService = (MySQLResponseService) service;<NEW_LINE>boolean executeResponse = responseService.syncAndExecute();<NEW_LINE>if (executeResponse) {<NEW_LINE><MASK><NEW_LINE>} else {<NEW_LINE>responseService.getCon... | session.releaseConnectionIfSafe(responseService, false); |
1,831,231 | protected void encodeEvents(FacesContext context, Schedule schedule) throws IOException {<NEW_LINE>String clientId = schedule.getClientId(context);<NEW_LINE>ScheduleModel model = schedule.getValue();<NEW_LINE>Map<String, String> params = context<MASK><NEW_LINE>if (model instanceof LazyScheduleModel) {<NEW_LINE>String s... | .getExternalContext().getRequestParameterMap(); |
1,113,856 | public com.squareup.okhttp.Call throttlingBlacklistConditionIdGetAsync(String conditionId, String ifNoneMatch, String ifModifiedSince, final ApiCallback<BlockingCondition> callback) throws ApiException {<NEW_LINE>ProgressResponseBody.ProgressListener progressListener = null;<NEW_LINE>ProgressRequestBody.ProgressRequest... | onUploadProgress(bytesWritten, contentLength, done); |
614,457 | public Void visit(SqlDataTypeSpec type) {<NEW_LINE>if (type.getTypeNameSpec() instanceof SqlUserDefinedTypeNameSpec) {<NEW_LINE>SqlIdentifier typeName = type.getTypeName();<NEW_LINE>if (HazelcastTypeUtils.isObjectIdentifier(typeName)) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>}<NEW_LINE>if (HazelcastTypeUtils.isJsonI... | (typeName.getName())); |
1,807,130 | public void marshall(DocumentVersionMetadata documentVersionMetadata, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (documentVersionMetadata == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(documentVersion... | documentVersionMetadata.getStatus(), STATUS_BINDING); |
613,518 | private // Returns 'true' if mapping available 'false' otherwise<NEW_LINE>boolean mapAlgName() {<NEW_LINE>if (AlgNameMapper.isOID(this.algName)) {<NEW_LINE>// OID provided to the ctor<NEW_LINE>// get rid of possible leading "OID."<NEW_LINE>this.oid = AlgNameMapper.normalize(this.algName);<NEW_LINE>// try to find mappin... | AlgNameMapper.map2OID(this.algName); |
1,774,757 | private DefaultActionGroup createPopupActionGroup() {<NEW_LINE>final LayoutTree tree = myLayoutTreeComponent.getLayoutTree();<NEW_LINE>DefaultActionGroup popupActionGroup = new DefaultActionGroup();<NEW_LINE>popupActionGroup.add(createAddGroup());<NEW_LINE>final RemovePackagingElementAction removeAction = new RemovePac... | add(new ExtractArtifactAction(this)); |
676,963 | public void receiveFileInfo(List<String> phase1FileNames, List<Long> phase1FileSizes, List<String> phase1ExistingFileNames, List<Long> phase1ExistingFileSizes, int totalTranslogOps, ActionListener<Void> listener) {<NEW_LINE>final String action = PeerRecoveryTargetService.Actions.FILES_INFO;<NEW_LINE>RecoveryFilesInfoRe... | map(listener, r -> null); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.