idx int32 46 1.86M | input stringlengths 321 6.6k | target stringlengths 9 1.24k |
|---|---|---|
1,066,987 | protected void collectOperations(final TemplateOperation ops, Map<String, Object> params) {<NEW_LINE>params.putAll(templateParams);<NEW_LINE>String name = (<MASK><NEW_LINE>String packageBase = (String) params.get(PROP_PACKAGE_BASE);<NEW_LINE>File loc = (File) params.get(CommonProjectActions.PROJECT_PARENT_FOLDER);<NEW_... | String) params.get(PROP_NAME); |
1,729,830 | private static void addRenderTreeNode(final LayoutState layoutState, final RenderTreeNode node, final LithoRenderUnit unit, final LayoutOutput layoutOutput, @OutputUnitType final int type, @Nullable final TransitionId transitionId, @Nullable final RenderTreeNode parent) {<NEW_LINE>if (parent != null) {<NEW_LINE>parent.... | .getId()) : null); |
1,373,203 | private static RelNode createFullIndexScan(FullScanLogicalRel scan, MapTableIndex index, List<Boolean> ascs, boolean nonEmptyCollation) {<NEW_LINE>assert isIndexSupported(index);<NEW_LINE>RexNode scanFilter = OptUtils.extractHazelcastTable(scan).getFilter();<NEW_LINE>RelTraitSet traitSet = OptUtils.toPhysicalConvention... | originalHazelcastTable = OptUtils.extractHazelcastTable(scan); |
175,719 | private <T> T[] readObjectArrayField(@Nonnull String fieldName, FieldType fieldType, Function<Integer, T[]> constructor, Reader<ObjectDataInput, T> reader) throws IOException {<NEW_LINE>int currentPos = in.position();<NEW_LINE>try {<NEW_LINE>int <MASK><NEW_LINE>in.position(position);<NEW_LINE>int len = in.readInt();<NE... | position = readPosition(fieldName, fieldType); |
1,436,465 | public static Memory bcsqrt(Environment env, Memory operand, int scale) {<NEW_LINE>BigDecimal value = toBigDecimal(operand);<NEW_LINE>int compareToZero = value.compareTo(BigDecimal.ZERO);<NEW_LINE>if (compareToZero < 0) {<NEW_LINE>return Memory.NULL;<NEW_LINE>} else if (compareToZero == 0) {<NEW_LINE>return new StringM... | guess = guess.add(lastGuess); |
1,042,616 | protected BrokeredIdentityContext extractIdentity(AccessTokenResponse tokenResponse, String accessToken, JsonWebToken idToken) throws IOException {<NEW_LINE>SimpleHttp.Response response = null;<NEW_LINE>int status = 0;<NEW_LINE>for (int i = 0; i < 10; i++) {<NEW_LINE>try {<NEW_LINE>String userInfoUrl = getUserInfoUrl()... | id = getJsonProperty(profile, "id"); |
673,526 | public boolean process() {<NEW_LINE>int numViews = depths.numRows;<NEW_LINE>int numFeatures = depths.numCols;<NEW_LINE>P.reshape(3 * numViews, 4);<NEW_LINE>X.reshape(4, numFeatures);<NEW_LINE>A.<MASK><NEW_LINE>B.reshape(numViews * 3, numFeatures);<NEW_LINE>// Scale depths so that they are close to unity<NEW_LINE>normal... | reshape(numViews * 3, numFeatures); |
1,084,036 | private void computeAttributeList(Set<AttributeSet> attrsSet) {<NEW_LINE>final var attrSet = new LinkedHashSet<Attribute<?>>();<NEW_LINE>final var sit = attrsSet.iterator();<NEW_LINE>if (sit.hasNext()) {<NEW_LINE>final var first = sit.next();<NEW_LINE>attrSet.addAll(first.getAttributes());<NEW_LINE>while (sit.hasNext()... | var next = sit.next(); |
1,084,292 | public void execute(LuckPermsPlugin plugin, Sender sender, PermissionHolder target, ArgumentList args, String label, CommandPermission permission) throws CommandException {<NEW_LINE>if (ArgumentPermissions.checkModifyPerms(plugin, sender, permission, target)) {<NEW_LINE>Message.COMMAND_NO_PERMISSION.send(sender);<NEW_L... | Message.COMMAND_NO_PERMISSION.send(sender); |
253,647 | private String encrypt(String random, String plaintext) throws DingTalkEncryptException {<NEW_LINE>try {<NEW_LINE>byte[] randomBytes = random.getBytes(CHARSET);<NEW_LINE>byte[] plainTextBytes = plaintext.getBytes(CHARSET);<NEW_LINE>byte[] lengthByte = Utils.int2Bytes(plainTextBytes.length);<NEW_LINE>byte[] corpidBytes ... | this.corpId.getBytes(CHARSET); |
811,613 | public void run() {<NEW_LINE>LOGGER.fine("Worker for " + text + " - started " + (System.currentTimeMillis() - createTime) + " ms.");<NEW_LINE>types = getSymbolNames(text);<NEW_LINE>if (isCanceled) {<NEW_LINE>LOGGER.fine("Worker for " + text + " exited after cancel " + (System.currentTimeMillis<MASK><NEW_LINE>return;<NE... | () - createTime) + " ms."); |
534,549 | public void afterDeleteIpRange(IpRangeInventory ipRange) {<NEW_LINE>Map<String, String> dhcpServerIpMap = getExistingDhcpServerIp(ipRange.getL3NetworkUuid(), ipRange.getIpVersion());<NEW_LINE>boolean ipRangeExisted = Q.New(NormalIpRangeVO.class).eq(NormalIpRangeVO_.l3NetworkUuid, ipRange.getL3NetworkUuid()).eq(NormalIp... | ), entry.getValue()); |
1,108,550 | private void sendPrimaryCommand(String pin, String function) {<NEW_LINE>String cmd = CaddxBindingConstants.PARTITION_PRIMARY_COMMAND_WITH_PIN;<NEW_LINE>// Build the data<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append("0x").append(pin.charAt(1)).append(pin.charAt(0)).append(",0x").append(pin.charAt(... | cmd, sb.toString()); |
528,605 | private List<ChatMessage> flattenTree(ChatMessage head, Map<ChatMessage, Object> next_map, int num_messages) {<NEW_LINE>if (num_messages <= 0) {<NEW_LINE>// fail safe in case for some reason we end up in a loop<NEW_LINE>return (new ArrayList<>());<NEW_LINE>}<NEW_LINE>List<ChatMessage> chain = new ArrayList<>(num_messag... | = (List<ChatMessage>) entry; |
1,000,470 | final ListAssistantsResult executeListAssistants(ListAssistantsRequest listAssistantsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listAssistantsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(Field.... | invoke(request, responseHandler, executionContext); |
1,538,416 | private void inflateAchievements(Achievements achievements) {<NEW_LINE>imagesUsedByWikiProgressBar.setVisibility(View.VISIBLE);<NEW_LINE>thanksReceived.setText(String.valueOf(achievements.getThanksReceived()));<NEW_LINE>imagesUsedByWikiProgressBar.setProgress(100 * achievements.getUniqueUsedImages() / levelInfo.getMaxU... | string.level).toUpperCase(); |
1,531,667 | private MethodHolder createMethodThrowingSecurityException(MethodDescriptor desc) {<NEW_LINE>MethodHolder method = new MethodHolder(desc);<NEW_LINE>Program program = new Program();<NEW_LINE>for (int i = 0; i < desc.parameterCount(); ++i) {<NEW_LINE>program.createVariable();<NEW_LINE>}<NEW_LINE>program.createVariable();... | Variable var = program.createVariable(); |
31,714 | final GetExternalModelsResult executeGetExternalModels(GetExternalModelsRequest getExternalModelsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getExternalModelsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.st... | false), new GetExternalModelsResultJsonUnmarshaller()); |
296,340 | protected void commit() {<NEW_LINE>Presentations presentations = component.getPresentations();<NEW_LINE>Document doc = DocumentHelper.createDocument();<NEW_LINE>doc.setRootElement(doc.addElement("presentation"));<NEW_LINE>component.saveSettings(doc.getRootElement());<NEW_LINE>String xml = Dom4j.writeDocument(doc, false... | setDefault(defaultField.getValue()); |
1,122,815 | private List<DataMediaPair> doToModel(List<DataMediaPairDO> dataMediaPairDos) {<NEW_LINE>List<Long> dataMediaPairIds = new ArrayList<Long>();<NEW_LINE>for (DataMediaPairDO dataMediaPairDo : dataMediaPairDos) {<NEW_LINE>dataMediaPairIds.<MASK><NEW_LINE>}<NEW_LINE>Map<Long, List<ColumnPair>> columnPairMap = dataColumnPai... | add(dataMediaPairDo.getId()); |
501,982 | protected void writeIndexGen(final RepositoryData repositoryData, final long repositoryStateId) throws IOException {<NEW_LINE>// can not write to a read only repository<NEW_LINE>assert isReadOnly() == false;<NEW_LINE>final long currentGen = latestIndexBlobId();<NEW_LINE>if (repositoryStateId != SnapshotsInProgress.UNDE... | snapshotsToXContent(builder, ToXContent.EMPTY_PARAMS); |
1,211,486 | public FileFormatDescriptor unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>FileFormatDescriptor fileFormatDescriptor = new FileFormatDescriptor();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>int targe... | ().unmarshall(context)); |
1,757,875 | private boolean matchLesserEqual(Object item, Filter filter) {<NEW_LINE>Comparable comparable = ((LesserEqualFilter) filter).getComparable();<NEW_LINE>if (item instanceof Number && comparable instanceof Number) {<NEW_LINE>return compare((Number) item, (Number) comparable) <= 0;<NEW_LINE>} else if (item instanceof Compa... | throw new FilterException(item + " is not comparable"); |
1,717,248 | public static void main(String[] args) throws IOException, ClassNotFoundException {<NEW_LINE>String dvmodelFile = null;<NEW_LINE>String lexparserFile = null;<NEW_LINE>String testTreebankPath = null;<NEW_LINE>FileFilter testTreebankFilter = null;<NEW_LINE>List<String> unusedArgs = new ArrayList<>();<NEW_LINE>for (int ar... | testTreebank.size() + " trees for testing"); |
399,524 | protected TableRecords buildTableRecords(Map<String, List<Object>> pkValuesMap) throws SQLException {<NEW_LINE>SQLInsertRecognizer recognizer = (SQLInsertRecognizer) sqlRecognizer;<NEW_LINE>List<String> pkColumnNameList = getTableMeta().getPrimaryKeyOnlyName();<NEW_LINE><MASK><NEW_LINE>StringBuilder suffix = new String... | StringBuilder prefix = new StringBuilder("SELECT "); |
899,141 | private void addNpmPackageGeneration() {<NEW_LINE>if (additionalProperties.containsKey(NPM_REPOSITORY)) {<NEW_LINE>this.setNpmRepository(additionalProperties.get(NPM_REPOSITORY).toString());<NEW_LINE>}<NEW_LINE>// Files for building our lib<NEW_LINE>supportingFiles.add(new SupportingFile("README.mustache", "", "README.... | ("tsconfig.mustache", "", "tsconfig.json")); |
1,150,714 | public void run(RegressionEnvironment env) {<NEW_LINE>String eplCreateInlined = "@name('clazz') @public create " + INLINEDCLASS_PREFIXMAP + ";\n";<NEW_LINE>RegressionPath path = new RegressionPath();<NEW_LINE>env.compile(eplCreateInlined, path);<NEW_LINE>String epl = "@public @buseventtype create schema PersonEvent(nam... | makeSendPerson(env, "Andras", "P2"); |
1,178,507 | public JimfsPath toRealPath(JimfsPath path, PathService pathService, Set<? super LinkOption> options) throws IOException {<NEW_LINE>checkNotNull(path);<NEW_LINE>checkNotNull(options);<NEW_LINE>store.readLock().lock();<NEW_LINE>try {<NEW_LINE>DirectoryEntry entry = lookUp(path, options).requireExists(path);<NEW_LINE>Lis... | names = new ArrayList<>(); |
1,240,100 | public static UnixMountInfo parseMountInfo(String line) {<NEW_LINE>// Example mount lines:<NEW_LINE>// ramfs on /mnt/ramdisk type ramfs (rw,relatime,size=1gb)<NEW_LINE>// map -hosts on /net (autofs, nosuid, automounted, nobrowse)<NEW_LINE>UnixMountInfo.Builder builder = new UnixMountInfo.Builder();<NEW_LINE>// First ge... | match = matcher.group(1); |
1,098,735 | private static URI findArtefactURI(Collection<String> repositoryURIs, String relativeURIString) throws URISyntaxException {<NEW_LINE>final String[] archiveTypes = new String[] { ".jar", ".war", ".ear", ".rar" };<NEW_LINE>// For each URI...<NEW_LINE>for (String repositoryURI : repositoryURIs) {<NEW_LINE>URI artefactURI ... | log(Level.WARNING, "Error setting request method to \"HEAD\""); |
590,459 | private CompletableFuture<List<Wo>> listFuture(String flag) {<NEW_LINE>return CompletableFuture.supplyAsync(() -> {<NEW_LINE>List<Wo> wos = new ArrayList<>();<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>Business business = new Business(emc);<NEW_LINE>List<Rea... | job().findWithWork(flag); |
1,265,188 | //<NEW_LINE>"LogNotTimber", //<NEW_LINE>"StringFormatInTimber", //<NEW_LINE>"ThrowableNotAtBeginning", //<NEW_LINE>"BinaryOperationInTimber", //<NEW_LINE>"TimberArgCount", //<NEW_LINE>"TimberArgTypes", //<NEW_LINE>"TimberTagLength", "TimberExceptionLogging" })<NEW_LINE>//<NEW_LINE>@Override<NEW_LINE>protected void onCr... | d("%s", "arg0", "arg1"); |
70,683 | private static Arguments parse(final String[] args) {<NEW_LINE>boolean help = false;<NEW_LINE>int port = -1;<NEW_LINE>for (final String arg : args) {<NEW_LINE>if ("help".equals(arg)) {<NEW_LINE>help = true;<NEW_LINE>continue;<NEW_LINE>}<NEW_LINE>final String[] splitOnEquals = arg.split("=");<NEW_LINE>if (splitOnEquals.... | .format("Empty argument value in '%s'", arg)); |
294,045 | public void addProbeInfo(ProbeMode mode, IProbeInfo probeInfo, Player player, Level world, BlockState blockState, IProbeHitData data) {<NEW_LINE>BlockEntity te = world.getBlockEntity(data.getPos());<NEW_LINE>if (te instanceof IEBlockInterfaces.IConfigurableSides && data.getSideHit() != null) {<NEW_LINE><MASK><NEW_LINE>... | boolean flip = player.isShiftKeyDown(); |
1,317,852 | public void flush(int deviceIndex) {<NEW_LINE>SPIRVLevelZeroCommandQueue spirvCommandQueue = commandQueues.get(deviceIndex);<NEW_LINE>LevelZeroCommandList commandList = spirvCommandQueue.getCommandList();<NEW_LINE>LevelZeroCommandQueue commandQueue = spirvCommandQueue.getCommandQueue();<NEW_LINE>// Close the command li... | commandList.getCommandListHandler(), null); |
182,832 | ActionResult<Wo> execute(EffectivePerson effectivePerson, JsonElement jsonElement) throws Exception {<NEW_LINE>logger.debug(effectivePerson, "jsonElement:{}.", jsonElement);<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> <MASK><NEW_LINE>Wi wi = ... | result = new ActionResult<>(); |
214,221 | private void findPaths(Map<String, org.openapi4j.parser.model.v3.Path> result, String path, List<String> params) {<NEW_LINE>if (get != null) {<NEW_LINE>//<NEW_LINE>Operation //<NEW_LINE>operation = //<NEW_LINE>new Operation().//<NEW_LINE>setOperationId(//<NEW_LINE>get.getOperationId()).//<NEW_LINE>setSummary(//<NEW_LIN... | get.getSchema()))); |
1,681,339 | public static QueryTrademarkMonitorResultsResponse unmarshall(QueryTrademarkMonitorResultsResponse queryTrademarkMonitorResultsResponse, UnmarshallerContext _ctx) {<NEW_LINE>queryTrademarkMonitorResultsResponse.setRequestId(_ctx.stringValue("QueryTrademarkMonitorResultsResponse.RequestId"));<NEW_LINE>queryTrademarkMoni... | ("QueryTrademarkMonitorResultsResponse.Data[" + i + "].RuleId")); |
1,340,035 | private boolean validate(ActionReport actionReport) {<NEW_LINE>boolean result = false;<NEW_LINE>if (startPort != null) {<NEW_LINE>try {<NEW_LINE>int port = Integer.parseInt(startPort);<NEW_LINE>if (port < 0 || port > Short.MAX_VALUE * 2) {<NEW_LINE>actionReport.failure(logger, "start port must be greater than zero or l... | address = InetAddress.getByName(multiCastGroup); |
1,486,933 | public void acceptEx(Configuration configuration) throws Exception {<NEW_LINE>try {<NEW_LINE>configuration.setBoolean(FileInputFormat.INPUT_DIR_NONRECURSIVE_IGNORE_SUBDIRS, true);<NEW_LINE>configuration.<MASK><NEW_LINE>configuration.setBoolean(HadoopSources.SHARED_LOCAL_FS, fsc.isSharedFileSystem());<NEW_LINE>configura... | setBoolean(FileInputFormat.INPUT_DIR_RECURSIVE, false); |
1,763,367 | private int deflateInit(int level, int method, int windowBits, int memLevel, int strategy) {<NEW_LINE>int wrap = 1;<NEW_LINE>// byte[] my_version=ZLIB_VERSION;<NEW_LINE>//<NEW_LINE>// if (version == null || version[0] != my_version[0]<NEW_LINE>// || stream_size != sizeof(z_stream)) {<NEW_LINE>// return Z_VERSION_ERROR;... | + MIN_MATCH - 1) / MIN_MATCH); |
877,222 | private static int maxLiteralLengthModulus(int n) {<NEW_LINE>int m = (n & 0xC1F07C1F) + ((n >>> 5) & 0xC1F07C1F);<NEW_LINE>m = (m >>> 15) + (m & 0x00007FFF);<NEW_LINE>if (m <= 31) {<NEW_LINE>return m == 31 ? 0 : m;<NEW_LINE>}<NEW_LINE>m = (m >>> <MASK><NEW_LINE>if (m <= 31) {<NEW_LINE>return m == 31 ? 0 : m;<NEW_LINE>}... | 5) + (m & 0x0000001F); |
1,770,475 | private Optional<LiteSession> initSession(String modelPath, MSConfig msConfig, boolean isDynamicInferModel) {<NEW_LINE>if (modelPath == null) {<NEW_LINE>logger.severe(Common.addTag("modelPath cannot be empty"));<NEW_LINE>return Optional.empty();<NEW_LINE>}<NEW_LINE>// only lite session support dynamic shape<NEW_LINE>if... | + modelPath + " ,please check model is valid or disk" + "space is enough,please check lite log for detail.")); |
283,953 | protected static double regularizedIncBetaQuadrature(double alpha, double beta, double x) {<NEW_LINE>final double alphapbeta = alpha + beta, a1 = alpha - 1.0, b1 = beta - 1.0;<NEW_LINE>final double mu = alpha / alphapbeta;<NEW_LINE>final double lnmu = FastMath.log(mu), lnmuc = FastMath.log1p(-mu);<NEW_LINE>double t = M... | , x + 5.0 * t)); |
204,055 | private void createChangedDatatypesFromArchive(List<DataTypeSyncInfo> list, Set<DataTypeSyncInfo> set) {<NEW_LINE>DataTypeManager dtm = program.getDataTypeManager();<NEW_LINE>StandAloneDataTypeManager sourceDTM = new StandAloneDataTypeManager("MyArhcive");<NEW_LINE>StructureDataType sdt1 = new StructureDataType("MyData... | sourceDTM.addDataType(sdt2, null); |
430,582 | Object doCached(Method.MethodVersion method, Object receiver, Object[] arguments, @Cached("method") Method.MethodVersion cachedMethod, @Cached("createToEspresso(method.getMethod().getParameterCount())") ToEspressoNode[] toEspressoNodes, @Cached(value = "createDirectCallNode(method.getMethod().getCallTargetForceInit())"... | ] convertedArguments = new Object[expectedArity]; |
797,651 | protected Pair<JavaRDD<String>, JavaRDD<String>> splitNewDataToTrainTest(JavaRDD<String> newData) {<NEW_LINE>// Rough approximation; assumes timestamps are fairly evenly distributed<NEW_LINE>StatCounter maxMin = newData.mapToDouble(line -> MLFunctions.TO_TIMESTAMP_FN.call(line).doubleValue()).stats();<NEW_LINE>long min... | ) * (maxTime - minTime)); |
720,739 | public void onUpdate() {<NEW_LINE>// abort if using IDNuker without an ID being set<NEW_LINE>if (mode.getSelected() == Mode.ID && id.getBlock() == Blocks.AIR)<NEW_LINE>return;<NEW_LINE>ClientPlayerEntity player = MC.player;<NEW_LINE>currentBlock = null;<NEW_LINE>Vec3d eyesPos = RotationUtils.getEyesPos().subtract(0.5, ... | .getInteractionManager().getCurrentBreakingProgress(); |
1,128,176 | int addSlots() {<NEW_LINE>if (this.equipmentSlot == EquipmentSlot.MAINHAND || this.equipmentSlot == EquipmentSlot.OFFHAND) {<NEW_LINE>int bullets0 = ((IBulletContainer) (heldItem).getItem()).getBulletCount(heldItem);<NEW_LINE>this.secondHand = this.equipmentSlot == EquipmentSlot.MAINHAND ? EquipmentSlot.OFFHAND : Equip... | ()).getBulletCount(secondRevolver); |
1,476,140 | private boolean artifactIsDirtyWithDirectSystemCalls(ImmutableSet<PathFragment> knownModifiedOutputFiles, boolean trustRemoteArtifacts, Map.Entry<? extends Artifact, FileArtifactValue> entry, ModifiedOutputsReceiver modifiedOutputsReceiver) {<NEW_LINE>Artifact file = entry.getKey();<NEW_LINE>FileArtifactValue lastKnown... | FOLLOW) : -1, file); |
1,426,016 | final ListUseCasesResult executeListUseCases(ListUseCasesRequest listUseCasesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listUseCasesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<ListUseCasesRequest> ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
1,848,281 | private void addStandardDependencies(BuildScriptBuilder buildScriptBuilder, boolean constraintsDefined) {<NEW_LINE>if (getLanguage() == Language.GROOVY) {<NEW_LINE>String groovyVersion = libraryVersionProvider.getVersion("groovy");<NEW_LINE>String groovyAllCoordinates = groovyGroupName(groovyVersion) + ":" + (constrain... | buildScriptBuilder.implementationDependency("Use the Kotlin JDK 8 standard library.", "org.jetbrains.kotlin:kotlin-stdlib-jdk8"); |
1,781,563 | private static void cnormalize30(int len30, int condNegate, int[] D, int[] M) {<NEW_LINE>// assert len30 > 0;<NEW_LINE>// assert D.length >= len30;<NEW_LINE>// assert M.length >= len30;<NEW_LINE>int last = len30 - 1;<NEW_LINE>{<NEW_LINE>int c = 0, condAdd = D[last] >> 31;<NEW_LINE>for (int i = 0; i < last; ++i) {<NEW_L... | D[i] = c & M30; |
1,234,915 | public Vector3d correctMovement(Vector3d movement, BoundingBox boundingBox, boolean onGround, double stepUp, boolean checkWorld) {<NEW_LINE>Vector3d adjustedMovement = movement;<NEW_LINE>if (!movement.equals(Vector3d.ZERO)) {<NEW_LINE>adjustedMovement = correctMovementForCollisions(movement, boundingBox, checkWorld);<N... | translate(0, maxStepUp, 0); |
1,090,282 | public DavaFlowSet<E> processASTWhileNode(ASTWhileNode node, DavaFlowSet<E> input) {<NEW_LINE>DavaFlowSet<E> lastin = null;<NEW_LINE>DavaFlowSet<<MASK><NEW_LINE>String label = getLabel(node);<NEW_LINE>DavaFlowSet<E> output = null;<NEW_LINE>input = processCondition(node.get_Condition(), input);<NEW_LINE>if (DEBUG_WHILE)... | E> initialInput = cloneFlowSet(input); |
649,112 | public void onActivityResult(Activity a, int requestCode, int resultCode, Intent data) {<NEW_LINE>final ActivityEventListener ael = this;<NEW_LINE>mStripe.onSetupResult(requestCode, data, new ApiResultCallback<SetupIntentResult>() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void onSuccess(@NonNull SetupIntentResult ... | promise.reject(UNEXPECTED, "Unexpected error"); |
1,422,685 | public int updateAndIncrIfMatch(Entity<?> en, final Object obj, FieldFilter fieldFilter, String fieldName) {<NEW_LINE>final EntityOperator opt = _opt(en);<NEW_LINE>if (null == opt)<NEW_LINE>return 0;<NEW_LINE>if (fieldName == null)<NEW_LINE>fieldName = "version";<NEW_LINE>if (fieldFilter == null)<NEW_LINE>fieldFilter =... | "^" + fieldName + "$", false); |
879,778 | public static DescribeDomainMultiUsageDataResponse unmarshall(DescribeDomainMultiUsageDataResponse describeDomainMultiUsageDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainMultiUsageDataResponse.setRequestId(_ctx.stringValue("DescribeDomainMultiUsageDataResponse.RequestId"));<NEW_LINE>describeDomainMult... | (_ctx.stringValue("DescribeDomainMultiUsageDataResponse.StartTime")); |
573,547 | public A addAllToPreferredDuringSchedulingIgnoredDuringExecution(java.util.Collection<io.kubernetes.client.openapi.models.V1PreferredSchedulingTerm> items) {<NEW_LINE>if (this.preferredDuringSchedulingIgnoredDuringExecution == null) {<NEW_LINE>this.preferredDuringSchedulingIgnoredDuringExecution = new java.util.ArrayLi... | openapi.models.V1PreferredSchedulingTermBuilder>(); |
800,868 | final Run executeStartWorkflowExecution(StartWorkflowExecutionRequest startWorkflowExecutionRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(startWorkflowExecutionRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Requ... | awsRequestMetrics.startEvent(Field.ClientExecuteTime); |
487,873 | public static SocketAddress sockaddrFromBytes(Ruby runtime, byte[] val) throws IOException {<NEW_LINE>AddressFamily afamily = AddressFamily.valueOf(uint16(val[0], val[1]));<NEW_LINE>if (afamily == null || afamily == AddressFamily.__UNKNOWN_CONSTANT__) {<NEW_LINE>throw runtime.newArgumentError("can't resolve socket addr... | 2], val[3]); |
1,331,008 | public void translate(final ITranslationEnvironment environment, final IInstruction instruction, final List<ReilInstruction> instructions) throws InternalTranslationException {<NEW_LINE>TranslationHelpers.checkTranslationArguments(environment, instruction, instructions, "and");<NEW_LINE>final Triple<IOperandTree, IOper... | getAddress()).toLong(); |
6,542 | protected static void recover(MultiScopeRecoveryLog recoveryLog, ReadableLogRecord record, LogHandle logHandle, int storageMode, Lock controlLock) throws LogCorruptedException, InternalLogException {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>Tr.entry(tc, "recover", recoveryLog, record, logHandle, storageMode, controlL... | exit(tc, "recover", "InternalLogException"); |
616,485 | public static DescribeDomainUvDataResponse unmarshall(DescribeDomainUvDataResponse describeDomainUvDataResponse, UnmarshallerContext _ctx) {<NEW_LINE>describeDomainUvDataResponse.setRequestId(_ctx.stringValue("DescribeDomainUvDataResponse.RequestId"));<NEW_LINE>describeDomainUvDataResponse.setDomainName(_ctx.stringValu... | (_ctx.stringValue("DescribeDomainUvDataResponse.EndTime")); |
567,916 | public MissionProfileListItem unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>MissionProfileListItem missionProfileListItem = new MissionProfileListItem();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement();<NEW_LINE>i... | class).unmarshall(context)); |
691,765 | public ExportResult<SocialActivityContainerResource> export(UUID jobId, CookiesAndUrlAuthData authData, Optional<ExportInformation> exportInformation) throws Exception {<NEW_LINE>checkState(authData.getCookies().size() == 1, "Exactly 1 cookie expected: %s", authData.getCookies());<NEW_LINE>String maxId = null;<NEW_LINE... | statuses = utilities.getStatuses(maxId); |
1,219,822 | public void normalizeAll(ECPoint[] points, int off, int len, ECFieldElement iso) {<NEW_LINE>checkPoints(points, off, len);<NEW_LINE>switch(this.getCoordinateSystem()) {<NEW_LINE>case ECCurve.COORD_AFFINE:<NEW_LINE>case ECCurve.COORD_LAMBDA_AFFINE:<NEW_LINE>{<NEW_LINE>if (iso != null) {<NEW_LINE>throw new IllegalArgumen... | .normalize(zs[j]); |
396,699 | private void fillParameters(final Container[] containers) {<NEW_LINE>SwingUtilities.invokeLater(new Runnable() {<NEW_LINE><NEW_LINE>@Override<NEW_LINE>public void run() {<NEW_LINE>boolean autoscalePref = NbPreferences.forModule(ReportPanel.class).getBoolean(PREF_AUTOSCALE, containers[0].getUnloader().isAutoScale());<NE... | getUnloader().allowSelfLoop()); |
1,718,100 | public void publishRecall2ReceiversLocal(long messageUid, String operatorId, Collection<String> receivers, String exceptClientId) {<NEW_LINE>for (String user : receivers) {<NEW_LINE>Collection<Session> sessions = m_sessionsStore.sessionForUser(user);<NEW_LINE>for (Session targetSession : sessions) {<NEW_LINE>if (except... | setId(messageUid).build(); |
303,051 | protected void onCreate(final Bundle savedInstanceState) {<NEW_LINE>SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_map);<NEW_LINE>// noinspection ConstantConditions<NEW_LINE>setTheme(theme = UI.getThem... | findViewById(R.id.webView); |
1,452,672 | public List<DeptEmployee> searchByDepartmentQuery(String searchKey) {<NEW_LINE>CriteriaQuery<DeptEmployee> criteriaQuery = createCriteriaQuery(DeptEmployee.class);<NEW_LINE>Root<DeptEmployee> emp = criteriaQuery.from(DeptEmployee.class);<NEW_LINE>Subquery<Department> subquery = criteriaQuery.subquery(Department.class);... | )).value(subquery)); |
64,512 | public void absorbContent(ListIterator<Content> contentsIter) {<NEW_LINE>// This check prevents a repeater from getting added twice.<NEW_LINE>// This can happen in the following situation:<NEW_LINE>// RECTANGLE<NEW_LINE>// REPEATER 1<NEW_LINE>// FILL<NEW_LINE>// REPEATER 2<NEW_LINE>// In this case, the expected structu... | add(contentsIter.previous()); |
1,470,072 | public void run(RegressionEnvironment env) {<NEW_LINE>EPStatement[] statements = new EPStatement[5];<NEW_LINE>sendTimer(env, 1000);<NEW_LINE>statements[0] = env.compileDeploy("@name('stmtmetric') select * from " + StatementMetric.class.getName()).statement("stmtmetric");<NEW_LINE>statements[0].addListener(env.listenerN... | env, "E2", 2, CPUGOALONENANO); |
330,629 | protected Object[] asArray() {<NEW_LINE>E.checkState(this.name != null, "User name can't be null");<NEW_LINE>E.checkState(this.password != null, "User password can't be null");<NEW_LINE>List<Object> list = new ArrayList<>(18);<NEW_LINE>list.add(T.label);<NEW_LINE>list.add(P.USER);<NEW_LINE><MASK><NEW_LINE>list.add(this... | list.add(P.NAME); |
474,819 | public void handleTagNode(TagNode node, SpannableStringBuilder builder, int start, int end) {<NEW_LINE>if (isPre) {<NEW_LINE>StringBuffer buffer = new StringBuffer();<NEW_LINE>// fake padding top + make sure, pre is always by itself<NEW_LINE>buffer.append("\n");<NEW_LINE>getPlainText(buffer, node);<NEW_LINE>// fake pad... | builder.length(), SPAN_EXCLUSIVE_EXCLUSIVE); |
1,118,818 | public void onPlaceAutomaticallyClick(View v) {<NEW_LINE>if (mRequest.getRequestType() == PinItemRequest.REQUEST_TYPE_SHORTCUT) {<NEW_LINE>ShortcutInfo shortcutInfo = mRequest.getShortcutInfo();<NEW_LINE>ItemInstallQueue.INSTANCE.get(this).queueItem(shortcutInfo);<NEW_LINE>logCommand(LAUNCHER_ADD_EXTERNAL_ITEM_PLACED_A... | CharSequence label = shortcutInfo.getLongLabel(); |
475,379 | private void adjustIndexForCustomSchemaFilter(int count, PhyQueryOperation infoSchemaQuery, LogicalInfoSchemaContext infoSchemaContext) {<NEW_LINE>if (!infoSchemaContext.isCustomSchemaFilter() || count <= 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>// Adjust dynamic parameter index in the where clause<NEW_LINE>SqlBasicCa... | > params = infoSchemaQuery.getParam(); |
532,283 | public static void save(Properties properties, MetalTheme theme) {<NEW_LINE>log.config(CompiereColor.getDefaultBackground().toString());<NEW_LINE>//<NEW_LINE>properties.setProperty(P_Primary1, getColorAsString(theme.getPrimaryControlDarkShadow()));<NEW_LINE>properties.setProperty(P_Primary2, getColorAsString(theme.getP... | ()).toString()); |
1,558,167 | final DeleteOrganizationalUnitResult executeDeleteOrganizationalUnit(DeleteOrganizationalUnitRequest deleteOrganizationalUnitRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(deleteOrganizationalUnitRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetri... | endClientExecution(awsRequestMetrics, request, response); |
1,632,658 | final GetSMSAttributesResult executeGetSMSAttributes(GetSMSAttributesRequest getSMSAttributesRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getSMSAttributesRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEv... | GetSMSAttributesResult>(new GetSMSAttributesResultStaxUnmarshaller()); |
85,683 | private CompletableFuture<Void> writeSnapshotInfo(long snapshotId) {<NEW_LINE>return checkSnapshotFileExists(snapshotId).thenComposeAsync(v -> {<NEW_LINE>val info = SnapshotInfo.builder().snapshotId(snapshotId).epoch(epoch).build();<NEW_LINE>return snapshotInfoStore.writeSnapshotInfo(info).thenAcceptAsync(v1 -> {<NEW_L... | val oldSnapshotInfo = lastSavedSnapshotInfo.get(); |
219,068 | // prepareIt<NEW_LINE>private void checkCreditLimit() {<NEW_LINE>if (!isCheckCreditLimitNeeded()) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>final IBPartnerStatsDAO bpartnerStatsDAO = Services.get(IBPartnerStatsDAO.class);<NEW_LINE>final IBPartnerStatsBL bpartnerStatsBL = Services.get(IBPartnerStatsBL.class);<NEW_LINE>fina... | BPartnerId.ofRepoId(getC_BPartner_ID()); |
1,145,101 | public void saveScreenshot() {<NEW_LINE>// Since ScreenGrabber is initialized before DisplayResolutionDependentFbo (because the latter contains a reference to the former)<NEW_LINE>// on first call on saveScreenshot() displayResolutionDependentFBOs will be null.<NEW_LINE>if (displayResolutionDependentFBOs == null) {<NEW... | ByteBuffer buffer = sceneFinalFbo.getColorBufferRawData(); |
896,154 | public void write(AwtImage image, ImageMetadata metadata, OutputStream out) throws IOException {<NEW_LINE>if (image.awt().getType() == BufferedImage.TYPE_INT_ARGB) {<NEW_LINE>ImageInfo imi = new ImageInfo(image.width, image.height, 8, true);<NEW_LINE>ar.com.hjg.pngj.PngWriter writer = new ar.com.hjg.<MASK><NEW_LINE>wri... | pngj.PngWriter(out, imi); |
199,486 | public boolean filterCheck(Tag tag, String filter, boolean regex) {<NEW_LINE>String name;<NEW_LINE>if (filter.startsWith("g:")) {<NEW_LINE><MASK><NEW_LINE>name = tag.getGroup();<NEW_LINE>if (name == null) {<NEW_LINE>name = "";<NEW_LINE>}<NEW_LINE>} else if (filter.startsWith("p:")) {<NEW_LINE>filter = filter.substring(... | filter = filter.substring(2); |
1,112,135 | public static int compare(Object lhs, Object rhs) {<NEW_LINE>if (lhs == rhs) {<NEW_LINE>return 0;<NEW_LINE>} else // null is greater than any other type<NEW_LINE>if (lhs == Values.NO_VALUE || lhs == null) {<NEW_LINE>return 1;<NEW_LINE>} else if (rhs == Values.NO_VALUE || rhs == null) {<NEW_LINE>return -1;<NEW_LINE>} el... | TYPE_ID_COMPARATOR.compare(leftType, rightType); |
1,674,131 | public static double dotProduct(Long2DoubleMap v1, Long2DoubleMap v2) {<NEW_LINE>if (v1.size() > v2.size()) {<NEW_LINE>// compute dot product the other way around for speed<NEW_LINE>return dotProduct(v2, v1);<NEW_LINE>}<NEW_LINE>if (v1 instanceof Long2DoubleSortedArrayMap && v2 instanceof Long2DoubleSortedArrayMap) {<N... | ) v1, (Long2DoubleSortedArrayMap) v2); |
388,329 | public Builder mergeFrom(ai.onnx.proto.OnnxMl.TensorShapeProto other) {<NEW_LINE>if (other == ai.onnx.proto.OnnxMl.TensorShapeProto.getDefaultInstance())<NEW_LINE>return this;<NEW_LINE>if (dimBuilder_ == null) {<NEW_LINE>if (!other.dim_.isEmpty()) {<NEW_LINE>if (dim_.isEmpty()) {<NEW_LINE>dim_ = other.dim_;<NEW_LINE>bi... | this.mergeUnknownFields(other.unknownFields); |
1,036,740 | final ListTagsForResourceResult executeListTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(listTagsForResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequest... | HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden()); |
1,374,362 | final DetachLoadBalancerFromSubnetsResult executeDetachLoadBalancerFromSubnets(DetachLoadBalancerFromSubnetsRequest detachLoadBalancerFromSubnetsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(detachLoadBalancerFromSubnetsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionC... | invoke(request, responseHandler, executionContext); |
924,483 | public InstanceStatusEvent unmarshall(StaxUnmarshallerContext context) throws Exception {<NEW_LINE>InstanceStatusEvent instanceStatusEvent = new InstanceStatusEvent();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>int targetDepth = originalDepth + 1;<NEW_LINE>if (context.isStartOfDocument())<NEW_LINE... | ().unmarshall(context)); |
1,580,163 | protected void createRequisition(int AD_Org_ID, int PP_MRP_ID, MProduct product, BigDecimal QtyPlanned, Timestamp DemandDateStartSchedule, String trxName) throws AdempiereException, SQLException {<NEW_LINE>log.info("Create Requisition");<NEW_LINE>int duration = MPPMRP.getDurationDays(QtyPlanned, m_product_planning);<NE... | + " @Generate@ @from@ " + getName())); |
308,562 | protected String httpRequest(HttpMethod method, String url) throws ShellyApiException {<NEW_LINE>ShellyApiResult apiResult = new ShellyApiResult();<NEW_LINE>try {<NEW_LINE>Request request = httpClient.newRequest(url).method(method).timeout(SHELLY_API_TIMEOUT_MS, TimeUnit.MILLISECONDS);<NEW_LINE>request.header(HttpHeade... | contentResponse.getStatus(), response); |
1,508,587 | private void print3x3(AutoTypeImage src) {<NEW_LINE><MASK><NEW_LINE>String dataType = src.getDataType();<NEW_LINE>String sumType = src.getSumType();<NEW_LINE>out.print("\tpublic static void dense3x3( final " + src.getSingleBandName() + " input , final GrayU8 output ) {\n" + "\t\tfinal int height = input.height - 1;\n" ... | String bitwise = src.getBitWise(); |
137,029 | private boolean buildPayload(WsByteBuffer xmitBuffer) {<NEW_LINE>if (tc.isEntryEnabled())<NEW_LINE>SibTr.entry(this, tc, "buildPayload", xmitBuffer);<NEW_LINE>if (tc.isDebugEnabled())<NEW_LINE>JFapUtils.debugTraceWsByteBufferInfo(<MASK><NEW_LINE>boolean payloadFinished = false;<NEW_LINE>int amountCopied, amountToCopy;<... | this, tc, xmitBuffer, "xmitBuffer"); |
1,406,314 | private List<JRPrintElement> fillTitleCell(int availableHeight) throws JRException {<NEW_LINE>setCountVars(-1, -1);<NEW_LINE>JRFillCellContents cell = titleCellContents;<NEW_LINE>int width = rowHeadersXOffsets[rowGroups.length] + columnXOffsets[lastColumnIndex] - columnXOffsets[startColumnIndex];<NEW_LINE>cell = cell.g... | getContentsPosition(), CrosstabRowPositionEnum.TOP); |
116,580 | public static LineSegment2D_F32 convert(LineParametric2D_F32 l, int width, int height) {<NEW_LINE>LineParametric2D_F32 side = new LineParametric2D_F32();<NEW_LINE>side.p.setTo(0, 0);<NEW_LINE>side.slope.setTo(1, 0);<NEW_LINE>List<Point2D_F32> <MASK><NEW_LINE>Point2D_F32 a = new Point2D_F32();<NEW_LINE>if (null != Inter... | inside = new ArrayList<>(); |
1,380,277 | private void createEditor() {<NEW_LINE>editorComponent = new JPanel(new BorderLayout());<NEW_LINE>final OWLExpressionChecker<Set<OWLClassExpression>> checker = owlEditorKit.getModelManager().getOWLExpressionCheckerFactory().getOWLClassExpressionSetChecker();<NEW_LINE>expressionEditor = new <MASK><NEW_LINE>JPanel holder... | ExpressionEditor<>(owlEditorKit, checker); |
1,524,874 | public void run() {<NEW_LINE>Instant now = clock.now();<NEW_LINE>// Fetch new candidates for execution. Old ones still in ExecutorService will become stale and be discarded<NEW_LINE>final int executionsToFetch = upperLimit;<NEW_LINE>List<Execution> fetchedDueExecutions = taskRepository.getDue(now, executionsToFetch);<N... | Integer leftInBatch) -> leftInBatch <= lowerLimit); |
111,051 | private void loadDataFromMultiBucketsAggregation(@NonNull final KPIDataResult.Builder data, @NonNull final TimeRange timeRange, @NonNull final MultiBucketsAggregation aggregation) {<NEW_LINE>final String aggName = aggregation.getName();<NEW_LINE>for (final MultiBucketsAggregation.Bucket bucket : aggregation.getBuckets(... | extractKey(bucket, timeRange, groupByField); |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.