idx
int32
46
1.86M
input
stringlengths
321
6.6k
target
stringlengths
9
1.24k
257,002
protected void internalTransform(Body b, String phaseName, Map<String, String> options) {<NEW_LINE>if (b == null) {<NEW_LINE>throw new NullPointerException();<NEW_LINE>}<NEW_LINE>final Date start;<NEW_LINE>if (Options.v().verbose()) {<NEW_LINE>start = new Date();<NEW_LINE>logger.debug("[TypeAssigner] typing system star...
(jb)).inferTypes();
1,791,594
protected BitSet routeAndBuildPartBitSet(ExecutionContext context, PartPruneStepPruningContext pruningCtx, BitSet allPartBitSet) {<NEW_LINE>ComparisonKind[] cmpKindOutput = new ComparisonKind[1];<NEW_LINE>SearchDatumInfo finalVal = null;<NEW_LINE>try {<NEW_LINE>// Compute the const expr val for part predicate<NEW_LINE>...
matchLevel, partCount, subPartCount, true);
639,806
final GetTransitGatewayMulticastDomainAssociationsResult executeGetTransitGatewayMulticastDomainAssociations(GetTransitGatewayMulticastDomainAssociationsRequest getTransitGatewayMulticastDomainAssociationsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(getTransitGatewayMulticastDomainAsso...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
1,460,447
private TreeNode removeHelper(TreeNode subtreeRoot, TreeNode nodeToRemove) {<NEW_LINE>if (subtreeRoot == null) {<NEW_LINE>return null;<NEW_LINE>}<NEW_LINE>if (nodeToRemove.compareTo(subtreeRoot) < 0) {<NEW_LINE>subtreeRoot.left = removeHelper(subtreeRoot.left, nodeToRemove);<NEW_LINE>} else if (nodeToRemove.compareTo(s...
newSubtreeRoot = minimum(oldSubtreeRoot.right);
733,935
public void translate(ProxySession session, ServerEntityRemoveEffectPacket packet) {<NEW_LINE>CachedEntity cachedEntity = session.getEntityCache().getByRemoteId(packet.getEntityId());<NEW_LINE>if (cachedEntity == null) {<NEW_LINE>// log.warn("Cached entity is null");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>EntityEffectTra...
getEffects().remove(effect);
1,814,315
protected void onResume() {<NEW_LINE>super.onResume();<NEW_LINE>// CameraManager must be initialized here, not in onCreate(). This is necessary because we don't<NEW_LINE>// want to open the camera driver and measure the screen size if we're going to show the help on<NEW_LINE>// first launch. That led to bugs where the ...
Intents.Scan.WIDTH, 0);
1,692,525
public synchronized void purgeInactiveProducers() {<NEW_LINE>long minimumActiveTimestamp = System.currentTimeMillis() - TimeUnit.MINUTES.toMillis(pulsar.getConfiguration().getBrokerDeduplicationProducerInactivityTimeoutMinutes());<NEW_LINE>Iterator<java.util.Map.Entry<String, Long>> mapIterator = inactiveProducers<MASK...
.entrySet().iterator();
1,480,487
final TagResourceResult executeTagResource(TagResourceRequest tagResourceRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(tagResourceRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE><MASK><NEW_LINE>Request<TagResourceRequest> reques...
awsRequestMetrics.startEvent(Field.ClientExecuteTime);
1,177,277
public void onApplicationEvent(ConsumerMetricsCollectedEvent event) {<NEW_LINE>List<ConsumerMetrics> metricsList = event.getMetricsList();<NEW_LINE>if (ValidateUtils.isEmptyList(metricsList)) {<NEW_LINE>LOGGER.warn("produce consumer metrics failed, data is empty.");<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>TopicNameConfig ...
Long now = System.currentTimeMillis();
1,674,040
public UserIdentityConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>UserIdentityConfiguration userIdentityConfiguration = new UserIdentityConfiguration();<NEW_LINE>int originalDepth = context.getCurrentDepth();<NEW_LINE>String currentParentElement = context.getCurrentParentElement()...
class).unmarshall(context));
1,166,505
public static void main(String[] args) {<NEW_LINE>StaticBinding obj = new StaticBinding();<NEW_LINE>// "Adding integers" due to auto-boxing from int to Integer<NEW_LINE>obj.sum(2, 3);<NEW_LINE>// "Adding integers" due to exact parameter types<NEW_LINE>obj.sum(Integer.valueOf(2)<MASK><NEW_LINE>// "Adding integers" due t...
, Integer.valueOf(3));
1,408,664
private static List<MavenCoordinates> findCompileDependenciesFromManifest(ZipFile zipFile, ZipEntry zipEntry) throws MavenRepoGeneratorException {<NEW_LINE>List<MavenCoordinates> result = new ArrayList<MavenCoordinates>();<NEW_LINE>InputStream inputStream = null;<NEW_LINE>try {<NEW_LINE>inputStream = zipFile.getInputSt...
Attributes mainAttributes = manifest.getMainAttributes();
1,469,152
final DescribeBackupsResult executeDescribeBackups(DescribeBackupsRequest describeBackupsRequest) {<NEW_LINE>ExecutionContext executionContext = createExecutionContext(describeBackupsRequest);<NEW_LINE>AWSRequestMetrics awsRequestMetrics = executionContext.getAwsRequestMetrics();<NEW_LINE>awsRequestMetrics.startEvent(F...
HandlerContextKey.ENDPOINT_OVERRIDDEN, isEndpointOverridden());
80,313
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, String workId) throws Exception {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wo wo = new Wo();<NEW_LINE>String executorSeed = null;<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<...
task, taskCompleted.getPerson());
1,607,251
private // and shows the "retry" button.<NEW_LINE>void createTimer(long time) {<NEW_LINE>final TextView textView = findViewById(R.id.timer);<NEW_LINE>if (countDownTimer != null) {<NEW_LINE>countDownTimer.cancel();<NEW_LINE>}<NEW_LINE>countDownTimer = new CountDownTimer(time * 1000, 50) {<NEW_LINE><NEW_LINE>@Override<NE...
textView.setText("seconds remaining: " + timeRemaining);
416,259
public final void init() {<NEW_LINE>addDrawableChild(doneButton = new ButtonWidget(width / 2 - 100, height / 4 + 72 + 12, 200, 20, new LiteralText(getDoneButtonText()), b -> pressDoneButton()));<NEW_LINE>addDrawableChild(new ButtonWidget(width / 2 - 100, height / 4 + 120 + 12, 200, 20, new LiteralText("Cancel"), b -> c...
, b -> openSkinFolder()));
1,680,558
public void addFinalSummary(TableBuilder tb) {<NEW_LINE>// Use only minor fragments that have complete profiles<NEW_LINE>// Complete iff the fragment profile has at least one operator profile, and start and end times.<NEW_LINE>final List<MinorFragmentProfile> complete = new ArrayList<>(Collections2.filter(major.getMino...
) - longRun.getStartTime());
1,754,139
protected void onCreate(Bundle savedInstanceState) {<NEW_LINE>super.onCreate(savedInstanceState);<NEW_LINE>setContentView(R.layout.activity_flexiblespacewithimagescrollview);<NEW_LINE>mFlexibleSpaceImageHeight = getResources().getDimensionPixelSize(R.dimen.flexible_space_image_height);<NEW_LINE>mFlexibleSpaceShowFabOff...
findViewById(R.id.image);
757,268
public boolean onCreate() {<NEW_LINE>AndroidInjection.inject(this);<NEW_LINE>if (getContext() == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>String AUTHORITY = getContext().getResources().getString(R.string.users_and_groups_search_authority);<NEW_LINE>setActionShareWith(getContext());<NEW_LINE>DATA_USER = AUTHOR...
put(DATA_EMAIL, ShareType.EMAIL);
734,768
public static WikivoyageContentItem parseJsonContents(String contentsJson) {<NEW_LINE>JSONObject jArray;<NEW_LINE>JSONObject reader;<NEW_LINE>try {<NEW_LINE>reader = new JSONObject(contentsJson);<NEW_LINE><MASK><NEW_LINE>} catch (JSONException e) {<NEW_LINE>Log.e(TAG, e.getMessage(), e);<NEW_LINE>return null;<NEW_LINE>...
jArray = reader.getJSONObject(HEADERS);
1,047,149
public KerasModelBuilder modelHdf5Filename(String modelHdf5Filename) throws UnsupportedKerasConfigurationException, InvalidKerasConfigurationException, IOException {<NEW_LINE>checkForExistence(modelHdf5Filename);<NEW_LINE>synchronized (Hdf5Archive.LOCK_OBJECT) {<NEW_LINE>try {<NEW_LINE>this.weightsArchive = this.traini...
(kerasVersion.charAt(0));
127,869
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasMinLengthAndTypes(sources, 2, <MASK><NEW_LINE>// we can safely cast here because of the assert.. above<NEW_LINE>final DOMNode element = (DOMNode) sources[0];<NEW_LI...
DOMNode.class, String.class);
948,181
public void visit(Method obj) {<NEW_LINE>try {<NEW_LINE>if (skip(obj)) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>JavaClass clazz = getThisClass();<NEW_LINE>XMethod xmethod = XFactory.createXMethod(clazz, obj);<NEW_LINE><MASK><NEW_LINE>String key = obj.getName() + ":" + obj.getSignature();<NEW_LINE>if (!factory.isCalled(xm...
XFactory factory = AnalysisContext.currentXFactory();
161,656
// Returns true if polygon_a touches envelope_b.<NEW_LINE>private static boolean polygonTouchesEnvelope_(Polygon polygon_a, Envelope envelope_b, double tolerance, ProgressTracker progress_tracker) {<NEW_LINE>// Quick rasterize test to see whether the the geometries are disjoint,<NEW_LINE>// or if one is contained in th...
envelope_b.queryCornerByVal(2, p);
1,839,608
private Test createAotTestTask(Project project, SourceSetContainer sourceSets, Jar generatedTestSourcesJar) {<NEW_LINE>Test test = project.getTasks().create(AOT_TEST_TASK_NAME, Test.class);<NEW_LINE>test.useJUnitPlatform();<NEW_LINE>test.setTestClassesDirs(sourceSets.findByName(SourceSet.TEST_SOURCE_SET_NAME).getOutput...
test.systemProperty("spring.test.context.default.CacheAwareContextLoaderDelegate", "org.springframework.aot.test.AotCacheAwareContextLoaderDelegate");
1,661,996
private void generateMiddleware(GoWriter writer) {<NEW_LINE>SERIALIZE_STEP_MIDDLEWARE.writeMiddleware(writer, (g, w) -> {<NEW_LINE>Symbol requestSymbol = SymbolUtils.createPointableSymbolBuilder("Request", SmithyGoDependency.SMITHY_HTTP_TRANSPORT).build();<NEW_LINE>w.write("req, ok := in.Request.($P)", requestSymbol);<...
w.addUseImports(SmithyGoDependency.FMT);
1,464,507
void jsonReadUsingObjectMapper(BeanPropertyAssocMany<?> many, SpiJsonReader readJson, EntityBean parentBean) throws IOException {<NEW_LINE>ObjectMapper mapper = readJson.getObjectMapper();<NEW_LINE>ManyType manyType = many.manyType();<NEW_LINE>Object value;<NEW_LINE>if (manyType.isMap()) {<NEW_LINE>// read map using Ja...
), many.targetType());
1,571,503
public Iterable<? extends ErrorDescription> analyze() {<NEW_LINE>Preferences settings = context.getSettings();<NEW_LINE>if (settings != null && !settings.getBoolean(PHPStanCustomizerPanel.ENABLED, false)) {<NEW_LINE>return Collections.emptyList();<NEW_LINE>}<NEW_LINE>PHPStan phpStan = getValidPHPStan();<NEW_LINE>if (ph...
Scope scope = context.getScope();
1,835,800
public void update() {<NEW_LINE>for (int i = 0, accelOffset = 0, c = i + controller.particles.size * rotationChannel.strideSize; i < c; i += rotationChannel.strideSize, accelOffset += accellerationChannel.strideSize) {<NEW_LINE>Vector3 axisZ = TMP_V1.set(accellerationChannel.data[accelOffset + ParticleChannels.XOffset]...
ParticleChannels.WOffset] = TMP_Q.w;
1,478,909
public Object apply(final ActionContext ctx, final Object caller, final Object[] sources) throws FrameworkException {<NEW_LINE>try {<NEW_LINE>assertArrayHasLengthAndAllElementsNotNull(sources, 1);<NEW_LINE>if (sources[0] instanceof Geometry) {<NEW_LINE>final List<List<Double>> result = new LinkedList<>();<NEW_LINE>fina...
.x, c.y));
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...
setTargetTypeToRemove(ModifyTargetsCommand.TargetTypeToRemove.BOTH);
238,630
public final <R extends Record, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15, T16, T17, T18, T19, T20, T21> InsertImpl insertInto(Table<R> into, Field<T1> field1, Field<T2> field2, Field<T3> field3, Field<T4> field4, Field<T5> field5, Field<T6> field6, Field<T7> field7, Field<T8> field8, Field<T9> f...
, field19, field20, field21));
480,467
private static void checkEndpointID(X509Certificate certificate, String endpointIDAlg, boolean checkServerTrusted, BCExtendedSSLSession sslSession) throws CertificateException {<NEW_LINE>String peerHost = sslSession.getPeerHost();<NEW_LINE>if (checkServerTrusted) {<NEW_LINE>BCSNIHostName sniHostName = JsseUtils.getSNIH...
FINE, "Server's endpoint ID did not match the SNI host_name: " + hostname, e);
1,153,712
void increaseWindow() {<NEW_LINE>if (mainProtectedMaximum() == 0) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>long quota = Math.min(adjustment(), mainProtectedMaximum());<NEW_LINE>setMainProtectedMaximum(mainProtectedMaximum() - quota);<NEW_LINE>setWindowMaximum(windowMaximum() + quota);<NEW_LINE>demoteFromMainProtected();<...
setMainProtectedMaximum(mainProtectedMaximum() + quota);
868,064
private static void updateProjectSettings(Project project, BlazeProjectData blazeProjectData) {<NEW_LINE>KotlinToolchainIdeInfo kotlinToolchainIdeInfo = findToolchain(blazeProjectData.getTargetMap());<NEW_LINE>if (kotlinToolchainIdeInfo == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LanguageVersion languageLevel = get...
String languageVersion = settings.getLanguageVersion();
501,063
public DescriptiveUrl toDownloadUrl(final Path file, final Void options, final PasswordCallback callback) throws BackgroundException {<NEW_LINE>try {<NEW_LINE>if (log.isDebugEnabled()) {<NEW_LINE>log.debug(String.format("Create temporary link for %s", file));<NEW_LINE>}<NEW_LINE>// This link will expire in four hours a...
(TimeZone.getTimeZone("UTC"));
1,223,225
private void handleContestedPivotBlock(final long contestedBlockNumber) {<NEW_LINE>if (pivotBlockNumber.compareAndSet(contestedBlockNumber, contestedBlockNumber - pivotBlockNumberResetDelta)) {<NEW_LINE>LOG.info("Received conflicting pivot blocks for {}.", contestedBlockNumber);<NEW_LINE>final <MASK><NEW_LINE>if ((retr...
int retryCount = confirmationTasks.size();
1,373,466
public static Bundle toBundle(NotificationContent content) {<NEW_LINE>Bundle serializedContent = new Bundle();<NEW_LINE>serializedContent.putString("title", content.getTitle());<NEW_LINE>serializedContent.putString("subtitle", content.getSubtitle());<NEW_LINE>serializedContent.putString("body", content.getText());<NEW_...
serializedContent.putString("sound", "default");
746,997
public List<Pet> findPetsByStatus(List<String> status) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// verify the required parameter 'status' is set<NEW_LINE>if (status == null) {<NEW_LINE>throw new ApiException(400, "Missing the required parameter 'status' when calling findPetsByStatus");<NE...
] localVarAccepts = { "application/xml", "application/json" };
33,454
public void read(org.apache.thrift.protocol.TProtocol prot, replicateKeyValues_args struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol iprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>java.util.BitSet incoming = iprot.readBitSet(3);<NEW_LINE>if (incoming.g...
.securityImpl.thrift.TCredentials();
549,628
public void run() {<NEW_LINE>try {<NEW_LINE>entry.incrementRunCount();<NEW_LINE>RuntimeEventLog.cron(taskClassName);<NEW_LINE>if (taskClass != null) {<NEW_LINE>Task task = <MASK><NEW_LINE>logger.debug("Starting task {}", taskClassName);<NEW_LINE>StructrApp.getInstance().processTasks(task);<NEW_LINE>} else {<NEW_LINE>tr...
(Task) taskClass.newInstance();
1,217,955
public Object convert(final Object source) {<NEW_LINE>if (source == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Image img = null;<NEW_LINE>try {<NEW_LINE>if (source instanceof byte[]) {<NEW_LINE>byte[] data = (byte[]) source;<NEW_LINE>MagicMatch match = Magic.getMagicMatch(data);<NEW_LINE>String m...
.updateMetadata((Image) currentObject);
8,829
private void addSegmentsTargetAboveSource(Obstacle source, Obstacle target) {<NEW_LINE>// target located above source<NEW_LINE>Segment seg = null;<NEW_LINE>Segment seg2 = null;<NEW_LINE>if (target.x > source.x) {<NEW_LINE>seg = new Segment(source.topLeft, target.topLeft);<NEW_LINE>if (target.x < source.right() - 1)<NEW...
source.topRight, target.topRight);
749,361
public static ServiceConfig defaultServiceConfig() {<NEW_LINE>ServiceConfig result = new ServiceConfig();<NEW_LINE>// All classes here must have an argument free constructor.<NEW_LINE>result.put(IHttpUtil.class, ServiceConfig.load(HttpUtil.class.getName()));<NEW_LINE>result.put(ISystemClock.class, ServiceConfig.load(Sy...
.class.getName()));
1,285,896
public void onPublish(InterceptPublishMessage msg) {<NEW_LINE>String clientId = msg.getClientID();<NEW_LINE>ByteBuf payload = msg.getPayload();<NEW_LINE>String topic = msg.getTopicName();<NEW_LINE>String username = msg.getUsername();<NEW_LINE>MqttQoS qos = msg.getQos();<NEW_LINE>LOG.debug("Receive publish message. clie...
LOG.debug("event process result: {}", status);
1,124,232
public static IndexOrdinalsFieldData buildEmpty(IndexReader indexReader, IndexOrdinalsFieldData indexFieldData) throws IOException {<NEW_LINE>assert indexReader.leaves().size() > 1;<NEW_LINE>final LeafOrdinalsFieldData[] atomicFD = new LeafOrdinalsFieldData[indexReader.leaves().size()];<NEW_LINE>final SortedSetDocValue...
ordinalMap, 0, AbstractLeafOrdinalsFieldData.DEFAULT_SCRIPT_FUNCTION);
459,668
protected boolean processResponse() {<NEW_LINE>if (manifest == null) {<NEW_LINE>return false;<NEW_LINE>}<NEW_LINE>result.value = new ArrayList<String>();<NEW_LINE>Map<String, String> filter = new <MASK><NEW_LINE>Iterator<String> keyIterator = manifest.getEntries().keySet().iterator();<NEW_LINE>while (keyIterator.hasNex...
HashMap<String, String>();
1,377,484
private void checkTargetIsInstrumentedForCoverage(Instrumentation instrumentation) {<NEW_LINE>checkState(GOOGLE_INSTRUMENTATION_NAMES.contains(instrumentation.getInstrumentationClass()), "Test coverage data can only be generated when GoogleInstrumentationTestRunner is used." + " Do you have an <instrumentation> entry f...
format(PROGUARD_KEEP_EMMA, "class")));
1,314,930
public void marshall(Rule rule, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (rule == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(rule.getName(), NAME_BINDING);<NEW_LINE>protocolMarshaller.marshall(rule...
rule.getCaptchaConfig(), CAPTCHACONFIG_BINDING);
1,381,120
private boolean runTestOnce(TestRun run) {<NEW_LINE>Session ws;<NEW_LINE>try {<NEW_LINE>do {<NEW_LINE>ws = wsSessionQueue.poll(1, TimeUnit.SECONDS);<NEW_LINE>} while (ws == null || !ws.isOpen());<NEW_LINE>} catch (InterruptedException e) {<NEW_LINE>run.getCallback().error(e);<NEW_LINE>return true;<NEW_LINE>}<NEW_LINE>i...
ObjectNode node = nf.objectNode();
1,747,206
public List<Migration> resolve() {<NEW_LINE>File location = new File(migrationsLocation);<NEW_LINE>LOGGER.info("Trying migrations at: {} ", location.getAbsolutePath());<NEW_LINE>// assume flat directory of migrations<NEW_LINE>File[] files = location.listFiles();<NEW_LINE>if (files == null || files.length == 0)<NEW_LINE...
(version, migrationFile, mergeProperties));
285,701
public int compare(Object arg1, Object arg2) {<NEW_LINE>if (arg1 == arg2) {<NEW_LINE>return (0);<NEW_LINE>}<NEW_LINE>PEPeerTransport pt1 = (PEPeerTransport) arg1;<NEW_LINE>PEPeerTransport pt2 = (PEPeerTransport) arg2;<NEW_LINE>Integer m1 = (Integer) block_time_order_peers_metrics.get(pt1);<NEW_LINE>if (m1 == null) {<NE...
() - r_2.intValue();
894,109
public void createPartControl(Composite parent) {<NEW_LINE>Server server = ServerManager.getInstance().getServer(serverId);<NEW_LINE>this.setPartName("Connections[" + <MASK><NEW_LINE>GridLayout layout = new GridLayout(1, true);<NEW_LINE>layout.marginHeight = 5;<NEW_LINE>layout.marginWidth = 5;<NEW_LINE>parent.setLayout...
server.getName() + "]");
828,084
private static void runPlay2x(String playVersion, String scalaVersion, String jacksonVersion) throws Exception {<NEW_LINE>String testAppVersion;<NEW_LINE>if (playVersion.equals("2.0")) {<NEW_LINE>testAppVersion = "2.0.x";<NEW_LINE>} else if (playVersion.equals("2.1.0")) {<NEW_LINE>// there are some incompatibilities be...
updateLibVersion(MODULE_PATH, "scala.major.version", scalaMajorVersion);
1,292,059
private List<Object> transformInput(List iLeft, Object iRight, OLuceneFullTextIndex index, MemoryIndex memoryIndex) {<NEW_LINE>Integer collectionIndex = getCollectionIndex(iLeft);<NEW_LINE>if (collectionIndex == -1) {<NEW_LINE>// collection not found;<NEW_LINE>return iLeft;<NEW_LINE>}<NEW_LINE>if (collectionIndex > 1) ...
(iLeft.get(1));
1,343,326
public com.amazonaws.services.ecr.model.ValidationException unmarshallFromContext(JsonUnmarshallerContext context) throws Exception {<NEW_LINE>com.amazonaws.services.ecr.model.ValidationException validationException = new com.amazonaws.services.ecr.model.ValidationException(null);<NEW_LINE>int originalDepth = context.g...
String currentParentElement = context.getCurrentParentElement();
396,300
private void listSubFiles(File file, String pattern, boolean isAbsolute, boolean isSub, boolean ignoreCase, Context ctx, Sequence result) {<NEW_LINE>if (file == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>File[] subs = file.listFiles();<NEW_LINE>if (subs == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>for (File sub : ...
String pathName = sub.getAbsolutePath();
969,729
public void onInitializeClient() {<NEW_LINE>if (INSTANCE == null) {<NEW_LINE>INSTANCE = this;<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>LOG.info("Initializing Meteor Client");<NEW_LINE>// Global minecraft client accessor<NEW_LINE>mc = MinecraftClient.getInstance();<NEW_LINE>// Register event handlers<NEW_LINE>EVENT_BUS.regi...
DiscordPresence.class).toggle();
1,398,308
public boolean execute() {<NEW_LINE>Progress.start(progress);<NEW_LINE>PreviewController controller = Lookup.getDefault().lookup(PreviewController.class);<NEW_LINE>controller.getModel(workspace).getProperties().putValue(PreviewProperty.VISIBILITY_RATIO, 1.0);<NEW_LINE>controller.refreshPreview(workspace);<NEW_LINE>Prev...
Document document = new Document(size);
202,183
private Tensor vectorMatrixProduct(IndexedTensor a, IndexedTensor b, TensorType reducedType, boolean swapped) {<NEW_LINE>if (a.type().dimensions().size() != 1 || b.type().dimensions().size() != 2) {<NEW_LINE>throw new IllegalArgumentException("Wrong dimension sizes for tensors for vector-matrix product");<NEW_LINE>}<NE...
DimensionSizes sizesB = b.dimensionSizes();
1,135,915
private Map<String, Map<String, String>> reassignSegments(String instancePartitionType, Map<String, Map<String, String>> currentAssignment, InstancePartitions instancePartitions, boolean bootstrap) {<NEW_LINE>Map<String, Map<String, String>> newAssignment;<NEW_LINE>if (bootstrap) {<NEW_LINE>LOGGER.info("Bootstrapping s...
Collections.shuffle(segments, random);
601,329
public static void dumpMemoryInfo(Metrics metrics, String logDir) {<NEW_LINE>if (metrics == null || logDir == null) {<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>Path dir = Paths.get(logDir);<NEW_LINE>Files.createDirectories(dir);<NEW_LINE>Path file = dir.resolve("memory.log");<NEW_LINE>try (BufferedWriter writ...
(metrics.getMetric("NonHeap"));
967,650
static String printRules(AutomationCommandsPluggable autoCommands, Map<String, String> ruleUIDs) {<NEW_LINE>int[] columnWidths = new int[] { COLUMN_ID, COLUMN_RULE_UID, COLUMN_RULE_NAME, COLUMN_RULE_STATUS };<NEW_LINE>List<String> columnValues = new ArrayList<String>();<NEW_LINE>columnValues.add(ID);<NEW_LINE>columnVal...
TABLE_WIDTH, columnWidths, rulesRows, titleRow);
320,742
public static <I> I tryPreferredInterfaces(Class<I> cls, Map<REFIID, ? extends Class<?>> preferred, InterfaceSupplier supplier) {<NEW_LINE>PointerByReference ppClient = new PointerByReference();<NEW_LINE>for (Map.Entry<REFIID, ? extends Class<?>> ent : preferred.entrySet()) {<NEW_LINE>try {<NEW_LINE>COMUtils.checkRC(su...
throw new AssertionError("INTERNAL: Unexpected exception", e);
717,607
private Binding findImport(char[][] compoundName, int length) {<NEW_LINE>recordQualifiedReference(compoundName);<NEW_LINE>ModuleBinding module = module();<NEW_LINE>Binding binding = this.environment.getTopLevelPackage(compoundName[0]);<NEW_LINE>int i = 1;<NEW_LINE>foundNothingOrType: if (binding != null) {<NEW_LINE>Pac...
), type, ProblemReasons.NotVisible);
158,760
public void runRunnablesMulti() {<NEW_LINE>if (runnables == null || runnables.size() == 0) {<NEW_LINE>throw new RuntimeException("No runnable(s) was found to run. You can add one or more runnables using 'addRunnable(Runnable runnable)'");<NEW_LINE>}<NEW_LINE>ExecutorService executorService = newFixedThreadPool(numberOf...
(functionIndex.getAndIncrement()));
1,033,422
public static void multTranC(DMatrixRMaj A, DMatrixRMaj B, DMatrixRMaj C, DMatrixRMaj output) {<NEW_LINE>double t11 = A.data[0] * B.data[0] + A.data[1] * B.data[3] + A.data[2] * B.data[6];<NEW_LINE>double t12 = A.data[0] * B.data[1] + A.data[1] * B.data[4] + A.data[2] * B.data[7];<NEW_LINE>double t13 = A.data[0] * B.da...
] * B.data[8];
1,755,308
public static void synchronizeMonitorWithFlag(TomcatManager tm, boolean alsoSetPort) throws IOException, SAXException {<NEW_LINE>String url = tm.getUri();<NEW_LINE>boolean monitorFlag = getMonitorFlag(url);<NEW_LINE>boolean monitorModuleAvailable = isMonitorEnabled();<NEW_LINE>boolean shouldInstall = monitorModuleAvail...
null, new Exception(url));
949,338
public // layer return the fault response, or should we return the fault from here?<NEW_LINE>EndpointReferenceType register(String globalId, EndpointReferenceType partEpr) throws WSATException {<NEW_LINE>// Get the transaction - this should exist. We should always be registering<NEW_LINE>// into an existing active tra...
.getCoordinator().getEndpointReference();
1,347,421
public void deleteById(String id) {<NEW_LINE>String resourceGroupName = Utils.getValueFromIdByName(id, "resourceGroups");<NEW_LINE>if (resourceGroupName == null) {<NEW_LINE>throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroup...
Utils.getValueFromIdByName(id, "factories");
1,260,440
public int _compareTo(final IV o) {<NEW_LINE>final FullyInlineTypedLiteralIV<?> t = ((FullyInlineTypedLiteralIV<?>) o);<NEW_LINE>int ret = termCode - t.termCode;<NEW_LINE>if (ret < 0)<NEW_LINE>return -1;<NEW_LINE>if (ret > 0)<NEW_LINE>return 1;<NEW_LINE>switch(termCode) {<NEW_LINE>case ITermIndexCodes.TERM_CODE_LIT:<NE...
compare(label, t.label);
821,088
public void write(org.apache.thrift.protocol.TProtocol prot, SyncValueMessage struct) throws org.apache.thrift.TException {<NEW_LINE>org.apache.thrift.protocol.TTupleProtocol oprot = (org.apache.thrift.protocol.TTupleProtocol) prot;<NEW_LINE>struct.header.write(oprot);<NEW_LINE>struct.store.write(oprot);<NEW_LINE>java....
oprot.writeI32(struct.responseTo);
119,445
private OrientDBConfig buildConfig(final Map<OGlobalConfiguration, Object> iProperties) {<NEW_LINE>Map<String, Object> pars = new HashMap<>(preopenProperties);<NEW_LINE>if (iProperties != null) {<NEW_LINE>for (Map.Entry<OGlobalConfiguration, Object> par : iProperties.entrySet()) {<NEW_LINE>pars.put(par.getKey().getKey(...
STORAGE_ENCRYPTION_METHOD.getKey()) : null;
1,042,558
public double swapRateDx2(double x, DoubleArray discountedCashFlowFixed, DoubleArray alphaFixed, DoubleArray discountedCashFlowIbor, DoubleArray alphaIbor) {<NEW_LINE>int sizeIbor = discountedCashFlowIbor.size();<NEW_LINE>int sizeFixed = discountedCashFlowFixed.size();<NEW_LINE>ArgChecker.isTrue(sizeIbor == alphaIbor.s...
alphaFixed.get(loopcf) * term;
445,653
private void verifyResult(PrintWriter pw, String testName, long executionId, String expectedStatus) throws TestFailureException {<NEW_LINE>JobOperator jobOperator = BatchRuntime.getJobOperator();<NEW_LINE>if (testName.startsWith("recoverLocalJobs")) {<NEW_LINE>try {<NEW_LINE>JobExecution executionInst = jobOperator.get...
= "ERROR: " + e.getMessage();
272,297
public void sendNotification(Check check, Subscription subscription, List<Alert> alerts) throws NotificationFailedException {<NEW_LINE>String hubotUrl = StringUtils.trimToNull(seyrenConfig.getHubotUrl());<NEW_LINE>if (hubotUrl == null) {<NEW_LINE>LOGGER.warn("Hubot URL needs to be set before sending notifications to Hu...
().split(","));
922,082
static void generateEncoderVarData(final StringBuilder sb, final List<Token> tokens, final int level) throws IOException {<NEW_LINE>for (int i = 0, size = tokens.size(); i < size; ) {<NEW_LINE>final Token varDataToken = tokens.get(i);<NEW_LINE>if (varDataToken.signal() != Signal.BEGIN_VAR_DATA) {<NEW_LINE>throw new Ill...
sb, level + 1, "let data_length = value.len();\n");
1,539,971
private void addFileResourceToServer(File file, long fileLength) {<NEW_LINE><MASK><NEW_LINE>fileResource.setFile(file.getAbsolutePath());<NEW_LINE>fileResource.setName(file.getName());<NEW_LINE>fileResource.setId(file.getAbsolutePath().hashCode());<NEW_LINE>fileResource.setLength(fileLength);<NEW_LINE>final String file...
final FileResource fileResource = new FileResource();
1,846,864
private void initEnvironmentVariables() {<NEW_LINE>int statusBarHeight = BarUtils.getStatusBarHeight(this);<NEW_LINE>int deviceWidth = ScreenUtils.getAppScreenWidth(this);<NEW_LINE>int deviceHeight = ScreenUtils.getAppScreenHeight(this);<NEW_LINE>int availableWidth = deviceWidth;<NEW_LINE>int availableHeight = deviceHe...
, ScreenUtils.getScreenDensity(this));
491,841
public Matrix4 absolute() {<NEW_LINE>final Matrix4 r = new Matrix4();<NEW_LINE>final double[] rStorage = r._m4storage;<NEW_LINE>rStorage[0] = Math.abs(_m4storage[0]);<NEW_LINE>rStorage[1] = Math.abs(_m4storage[1]);<NEW_LINE>rStorage[2] = Math.abs(_m4storage[2]);<NEW_LINE>rStorage[3] = Math.abs(_m4storage[3]);<NEW_LINE>...
.abs(_m4storage[15]);
168,169
public static ActivateClientResponse unmarshall(ActivateClientResponse activateClientResponse, UnmarshallerContext _ctx) {<NEW_LINE>activateClientResponse.setRequestId(_ctx.stringValue("ActivateClientResponse.RequestId"));<NEW_LINE>activateClientResponse.setSuccess(_ctx.booleanValue("ActivateClientResponse.Success"));<...
(_ctx.stringValue("ActivateClientResponse.Token"));
1,798,937
double multiComputeRSS(double[][] seasonMatrix, double[] cResidual, double[] arCoef, double[] maCoef) {<NEW_LINE>this.iterResidualMatrix = new double[seasonMatrix.length][seasonMatrix[0].length];<NEW_LINE>for (int i = 0; i < seasonMatrix.length; i++) {<NEW_LINE>for (int j = 0; j < seasonMatrix[0].length; j++) {<NEW_LIN...
maCoef, 0, 1, 0);
1,699,501
public Optional<CachedVanityUrl> resolveVanityUrl(final String url, final Host site, final Language language) {<NEW_LINE>// 404 short circuit<NEW_LINE>final Optional<CachedVanityUrl> shortCircuit = cache.getDirectMapping(url, site, language);<NEW_LINE>if (shortCircuit != null) {<NEW_LINE>return shortCircuit;<NEW_LINE>}...
matches()).findFirst();
1,661,792
protected void removeByUserId(String userId) throws SystemException {<NEW_LINE>Session session = null;<NEW_LINE>try {<NEW_LINE>session = openSession();<NEW_LINE>StringBuffer query = new StringBuffer();<NEW_LINE>query.append("FROM PasswordTracker IN CLASS com.liferay.portal.ejb.PasswordTrackerHBM WHERE ");<NEW_LINE>quer...
(PasswordTrackerHBM) itr.next();
806,929
final long doWriteOrSendBytes(ByteBuf data, InetSocketAddress remoteAddress, boolean fastOpen) throws IOException {<NEW_LINE>assert !(fastOpen && remoteAddress == null) : "fastOpen requires a remote address";<NEW_LINE>if (data.hasMemoryAddress()) {<NEW_LINE>long memoryAddress = data.memoryAddress();<NEW_LINE>if (remote...
remoteAddress.getPort(), fastOpen);
923,010
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id, JsonElement jsonElement) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Wi wi = this.convertToWrapIn(jsonElement, Wi....
emc.beginTransaction(View.class);
579,826
protected void updateStroke() {<NEW_LINE>float sw = (float) Math.max(1, state.strokeWidth * state.scale);<NEW_LINE>int cap = BasicStroke.CAP_BUTT;<NEW_LINE>if (state.lineCap.equals("round")) {<NEW_LINE>cap = BasicStroke.CAP_ROUND;<NEW_LINE>} else if (state.lineCap.equals("square")) {<NEW_LINE>cap = BasicStroke.CAP_SQUA...
miterlimit = (float) state.miterLimit;
715,452
private String generateUrlAndQuery(String url, Map<String, String> params, boolean scrubUrl) throws Exception {<NEW_LINE>if (params == null || params.isEmpty()) {<NEW_LINE>return url;<NEW_LINE>}<NEW_LINE>StringBuilder sb = new StringBuilder();<NEW_LINE>sb.append(url);<NEW_LINE>String prefix = "?";<NEW_LINE>for (Map.Ent...
)) : entry.getValue();
1,448,258
public static Query<Map<String, Integer>> fetchActivityIndexGroupingsOn(long date, long threshold, Collection<UUID> playerUUIDs, List<ServerUUID> serverUUIDs) {<NEW_LINE>String selectActivityIndex = selectActivityIndexSQL(serverUUIDs);<NEW_LINE>String selectIndexes = SELECT + "activity_index" + FROM + UsersTable.TABLE_...
(group, 0) + 1);
182,689
public okhttp3.Call connectPostNamespacedServiceProxyCall(String name, String namespace, String path, final ApiCallback _callback) throws ApiException {<NEW_LINE>Object localVarPostBody = null;<NEW_LINE>// create path and map variables<NEW_LINE>String localVarPath = "/api/v1/namespaces/{namespace}/services/{name}/proxy...
localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
1,044,133
public void selected(MenuItem menu, Object target) {<NEW_LINE>if (target instanceof MdiEntry) {<NEW_LINE>UISWTInputReceiver entry = (UISWTInputReceiver) swt_ui.getInputReceiver();<NEW_LINE>entry.setMessage("devices.restrict_access.msg");<NEW_LINE>entry.setPreenteredText(<MASK><NEW_LINE>entry.maintainWhitespace(false);<...
renderer.getAccessRestriction(), false);
448,050
public JRPrintElement fill() {<NEW_LINE>JRComponentElement element = fillContext.getComponentElement();<NEW_LINE>JRTemplateImage templateImage = new JRTemplateImage(fillContext.getElementOrigin(), fillContext.getDefaultStyleProvider());<NEW_LINE>templateImage.setStyle(fillContext.getElementStyle());<NEW_LINE><MASK><NEW...
templateImage.setLinkType(getLinkType());
405,764
public void focusGained(FocusEvent e) {<NEW_LINE>responseHasFocus = false;<NEW_LINE>statusBar.setTarget(new JEditorStatusBarTargetProxy<MASK><NEW_LINE>if (!splitButton.isEnabled()) {<NEW_LINE>requestTabs.setSelectedIndex(0);<NEW_LINE>return;<NEW_LINE>}<NEW_LINE>if (getModelItem().getSettings().getBoolean(UISettings.NO_...
(sourceEditor.getInputArea()));
294,289
public void marshall(AudioDescription audioDescription, ProtocolMarshaller protocolMarshaller) {<NEW_LINE>if (audioDescription == null) {<NEW_LINE>throw new SdkClientException("Invalid argument passed to marshall(...)");<NEW_LINE>}<NEW_LINE>try {<NEW_LINE>protocolMarshaller.marshall(<MASK><NEW_LINE>protocolMarshaller.m...
audioDescription.getAudioNormalizationSettings(), AUDIONORMALIZATIONSETTINGS_BINDING);
1,522,176
ActionResult<Wo> execute(EffectivePerson effectivePerson, String id) throws Exception {<NEW_LINE>try (EntityManagerContainer emc = EntityManagerContainerFactory.instance().create()) {<NEW_LINE>ActionResult<Wo> result = new ActionResult<>();<NEW_LINE>Business business = new Business(emc);<NEW_LINE>ProcessVersion process...
getApplication(), Application.class);
1,290,415
public void init(JobProfile jobConf) {<NEW_LINE>super.init(jobConf);<NEW_LINE>metricTagName = SQL_READER_TAG_NAME + "_" + inlongGroupId + "_" + inlongStreamId;<NEW_LINE>int batchSize = jobConf.getInt(JOB_DATABASE_BATCH_SIZE, DEFAULT_JOB_DATABASE_BATCH_SIZE);<NEW_LINE>String userName = jobConf.get(JOB_DATABASE_USER);<NE...
jobConf.get(JOB_DATABASE_TYPE, MYSQL);
1,684,627
public void handle(Supplier<Context> context) {<NEW_LINE>Context ctx = context.get();<NEW_LINE>ctx.enqueueWork(() -> {<NEW_LINE>ServerPlayer player = ctx.getSender();<NEW_LINE>Level world = player.level;<NEW_LINE>if (toolboxPos == null) {<NEW_LINE>ToolboxHandler.unequip(player, hotbarSlot, false);<NEW_LINE>ToolboxHandl...
compound.put(key, data);
837,242
public static void registerSSAggregationKeyDependencies() {<NEW_LINE>final IAggregationKeyRegistry keyRegistry = Services.get(IAggregationKeyRegistry.class);<NEW_LINE>final String registrationKey = ShipmentScheduleHeaderAggregationKeyBuilder.REGISTRATION_KEY;<NEW_LINE>//<NEW_LINE>// Register Handlers<NEW_LINE>keyRegist...
I_M_ShipmentSchedule.COLUMNNAME_AD_Org_ID, I_M_ShipmentSchedule.COLUMNNAME_DateOrdered);
1,236,071
private // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents<NEW_LINE>void initComponents() {<NEW_LINE>configPanel = new javax.swing.JPanel();<NEW_LINE>setPreferredSize(new java.awt.Dimension(569, 300));<NEW_LINE>configPanel.setPreferredSize(new java.awt.Dimension(569, 400));<NEW_LI...
javax.swing.GroupLayout(configPanel);
485,107
private ResponseRef executeWidget(AsyncExecutionRequestRef ref) throws ExternalOperationFailedException {<NEW_LINE>String url = URLUtils.getUrl(getBaseUrl(), URLUtils.WIDGET_DATA_URL_FORMAT, getId(ref));<NEW_LINE>ref.getExecutionRequestRefContext().appendLog("Ready to get result set from " + url);<NEW_LINE>List<Column>...
logger.error("executeWidget error:", e);